From 5fecd4c10687899ab771b6e4d036d2c3d31535a6 Mon Sep 17 00:00:00 2001 From: fireblocks_dx_team Date: Mon, 27 May 2024 10:36:52 +0000 Subject: [PATCH] Generated SDK for version COR-46191/fix_pipelines --- .bumpversion.cfg | 4 - .../ISSUE_TEMPLATE/bug_report.md | 0 .../ISSUE_TEMPLATE/feature_request.md | 0 .github/{ => .github}/release-drafter.yml | 0 .github/{ => .github}/workflows/pr-title.yml | 0 .../workflows/python-package.yml | 0 .../workflows/python-publish.yml | 0 .../workflows/release-drafter.yml | 0 .github/workflows/python.yml | 38 + .gitignore | 1 - .gitlab-ci.yml | 37 +- .openapi-generator/FILES | 2147 +++-- .openapi-generator/VERSION | 2 +- .travis.yml | 8 +- README.md | 1103 ++- docs/APIUser.md | 34 + docs/AbiFunction.md | 34 + docs/Account.md | 30 + docs/AccountType.md | 11 + docs/AddAssetToExternalWalletRequest.md | 31 + docs/AddAssetToExternalWalletRequestOneOf.md | 30 + docs/AddAssetToExternalWalletRequestOneOf1.md | 29 + ...ternalWalletRequestOneOf1AdditionalInfo.md | 44 + ...lWalletRequestOneOf1AdditionalInfoOneOf.md | 39 + ...WalletRequestOneOf1AdditionalInfoOneOf1.md | 39 + ...WalletRequestOneOf1AdditionalInfoOneOf2.md | 30 + docs/AddCollateralRequestBody.md | 30 + docs/AddContractAssetRequest.md | 30 + docs/AdditionalInfoDto.md | 31 + docs/AmlRegistrationResult.md | 31 + docs/AmlScreeningResult.md | 31 + docs/AmountAggregationTimePeriodMethod.md | 12 + docs/AmountAndChainDescriptor.md | 30 + docs/AmountInfo.md | 33 + docs/ApiKey.md | 30 + docs/ApiKeysPaginatedResponse.md | 30 + docs/ApiUserApi.md | 151 + docs/AssetAlreadyExistHttpError.md | 31 + docs/AssetAmount.md | 30 + docs/AssetBadRequestErrorResponse.md | 30 + docs/AssetConflictErrorResponse.md | 30 + docs/AssetDoesNotExistHttpError.md | 31 + docs/AssetForbiddenErrorResponse.md | 30 + docs/AssetInternalServerErrorResponse.md | 30 + docs/AssetMetadataDto.md | 41 + docs/AssetNotFoundErrorResponse.md | 30 + docs/AssetResponse.md | 32 + docs/AssetResponseMetadata.md | 30 + docs/AssetResponseOnchain.md | 33 + docs/AssetTypeResponse.md | 34 + docs/AssetWallet.md | 39 + docs/AssetsApi.md | 81 + docs/AuditLogData.md | 36 + docs/AuditLogsApi.md | 150 + docs/AuditorData.md | 31 + docs/AuthorizationGroups.md | 30 + docs/AuthorizationInfo.md | 32 + docs/BlockInfo.md | 31 + docs/BlockchainsAssetsApi.md | 151 + docs/CancelTransactionResponse.md | 29 + docs/ChainInfoResponseDto.md | 33 + docs/CollectionMetadataDto.md | 34 + docs/CollectionOwnershipResponse.md | 34 + docs/ComplianceApi.md | 475 ++ docs/ComplianceResult.md | 34 + docs/ComplianceScreeningConfigurationApi.md | 138 + docs/ComplianceScreeningResult.md | 33 + docs/ConfigChangeRequestStatus.md | 11 + docs/ConfigConversionOperationSnapshot.md | 31 + docs/ConfigDisbursementOperationSnapshot.md | 31 + docs/ConfigOperation.md | 33 + docs/ConfigOperationSnapshot.md | 31 + docs/ConfigOperationStatus.md | 11 + docs/ConfigTransferOperationSnapshot.md | 31 + docs/ConsoleUser.md | 36 + docs/ConsoleUserApi.md | 151 + docs/ContractAbiResponseDto.md | 30 + docs/ContractAttributes.md | 31 + docs/ContractDeployRequest.md | 31 + docs/ContractDeployResponse.md | 29 + docs/ContractDoc.md | 33 + docs/ContractInteractionsApi.md | 236 + docs/ContractMetadataDto.md | 33 + docs/ContractTemplateDto.md | 42 + docs/ContractTemplatesApi.md | 522 ++ docs/ContractUploadRequest.md | 37 + docs/ContractsApi.md | 502 ++ docs/ConversionConfigOperation.md | 33 + docs/ConversionOperationConfigParams.md | 33 + docs/ConversionOperationExecution.md | 33 + docs/ConversionOperationExecutionOutput.md | 31 + docs/ConversionOperationExecutionParams.md | 30 + ...OperationExecutionParamsExecutionParams.md | 33 + docs/ConversionOperationFailure.md | 30 + docs/ConversionOperationPreview.md | 31 + docs/ConversionOperationPreviewOutput.md | 32 + docs/ConversionOperationType.md | 11 + docs/ConversionValidationFailure.md | 30 + docs/ConvertAssetsRequest.md | 31 + docs/ConvertAssetsResponse.md | 29 + docs/Cosigner.md | 31 + docs/CosignersBetaApi.md | 373 + docs/CosignersPaginatedResponse.md | 30 + docs/CreateAPIUser.md | 33 + docs/CreateAddressRequest.md | 30 + docs/CreateAddressResponse.md | 33 + docs/CreateAssetsBulkRequest.md | 31 + docs/CreateAssetsRequest.md | 29 + docs/CreateConfigOperationRequest.md | 30 + docs/CreateConnectionRequest.md | 34 + docs/CreateConnectionResponse.md | 30 + docs/CreateConsoleUser.md | 32 + docs/CreateContractRequest.md | 29 + .../CreateConversionConfigOperationRequest.md | 30 + ...reateDisbursementConfigOperationRequest.md | 30 + docs/CreateInternalTransferRequest.md | 32 + docs/CreateInternalWalletAssetRequest.md | 30 + docs/CreateMultipleAccountsRequest.md | 30 + docs/CreateNcwConnectionRequest.md | 33 + docs/CreateNetworkIdRequest.md | 30 + docs/CreatePayoutRequest.md | 30 + docs/CreateTokenRequestDto.md | 33 + docs/CreateTokenRequestDtoCreateParams.md | 33 + docs/CreateTransactionResponse.md | 31 + docs/CreateTransferConfigOperationRequest.md | 30 + docs/CreateUserGroupResponse.md | 32 + docs/CreateVaultAccountConnectionRequest.md | 32 + docs/CreateVaultAccountRequest.md | 32 + docs/CreateVaultAssetResponse.md | 36 + docs/CreateWalletRequest.md | 30 + ...eateWorkflowExecutionRequestParamsInner.md | 30 + docs/CustomRoutingDest.md | 31 + docs/DefaultNetworkRoutingDest.md | 29 + docs/DelegationDto.md | 44 + docs/DelegationSummaryDto.md | 32 + docs/DeleteNetworkConnectionResponse.md | 29 + docs/DeleteNetworkIdResponse.md | 29 + docs/DeployedContractResponseDto.md | 33 + docs/DeployedContractsApi.md | 228 + docs/DeployedContractsPaginatedResponse.md | 30 + docs/DepositFundsFromLinkedDDAResponse.md | 29 + docs/Destination.md | 32 + docs/DestinationTransferPeerPath.md | 35 + docs/DestinationTransferPeerPathResponse.md | 34 + docs/DisbursementAmountInstruction.md | 31 + docs/DisbursementConfigOperation.md | 33 + docs/DisbursementInstruction.md | 32 + docs/DisbursementInstructionOutput.md | 31 + docs/DisbursementOperationConfigParams.md | 30 + docs/DisbursementOperationExecution.md | 34 + docs/DisbursementOperationExecutionOutput.md | 29 + docs/DisbursementOperationExecutionParams.md | 30 + ...OperationExecutionParamsExecutionParams.md | 31 + docs/DisbursementOperationInput.md | 31 + docs/DisbursementOperationPreview.md | 31 + docs/DisbursementOperationPreviewOutput.md | 29 + ...erationPreviewOutputInstructionSetInner.md | 32 + docs/DisbursementOperationType.md | 11 + docs/DisbursementPercentageInstruction.md | 31 + docs/DisbursementValidationFailure.md | 30 + docs/DispatchPayoutResponse.md | 29 + docs/DraftResponse.md | 33 + docs/DraftReviewAndValidationResponse.md | 31 + docs/DropTransactionRequest.md | 31 + docs/DropTransactionResponse.md | 31 + docs/EVMTokenCreateParamsDto.md | 30 + docs/EditGasStationConfigurationResponse.md | 29 + docs/ErrorResponse.md | 29 + docs/ErrorResponseError.md | 30 + docs/ErrorSchema.md | 30 + docs/EstimatedNetworkFeeResponse.md | 31 + docs/EstimatedTransactionFeeResponse.md | 31 + docs/ExchangeAccount.md | 37 + docs/ExchangeAccountsApi.md | 374 + docs/ExchangeAccountsPaged.md | 32 + docs/ExchangeAccountsPagedPaging.md | 30 + docs/ExchangeAsset.md | 33 + .../ExchangeSettlementTransactionsResponse.md | 30 + docs/ExchangeTradingAccount.md | 31 + docs/ExchangeType.md | 11 + docs/ExecuteActionRequest.md | 35 + docs/ExecuteActionResponse.md | 29 + docs/ExecutionConversionOperation.md | 34 + docs/ExecutionDisbursementOperation.md | 34 + docs/ExecutionOperationStatus.md | 11 + docs/ExecutionScreeningOperation.md | 33 + docs/ExecutionTransferOperation.md | 34 + docs/ExternalWalletAsset.md | 36 + docs/ExternalWalletsApi.md | 574 ++ docs/FeeInfo.md | 32 + docs/FiatAccount.md | 33 + docs/FiatAccountType.md | 11 + docs/FiatAccountsApi.md | 294 + docs/FiatAsset.md | 30 + docs/FreezeTransactionResponse.md | 29 + docs/FunctionDoc.md | 31 + docs/Funds.md | 29 + docs/GasStationConfiguration.md | 31 + docs/GasStationConfigurationResponse.md | 31 + docs/GasStationPropertiesResponse.md | 30 + docs/GasStationsApi.md | 292 + docs/GetAPIUsersResponse.md | 29 + docs/GetAuditLogsResponse.md | 31 + docs/GetAuditLogsResponseDTO.md | 31 + docs/GetConnectionsResponse.md | 30 + docs/GetConsoleUsersResponse.md | 29 + docs/GetFilterParameter.md | 35 + docs/GetMaxSpendableAmountResponse.md | 29 + docs/GetNFTsResponse.md | 30 + docs/GetOtaStatusResponse.md | 29 + docs/GetOwnershipTokensResponse.md | 30 + docs/GetTransactionOperation.md | 12 + docs/GetWhitelistIpAddressesResponse.md | 30 + docs/GetWorkspaceStatusResponse.md | 29 + docs/HttpContractDoesNotExistError.md | 30 + docs/InstructionAmount.md | 30 + docs/InternalTransferResponse.md | 29 + docs/InternalWalletsApi.md | 574 ++ docs/Job.md | 36 + docs/JobCreated.md | 29 + docs/JobManagementApi.md | 427 + docs/LeanAbiFunction.md | 30 + docs/LeanContractDto.md | 37 + docs/LeanDeployedContractResponseDto.md | 32 + docs/ListOwnedCollectionsResponse.md | 30 + docs/ListOwnedTokensResponse.md | 30 + docs/MediaEntityResponse.md | 30 + docs/NFTsApi.md | 768 ++ docs/NetworkChannel.md | 31 + docs/NetworkConnection.md | 31 + docs/NetworkConnectionResponse.md | 35 + docs/NetworkConnectionRoutingPolicyValue.md | 31 + docs/NetworkConnectionStatus.md | 11 + docs/NetworkConnectionsApi.md | 995 +++ docs/NetworkFee.md | 33 + docs/NetworkId.md | 30 + docs/NetworkIdResponse.md | 32 + docs/NetworkIdRoutingPolicyValue.md | 31 + docs/NetworkRecord.md | 41 + docs/NoneNetworkRoutingDest.md | 29 + docs/NotFoundException.md | 31 + docs/OTABetaApi.md | 149 + docs/OffExchangesApi.md | 367 + docs/OneTimeAddress.md | 30 + docs/OneTimeAddressAccount.md | 30 + docs/OperationExecutionFailure.md | 30 + docs/PaginatedAddressResponse.md | 30 + docs/PaginatedAddressResponsePaging.md | 30 + docs/PaginatedAssetWalletResponse.md | 30 + docs/PaginatedAssetWalletResponsePaging.md | 30 + docs/Paging.md | 29 + docs/Parameter.md | 33 + docs/ParameterWithValue.md | 35 + docs/PayeeAccount.md | 30 + docs/PayeeAccountResponse.md | 30 + docs/PayeeAccountType.md | 12 + docs/PaymentAccount.md | 30 + docs/PaymentAccountResponse.md | 30 + docs/PaymentAccountType.md | 11 + docs/PaymentsPayoutApi.md | 229 + docs/PayoutInitMethod.md | 11 + docs/PayoutInstruction.md | 31 + docs/PayoutInstructionResponse.md | 33 + docs/PayoutInstructionState.md | 12 + docs/PayoutResponse.md | 37 + docs/PayoutState.md | 12 + docs/PayoutStatus.md | 12 + docs/PolicyAndValidationResponse.md | 31 + docs/PolicyCheckResult.md | 31 + docs/PolicyEditorBetaApi.md | 359 + docs/PolicyMetadata.md | 33 + docs/PolicyResponse.md | 31 + docs/PolicyRule.md | 58 + docs/PolicyRuleAmount.md | 29 + docs/PolicyRuleAmountAggregation.md | 32 + docs/PolicyRuleAuthorizationGroups.md | 32 + ...olicyRuleAuthorizationGroupsGroupsInner.md | 31 + docs/PolicyRuleCheckResult.md | 32 + docs/PolicyRuleDesignatedSigners.md | 31 + docs/PolicyRuleDst.md | 30 + docs/PolicyRuleError.md | 33 + docs/PolicyRuleOperators.md | 33 + docs/PolicyRuleRawMessageSigning.md | 31 + ...licyRuleRawMessageSigningDerivationPath.md | 29 + docs/PolicyRuleSrc.md | 30 + docs/PolicyRules.md | 29 + docs/PolicySrcOrDestSubType.md | 12 + docs/PolicySrcOrDestType.md | 12 + docs/PolicyStatus.md | 12 + docs/PolicyValidation.md | 31 + docs/PreScreening.md | 29 + docs/ProviderDto.md | 34 + docs/PublicKeyInformation.md | 31 + docs/PublishDraftRequest.md | 29 + docs/PublishResult.md | 33 + docs/ReadAbiFunction.md | 34 + docs/ReadCallFunctionDto.md | 29 + docs/RedeemFundsToLinkedDDAResponse.md | 29 + docs/RegisterNewAssetRequest.md | 31 + docs/RelatedTransactionDto.md | 30 + docs/RemoveCollateralRequestBody.md | 30 + docs/RenameCosigner.md | 29 + docs/RenameVaultAccountResponse.md | 30 + docs/ResendTransactionWebhooksRequest.md | 30 + docs/ResendWebhooksByTransactionIdResponse.md | 29 + docs/ResendWebhooksResponse.md | 29 + docs/ResetDeviceApi.md | 80 + docs/RespondToConnectionRequest.md | 29 + docs/RewardInfo.md | 31 + docs/RewardsInfo.md | 29 + docs/ScreeningConfigurationsRequest.md | 31 + docs/ScreeningOperationExecution.md | 32 + docs/ScreeningOperationExecutionOutput.md | 29 + docs/ScreeningOperationFailure.md | 30 + docs/ScreeningOperationType.md | 11 + docs/ScreeningPolicyResponse.md | 33 + ...eningProviderRulesConfigurationResponse.md | 34 + docs/ScreeningUpdateConfigurationsRequest.md | 30 + docs/ScreeningValidationFailure.md | 30 + docs/ScreeningVerdict.md | 34 + docs/ScreeningVerdictMatchedRule.md | 30 + docs/SessionDTO.md | 37 + docs/SessionMetadata.md | 32 + docs/SetAdminQuorumThresholdRequest.md | 29 + docs/SetAdminQuorumThresholdResponse.md | 29 + docs/SetAutoFuelRequest.md | 29 + docs/SetConfirmationsThresholdRequest.md | 29 + docs/SetConfirmationsThresholdResponse.md | 30 + docs/SetCustomerRefIdForAddressRequest.md | 29 + docs/SetCustomerRefIdRequest.md | 29 + docs/SetNetworkIdDiscoverabilityRequest.md | 29 + docs/SetNetworkIdNameRequest.md | 29 + docs/SetNetworkIdResponse.md | 29 + docs/SetNetworkIdRoutingPolicyRequest.md | 29 + docs/SetOtaStatusRequest.md | 29 + docs/SetOtaStatusResponse.md | 29 + docs/SetOtaStatusResponseOneOf.md | 29 + docs/SetRoutingPolicyRequest.md | 29 + docs/SetRoutingPolicyResponse.md | 29 + docs/SettlementRequestBody.md | 29 + docs/SettlementResponse.md | 33 + docs/SignedMessage.md | 34 + docs/SignedMessageSignature.md | 32 + docs/SmartTransferApi.md | 1216 +++ docs/SmartTransferBadRequestResponse.md | 30 + docs/SmartTransferCreateTicket.md | 35 + docs/SmartTransferCreateTicketTerm.md | 32 + docs/SmartTransferForbiddenResponse.md | 30 + docs/SmartTransferFundTerm.md | 36 + docs/SmartTransferManuallyFundTerm.md | 29 + docs/SmartTransferNotFoundResponse.md | 30 + docs/SmartTransferSetTicketExpiration.md | 29 + docs/SmartTransferSetTicketExternalId.md | 29 + docs/SmartTransferSetUserGroups.md | 29 + docs/SmartTransferSubmitTicket.md | 29 + docs/SmartTransferTicket.md | 49 + docs/SmartTransferTicketFilteredResponse.md | 31 + docs/SmartTransferTicketResponse.md | 30 + docs/SmartTransferTicketTerm.md | 44 + docs/SmartTransferTicketTermResponse.md | 30 + docs/SmartTransferUpdateTicketTerm.md | 32 + docs/SmartTransferUserGroups.md | 30 + docs/SmartTransferUserGroupsResponse.md | 30 + docs/SolanaBlockchainDataDto.md | 29 + docs/SourceTransferPeerPath.md | 34 + docs/SourceTransferPeerPathResponse.md | 34 + docs/SpamOwnershipResponse.md | 30 + docs/SpamTokenResponse.md | 29 + docs/SrcOrDestAttributesInner.md | 28 + docs/StakeRequestDto.md | 34 + docs/StakeResponseDto.md | 29 + docs/StakingBetaApi.md | 620 ++ docs/StellarRippleCreateParamsDto.md | 31 + docs/SystemMessageInfo.md | 30 + docs/Task.md | 35 + docs/TemplatesPaginatedResponse.md | 30 + docs/ThirdPartyRouting.md | 30 + docs/ToCollateralTransaction.md | 33 + docs/ToExchangeTransaction.md | 32 + docs/TokenCollectionResponse.md | 31 + docs/TokenLinkDto.md | 34 + docs/TokenLinkDtoTokenMetadata.md | 48 + docs/TokenLinkExistsHttpError.md | 31 + docs/TokenLinkRequestDto.md | 31 + docs/TokenOwnershipResponse.md | 46 + docs/TokenOwnershipSpamUpdatePayload.md | 30 + docs/TokenOwnershipStatusUpdatePayload.md | 30 + docs/TokenResponse.md | 39 + docs/TokenizationApi.md | 370 + docs/TokensPaginatedResponse.md | 30 + docs/TradingAccountType.md | 11 + docs/Transaction.md | 32 + docs/TransactionFee.md | 36 + docs/TransactionOperation.md | 12 + docs/TransactionRequest.md | 53 + docs/TransactionRequestAmount.md | 29 + docs/TransactionRequestDestination.md | 30 + docs/TransactionRequestFee.md | 29 + docs/TransactionRequestGasLimit.md | 29 + docs/TransactionRequestGasPrice.md | 29 + docs/TransactionRequestNetworkFee.md | 29 + docs/TransactionRequestNetworkStaking.md | 29 + docs/TransactionRequestPriorityFee.md | 29 + docs/TransactionResponse.md | 76 + ...nsactionResponseContractCallDecodedData.md | 31 + docs/TransactionResponseDestination.md | 35 + docs/TransactionsApi.md | 982 +++ docs/TransferConfigOperation.md | 33 + docs/TransferOperationConfigParams.md | 32 + docs/TransferOperationExecution.md | 34 + docs/TransferOperationExecutionOutput.md | 30 + docs/TransferOperationExecutionParams.md | 30 + ...OperationExecutionParamsExecutionParams.md | 32 + docs/TransferOperationFailure.md | 30 + docs/TransferOperationFailureData.md | 31 + docs/TransferOperationPreview.md | 31 + docs/TransferOperationPreviewOutput.md | 32 + docs/TransferOperationType.md | 11 + docs/TransferPeerPathSubType.md | 11 + docs/TransferPeerPathType.md | 11 + docs/TransferValidationFailure.md | 30 + docs/TravelRuleAddress.md | 32 + docs/TravelRuleBetaApi.md | 377 + docs/TravelRuleCreateTransactionRequest.md | 41 + docs/TravelRuleGetAllVASPsResponse.md | 29 + docs/TravelRuleIssuer.md | 29 + docs/TravelRuleIssuers.md | 42 + docs/TravelRuleOwnershipProof.md | 30 + docs/TravelRulePiiIVMS.md | 37 + docs/TravelRulePolicyRuleResponse.md | 42 + docs/TravelRuleTransactionBlockchainInfo.md | 31 + docs/TravelRuleUpdateVASPDetails.md | 30 + docs/TravelRuleVASP.md | 74 + ...ravelRuleValidateFullTransactionRequest.md | 46 + docs/TravelRuleValidateTransactionRequest.md | 39 + docs/TravelRuleValidateTransactionResponse.md | 35 + docs/UnfreezeTransactionResponse.md | 29 + docs/UnmanagedWallet.md | 32 + docs/UnspentInput.md | 30 + docs/UnspentInputsResponse.md | 33 + docs/UnstakeRequestDto.md | 32 + docs/UpdateTokenOwnershipStatusDto.md | 29 + docs/UpdateVaultAccountAssetAddressRequest.md | 29 + docs/UpdateVaultAccountRequest.md | 29 + docs/UserGroupCreateRequest.md | 30 + docs/UserGroupCreateResponse.md | 32 + docs/UserGroupResponse.md | 32 + docs/UserGroupUpdateRequest.md | 30 + docs/UserGroupsBetaApi.md | 359 + docs/UserResponse.md | 34 + docs/UserRole.md | 12 + docs/UserStatus.md | 12 + docs/UserType.md | 12 + docs/UsersApi.md | 74 + docs/ValidateAddressResponse.md | 31 + docs/ValidatorDto.md | 30 + docs/VaultAccount.md | 34 + docs/VaultAccountsPagedResponse.md | 32 + docs/VaultAccountsPagedResponsePaging.md | 30 + docs/VaultActionStatus.md | 29 + docs/VaultAsset.md | 45 + docs/VaultWalletAddress.md | 39 + docs/VaultsApi.md | 1881 +++++ docs/VendorDto.md | 30 + docs/WalletAsset.md | 35 + docs/WalletAssetAdditionalInfo.md | 44 + docs/Web3ConnectionsApi.md | 304 + docs/WebhooksApi.md | 153 + docs/WhitelistIpAddressesApi.md | 81 + docs/WithdrawRequestDto.md | 32 + docs/WorkflowConfigStatus.md | 11 + docs/WorkflowConfigurationId.md | 29 + docs/WorkflowExecutionOperation.md | 34 + docs/WorkspaceStatusBetaApi.md | 74 + docs/WriteAbiFunction.md | 34 + docs/WriteCallFunctionDto.md | 34 + docs/WriteCallFunctionResponseDto.md | 29 + docs/apis/tags/AuditLogsApi.md | 129 - docs/apis/tags/BlockchainsAssetsApi.md | 112 - docs/apis/tags/ContractsApi.md | 903 -- docs/apis/tags/ExchangeAccountsApi.md | 652 -- docs/apis/tags/ExternalWalletsApi.md | 1144 --- docs/apis/tags/FiatAccountsApi.md | 516 -- docs/apis/tags/GasStationsApi.md | 491 -- docs/apis/tags/InternalWalletsApi.md | 1042 --- docs/apis/tags/NFTsApi.md | 902 -- docs/apis/tags/NFTsBetaApi.md | 982 --- docs/apis/tags/NetworkConnectionsApi.md | 1732 ---- docs/apis/tags/OTABetaApi.md | 184 - docs/apis/tags/OffExchangesApi.md | 558 -- .../tags/PaymentsCrossBorderSettlementApi.md | 1038 --- docs/apis/tags/PaymentsPayoutApi.md | 385 - docs/apis/tags/PolicyEditorBetaApi.md | 627 -- docs/apis/tags/TransactionsApi.md | 1788 ---- docs/apis/tags/TravelRuleBetaApi.md | 561 -- docs/apis/tags/UsersApi.md | 106 - docs/apis/tags/UsersGroupsBetaApi.md | 629 -- docs/apis/tags/VaultsApi.md | 3529 -------- docs/apis/tags/Web3ConnectionsApi.md | 630 -- docs/apis/tags/WebhooksApi.md | 245 - docs/models/AddCollateralRequestBody.md | 16 - docs/models/AmlScreeningResult.md | 25 - .../AmountAggregationTimePeriodMethod.md | 11 - docs/models/AmountInfo.md | 20 - docs/models/AssetTypeResponse.md | 20 - docs/models/AssetWallet.md | 25 - docs/models/AuthorizationGroups.md | 28 - docs/models/AuthorizationInfo.md | 31 - docs/models/BlockInfo.md | 18 - docs/models/CancelTransactionResponse.md | 15 - docs/models/CollectionOwnershipResponse.md | 20 - docs/models/ConfigChangeRequestStatus.md | 9 - docs/models/CreateAddressResponse.md | 19 - docs/models/CreateConnectionRequest.md | 32 - docs/models/CreateConnectionResponse.md | 31 - docs/models/CreateInternalTransferRequest.md | 18 - docs/models/CreatePayoutRequest.md | 28 - docs/models/CreateTransactionResponse.md | 17 - docs/models/CreateUsersGroupResponse.md | 30 - docs/models/CreateVaultAssetResponse.md | 22 - docs/models/CustomCryptoRoutingDest.md | 17 - docs/models/CustomFiatRoutingDest.md | 17 - docs/models/DefaultNetworkRoutingDest.md | 15 - docs/models/DestinationTransferPeerPath.md | 39 - .../DestinationTransferPeerPathResponse.md | 34 - docs/models/DispatchPayoutResponse.md | 15 - docs/models/DraftResponse.md | 34 - .../DraftReviewAndValidationResponse.md | 18 - docs/models/DropTransactionRequest.md | 17 - docs/models/DropTransactionResponse.md | 28 - docs/models/Error.md | 16 - docs/models/ErrorResponse.md | 29 - docs/models/EstimatedNetworkFeeResponse.md | 17 - .../models/EstimatedTransactionFeeResponse.md | 17 - docs/models/ExchangeAccount.md | 46 - docs/models/ExchangeAsset.md | 19 - docs/models/ExchangeTradingAccount.md | 29 - docs/models/ExchangeType.md | 9 - docs/models/ExternalWalletAsset.md | 34 - docs/models/FeeInfo.md | 19 - docs/models/FiatAccount.md | 31 - docs/models/FiatAccountType.md | 9 - docs/models/FiatAsset.md | 16 - docs/models/FreezeTransactionResponse.md | 15 - docs/models/GasStationConfiguration.md | 17 - docs/models/GasStationPropertiesResponse.md | 26 - docs/models/GetConnectionsResponse.md | 30 - docs/models/GetSettlementResponse.md | 9 - docs/models/GetTransactionOperation.md | 11 - docs/models/GetUsersResponse.md | 27 - docs/models/InstructionAmount.md | 16 - docs/models/MediaEntityResponse.md | 16 - docs/models/Ncw.md | 15 - docs/models/NetworkChannel.md | 18 - docs/models/NetworkConnection.md | 17 - docs/models/NetworkConnectionResponse.md | 51 - docs/models/NetworkConnectionRoutingPolicy.md | 94 - docs/models/NetworkFee.md | 19 - docs/models/NetworkId.md | 16 - docs/models/NetworkIdResponse.md | 30 - docs/models/NetworkIdRoutingPolicy.md | 89 - docs/models/NetworkRecord.md | 27 - docs/models/NoneNetworkRoutingDest.md | 15 - docs/models/OneTimeAddress.md | 16 - docs/models/PaginatedAssetWalletResponse.md | 42 - docs/models/Paging.md | 15 - docs/models/PayeeAccount.md | 16 - docs/models/PayeeAccountResponse.md | 16 - docs/models/PayeeAccountType.md | 11 - docs/models/PaymentAccount.md | 16 - docs/models/PaymentAccountResponse.md | 16 - docs/models/PaymentAccountType.md | 9 - docs/models/PayoutInitMethod.md | 9 - docs/models/PayoutInstruction.md | 17 - docs/models/PayoutInstructionResponse.md | 31 - docs/models/PayoutInstructionState.md | 11 - docs/models/PayoutResponse.md | 35 - docs/models/PayoutState.md | 11 - docs/models/PayoutStatus.md | 11 - docs/models/PolicyAndValidationResponse.md | 18 - docs/models/PolicyCheckResult.md | 32 - docs/models/PolicyMetadata.md | 20 - docs/models/PolicyResponse.md | 32 - docs/models/PolicyRule.md | 537 -- docs/models/PolicyRuleCheckResult.md | 33 - docs/models/PolicyRuleError.md | 20 - docs/models/PolicySrcOrDestId.md | 11 - docs/models/PolicySrcOrDestSubType.md | 11 - docs/models/PolicySrcOrDestType.md | 11 - docs/models/PolicyStatus.md | 11 - docs/models/PolicyValidation.md | 18 - docs/models/PublicKeyInformation.md | 29 - docs/models/PublishResult.md | 32 - docs/models/RemoveCollateralRequestBody.md | 16 - docs/models/RequestOptions.md | 16 - docs/models/ResendWebhooksResponse.md | 15 - docs/models/RespondToConnectionRequest.md | 15 - docs/models/RewardInfo.md | 18 - docs/models/RewardsInfo.md | 15 - docs/models/SessionDTO.md | 52 - docs/models/SessionMetadata.md | 18 - .../SetConfirmationsThresholdRequest.md | 15 - .../SetConfirmationsThresholdResponse.md | 28 - docs/models/SettlementRequestBody.md | 15 - docs/models/SettlementResponse.md | 26 - docs/models/SignedMessage.md | 49 - docs/models/SourceTransferPeerPathResponse.md | 34 - docs/models/SystemMessageInfo.md | 16 - docs/models/Term.md | 20 - docs/models/ToCollateralTransaction.md | 19 - docs/models/ToExchangeTransaction.md | 18 - docs/models/TokenCollectionResponse.md | 17 - docs/models/TokenOwnershipResponse.md | 57 - docs/models/TokenResponse.md | 53 - docs/models/TradingAccountType.md | 9 - docs/models/Transaction.md | 18 - docs/models/TransactionFee.md | 20 - docs/models/TransactionOperation.md | 11 - docs/models/TransactionRequest.md | 333 - docs/models/TransactionRequestDestination.md | 16 - docs/models/TransactionResponse.md | 146 - docs/models/TransactionResponseDestination.md | 21 - docs/models/TransferPeerPath.md | 19 - docs/models/TravelRuleAddress.md | 18 - docs/models/TravelRuleGetAllVASPsResponse.md | 27 - docs/models/TravelRuleIssuer.md | 15 - docs/models/TravelRuleIssuers.md | 28 - docs/models/TravelRuleOwnershipProof.md | 20 - docs/models/TravelRulePiiIVMS.md | 23 - .../TravelRuleTransactionBlockchainInfo.md | 17 - docs/models/TravelRuleUpdateVASPDetails.md | 16 - docs/models/TravelRuleVASP.md | 60 - ...ravelRuleValidateFullTransactionRequest.md | 122 - .../TravelRuleValidateTransactionRequest.md | 40 - .../TravelRuleValidateTransactionResponse.md | 35 - docs/models/UnfreezeTransactionResponse.md | 15 - docs/models/UnmanagedWallet.md | 31 - docs/models/UnsignedMessage.md | 30 - docs/models/UnspentInput.md | 16 - docs/models/UnspentInputsResponse.md | 19 - docs/models/UpdateTokenOwnershipStatusDto.md | 15 - docs/models/UserGroupCreateRequest.md | 28 - docs/models/UserGroupCreateResponse.md | 30 - docs/models/UserGroupUpdateRequest.md | 28 - docs/models/UserResponse.md | 20 - docs/models/UsersGroupResponse.md | 30 - docs/models/UsersGroupsResponse.md | 14 - docs/models/ValidateAddressResponse.md | 17 - docs/models/VaultAccount.md | 32 - docs/models/VaultAccountsPagedResponse.md | 44 - docs/models/VaultAsset.md | 31 - docs/models/VaultWalletAddress.md | 25 - docs/models/WalletAsset.md | 21 - docs/models/WalletAssetAdditionalInfo.md | 30 - docs/models/XBSettlementAsset.md | 16 - docs/models/XBSettlementAssetID.md | 16 - .../XBSettlementConfigCreationRequestBody.md | 18 - .../XBSettlementConfigCreationResponse.md | 9 - .../XBSettlementConfigDeletionResponse.md | 9 - .../XBSettlementConfigEditRequestBody.md | 17 - docs/models/XBSettlementConfigEditResponse.md | 9 - docs/models/XBSettlementConfigId.md | 11 - docs/models/XBSettlementConfigModel.md | 20 - docs/models/XBSettlementConfigStep.md | 16 - docs/models/XBSettlementConfigStepsRecord.md | 30 - ...SettlementConversionSlippageBasisPoints.md | 11 - docs/models/XBSettlementCorridorId.md | 11 - .../XBSettlementCreateFlowRequestBody.md | 16 - docs/models/XBSettlementCreateFlowResponse.md | 9 - docs/models/XBSettlementCryptoAsset.md | 11 - docs/models/XBSettlementFiatAsset.md | 9 - docs/models/XBSettlementFlowExecutionModel.md | 40 - .../XBSettlementFlowExecutionRequestBody.md | 15 - .../XBSettlementFlowExecutionResponse.md | 9 - .../models/XBSettlementFlowExecutionStatus.md | 9 - docs/models/XBSettlementFlowExecutionStep.md | 23 - .../XBSettlementFlowExecutionStepStatus.md | 9 - docs/models/XBSettlementFlowPreviewModel.md | 22 - ...entFlowSelectedConversionSlippageReason.md | 9 - docs/models/XBSettlementFlowSetupStep.md | 20 - .../XBSettlementFlowStepsExecutionRecord.md | 15 - docs/models/XBSettlementFlowStepsRecord.md | 15 - .../XBSettlementGetAllConfigsResponse.md | 27 - docs/models/XBSettlementGetConfigResponse.md | 9 - docs/models/XBSettlementGetFlowResponse.md | 16 - docs/models/XBSettlementStepType.md | 11 - fireblocks_client/__init__.py | 858 +- fireblocks_client/api/__init__.py | 41 + fireblocks_client/api/api_user_api.py | 589 ++ fireblocks_client/api/assets_api.py | 326 + fireblocks_client/api/audit_logs_api.py | 576 ++ .../api/blockchains_assets_api.py | 584 ++ fireblocks_client/api/compliance_api.py | 1782 ++++ .../compliance_screening_configuration_api.py | 521 ++ fireblocks_client/api/console_user_api.py | 589 ++ .../api/contract_interactions_api.py | 961 +++ .../api/contract_templates_api.py | 2051 +++++ fireblocks_client/api/contracts_api.py | 1943 +++++ fireblocks_client/api/cosigners_beta_api.py | 1459 ++++ .../api/deployed_contracts_api.py | 897 ++ .../api/exchange_accounts_api.py | 1468 ++++ fireblocks_client/api/external_wallets_api.py | 2244 +++++ fireblocks_client/api/fiat_accounts_api.py | 1142 +++ fireblocks_client/api/gas_stations_api.py | 1126 +++ fireblocks_client/api/internal_wallets_api.py | 2244 +++++ fireblocks_client/api/job_management_api.py | 1647 ++++ .../api/network_connections_api.py | 3788 +++++++++ fireblocks_client/api/nfts_api.py | 3305 ++++++++ fireblocks_client/api/off_exchanges_api.py | 1417 ++++ fireblocks_client/api/ota_beta_api.py | 581 ++ fireblocks_client/api/payments_payout_api.py | 883 ++ .../api/policy_editor_beta_api.py | 1383 +++ fireblocks_client/api/reset_device_api.py | 320 + fireblocks_client/api/smart_transfer_api.py | 4900 +++++++++++ fireblocks_client/api/staking_beta_api.py | 2373 ++++++ fireblocks_client/api/tokenization_api.py | 1438 ++++ fireblocks_client/api/transactions_api.py | 3941 +++++++++ fireblocks_client/api/travel_rule_beta_api.py | 1508 ++++ fireblocks_client/api/user_groups_beta_api.py | 1385 +++ fireblocks_client/api/users_api.py | 279 + fireblocks_client/api/vaults_api.py | 7521 +++++++++++++++++ fireblocks_client/api/web3_connections_api.py | 1228 +++ fireblocks_client/api/webhooks_api.py | 599 ++ .../api/whitelist_ip_addresses_api.py | 305 + .../api/workspace_status_beta_api.py | 282 + fireblocks_client/api_client.py | 2068 ++--- fireblocks_client/api_response.py | 20 + fireblocks_client/apis/__init__.py | 3 - fireblocks_client/apis/path_to_api.py | 323 - fireblocks_client/apis/paths/__init__.py | 3 - fireblocks_client/apis/paths/audits.py | 7 - fireblocks_client/apis/paths/connections.py | 7 - .../apis/paths/connections_wc.py | 7 - .../apis/paths/connections_wc_id.py | 9 - fireblocks_client/apis/paths/contracts.py | 9 - .../apis/paths/contracts_contract_id.py | 9 - .../paths/contracts_contract_id_asset_id.py | 11 - .../apis/paths/estimate_network_fee.py | 7 - .../apis/paths/exchange_accounts.py | 7 - .../exchange_accounts_exchange_account_id.py | 7 - ...e_accounts_exchange_account_id_asset_id.py | 7 - ...ge_accounts_exchange_account_id_convert.py | 7 - ...s_exchange_account_id_internal_transfer.py | 7 - .../apis/paths/external_wallets.py | 9 - .../apis/paths/external_wallets_wallet_id.py | 9 - .../external_wallets_wallet_id_asset_id.py | 11 - ...l_wallets_wallet_id_set_customer_ref_id.py | 7 - fireblocks_client/apis/paths/fiat_accounts.py | 7 - .../apis/paths/fiat_accounts_account_id.py | 7 - ...unts_account_id_deposit_from_linked_dda.py | 7 - ...ccounts_account_id_redeem_to_linked_dda.py | 7 - fireblocks_client/apis/paths/gas_station.py | 7 - .../apis/paths/gas_station_asset_id.py | 7 - .../apis/paths/gas_station_configuration.py | 7 - .../gas_station_configuration_asset_id.py | 7 - .../apis/paths/internal_wallets.py | 9 - .../apis/paths/internal_wallets_wallet_id.py | 9 - .../internal_wallets_wallet_id_asset_id.py | 11 - ...l_wallets_wallet_id_set_customer_ref_id.py | 7 - .../apis/paths/management_ota.py | 9 - .../apis/paths/network_connections.py | 9 - .../network_connections_connection_id.py | 9 - ...on_id_is_third_party_routing_asset_type.py | 7 - ...ctions_connection_id_set_routing_policy.py | 7 - fireblocks_client/apis/paths/network_ids.py | 9 - .../apis/paths/network_ids_network_id.py | 9 - ...work_ids_network_id_set_discoverability.py | 7 - .../paths/network_ids_network_id_set_name.py | 7 - ...twork_ids_network_id_set_routing_policy.py | 7 - .../apis/paths/nfts_ownership_collections.py | 7 - .../apis/paths/nfts_ownership_tokens.py | 9 - .../paths/nfts_ownership_tokens_id_status.py | 7 - fireblocks_client/apis/paths/nfts_tokens.py | 7 - .../apis/paths/nfts_tokens_id.py | 9 - .../apis/paths/off_exchange_add.py | 7 - ...teral_accounts_main_exchange_account_id.py | 7 - .../apis/paths/off_exchange_remove.py | 7 - .../paths/off_exchange_settlements_trader.py | 7 - .../off_exchange_settlements_transactions.py | 7 - .../apis/paths/payments_payout.py | 7 - .../apis/paths/payments_payout_payout_id.py | 7 - ...yments_payout_payout_id_actions_execute.py | 7 - .../paths/payments_xb_settlements_configs.py | 9 - ...yments_xb_settlements_configs_config_id.py | 11 - .../paths/payments_xb_settlements_flows.py | 7 - .../payments_xb_settlements_flows_flow_id.py | 7 - ...ttlements_flows_flow_id_actions_execute.py | 7 - .../screeening_travel_rule_vasp_update.py | 7 - ...eening_travel_rule_transaction_validate.py | 7 - ...g_travel_rule_transaction_validate_full.py | 7 - .../apis/paths/screening_travel_rule_vasp.py | 7 - .../paths/screening_travel_rule_vasp_did.py | 7 - .../apis/paths/supported_assets.py | 7 - .../apis/paths/tap_active_policy.py | 7 - fireblocks_client/apis/paths/tap_draft.py | 11 - fireblocks_client/apis/paths/tap_publish.py | 7 - fireblocks_client/apis/paths/transactions.py | 9 - .../apis/paths/transactions_estimate_fee.py | 7 - ...sactions_external_tx_id_external_tx_id_.py | 7 - .../apis/paths/transactions_tx_id.py | 7 - .../apis/paths/transactions_tx_id_cancel.py | 7 - .../apis/paths/transactions_tx_id_drop.py | 7 - .../apis/paths/transactions_tx_id_freeze.py | 7 - ...ctions_tx_id_set_confirmation_threshold.py | 7 - .../apis/paths/transactions_tx_id_unfreeze.py | 7 - ...tions_validate_address_asset_id_address.py | 7 - ...hash_tx_hash_set_confirmation_threshold.py | 7 - fireblocks_client/apis/paths/users.py | 7 - fireblocks_client/apis/paths/users_groups.py | 9 - .../apis/paths/users_groups_group_id.py | 11 - .../apis/paths/vault_accounts.py | 9 - .../apis/paths/vault_accounts_paged.py | 7 - .../paths/vault_accounts_vault_account_id.py | 9 - ...ault_accounts_vault_account_id_asset_id.py | 9 - ...unts_vault_account_id_asset_id_activate.py | 7 - ...nts_vault_account_id_asset_id_addresses.py | 9 - ...ccount_id_asset_id_addresses_address_id.py | 7 - ...t_id_addresses_address_id_create_legacy.py | 7 - ...ddresses_address_id_set_customer_ref_id.py | 7 - ...ounts_vault_account_id_asset_id_balance.py | 7 - ...id_change_address_index_public_key_info.py | 7 - ...ccount_id_asset_id_max_spendable_amount.py | 7 - ...ault_account_id_asset_id_unspent_inputs.py | 7 - .../vault_accounts_vault_account_id_hide.py | 7 - ...accounts_vault_account_id_set_auto_fuel.py | 7 - ...ts_vault_account_id_set_customer_ref_id.py | 7 - .../vault_accounts_vault_account_id_unhide.py | 7 - .../apis/paths/vault_asset_wallets.py | 7 - fireblocks_client/apis/paths/vault_assets.py | 7 - .../apis/paths/vault_assets_asset_id.py | 7 - .../apis/paths/vault_public_key_info_.py | 7 - .../apis/paths/webhooks_resend.py | 7 - .../apis/paths/webhooks_resend_tx_id.py | 7 - fireblocks_client/apis/tag_to_api.py | 80 - fireblocks_client/apis/tags/__init__.py | 30 - fireblocks_client/apis/tags/audit_logs_api.py | 24 - .../apis/tags/blockchains_assets_api.py | 24 - fireblocks_client/apis/tags/contracts_api.py | 36 - .../apis/tags/exchange_accounts_api.py | 32 - .../apis/tags/external_wallets_api.py | 38 - .../apis/tags/fiat_accounts_api.py | 30 - .../apis/tags/gas_stations_api.py | 30 - .../apis/tags/internal_wallets_api.py | 38 - .../apis/tags/network_connections_api.py | 48 - fireblocks_client/apis/tags/nfts_api.py | 36 - fireblocks_client/apis/tags/nfts_beta_api.py | 36 - .../apis/tags/off_exchanges_api.py | 32 - fireblocks_client/apis/tags/ota_beta_api.py | 26 - .../payments_cross_border_settlement_api.py | 38 - .../apis/tags/payments_payout_api.py | 28 - .../apis/tags/policy_editor_beta_api.py | 32 - .../apis/tags/transactions_api.py | 48 - .../apis/tags/travel_rule_beta_api.py | 32 - fireblocks_client/apis/tags/users_api.py | 24 - .../apis/tags/users_groups_beta_api.py | 32 - fireblocks_client/apis/tags/vaults_api.py | 72 - .../apis/tags/web3_connections_api.py | 30 - fireblocks_client/apis/tags/webhooks_api.py | 26 - fireblocks_client/configuration.py | 328 +- fireblocks_client/exceptions.py | 119 +- fireblocks_client/model/__init__.py | 5 - .../model/add_collateral_request_body.py | 94 - .../model/add_collateral_request_body.pyi | 94 - .../model/aml_screening_result.py | 91 - .../model/aml_screening_result.pyi | 91 - .../amount_aggregation_time_period_method.py | 54 - .../amount_aggregation_time_period_method.pyi | 47 - fireblocks_client/model/amount_info.py | 111 - fireblocks_client/model/amount_info.pyi | 111 - .../model/asset_type_response.py | 198 - .../model/asset_type_response.pyi | 183 - fireblocks_client/model/asset_wallet.py | 179 - fireblocks_client/model/asset_wallet.pyi | 179 - .../model/authorization_groups.py | 147 - .../model/authorization_groups.pyi | 138 - fireblocks_client/model/authorization_info.py | 148 - .../model/authorization_info.pyi | 141 - fireblocks_client/model/block_info.py | 92 - fireblocks_client/model/block_info.pyi | 92 - .../model/cancel_transaction_response.py | 79 - .../model/cancel_transaction_response.pyi | 79 - .../model/collection_ownership_response.py | 170 - .../model/collection_ownership_response.pyi | 161 - .../model/config_change_request_status.py | 65 - .../model/config_change_request_status.pyi | 55 - .../model/create_address_response.py | 119 - .../model/create_address_response.pyi | 119 - .../model/create_connection_request.py | 162 - .../model/create_connection_request.pyi | 155 - .../model/create_connection_response.py | 133 - .../model/create_connection_response.pyi | 133 - .../model/create_internal_transfer_request.py | 117 - .../create_internal_transfer_request.pyi | 117 - .../model/create_payout_request.py | 127 - .../model/create_payout_request.pyi | 127 - .../model/create_transaction_response.py | 104 - .../model/create_transaction_response.pyi | 104 - .../model/create_users_group_response.py | 131 - .../model/create_users_group_response.pyi | 131 - .../model/create_vault_asset_response.py | 149 - .../model/create_vault_asset_response.pyi | 149 - .../model/custom_crypto_routing_dest.py | 143 - .../model/custom_crypto_routing_dest.pyi | 130 - .../model/custom_fiat_routing_dest.py | 138 - .../model/custom_fiat_routing_dest.pyi | 126 - .../model/default_network_routing_dest.py | 99 - .../model/default_network_routing_dest.pyi | 93 - .../model/destination_transfer_peer_path.py | 125 - .../model/destination_transfer_peer_path.pyi | 125 - ...destination_transfer_peer_path_response.py | 148 - ...estination_transfer_peer_path_response.pyi | 148 - .../model/dispatch_payout_response.py | 84 - .../model/dispatch_payout_response.pyi | 84 - fireblocks_client/model/draft_response.py | 153 - fireblocks_client/model/draft_response.pyi | 153 - .../draft_review_and_validation_response.py | 107 - .../draft_review_and_validation_response.pyi | 107 - .../model/drop_transaction_request.py | 99 - .../model/drop_transaction_request.pyi | 99 - .../model/drop_transaction_response.py | 111 - .../model/drop_transaction_response.pyi | 111 - fireblocks_client/model/error.py | 89 - fireblocks_client/model/error.pyi | 89 - fireblocks_client/model/error_response.py | 195 - fireblocks_client/model/error_response.pyi | 183 - .../model/estimated_network_fee_response.py | 119 - .../model/estimated_network_fee_response.pyi | 119 - .../estimated_transaction_fee_response.py | 119 - .../estimated_transaction_fee_response.pyi | 119 - fireblocks_client/model/exchange_account.py | 206 - fireblocks_client/model/exchange_account.pyi | 206 - fireblocks_client/model/exchange_asset.py | 119 - fireblocks_client/model/exchange_asset.pyi | 119 - .../model/exchange_trading_account.py | 126 - .../model/exchange_trading_account.pyi | 126 - fireblocks_client/model/exchange_type.py | 170 - fireblocks_client/model/exchange_type.pyi | 139 - .../model/external_wallet_asset.py | 180 - .../model/external_wallet_asset.pyi | 180 - fireblocks_client/model/fee_info.py | 101 - fireblocks_client/model/fee_info.pyi | 101 - fireblocks_client/model/fiat_account.py | 150 - fireblocks_client/model/fiat_account.pyi | 150 - fireblocks_client/model/fiat_account_type.py | 45 - fireblocks_client/model/fiat_account_type.pyi | 39 - fireblocks_client/model/fiat_asset.py | 89 - fireblocks_client/model/fiat_asset.pyi | 89 - .../model/freeze_transaction_response.py | 79 - .../model/freeze_transaction_response.pyi | 79 - .../model/gas_station_configuration.py | 99 - .../model/gas_station_configuration.pyi | 99 - .../model/gas_station_properties_response.py | 103 - .../model/gas_station_properties_response.pyi | 103 - .../model/get_connections_response.py | 125 - .../model/get_connections_response.pyi | 125 - .../model/get_settlement_response.py | 25 - .../model/get_settlement_response.pyi | 25 - .../model/get_transaction_operation.py | 117 - .../model/get_transaction_operation.pyi | 100 - fireblocks_client/model/get_users_response.py | 106 - .../model/get_users_response.pyi | 106 - fireblocks_client/model/instruction_amount.py | 96 - .../model/instruction_amount.pyi | 96 - .../model/media_entity_response.py | 151 - .../model/media_entity_response.pyi | 137 - fireblocks_client/model/ncw.py | 79 - fireblocks_client/model/ncw.pyi | 79 - fireblocks_client/model/network_channel.py | 91 - fireblocks_client/model/network_channel.pyi | 91 - fireblocks_client/model/network_connection.py | 111 - .../model/network_connection.pyi | 111 - .../model/network_connection_response.py | 239 - .../model/network_connection_response.pyi | 239 - .../network_connection_routing_policy.py | 309 - .../network_connection_routing_policy.pyi | 309 - fireblocks_client/model/network_fee.py | 119 - fireblocks_client/model/network_fee.pyi | 119 - fireblocks_client/model/network_id.py | 96 - fireblocks_client/model/network_id.pyi | 96 - .../model/network_id_response.py | 132 - .../model/network_id_response.pyi | 132 - .../model/network_id_routing_policy.py | 303 - .../model/network_id_routing_policy.pyi | 303 - fireblocks_client/model/network_record.py | 212 - fireblocks_client/model/network_record.pyi | 212 - .../model/none_network_routing_dest.py | 99 - .../model/none_network_routing_dest.pyi | 93 - fireblocks_client/model/one_time_address.py | 94 - fireblocks_client/model/one_time_address.pyi | 94 - .../model/paginated_asset_wallet_response.py | 175 - .../model/paginated_asset_wallet_response.pyi | 175 - fireblocks_client/model/paging.py | 84 - fireblocks_client/model/paging.pyi | 84 - fireblocks_client/model/payee_account.py | 101 - fireblocks_client/model/payee_account.pyi | 101 - .../model/payee_account_response.py | 94 - .../model/payee_account_response.pyi | 94 - fireblocks_client/model/payee_account_type.py | 78 - .../model/payee_account_type.pyi | 67 - fireblocks_client/model/payment_account.py | 101 - fireblocks_client/model/payment_account.pyi | 101 - .../model/payment_account_response.py | 94 - .../model/payment_account_response.pyi | 94 - .../model/payment_account_type.py | 55 - .../model/payment_account_type.pyi | 47 - fireblocks_client/model/payout_init_method.py | 50 - .../model/payout_init_method.pyi | 43 - fireblocks_client/model/payout_instruction.py | 115 - .../model/payout_instruction.pyi | 115 - .../model/payout_instruction_response.py | 169 - .../model/payout_instruction_response.pyi | 169 - .../model/payout_instruction_state.py | 78 - .../model/payout_instruction_state.pyi | 67 - fireblocks_client/model/payout_response.py | 217 - fireblocks_client/model/payout_response.pyi | 217 - fireblocks_client/model/payout_state.py | 96 - fireblocks_client/model/payout_state.pyi | 82 - fireblocks_client/model/payout_status.py | 78 - fireblocks_client/model/payout_status.pyi | 67 - .../model/policy_and_validation_response.py | 107 - .../model/policy_and_validation_response.pyi | 107 - .../model/policy_check_result.py | 125 - .../model/policy_check_result.pyi | 125 - fireblocks_client/model/policy_metadata.py | 111 - fireblocks_client/model/policy_metadata.pyi | 111 - fireblocks_client/model/policy_response.py | 129 - fireblocks_client/model/policy_response.pyi | 129 - fireblocks_client/model/policy_rule.py | 1749 ---- fireblocks_client/model/policy_rule.pyi | 1680 ---- .../model/policy_rule_check_result.py | 157 - .../model/policy_rule_check_result.pyi | 150 - fireblocks_client/model/policy_rule_error.py | 177 - fireblocks_client/model/policy_rule_error.pyi | 163 - .../model/policy_src_or_dest_id.py | 25 - .../model/policy_src_or_dest_id.pyi | 25 - .../model/policy_src_or_dest_sub_type.py | 72 - .../model/policy_src_or_dest_sub_type.pyi | 62 - .../model/policy_src_or_dest_type.py | 90 - .../model/policy_src_or_dest_type.pyi | 77 - fireblocks_client/model/policy_status.py | 84 - fireblocks_client/model/policy_status.pyi | 72 - fireblocks_client/model/policy_validation.py | 103 - fireblocks_client/model/policy_validation.pyi | 103 - .../model/public_key_information.py | 121 - .../model/public_key_information.pyi | 121 - fireblocks_client/model/publish_result.py | 161 - fireblocks_client/model/publish_result.pyi | 161 - .../model/remove_collateral_request_body.py | 94 - .../model/remove_collateral_request_body.pyi | 94 - fireblocks_client/model/request_options.py | 94 - fireblocks_client/model/request_options.pyi | 94 - .../model/resend_webhooks_response.py | 79 - .../model/resend_webhooks_response.pyi | 79 - .../model/respond_to_connection_request.py | 84 - .../model/respond_to_connection_request.pyi | 84 - fireblocks_client/model/reward_info.py | 91 - fireblocks_client/model/reward_info.pyi | 91 - fireblocks_client/model/rewards_info.py | 79 - fireblocks_client/model/rewards_info.pyi | 79 - fireblocks_client/model/session_dto.py | 299 - fireblocks_client/model/session_dto.pyi | 278 - fireblocks_client/model/session_metadata.py | 114 - fireblocks_client/model/session_metadata.pyi | 114 - .../set_confirmations_threshold_request.py | 79 - .../set_confirmations_threshold_request.pyi | 79 - .../set_confirmations_threshold_response.py | 111 - .../set_confirmations_threshold_response.pyi | 111 - .../model/settlement_request_body.py | 79 - .../model/settlement_request_body.pyi | 79 - .../model/settlement_response.py | 122 - .../model/settlement_response.pyi | 122 - fireblocks_client/model/signed_message.py | 242 - fireblocks_client/model/signed_message.pyi | 235 - .../source_transfer_peer_path_response.py | 148 - .../source_transfer_peer_path_response.pyi | 148 - .../model/system_message_info.py | 109 - .../model/system_message_info.pyi | 102 - fireblocks_client/model/term.py | 129 - fireblocks_client/model/term.pyi | 129 - .../model/to_collateral_transaction.py | 119 - .../model/to_collateral_transaction.pyi | 119 - .../model/to_exchange_transaction.py | 109 - .../model/to_exchange_transaction.pyi | 109 - .../model/token_collection_response.py | 108 - .../model/token_collection_response.pyi | 108 - .../model/token_ownership_response.py | 327 - .../model/token_ownership_response.pyi | 318 - fireblocks_client/model/token_response.py | 279 - fireblocks_client/model/token_response.pyi | 270 - .../model/trading_account_type.py | 110 - .../model/trading_account_type.pyi | 91 - fireblocks_client/model/transaction.py | 221 - fireblocks_client/model/transaction.pyi | 197 - fireblocks_client/model/transaction_fee.py | 129 - fireblocks_client/model/transaction_fee.pyi | 129 - .../model/transaction_operation.py | 78 - .../model/transaction_operation.pyi | 67 - .../model/transaction_request.py | 677 -- .../model/transaction_request.pyi | 669 -- .../model/transaction_request_destination.py | 94 - .../model/transaction_request_destination.pyi | 94 - .../model/transaction_response.py | 768 -- .../model/transaction_response.pyi | 761 -- .../model/transaction_response_destination.py | 152 - .../transaction_response_destination.pyi | 152 - fireblocks_client/model/transfer_peer_path.py | 359 - .../model/transfer_peer_path.pyi | 306 - .../model/travel_rule_address.py | 120 - .../model/travel_rule_address.pyi | 120 - .../travel_rule_get_all_vasps_response.py | 111 - .../travel_rule_get_all_vasps_response.pyi | 111 - fireblocks_client/model/travel_rule_issuer.py | 84 - .../model/travel_rule_issuer.pyi | 84 - .../model/travel_rule_issuers.py | 284 - .../model/travel_rule_issuers.pyi | 284 - .../model/travel_rule_ownership_proof.py | 144 - .../model/travel_rule_ownership_proof.pyi | 144 - .../model/travel_rule_pii_ivms.py | 180 - .../model/travel_rule_pii_ivms.pyi | 180 - ...travel_rule_transaction_blockchain_info.py | 108 - ...ravel_rule_transaction_blockchain_info.pyi | 108 - .../model/travel_rule_update_vasp_details.py | 96 - .../model/travel_rule_update_vasp_details.pyi | 96 - ..._rule_validate_full_transaction_request.py | 502 -- ...rule_validate_full_transaction_request.pyi | 502 -- ...ravel_rule_validate_transaction_request.py | 241 - ...avel_rule_validate_transaction_request.pyi | 241 - ...avel_rule_validate_transaction_response.py | 178 - ...vel_rule_validate_transaction_response.pyi | 178 - fireblocks_client/model/travel_rule_vasp.py | 629 -- fireblocks_client/model/travel_rule_vasp.pyi | 629 -- .../model/unfreeze_transaction_response.py | 79 - .../model/unfreeze_transaction_response.pyi | 79 - fireblocks_client/model/unmanaged_wallet.py | 147 - fireblocks_client/model/unmanaged_wallet.pyi | 147 - fireblocks_client/model/unsigned_message.py | 136 - fireblocks_client/model/unsigned_message.pyi | 136 - fireblocks_client/model/unspent_input.py | 89 - fireblocks_client/model/unspent_input.pyi | 89 - .../model/unspent_inputs_response.py | 124 - .../model/unspent_inputs_response.pyi | 124 - .../update_token_ownership_status_dto.py | 104 - .../update_token_ownership_status_dto.pyi | 97 - .../model/user_group_create_request.py | 111 - .../model/user_group_create_request.pyi | 111 - .../model/user_group_create_response.py | 131 - .../model/user_group_create_response.pyi | 131 - .../model/user_group_update_request.py | 111 - .../model/user_group_update_request.pyi | 111 - fireblocks_client/model/user_response.py | 129 - fireblocks_client/model/user_response.pyi | 129 - .../model/users_group_response.py | 131 - .../model/users_group_response.pyi | 131 - .../model/users_groups_response.py | 57 - .../model/users_groups_response.pyi | 57 - .../model/validate_address_response.py | 99 - .../model/validate_address_response.pyi | 99 - fireblocks_client/model/vault_account.py | 156 - fireblocks_client/model/vault_account.pyi | 156 - .../model/vault_accounts_paged_response.py | 195 - .../model/vault_accounts_paged_response.pyi | 195 - fireblocks_client/model/vault_asset.py | 244 - fireblocks_client/model/vault_asset.pyi | 244 - .../model/vault_wallet_address.py | 199 - .../model/vault_wallet_address.pyi | 192 - fireblocks_client/model/wallet_asset.py | 144 - fireblocks_client/model/wallet_asset.pyi | 144 - .../model/wallet_asset_additional_info.py | 229 - .../model/wallet_asset_additional_info.pyi | 229 - .../model/xb_settlement_asset.py | 99 - .../model/xb_settlement_asset.pyi | 99 - .../model/xb_settlement_asset_id.py | 69 - .../model/xb_settlement_asset_id.pyi | 69 - ...settlement_config_creation_request_body.py | 131 - ...ettlement_config_creation_request_body.pyi | 131 - .../xb_settlement_config_creation_response.py | 25 - ...xb_settlement_config_creation_response.pyi | 25 - .../xb_settlement_config_deletion_response.py | 25 - ...xb_settlement_config_deletion_response.pyi | 25 - .../xb_settlement_config_edit_request_body.py | 115 - ...xb_settlement_config_edit_request_body.pyi | 115 - .../xb_settlement_config_edit_response.py | 25 - .../xb_settlement_config_edit_response.pyi | 25 - .../model/xb_settlement_config_id.py | 25 - .../model/xb_settlement_config_id.pyi | 25 - .../model/xb_settlement_config_model.py | 157 - .../model/xb_settlement_config_model.pyi | 157 - .../model/xb_settlement_config_step.py | 101 - .../model/xb_settlement_config_step.pyi | 101 - .../xb_settlement_config_steps_record.py | 164 - .../xb_settlement_config_steps_record.pyi | 164 - ...lement_conversion_slippage_basis_points.py | 42 - ...ement_conversion_slippage_basis_points.pyi | 38 - .../model/xb_settlement_corridor_id.py | 72 - .../model/xb_settlement_corridor_id.pyi | 62 - .../xb_settlement_create_flow_request_body.py | 96 - ...xb_settlement_create_flow_request_body.pyi | 96 - .../xb_settlement_create_flow_response.py | 25 - .../xb_settlement_create_flow_response.pyi | 25 - .../model/xb_settlement_crypto_asset.py | 53 - .../model/xb_settlement_crypto_asset.pyi | 46 - .../model/xb_settlement_fiat_asset.py | 65 - .../model/xb_settlement_fiat_asset.pyi | 55 - .../xb_settlement_flow_execution_model.py | 281 - .../xb_settlement_flow_execution_model.pyi | 281 - ..._settlement_flow_execution_request_body.py | 84 - ...settlement_flow_execution_request_body.pyi | 84 - .../xb_settlement_flow_execution_response.py | 25 - .../xb_settlement_flow_execution_response.pyi | 25 - .../xb_settlement_flow_execution_status.py | 60 - .../xb_settlement_flow_execution_status.pyi | 51 - .../xb_settlement_flow_execution_step.py | 187 - .../xb_settlement_flow_execution_step.pyi | 187 - ...b_settlement_flow_execution_step_status.py | 60 - ..._settlement_flow_execution_step_status.pyi | 51 - .../model/xb_settlement_flow_preview_model.py | 183 - .../xb_settlement_flow_preview_model.pyi | 183 - ...low_selected_conversion_slippage_reason.py | 55 - ...ow_selected_conversion_slippage_reason.pyi | 47 - .../model/xb_settlement_flow_setup_step.py | 155 - .../model/xb_settlement_flow_setup_step.pyi | 155 - ..._settlement_flow_steps_execution_record.py | 87 - ...settlement_flow_steps_execution_record.pyi | 87 - .../model/xb_settlement_flow_steps_record.py | 87 - .../model/xb_settlement_flow_steps_record.pyi | 87 - .../xb_settlement_get_all_configs_response.py | 111 - ...xb_settlement_get_all_configs_response.pyi | 111 - .../xb_settlement_get_config_response.py | 25 - .../xb_settlement_get_config_response.pyi | 25 - .../model/xb_settlement_get_flow_response.py | 98 - .../model/xb_settlement_get_flow_response.pyi | 98 - .../model/xb_settlement_step_type.py | 66 - .../model/xb_settlement_step_type.pyi | 57 - fireblocks_client/models/__init__.py | 631 +- fireblocks_client/models/abi_function.py | 130 + fireblocks_client/models/account.py | 91 + fireblocks_client/models/account_type.py | 41 + .../add_asset_to_external_wallet_request.py | 138 + ...asset_to_external_wallet_request_one_of.py | 90 + ...sset_to_external_wallet_request_one_of1.py | 92 + ..._wallet_request_one_of1_additional_info.py | 152 + ..._request_one_of1_additional_info_one_of.py | 108 + ...request_one_of1_additional_info_one_of1.py | 108 + ...request_one_of1_additional_info_one_of2.py | 90 + .../models/add_collateral_request_body.py | 94 + .../models/add_contract_asset_request.py | 90 + .../models/additional_info_dto.py | 92 + .../models/aml_registration_result.py | 92 + .../models/aml_screening_result.py | 90 + .../amount_aggregation_time_period_method.py | 38 + .../models/amount_and_chain_descriptor.py | 90 + fireblocks_client/models/amount_info.py | 94 + fireblocks_client/models/api_key.py | 91 + .../models/api_keys_paginated_response.py | 103 + fireblocks_client/models/api_user.py | 101 + .../models/asset_already_exist_http_error.py | 92 + fireblocks_client/models/asset_amount.py | 90 + .../asset_bad_request_error_response.py | 90 + .../models/asset_conflict_error_response.py | 90 + .../models/asset_does_not_exist_http_error.py | 92 + .../models/asset_forbidden_error_response.py | 90 + .../asset_internal_server_error_response.py | 90 + .../models/asset_metadata_dto.py | 112 + .../models/asset_not_found_error_response.py | 90 + fireblocks_client/models/asset_response.py | 109 + .../models/asset_response_metadata.py | 97 + .../models/asset_response_onchain.py | 96 + .../models/asset_type_response.py | 98 + fireblocks_client/models/asset_wallet.py | 108 + fireblocks_client/models/audit_log_data.py | 102 + fireblocks_client/models/auditor_data.py | 92 + .../models/authorization_groups.py | 100 + .../models/authorization_info.py | 110 + fireblocks_client/models/block_info.py | 95 + .../models/cancel_transaction_response.py | 88 + .../models/chain_info_response_dto.py | 100 + .../models/collection_metadata_dto.py | 98 + .../models/collection_ownership_response.py | 105 + fireblocks_client/models/compliance_result.py | 136 + .../models/compliance_screening_result.py | 106 + .../models/config_change_request_status.py | 41 + .../config_conversion_operation_snapshot.py | 97 + .../config_disbursement_operation_snapshot.py | 97 + fireblocks_client/models/config_operation.py | 152 + .../models/config_operation_snapshot.py | 152 + .../models/config_operation_status.py | 40 + .../config_transfer_operation_snapshot.py | 97 + fireblocks_client/models/console_user.py | 105 + .../models/contract_abi_response_dto.py | 105 + .../models/contract_attributes.py | 96 + .../models/contract_deploy_request.py | 100 + .../models/contract_deploy_response.py | 88 + fireblocks_client/models/contract_doc.py | 109 + .../models/contract_metadata_dto.py | 96 + .../models/contract_template_dto.py | 156 + .../models/contract_upload_request.py | 135 + .../models/conversion_config_operation.py | 106 + .../conversion_operation_config_params.py | 97 + .../models/conversion_operation_execution.py | 108 + .../conversion_operation_execution_output.py | 99 + .../conversion_operation_execution_params.py | 94 + ...ation_execution_params_execution_params.py | 97 + .../models/conversion_operation_failure.py | 97 + .../models/conversion_operation_preview.py | 104 + .../conversion_operation_preview_output.py | 101 + .../models/conversion_operation_type.py | 37 + .../models/conversion_validation_failure.py | 97 + .../models/convert_assets_request.py | 92 + .../models/convert_assets_response.py | 88 + fireblocks_client/models/cosigner.py | 97 + .../models/cosigners_paginated_response.py | 103 + .../models/create_address_request.py | 90 + .../models/create_address_response.py | 96 + fireblocks_client/models/create_api_user.py | 96 + .../models/create_assets_bulk_request.py | 92 + .../models/create_assets_request.py | 88 + .../models/create_config_operation_request.py | 152 + .../models/create_connection_request.py | 138 + .../models/create_connection_response.py | 94 + .../models/create_console_user.py | 94 + .../models/create_contract_request.py | 88 + ...ate_conversion_config_operation_request.py | 95 + ...e_disbursement_config_operation_request.py | 95 + .../create_internal_transfer_request.py | 95 + .../create_internal_wallet_asset_request.py | 90 + .../create_multiple_accounts_request.py | 90 + .../models/create_ncw_connection_request.py | 103 + .../models/create_network_id_request.py | 103 + .../models/create_payout_request.py | 102 + .../models/create_token_request_dto.py | 100 + .../create_token_request_dto_create_params.py | 138 + .../models/create_transaction_response.py | 96 + ...reate_transfer_config_operation_request.py | 95 + .../models/create_user_group_response.py | 94 + ...create_vault_account_connection_request.py | 101 + .../models/create_vault_account_request.py | 94 + .../models/create_vault_asset_response.py | 102 + .../models/create_wallet_request.py | 90 + ...workflow_execution_request_params_inner.py | 150 + .../models/custom_routing_dest.py | 106 + .../models/default_network_routing_dest.py | 95 + fireblocks_client/models/delegation_dto.py | 130 + .../models/delegation_summary_dto.py | 123 + .../delete_network_connection_response.py | 88 + .../models/delete_network_id_response.py | 88 + .../models/deployed_contract_response_dto.py | 96 + .../deployed_contracts_paginated_response.py | 103 + .../deposit_funds_from_linked_dda_response.py | 88 + fireblocks_client/models/destination.py | 138 + .../models/destination_transfer_peer_path.py | 104 + ...destination_transfer_peer_path_response.py | 102 + .../models/disbursement_amount_instruction.py | 96 + .../models/disbursement_config_operation.py | 106 + .../models/disbursement_instruction.py | 138 + .../models/disbursement_instruction_output.py | 103 + .../disbursement_operation_config_params.py | 102 + .../disbursement_operation_execution.py | 110 + ...disbursement_operation_execution_output.py | 96 + ...disbursement_operation_execution_params.py | 94 + ...ation_execution_params_execution_params.py | 104 + .../models/disbursement_operation_input.py | 104 + .../models/disbursement_operation_preview.py | 104 + .../disbursement_operation_preview_output.py | 96 + ...on_preview_output_instruction_set_inner.py | 105 + .../models/disbursement_operation_type.py | 37 + .../disbursement_percentage_instruction.py | 96 + .../models/disbursement_validation_failure.py | 97 + .../models/dispatch_payout_response.py | 88 + fireblocks_client/models/draft_response.py | 106 + .../draft_review_and_validation_response.py | 98 + .../models/drop_transaction_request.py | 92 + .../models/drop_transaction_response.py | 92 + ...edit_gas_station_configuration_response.py | 88 + fireblocks_client/models/error_response.py | 92 + .../models/error_response_error.py | 97 + fireblocks_client/models/error_schema.py | 90 + .../models/estimated_network_fee_response.py | 102 + .../estimated_transaction_fee_response.py | 102 + .../models/evm_token_create_params_dto.py | 103 + fireblocks_client/models/exchange_account.py | 121 + .../models/exchange_accounts_paged.py | 106 + .../models/exchange_accounts_paged_paging.py | 90 + fireblocks_client/models/exchange_asset.py | 96 + ...change_settlement_transactions_response.py | 106 + .../models/exchange_trading_account.py | 100 + fireblocks_client/models/exchange_type.py | 62 + .../models/execute_action_request.py | 152 + .../models/execute_action_response.py | 158 + .../models/execution_conversion_operation.py | 112 + .../execution_disbursement_operation.py | 112 + .../models/execution_operation_status.py | 48 + .../models/execution_screening_operation.py | 106 + .../models/execution_transfer_operation.py | 112 + .../models/external_wallet_asset.py | 111 + fireblocks_client/models/fee_info.py | 92 + fireblocks_client/models/fiat_account.py | 110 + fireblocks_client/models/fiat_account_type.py | 37 + fireblocks_client/models/fiat_asset.py | 90 + .../models/freeze_transaction_response.py | 88 + fireblocks_client/models/function_doc.py | 92 + fireblocks_client/models/funds.py | 88 + .../models/gas_station_configuration.py | 92 + .../gas_station_configuration_response.py | 97 + .../models/gas_station_properties_response.py | 94 + .../models/get_api_users_response.py | 96 + .../models/get_audit_logs_response.py | 105 + .../models/get_audit_logs_response_dto.py | 97 + .../models/get_connections_response.py | 102 + .../models/get_console_users_response.py | 96 + .../models/get_filter_parameter.py | 100 + .../get_max_spendable_amount_response.py | 88 + fireblocks_client/models/get_nfts_response.py | 102 + .../models/get_ota_status_response.py | 88 + .../models/get_ownership_tokens_response.py | 102 + .../models/get_transaction_operation.py | 48 + .../get_whitelist_ip_addresses_response.py | 95 + .../models/get_workspace_status_response.py | 88 + .../http_contract_does_not_exist_error.py | 90 + .../models/instruction_amount.py | 90 + .../models/internal_transfer_response.py | 88 + fireblocks_client/models/job.py | 110 + fireblocks_client/models/job_created.py | 88 + fireblocks_client/models/lean_abi_function.py | 100 + fireblocks_client/models/lean_contract_dto.py | 122 + .../lean_deployed_contract_response_dto.py | 94 + .../models/list_owned_collections_response.py | 102 + .../models/list_owned_tokens_response.py | 102 + .../models/media_entity_response.py | 97 + fireblocks_client/models/network_channel.py | 90 + .../models/network_connection.py | 105 + .../models/network_connection_response.py | 128 + ...network_connection_routing_policy_value.py | 152 + .../models/network_connection_status.py | 45 + fireblocks_client/models/network_fee.py | 96 + fireblocks_client/models/network_id.py | 90 + .../models/network_id_response.py | 107 + .../models/network_id_routing_policy_value.py | 138 + fireblocks_client/models/network_record.py | 124 + .../models/none_network_routing_dest.py | 95 + .../models/not_found_exception.py | 92 + fireblocks_client/models/one_time_address.py | 90 + .../models/one_time_address_account.py | 90 + .../models/operation_execution_failure.py | 90 + .../models/paginated_address_response.py | 102 + .../paginated_address_response_paging.py | 90 + .../models/paginated_asset_wallet_response.py | 102 + .../paginated_asset_wallet_response_paging.py | 90 + fireblocks_client/models/paging.py | 88 + fireblocks_client/models/parameter.py | 105 + .../models/parameter_with_value.py | 114 + fireblocks_client/models/payee_account.py | 91 + .../models/payee_account_response.py | 91 + .../models/payee_account_type.py | 42 + fireblocks_client/models/payment_account.py | 91 + .../models/payment_account_response.py | 91 + .../models/payment_account_type.py | 39 + .../models/payout_init_method.py | 38 + .../models/payout_instruction.py | 100 + .../models/payout_instruction_response.py | 113 + .../models/payout_instruction_state.py | 42 + fireblocks_client/models/payout_response.py | 119 + fireblocks_client/models/payout_state.py | 45 + fireblocks_client/models/payout_status.py | 42 + .../models/policy_and_validation_response.py | 98 + .../models/policy_check_result.py | 98 + fireblocks_client/models/policy_metadata.py | 94 + fireblocks_client/models/policy_response.py | 102 + fireblocks_client/models/policy_rule.py | 226 + .../models/policy_rule_amount.py | 139 + .../models/policy_rule_amount_aggregation.py | 93 + .../policy_rule_authorization_groups.py | 110 + ..._rule_authorization_groups_groups_inner.py | 92 + .../models/policy_rule_check_result.py | 107 + .../models/policy_rule_designated_signers.py | 90 + fireblocks_client/models/policy_rule_dst.py | 102 + fireblocks_client/models/policy_rule_error.py | 101 + .../models/policy_rule_operators.py | 104 + .../models/policy_rule_raw_message_signing.py | 94 + ...ule_raw_message_signing_derivation_path.py | 88 + fireblocks_client/models/policy_rule_src.py | 102 + fireblocks_client/models/policy_rules.py | 96 + .../models/policy_src_or_dest_sub_type.py | 41 + .../models/policy_src_or_dest_type.py | 44 + fireblocks_client/models/policy_status.py | 43 + fireblocks_client/models/policy_validation.py | 94 + fireblocks_client/models/pre_screening.py | 88 + fireblocks_client/models/provider_dto.py | 106 + .../models/public_key_information.py | 92 + .../models/publish_draft_request.py | 88 + fireblocks_client/models/publish_result.py | 111 + fireblocks_client/models/read_abi_function.py | 121 + .../models/read_call_function_dto.py | 96 + .../redeem_funds_to_linked_dda_response.py | 88 + .../models/register_new_asset_request.py | 92 + .../models/related_transaction_dto.py | 90 + .../models/remove_collateral_request_body.py | 94 + fireblocks_client/models/rename_cosigner.py | 93 + .../models/rename_vault_account_response.py | 90 + .../resend_transaction_webhooks_request.py | 90 + ...end_webhooks_by_transaction_id_response.py | 88 + .../models/resend_webhooks_response.py | 88 + .../models/respond_to_connection_request.py | 88 + fireblocks_client/models/reward_info.py | 90 + fireblocks_client/models/rewards_info.py | 88 + .../screening_configurations_request.py | 92 + .../models/screening_operation_execution.py | 102 + .../screening_operation_execution_output.py | 96 + .../models/screening_operation_failure.py | 101 + .../models/screening_operation_type.py | 37 + .../models/screening_policy_response.py | 101 + ...g_provider_rules_configuration_response.py | 125 + ...screening_update_configurations_request.py | 90 + .../models/screening_validation_failure.py | 97 + fireblocks_client/models/screening_verdict.py | 113 + .../models/screening_verdict_matched_rule.py | 90 + fireblocks_client/models/session_dto.py | 130 + fireblocks_client/models/session_metadata.py | 94 + .../set_admin_quorum_threshold_request.py | 88 + .../set_admin_quorum_threshold_response.py | 88 + .../models/set_auto_fuel_request.py | 88 + .../set_confirmations_threshold_request.py | 88 + .../set_confirmations_threshold_response.py | 90 + ...set_customer_ref_id_for_address_request.py | 88 + .../models/set_customer_ref_id_request.py | 88 + .../set_network_id_discoverability_request.py | 88 + .../models/set_network_id_name_request.py | 88 + .../models/set_network_id_response.py | 88 + .../set_network_id_routing_policy_request.py | 101 + .../models/set_ota_status_request.py | 88 + .../models/set_ota_status_response.py | 141 + .../models/set_ota_status_response_one_of.py | 88 + .../models/set_routing_policy_request.py | 101 + .../models/set_routing_policy_response.py | 88 + .../models/settlement_request_body.py | 88 + .../models/settlement_response.py | 100 + fireblocks_client/models/signed_message.py | 110 + .../models/signed_message_signature.py | 94 + .../smart_transfer_bad_request_response.py | 90 + .../models/smart_transfer_create_ticket.py | 116 + .../smart_transfer_create_ticket_term.py | 94 + .../smart_transfer_forbidden_response.py | 90 + .../models/smart_transfer_fund_term.py | 102 + .../smart_transfer_manually_fund_term.py | 89 + .../smart_transfer_not_found_response.py | 90 + .../smart_transfer_set_ticket_expiration.py | 89 + .../smart_transfer_set_ticket_external_id.py | 89 + .../models/smart_transfer_set_user_groups.py | 88 + .../models/smart_transfer_submit_ticket.py | 89 + .../models/smart_transfer_ticket.py | 159 + ...smart_transfer_ticket_filtered_response.py | 105 + .../models/smart_transfer_ticket_response.py | 104 + .../models/smart_transfer_ticket_term.py | 149 + .../smart_transfer_ticket_term_response.py | 104 + .../smart_transfer_update_ticket_term.py | 94 + .../models/smart_transfer_user_groups.py | 93 + .../smart_transfer_user_groups_response.py | 104 + .../models/solana_blockchain_data_dto.py | 88 + .../models/source_transfer_peer_path.py | 98 + .../source_transfer_peer_path_response.py | 102 + .../models/spam_ownership_response.py | 97 + .../models/spam_token_response.py | 88 + .../models/src_or_dest_attributes_inner.py | 152 + fireblocks_client/models/stake_request_dto.py | 98 + .../models/stake_response_dto.py | 88 + .../stellar_ripple_create_params_dto.py | 92 + .../models/system_message_info.py | 100 + fireblocks_client/models/task.py | 100 + .../models/templates_paginated_response.py | 103 + .../models/third_party_routing.py | 90 + .../models/to_collateral_transaction.py | 96 + .../models/to_exchange_transaction.py | 94 + .../models/token_collection_response.py | 92 + fireblocks_client/models/token_link_dto.py | 119 + .../models/token_link_dto_token_metadata.py | 152 + .../models/token_link_exists_http_error.py | 92 + .../models/token_link_request_dto.py | 99 + .../models/token_ownership_response.py | 152 + .../token_ownership_spam_update_payload.py | 90 + .../token_ownership_status_update_payload.py | 97 + fireblocks_client/models/token_response.py | 131 + .../models/tokens_paginated_response.py | 103 + .../models/trading_account_type.py | 50 + fireblocks_client/models/transaction.py | 101 + fireblocks_client/models/transaction_fee.py | 102 + .../models/transaction_operation.py | 42 + .../models/transaction_request.py | 198 + .../models/transaction_request_amount.py | 144 + .../models/transaction_request_destination.py | 94 + .../models/transaction_request_fee.py | 144 + .../models/transaction_request_gas_limit.py | 144 + .../models/transaction_request_gas_price.py | 144 + .../models/transaction_request_network_fee.py | 144 + .../transaction_request_network_staking.py | 144 + .../transaction_request_priority_fee.py | 144 + .../models/transaction_response.py | 266 + ...ion_response_contract_call_decoded_data.py | 90 + .../transaction_response_destination.py | 122 + .../models/transfer_config_operation.py | 106 + .../transfer_operation_config_params.py | 102 + .../models/transfer_operation_execution.py | 110 + .../transfer_operation_execution_output.py | 97 + .../transfer_operation_execution_params.py | 94 + ...ation_execution_params_execution_params.py | 102 + .../models/transfer_operation_failure.py | 101 + .../models/transfer_operation_failure_data.py | 92 + .../models/transfer_operation_preview.py | 104 + .../transfer_operation_preview_output.py | 101 + .../models/transfer_operation_type.py | 37 + .../models/transfer_peer_path_sub_type.py | 68 + .../models/transfer_peer_path_type.py | 48 + .../models/transfer_validation_failure.py | 97 + .../models/travel_rule_address.py | 94 + .../travel_rule_create_transaction_request.py | 133 + .../travel_rule_get_all_vasps_response.py | 96 + .../models/travel_rule_issuer.py | 88 + .../models/travel_rule_issuers.py | 157 + .../models/travel_rule_ownership_proof.py | 90 + .../models/travel_rule_pii_ivms.py | 104 + .../travel_rule_policy_rule_response.py | 121 + ...travel_rule_transaction_blockchain_info.py | 92 + .../models/travel_rule_update_vasp_details.py | 90 + ..._rule_validate_full_transaction_request.py | 143 + ...ravel_rule_validate_transaction_request.py | 112 + ...avel_rule_validate_transaction_response.py | 100 + fireblocks_client/models/travel_rule_vasp.py | 182 + .../models/unfreeze_transaction_response.py | 88 + fireblocks_client/models/unmanaged_wallet.py | 102 + fireblocks_client/models/unspent_input.py | 90 + .../models/unspent_inputs_response.py | 100 + .../models/unstake_request_dto.py | 94 + .../update_token_ownership_status_dto.py | 95 + ...ate_vault_account_asset_address_request.py | 88 + .../models/update_vault_account_request.py | 88 + .../models/user_group_create_request.py | 90 + .../models/user_group_create_response.py | 94 + .../models/user_group_response.py | 94 + .../models/user_group_update_request.py | 90 + fireblocks_client/models/user_response.py | 98 + fireblocks_client/models/user_role.py | 47 + fireblocks_client/models/user_status.py | 40 + fireblocks_client/models/user_type.py | 38 + .../models/validate_address_response.py | 92 + fireblocks_client/models/validator_dto.py | 90 + fireblocks_client/models/vault_account.py | 106 + .../models/vault_accounts_paged_response.py | 106 + .../vault_accounts_paged_response_paging.py | 90 + .../models/vault_action_status.py | 88 + fireblocks_client/models/vault_asset.py | 124 + .../models/vault_wallet_address.py | 118 + fireblocks_client/models/vendor_dto.py | 90 + fireblocks_client/models/wallet_asset.py | 101 + .../models/wallet_asset_additional_info.py | 118 + .../models/withdraw_request_dto.py | 94 + .../models/workflow_config_status.py | 40 + .../models/workflow_configuration_id.py | 88 + .../models/workflow_execution_operation.py | 166 + .../models/write_abi_function.py | 128 + .../models/write_call_function_dto.py | 116 + .../write_call_function_response_dto.py | 88 + fireblocks_client/paths/__init__.py | 111 - fireblocks_client/paths/audits/__init__.py | 7 - fireblocks_client/paths/audits/get.py | 216 - fireblocks_client/paths/audits/get.pyi | 193 - .../paths/connections/__init__.py | 7 - fireblocks_client/paths/connections/get.py | 445 - fireblocks_client/paths/connections/get.pyi | 401 - .../paths/connections_wc/__init__.py | 7 - .../paths/connections_wc/post.py | 197 - .../paths/connections_wc/post.pyi | 175 - .../paths/connections_wc_id/__init__.py | 7 - .../paths/connections_wc_id/delete.py | 205 - .../paths/connections_wc_id/delete.pyi | 183 - .../paths/connections_wc_id/put.py | 260 - .../paths/connections_wc_id/put.pyi | 232 - fireblocks_client/paths/contracts/__init__.py | 7 - fireblocks_client/paths/contracts/get.py | 186 - fireblocks_client/paths/contracts/get.pyi | 170 - fireblocks_client/paths/contracts/post.py | 230 - fireblocks_client/paths/contracts/post.pyi | 214 - .../paths/contracts_contract_id/__init__.py | 7 - .../paths/contracts_contract_id/delete.py | 198 - .../paths/contracts_contract_id/delete.pyi | 182 - .../paths/contracts_contract_id/get.py | 207 - .../paths/contracts_contract_id/get.pyi | 191 - .../__init__.py | 7 - .../contracts_contract_id_asset_id/delete.py | 208 - .../contracts_contract_id_asset_id/delete.pyi | 192 - .../contracts_contract_id_asset_id/get.py | 217 - .../contracts_contract_id_asset_id/get.pyi | 201 - .../contracts_contract_id_asset_id/post.py | 301 - .../contracts_contract_id_asset_id/post.pyi | 285 - .../paths/estimate_network_fee/__init__.py | 7 - .../paths/estimate_network_fee/get.py | 205 - .../paths/estimate_network_fee/get.pyi | 189 - .../paths/exchange_accounts/__init__.py | 7 - .../paths/exchange_accounts/get.py | 186 - .../paths/exchange_accounts/get.pyi | 170 - .../__init__.py | 7 - .../get.py | 207 - .../get.pyi | 191 - .../__init__.py | 7 - .../get.py | 217 - .../get.pyi | 201 - .../__init__.py | 7 - .../post.py | 296 - .../post.pyi | 280 - .../__init__.py | 7 - .../post.py | 218 - .../post.pyi | 202 - .../paths/external_wallets/__init__.py | 7 - .../paths/external_wallets/get.py | 186 - .../paths/external_wallets/get.pyi | 170 - .../paths/external_wallets/post.py | 240 - .../paths/external_wallets/post.pyi | 224 - .../external_wallets_wallet_id/__init__.py | 7 - .../external_wallets_wallet_id/delete.py | 198 - .../external_wallets_wallet_id/delete.pyi | 182 - .../paths/external_wallets_wallet_id/get.py | 207 - .../paths/external_wallets_wallet_id/get.pyi | 191 - .../__init__.py | 7 - .../delete.py | 208 - .../delete.pyi | 192 - .../get.py | 217 - .../get.pyi | 201 - .../post.py | 838 -- .../post.pyi | 822 -- .../__init__.py | 7 - .../post.py | 268 - .../post.pyi | 252 - .../paths/fiat_accounts/__init__.py | 7 - fireblocks_client/paths/fiat_accounts/get.py | 186 - fireblocks_client/paths/fiat_accounts/get.pyi | 170 - .../fiat_accounts_account_id/__init__.py | 7 - .../paths/fiat_accounts_account_id/get.py | 207 - .../paths/fiat_accounts_account_id/get.pyi | 191 - .../__init__.py | 7 - .../post.py | 267 - .../post.pyi | 251 - .../__init__.py | 7 - .../post.py | 267 - .../post.pyi | 251 - .../paths/gas_station/__init__.py | 7 - fireblocks_client/paths/gas_station/get.py | 161 - fireblocks_client/paths/gas_station/get.pyi | 145 - .../paths/gas_station_asset_id/__init__.py | 7 - .../paths/gas_station_asset_id/get.py | 207 - .../paths/gas_station_asset_id/get.pyi | 191 - .../gas_station_configuration/__init__.py | 7 - .../paths/gas_station_configuration/put.py | 173 - .../paths/gas_station_configuration/put.pyi | 157 - .../__init__.py | 7 - .../gas_station_configuration_asset_id/put.py | 219 - .../put.pyi | 203 - .../paths/internal_wallets/__init__.py | 7 - .../paths/internal_wallets/get.py | 186 - .../paths/internal_wallets/get.pyi | 170 - .../paths/internal_wallets/post.py | 240 - .../paths/internal_wallets/post.pyi | 224 - .../internal_wallets_wallet_id/__init__.py | 7 - .../internal_wallets_wallet_id/delete.py | 198 - .../internal_wallets_wallet_id/delete.pyi | 182 - .../paths/internal_wallets_wallet_id/get.py | 207 - .../paths/internal_wallets_wallet_id/get.pyi | 191 - .../__init__.py | 7 - .../delete.py | 208 - .../delete.pyi | 192 - .../get.py | 217 - .../get.pyi | 201 - .../post.py | 301 - .../post.pyi | 285 - .../__init__.py | 7 - .../post.py | 268 - .../post.pyi | 252 - .../paths/management_ota/__init__.py | 7 - fireblocks_client/paths/management_ota/get.py | 166 - .../paths/management_ota/get.pyi | 160 - .../paths/management_ota/post.py | 202 - .../paths/management_ota/post.pyi | 194 - .../paths/network_connections/__init__.py | 7 - .../paths/network_connections/get.py | 186 - .../paths/network_connections/get.pyi | 170 - .../paths/network_connections/post.py | 181 - .../paths/network_connections/post.pyi | 165 - .../__init__.py | 7 - .../delete.py | 261 - .../delete.pyi | 245 - .../network_connections_connection_id/get.py | 207 - .../network_connections_connection_id/get.pyi | 191 - .../__init__.py | 7 - .../get.py | 311 - .../get.pyi | 285 - .../__init__.py | 7 - .../patch.py | 339 - .../patch.pyi | 323 - .../paths/network_ids/__init__.py | 7 - fireblocks_client/paths/network_ids/get.py | 218 - fireblocks_client/paths/network_ids/get.pyi | 202 - fireblocks_client/paths/network_ids/post.py | 249 - fireblocks_client/paths/network_ids/post.pyi | 233 - .../paths/network_ids_network_id/__init__.py | 7 - .../paths/network_ids_network_id/delete.py | 246 - .../paths/network_ids_network_id/delete.pyi | 235 - .../paths/network_ids_network_id/get.py | 207 - .../paths/network_ids_network_id/get.pyi | 191 - .../__init__.py | 7 - .../patch.py | 336 - .../patch.pyi | 320 - .../__init__.py | 7 - .../network_ids_network_id_set_name/patch.py | 336 - .../network_ids_network_id_set_name/patch.pyi | 320 - .../__init__.py | 7 - .../patch.py | 339 - .../patch.pyi | 323 - .../nfts_ownership_collections/__init__.py | 7 - .../paths/nfts_ownership_collections/get.py | 369 - .../paths/nfts_ownership_collections/get.pyi | 340 - .../paths/nfts_ownership_tokens/__init__.py | 7 - .../paths/nfts_ownership_tokens/get.py | 489 -- .../paths/nfts_ownership_tokens/get.pyi | 441 - .../paths/nfts_ownership_tokens/put.py | 189 - .../paths/nfts_ownership_tokens/put.pyi | 170 - .../__init__.py | 7 - .../nfts_ownership_tokens_id_status/put.py | 176 - .../nfts_ownership_tokens_id_status/put.pyi | 166 - .../paths/nfts_tokens/__init__.py | 7 - fireblocks_client/paths/nfts_tokens/get.py | 373 - fireblocks_client/paths/nfts_tokens/get.pyi | 344 - .../paths/nfts_tokens_id/__init__.py | 7 - fireblocks_client/paths/nfts_tokens_id/get.py | 166 - .../paths/nfts_tokens_id/get.pyi | 156 - fireblocks_client/paths/nfts_tokens_id/put.py | 149 - .../paths/nfts_tokens_id/put.pyi | 139 - .../paths/off_exchange_add/__init__.py | 7 - .../paths/off_exchange_add/post.py | 166 - .../paths/off_exchange_add/post.pyi | 155 - .../__init__.py | 7 - .../get.py | 207 - .../get.pyi | 191 - .../paths/off_exchange_remove/__init__.py | 7 - .../paths/off_exchange_remove/post.py | 166 - .../paths/off_exchange_remove/post.pyi | 155 - .../__init__.py | 7 - .../off_exchange_settlements_trader/post.py | 166 - .../off_exchange_settlements_trader/post.pyi | 155 - .../__init__.py | 7 - .../get.py | 190 - .../get.pyi | 179 - .../paths/payments_payout/__init__.py | 7 - .../paths/payments_payout/post.py | 186 - .../paths/payments_payout/post.pyi | 178 - .../payments_payout_payout_id/__init__.py | 7 - .../paths/payments_payout_payout_id/get.py | 212 - .../paths/payments_payout_payout_id/get.pyi | 204 - .../__init__.py | 7 - .../post.py | 212 - .../post.pyi | 204 - .../__init__.py | 7 - .../payments_xb_settlements_configs/get.py | 146 - .../payments_xb_settlements_configs/get.pyi | 139 - .../payments_xb_settlements_configs/post.py | 186 - .../payments_xb_settlements_configs/post.pyi | 178 - .../__init__.py | 7 - .../delete.py | 212 - .../delete.pyi | 204 - .../get.py | 212 - .../get.pyi | 204 - .../put.py | 252 - .../put.pyi | 243 - .../payments_xb_settlements_flows/__init__.py | 7 - .../payments_xb_settlements_flows/post.py | 186 - .../payments_xb_settlements_flows/post.pyi | 178 - .../__init__.py | 7 - .../get.py | 212 - .../get.pyi | 204 - .../__init__.py | 7 - .../post.py | 252 - .../post.pyi | 243 - .../__init__.py | 7 - .../screeening_travel_rule_vasp_update/put.py | 151 - .../put.pyi | 144 - .../__init__.py | 7 - .../post.py | 152 - .../post.pyi | 145 - .../__init__.py | 7 - .../post.py | 152 - .../post.pyi | 145 - .../screening_travel_rule_vasp/__init__.py | 7 - .../paths/screening_travel_rule_vasp/get.py | 181 - .../paths/screening_travel_rule_vasp/get.pyi | 176 - .../__init__.py | 7 - .../screening_travel_rule_vasp_did/get.py | 220 - .../screening_travel_rule_vasp_did/get.pyi | 213 - .../paths/supported_assets/__init__.py | 7 - .../paths/supported_assets/get.py | 186 - .../paths/supported_assets/get.pyi | 170 - .../paths/tap_active_policy/__init__.py | 7 - .../paths/tap_active_policy/get.py | 161 - .../paths/tap_active_policy/get.pyi | 145 - fireblocks_client/paths/tap_draft/__init__.py | 7 - fireblocks_client/paths/tap_draft/get.py | 161 - fireblocks_client/paths/tap_draft/get.pyi | 145 - fireblocks_client/paths/tap_draft/post.py | 231 - fireblocks_client/paths/tap_draft/post.pyi | 215 - fireblocks_client/paths/tap_draft/put.py | 257 - fireblocks_client/paths/tap_draft/put.pyi | 241 - .../paths/tap_publish/__init__.py | 7 - fireblocks_client/paths/tap_publish/post.py | 257 - fireblocks_client/paths/tap_publish/post.pyi | 241 - .../paths/transactions/__init__.py | 7 - fireblocks_client/paths/transactions/get.py | 551 -- fireblocks_client/paths/transactions/get.pyi | 479 -- fireblocks_client/paths/transactions/post.py | 189 - fireblocks_client/paths/transactions/post.pyi | 173 - .../transactions_estimate_fee/__init__.py | 7 - .../paths/transactions_estimate_fee/post.py | 181 - .../paths/transactions_estimate_fee/post.pyi | 165 - .../__init__.py | 7 - .../get.py | 207 - .../get.pyi | 191 - .../paths/transactions_tx_id/__init__.py | 7 - .../paths/transactions_tx_id/get.py | 242 - .../paths/transactions_tx_id/get.pyi | 220 - .../transactions_tx_id_cancel/__init__.py | 7 - .../paths/transactions_tx_id_cancel/post.py | 207 - .../paths/transactions_tx_id_cancel/post.pyi | 191 - .../paths/transactions_tx_id_drop/__init__.py | 7 - .../paths/transactions_tx_id_drop/post.py | 227 - .../paths/transactions_tx_id_drop/post.pyi | 211 - .../transactions_tx_id_freeze/__init__.py | 7 - .../paths/transactions_tx_id_freeze/post.py | 166 - .../paths/transactions_tx_id_freeze/post.pyi | 156 - .../__init__.py | 7 - .../post.py | 227 - .../post.pyi | 211 - .../transactions_tx_id_unfreeze/__init__.py | 7 - .../paths/transactions_tx_id_unfreeze/post.py | 166 - .../transactions_tx_id_unfreeze/post.pyi | 156 - .../__init__.py | 7 - .../get.py | 217 - .../get.pyi | 201 - .../__init__.py | 7 - .../post.py | 227 - .../post.pyi | 211 - fireblocks_client/paths/users/__init__.py | 7 - fireblocks_client/paths/users/get.py | 161 - fireblocks_client/paths/users/get.pyi | 145 - .../paths/users_groups/__init__.py | 7 - fireblocks_client/paths/users_groups/get.py | 161 - fireblocks_client/paths/users_groups/get.pyi | 145 - fireblocks_client/paths/users_groups/post.py | 182 - fireblocks_client/paths/users_groups/post.pyi | 166 - .../paths/users_groups_group_id/__init__.py | 7 - .../paths/users_groups_group_id/delete.py | 198 - .../paths/users_groups_group_id/delete.pyi | 182 - .../paths/users_groups_group_id/get.py | 207 - .../paths/users_groups_group_id/get.pyi | 191 - .../paths/users_groups_group_id/put.py | 228 - .../paths/users_groups_group_id/put.pyi | 212 - .../paths/vault_accounts/__init__.py | 7 - fireblocks_client/paths/vault_accounts/get.py | 262 - .../paths/vault_accounts/get.pyi | 246 - .../paths/vault_accounts/post.py | 261 - .../paths/vault_accounts/post.pyi | 245 - .../paths/vault_accounts_paged/__init__.py | 7 - .../paths/vault_accounts_paged/get.py | 269 - .../paths/vault_accounts_paged/get.pyi | 248 - .../__init__.py | 7 - .../vault_accounts_vault_account_id/get.py | 207 - .../vault_accounts_vault_account_id/get.pyi | 191 - .../vault_accounts_vault_account_id/put.py | 268 - .../vault_accounts_vault_account_id/put.pyi | 252 - .../__init__.py | 7 - .../get.py | 202 - .../get.pyi | 191 - .../post.py | 286 - .../post.pyi | 270 - .../__init__.py | 7 - .../post.py | 217 - .../post.pyi | 201 - .../__init__.py | 7 - .../get.py | 242 - .../get.pyi | 226 - .../post.py | 296 - .../post.pyi | 280 - .../__init__.py | 7 - .../put.py | 287 - .../put.pyi | 271 - .../__init__.py | 7 - .../post.py | 227 - .../post.pyi | 211 - .../__init__.py | 7 - .../post.py | 288 - .../post.pyi | 272 - .../__init__.py | 7 - .../post.py | 236 - .../post.pyi | 220 - .../__init__.py | 7 - .../get.py | 280 - .../get.pyi | 264 - .../__init__.py | 7 - .../get.py | 251 - .../get.pyi | 235 - .../__init__.py | 7 - .../get.py | 242 - .../get.pyi | 226 - .../__init__.py | 7 - .../post.py | 198 - .../post.pyi | 182 - .../__init__.py | 7 - .../post.py | 268 - .../post.pyi | 252 - .../__init__.py | 7 - .../post.py | 268 - .../post.pyi | 252 - .../__init__.py | 7 - .../post.py | 198 - .../post.pyi | 182 - .../paths/vault_asset_wallets/__init__.py | 7 - .../paths/vault_asset_wallets/get.py | 216 - .../paths/vault_asset_wallets/get.pyi | 202 - .../paths/vault_assets/__init__.py | 7 - fireblocks_client/paths/vault_assets/get.py | 240 - fireblocks_client/paths/vault_assets/get.pyi | 224 - .../paths/vault_assets_asset_id/__init__.py | 7 - .../paths/vault_assets_asset_id/get.py | 207 - .../paths/vault_assets_asset_id/get.pyi | 191 - .../paths/vault_public_key_info_/__init__.py | 7 - .../paths/vault_public_key_info_/get.py | 228 - .../paths/vault_public_key_info_/get.pyi | 212 - .../paths/webhooks_resend/__init__.py | 7 - .../paths/webhooks_resend/post.py | 161 - .../paths/webhooks_resend/post.pyi | 145 - .../paths/webhooks_resend_tx_id/__init__.py | 7 - .../paths/webhooks_resend_tx_id/post.py | 278 - .../paths/webhooks_resend_tx_id/post.pyi | 262 - .../__init__.py => fireblocks_client/py.typed | 0 fireblocks_client/rest.py | 318 +- fireblocks_client/schemas.py | 3038 ------- git_push.sh | 5 +- pyproject.toml | 71 + requirements.txt | 14 +- setup.cfg | 3 - setup.py | 59 +- test-requirements.txt | 6 +- test/test_abi_function.py | 100 + test/test_account.py | 57 + test/test_account_type.py | 36 + ...st_add_asset_to_external_wallet_request.py | 60 + ...asset_to_external_wallet_request_one_of.py | 58 + ...sset_to_external_wallet_request_one_of1.py | 57 + ..._wallet_request_one_of1_additional_info.py | 85 + ..._request_one_of1_additional_info_one_of.py | 76 + ...request_one_of1_additional_info_one_of1.py | 76 + ...request_one_of1_additional_info_one_of2.py | 60 + test/test_add_collateral_request_body.py | 110 + test/test_add_contract_asset_request.py | 56 + test/test_additional_info_dto.py | 59 + test/test_aml_registration_result.py | 56 + test/test_aml_screening_result.py | 55 + ...t_amount_aggregation_time_period_method.py | 38 + test/test_amount_and_chain_descriptor.py | 59 + test/test_amount_info.py | 57 + test/test_api_key.py | 57 + test/test_api_keys_paginated_response.py | 66 + test/test_api_user.py | 59 + test/test_api_user_api.py | 46 + test/test_asset_already_exist_http_error.py | 58 + test/test_asset_amount.py | 57 + test/test_asset_bad_request_error_response.py | 59 + test/test_asset_conflict_error_response.py | 59 + test/test_asset_does_not_exist_http_error.py | 58 + test/test_asset_forbidden_error_response.py | 59 + ...st_asset_internal_server_error_response.py | 59 + test/test_asset_metadata_dto.py | 67 + test/test_asset_not_found_error_response.py | 59 + test/test_asset_response.py | 75 + test/test_asset_response_metadata.py | 57 + test/test_asset_response_onchain.py | 62 + test/test_asset_type_response.py | 62 + test/test_asset_wallet.py | 64 + test/test_assets_api.py | 39 + test/test_audit_log_data.py | 61 + test/test_audit_logs_api.py | 46 + test/test_auditor_data.py | 59 + test/test_authorization_groups.py | 57 + test/test_authorization_info.py | 62 + test/test_block_info.py | 55 + test/test_blockchains_assets_api.py | 46 + test/test_cancel_transaction_response.py | 56 + test/test_chain_info_response_dto.py | 69 + test/test_collection_metadata_dto.py | 61 + test/test_collection_ownership_response.py | 63 + test/test_compliance_api.py | 81 + test/test_compliance_result.py | 84 + ..._compliance_screening_configuration_api.py | 48 + test/test_compliance_screening_result.py | 60 + test/test_config_change_request_status.py | 38 + ...st_config_conversion_operation_snapshot.py | 71 + ..._config_disbursement_operation_snapshot.py | 73 + test/test_config_operation.py | 78 + test/test_config_operation_snapshot.py | 71 + test/test_config_operation_status.py | 36 + ...test_config_transfer_operation_snapshot.py | 73 + test/test_console_user.py | 61 + test/test_console_user_api.py | 46 + test/test_contract_abi_response_dto.py | 56 + test/test_contract_attributes.py | 73 + test/test_contract_deploy_request.py | 58 + test/test_contract_deploy_response.py | 55 + test/test_contract_doc.py | 61 + test/test_contract_interactions_api.py | 53 + test/test_contract_metadata_dto.py | 62 + test/test_contract_template_dto.py | 98 + test/test_contract_templates_api.py | 81 + test/test_contract_upload_request.py | 89 + test/test_contracts_api.py | 81 + test/test_conversion_config_operation.py | 78 + ...test_conversion_operation_config_params.py | 61 + test/test_conversion_operation_execution.py | 83 + ...t_conversion_operation_execution_output.py | 69 + ...t_conversion_operation_execution_params.py | 63 + ...ation_execution_params_execution_params.py | 62 + test/test_conversion_operation_failure.py | 60 + test/test_conversion_operation_preview.py | 81 + ...est_conversion_operation_preview_output.py | 71 + test/test_conversion_operation_type.py | 36 + test/test_conversion_validation_failure.py | 60 + test/test_convert_assets_request.py | 59 + test/test_convert_assets_response.py | 55 + test/test_cosigner.py | 58 + test/test_cosigners_beta_api.py | 67 + test/test_cosigners_paginated_response.py | 68 + test/test_create_address_request.py | 55 + test/test_create_address_response.py | 58 + test/test_create_api_user.py | 61 + test/test_create_assets_bulk_request.py | 56 + test/test_create_assets_request.py | 54 + test/test_create_config_operation_request.py | 71 + test/test_create_connection_request.py | 64 + test/test_create_connection_response.py | 65 + test/test_create_console_user.py | 61 + test/test_create_contract_request.py | 54 + ...ate_conversion_config_operation_request.py | 69 + ...e_disbursement_config_operation_request.py | 73 + test/test_create_internal_transfer_request.py | 59 + ...st_create_internal_wallet_asset_request.py | 58 + test/test_create_multiple_accounts_request.py | 59 + test/test_create_ncw_connection_request.py | 64 + test/test_create_network_id_request.py | 58 + test/test_create_payout_request.py | 79 + test/test_create_token_request_dto.py | 60 + ..._create_token_request_dto_create_params.py | 64 + test/test_create_transaction_response.py | 60 + ...reate_transfer_config_operation_request.py | 71 + test/test_create_user_group_response.py | 59 + ...create_vault_account_connection_request.py | 62 + test/test_create_vault_account_request.py | 59 + test/test_create_vault_asset_response.py | 63 + test/test_create_wallet_request.py | 55 + ...workflow_execution_request_params_inner.py | 67 + test/test_custom_routing_dest.py | 59 + test/test_default_network_routing_dest.py | 57 + test/test_delegation_dto.py | 86 + test/test_delegation_summary_dto.py | 93 + ...test_delete_network_connection_response.py | 57 + test/test_delete_network_id_response.py | 55 + test/test_deployed_contract_response_dto.py | 64 + test/test_deployed_contracts_api.py | 53 + ...t_deployed_contracts_paginated_response.py | 70 + ..._deposit_funds_from_linked_dda_response.py | 57 + test/test_destination.py | 60 + test/test_destination_transfer_peer_path.py | 64 + ...destination_transfer_peer_path_response.py | 61 + test/test_disbursement_amount_instruction.py | 61 + test/test_disbursement_config_operation.py | 80 + test/test_disbursement_instruction.py | 61 + test/test_disbursement_instruction_output.py | 69 + ...st_disbursement_operation_config_params.py | 64 + test/test_disbursement_operation_execution.py | 91 + ...disbursement_operation_execution_output.py | 75 + ...disbursement_operation_execution_params.py | 65 + ...ation_execution_params_execution_params.py | 64 + test/test_disbursement_operation_input.py | 68 + test/test_disbursement_operation_preview.py | 80 + ...t_disbursement_operation_preview_output.py | 61 + ...on_preview_output_instruction_set_inner.py | 73 + test/test_disbursement_operation_type.py | 38 + ...est_disbursement_percentage_instruction.py | 61 + test/test_disbursement_validation_failure.py | 60 + test/test_dispatch_payout_response.py | 55 + test/test_draft_response.py | 191 + ...st_draft_review_and_validation_response.py | 227 + test/test_drop_transaction_request.py | 56 + test/test_drop_transaction_response.py | 56 + ...edit_gas_station_configuration_response.py | 57 + test/test_error_response.py | 59 + test/test_error_response_error.py | 57 + test/test_error_schema.py | 55 + test/test_estimated_network_fee_response.py | 91 + ...test_estimated_transaction_fee_response.py | 109 + test/test_evm_token_create_params_dto.py | 56 + test/test_exchange_account.py | 81 + test/test_exchange_accounts_api.py | 67 + test/test_exchange_accounts_paged.py | 80 + test/test_exchange_accounts_paged_paging.py | 57 + test/test_exchange_asset.py | 58 + ...change_settlement_transactions_response.py | 70 + test/test_exchange_trading_account.py | 63 + test/test_exchange_type.py | 36 + test/test_execute_action_request.py | 64 + test/test_execute_action_response.py | 55 + test/test_execution_conversion_operation.py | 109 + test/test_execution_disbursement_operation.py | 112 + test/test_execution_operation_status.py | 36 + test/test_execution_screening_operation.py | 94 + test/test_execution_transfer_operation.py | 111 + test/test_external_wallet_asset.py | 79 + test/test_external_wallets_api.py | 88 + test/test_fee_info.py | 56 + test/test_fiat_account.py | 62 + test/test_fiat_account_type.py | 36 + test/test_fiat_accounts_api.py | 60 + test/test_fiat_asset.py | 55 + test/test_freeze_transaction_response.py | 56 + test/test_function_doc.py | 60 + test/test_funds.py | 54 + test/test_gas_station_configuration.py | 56 + ...test_gas_station_configuration_response.py | 58 + test/test_gas_station_properties_response.py | 60 + test/test_gas_stations_api.py | 60 + test/test_get_api_users_response.py | 71 + test/test_get_audit_logs_response.py | 66 + test/test_get_audit_logs_response_dto.py | 58 + test/test_get_connections_response.py | 79 + test/test_get_console_users_response.py | 75 + test/test_get_filter_parameter.py | 60 + .../test_get_max_spendable_amount_response.py | 56 + test/test_get_nfts_response.py | 73 + test/test_get_ota_status_response.py | 54 + test/test_get_ownership_tokens_response.py | 82 + test/test_get_transaction_operation.py | 36 + ...est_get_whitelist_ip_addresses_response.py | 59 + test/test_get_workspace_status_response.py | 56 + ...test_http_contract_does_not_exist_error.py | 57 + test/test_instruction_amount.py | 57 + test/test_internal_transfer_response.py | 55 + test/test_internal_wallets_api.py | 88 + test/test_job.py | 70 + test/test_job_created.py | 54 + test/test_job_management_api.py | 74 + test/test_lean_abi_function.py | 86 + test/test_lean_contract_dto.py | 78 + ...est_lean_deployed_contract_response_dto.py | 63 + test/test_list_owned_collections_response.py | 66 + test/test_list_owned_tokens_response.py | 73 + test/test_media_entity_response.py | 57 + .../test_add_collateral_request_body.py | 26 - test/test_models/test_aml_screening_result.py | 26 - ...t_amount_aggregation_time_period_method.py | 26 - test/test_models/test_amount_info.py | 26 - test/test_models/test_asset_type_response.py | 26 - test/test_models/test_asset_wallet.py | 26 - test/test_models/test_authorization_groups.py | 26 - test/test_models/test_authorization_info.py | 26 - test/test_models/test_block_info.py | 26 - .../test_cancel_transaction_response.py | 26 - .../test_collection_ownership_response.py | 26 - .../test_config_change_request_status.py | 26 - .../test_create_address_response.py | 26 - .../test_create_connection_request.py | 26 - .../test_create_connection_response.py | 26 - .../test_create_internal_transfer_request.py | 26 - .../test_models/test_create_payout_request.py | 26 - .../test_create_transaction_response.py | 26 - .../test_create_users_group_response.py | 26 - .../test_create_vault_asset_response.py | 26 - .../test_custom_crypto_routing_dest.py | 26 - .../test_custom_fiat_routing_dest.py | 26 - .../test_default_network_routing_dest.py | 26 - .../test_destination_transfer_peer_path.py | 26 - ...destination_transfer_peer_path_response.py | 26 - .../test_dispatch_payout_response.py | 26 - test/test_models/test_draft_response.py | 26 - ...st_draft_review_and_validation_response.py | 26 - .../test_drop_transaction_request.py | 26 - .../test_drop_transaction_response.py | 26 - test/test_models/test_error.py | 26 - test/test_models/test_error_response.py | 26 - .../test_estimated_network_fee_response.py | 26 - ...test_estimated_transaction_fee_response.py | 26 - test/test_models/test_exchange_account.py | 26 - test/test_models/test_exchange_asset.py | 26 - .../test_exchange_trading_account.py | 26 - test/test_models/test_exchange_type.py | 26 - .../test_models/test_external_wallet_asset.py | 26 - test/test_models/test_fee_info.py | 26 - test/test_models/test_fiat_account.py | 26 - test/test_models/test_fiat_account_type.py | 26 - test/test_models/test_fiat_asset.py | 26 - .../test_freeze_transaction_response.py | 26 - .../test_gas_station_configuration.py | 26 - .../test_gas_station_properties_response.py | 26 - .../test_get_connections_response.py | 26 - .../test_get_settlement_response.py | 26 - .../test_get_transaction_operation.py | 26 - test/test_models/test_get_users_response.py | 26 - test/test_models/test_instruction_amount.py | 26 - .../test_models/test_media_entity_response.py | 26 - test/test_models/test_ncw.py | 26 - test/test_models/test_network_channel.py | 26 - test/test_models/test_network_connection.py | 26 - .../test_network_connection_response.py | 26 - .../test_network_connection_routing_policy.py | 26 - test/test_models/test_network_fee.py | 26 - test/test_models/test_network_id.py | 26 - test/test_models/test_network_id_response.py | 26 - .../test_network_id_routing_policy.py | 26 - test/test_models/test_network_record.py | 26 - .../test_none_network_routing_dest.py | 26 - test/test_models/test_one_time_address.py | 26 - .../test_paginated_asset_wallet_response.py | 26 - test/test_models/test_paging.py | 26 - test/test_models/test_payee_account.py | 26 - .../test_payee_account_response.py | 26 - test/test_models/test_payee_account_type.py | 26 - test/test_models/test_payment_account.py | 26 - .../test_payment_account_response.py | 26 - test/test_models/test_payment_account_type.py | 26 - test/test_models/test_payout_init_method.py | 26 - test/test_models/test_payout_instruction.py | 26 - .../test_payout_instruction_response.py | 26 - .../test_payout_instruction_state.py | 26 - test/test_models/test_payout_response.py | 26 - test/test_models/test_payout_state.py | 26 - test/test_models/test_payout_status.py | 26 - .../test_policy_and_validation_response.py | 26 - test/test_models/test_policy_check_result.py | 26 - test/test_models/test_policy_metadata.py | 26 - test/test_models/test_policy_response.py | 26 - test/test_models/test_policy_rule.py | 26 - .../test_policy_rule_check_result.py | 26 - test/test_models/test_policy_rule_error.py | 26 - .../test_models/test_policy_src_or_dest_id.py | 26 - .../test_policy_src_or_dest_sub_type.py | 26 - .../test_policy_src_or_dest_type.py | 26 - test/test_models/test_policy_status.py | 26 - test/test_models/test_policy_validation.py | 26 - .../test_public_key_information.py | 26 - test/test_models/test_publish_result.py | 26 - .../test_remove_collateral_request_body.py | 26 - test/test_models/test_request_options.py | 26 - .../test_resend_webhooks_response.py | 26 - .../test_respond_to_connection_request.py | 26 - test/test_models/test_reward_info.py | 26 - test/test_models/test_rewards_info.py | 26 - test/test_models/test_session_dto.py | 26 - test/test_models/test_session_metadata.py | 26 - ...est_set_confirmations_threshold_request.py | 26 - ...st_set_confirmations_threshold_response.py | 26 - .../test_settlement_request_body.py | 26 - test/test_models/test_settlement_response.py | 26 - test/test_models/test_signed_message.py | 26 - ...test_source_transfer_peer_path_response.py | 26 - test/test_models/test_system_message_info.py | 26 - test/test_models/test_term.py | 26 - .../test_to_collateral_transaction.py | 26 - .../test_to_exchange_transaction.py | 26 - .../test_token_collection_response.py | 26 - .../test_token_ownership_response.py | 26 - test/test_models/test_token_response.py | 26 - test/test_models/test_trading_account_type.py | 26 - test/test_models/test_transaction.py | 26 - test/test_models/test_transaction_fee.py | 26 - .../test_models/test_transaction_operation.py | 26 - test/test_models/test_transaction_request.py | 26 - .../test_transaction_request_destination.py | 26 - test/test_models/test_transaction_response.py | 26 - .../test_transaction_response_destination.py | 26 - test/test_models/test_transfer_peer_path.py | 26 - test/test_models/test_travel_rule_address.py | 26 - ...test_travel_rule_get_all_vasps_response.py | 26 - test/test_models/test_travel_rule_issuer.py | 26 - test/test_models/test_travel_rule_issuers.py | 26 - .../test_travel_rule_ownership_proof.py | 26 - test/test_models/test_travel_rule_pii_ivms.py | 26 - ...travel_rule_transaction_blockchain_info.py | 26 - .../test_travel_rule_update_vasp_details.py | 26 - ..._rule_validate_full_transaction_request.py | 26 - ...ravel_rule_validate_transaction_request.py | 26 - ...avel_rule_validate_transaction_response.py | 26 - test/test_models/test_travel_rule_vasp.py | 26 - .../test_unfreeze_transaction_response.py | 26 - test/test_models/test_unmanaged_wallet.py | 26 - test/test_models/test_unsigned_message.py | 26 - test/test_models/test_unspent_input.py | 26 - .../test_unspent_inputs_response.py | 26 - .../test_update_token_ownership_status_dto.py | 26 - .../test_user_group_create_request.py | 26 - .../test_user_group_create_response.py | 26 - .../test_user_group_update_request.py | 26 - test/test_models/test_user_response.py | 26 - test/test_models/test_users_group_response.py | 26 - .../test_models/test_users_groups_response.py | 26 - .../test_validate_address_response.py | 26 - test/test_models/test_vault_account.py | 26 - .../test_vault_accounts_paged_response.py | 26 - test/test_models/test_vault_asset.py | 26 - test/test_models/test_vault_wallet_address.py | 26 - test/test_models/test_wallet_asset.py | 26 - .../test_wallet_asset_additional_info.py | 26 - test/test_models/test_xb_settlement_asset.py | 26 - .../test_xb_settlement_asset_id.py | 26 - ...settlement_config_creation_request_body.py | 26 - ..._xb_settlement_config_creation_response.py | 26 - ..._xb_settlement_config_deletion_response.py | 26 - ..._xb_settlement_config_edit_request_body.py | 26 - ...test_xb_settlement_config_edit_response.py | 26 - .../test_xb_settlement_config_id.py | 26 - .../test_xb_settlement_config_model.py | 26 - .../test_xb_settlement_config_step.py | 26 - .../test_xb_settlement_config_steps_record.py | 26 - ...lement_conversion_slippage_basis_points.py | 26 - .../test_xb_settlement_corridor_id.py | 26 - ..._xb_settlement_create_flow_request_body.py | 26 - ...test_xb_settlement_create_flow_response.py | 26 - .../test_xb_settlement_crypto_asset.py | 26 - .../test_xb_settlement_fiat_asset.py | 26 - ...test_xb_settlement_flow_execution_model.py | 26 - ..._settlement_flow_execution_request_body.py | 26 - ...t_xb_settlement_flow_execution_response.py | 26 - ...est_xb_settlement_flow_execution_status.py | 26 - .../test_xb_settlement_flow_execution_step.py | 26 - ...b_settlement_flow_execution_step_status.py | 26 - .../test_xb_settlement_flow_preview_model.py | 26 - ...low_selected_conversion_slippage_reason.py | 26 - .../test_xb_settlement_flow_setup_step.py | 26 - ..._settlement_flow_steps_execution_record.py | 26 - .../test_xb_settlement_flow_steps_record.py | 26 - ..._xb_settlement_get_all_configs_response.py | 26 - .../test_xb_settlement_get_config_response.py | 26 - .../test_xb_settlement_get_flow_response.py | 26 - .../test_xb_settlement_step_type.py | 26 - test/test_network_channel.py | 55 + test/test_network_connection.py | 60 + test/test_network_connection_response.py | 83 + ...network_connection_routing_policy_value.py | 61 + test/test_network_connection_status.py | 36 + test/test_network_connections_api.py | 130 + test/test_network_fee.py | 58 + test/test_network_id.py | 57 + test/test_network_id_response.py | 61 + test/test_network_id_routing_policy_value.py | 61 + test/test_network_record.py | 78 + test/test_nfts_api.py | 102 + test/test_none_network_routing_dest.py | 55 + test/test_not_found_exception.py | 56 + test/test_off_exchanges_api.py | 67 + test/test_one_time_address.py | 56 + test/test_one_time_address_account.py | 56 + test/test_operation_execution_failure.py | 60 + test/test_ota_beta_api.py | 46 + test/test_paginated_address_response.py | 70 + .../test_paginated_address_response_paging.py | 57 + test/test_paginated_asset_wallet_response.py | 72 + ..._paginated_asset_wallet_response_paging.py | 57 + test/test_paging.py | 55 + test/test_parameter.py | 73 + test/test_parameter_with_value.py | 92 + test/test_paths/__init__.py | 68 - test/test_paths/test_audits/__init__.py | 0 test/test_paths/test_audits/test_get.py | 44 - test/test_paths/test_connections/__init__.py | 0 test/test_paths/test_connections/test_get.py | 45 - .../test_connections_wc/__init__.py | 0 .../test_connections_wc/test_post.py | 47 - .../test_connections_wc_id/__init__.py | 0 .../test_connections_wc_id/test_delete.py | 44 - .../test_connections_wc_id/test_put.py | 46 - test/test_paths/test_contracts/__init__.py | 0 test/test_paths/test_contracts/test_get.py | 45 - test/test_paths/test_contracts/test_post.py | 45 - .../test_contracts_contract_id/__init__.py | 0 .../test_contracts_contract_id/test_delete.py | 44 - .../test_contracts_contract_id/test_get.py | 45 - .../__init__.py | 0 .../test_delete.py | 44 - .../test_get.py | 45 - .../test_post.py | 45 - .../test_estimate_network_fee/__init__.py | 0 .../test_estimate_network_fee/test_get.py | 45 - .../test_exchange_accounts/__init__.py | 0 .../test_exchange_accounts/test_get.py | 45 - .../__init__.py | 0 .../test_get.py | 45 - .../__init__.py | 0 .../test_get.py | 45 - .../__init__.py | 0 .../test_post.py | 44 - .../__init__.py | 0 .../test_post.py | 44 - .../test_external_wallets/__init__.py | 0 .../test_external_wallets/test_get.py | 45 - .../test_external_wallets/test_post.py | 45 - .../__init__.py | 0 .../test_delete.py | 44 - .../test_get.py | 45 - .../__init__.py | 0 .../test_delete.py | 44 - .../test_get.py | 45 - .../test_post.py | 45 - .../__init__.py | 0 .../test_post.py | 46 - .../test_paths/test_fiat_accounts/__init__.py | 0 .../test_paths/test_fiat_accounts/test_get.py | 45 - .../test_fiat_accounts_account_id/__init__.py | 0 .../test_fiat_accounts_account_id/test_get.py | 45 - .../__init__.py | 0 .../test_post.py | 44 - .../__init__.py | 0 .../test_post.py | 44 - test/test_paths/test_gas_station/__init__.py | 0 test/test_paths/test_gas_station/test_get.py | 45 - .../test_gas_station_asset_id/__init__.py | 0 .../test_gas_station_asset_id/test_get.py | 45 - .../__init__.py | 0 .../test_put.py | 46 - .../__init__.py | 0 .../test_put.py | 46 - .../test_internal_wallets/__init__.py | 0 .../test_internal_wallets/test_get.py | 45 - .../test_internal_wallets/test_post.py | 45 - .../__init__.py | 0 .../test_delete.py | 44 - .../test_get.py | 45 - .../__init__.py | 0 .../test_delete.py | 44 - .../test_get.py | 45 - .../test_post.py | 45 - .../__init__.py | 0 .../test_post.py | 46 - .../test_management_ota/__init__.py | 0 .../test_management_ota/test_get.py | 45 - .../test_management_ota/test_post.py | 46 - .../test_network_connections/__init__.py | 0 .../test_network_connections/test_get.py | 45 - .../test_network_connections/test_post.py | 45 - .../__init__.py | 0 .../test_delete.py | 45 - .../test_get.py | 45 - .../__init__.py | 0 .../test_get.py | 45 - .../__init__.py | 0 .../test_patch.py | 45 - test/test_paths/test_network_ids/__init__.py | 0 test/test_paths/test_network_ids/test_get.py | 45 - test/test_paths/test_network_ids/test_post.py | 45 - .../test_network_ids_network_id/__init__.py | 0 .../test_delete.py | 45 - .../test_network_ids_network_id/test_get.py | 45 - .../__init__.py | 0 .../test_patch.py | 47 - .../__init__.py | 0 .../test_patch.py | 47 - .../__init__.py | 0 .../test_patch.py | 45 - .../__init__.py | 0 .../test_get.py | 45 - .../test_nfts_ownership_tokens/__init__.py | 0 .../test_nfts_ownership_tokens/test_get.py | 45 - .../test_nfts_ownership_tokens/test_put.py | 44 - .../__init__.py | 0 .../test_put.py | 46 - test/test_paths/test_nfts_tokens/__init__.py | 0 test/test_paths/test_nfts_tokens/test_get.py | 45 - .../test_nfts_tokens_id/__init__.py | 0 .../test_nfts_tokens_id/test_get.py | 45 - .../test_nfts_tokens_id/test_put.py | 44 - .../test_off_exchange_add/__init__.py | 0 .../test_off_exchange_add/test_post.py | 45 - .../__init__.py | 0 .../test_get.py | 45 - .../test_off_exchange_remove/__init__.py | 0 .../test_off_exchange_remove/test_post.py | 45 - .../__init__.py | 0 .../test_post.py | 45 - .../__init__.py | 0 .../test_get.py | 45 - .../test_payments_payout/__init__.py | 0 .../test_payments_payout/test_post.py | 45 - .../__init__.py | 0 .../test_get.py | 45 - .../__init__.py | 0 .../test_post.py | 45 - .../__init__.py | 0 .../test_get.py | 45 - .../test_post.py | 45 - .../__init__.py | 0 .../test_delete.py | 45 - .../test_get.py | 45 - .../test_put.py | 45 - .../__init__.py | 0 .../test_post.py | 45 - .../__init__.py | 0 .../test_get.py | 45 - .../__init__.py | 0 .../test_post.py | 45 - .../__init__.py | 0 .../test_put.py | 47 - .../__init__.py | 0 .../test_post.py | 47 - .../__init__.py | 0 .../test_post.py | 47 - .../__init__.py | 0 .../test_get.py | 45 - .../__init__.py | 0 .../test_get.py | 45 - .../test_supported_assets/__init__.py | 0 .../test_supported_assets/test_get.py | 45 - .../test_tap_active_policy/__init__.py | 0 .../test_tap_active_policy/test_get.py | 45 - test/test_paths/test_tap_draft/__init__.py | 0 test/test_paths/test_tap_draft/test_get.py | 45 - test/test_paths/test_tap_draft/test_post.py | 47 - test/test_paths/test_tap_draft/test_put.py | 47 - test/test_paths/test_tap_publish/__init__.py | 0 test/test_paths/test_tap_publish/test_post.py | 47 - test/test_paths/test_transactions/__init__.py | 0 test/test_paths/test_transactions/test_get.py | 45 - .../test_paths/test_transactions/test_post.py | 45 - .../__init__.py | 0 .../test_post.py | 45 - .../__init__.py | 0 .../test_get.py | 45 - .../test_transactions_tx_id/__init__.py | 0 .../test_transactions_tx_id/test_get.py | 45 - .../__init__.py | 0 .../test_post.py | 45 - .../test_transactions_tx_id_drop/__init__.py | 0 .../test_transactions_tx_id_drop/test_post.py | 45 - .../__init__.py | 0 .../test_post.py | 45 - .../__init__.py | 0 .../test_post.py | 45 - .../__init__.py | 0 .../test_post.py | 45 - .../__init__.py | 0 .../test_get.py | 45 - .../__init__.py | 0 .../test_post.py | 45 - test/test_paths/test_users/__init__.py | 0 test/test_paths/test_users/test_get.py | 45 - test/test_paths/test_users_groups/__init__.py | 0 test/test_paths/test_users_groups/test_get.py | 45 - .../test_paths/test_users_groups/test_post.py | 47 - .../test_users_groups_group_id/__init__.py | 0 .../test_users_groups_group_id/test_delete.py | 44 - .../test_users_groups_group_id/test_get.py | 45 - .../test_users_groups_group_id/test_put.py | 47 - .../test_vault_accounts/__init__.py | 0 .../test_vault_accounts/test_get.py | 45 - .../test_vault_accounts/test_post.py | 47 - .../test_vault_accounts_paged/__init__.py | 0 .../test_vault_accounts_paged/test_get.py | 45 - .../__init__.py | 0 .../test_get.py | 45 - .../test_put.py | 46 - .../__init__.py | 0 .../test_get.py | 45 - .../test_post.py | 45 - .../__init__.py | 0 .../test_post.py | 45 - .../__init__.py | 0 .../test_get.py | 45 - .../test_post.py | 45 - .../__init__.py | 0 .../test_put.py | 44 - .../__init__.py | 0 .../test_post.py | 45 - .../__init__.py | 0 .../test_post.py | 46 - .../__init__.py | 0 .../test_post.py | 45 - .../__init__.py | 0 .../test_get.py | 45 - .../__init__.py | 0 .../test_get.py | 44 - .../__init__.py | 0 .../test_get.py | 45 - .../__init__.py | 0 .../test_post.py | 44 - .../__init__.py | 0 .../test_post.py | 46 - .../__init__.py | 0 .../test_post.py | 46 - .../__init__.py | 0 .../test_post.py | 44 - .../test_vault_asset_wallets/__init__.py | 0 .../test_vault_asset_wallets/test_get.py | 45 - test/test_paths/test_vault_assets/__init__.py | 0 test/test_paths/test_vault_assets/test_get.py | 45 - .../test_vault_assets_asset_id/__init__.py | 0 .../test_vault_assets_asset_id/test_get.py | 45 - .../test_vault_public_key_info_/__init__.py | 0 .../test_vault_public_key_info_/test_get.py | 45 - .../test_webhooks_resend/__init__.py | 0 .../test_webhooks_resend/test_post.py | 45 - .../test_webhooks_resend_tx_id/__init__.py | 0 .../test_webhooks_resend_tx_id/test_post.py | 46 - test/test_payee_account.py | 57 + test/test_payee_account_response.py | 55 + test/test_payee_account_type.py | 36 + test/test_payment_account.py | 57 + test/test_payment_account_response.py | 55 + test/test_payment_account_type.py | 36 + test/test_payments_payout_api.py | 53 + test/test_payout_init_method.py | 36 + test/test_payout_instruction.py | 66 + test/test_payout_instruction_response.py | 84 + test/test_payout_instruction_state.py | 36 + test/test_payout_response.py | 106 + test/test_payout_state.py | 36 + test/test_payout_status.py | 36 + test/test_policy_and_validation_response.py | 223 + test/test_policy_check_result.py | 79 + test/test_policy_editor_beta_api.py | 67 + test/test_policy_metadata.py | 57 + test/test_policy_response.py | 187 + test/test_policy_rule.py | 137 + test/test_policy_rule_amount.py | 53 + test/test_policy_rule_amount_aggregation.py | 58 + test/test_policy_rule_authorization_groups.py | 67 + ..._rule_authorization_groups_groups_inner.py | 64 + test/test_policy_rule_check_result.py | 71 + test/test_policy_rule_designated_signers.py | 61 + test/test_policy_rule_dst.py | 58 + test/test_policy_rule_error.py | 61 + test/test_policy_rule_operators.py | 63 + test/test_policy_rule_raw_message_signing.py | 60 + ...ule_raw_message_signing_derivation_path.py | 60 + test/test_policy_rule_src.py | 58 + test/test_policy_rules.py | 115 + test/test_policy_src_or_dest_sub_type.py | 36 + test/test_policy_src_or_dest_type.py | 36 + test/test_policy_status.py | 36 + test/test_policy_validation.py | 83 + test/test_pre_screening.py | 55 + test/test_provider_dto.py | 65 + test/test_public_key_information.py | 58 + test/test_publish_draft_request.py | 54 + test/test_publish_result.py | 217 + test/test_read_abi_function.py | 105 + test/test_read_call_function_dto.py | 55 + ...est_redeem_funds_to_linked_dda_response.py | 57 + test/test_register_new_asset_request.py | 58 + test/test_related_transaction_dto.py | 57 + test/test_remove_collateral_request_body.py | 110 + test/test_rename_cosigner.py | 54 + test/test_rename_vault_account_response.py | 57 + ...est_resend_transaction_webhooks_request.py | 57 + ...end_webhooks_by_transaction_id_response.py | 57 + test/test_resend_webhooks_response.py | 54 + test/test_reset_device_api.py | 39 + test/test_respond_to_connection_request.py | 57 + test/test_reward_info.py | 55 + test/test_rewards_info.py | 54 + test/test_screening_configurations_request.py | 58 + test/test_screening_operation_execution.py | 88 + ...st_screening_operation_execution_output.py | 81 + test/test_screening_operation_failure.py | 71 + test/test_screening_operation_type.py | 36 + test/test_screening_policy_response.py | 89 + ...g_provider_rules_configuration_response.py | 64 + ...screening_update_configurations_request.py | 57 + test/test_screening_validation_failure.py | 60 + test/test_screening_verdict.py | 68 + test/test_screening_verdict_matched_rule.py | 59 + test/test_session_dto.py | 79 + test/test_session_metadata.py | 58 + ...test_set_admin_quorum_threshold_request.py | 56 + ...est_set_admin_quorum_threshold_response.py | 57 + test/test_set_auto_fuel_request.py | 54 + ...est_set_confirmations_threshold_request.py | 56 + ...st_set_confirmations_threshold_response.py | 59 + ...set_customer_ref_id_for_address_request.py | 56 + test/test_set_customer_ref_id_request.py | 54 + ..._set_network_id_discoverability_request.py | 57 + test/test_set_network_id_name_request.py | 55 + test/test_set_network_id_response.py | 55 + ...t_set_network_id_routing_policy_request.py | 61 + test/test_set_ota_status_request.py | 54 + test/test_set_ota_status_response.py | 54 + test/test_set_ota_status_response_one_of.py | 56 + test/test_set_routing_policy_request.py | 59 + test/test_set_routing_policy_response.py | 57 + test/test_settlement_request_body.py | 54 + test/test_settlement_response.py | 73 + test/test_signed_message.py | 64 + test/test_signed_message_signature.py | 57 + test/test_smart_transfer_api.py | 144 + ...est_smart_transfer_bad_request_response.py | 59 + test/test_smart_transfer_create_ticket.py | 70 + .../test_smart_transfer_create_ticket_term.py | 63 + .../test_smart_transfer_forbidden_response.py | 59 + test/test_smart_transfer_fund_term.py | 66 + .../test_smart_transfer_manually_fund_term.py | 57 + .../test_smart_transfer_not_found_response.py | 59 + ...st_smart_transfer_set_ticket_expiration.py | 57 + ...t_smart_transfer_set_ticket_external_id.py | 57 + test/test_smart_transfer_set_user_groups.py | 61 + test/test_smart_transfer_submit_ticket.py | 56 + test/test_smart_transfer_ticket.py | 80 + ...smart_transfer_ticket_filtered_response.py | 105 + test/test_smart_transfer_ticket_response.py | 78 + test/test_smart_transfer_ticket_term.py | 82 + ...est_smart_transfer_ticket_term_response.py | 73 + .../test_smart_transfer_update_ticket_term.py | 63 + test/test_smart_transfer_user_groups.py | 59 + ...est_smart_transfer_user_groups_response.py | 61 + test/test_solana_blockchain_data_dto.py | 55 + test/test_source_transfer_peer_path.py | 59 + ...test_source_transfer_peer_path_response.py | 61 + test/test_spam_ownership_response.py | 57 + test/test_spam_token_response.py | 55 + test/test_src_or_dest_attributes_inner.py | 55 + test/test_stake_request_dto.py | 62 + test/test_stake_response_dto.py | 55 + test/test_staking_beta_api.py | 68 + test/test_stellar_ripple_create_params_dto.py | 61 + test/test_system_message_info.py | 55 + test/test_task.py | 60 + test/test_templates_paginated_response.py | 80 + test/test_third_party_routing.py | 55 + test/test_to_collateral_transaction.py | 58 + test/test_to_exchange_transaction.py | 57 + test/test_token_collection_response.py | 57 + test/test_token_link_dto.py | 61 + test/test_token_link_dto_token_metadata.py | 81 + test/test_token_link_exists_http_error.py | 58 + test/test_token_link_request_dto.py | 58 + test/test_token_ownership_response.py | 88 + ...est_token_ownership_spam_update_payload.py | 59 + ...t_token_ownership_status_update_payload.py | 59 + test/test_token_response.py | 76 + test/test_tokenization_api.py | 67 + test/test_tokens_paginated_response.py | 72 + test/test_trading_account_type.py | 36 + test/test_transaction.py | 59 + test/test_transaction_fee.py | 61 + test/test_transaction_operation.py | 36 + test/test_transaction_request.py | 116 + test/test_transaction_request_amount.py | 53 + test/test_transaction_request_destination.py | 65 + test/test_transaction_request_fee.py | 53 + test/test_transaction_request_gas_limit.py | 55 + test/test_transaction_request_gas_price.py | 55 + test/test_transaction_request_network_fee.py | 55 + ...est_transaction_request_network_staking.py | 55 + test/test_transaction_request_priority_fee.py | 55 + test/test_transaction_response.py | 232 + ...ion_response_contract_call_decoded_data.py | 61 + test/test_transaction_response_destination.py | 78 + test/test_transactions_api.py | 123 + test/test_transfer_config_operation.py | 76 + test/test_transfer_operation_config_params.py | 62 + test/test_transfer_operation_execution.py | 86 + ...est_transfer_operation_execution_output.py | 67 + ...est_transfer_operation_execution_params.py | 64 + ...ation_execution_params_execution_params.py | 63 + test/test_transfer_operation_failure.py | 59 + test/test_transfer_operation_failure_data.py | 60 + test/test_transfer_operation_preview.py | 82 + .../test_transfer_operation_preview_output.py | 71 + test/test_transfer_operation_type.py | 36 + test/test_transfer_peer_path_sub_type.py | 36 + test/test_transfer_peer_path_type.py | 36 + test/test_transfer_validation_failure.py | 58 + test/test_travel_rule_address.py | 61 + test/test_travel_rule_beta_api.py | 67 + ..._travel_rule_create_transaction_request.py | 122 + ...test_travel_rule_get_all_vasps_response.py | 185 + test/test_travel_rule_issuer.py | 55 + test/test_travel_rule_issuers.py | 109 + test/test_travel_rule_ownership_proof.py | 57 + test/test_travel_rule_pii_ivms.py | 62 + test/test_travel_rule_policy_rule_response.py | 70 + ...travel_rule_transaction_blockchain_info.py | 58 + test/test_travel_rule_update_vasp_details.py | 59 + ..._rule_validate_full_transaction_request.py | 129 + ...ravel_rule_validate_transaction_request.py | 75 + ...avel_rule_validate_transaction_response.py | 69 + test/test_travel_rule_vasp.py | 177 + test/test_unfreeze_transaction_response.py | 56 + test/test_unmanaged_wallet.py | 78 + test/test_unspent_input.py | 55 + test/test_unspent_inputs_response.py | 60 + test/test_unstake_request_dto.py | 58 + .../test_update_token_ownership_status_dto.py | 57 + ...ate_vault_account_asset_address_request.py | 56 + test/test_update_vault_account_request.py | 56 + test/test_user_group_create_request.py | 57 + test/test_user_group_create_response.py | 59 + test/test_user_group_response.py | 59 + test/test_user_group_update_request.py | 57 + test/test_user_groups_beta_api.py | 67 + test/test_user_response.py | 59 + test/test_user_role.py | 36 + test/test_user_status.py | 36 + test/test_user_type.py | 36 + test/test_users_api.py | 39 + test/test_validate_address_response.py | 56 + test/test_validator_dto.py | 57 + test/test_vault_account.py | 79 + test/test_vault_accounts_paged_response.py | 89 + ...st_vault_accounts_paged_response_paging.py | 57 + test/test_vault_action_status.py | 54 + test/test_vault_asset.py | 71 + test/test_vault_wallet_address.py | 64 + test/test_vaults_api.py | 207 + test/test_vendor_dto.py | 57 + test/test_wallet_asset.py | 60 + test/test_wallet_asset_additional_info.py | 71 + test/test_web3_connections_api.py | 60 + test/test_webhooks_api.py | 46 + test/test_whitelist_ip_addresses_api.py | 39 + test/test_withdraw_request_dto.py | 58 + test/test_workflow_config_status.py | 36 + test/test_workflow_configuration_id.py | 55 + test/test_workflow_execution_operation.py | 112 + test/test_workspace_status_beta_api.py | 39 + test/test_write_abi_function.py | 105 + test/test_write_call_function_dto.py | 61 + test/test_write_call_function_response_dto.py | 57 + tox.ini | 3 +- 2933 files changed, 165079 insertions(+), 157767 deletions(-) delete mode 100644 .bumpversion.cfg rename .github/{ => .github}/ISSUE_TEMPLATE/bug_report.md (100%) rename .github/{ => .github}/ISSUE_TEMPLATE/feature_request.md (100%) rename .github/{ => .github}/release-drafter.yml (100%) rename .github/{ => .github}/workflows/pr-title.yml (100%) rename .github/{ => .github}/workflows/python-package.yml (100%) rename .github/{ => .github}/workflows/python-publish.yml (100%) rename .github/{ => .github}/workflows/release-drafter.yml (100%) create mode 100644 .github/workflows/python.yml create mode 100644 docs/APIUser.md create mode 100644 docs/AbiFunction.md create mode 100644 docs/Account.md create mode 100644 docs/AccountType.md create mode 100644 docs/AddAssetToExternalWalletRequest.md create mode 100644 docs/AddAssetToExternalWalletRequestOneOf.md create mode 100644 docs/AddAssetToExternalWalletRequestOneOf1.md create mode 100644 docs/AddAssetToExternalWalletRequestOneOf1AdditionalInfo.md create mode 100644 docs/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf.md create mode 100644 docs/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1.md create mode 100644 docs/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2.md create mode 100644 docs/AddCollateralRequestBody.md create mode 100644 docs/AddContractAssetRequest.md create mode 100644 docs/AdditionalInfoDto.md create mode 100644 docs/AmlRegistrationResult.md create mode 100644 docs/AmlScreeningResult.md create mode 100644 docs/AmountAggregationTimePeriodMethod.md create mode 100644 docs/AmountAndChainDescriptor.md create mode 100644 docs/AmountInfo.md create mode 100644 docs/ApiKey.md create mode 100644 docs/ApiKeysPaginatedResponse.md create mode 100644 docs/ApiUserApi.md create mode 100644 docs/AssetAlreadyExistHttpError.md create mode 100644 docs/AssetAmount.md create mode 100644 docs/AssetBadRequestErrorResponse.md create mode 100644 docs/AssetConflictErrorResponse.md create mode 100644 docs/AssetDoesNotExistHttpError.md create mode 100644 docs/AssetForbiddenErrorResponse.md create mode 100644 docs/AssetInternalServerErrorResponse.md create mode 100644 docs/AssetMetadataDto.md create mode 100644 docs/AssetNotFoundErrorResponse.md create mode 100644 docs/AssetResponse.md create mode 100644 docs/AssetResponseMetadata.md create mode 100644 docs/AssetResponseOnchain.md create mode 100644 docs/AssetTypeResponse.md create mode 100644 docs/AssetWallet.md create mode 100644 docs/AssetsApi.md create mode 100644 docs/AuditLogData.md create mode 100644 docs/AuditLogsApi.md create mode 100644 docs/AuditorData.md create mode 100644 docs/AuthorizationGroups.md create mode 100644 docs/AuthorizationInfo.md create mode 100644 docs/BlockInfo.md create mode 100644 docs/BlockchainsAssetsApi.md create mode 100644 docs/CancelTransactionResponse.md create mode 100644 docs/ChainInfoResponseDto.md create mode 100644 docs/CollectionMetadataDto.md create mode 100644 docs/CollectionOwnershipResponse.md create mode 100644 docs/ComplianceApi.md create mode 100644 docs/ComplianceResult.md create mode 100644 docs/ComplianceScreeningConfigurationApi.md create mode 100644 docs/ComplianceScreeningResult.md create mode 100644 docs/ConfigChangeRequestStatus.md create mode 100644 docs/ConfigConversionOperationSnapshot.md create mode 100644 docs/ConfigDisbursementOperationSnapshot.md create mode 100644 docs/ConfigOperation.md create mode 100644 docs/ConfigOperationSnapshot.md create mode 100644 docs/ConfigOperationStatus.md create mode 100644 docs/ConfigTransferOperationSnapshot.md create mode 100644 docs/ConsoleUser.md create mode 100644 docs/ConsoleUserApi.md create mode 100644 docs/ContractAbiResponseDto.md create mode 100644 docs/ContractAttributes.md create mode 100644 docs/ContractDeployRequest.md create mode 100644 docs/ContractDeployResponse.md create mode 100644 docs/ContractDoc.md create mode 100644 docs/ContractInteractionsApi.md create mode 100644 docs/ContractMetadataDto.md create mode 100644 docs/ContractTemplateDto.md create mode 100644 docs/ContractTemplatesApi.md create mode 100644 docs/ContractUploadRequest.md create mode 100644 docs/ContractsApi.md create mode 100644 docs/ConversionConfigOperation.md create mode 100644 docs/ConversionOperationConfigParams.md create mode 100644 docs/ConversionOperationExecution.md create mode 100644 docs/ConversionOperationExecutionOutput.md create mode 100644 docs/ConversionOperationExecutionParams.md create mode 100644 docs/ConversionOperationExecutionParamsExecutionParams.md create mode 100644 docs/ConversionOperationFailure.md create mode 100644 docs/ConversionOperationPreview.md create mode 100644 docs/ConversionOperationPreviewOutput.md create mode 100644 docs/ConversionOperationType.md create mode 100644 docs/ConversionValidationFailure.md create mode 100644 docs/ConvertAssetsRequest.md create mode 100644 docs/ConvertAssetsResponse.md create mode 100644 docs/Cosigner.md create mode 100644 docs/CosignersBetaApi.md create mode 100644 docs/CosignersPaginatedResponse.md create mode 100644 docs/CreateAPIUser.md create mode 100644 docs/CreateAddressRequest.md create mode 100644 docs/CreateAddressResponse.md create mode 100644 docs/CreateAssetsBulkRequest.md create mode 100644 docs/CreateAssetsRequest.md create mode 100644 docs/CreateConfigOperationRequest.md create mode 100644 docs/CreateConnectionRequest.md create mode 100644 docs/CreateConnectionResponse.md create mode 100644 docs/CreateConsoleUser.md create mode 100644 docs/CreateContractRequest.md create mode 100644 docs/CreateConversionConfigOperationRequest.md create mode 100644 docs/CreateDisbursementConfigOperationRequest.md create mode 100644 docs/CreateInternalTransferRequest.md create mode 100644 docs/CreateInternalWalletAssetRequest.md create mode 100644 docs/CreateMultipleAccountsRequest.md create mode 100644 docs/CreateNcwConnectionRequest.md create mode 100644 docs/CreateNetworkIdRequest.md create mode 100644 docs/CreatePayoutRequest.md create mode 100644 docs/CreateTokenRequestDto.md create mode 100644 docs/CreateTokenRequestDtoCreateParams.md create mode 100644 docs/CreateTransactionResponse.md create mode 100644 docs/CreateTransferConfigOperationRequest.md create mode 100644 docs/CreateUserGroupResponse.md create mode 100644 docs/CreateVaultAccountConnectionRequest.md create mode 100644 docs/CreateVaultAccountRequest.md create mode 100644 docs/CreateVaultAssetResponse.md create mode 100644 docs/CreateWalletRequest.md create mode 100644 docs/CreateWorkflowExecutionRequestParamsInner.md create mode 100644 docs/CustomRoutingDest.md create mode 100644 docs/DefaultNetworkRoutingDest.md create mode 100644 docs/DelegationDto.md create mode 100644 docs/DelegationSummaryDto.md create mode 100644 docs/DeleteNetworkConnectionResponse.md create mode 100644 docs/DeleteNetworkIdResponse.md create mode 100644 docs/DeployedContractResponseDto.md create mode 100644 docs/DeployedContractsApi.md create mode 100644 docs/DeployedContractsPaginatedResponse.md create mode 100644 docs/DepositFundsFromLinkedDDAResponse.md create mode 100644 docs/Destination.md create mode 100644 docs/DestinationTransferPeerPath.md create mode 100644 docs/DestinationTransferPeerPathResponse.md create mode 100644 docs/DisbursementAmountInstruction.md create mode 100644 docs/DisbursementConfigOperation.md create mode 100644 docs/DisbursementInstruction.md create mode 100644 docs/DisbursementInstructionOutput.md create mode 100644 docs/DisbursementOperationConfigParams.md create mode 100644 docs/DisbursementOperationExecution.md create mode 100644 docs/DisbursementOperationExecutionOutput.md create mode 100644 docs/DisbursementOperationExecutionParams.md create mode 100644 docs/DisbursementOperationExecutionParamsExecutionParams.md create mode 100644 docs/DisbursementOperationInput.md create mode 100644 docs/DisbursementOperationPreview.md create mode 100644 docs/DisbursementOperationPreviewOutput.md create mode 100644 docs/DisbursementOperationPreviewOutputInstructionSetInner.md create mode 100644 docs/DisbursementOperationType.md create mode 100644 docs/DisbursementPercentageInstruction.md create mode 100644 docs/DisbursementValidationFailure.md create mode 100644 docs/DispatchPayoutResponse.md create mode 100644 docs/DraftResponse.md create mode 100644 docs/DraftReviewAndValidationResponse.md create mode 100644 docs/DropTransactionRequest.md create mode 100644 docs/DropTransactionResponse.md create mode 100644 docs/EVMTokenCreateParamsDto.md create mode 100644 docs/EditGasStationConfigurationResponse.md create mode 100644 docs/ErrorResponse.md create mode 100644 docs/ErrorResponseError.md create mode 100644 docs/ErrorSchema.md create mode 100644 docs/EstimatedNetworkFeeResponse.md create mode 100644 docs/EstimatedTransactionFeeResponse.md create mode 100644 docs/ExchangeAccount.md create mode 100644 docs/ExchangeAccountsApi.md create mode 100644 docs/ExchangeAccountsPaged.md create mode 100644 docs/ExchangeAccountsPagedPaging.md create mode 100644 docs/ExchangeAsset.md create mode 100644 docs/ExchangeSettlementTransactionsResponse.md create mode 100644 docs/ExchangeTradingAccount.md create mode 100644 docs/ExchangeType.md create mode 100644 docs/ExecuteActionRequest.md create mode 100644 docs/ExecuteActionResponse.md create mode 100644 docs/ExecutionConversionOperation.md create mode 100644 docs/ExecutionDisbursementOperation.md create mode 100644 docs/ExecutionOperationStatus.md create mode 100644 docs/ExecutionScreeningOperation.md create mode 100644 docs/ExecutionTransferOperation.md create mode 100644 docs/ExternalWalletAsset.md create mode 100644 docs/ExternalWalletsApi.md create mode 100644 docs/FeeInfo.md create mode 100644 docs/FiatAccount.md create mode 100644 docs/FiatAccountType.md create mode 100644 docs/FiatAccountsApi.md create mode 100644 docs/FiatAsset.md create mode 100644 docs/FreezeTransactionResponse.md create mode 100644 docs/FunctionDoc.md create mode 100644 docs/Funds.md create mode 100644 docs/GasStationConfiguration.md create mode 100644 docs/GasStationConfigurationResponse.md create mode 100644 docs/GasStationPropertiesResponse.md create mode 100644 docs/GasStationsApi.md create mode 100644 docs/GetAPIUsersResponse.md create mode 100644 docs/GetAuditLogsResponse.md create mode 100644 docs/GetAuditLogsResponseDTO.md create mode 100644 docs/GetConnectionsResponse.md create mode 100644 docs/GetConsoleUsersResponse.md create mode 100644 docs/GetFilterParameter.md create mode 100644 docs/GetMaxSpendableAmountResponse.md create mode 100644 docs/GetNFTsResponse.md create mode 100644 docs/GetOtaStatusResponse.md create mode 100644 docs/GetOwnershipTokensResponse.md create mode 100644 docs/GetTransactionOperation.md create mode 100644 docs/GetWhitelistIpAddressesResponse.md create mode 100644 docs/GetWorkspaceStatusResponse.md create mode 100644 docs/HttpContractDoesNotExistError.md create mode 100644 docs/InstructionAmount.md create mode 100644 docs/InternalTransferResponse.md create mode 100644 docs/InternalWalletsApi.md create mode 100644 docs/Job.md create mode 100644 docs/JobCreated.md create mode 100644 docs/JobManagementApi.md create mode 100644 docs/LeanAbiFunction.md create mode 100644 docs/LeanContractDto.md create mode 100644 docs/LeanDeployedContractResponseDto.md create mode 100644 docs/ListOwnedCollectionsResponse.md create mode 100644 docs/ListOwnedTokensResponse.md create mode 100644 docs/MediaEntityResponse.md create mode 100644 docs/NFTsApi.md create mode 100644 docs/NetworkChannel.md create mode 100644 docs/NetworkConnection.md create mode 100644 docs/NetworkConnectionResponse.md create mode 100644 docs/NetworkConnectionRoutingPolicyValue.md create mode 100644 docs/NetworkConnectionStatus.md create mode 100644 docs/NetworkConnectionsApi.md create mode 100644 docs/NetworkFee.md create mode 100644 docs/NetworkId.md create mode 100644 docs/NetworkIdResponse.md create mode 100644 docs/NetworkIdRoutingPolicyValue.md create mode 100644 docs/NetworkRecord.md create mode 100644 docs/NoneNetworkRoutingDest.md create mode 100644 docs/NotFoundException.md create mode 100644 docs/OTABetaApi.md create mode 100644 docs/OffExchangesApi.md create mode 100644 docs/OneTimeAddress.md create mode 100644 docs/OneTimeAddressAccount.md create mode 100644 docs/OperationExecutionFailure.md create mode 100644 docs/PaginatedAddressResponse.md create mode 100644 docs/PaginatedAddressResponsePaging.md create mode 100644 docs/PaginatedAssetWalletResponse.md create mode 100644 docs/PaginatedAssetWalletResponsePaging.md create mode 100644 docs/Paging.md create mode 100644 docs/Parameter.md create mode 100644 docs/ParameterWithValue.md create mode 100644 docs/PayeeAccount.md create mode 100644 docs/PayeeAccountResponse.md create mode 100644 docs/PayeeAccountType.md create mode 100644 docs/PaymentAccount.md create mode 100644 docs/PaymentAccountResponse.md create mode 100644 docs/PaymentAccountType.md create mode 100644 docs/PaymentsPayoutApi.md create mode 100644 docs/PayoutInitMethod.md create mode 100644 docs/PayoutInstruction.md create mode 100644 docs/PayoutInstructionResponse.md create mode 100644 docs/PayoutInstructionState.md create mode 100644 docs/PayoutResponse.md create mode 100644 docs/PayoutState.md create mode 100644 docs/PayoutStatus.md create mode 100644 docs/PolicyAndValidationResponse.md create mode 100644 docs/PolicyCheckResult.md create mode 100644 docs/PolicyEditorBetaApi.md create mode 100644 docs/PolicyMetadata.md create mode 100644 docs/PolicyResponse.md create mode 100644 docs/PolicyRule.md create mode 100644 docs/PolicyRuleAmount.md create mode 100644 docs/PolicyRuleAmountAggregation.md create mode 100644 docs/PolicyRuleAuthorizationGroups.md create mode 100644 docs/PolicyRuleAuthorizationGroupsGroupsInner.md create mode 100644 docs/PolicyRuleCheckResult.md create mode 100644 docs/PolicyRuleDesignatedSigners.md create mode 100644 docs/PolicyRuleDst.md create mode 100644 docs/PolicyRuleError.md create mode 100644 docs/PolicyRuleOperators.md create mode 100644 docs/PolicyRuleRawMessageSigning.md create mode 100644 docs/PolicyRuleRawMessageSigningDerivationPath.md create mode 100644 docs/PolicyRuleSrc.md create mode 100644 docs/PolicyRules.md create mode 100644 docs/PolicySrcOrDestSubType.md create mode 100644 docs/PolicySrcOrDestType.md create mode 100644 docs/PolicyStatus.md create mode 100644 docs/PolicyValidation.md create mode 100644 docs/PreScreening.md create mode 100644 docs/ProviderDto.md create mode 100644 docs/PublicKeyInformation.md create mode 100644 docs/PublishDraftRequest.md create mode 100644 docs/PublishResult.md create mode 100644 docs/ReadAbiFunction.md create mode 100644 docs/ReadCallFunctionDto.md create mode 100644 docs/RedeemFundsToLinkedDDAResponse.md create mode 100644 docs/RegisterNewAssetRequest.md create mode 100644 docs/RelatedTransactionDto.md create mode 100644 docs/RemoveCollateralRequestBody.md create mode 100644 docs/RenameCosigner.md create mode 100644 docs/RenameVaultAccountResponse.md create mode 100644 docs/ResendTransactionWebhooksRequest.md create mode 100644 docs/ResendWebhooksByTransactionIdResponse.md create mode 100644 docs/ResendWebhooksResponse.md create mode 100644 docs/ResetDeviceApi.md create mode 100644 docs/RespondToConnectionRequest.md create mode 100644 docs/RewardInfo.md create mode 100644 docs/RewardsInfo.md create mode 100644 docs/ScreeningConfigurationsRequest.md create mode 100644 docs/ScreeningOperationExecution.md create mode 100644 docs/ScreeningOperationExecutionOutput.md create mode 100644 docs/ScreeningOperationFailure.md create mode 100644 docs/ScreeningOperationType.md create mode 100644 docs/ScreeningPolicyResponse.md create mode 100644 docs/ScreeningProviderRulesConfigurationResponse.md create mode 100644 docs/ScreeningUpdateConfigurationsRequest.md create mode 100644 docs/ScreeningValidationFailure.md create mode 100644 docs/ScreeningVerdict.md create mode 100644 docs/ScreeningVerdictMatchedRule.md create mode 100644 docs/SessionDTO.md create mode 100644 docs/SessionMetadata.md create mode 100644 docs/SetAdminQuorumThresholdRequest.md create mode 100644 docs/SetAdminQuorumThresholdResponse.md create mode 100644 docs/SetAutoFuelRequest.md create mode 100644 docs/SetConfirmationsThresholdRequest.md create mode 100644 docs/SetConfirmationsThresholdResponse.md create mode 100644 docs/SetCustomerRefIdForAddressRequest.md create mode 100644 docs/SetCustomerRefIdRequest.md create mode 100644 docs/SetNetworkIdDiscoverabilityRequest.md create mode 100644 docs/SetNetworkIdNameRequest.md create mode 100644 docs/SetNetworkIdResponse.md create mode 100644 docs/SetNetworkIdRoutingPolicyRequest.md create mode 100644 docs/SetOtaStatusRequest.md create mode 100644 docs/SetOtaStatusResponse.md create mode 100644 docs/SetOtaStatusResponseOneOf.md create mode 100644 docs/SetRoutingPolicyRequest.md create mode 100644 docs/SetRoutingPolicyResponse.md create mode 100644 docs/SettlementRequestBody.md create mode 100644 docs/SettlementResponse.md create mode 100644 docs/SignedMessage.md create mode 100644 docs/SignedMessageSignature.md create mode 100644 docs/SmartTransferApi.md create mode 100644 docs/SmartTransferBadRequestResponse.md create mode 100644 docs/SmartTransferCreateTicket.md create mode 100644 docs/SmartTransferCreateTicketTerm.md create mode 100644 docs/SmartTransferForbiddenResponse.md create mode 100644 docs/SmartTransferFundTerm.md create mode 100644 docs/SmartTransferManuallyFundTerm.md create mode 100644 docs/SmartTransferNotFoundResponse.md create mode 100644 docs/SmartTransferSetTicketExpiration.md create mode 100644 docs/SmartTransferSetTicketExternalId.md create mode 100644 docs/SmartTransferSetUserGroups.md create mode 100644 docs/SmartTransferSubmitTicket.md create mode 100644 docs/SmartTransferTicket.md create mode 100644 docs/SmartTransferTicketFilteredResponse.md create mode 100644 docs/SmartTransferTicketResponse.md create mode 100644 docs/SmartTransferTicketTerm.md create mode 100644 docs/SmartTransferTicketTermResponse.md create mode 100644 docs/SmartTransferUpdateTicketTerm.md create mode 100644 docs/SmartTransferUserGroups.md create mode 100644 docs/SmartTransferUserGroupsResponse.md create mode 100644 docs/SolanaBlockchainDataDto.md create mode 100644 docs/SourceTransferPeerPath.md create mode 100644 docs/SourceTransferPeerPathResponse.md create mode 100644 docs/SpamOwnershipResponse.md create mode 100644 docs/SpamTokenResponse.md create mode 100644 docs/SrcOrDestAttributesInner.md create mode 100644 docs/StakeRequestDto.md create mode 100644 docs/StakeResponseDto.md create mode 100644 docs/StakingBetaApi.md create mode 100644 docs/StellarRippleCreateParamsDto.md create mode 100644 docs/SystemMessageInfo.md create mode 100644 docs/Task.md create mode 100644 docs/TemplatesPaginatedResponse.md create mode 100644 docs/ThirdPartyRouting.md create mode 100644 docs/ToCollateralTransaction.md create mode 100644 docs/ToExchangeTransaction.md create mode 100644 docs/TokenCollectionResponse.md create mode 100644 docs/TokenLinkDto.md create mode 100644 docs/TokenLinkDtoTokenMetadata.md create mode 100644 docs/TokenLinkExistsHttpError.md create mode 100644 docs/TokenLinkRequestDto.md create mode 100644 docs/TokenOwnershipResponse.md create mode 100644 docs/TokenOwnershipSpamUpdatePayload.md create mode 100644 docs/TokenOwnershipStatusUpdatePayload.md create mode 100644 docs/TokenResponse.md create mode 100644 docs/TokenizationApi.md create mode 100644 docs/TokensPaginatedResponse.md create mode 100644 docs/TradingAccountType.md create mode 100644 docs/Transaction.md create mode 100644 docs/TransactionFee.md create mode 100644 docs/TransactionOperation.md create mode 100644 docs/TransactionRequest.md create mode 100644 docs/TransactionRequestAmount.md create mode 100644 docs/TransactionRequestDestination.md create mode 100644 docs/TransactionRequestFee.md create mode 100644 docs/TransactionRequestGasLimit.md create mode 100644 docs/TransactionRequestGasPrice.md create mode 100644 docs/TransactionRequestNetworkFee.md create mode 100644 docs/TransactionRequestNetworkStaking.md create mode 100644 docs/TransactionRequestPriorityFee.md create mode 100644 docs/TransactionResponse.md create mode 100644 docs/TransactionResponseContractCallDecodedData.md create mode 100644 docs/TransactionResponseDestination.md create mode 100644 docs/TransactionsApi.md create mode 100644 docs/TransferConfigOperation.md create mode 100644 docs/TransferOperationConfigParams.md create mode 100644 docs/TransferOperationExecution.md create mode 100644 docs/TransferOperationExecutionOutput.md create mode 100644 docs/TransferOperationExecutionParams.md create mode 100644 docs/TransferOperationExecutionParamsExecutionParams.md create mode 100644 docs/TransferOperationFailure.md create mode 100644 docs/TransferOperationFailureData.md create mode 100644 docs/TransferOperationPreview.md create mode 100644 docs/TransferOperationPreviewOutput.md create mode 100644 docs/TransferOperationType.md create mode 100644 docs/TransferPeerPathSubType.md create mode 100644 docs/TransferPeerPathType.md create mode 100644 docs/TransferValidationFailure.md create mode 100644 docs/TravelRuleAddress.md create mode 100644 docs/TravelRuleBetaApi.md create mode 100644 docs/TravelRuleCreateTransactionRequest.md create mode 100644 docs/TravelRuleGetAllVASPsResponse.md create mode 100644 docs/TravelRuleIssuer.md create mode 100644 docs/TravelRuleIssuers.md create mode 100644 docs/TravelRuleOwnershipProof.md create mode 100644 docs/TravelRulePiiIVMS.md create mode 100644 docs/TravelRulePolicyRuleResponse.md create mode 100644 docs/TravelRuleTransactionBlockchainInfo.md create mode 100644 docs/TravelRuleUpdateVASPDetails.md create mode 100644 docs/TravelRuleVASP.md create mode 100644 docs/TravelRuleValidateFullTransactionRequest.md create mode 100644 docs/TravelRuleValidateTransactionRequest.md create mode 100644 docs/TravelRuleValidateTransactionResponse.md create mode 100644 docs/UnfreezeTransactionResponse.md create mode 100644 docs/UnmanagedWallet.md create mode 100644 docs/UnspentInput.md create mode 100644 docs/UnspentInputsResponse.md create mode 100644 docs/UnstakeRequestDto.md create mode 100644 docs/UpdateTokenOwnershipStatusDto.md create mode 100644 docs/UpdateVaultAccountAssetAddressRequest.md create mode 100644 docs/UpdateVaultAccountRequest.md create mode 100644 docs/UserGroupCreateRequest.md create mode 100644 docs/UserGroupCreateResponse.md create mode 100644 docs/UserGroupResponse.md create mode 100644 docs/UserGroupUpdateRequest.md create mode 100644 docs/UserGroupsBetaApi.md create mode 100644 docs/UserResponse.md create mode 100644 docs/UserRole.md create mode 100644 docs/UserStatus.md create mode 100644 docs/UserType.md create mode 100644 docs/UsersApi.md create mode 100644 docs/ValidateAddressResponse.md create mode 100644 docs/ValidatorDto.md create mode 100644 docs/VaultAccount.md create mode 100644 docs/VaultAccountsPagedResponse.md create mode 100644 docs/VaultAccountsPagedResponsePaging.md create mode 100644 docs/VaultActionStatus.md create mode 100644 docs/VaultAsset.md create mode 100644 docs/VaultWalletAddress.md create mode 100644 docs/VaultsApi.md create mode 100644 docs/VendorDto.md create mode 100644 docs/WalletAsset.md create mode 100644 docs/WalletAssetAdditionalInfo.md create mode 100644 docs/Web3ConnectionsApi.md create mode 100644 docs/WebhooksApi.md create mode 100644 docs/WhitelistIpAddressesApi.md create mode 100644 docs/WithdrawRequestDto.md create mode 100644 docs/WorkflowConfigStatus.md create mode 100644 docs/WorkflowConfigurationId.md create mode 100644 docs/WorkflowExecutionOperation.md create mode 100644 docs/WorkspaceStatusBetaApi.md create mode 100644 docs/WriteAbiFunction.md create mode 100644 docs/WriteCallFunctionDto.md create mode 100644 docs/WriteCallFunctionResponseDto.md delete mode 100644 docs/apis/tags/AuditLogsApi.md delete mode 100644 docs/apis/tags/BlockchainsAssetsApi.md delete mode 100644 docs/apis/tags/ContractsApi.md delete mode 100644 docs/apis/tags/ExchangeAccountsApi.md delete mode 100644 docs/apis/tags/ExternalWalletsApi.md delete mode 100644 docs/apis/tags/FiatAccountsApi.md delete mode 100644 docs/apis/tags/GasStationsApi.md delete mode 100644 docs/apis/tags/InternalWalletsApi.md delete mode 100644 docs/apis/tags/NFTsApi.md delete mode 100644 docs/apis/tags/NFTsBetaApi.md delete mode 100644 docs/apis/tags/NetworkConnectionsApi.md delete mode 100644 docs/apis/tags/OTABetaApi.md delete mode 100644 docs/apis/tags/OffExchangesApi.md delete mode 100644 docs/apis/tags/PaymentsCrossBorderSettlementApi.md delete mode 100644 docs/apis/tags/PaymentsPayoutApi.md delete mode 100644 docs/apis/tags/PolicyEditorBetaApi.md delete mode 100644 docs/apis/tags/TransactionsApi.md delete mode 100644 docs/apis/tags/TravelRuleBetaApi.md delete mode 100644 docs/apis/tags/UsersApi.md delete mode 100644 docs/apis/tags/UsersGroupsBetaApi.md delete mode 100644 docs/apis/tags/VaultsApi.md delete mode 100644 docs/apis/tags/Web3ConnectionsApi.md delete mode 100644 docs/apis/tags/WebhooksApi.md delete mode 100644 docs/models/AddCollateralRequestBody.md delete mode 100644 docs/models/AmlScreeningResult.md delete mode 100644 docs/models/AmountAggregationTimePeriodMethod.md delete mode 100644 docs/models/AmountInfo.md delete mode 100644 docs/models/AssetTypeResponse.md delete mode 100644 docs/models/AssetWallet.md delete mode 100644 docs/models/AuthorizationGroups.md delete mode 100644 docs/models/AuthorizationInfo.md delete mode 100644 docs/models/BlockInfo.md delete mode 100644 docs/models/CancelTransactionResponse.md delete mode 100644 docs/models/CollectionOwnershipResponse.md delete mode 100644 docs/models/ConfigChangeRequestStatus.md delete mode 100644 docs/models/CreateAddressResponse.md delete mode 100644 docs/models/CreateConnectionRequest.md delete mode 100644 docs/models/CreateConnectionResponse.md delete mode 100644 docs/models/CreateInternalTransferRequest.md delete mode 100644 docs/models/CreatePayoutRequest.md delete mode 100644 docs/models/CreateTransactionResponse.md delete mode 100644 docs/models/CreateUsersGroupResponse.md delete mode 100644 docs/models/CreateVaultAssetResponse.md delete mode 100644 docs/models/CustomCryptoRoutingDest.md delete mode 100644 docs/models/CustomFiatRoutingDest.md delete mode 100644 docs/models/DefaultNetworkRoutingDest.md delete mode 100644 docs/models/DestinationTransferPeerPath.md delete mode 100644 docs/models/DestinationTransferPeerPathResponse.md delete mode 100644 docs/models/DispatchPayoutResponse.md delete mode 100644 docs/models/DraftResponse.md delete mode 100644 docs/models/DraftReviewAndValidationResponse.md delete mode 100644 docs/models/DropTransactionRequest.md delete mode 100644 docs/models/DropTransactionResponse.md delete mode 100644 docs/models/Error.md delete mode 100644 docs/models/ErrorResponse.md delete mode 100644 docs/models/EstimatedNetworkFeeResponse.md delete mode 100644 docs/models/EstimatedTransactionFeeResponse.md delete mode 100644 docs/models/ExchangeAccount.md delete mode 100644 docs/models/ExchangeAsset.md delete mode 100644 docs/models/ExchangeTradingAccount.md delete mode 100644 docs/models/ExchangeType.md delete mode 100644 docs/models/ExternalWalletAsset.md delete mode 100644 docs/models/FeeInfo.md delete mode 100644 docs/models/FiatAccount.md delete mode 100644 docs/models/FiatAccountType.md delete mode 100644 docs/models/FiatAsset.md delete mode 100644 docs/models/FreezeTransactionResponse.md delete mode 100644 docs/models/GasStationConfiguration.md delete mode 100644 docs/models/GasStationPropertiesResponse.md delete mode 100644 docs/models/GetConnectionsResponse.md delete mode 100644 docs/models/GetSettlementResponse.md delete mode 100644 docs/models/GetTransactionOperation.md delete mode 100644 docs/models/GetUsersResponse.md delete mode 100644 docs/models/InstructionAmount.md delete mode 100644 docs/models/MediaEntityResponse.md delete mode 100644 docs/models/Ncw.md delete mode 100644 docs/models/NetworkChannel.md delete mode 100644 docs/models/NetworkConnection.md delete mode 100644 docs/models/NetworkConnectionResponse.md delete mode 100644 docs/models/NetworkConnectionRoutingPolicy.md delete mode 100644 docs/models/NetworkFee.md delete mode 100644 docs/models/NetworkId.md delete mode 100644 docs/models/NetworkIdResponse.md delete mode 100644 docs/models/NetworkIdRoutingPolicy.md delete mode 100644 docs/models/NetworkRecord.md delete mode 100644 docs/models/NoneNetworkRoutingDest.md delete mode 100644 docs/models/OneTimeAddress.md delete mode 100644 docs/models/PaginatedAssetWalletResponse.md delete mode 100644 docs/models/Paging.md delete mode 100644 docs/models/PayeeAccount.md delete mode 100644 docs/models/PayeeAccountResponse.md delete mode 100644 docs/models/PayeeAccountType.md delete mode 100644 docs/models/PaymentAccount.md delete mode 100644 docs/models/PaymentAccountResponse.md delete mode 100644 docs/models/PaymentAccountType.md delete mode 100644 docs/models/PayoutInitMethod.md delete mode 100644 docs/models/PayoutInstruction.md delete mode 100644 docs/models/PayoutInstructionResponse.md delete mode 100644 docs/models/PayoutInstructionState.md delete mode 100644 docs/models/PayoutResponse.md delete mode 100644 docs/models/PayoutState.md delete mode 100644 docs/models/PayoutStatus.md delete mode 100644 docs/models/PolicyAndValidationResponse.md delete mode 100644 docs/models/PolicyCheckResult.md delete mode 100644 docs/models/PolicyMetadata.md delete mode 100644 docs/models/PolicyResponse.md delete mode 100644 docs/models/PolicyRule.md delete mode 100644 docs/models/PolicyRuleCheckResult.md delete mode 100644 docs/models/PolicyRuleError.md delete mode 100644 docs/models/PolicySrcOrDestId.md delete mode 100644 docs/models/PolicySrcOrDestSubType.md delete mode 100644 docs/models/PolicySrcOrDestType.md delete mode 100644 docs/models/PolicyStatus.md delete mode 100644 docs/models/PolicyValidation.md delete mode 100644 docs/models/PublicKeyInformation.md delete mode 100644 docs/models/PublishResult.md delete mode 100644 docs/models/RemoveCollateralRequestBody.md delete mode 100644 docs/models/RequestOptions.md delete mode 100644 docs/models/ResendWebhooksResponse.md delete mode 100644 docs/models/RespondToConnectionRequest.md delete mode 100644 docs/models/RewardInfo.md delete mode 100644 docs/models/RewardsInfo.md delete mode 100644 docs/models/SessionDTO.md delete mode 100644 docs/models/SessionMetadata.md delete mode 100644 docs/models/SetConfirmationsThresholdRequest.md delete mode 100644 docs/models/SetConfirmationsThresholdResponse.md delete mode 100644 docs/models/SettlementRequestBody.md delete mode 100644 docs/models/SettlementResponse.md delete mode 100644 docs/models/SignedMessage.md delete mode 100644 docs/models/SourceTransferPeerPathResponse.md delete mode 100644 docs/models/SystemMessageInfo.md delete mode 100644 docs/models/Term.md delete mode 100644 docs/models/ToCollateralTransaction.md delete mode 100644 docs/models/ToExchangeTransaction.md delete mode 100644 docs/models/TokenCollectionResponse.md delete mode 100644 docs/models/TokenOwnershipResponse.md delete mode 100644 docs/models/TokenResponse.md delete mode 100644 docs/models/TradingAccountType.md delete mode 100644 docs/models/Transaction.md delete mode 100644 docs/models/TransactionFee.md delete mode 100644 docs/models/TransactionOperation.md delete mode 100644 docs/models/TransactionRequest.md delete mode 100644 docs/models/TransactionRequestDestination.md delete mode 100644 docs/models/TransactionResponse.md delete mode 100644 docs/models/TransactionResponseDestination.md delete mode 100644 docs/models/TransferPeerPath.md delete mode 100644 docs/models/TravelRuleAddress.md delete mode 100644 docs/models/TravelRuleGetAllVASPsResponse.md delete mode 100644 docs/models/TravelRuleIssuer.md delete mode 100644 docs/models/TravelRuleIssuers.md delete mode 100644 docs/models/TravelRuleOwnershipProof.md delete mode 100644 docs/models/TravelRulePiiIVMS.md delete mode 100644 docs/models/TravelRuleTransactionBlockchainInfo.md delete mode 100644 docs/models/TravelRuleUpdateVASPDetails.md delete mode 100644 docs/models/TravelRuleVASP.md delete mode 100644 docs/models/TravelRuleValidateFullTransactionRequest.md delete mode 100644 docs/models/TravelRuleValidateTransactionRequest.md delete mode 100644 docs/models/TravelRuleValidateTransactionResponse.md delete mode 100644 docs/models/UnfreezeTransactionResponse.md delete mode 100644 docs/models/UnmanagedWallet.md delete mode 100644 docs/models/UnsignedMessage.md delete mode 100644 docs/models/UnspentInput.md delete mode 100644 docs/models/UnspentInputsResponse.md delete mode 100644 docs/models/UpdateTokenOwnershipStatusDto.md delete mode 100644 docs/models/UserGroupCreateRequest.md delete mode 100644 docs/models/UserGroupCreateResponse.md delete mode 100644 docs/models/UserGroupUpdateRequest.md delete mode 100644 docs/models/UserResponse.md delete mode 100644 docs/models/UsersGroupResponse.md delete mode 100644 docs/models/UsersGroupsResponse.md delete mode 100644 docs/models/ValidateAddressResponse.md delete mode 100644 docs/models/VaultAccount.md delete mode 100644 docs/models/VaultAccountsPagedResponse.md delete mode 100644 docs/models/VaultAsset.md delete mode 100644 docs/models/VaultWalletAddress.md delete mode 100644 docs/models/WalletAsset.md delete mode 100644 docs/models/WalletAssetAdditionalInfo.md delete mode 100644 docs/models/XBSettlementAsset.md delete mode 100644 docs/models/XBSettlementAssetID.md delete mode 100644 docs/models/XBSettlementConfigCreationRequestBody.md delete mode 100644 docs/models/XBSettlementConfigCreationResponse.md delete mode 100644 docs/models/XBSettlementConfigDeletionResponse.md delete mode 100644 docs/models/XBSettlementConfigEditRequestBody.md delete mode 100644 docs/models/XBSettlementConfigEditResponse.md delete mode 100644 docs/models/XBSettlementConfigId.md delete mode 100644 docs/models/XBSettlementConfigModel.md delete mode 100644 docs/models/XBSettlementConfigStep.md delete mode 100644 docs/models/XBSettlementConfigStepsRecord.md delete mode 100644 docs/models/XBSettlementConversionSlippageBasisPoints.md delete mode 100644 docs/models/XBSettlementCorridorId.md delete mode 100644 docs/models/XBSettlementCreateFlowRequestBody.md delete mode 100644 docs/models/XBSettlementCreateFlowResponse.md delete mode 100644 docs/models/XBSettlementCryptoAsset.md delete mode 100644 docs/models/XBSettlementFiatAsset.md delete mode 100644 docs/models/XBSettlementFlowExecutionModel.md delete mode 100644 docs/models/XBSettlementFlowExecutionRequestBody.md delete mode 100644 docs/models/XBSettlementFlowExecutionResponse.md delete mode 100644 docs/models/XBSettlementFlowExecutionStatus.md delete mode 100644 docs/models/XBSettlementFlowExecutionStep.md delete mode 100644 docs/models/XBSettlementFlowExecutionStepStatus.md delete mode 100644 docs/models/XBSettlementFlowPreviewModel.md delete mode 100644 docs/models/XBSettlementFlowSelectedConversionSlippageReason.md delete mode 100644 docs/models/XBSettlementFlowSetupStep.md delete mode 100644 docs/models/XBSettlementFlowStepsExecutionRecord.md delete mode 100644 docs/models/XBSettlementFlowStepsRecord.md delete mode 100644 docs/models/XBSettlementGetAllConfigsResponse.md delete mode 100644 docs/models/XBSettlementGetConfigResponse.md delete mode 100644 docs/models/XBSettlementGetFlowResponse.md delete mode 100644 docs/models/XBSettlementStepType.md create mode 100644 fireblocks_client/api/__init__.py create mode 100644 fireblocks_client/api/api_user_api.py create mode 100644 fireblocks_client/api/assets_api.py create mode 100644 fireblocks_client/api/audit_logs_api.py create mode 100644 fireblocks_client/api/blockchains_assets_api.py create mode 100644 fireblocks_client/api/compliance_api.py create mode 100644 fireblocks_client/api/compliance_screening_configuration_api.py create mode 100644 fireblocks_client/api/console_user_api.py create mode 100644 fireblocks_client/api/contract_interactions_api.py create mode 100644 fireblocks_client/api/contract_templates_api.py create mode 100644 fireblocks_client/api/contracts_api.py create mode 100644 fireblocks_client/api/cosigners_beta_api.py create mode 100644 fireblocks_client/api/deployed_contracts_api.py create mode 100644 fireblocks_client/api/exchange_accounts_api.py create mode 100644 fireblocks_client/api/external_wallets_api.py create mode 100644 fireblocks_client/api/fiat_accounts_api.py create mode 100644 fireblocks_client/api/gas_stations_api.py create mode 100644 fireblocks_client/api/internal_wallets_api.py create mode 100644 fireblocks_client/api/job_management_api.py create mode 100644 fireblocks_client/api/network_connections_api.py create mode 100644 fireblocks_client/api/nfts_api.py create mode 100644 fireblocks_client/api/off_exchanges_api.py create mode 100644 fireblocks_client/api/ota_beta_api.py create mode 100644 fireblocks_client/api/payments_payout_api.py create mode 100644 fireblocks_client/api/policy_editor_beta_api.py create mode 100644 fireblocks_client/api/reset_device_api.py create mode 100644 fireblocks_client/api/smart_transfer_api.py create mode 100644 fireblocks_client/api/staking_beta_api.py create mode 100644 fireblocks_client/api/tokenization_api.py create mode 100644 fireblocks_client/api/transactions_api.py create mode 100644 fireblocks_client/api/travel_rule_beta_api.py create mode 100644 fireblocks_client/api/user_groups_beta_api.py create mode 100644 fireblocks_client/api/users_api.py create mode 100644 fireblocks_client/api/vaults_api.py create mode 100644 fireblocks_client/api/web3_connections_api.py create mode 100644 fireblocks_client/api/webhooks_api.py create mode 100644 fireblocks_client/api/whitelist_ip_addresses_api.py create mode 100644 fireblocks_client/api/workspace_status_beta_api.py create mode 100644 fireblocks_client/api_response.py delete mode 100644 fireblocks_client/apis/__init__.py delete mode 100644 fireblocks_client/apis/path_to_api.py delete mode 100644 fireblocks_client/apis/paths/__init__.py delete mode 100644 fireblocks_client/apis/paths/audits.py delete mode 100644 fireblocks_client/apis/paths/connections.py delete mode 100644 fireblocks_client/apis/paths/connections_wc.py delete mode 100644 fireblocks_client/apis/paths/connections_wc_id.py delete mode 100644 fireblocks_client/apis/paths/contracts.py delete mode 100644 fireblocks_client/apis/paths/contracts_contract_id.py delete mode 100644 fireblocks_client/apis/paths/contracts_contract_id_asset_id.py delete mode 100644 fireblocks_client/apis/paths/estimate_network_fee.py delete mode 100644 fireblocks_client/apis/paths/exchange_accounts.py delete mode 100644 fireblocks_client/apis/paths/exchange_accounts_exchange_account_id.py delete mode 100644 fireblocks_client/apis/paths/exchange_accounts_exchange_account_id_asset_id.py delete mode 100644 fireblocks_client/apis/paths/exchange_accounts_exchange_account_id_convert.py delete mode 100644 fireblocks_client/apis/paths/exchange_accounts_exchange_account_id_internal_transfer.py delete mode 100644 fireblocks_client/apis/paths/external_wallets.py delete mode 100644 fireblocks_client/apis/paths/external_wallets_wallet_id.py delete mode 100644 fireblocks_client/apis/paths/external_wallets_wallet_id_asset_id.py delete mode 100644 fireblocks_client/apis/paths/external_wallets_wallet_id_set_customer_ref_id.py delete mode 100644 fireblocks_client/apis/paths/fiat_accounts.py delete mode 100644 fireblocks_client/apis/paths/fiat_accounts_account_id.py delete mode 100644 fireblocks_client/apis/paths/fiat_accounts_account_id_deposit_from_linked_dda.py delete mode 100644 fireblocks_client/apis/paths/fiat_accounts_account_id_redeem_to_linked_dda.py delete mode 100644 fireblocks_client/apis/paths/gas_station.py delete mode 100644 fireblocks_client/apis/paths/gas_station_asset_id.py delete mode 100644 fireblocks_client/apis/paths/gas_station_configuration.py delete mode 100644 fireblocks_client/apis/paths/gas_station_configuration_asset_id.py delete mode 100644 fireblocks_client/apis/paths/internal_wallets.py delete mode 100644 fireblocks_client/apis/paths/internal_wallets_wallet_id.py delete mode 100644 fireblocks_client/apis/paths/internal_wallets_wallet_id_asset_id.py delete mode 100644 fireblocks_client/apis/paths/internal_wallets_wallet_id_set_customer_ref_id.py delete mode 100644 fireblocks_client/apis/paths/management_ota.py delete mode 100644 fireblocks_client/apis/paths/network_connections.py delete mode 100644 fireblocks_client/apis/paths/network_connections_connection_id.py delete mode 100644 fireblocks_client/apis/paths/network_connections_connection_id_is_third_party_routing_asset_type.py delete mode 100644 fireblocks_client/apis/paths/network_connections_connection_id_set_routing_policy.py delete mode 100644 fireblocks_client/apis/paths/network_ids.py delete mode 100644 fireblocks_client/apis/paths/network_ids_network_id.py delete mode 100644 fireblocks_client/apis/paths/network_ids_network_id_set_discoverability.py delete mode 100644 fireblocks_client/apis/paths/network_ids_network_id_set_name.py delete mode 100644 fireblocks_client/apis/paths/network_ids_network_id_set_routing_policy.py delete mode 100644 fireblocks_client/apis/paths/nfts_ownership_collections.py delete mode 100644 fireblocks_client/apis/paths/nfts_ownership_tokens.py delete mode 100644 fireblocks_client/apis/paths/nfts_ownership_tokens_id_status.py delete mode 100644 fireblocks_client/apis/paths/nfts_tokens.py delete mode 100644 fireblocks_client/apis/paths/nfts_tokens_id.py delete mode 100644 fireblocks_client/apis/paths/off_exchange_add.py delete mode 100644 fireblocks_client/apis/paths/off_exchange_collateral_accounts_main_exchange_account_id.py delete mode 100644 fireblocks_client/apis/paths/off_exchange_remove.py delete mode 100644 fireblocks_client/apis/paths/off_exchange_settlements_trader.py delete mode 100644 fireblocks_client/apis/paths/off_exchange_settlements_transactions.py delete mode 100644 fireblocks_client/apis/paths/payments_payout.py delete mode 100644 fireblocks_client/apis/paths/payments_payout_payout_id.py delete mode 100644 fireblocks_client/apis/paths/payments_payout_payout_id_actions_execute.py delete mode 100644 fireblocks_client/apis/paths/payments_xb_settlements_configs.py delete mode 100644 fireblocks_client/apis/paths/payments_xb_settlements_configs_config_id.py delete mode 100644 fireblocks_client/apis/paths/payments_xb_settlements_flows.py delete mode 100644 fireblocks_client/apis/paths/payments_xb_settlements_flows_flow_id.py delete mode 100644 fireblocks_client/apis/paths/payments_xb_settlements_flows_flow_id_actions_execute.py delete mode 100644 fireblocks_client/apis/paths/screeening_travel_rule_vasp_update.py delete mode 100644 fireblocks_client/apis/paths/screening_travel_rule_transaction_validate.py delete mode 100644 fireblocks_client/apis/paths/screening_travel_rule_transaction_validate_full.py delete mode 100644 fireblocks_client/apis/paths/screening_travel_rule_vasp.py delete mode 100644 fireblocks_client/apis/paths/screening_travel_rule_vasp_did.py delete mode 100644 fireblocks_client/apis/paths/supported_assets.py delete mode 100644 fireblocks_client/apis/paths/tap_active_policy.py delete mode 100644 fireblocks_client/apis/paths/tap_draft.py delete mode 100644 fireblocks_client/apis/paths/tap_publish.py delete mode 100644 fireblocks_client/apis/paths/transactions.py delete mode 100644 fireblocks_client/apis/paths/transactions_estimate_fee.py delete mode 100644 fireblocks_client/apis/paths/transactions_external_tx_id_external_tx_id_.py delete mode 100644 fireblocks_client/apis/paths/transactions_tx_id.py delete mode 100644 fireblocks_client/apis/paths/transactions_tx_id_cancel.py delete mode 100644 fireblocks_client/apis/paths/transactions_tx_id_drop.py delete mode 100644 fireblocks_client/apis/paths/transactions_tx_id_freeze.py delete mode 100644 fireblocks_client/apis/paths/transactions_tx_id_set_confirmation_threshold.py delete mode 100644 fireblocks_client/apis/paths/transactions_tx_id_unfreeze.py delete mode 100644 fireblocks_client/apis/paths/transactions_validate_address_asset_id_address.py delete mode 100644 fireblocks_client/apis/paths/tx_hash_tx_hash_set_confirmation_threshold.py delete mode 100644 fireblocks_client/apis/paths/users.py delete mode 100644 fireblocks_client/apis/paths/users_groups.py delete mode 100644 fireblocks_client/apis/paths/users_groups_group_id.py delete mode 100644 fireblocks_client/apis/paths/vault_accounts.py delete mode 100644 fireblocks_client/apis/paths/vault_accounts_paged.py delete mode 100644 fireblocks_client/apis/paths/vault_accounts_vault_account_id.py delete mode 100644 fireblocks_client/apis/paths/vault_accounts_vault_account_id_asset_id.py delete mode 100644 fireblocks_client/apis/paths/vault_accounts_vault_account_id_asset_id_activate.py delete mode 100644 fireblocks_client/apis/paths/vault_accounts_vault_account_id_asset_id_addresses.py delete mode 100644 fireblocks_client/apis/paths/vault_accounts_vault_account_id_asset_id_addresses_address_id.py delete mode 100644 fireblocks_client/apis/paths/vault_accounts_vault_account_id_asset_id_addresses_address_id_create_legacy.py delete mode 100644 fireblocks_client/apis/paths/vault_accounts_vault_account_id_asset_id_addresses_address_id_set_customer_ref_id.py delete mode 100644 fireblocks_client/apis/paths/vault_accounts_vault_account_id_asset_id_balance.py delete mode 100644 fireblocks_client/apis/paths/vault_accounts_vault_account_id_asset_id_change_address_index_public_key_info.py delete mode 100644 fireblocks_client/apis/paths/vault_accounts_vault_account_id_asset_id_max_spendable_amount.py delete mode 100644 fireblocks_client/apis/paths/vault_accounts_vault_account_id_asset_id_unspent_inputs.py delete mode 100644 fireblocks_client/apis/paths/vault_accounts_vault_account_id_hide.py delete mode 100644 fireblocks_client/apis/paths/vault_accounts_vault_account_id_set_auto_fuel.py delete mode 100644 fireblocks_client/apis/paths/vault_accounts_vault_account_id_set_customer_ref_id.py delete mode 100644 fireblocks_client/apis/paths/vault_accounts_vault_account_id_unhide.py delete mode 100644 fireblocks_client/apis/paths/vault_asset_wallets.py delete mode 100644 fireblocks_client/apis/paths/vault_assets.py delete mode 100644 fireblocks_client/apis/paths/vault_assets_asset_id.py delete mode 100644 fireblocks_client/apis/paths/vault_public_key_info_.py delete mode 100644 fireblocks_client/apis/paths/webhooks_resend.py delete mode 100644 fireblocks_client/apis/paths/webhooks_resend_tx_id.py delete mode 100644 fireblocks_client/apis/tag_to_api.py delete mode 100644 fireblocks_client/apis/tags/__init__.py delete mode 100644 fireblocks_client/apis/tags/audit_logs_api.py delete mode 100644 fireblocks_client/apis/tags/blockchains_assets_api.py delete mode 100644 fireblocks_client/apis/tags/contracts_api.py delete mode 100644 fireblocks_client/apis/tags/exchange_accounts_api.py delete mode 100644 fireblocks_client/apis/tags/external_wallets_api.py delete mode 100644 fireblocks_client/apis/tags/fiat_accounts_api.py delete mode 100644 fireblocks_client/apis/tags/gas_stations_api.py delete mode 100644 fireblocks_client/apis/tags/internal_wallets_api.py delete mode 100644 fireblocks_client/apis/tags/network_connections_api.py delete mode 100644 fireblocks_client/apis/tags/nfts_api.py delete mode 100644 fireblocks_client/apis/tags/nfts_beta_api.py delete mode 100644 fireblocks_client/apis/tags/off_exchanges_api.py delete mode 100644 fireblocks_client/apis/tags/ota_beta_api.py delete mode 100644 fireblocks_client/apis/tags/payments_cross_border_settlement_api.py delete mode 100644 fireblocks_client/apis/tags/payments_payout_api.py delete mode 100644 fireblocks_client/apis/tags/policy_editor_beta_api.py delete mode 100644 fireblocks_client/apis/tags/transactions_api.py delete mode 100644 fireblocks_client/apis/tags/travel_rule_beta_api.py delete mode 100644 fireblocks_client/apis/tags/users_api.py delete mode 100644 fireblocks_client/apis/tags/users_groups_beta_api.py delete mode 100644 fireblocks_client/apis/tags/vaults_api.py delete mode 100644 fireblocks_client/apis/tags/web3_connections_api.py delete mode 100644 fireblocks_client/apis/tags/webhooks_api.py delete mode 100644 fireblocks_client/model/__init__.py delete mode 100644 fireblocks_client/model/add_collateral_request_body.py delete mode 100644 fireblocks_client/model/add_collateral_request_body.pyi delete mode 100644 fireblocks_client/model/aml_screening_result.py delete mode 100644 fireblocks_client/model/aml_screening_result.pyi delete mode 100644 fireblocks_client/model/amount_aggregation_time_period_method.py delete mode 100644 fireblocks_client/model/amount_aggregation_time_period_method.pyi delete mode 100644 fireblocks_client/model/amount_info.py delete mode 100644 fireblocks_client/model/amount_info.pyi delete mode 100644 fireblocks_client/model/asset_type_response.py delete mode 100644 fireblocks_client/model/asset_type_response.pyi delete mode 100644 fireblocks_client/model/asset_wallet.py delete mode 100644 fireblocks_client/model/asset_wallet.pyi delete mode 100644 fireblocks_client/model/authorization_groups.py delete mode 100644 fireblocks_client/model/authorization_groups.pyi delete mode 100644 fireblocks_client/model/authorization_info.py delete mode 100644 fireblocks_client/model/authorization_info.pyi delete mode 100644 fireblocks_client/model/block_info.py delete mode 100644 fireblocks_client/model/block_info.pyi delete mode 100644 fireblocks_client/model/cancel_transaction_response.py delete mode 100644 fireblocks_client/model/cancel_transaction_response.pyi delete mode 100644 fireblocks_client/model/collection_ownership_response.py delete mode 100644 fireblocks_client/model/collection_ownership_response.pyi delete mode 100644 fireblocks_client/model/config_change_request_status.py delete mode 100644 fireblocks_client/model/config_change_request_status.pyi delete mode 100644 fireblocks_client/model/create_address_response.py delete mode 100644 fireblocks_client/model/create_address_response.pyi delete mode 100644 fireblocks_client/model/create_connection_request.py delete mode 100644 fireblocks_client/model/create_connection_request.pyi delete mode 100644 fireblocks_client/model/create_connection_response.py delete mode 100644 fireblocks_client/model/create_connection_response.pyi delete mode 100644 fireblocks_client/model/create_internal_transfer_request.py delete mode 100644 fireblocks_client/model/create_internal_transfer_request.pyi delete mode 100644 fireblocks_client/model/create_payout_request.py delete mode 100644 fireblocks_client/model/create_payout_request.pyi delete mode 100644 fireblocks_client/model/create_transaction_response.py delete mode 100644 fireblocks_client/model/create_transaction_response.pyi delete mode 100644 fireblocks_client/model/create_users_group_response.py delete mode 100644 fireblocks_client/model/create_users_group_response.pyi delete mode 100644 fireblocks_client/model/create_vault_asset_response.py delete mode 100644 fireblocks_client/model/create_vault_asset_response.pyi delete mode 100644 fireblocks_client/model/custom_crypto_routing_dest.py delete mode 100644 fireblocks_client/model/custom_crypto_routing_dest.pyi delete mode 100644 fireblocks_client/model/custom_fiat_routing_dest.py delete mode 100644 fireblocks_client/model/custom_fiat_routing_dest.pyi delete mode 100644 fireblocks_client/model/default_network_routing_dest.py delete mode 100644 fireblocks_client/model/default_network_routing_dest.pyi delete mode 100644 fireblocks_client/model/destination_transfer_peer_path.py delete mode 100644 fireblocks_client/model/destination_transfer_peer_path.pyi delete mode 100644 fireblocks_client/model/destination_transfer_peer_path_response.py delete mode 100644 fireblocks_client/model/destination_transfer_peer_path_response.pyi delete mode 100644 fireblocks_client/model/dispatch_payout_response.py delete mode 100644 fireblocks_client/model/dispatch_payout_response.pyi delete mode 100644 fireblocks_client/model/draft_response.py delete mode 100644 fireblocks_client/model/draft_response.pyi delete mode 100644 fireblocks_client/model/draft_review_and_validation_response.py delete mode 100644 fireblocks_client/model/draft_review_and_validation_response.pyi delete mode 100644 fireblocks_client/model/drop_transaction_request.py delete mode 100644 fireblocks_client/model/drop_transaction_request.pyi delete mode 100644 fireblocks_client/model/drop_transaction_response.py delete mode 100644 fireblocks_client/model/drop_transaction_response.pyi delete mode 100644 fireblocks_client/model/error.py delete mode 100644 fireblocks_client/model/error.pyi delete mode 100644 fireblocks_client/model/error_response.py delete mode 100644 fireblocks_client/model/error_response.pyi delete mode 100644 fireblocks_client/model/estimated_network_fee_response.py delete mode 100644 fireblocks_client/model/estimated_network_fee_response.pyi delete mode 100644 fireblocks_client/model/estimated_transaction_fee_response.py delete mode 100644 fireblocks_client/model/estimated_transaction_fee_response.pyi delete mode 100644 fireblocks_client/model/exchange_account.py delete mode 100644 fireblocks_client/model/exchange_account.pyi delete mode 100644 fireblocks_client/model/exchange_asset.py delete mode 100644 fireblocks_client/model/exchange_asset.pyi delete mode 100644 fireblocks_client/model/exchange_trading_account.py delete mode 100644 fireblocks_client/model/exchange_trading_account.pyi delete mode 100644 fireblocks_client/model/exchange_type.py delete mode 100644 fireblocks_client/model/exchange_type.pyi delete mode 100644 fireblocks_client/model/external_wallet_asset.py delete mode 100644 fireblocks_client/model/external_wallet_asset.pyi delete mode 100644 fireblocks_client/model/fee_info.py delete mode 100644 fireblocks_client/model/fee_info.pyi delete mode 100644 fireblocks_client/model/fiat_account.py delete mode 100644 fireblocks_client/model/fiat_account.pyi delete mode 100644 fireblocks_client/model/fiat_account_type.py delete mode 100644 fireblocks_client/model/fiat_account_type.pyi delete mode 100644 fireblocks_client/model/fiat_asset.py delete mode 100644 fireblocks_client/model/fiat_asset.pyi delete mode 100644 fireblocks_client/model/freeze_transaction_response.py delete mode 100644 fireblocks_client/model/freeze_transaction_response.pyi delete mode 100644 fireblocks_client/model/gas_station_configuration.py delete mode 100644 fireblocks_client/model/gas_station_configuration.pyi delete mode 100644 fireblocks_client/model/gas_station_properties_response.py delete mode 100644 fireblocks_client/model/gas_station_properties_response.pyi delete mode 100644 fireblocks_client/model/get_connections_response.py delete mode 100644 fireblocks_client/model/get_connections_response.pyi delete mode 100644 fireblocks_client/model/get_settlement_response.py delete mode 100644 fireblocks_client/model/get_settlement_response.pyi delete mode 100644 fireblocks_client/model/get_transaction_operation.py delete mode 100644 fireblocks_client/model/get_transaction_operation.pyi delete mode 100644 fireblocks_client/model/get_users_response.py delete mode 100644 fireblocks_client/model/get_users_response.pyi delete mode 100644 fireblocks_client/model/instruction_amount.py delete mode 100644 fireblocks_client/model/instruction_amount.pyi delete mode 100644 fireblocks_client/model/media_entity_response.py delete mode 100644 fireblocks_client/model/media_entity_response.pyi delete mode 100644 fireblocks_client/model/ncw.py delete mode 100644 fireblocks_client/model/ncw.pyi delete mode 100644 fireblocks_client/model/network_channel.py delete mode 100644 fireblocks_client/model/network_channel.pyi delete mode 100644 fireblocks_client/model/network_connection.py delete mode 100644 fireblocks_client/model/network_connection.pyi delete mode 100644 fireblocks_client/model/network_connection_response.py delete mode 100644 fireblocks_client/model/network_connection_response.pyi delete mode 100644 fireblocks_client/model/network_connection_routing_policy.py delete mode 100644 fireblocks_client/model/network_connection_routing_policy.pyi delete mode 100644 fireblocks_client/model/network_fee.py delete mode 100644 fireblocks_client/model/network_fee.pyi delete mode 100644 fireblocks_client/model/network_id.py delete mode 100644 fireblocks_client/model/network_id.pyi delete mode 100644 fireblocks_client/model/network_id_response.py delete mode 100644 fireblocks_client/model/network_id_response.pyi delete mode 100644 fireblocks_client/model/network_id_routing_policy.py delete mode 100644 fireblocks_client/model/network_id_routing_policy.pyi delete mode 100644 fireblocks_client/model/network_record.py delete mode 100644 fireblocks_client/model/network_record.pyi delete mode 100644 fireblocks_client/model/none_network_routing_dest.py delete mode 100644 fireblocks_client/model/none_network_routing_dest.pyi delete mode 100644 fireblocks_client/model/one_time_address.py delete mode 100644 fireblocks_client/model/one_time_address.pyi delete mode 100644 fireblocks_client/model/paginated_asset_wallet_response.py delete mode 100644 fireblocks_client/model/paginated_asset_wallet_response.pyi delete mode 100644 fireblocks_client/model/paging.py delete mode 100644 fireblocks_client/model/paging.pyi delete mode 100644 fireblocks_client/model/payee_account.py delete mode 100644 fireblocks_client/model/payee_account.pyi delete mode 100644 fireblocks_client/model/payee_account_response.py delete mode 100644 fireblocks_client/model/payee_account_response.pyi delete mode 100644 fireblocks_client/model/payee_account_type.py delete mode 100644 fireblocks_client/model/payee_account_type.pyi delete mode 100644 fireblocks_client/model/payment_account.py delete mode 100644 fireblocks_client/model/payment_account.pyi delete mode 100644 fireblocks_client/model/payment_account_response.py delete mode 100644 fireblocks_client/model/payment_account_response.pyi delete mode 100644 fireblocks_client/model/payment_account_type.py delete mode 100644 fireblocks_client/model/payment_account_type.pyi delete mode 100644 fireblocks_client/model/payout_init_method.py delete mode 100644 fireblocks_client/model/payout_init_method.pyi delete mode 100644 fireblocks_client/model/payout_instruction.py delete mode 100644 fireblocks_client/model/payout_instruction.pyi delete mode 100644 fireblocks_client/model/payout_instruction_response.py delete mode 100644 fireblocks_client/model/payout_instruction_response.pyi delete mode 100644 fireblocks_client/model/payout_instruction_state.py delete mode 100644 fireblocks_client/model/payout_instruction_state.pyi delete mode 100644 fireblocks_client/model/payout_response.py delete mode 100644 fireblocks_client/model/payout_response.pyi delete mode 100644 fireblocks_client/model/payout_state.py delete mode 100644 fireblocks_client/model/payout_state.pyi delete mode 100644 fireblocks_client/model/payout_status.py delete mode 100644 fireblocks_client/model/payout_status.pyi delete mode 100644 fireblocks_client/model/policy_and_validation_response.py delete mode 100644 fireblocks_client/model/policy_and_validation_response.pyi delete mode 100644 fireblocks_client/model/policy_check_result.py delete mode 100644 fireblocks_client/model/policy_check_result.pyi delete mode 100644 fireblocks_client/model/policy_metadata.py delete mode 100644 fireblocks_client/model/policy_metadata.pyi delete mode 100644 fireblocks_client/model/policy_response.py delete mode 100644 fireblocks_client/model/policy_response.pyi delete mode 100644 fireblocks_client/model/policy_rule.py delete mode 100644 fireblocks_client/model/policy_rule.pyi delete mode 100644 fireblocks_client/model/policy_rule_check_result.py delete mode 100644 fireblocks_client/model/policy_rule_check_result.pyi delete mode 100644 fireblocks_client/model/policy_rule_error.py delete mode 100644 fireblocks_client/model/policy_rule_error.pyi delete mode 100644 fireblocks_client/model/policy_src_or_dest_id.py delete mode 100644 fireblocks_client/model/policy_src_or_dest_id.pyi delete mode 100644 fireblocks_client/model/policy_src_or_dest_sub_type.py delete mode 100644 fireblocks_client/model/policy_src_or_dest_sub_type.pyi delete mode 100644 fireblocks_client/model/policy_src_or_dest_type.py delete mode 100644 fireblocks_client/model/policy_src_or_dest_type.pyi delete mode 100644 fireblocks_client/model/policy_status.py delete mode 100644 fireblocks_client/model/policy_status.pyi delete mode 100644 fireblocks_client/model/policy_validation.py delete mode 100644 fireblocks_client/model/policy_validation.pyi delete mode 100644 fireblocks_client/model/public_key_information.py delete mode 100644 fireblocks_client/model/public_key_information.pyi delete mode 100644 fireblocks_client/model/publish_result.py delete mode 100644 fireblocks_client/model/publish_result.pyi delete mode 100644 fireblocks_client/model/remove_collateral_request_body.py delete mode 100644 fireblocks_client/model/remove_collateral_request_body.pyi delete mode 100644 fireblocks_client/model/request_options.py delete mode 100644 fireblocks_client/model/request_options.pyi delete mode 100644 fireblocks_client/model/resend_webhooks_response.py delete mode 100644 fireblocks_client/model/resend_webhooks_response.pyi delete mode 100644 fireblocks_client/model/respond_to_connection_request.py delete mode 100644 fireblocks_client/model/respond_to_connection_request.pyi delete mode 100644 fireblocks_client/model/reward_info.py delete mode 100644 fireblocks_client/model/reward_info.pyi delete mode 100644 fireblocks_client/model/rewards_info.py delete mode 100644 fireblocks_client/model/rewards_info.pyi delete mode 100644 fireblocks_client/model/session_dto.py delete mode 100644 fireblocks_client/model/session_dto.pyi delete mode 100644 fireblocks_client/model/session_metadata.py delete mode 100644 fireblocks_client/model/session_metadata.pyi delete mode 100644 fireblocks_client/model/set_confirmations_threshold_request.py delete mode 100644 fireblocks_client/model/set_confirmations_threshold_request.pyi delete mode 100644 fireblocks_client/model/set_confirmations_threshold_response.py delete mode 100644 fireblocks_client/model/set_confirmations_threshold_response.pyi delete mode 100644 fireblocks_client/model/settlement_request_body.py delete mode 100644 fireblocks_client/model/settlement_request_body.pyi delete mode 100644 fireblocks_client/model/settlement_response.py delete mode 100644 fireblocks_client/model/settlement_response.pyi delete mode 100644 fireblocks_client/model/signed_message.py delete mode 100644 fireblocks_client/model/signed_message.pyi delete mode 100644 fireblocks_client/model/source_transfer_peer_path_response.py delete mode 100644 fireblocks_client/model/source_transfer_peer_path_response.pyi delete mode 100644 fireblocks_client/model/system_message_info.py delete mode 100644 fireblocks_client/model/system_message_info.pyi delete mode 100644 fireblocks_client/model/term.py delete mode 100644 fireblocks_client/model/term.pyi delete mode 100644 fireblocks_client/model/to_collateral_transaction.py delete mode 100644 fireblocks_client/model/to_collateral_transaction.pyi delete mode 100644 fireblocks_client/model/to_exchange_transaction.py delete mode 100644 fireblocks_client/model/to_exchange_transaction.pyi delete mode 100644 fireblocks_client/model/token_collection_response.py delete mode 100644 fireblocks_client/model/token_collection_response.pyi delete mode 100644 fireblocks_client/model/token_ownership_response.py delete mode 100644 fireblocks_client/model/token_ownership_response.pyi delete mode 100644 fireblocks_client/model/token_response.py delete mode 100644 fireblocks_client/model/token_response.pyi delete mode 100644 fireblocks_client/model/trading_account_type.py delete mode 100644 fireblocks_client/model/trading_account_type.pyi delete mode 100644 fireblocks_client/model/transaction.py delete mode 100644 fireblocks_client/model/transaction.pyi delete mode 100644 fireblocks_client/model/transaction_fee.py delete mode 100644 fireblocks_client/model/transaction_fee.pyi delete mode 100644 fireblocks_client/model/transaction_operation.py delete mode 100644 fireblocks_client/model/transaction_operation.pyi delete mode 100644 fireblocks_client/model/transaction_request.py delete mode 100644 fireblocks_client/model/transaction_request.pyi delete mode 100644 fireblocks_client/model/transaction_request_destination.py delete mode 100644 fireblocks_client/model/transaction_request_destination.pyi delete mode 100644 fireblocks_client/model/transaction_response.py delete mode 100644 fireblocks_client/model/transaction_response.pyi delete mode 100644 fireblocks_client/model/transaction_response_destination.py delete mode 100644 fireblocks_client/model/transaction_response_destination.pyi delete mode 100644 fireblocks_client/model/transfer_peer_path.py delete mode 100644 fireblocks_client/model/transfer_peer_path.pyi delete mode 100644 fireblocks_client/model/travel_rule_address.py delete mode 100644 fireblocks_client/model/travel_rule_address.pyi delete mode 100644 fireblocks_client/model/travel_rule_get_all_vasps_response.py delete mode 100644 fireblocks_client/model/travel_rule_get_all_vasps_response.pyi delete mode 100644 fireblocks_client/model/travel_rule_issuer.py delete mode 100644 fireblocks_client/model/travel_rule_issuer.pyi delete mode 100644 fireblocks_client/model/travel_rule_issuers.py delete mode 100644 fireblocks_client/model/travel_rule_issuers.pyi delete mode 100644 fireblocks_client/model/travel_rule_ownership_proof.py delete mode 100644 fireblocks_client/model/travel_rule_ownership_proof.pyi delete mode 100644 fireblocks_client/model/travel_rule_pii_ivms.py delete mode 100644 fireblocks_client/model/travel_rule_pii_ivms.pyi delete mode 100644 fireblocks_client/model/travel_rule_transaction_blockchain_info.py delete mode 100644 fireblocks_client/model/travel_rule_transaction_blockchain_info.pyi delete mode 100644 fireblocks_client/model/travel_rule_update_vasp_details.py delete mode 100644 fireblocks_client/model/travel_rule_update_vasp_details.pyi delete mode 100644 fireblocks_client/model/travel_rule_validate_full_transaction_request.py delete mode 100644 fireblocks_client/model/travel_rule_validate_full_transaction_request.pyi delete mode 100644 fireblocks_client/model/travel_rule_validate_transaction_request.py delete mode 100644 fireblocks_client/model/travel_rule_validate_transaction_request.pyi delete mode 100644 fireblocks_client/model/travel_rule_validate_transaction_response.py delete mode 100644 fireblocks_client/model/travel_rule_validate_transaction_response.pyi delete mode 100644 fireblocks_client/model/travel_rule_vasp.py delete mode 100644 fireblocks_client/model/travel_rule_vasp.pyi delete mode 100644 fireblocks_client/model/unfreeze_transaction_response.py delete mode 100644 fireblocks_client/model/unfreeze_transaction_response.pyi delete mode 100644 fireblocks_client/model/unmanaged_wallet.py delete mode 100644 fireblocks_client/model/unmanaged_wallet.pyi delete mode 100644 fireblocks_client/model/unsigned_message.py delete mode 100644 fireblocks_client/model/unsigned_message.pyi delete mode 100644 fireblocks_client/model/unspent_input.py delete mode 100644 fireblocks_client/model/unspent_input.pyi delete mode 100644 fireblocks_client/model/unspent_inputs_response.py delete mode 100644 fireblocks_client/model/unspent_inputs_response.pyi delete mode 100644 fireblocks_client/model/update_token_ownership_status_dto.py delete mode 100644 fireblocks_client/model/update_token_ownership_status_dto.pyi delete mode 100644 fireblocks_client/model/user_group_create_request.py delete mode 100644 fireblocks_client/model/user_group_create_request.pyi delete mode 100644 fireblocks_client/model/user_group_create_response.py delete mode 100644 fireblocks_client/model/user_group_create_response.pyi delete mode 100644 fireblocks_client/model/user_group_update_request.py delete mode 100644 fireblocks_client/model/user_group_update_request.pyi delete mode 100644 fireblocks_client/model/user_response.py delete mode 100644 fireblocks_client/model/user_response.pyi delete mode 100644 fireblocks_client/model/users_group_response.py delete mode 100644 fireblocks_client/model/users_group_response.pyi delete mode 100644 fireblocks_client/model/users_groups_response.py delete mode 100644 fireblocks_client/model/users_groups_response.pyi delete mode 100644 fireblocks_client/model/validate_address_response.py delete mode 100644 fireblocks_client/model/validate_address_response.pyi delete mode 100644 fireblocks_client/model/vault_account.py delete mode 100644 fireblocks_client/model/vault_account.pyi delete mode 100644 fireblocks_client/model/vault_accounts_paged_response.py delete mode 100644 fireblocks_client/model/vault_accounts_paged_response.pyi delete mode 100644 fireblocks_client/model/vault_asset.py delete mode 100644 fireblocks_client/model/vault_asset.pyi delete mode 100644 fireblocks_client/model/vault_wallet_address.py delete mode 100644 fireblocks_client/model/vault_wallet_address.pyi delete mode 100644 fireblocks_client/model/wallet_asset.py delete mode 100644 fireblocks_client/model/wallet_asset.pyi delete mode 100644 fireblocks_client/model/wallet_asset_additional_info.py delete mode 100644 fireblocks_client/model/wallet_asset_additional_info.pyi delete mode 100644 fireblocks_client/model/xb_settlement_asset.py delete mode 100644 fireblocks_client/model/xb_settlement_asset.pyi delete mode 100644 fireblocks_client/model/xb_settlement_asset_id.py delete mode 100644 fireblocks_client/model/xb_settlement_asset_id.pyi delete mode 100644 fireblocks_client/model/xb_settlement_config_creation_request_body.py delete mode 100644 fireblocks_client/model/xb_settlement_config_creation_request_body.pyi delete mode 100644 fireblocks_client/model/xb_settlement_config_creation_response.py delete mode 100644 fireblocks_client/model/xb_settlement_config_creation_response.pyi delete mode 100644 fireblocks_client/model/xb_settlement_config_deletion_response.py delete mode 100644 fireblocks_client/model/xb_settlement_config_deletion_response.pyi delete mode 100644 fireblocks_client/model/xb_settlement_config_edit_request_body.py delete mode 100644 fireblocks_client/model/xb_settlement_config_edit_request_body.pyi delete mode 100644 fireblocks_client/model/xb_settlement_config_edit_response.py delete mode 100644 fireblocks_client/model/xb_settlement_config_edit_response.pyi delete mode 100644 fireblocks_client/model/xb_settlement_config_id.py delete mode 100644 fireblocks_client/model/xb_settlement_config_id.pyi delete mode 100644 fireblocks_client/model/xb_settlement_config_model.py delete mode 100644 fireblocks_client/model/xb_settlement_config_model.pyi delete mode 100644 fireblocks_client/model/xb_settlement_config_step.py delete mode 100644 fireblocks_client/model/xb_settlement_config_step.pyi delete mode 100644 fireblocks_client/model/xb_settlement_config_steps_record.py delete mode 100644 fireblocks_client/model/xb_settlement_config_steps_record.pyi delete mode 100644 fireblocks_client/model/xb_settlement_conversion_slippage_basis_points.py delete mode 100644 fireblocks_client/model/xb_settlement_conversion_slippage_basis_points.pyi delete mode 100644 fireblocks_client/model/xb_settlement_corridor_id.py delete mode 100644 fireblocks_client/model/xb_settlement_corridor_id.pyi delete mode 100644 fireblocks_client/model/xb_settlement_create_flow_request_body.py delete mode 100644 fireblocks_client/model/xb_settlement_create_flow_request_body.pyi delete mode 100644 fireblocks_client/model/xb_settlement_create_flow_response.py delete mode 100644 fireblocks_client/model/xb_settlement_create_flow_response.pyi delete mode 100644 fireblocks_client/model/xb_settlement_crypto_asset.py delete mode 100644 fireblocks_client/model/xb_settlement_crypto_asset.pyi delete mode 100644 fireblocks_client/model/xb_settlement_fiat_asset.py delete mode 100644 fireblocks_client/model/xb_settlement_fiat_asset.pyi delete mode 100644 fireblocks_client/model/xb_settlement_flow_execution_model.py delete mode 100644 fireblocks_client/model/xb_settlement_flow_execution_model.pyi delete mode 100644 fireblocks_client/model/xb_settlement_flow_execution_request_body.py delete mode 100644 fireblocks_client/model/xb_settlement_flow_execution_request_body.pyi delete mode 100644 fireblocks_client/model/xb_settlement_flow_execution_response.py delete mode 100644 fireblocks_client/model/xb_settlement_flow_execution_response.pyi delete mode 100644 fireblocks_client/model/xb_settlement_flow_execution_status.py delete mode 100644 fireblocks_client/model/xb_settlement_flow_execution_status.pyi delete mode 100644 fireblocks_client/model/xb_settlement_flow_execution_step.py delete mode 100644 fireblocks_client/model/xb_settlement_flow_execution_step.pyi delete mode 100644 fireblocks_client/model/xb_settlement_flow_execution_step_status.py delete mode 100644 fireblocks_client/model/xb_settlement_flow_execution_step_status.pyi delete mode 100644 fireblocks_client/model/xb_settlement_flow_preview_model.py delete mode 100644 fireblocks_client/model/xb_settlement_flow_preview_model.pyi delete mode 100644 fireblocks_client/model/xb_settlement_flow_selected_conversion_slippage_reason.py delete mode 100644 fireblocks_client/model/xb_settlement_flow_selected_conversion_slippage_reason.pyi delete mode 100644 fireblocks_client/model/xb_settlement_flow_setup_step.py delete mode 100644 fireblocks_client/model/xb_settlement_flow_setup_step.pyi delete mode 100644 fireblocks_client/model/xb_settlement_flow_steps_execution_record.py delete mode 100644 fireblocks_client/model/xb_settlement_flow_steps_execution_record.pyi delete mode 100644 fireblocks_client/model/xb_settlement_flow_steps_record.py delete mode 100644 fireblocks_client/model/xb_settlement_flow_steps_record.pyi delete mode 100644 fireblocks_client/model/xb_settlement_get_all_configs_response.py delete mode 100644 fireblocks_client/model/xb_settlement_get_all_configs_response.pyi delete mode 100644 fireblocks_client/model/xb_settlement_get_config_response.py delete mode 100644 fireblocks_client/model/xb_settlement_get_config_response.pyi delete mode 100644 fireblocks_client/model/xb_settlement_get_flow_response.py delete mode 100644 fireblocks_client/model/xb_settlement_get_flow_response.pyi delete mode 100644 fireblocks_client/model/xb_settlement_step_type.py delete mode 100644 fireblocks_client/model/xb_settlement_step_type.pyi create mode 100644 fireblocks_client/models/abi_function.py create mode 100644 fireblocks_client/models/account.py create mode 100644 fireblocks_client/models/account_type.py create mode 100644 fireblocks_client/models/add_asset_to_external_wallet_request.py create mode 100644 fireblocks_client/models/add_asset_to_external_wallet_request_one_of.py create mode 100644 fireblocks_client/models/add_asset_to_external_wallet_request_one_of1.py create mode 100644 fireblocks_client/models/add_asset_to_external_wallet_request_one_of1_additional_info.py create mode 100644 fireblocks_client/models/add_asset_to_external_wallet_request_one_of1_additional_info_one_of.py create mode 100644 fireblocks_client/models/add_asset_to_external_wallet_request_one_of1_additional_info_one_of1.py create mode 100644 fireblocks_client/models/add_asset_to_external_wallet_request_one_of1_additional_info_one_of2.py create mode 100644 fireblocks_client/models/add_collateral_request_body.py create mode 100644 fireblocks_client/models/add_contract_asset_request.py create mode 100644 fireblocks_client/models/additional_info_dto.py create mode 100644 fireblocks_client/models/aml_registration_result.py create mode 100644 fireblocks_client/models/aml_screening_result.py create mode 100644 fireblocks_client/models/amount_aggregation_time_period_method.py create mode 100644 fireblocks_client/models/amount_and_chain_descriptor.py create mode 100644 fireblocks_client/models/amount_info.py create mode 100644 fireblocks_client/models/api_key.py create mode 100644 fireblocks_client/models/api_keys_paginated_response.py create mode 100644 fireblocks_client/models/api_user.py create mode 100644 fireblocks_client/models/asset_already_exist_http_error.py create mode 100644 fireblocks_client/models/asset_amount.py create mode 100644 fireblocks_client/models/asset_bad_request_error_response.py create mode 100644 fireblocks_client/models/asset_conflict_error_response.py create mode 100644 fireblocks_client/models/asset_does_not_exist_http_error.py create mode 100644 fireblocks_client/models/asset_forbidden_error_response.py create mode 100644 fireblocks_client/models/asset_internal_server_error_response.py create mode 100644 fireblocks_client/models/asset_metadata_dto.py create mode 100644 fireblocks_client/models/asset_not_found_error_response.py create mode 100644 fireblocks_client/models/asset_response.py create mode 100644 fireblocks_client/models/asset_response_metadata.py create mode 100644 fireblocks_client/models/asset_response_onchain.py create mode 100644 fireblocks_client/models/asset_type_response.py create mode 100644 fireblocks_client/models/asset_wallet.py create mode 100644 fireblocks_client/models/audit_log_data.py create mode 100644 fireblocks_client/models/auditor_data.py create mode 100644 fireblocks_client/models/authorization_groups.py create mode 100644 fireblocks_client/models/authorization_info.py create mode 100644 fireblocks_client/models/block_info.py create mode 100644 fireblocks_client/models/cancel_transaction_response.py create mode 100644 fireblocks_client/models/chain_info_response_dto.py create mode 100644 fireblocks_client/models/collection_metadata_dto.py create mode 100644 fireblocks_client/models/collection_ownership_response.py create mode 100644 fireblocks_client/models/compliance_result.py create mode 100644 fireblocks_client/models/compliance_screening_result.py create mode 100644 fireblocks_client/models/config_change_request_status.py create mode 100644 fireblocks_client/models/config_conversion_operation_snapshot.py create mode 100644 fireblocks_client/models/config_disbursement_operation_snapshot.py create mode 100644 fireblocks_client/models/config_operation.py create mode 100644 fireblocks_client/models/config_operation_snapshot.py create mode 100644 fireblocks_client/models/config_operation_status.py create mode 100644 fireblocks_client/models/config_transfer_operation_snapshot.py create mode 100644 fireblocks_client/models/console_user.py create mode 100644 fireblocks_client/models/contract_abi_response_dto.py create mode 100644 fireblocks_client/models/contract_attributes.py create mode 100644 fireblocks_client/models/contract_deploy_request.py create mode 100644 fireblocks_client/models/contract_deploy_response.py create mode 100644 fireblocks_client/models/contract_doc.py create mode 100644 fireblocks_client/models/contract_metadata_dto.py create mode 100644 fireblocks_client/models/contract_template_dto.py create mode 100644 fireblocks_client/models/contract_upload_request.py create mode 100644 fireblocks_client/models/conversion_config_operation.py create mode 100644 fireblocks_client/models/conversion_operation_config_params.py create mode 100644 fireblocks_client/models/conversion_operation_execution.py create mode 100644 fireblocks_client/models/conversion_operation_execution_output.py create mode 100644 fireblocks_client/models/conversion_operation_execution_params.py create mode 100644 fireblocks_client/models/conversion_operation_execution_params_execution_params.py create mode 100644 fireblocks_client/models/conversion_operation_failure.py create mode 100644 fireblocks_client/models/conversion_operation_preview.py create mode 100644 fireblocks_client/models/conversion_operation_preview_output.py create mode 100644 fireblocks_client/models/conversion_operation_type.py create mode 100644 fireblocks_client/models/conversion_validation_failure.py create mode 100644 fireblocks_client/models/convert_assets_request.py create mode 100644 fireblocks_client/models/convert_assets_response.py create mode 100644 fireblocks_client/models/cosigner.py create mode 100644 fireblocks_client/models/cosigners_paginated_response.py create mode 100644 fireblocks_client/models/create_address_request.py create mode 100644 fireblocks_client/models/create_address_response.py create mode 100644 fireblocks_client/models/create_api_user.py create mode 100644 fireblocks_client/models/create_assets_bulk_request.py create mode 100644 fireblocks_client/models/create_assets_request.py create mode 100644 fireblocks_client/models/create_config_operation_request.py create mode 100644 fireblocks_client/models/create_connection_request.py create mode 100644 fireblocks_client/models/create_connection_response.py create mode 100644 fireblocks_client/models/create_console_user.py create mode 100644 fireblocks_client/models/create_contract_request.py create mode 100644 fireblocks_client/models/create_conversion_config_operation_request.py create mode 100644 fireblocks_client/models/create_disbursement_config_operation_request.py create mode 100644 fireblocks_client/models/create_internal_transfer_request.py create mode 100644 fireblocks_client/models/create_internal_wallet_asset_request.py create mode 100644 fireblocks_client/models/create_multiple_accounts_request.py create mode 100644 fireblocks_client/models/create_ncw_connection_request.py create mode 100644 fireblocks_client/models/create_network_id_request.py create mode 100644 fireblocks_client/models/create_payout_request.py create mode 100644 fireblocks_client/models/create_token_request_dto.py create mode 100644 fireblocks_client/models/create_token_request_dto_create_params.py create mode 100644 fireblocks_client/models/create_transaction_response.py create mode 100644 fireblocks_client/models/create_transfer_config_operation_request.py create mode 100644 fireblocks_client/models/create_user_group_response.py create mode 100644 fireblocks_client/models/create_vault_account_connection_request.py create mode 100644 fireblocks_client/models/create_vault_account_request.py create mode 100644 fireblocks_client/models/create_vault_asset_response.py create mode 100644 fireblocks_client/models/create_wallet_request.py create mode 100644 fireblocks_client/models/create_workflow_execution_request_params_inner.py create mode 100644 fireblocks_client/models/custom_routing_dest.py create mode 100644 fireblocks_client/models/default_network_routing_dest.py create mode 100644 fireblocks_client/models/delegation_dto.py create mode 100644 fireblocks_client/models/delegation_summary_dto.py create mode 100644 fireblocks_client/models/delete_network_connection_response.py create mode 100644 fireblocks_client/models/delete_network_id_response.py create mode 100644 fireblocks_client/models/deployed_contract_response_dto.py create mode 100644 fireblocks_client/models/deployed_contracts_paginated_response.py create mode 100644 fireblocks_client/models/deposit_funds_from_linked_dda_response.py create mode 100644 fireblocks_client/models/destination.py create mode 100644 fireblocks_client/models/destination_transfer_peer_path.py create mode 100644 fireblocks_client/models/destination_transfer_peer_path_response.py create mode 100644 fireblocks_client/models/disbursement_amount_instruction.py create mode 100644 fireblocks_client/models/disbursement_config_operation.py create mode 100644 fireblocks_client/models/disbursement_instruction.py create mode 100644 fireblocks_client/models/disbursement_instruction_output.py create mode 100644 fireblocks_client/models/disbursement_operation_config_params.py create mode 100644 fireblocks_client/models/disbursement_operation_execution.py create mode 100644 fireblocks_client/models/disbursement_operation_execution_output.py create mode 100644 fireblocks_client/models/disbursement_operation_execution_params.py create mode 100644 fireblocks_client/models/disbursement_operation_execution_params_execution_params.py create mode 100644 fireblocks_client/models/disbursement_operation_input.py create mode 100644 fireblocks_client/models/disbursement_operation_preview.py create mode 100644 fireblocks_client/models/disbursement_operation_preview_output.py create mode 100644 fireblocks_client/models/disbursement_operation_preview_output_instruction_set_inner.py create mode 100644 fireblocks_client/models/disbursement_operation_type.py create mode 100644 fireblocks_client/models/disbursement_percentage_instruction.py create mode 100644 fireblocks_client/models/disbursement_validation_failure.py create mode 100644 fireblocks_client/models/dispatch_payout_response.py create mode 100644 fireblocks_client/models/draft_response.py create mode 100644 fireblocks_client/models/draft_review_and_validation_response.py create mode 100644 fireblocks_client/models/drop_transaction_request.py create mode 100644 fireblocks_client/models/drop_transaction_response.py create mode 100644 fireblocks_client/models/edit_gas_station_configuration_response.py create mode 100644 fireblocks_client/models/error_response.py create mode 100644 fireblocks_client/models/error_response_error.py create mode 100644 fireblocks_client/models/error_schema.py create mode 100644 fireblocks_client/models/estimated_network_fee_response.py create mode 100644 fireblocks_client/models/estimated_transaction_fee_response.py create mode 100644 fireblocks_client/models/evm_token_create_params_dto.py create mode 100644 fireblocks_client/models/exchange_account.py create mode 100644 fireblocks_client/models/exchange_accounts_paged.py create mode 100644 fireblocks_client/models/exchange_accounts_paged_paging.py create mode 100644 fireblocks_client/models/exchange_asset.py create mode 100644 fireblocks_client/models/exchange_settlement_transactions_response.py create mode 100644 fireblocks_client/models/exchange_trading_account.py create mode 100644 fireblocks_client/models/exchange_type.py create mode 100644 fireblocks_client/models/execute_action_request.py create mode 100644 fireblocks_client/models/execute_action_response.py create mode 100644 fireblocks_client/models/execution_conversion_operation.py create mode 100644 fireblocks_client/models/execution_disbursement_operation.py create mode 100644 fireblocks_client/models/execution_operation_status.py create mode 100644 fireblocks_client/models/execution_screening_operation.py create mode 100644 fireblocks_client/models/execution_transfer_operation.py create mode 100644 fireblocks_client/models/external_wallet_asset.py create mode 100644 fireblocks_client/models/fee_info.py create mode 100644 fireblocks_client/models/fiat_account.py create mode 100644 fireblocks_client/models/fiat_account_type.py create mode 100644 fireblocks_client/models/fiat_asset.py create mode 100644 fireblocks_client/models/freeze_transaction_response.py create mode 100644 fireblocks_client/models/function_doc.py create mode 100644 fireblocks_client/models/funds.py create mode 100644 fireblocks_client/models/gas_station_configuration.py create mode 100644 fireblocks_client/models/gas_station_configuration_response.py create mode 100644 fireblocks_client/models/gas_station_properties_response.py create mode 100644 fireblocks_client/models/get_api_users_response.py create mode 100644 fireblocks_client/models/get_audit_logs_response.py create mode 100644 fireblocks_client/models/get_audit_logs_response_dto.py create mode 100644 fireblocks_client/models/get_connections_response.py create mode 100644 fireblocks_client/models/get_console_users_response.py create mode 100644 fireblocks_client/models/get_filter_parameter.py create mode 100644 fireblocks_client/models/get_max_spendable_amount_response.py create mode 100644 fireblocks_client/models/get_nfts_response.py create mode 100644 fireblocks_client/models/get_ota_status_response.py create mode 100644 fireblocks_client/models/get_ownership_tokens_response.py create mode 100644 fireblocks_client/models/get_transaction_operation.py create mode 100644 fireblocks_client/models/get_whitelist_ip_addresses_response.py create mode 100644 fireblocks_client/models/get_workspace_status_response.py create mode 100644 fireblocks_client/models/http_contract_does_not_exist_error.py create mode 100644 fireblocks_client/models/instruction_amount.py create mode 100644 fireblocks_client/models/internal_transfer_response.py create mode 100644 fireblocks_client/models/job.py create mode 100644 fireblocks_client/models/job_created.py create mode 100644 fireblocks_client/models/lean_abi_function.py create mode 100644 fireblocks_client/models/lean_contract_dto.py create mode 100644 fireblocks_client/models/lean_deployed_contract_response_dto.py create mode 100644 fireblocks_client/models/list_owned_collections_response.py create mode 100644 fireblocks_client/models/list_owned_tokens_response.py create mode 100644 fireblocks_client/models/media_entity_response.py create mode 100644 fireblocks_client/models/network_channel.py create mode 100644 fireblocks_client/models/network_connection.py create mode 100644 fireblocks_client/models/network_connection_response.py create mode 100644 fireblocks_client/models/network_connection_routing_policy_value.py create mode 100644 fireblocks_client/models/network_connection_status.py create mode 100644 fireblocks_client/models/network_fee.py create mode 100644 fireblocks_client/models/network_id.py create mode 100644 fireblocks_client/models/network_id_response.py create mode 100644 fireblocks_client/models/network_id_routing_policy_value.py create mode 100644 fireblocks_client/models/network_record.py create mode 100644 fireblocks_client/models/none_network_routing_dest.py create mode 100644 fireblocks_client/models/not_found_exception.py create mode 100644 fireblocks_client/models/one_time_address.py create mode 100644 fireblocks_client/models/one_time_address_account.py create mode 100644 fireblocks_client/models/operation_execution_failure.py create mode 100644 fireblocks_client/models/paginated_address_response.py create mode 100644 fireblocks_client/models/paginated_address_response_paging.py create mode 100644 fireblocks_client/models/paginated_asset_wallet_response.py create mode 100644 fireblocks_client/models/paginated_asset_wallet_response_paging.py create mode 100644 fireblocks_client/models/paging.py create mode 100644 fireblocks_client/models/parameter.py create mode 100644 fireblocks_client/models/parameter_with_value.py create mode 100644 fireblocks_client/models/payee_account.py create mode 100644 fireblocks_client/models/payee_account_response.py create mode 100644 fireblocks_client/models/payee_account_type.py create mode 100644 fireblocks_client/models/payment_account.py create mode 100644 fireblocks_client/models/payment_account_response.py create mode 100644 fireblocks_client/models/payment_account_type.py create mode 100644 fireblocks_client/models/payout_init_method.py create mode 100644 fireblocks_client/models/payout_instruction.py create mode 100644 fireblocks_client/models/payout_instruction_response.py create mode 100644 fireblocks_client/models/payout_instruction_state.py create mode 100644 fireblocks_client/models/payout_response.py create mode 100644 fireblocks_client/models/payout_state.py create mode 100644 fireblocks_client/models/payout_status.py create mode 100644 fireblocks_client/models/policy_and_validation_response.py create mode 100644 fireblocks_client/models/policy_check_result.py create mode 100644 fireblocks_client/models/policy_metadata.py create mode 100644 fireblocks_client/models/policy_response.py create mode 100644 fireblocks_client/models/policy_rule.py create mode 100644 fireblocks_client/models/policy_rule_amount.py create mode 100644 fireblocks_client/models/policy_rule_amount_aggregation.py create mode 100644 fireblocks_client/models/policy_rule_authorization_groups.py create mode 100644 fireblocks_client/models/policy_rule_authorization_groups_groups_inner.py create mode 100644 fireblocks_client/models/policy_rule_check_result.py create mode 100644 fireblocks_client/models/policy_rule_designated_signers.py create mode 100644 fireblocks_client/models/policy_rule_dst.py create mode 100644 fireblocks_client/models/policy_rule_error.py create mode 100644 fireblocks_client/models/policy_rule_operators.py create mode 100644 fireblocks_client/models/policy_rule_raw_message_signing.py create mode 100644 fireblocks_client/models/policy_rule_raw_message_signing_derivation_path.py create mode 100644 fireblocks_client/models/policy_rule_src.py create mode 100644 fireblocks_client/models/policy_rules.py create mode 100644 fireblocks_client/models/policy_src_or_dest_sub_type.py create mode 100644 fireblocks_client/models/policy_src_or_dest_type.py create mode 100644 fireblocks_client/models/policy_status.py create mode 100644 fireblocks_client/models/policy_validation.py create mode 100644 fireblocks_client/models/pre_screening.py create mode 100644 fireblocks_client/models/provider_dto.py create mode 100644 fireblocks_client/models/public_key_information.py create mode 100644 fireblocks_client/models/publish_draft_request.py create mode 100644 fireblocks_client/models/publish_result.py create mode 100644 fireblocks_client/models/read_abi_function.py create mode 100644 fireblocks_client/models/read_call_function_dto.py create mode 100644 fireblocks_client/models/redeem_funds_to_linked_dda_response.py create mode 100644 fireblocks_client/models/register_new_asset_request.py create mode 100644 fireblocks_client/models/related_transaction_dto.py create mode 100644 fireblocks_client/models/remove_collateral_request_body.py create mode 100644 fireblocks_client/models/rename_cosigner.py create mode 100644 fireblocks_client/models/rename_vault_account_response.py create mode 100644 fireblocks_client/models/resend_transaction_webhooks_request.py create mode 100644 fireblocks_client/models/resend_webhooks_by_transaction_id_response.py create mode 100644 fireblocks_client/models/resend_webhooks_response.py create mode 100644 fireblocks_client/models/respond_to_connection_request.py create mode 100644 fireblocks_client/models/reward_info.py create mode 100644 fireblocks_client/models/rewards_info.py create mode 100644 fireblocks_client/models/screening_configurations_request.py create mode 100644 fireblocks_client/models/screening_operation_execution.py create mode 100644 fireblocks_client/models/screening_operation_execution_output.py create mode 100644 fireblocks_client/models/screening_operation_failure.py create mode 100644 fireblocks_client/models/screening_operation_type.py create mode 100644 fireblocks_client/models/screening_policy_response.py create mode 100644 fireblocks_client/models/screening_provider_rules_configuration_response.py create mode 100644 fireblocks_client/models/screening_update_configurations_request.py create mode 100644 fireblocks_client/models/screening_validation_failure.py create mode 100644 fireblocks_client/models/screening_verdict.py create mode 100644 fireblocks_client/models/screening_verdict_matched_rule.py create mode 100644 fireblocks_client/models/session_dto.py create mode 100644 fireblocks_client/models/session_metadata.py create mode 100644 fireblocks_client/models/set_admin_quorum_threshold_request.py create mode 100644 fireblocks_client/models/set_admin_quorum_threshold_response.py create mode 100644 fireblocks_client/models/set_auto_fuel_request.py create mode 100644 fireblocks_client/models/set_confirmations_threshold_request.py create mode 100644 fireblocks_client/models/set_confirmations_threshold_response.py create mode 100644 fireblocks_client/models/set_customer_ref_id_for_address_request.py create mode 100644 fireblocks_client/models/set_customer_ref_id_request.py create mode 100644 fireblocks_client/models/set_network_id_discoverability_request.py create mode 100644 fireblocks_client/models/set_network_id_name_request.py create mode 100644 fireblocks_client/models/set_network_id_response.py create mode 100644 fireblocks_client/models/set_network_id_routing_policy_request.py create mode 100644 fireblocks_client/models/set_ota_status_request.py create mode 100644 fireblocks_client/models/set_ota_status_response.py create mode 100644 fireblocks_client/models/set_ota_status_response_one_of.py create mode 100644 fireblocks_client/models/set_routing_policy_request.py create mode 100644 fireblocks_client/models/set_routing_policy_response.py create mode 100644 fireblocks_client/models/settlement_request_body.py create mode 100644 fireblocks_client/models/settlement_response.py create mode 100644 fireblocks_client/models/signed_message.py create mode 100644 fireblocks_client/models/signed_message_signature.py create mode 100644 fireblocks_client/models/smart_transfer_bad_request_response.py create mode 100644 fireblocks_client/models/smart_transfer_create_ticket.py create mode 100644 fireblocks_client/models/smart_transfer_create_ticket_term.py create mode 100644 fireblocks_client/models/smart_transfer_forbidden_response.py create mode 100644 fireblocks_client/models/smart_transfer_fund_term.py create mode 100644 fireblocks_client/models/smart_transfer_manually_fund_term.py create mode 100644 fireblocks_client/models/smart_transfer_not_found_response.py create mode 100644 fireblocks_client/models/smart_transfer_set_ticket_expiration.py create mode 100644 fireblocks_client/models/smart_transfer_set_ticket_external_id.py create mode 100644 fireblocks_client/models/smart_transfer_set_user_groups.py create mode 100644 fireblocks_client/models/smart_transfer_submit_ticket.py create mode 100644 fireblocks_client/models/smart_transfer_ticket.py create mode 100644 fireblocks_client/models/smart_transfer_ticket_filtered_response.py create mode 100644 fireblocks_client/models/smart_transfer_ticket_response.py create mode 100644 fireblocks_client/models/smart_transfer_ticket_term.py create mode 100644 fireblocks_client/models/smart_transfer_ticket_term_response.py create mode 100644 fireblocks_client/models/smart_transfer_update_ticket_term.py create mode 100644 fireblocks_client/models/smart_transfer_user_groups.py create mode 100644 fireblocks_client/models/smart_transfer_user_groups_response.py create mode 100644 fireblocks_client/models/solana_blockchain_data_dto.py create mode 100644 fireblocks_client/models/source_transfer_peer_path.py create mode 100644 fireblocks_client/models/source_transfer_peer_path_response.py create mode 100644 fireblocks_client/models/spam_ownership_response.py create mode 100644 fireblocks_client/models/spam_token_response.py create mode 100644 fireblocks_client/models/src_or_dest_attributes_inner.py create mode 100644 fireblocks_client/models/stake_request_dto.py create mode 100644 fireblocks_client/models/stake_response_dto.py create mode 100644 fireblocks_client/models/stellar_ripple_create_params_dto.py create mode 100644 fireblocks_client/models/system_message_info.py create mode 100644 fireblocks_client/models/task.py create mode 100644 fireblocks_client/models/templates_paginated_response.py create mode 100644 fireblocks_client/models/third_party_routing.py create mode 100644 fireblocks_client/models/to_collateral_transaction.py create mode 100644 fireblocks_client/models/to_exchange_transaction.py create mode 100644 fireblocks_client/models/token_collection_response.py create mode 100644 fireblocks_client/models/token_link_dto.py create mode 100644 fireblocks_client/models/token_link_dto_token_metadata.py create mode 100644 fireblocks_client/models/token_link_exists_http_error.py create mode 100644 fireblocks_client/models/token_link_request_dto.py create mode 100644 fireblocks_client/models/token_ownership_response.py create mode 100644 fireblocks_client/models/token_ownership_spam_update_payload.py create mode 100644 fireblocks_client/models/token_ownership_status_update_payload.py create mode 100644 fireblocks_client/models/token_response.py create mode 100644 fireblocks_client/models/tokens_paginated_response.py create mode 100644 fireblocks_client/models/trading_account_type.py create mode 100644 fireblocks_client/models/transaction.py create mode 100644 fireblocks_client/models/transaction_fee.py create mode 100644 fireblocks_client/models/transaction_operation.py create mode 100644 fireblocks_client/models/transaction_request.py create mode 100644 fireblocks_client/models/transaction_request_amount.py create mode 100644 fireblocks_client/models/transaction_request_destination.py create mode 100644 fireblocks_client/models/transaction_request_fee.py create mode 100644 fireblocks_client/models/transaction_request_gas_limit.py create mode 100644 fireblocks_client/models/transaction_request_gas_price.py create mode 100644 fireblocks_client/models/transaction_request_network_fee.py create mode 100644 fireblocks_client/models/transaction_request_network_staking.py create mode 100644 fireblocks_client/models/transaction_request_priority_fee.py create mode 100644 fireblocks_client/models/transaction_response.py create mode 100644 fireblocks_client/models/transaction_response_contract_call_decoded_data.py create mode 100644 fireblocks_client/models/transaction_response_destination.py create mode 100644 fireblocks_client/models/transfer_config_operation.py create mode 100644 fireblocks_client/models/transfer_operation_config_params.py create mode 100644 fireblocks_client/models/transfer_operation_execution.py create mode 100644 fireblocks_client/models/transfer_operation_execution_output.py create mode 100644 fireblocks_client/models/transfer_operation_execution_params.py create mode 100644 fireblocks_client/models/transfer_operation_execution_params_execution_params.py create mode 100644 fireblocks_client/models/transfer_operation_failure.py create mode 100644 fireblocks_client/models/transfer_operation_failure_data.py create mode 100644 fireblocks_client/models/transfer_operation_preview.py create mode 100644 fireblocks_client/models/transfer_operation_preview_output.py create mode 100644 fireblocks_client/models/transfer_operation_type.py create mode 100644 fireblocks_client/models/transfer_peer_path_sub_type.py create mode 100644 fireblocks_client/models/transfer_peer_path_type.py create mode 100644 fireblocks_client/models/transfer_validation_failure.py create mode 100644 fireblocks_client/models/travel_rule_address.py create mode 100644 fireblocks_client/models/travel_rule_create_transaction_request.py create mode 100644 fireblocks_client/models/travel_rule_get_all_vasps_response.py create mode 100644 fireblocks_client/models/travel_rule_issuer.py create mode 100644 fireblocks_client/models/travel_rule_issuers.py create mode 100644 fireblocks_client/models/travel_rule_ownership_proof.py create mode 100644 fireblocks_client/models/travel_rule_pii_ivms.py create mode 100644 fireblocks_client/models/travel_rule_policy_rule_response.py create mode 100644 fireblocks_client/models/travel_rule_transaction_blockchain_info.py create mode 100644 fireblocks_client/models/travel_rule_update_vasp_details.py create mode 100644 fireblocks_client/models/travel_rule_validate_full_transaction_request.py create mode 100644 fireblocks_client/models/travel_rule_validate_transaction_request.py create mode 100644 fireblocks_client/models/travel_rule_validate_transaction_response.py create mode 100644 fireblocks_client/models/travel_rule_vasp.py create mode 100644 fireblocks_client/models/unfreeze_transaction_response.py create mode 100644 fireblocks_client/models/unmanaged_wallet.py create mode 100644 fireblocks_client/models/unspent_input.py create mode 100644 fireblocks_client/models/unspent_inputs_response.py create mode 100644 fireblocks_client/models/unstake_request_dto.py create mode 100644 fireblocks_client/models/update_token_ownership_status_dto.py create mode 100644 fireblocks_client/models/update_vault_account_asset_address_request.py create mode 100644 fireblocks_client/models/update_vault_account_request.py create mode 100644 fireblocks_client/models/user_group_create_request.py create mode 100644 fireblocks_client/models/user_group_create_response.py create mode 100644 fireblocks_client/models/user_group_response.py create mode 100644 fireblocks_client/models/user_group_update_request.py create mode 100644 fireblocks_client/models/user_response.py create mode 100644 fireblocks_client/models/user_role.py create mode 100644 fireblocks_client/models/user_status.py create mode 100644 fireblocks_client/models/user_type.py create mode 100644 fireblocks_client/models/validate_address_response.py create mode 100644 fireblocks_client/models/validator_dto.py create mode 100644 fireblocks_client/models/vault_account.py create mode 100644 fireblocks_client/models/vault_accounts_paged_response.py create mode 100644 fireblocks_client/models/vault_accounts_paged_response_paging.py create mode 100644 fireblocks_client/models/vault_action_status.py create mode 100644 fireblocks_client/models/vault_asset.py create mode 100644 fireblocks_client/models/vault_wallet_address.py create mode 100644 fireblocks_client/models/vendor_dto.py create mode 100644 fireblocks_client/models/wallet_asset.py create mode 100644 fireblocks_client/models/wallet_asset_additional_info.py create mode 100644 fireblocks_client/models/withdraw_request_dto.py create mode 100644 fireblocks_client/models/workflow_config_status.py create mode 100644 fireblocks_client/models/workflow_configuration_id.py create mode 100644 fireblocks_client/models/workflow_execution_operation.py create mode 100644 fireblocks_client/models/write_abi_function.py create mode 100644 fireblocks_client/models/write_call_function_dto.py create mode 100644 fireblocks_client/models/write_call_function_response_dto.py delete mode 100644 fireblocks_client/paths/__init__.py delete mode 100644 fireblocks_client/paths/audits/__init__.py delete mode 100644 fireblocks_client/paths/audits/get.py delete mode 100644 fireblocks_client/paths/audits/get.pyi delete mode 100644 fireblocks_client/paths/connections/__init__.py delete mode 100644 fireblocks_client/paths/connections/get.py delete mode 100644 fireblocks_client/paths/connections/get.pyi delete mode 100644 fireblocks_client/paths/connections_wc/__init__.py delete mode 100644 fireblocks_client/paths/connections_wc/post.py delete mode 100644 fireblocks_client/paths/connections_wc/post.pyi delete mode 100644 fireblocks_client/paths/connections_wc_id/__init__.py delete mode 100644 fireblocks_client/paths/connections_wc_id/delete.py delete mode 100644 fireblocks_client/paths/connections_wc_id/delete.pyi delete mode 100644 fireblocks_client/paths/connections_wc_id/put.py delete mode 100644 fireblocks_client/paths/connections_wc_id/put.pyi delete mode 100644 fireblocks_client/paths/contracts/__init__.py delete mode 100644 fireblocks_client/paths/contracts/get.py delete mode 100644 fireblocks_client/paths/contracts/get.pyi delete mode 100644 fireblocks_client/paths/contracts/post.py delete mode 100644 fireblocks_client/paths/contracts/post.pyi delete mode 100644 fireblocks_client/paths/contracts_contract_id/__init__.py delete mode 100644 fireblocks_client/paths/contracts_contract_id/delete.py delete mode 100644 fireblocks_client/paths/contracts_contract_id/delete.pyi delete mode 100644 fireblocks_client/paths/contracts_contract_id/get.py delete mode 100644 fireblocks_client/paths/contracts_contract_id/get.pyi delete mode 100644 fireblocks_client/paths/contracts_contract_id_asset_id/__init__.py delete mode 100644 fireblocks_client/paths/contracts_contract_id_asset_id/delete.py delete mode 100644 fireblocks_client/paths/contracts_contract_id_asset_id/delete.pyi delete mode 100644 fireblocks_client/paths/contracts_contract_id_asset_id/get.py delete mode 100644 fireblocks_client/paths/contracts_contract_id_asset_id/get.pyi delete mode 100644 fireblocks_client/paths/contracts_contract_id_asset_id/post.py delete mode 100644 fireblocks_client/paths/contracts_contract_id_asset_id/post.pyi delete mode 100644 fireblocks_client/paths/estimate_network_fee/__init__.py delete mode 100644 fireblocks_client/paths/estimate_network_fee/get.py delete mode 100644 fireblocks_client/paths/estimate_network_fee/get.pyi delete mode 100644 fireblocks_client/paths/exchange_accounts/__init__.py delete mode 100644 fireblocks_client/paths/exchange_accounts/get.py delete mode 100644 fireblocks_client/paths/exchange_accounts/get.pyi delete mode 100644 fireblocks_client/paths/exchange_accounts_exchange_account_id/__init__.py delete mode 100644 fireblocks_client/paths/exchange_accounts_exchange_account_id/get.py delete mode 100644 fireblocks_client/paths/exchange_accounts_exchange_account_id/get.pyi delete mode 100644 fireblocks_client/paths/exchange_accounts_exchange_account_id_asset_id/__init__.py delete mode 100644 fireblocks_client/paths/exchange_accounts_exchange_account_id_asset_id/get.py delete mode 100644 fireblocks_client/paths/exchange_accounts_exchange_account_id_asset_id/get.pyi delete mode 100644 fireblocks_client/paths/exchange_accounts_exchange_account_id_convert/__init__.py delete mode 100644 fireblocks_client/paths/exchange_accounts_exchange_account_id_convert/post.py delete mode 100644 fireblocks_client/paths/exchange_accounts_exchange_account_id_convert/post.pyi delete mode 100644 fireblocks_client/paths/exchange_accounts_exchange_account_id_internal_transfer/__init__.py delete mode 100644 fireblocks_client/paths/exchange_accounts_exchange_account_id_internal_transfer/post.py delete mode 100644 fireblocks_client/paths/exchange_accounts_exchange_account_id_internal_transfer/post.pyi delete mode 100644 fireblocks_client/paths/external_wallets/__init__.py delete mode 100644 fireblocks_client/paths/external_wallets/get.py delete mode 100644 fireblocks_client/paths/external_wallets/get.pyi delete mode 100644 fireblocks_client/paths/external_wallets/post.py delete mode 100644 fireblocks_client/paths/external_wallets/post.pyi delete mode 100644 fireblocks_client/paths/external_wallets_wallet_id/__init__.py delete mode 100644 fireblocks_client/paths/external_wallets_wallet_id/delete.py delete mode 100644 fireblocks_client/paths/external_wallets_wallet_id/delete.pyi delete mode 100644 fireblocks_client/paths/external_wallets_wallet_id/get.py delete mode 100644 fireblocks_client/paths/external_wallets_wallet_id/get.pyi delete mode 100644 fireblocks_client/paths/external_wallets_wallet_id_asset_id/__init__.py delete mode 100644 fireblocks_client/paths/external_wallets_wallet_id_asset_id/delete.py delete mode 100644 fireblocks_client/paths/external_wallets_wallet_id_asset_id/delete.pyi delete mode 100644 fireblocks_client/paths/external_wallets_wallet_id_asset_id/get.py delete mode 100644 fireblocks_client/paths/external_wallets_wallet_id_asset_id/get.pyi delete mode 100644 fireblocks_client/paths/external_wallets_wallet_id_asset_id/post.py delete mode 100644 fireblocks_client/paths/external_wallets_wallet_id_asset_id/post.pyi delete mode 100644 fireblocks_client/paths/external_wallets_wallet_id_set_customer_ref_id/__init__.py delete mode 100644 fireblocks_client/paths/external_wallets_wallet_id_set_customer_ref_id/post.py delete mode 100644 fireblocks_client/paths/external_wallets_wallet_id_set_customer_ref_id/post.pyi delete mode 100644 fireblocks_client/paths/fiat_accounts/__init__.py delete mode 100644 fireblocks_client/paths/fiat_accounts/get.py delete mode 100644 fireblocks_client/paths/fiat_accounts/get.pyi delete mode 100644 fireblocks_client/paths/fiat_accounts_account_id/__init__.py delete mode 100644 fireblocks_client/paths/fiat_accounts_account_id/get.py delete mode 100644 fireblocks_client/paths/fiat_accounts_account_id/get.pyi delete mode 100644 fireblocks_client/paths/fiat_accounts_account_id_deposit_from_linked_dda/__init__.py delete mode 100644 fireblocks_client/paths/fiat_accounts_account_id_deposit_from_linked_dda/post.py delete mode 100644 fireblocks_client/paths/fiat_accounts_account_id_deposit_from_linked_dda/post.pyi delete mode 100644 fireblocks_client/paths/fiat_accounts_account_id_redeem_to_linked_dda/__init__.py delete mode 100644 fireblocks_client/paths/fiat_accounts_account_id_redeem_to_linked_dda/post.py delete mode 100644 fireblocks_client/paths/fiat_accounts_account_id_redeem_to_linked_dda/post.pyi delete mode 100644 fireblocks_client/paths/gas_station/__init__.py delete mode 100644 fireblocks_client/paths/gas_station/get.py delete mode 100644 fireblocks_client/paths/gas_station/get.pyi delete mode 100644 fireblocks_client/paths/gas_station_asset_id/__init__.py delete mode 100644 fireblocks_client/paths/gas_station_asset_id/get.py delete mode 100644 fireblocks_client/paths/gas_station_asset_id/get.pyi delete mode 100644 fireblocks_client/paths/gas_station_configuration/__init__.py delete mode 100644 fireblocks_client/paths/gas_station_configuration/put.py delete mode 100644 fireblocks_client/paths/gas_station_configuration/put.pyi delete mode 100644 fireblocks_client/paths/gas_station_configuration_asset_id/__init__.py delete mode 100644 fireblocks_client/paths/gas_station_configuration_asset_id/put.py delete mode 100644 fireblocks_client/paths/gas_station_configuration_asset_id/put.pyi delete mode 100644 fireblocks_client/paths/internal_wallets/__init__.py delete mode 100644 fireblocks_client/paths/internal_wallets/get.py delete mode 100644 fireblocks_client/paths/internal_wallets/get.pyi delete mode 100644 fireblocks_client/paths/internal_wallets/post.py delete mode 100644 fireblocks_client/paths/internal_wallets/post.pyi delete mode 100644 fireblocks_client/paths/internal_wallets_wallet_id/__init__.py delete mode 100644 fireblocks_client/paths/internal_wallets_wallet_id/delete.py delete mode 100644 fireblocks_client/paths/internal_wallets_wallet_id/delete.pyi delete mode 100644 fireblocks_client/paths/internal_wallets_wallet_id/get.py delete mode 100644 fireblocks_client/paths/internal_wallets_wallet_id/get.pyi delete mode 100644 fireblocks_client/paths/internal_wallets_wallet_id_asset_id/__init__.py delete mode 100644 fireblocks_client/paths/internal_wallets_wallet_id_asset_id/delete.py delete mode 100644 fireblocks_client/paths/internal_wallets_wallet_id_asset_id/delete.pyi delete mode 100644 fireblocks_client/paths/internal_wallets_wallet_id_asset_id/get.py delete mode 100644 fireblocks_client/paths/internal_wallets_wallet_id_asset_id/get.pyi delete mode 100644 fireblocks_client/paths/internal_wallets_wallet_id_asset_id/post.py delete mode 100644 fireblocks_client/paths/internal_wallets_wallet_id_asset_id/post.pyi delete mode 100644 fireblocks_client/paths/internal_wallets_wallet_id_set_customer_ref_id/__init__.py delete mode 100644 fireblocks_client/paths/internal_wallets_wallet_id_set_customer_ref_id/post.py delete mode 100644 fireblocks_client/paths/internal_wallets_wallet_id_set_customer_ref_id/post.pyi delete mode 100644 fireblocks_client/paths/management_ota/__init__.py delete mode 100644 fireblocks_client/paths/management_ota/get.py delete mode 100644 fireblocks_client/paths/management_ota/get.pyi delete mode 100644 fireblocks_client/paths/management_ota/post.py delete mode 100644 fireblocks_client/paths/management_ota/post.pyi delete mode 100644 fireblocks_client/paths/network_connections/__init__.py delete mode 100644 fireblocks_client/paths/network_connections/get.py delete mode 100644 fireblocks_client/paths/network_connections/get.pyi delete mode 100644 fireblocks_client/paths/network_connections/post.py delete mode 100644 fireblocks_client/paths/network_connections/post.pyi delete mode 100644 fireblocks_client/paths/network_connections_connection_id/__init__.py delete mode 100644 fireblocks_client/paths/network_connections_connection_id/delete.py delete mode 100644 fireblocks_client/paths/network_connections_connection_id/delete.pyi delete mode 100644 fireblocks_client/paths/network_connections_connection_id/get.py delete mode 100644 fireblocks_client/paths/network_connections_connection_id/get.pyi delete mode 100644 fireblocks_client/paths/network_connections_connection_id_is_third_party_routing_asset_type/__init__.py delete mode 100644 fireblocks_client/paths/network_connections_connection_id_is_third_party_routing_asset_type/get.py delete mode 100644 fireblocks_client/paths/network_connections_connection_id_is_third_party_routing_asset_type/get.pyi delete mode 100644 fireblocks_client/paths/network_connections_connection_id_set_routing_policy/__init__.py delete mode 100644 fireblocks_client/paths/network_connections_connection_id_set_routing_policy/patch.py delete mode 100644 fireblocks_client/paths/network_connections_connection_id_set_routing_policy/patch.pyi delete mode 100644 fireblocks_client/paths/network_ids/__init__.py delete mode 100644 fireblocks_client/paths/network_ids/get.py delete mode 100644 fireblocks_client/paths/network_ids/get.pyi delete mode 100644 fireblocks_client/paths/network_ids/post.py delete mode 100644 fireblocks_client/paths/network_ids/post.pyi delete mode 100644 fireblocks_client/paths/network_ids_network_id/__init__.py delete mode 100644 fireblocks_client/paths/network_ids_network_id/delete.py delete mode 100644 fireblocks_client/paths/network_ids_network_id/delete.pyi delete mode 100644 fireblocks_client/paths/network_ids_network_id/get.py delete mode 100644 fireblocks_client/paths/network_ids_network_id/get.pyi delete mode 100644 fireblocks_client/paths/network_ids_network_id_set_discoverability/__init__.py delete mode 100644 fireblocks_client/paths/network_ids_network_id_set_discoverability/patch.py delete mode 100644 fireblocks_client/paths/network_ids_network_id_set_discoverability/patch.pyi delete mode 100644 fireblocks_client/paths/network_ids_network_id_set_name/__init__.py delete mode 100644 fireblocks_client/paths/network_ids_network_id_set_name/patch.py delete mode 100644 fireblocks_client/paths/network_ids_network_id_set_name/patch.pyi delete mode 100644 fireblocks_client/paths/network_ids_network_id_set_routing_policy/__init__.py delete mode 100644 fireblocks_client/paths/network_ids_network_id_set_routing_policy/patch.py delete mode 100644 fireblocks_client/paths/network_ids_network_id_set_routing_policy/patch.pyi delete mode 100644 fireblocks_client/paths/nfts_ownership_collections/__init__.py delete mode 100644 fireblocks_client/paths/nfts_ownership_collections/get.py delete mode 100644 fireblocks_client/paths/nfts_ownership_collections/get.pyi delete mode 100644 fireblocks_client/paths/nfts_ownership_tokens/__init__.py delete mode 100644 fireblocks_client/paths/nfts_ownership_tokens/get.py delete mode 100644 fireblocks_client/paths/nfts_ownership_tokens/get.pyi delete mode 100644 fireblocks_client/paths/nfts_ownership_tokens/put.py delete mode 100644 fireblocks_client/paths/nfts_ownership_tokens/put.pyi delete mode 100644 fireblocks_client/paths/nfts_ownership_tokens_id_status/__init__.py delete mode 100644 fireblocks_client/paths/nfts_ownership_tokens_id_status/put.py delete mode 100644 fireblocks_client/paths/nfts_ownership_tokens_id_status/put.pyi delete mode 100644 fireblocks_client/paths/nfts_tokens/__init__.py delete mode 100644 fireblocks_client/paths/nfts_tokens/get.py delete mode 100644 fireblocks_client/paths/nfts_tokens/get.pyi delete mode 100644 fireblocks_client/paths/nfts_tokens_id/__init__.py delete mode 100644 fireblocks_client/paths/nfts_tokens_id/get.py delete mode 100644 fireblocks_client/paths/nfts_tokens_id/get.pyi delete mode 100644 fireblocks_client/paths/nfts_tokens_id/put.py delete mode 100644 fireblocks_client/paths/nfts_tokens_id/put.pyi delete mode 100644 fireblocks_client/paths/off_exchange_add/__init__.py delete mode 100644 fireblocks_client/paths/off_exchange_add/post.py delete mode 100644 fireblocks_client/paths/off_exchange_add/post.pyi delete mode 100644 fireblocks_client/paths/off_exchange_collateral_accounts_main_exchange_account_id/__init__.py delete mode 100644 fireblocks_client/paths/off_exchange_collateral_accounts_main_exchange_account_id/get.py delete mode 100644 fireblocks_client/paths/off_exchange_collateral_accounts_main_exchange_account_id/get.pyi delete mode 100644 fireblocks_client/paths/off_exchange_remove/__init__.py delete mode 100644 fireblocks_client/paths/off_exchange_remove/post.py delete mode 100644 fireblocks_client/paths/off_exchange_remove/post.pyi delete mode 100644 fireblocks_client/paths/off_exchange_settlements_trader/__init__.py delete mode 100644 fireblocks_client/paths/off_exchange_settlements_trader/post.py delete mode 100644 fireblocks_client/paths/off_exchange_settlements_trader/post.pyi delete mode 100644 fireblocks_client/paths/off_exchange_settlements_transactions/__init__.py delete mode 100644 fireblocks_client/paths/off_exchange_settlements_transactions/get.py delete mode 100644 fireblocks_client/paths/off_exchange_settlements_transactions/get.pyi delete mode 100644 fireblocks_client/paths/payments_payout/__init__.py delete mode 100644 fireblocks_client/paths/payments_payout/post.py delete mode 100644 fireblocks_client/paths/payments_payout/post.pyi delete mode 100644 fireblocks_client/paths/payments_payout_payout_id/__init__.py delete mode 100644 fireblocks_client/paths/payments_payout_payout_id/get.py delete mode 100644 fireblocks_client/paths/payments_payout_payout_id/get.pyi delete mode 100644 fireblocks_client/paths/payments_payout_payout_id_actions_execute/__init__.py delete mode 100644 fireblocks_client/paths/payments_payout_payout_id_actions_execute/post.py delete mode 100644 fireblocks_client/paths/payments_payout_payout_id_actions_execute/post.pyi delete mode 100644 fireblocks_client/paths/payments_xb_settlements_configs/__init__.py delete mode 100644 fireblocks_client/paths/payments_xb_settlements_configs/get.py delete mode 100644 fireblocks_client/paths/payments_xb_settlements_configs/get.pyi delete mode 100644 fireblocks_client/paths/payments_xb_settlements_configs/post.py delete mode 100644 fireblocks_client/paths/payments_xb_settlements_configs/post.pyi delete mode 100644 fireblocks_client/paths/payments_xb_settlements_configs_config_id/__init__.py delete mode 100644 fireblocks_client/paths/payments_xb_settlements_configs_config_id/delete.py delete mode 100644 fireblocks_client/paths/payments_xb_settlements_configs_config_id/delete.pyi delete mode 100644 fireblocks_client/paths/payments_xb_settlements_configs_config_id/get.py delete mode 100644 fireblocks_client/paths/payments_xb_settlements_configs_config_id/get.pyi delete mode 100644 fireblocks_client/paths/payments_xb_settlements_configs_config_id/put.py delete mode 100644 fireblocks_client/paths/payments_xb_settlements_configs_config_id/put.pyi delete mode 100644 fireblocks_client/paths/payments_xb_settlements_flows/__init__.py delete mode 100644 fireblocks_client/paths/payments_xb_settlements_flows/post.py delete mode 100644 fireblocks_client/paths/payments_xb_settlements_flows/post.pyi delete mode 100644 fireblocks_client/paths/payments_xb_settlements_flows_flow_id/__init__.py delete mode 100644 fireblocks_client/paths/payments_xb_settlements_flows_flow_id/get.py delete mode 100644 fireblocks_client/paths/payments_xb_settlements_flows_flow_id/get.pyi delete mode 100644 fireblocks_client/paths/payments_xb_settlements_flows_flow_id_actions_execute/__init__.py delete mode 100644 fireblocks_client/paths/payments_xb_settlements_flows_flow_id_actions_execute/post.py delete mode 100644 fireblocks_client/paths/payments_xb_settlements_flows_flow_id_actions_execute/post.pyi delete mode 100644 fireblocks_client/paths/screeening_travel_rule_vasp_update/__init__.py delete mode 100644 fireblocks_client/paths/screeening_travel_rule_vasp_update/put.py delete mode 100644 fireblocks_client/paths/screeening_travel_rule_vasp_update/put.pyi delete mode 100644 fireblocks_client/paths/screening_travel_rule_transaction_validate/__init__.py delete mode 100644 fireblocks_client/paths/screening_travel_rule_transaction_validate/post.py delete mode 100644 fireblocks_client/paths/screening_travel_rule_transaction_validate/post.pyi delete mode 100644 fireblocks_client/paths/screening_travel_rule_transaction_validate_full/__init__.py delete mode 100644 fireblocks_client/paths/screening_travel_rule_transaction_validate_full/post.py delete mode 100644 fireblocks_client/paths/screening_travel_rule_transaction_validate_full/post.pyi delete mode 100644 fireblocks_client/paths/screening_travel_rule_vasp/__init__.py delete mode 100644 fireblocks_client/paths/screening_travel_rule_vasp/get.py delete mode 100644 fireblocks_client/paths/screening_travel_rule_vasp/get.pyi delete mode 100644 fireblocks_client/paths/screening_travel_rule_vasp_did/__init__.py delete mode 100644 fireblocks_client/paths/screening_travel_rule_vasp_did/get.py delete mode 100644 fireblocks_client/paths/screening_travel_rule_vasp_did/get.pyi delete mode 100644 fireblocks_client/paths/supported_assets/__init__.py delete mode 100644 fireblocks_client/paths/supported_assets/get.py delete mode 100644 fireblocks_client/paths/supported_assets/get.pyi delete mode 100644 fireblocks_client/paths/tap_active_policy/__init__.py delete mode 100644 fireblocks_client/paths/tap_active_policy/get.py delete mode 100644 fireblocks_client/paths/tap_active_policy/get.pyi delete mode 100644 fireblocks_client/paths/tap_draft/__init__.py delete mode 100644 fireblocks_client/paths/tap_draft/get.py delete mode 100644 fireblocks_client/paths/tap_draft/get.pyi delete mode 100644 fireblocks_client/paths/tap_draft/post.py delete mode 100644 fireblocks_client/paths/tap_draft/post.pyi delete mode 100644 fireblocks_client/paths/tap_draft/put.py delete mode 100644 fireblocks_client/paths/tap_draft/put.pyi delete mode 100644 fireblocks_client/paths/tap_publish/__init__.py delete mode 100644 fireblocks_client/paths/tap_publish/post.py delete mode 100644 fireblocks_client/paths/tap_publish/post.pyi delete mode 100644 fireblocks_client/paths/transactions/__init__.py delete mode 100644 fireblocks_client/paths/transactions/get.py delete mode 100644 fireblocks_client/paths/transactions/get.pyi delete mode 100644 fireblocks_client/paths/transactions/post.py delete mode 100644 fireblocks_client/paths/transactions/post.pyi delete mode 100644 fireblocks_client/paths/transactions_estimate_fee/__init__.py delete mode 100644 fireblocks_client/paths/transactions_estimate_fee/post.py delete mode 100644 fireblocks_client/paths/transactions_estimate_fee/post.pyi delete mode 100644 fireblocks_client/paths/transactions_external_tx_id_external_tx_id_/__init__.py delete mode 100644 fireblocks_client/paths/transactions_external_tx_id_external_tx_id_/get.py delete mode 100644 fireblocks_client/paths/transactions_external_tx_id_external_tx_id_/get.pyi delete mode 100644 fireblocks_client/paths/transactions_tx_id/__init__.py delete mode 100644 fireblocks_client/paths/transactions_tx_id/get.py delete mode 100644 fireblocks_client/paths/transactions_tx_id/get.pyi delete mode 100644 fireblocks_client/paths/transactions_tx_id_cancel/__init__.py delete mode 100644 fireblocks_client/paths/transactions_tx_id_cancel/post.py delete mode 100644 fireblocks_client/paths/transactions_tx_id_cancel/post.pyi delete mode 100644 fireblocks_client/paths/transactions_tx_id_drop/__init__.py delete mode 100644 fireblocks_client/paths/transactions_tx_id_drop/post.py delete mode 100644 fireblocks_client/paths/transactions_tx_id_drop/post.pyi delete mode 100644 fireblocks_client/paths/transactions_tx_id_freeze/__init__.py delete mode 100644 fireblocks_client/paths/transactions_tx_id_freeze/post.py delete mode 100644 fireblocks_client/paths/transactions_tx_id_freeze/post.pyi delete mode 100644 fireblocks_client/paths/transactions_tx_id_set_confirmation_threshold/__init__.py delete mode 100644 fireblocks_client/paths/transactions_tx_id_set_confirmation_threshold/post.py delete mode 100644 fireblocks_client/paths/transactions_tx_id_set_confirmation_threshold/post.pyi delete mode 100644 fireblocks_client/paths/transactions_tx_id_unfreeze/__init__.py delete mode 100644 fireblocks_client/paths/transactions_tx_id_unfreeze/post.py delete mode 100644 fireblocks_client/paths/transactions_tx_id_unfreeze/post.pyi delete mode 100644 fireblocks_client/paths/transactions_validate_address_asset_id_address/__init__.py delete mode 100644 fireblocks_client/paths/transactions_validate_address_asset_id_address/get.py delete mode 100644 fireblocks_client/paths/transactions_validate_address_asset_id_address/get.pyi delete mode 100644 fireblocks_client/paths/tx_hash_tx_hash_set_confirmation_threshold/__init__.py delete mode 100644 fireblocks_client/paths/tx_hash_tx_hash_set_confirmation_threshold/post.py delete mode 100644 fireblocks_client/paths/tx_hash_tx_hash_set_confirmation_threshold/post.pyi delete mode 100644 fireblocks_client/paths/users/__init__.py delete mode 100644 fireblocks_client/paths/users/get.py delete mode 100644 fireblocks_client/paths/users/get.pyi delete mode 100644 fireblocks_client/paths/users_groups/__init__.py delete mode 100644 fireblocks_client/paths/users_groups/get.py delete mode 100644 fireblocks_client/paths/users_groups/get.pyi delete mode 100644 fireblocks_client/paths/users_groups/post.py delete mode 100644 fireblocks_client/paths/users_groups/post.pyi delete mode 100644 fireblocks_client/paths/users_groups_group_id/__init__.py delete mode 100644 fireblocks_client/paths/users_groups_group_id/delete.py delete mode 100644 fireblocks_client/paths/users_groups_group_id/delete.pyi delete mode 100644 fireblocks_client/paths/users_groups_group_id/get.py delete mode 100644 fireblocks_client/paths/users_groups_group_id/get.pyi delete mode 100644 fireblocks_client/paths/users_groups_group_id/put.py delete mode 100644 fireblocks_client/paths/users_groups_group_id/put.pyi delete mode 100644 fireblocks_client/paths/vault_accounts/__init__.py delete mode 100644 fireblocks_client/paths/vault_accounts/get.py delete mode 100644 fireblocks_client/paths/vault_accounts/get.pyi delete mode 100644 fireblocks_client/paths/vault_accounts/post.py delete mode 100644 fireblocks_client/paths/vault_accounts/post.pyi delete mode 100644 fireblocks_client/paths/vault_accounts_paged/__init__.py delete mode 100644 fireblocks_client/paths/vault_accounts_paged/get.py delete mode 100644 fireblocks_client/paths/vault_accounts_paged/get.pyi delete mode 100644 fireblocks_client/paths/vault_accounts_vault_account_id/__init__.py delete mode 100644 fireblocks_client/paths/vault_accounts_vault_account_id/get.py delete mode 100644 fireblocks_client/paths/vault_accounts_vault_account_id/get.pyi delete mode 100644 fireblocks_client/paths/vault_accounts_vault_account_id/put.py delete mode 100644 fireblocks_client/paths/vault_accounts_vault_account_id/put.pyi delete mode 100644 fireblocks_client/paths/vault_accounts_vault_account_id_asset_id/__init__.py delete mode 100644 fireblocks_client/paths/vault_accounts_vault_account_id_asset_id/get.py delete mode 100644 fireblocks_client/paths/vault_accounts_vault_account_id_asset_id/get.pyi delete mode 100644 fireblocks_client/paths/vault_accounts_vault_account_id_asset_id/post.py delete mode 100644 fireblocks_client/paths/vault_accounts_vault_account_id_asset_id/post.pyi delete mode 100644 fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_activate/__init__.py delete mode 100644 fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_activate/post.py delete mode 100644 fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_activate/post.pyi delete mode 100644 fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses/__init__.py delete mode 100644 fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses/get.py delete mode 100644 fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses/get.pyi delete mode 100644 fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses/post.py delete mode 100644 fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses/post.pyi delete mode 100644 fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses_address_id/__init__.py delete mode 100644 fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses_address_id/put.py delete mode 100644 fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses_address_id/put.pyi delete mode 100644 fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses_address_id_create_legacy/__init__.py delete mode 100644 fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses_address_id_create_legacy/post.py delete mode 100644 fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses_address_id_create_legacy/post.pyi delete mode 100644 fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses_address_id_set_customer_ref_id/__init__.py delete mode 100644 fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses_address_id_set_customer_ref_id/post.py delete mode 100644 fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses_address_id_set_customer_ref_id/post.pyi delete mode 100644 fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_balance/__init__.py delete mode 100644 fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_balance/post.py delete mode 100644 fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_balance/post.pyi delete mode 100644 fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_change_address_index_public_key_info/__init__.py delete mode 100644 fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_change_address_index_public_key_info/get.py delete mode 100644 fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_change_address_index_public_key_info/get.pyi delete mode 100644 fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_max_spendable_amount/__init__.py delete mode 100644 fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_max_spendable_amount/get.py delete mode 100644 fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_max_spendable_amount/get.pyi delete mode 100644 fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_unspent_inputs/__init__.py delete mode 100644 fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_unspent_inputs/get.py delete mode 100644 fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_unspent_inputs/get.pyi delete mode 100644 fireblocks_client/paths/vault_accounts_vault_account_id_hide/__init__.py delete mode 100644 fireblocks_client/paths/vault_accounts_vault_account_id_hide/post.py delete mode 100644 fireblocks_client/paths/vault_accounts_vault_account_id_hide/post.pyi delete mode 100644 fireblocks_client/paths/vault_accounts_vault_account_id_set_auto_fuel/__init__.py delete mode 100644 fireblocks_client/paths/vault_accounts_vault_account_id_set_auto_fuel/post.py delete mode 100644 fireblocks_client/paths/vault_accounts_vault_account_id_set_auto_fuel/post.pyi delete mode 100644 fireblocks_client/paths/vault_accounts_vault_account_id_set_customer_ref_id/__init__.py delete mode 100644 fireblocks_client/paths/vault_accounts_vault_account_id_set_customer_ref_id/post.py delete mode 100644 fireblocks_client/paths/vault_accounts_vault_account_id_set_customer_ref_id/post.pyi delete mode 100644 fireblocks_client/paths/vault_accounts_vault_account_id_unhide/__init__.py delete mode 100644 fireblocks_client/paths/vault_accounts_vault_account_id_unhide/post.py delete mode 100644 fireblocks_client/paths/vault_accounts_vault_account_id_unhide/post.pyi delete mode 100644 fireblocks_client/paths/vault_asset_wallets/__init__.py delete mode 100644 fireblocks_client/paths/vault_asset_wallets/get.py delete mode 100644 fireblocks_client/paths/vault_asset_wallets/get.pyi delete mode 100644 fireblocks_client/paths/vault_assets/__init__.py delete mode 100644 fireblocks_client/paths/vault_assets/get.py delete mode 100644 fireblocks_client/paths/vault_assets/get.pyi delete mode 100644 fireblocks_client/paths/vault_assets_asset_id/__init__.py delete mode 100644 fireblocks_client/paths/vault_assets_asset_id/get.py delete mode 100644 fireblocks_client/paths/vault_assets_asset_id/get.pyi delete mode 100644 fireblocks_client/paths/vault_public_key_info_/__init__.py delete mode 100644 fireblocks_client/paths/vault_public_key_info_/get.py delete mode 100644 fireblocks_client/paths/vault_public_key_info_/get.pyi delete mode 100644 fireblocks_client/paths/webhooks_resend/__init__.py delete mode 100644 fireblocks_client/paths/webhooks_resend/post.py delete mode 100644 fireblocks_client/paths/webhooks_resend/post.pyi delete mode 100644 fireblocks_client/paths/webhooks_resend_tx_id/__init__.py delete mode 100644 fireblocks_client/paths/webhooks_resend_tx_id/post.py delete mode 100644 fireblocks_client/paths/webhooks_resend_tx_id/post.pyi rename test/test_models/__init__.py => fireblocks_client/py.typed (100%) delete mode 100644 fireblocks_client/schemas.py create mode 100644 pyproject.toml create mode 100644 test/test_abi_function.py create mode 100644 test/test_account.py create mode 100644 test/test_account_type.py create mode 100644 test/test_add_asset_to_external_wallet_request.py create mode 100644 test/test_add_asset_to_external_wallet_request_one_of.py create mode 100644 test/test_add_asset_to_external_wallet_request_one_of1.py create mode 100644 test/test_add_asset_to_external_wallet_request_one_of1_additional_info.py create mode 100644 test/test_add_asset_to_external_wallet_request_one_of1_additional_info_one_of.py create mode 100644 test/test_add_asset_to_external_wallet_request_one_of1_additional_info_one_of1.py create mode 100644 test/test_add_asset_to_external_wallet_request_one_of1_additional_info_one_of2.py create mode 100644 test/test_add_collateral_request_body.py create mode 100644 test/test_add_contract_asset_request.py create mode 100644 test/test_additional_info_dto.py create mode 100644 test/test_aml_registration_result.py create mode 100644 test/test_aml_screening_result.py create mode 100644 test/test_amount_aggregation_time_period_method.py create mode 100644 test/test_amount_and_chain_descriptor.py create mode 100644 test/test_amount_info.py create mode 100644 test/test_api_key.py create mode 100644 test/test_api_keys_paginated_response.py create mode 100644 test/test_api_user.py create mode 100644 test/test_api_user_api.py create mode 100644 test/test_asset_already_exist_http_error.py create mode 100644 test/test_asset_amount.py create mode 100644 test/test_asset_bad_request_error_response.py create mode 100644 test/test_asset_conflict_error_response.py create mode 100644 test/test_asset_does_not_exist_http_error.py create mode 100644 test/test_asset_forbidden_error_response.py create mode 100644 test/test_asset_internal_server_error_response.py create mode 100644 test/test_asset_metadata_dto.py create mode 100644 test/test_asset_not_found_error_response.py create mode 100644 test/test_asset_response.py create mode 100644 test/test_asset_response_metadata.py create mode 100644 test/test_asset_response_onchain.py create mode 100644 test/test_asset_type_response.py create mode 100644 test/test_asset_wallet.py create mode 100644 test/test_assets_api.py create mode 100644 test/test_audit_log_data.py create mode 100644 test/test_audit_logs_api.py create mode 100644 test/test_auditor_data.py create mode 100644 test/test_authorization_groups.py create mode 100644 test/test_authorization_info.py create mode 100644 test/test_block_info.py create mode 100644 test/test_blockchains_assets_api.py create mode 100644 test/test_cancel_transaction_response.py create mode 100644 test/test_chain_info_response_dto.py create mode 100644 test/test_collection_metadata_dto.py create mode 100644 test/test_collection_ownership_response.py create mode 100644 test/test_compliance_api.py create mode 100644 test/test_compliance_result.py create mode 100644 test/test_compliance_screening_configuration_api.py create mode 100644 test/test_compliance_screening_result.py create mode 100644 test/test_config_change_request_status.py create mode 100644 test/test_config_conversion_operation_snapshot.py create mode 100644 test/test_config_disbursement_operation_snapshot.py create mode 100644 test/test_config_operation.py create mode 100644 test/test_config_operation_snapshot.py create mode 100644 test/test_config_operation_status.py create mode 100644 test/test_config_transfer_operation_snapshot.py create mode 100644 test/test_console_user.py create mode 100644 test/test_console_user_api.py create mode 100644 test/test_contract_abi_response_dto.py create mode 100644 test/test_contract_attributes.py create mode 100644 test/test_contract_deploy_request.py create mode 100644 test/test_contract_deploy_response.py create mode 100644 test/test_contract_doc.py create mode 100644 test/test_contract_interactions_api.py create mode 100644 test/test_contract_metadata_dto.py create mode 100644 test/test_contract_template_dto.py create mode 100644 test/test_contract_templates_api.py create mode 100644 test/test_contract_upload_request.py create mode 100644 test/test_contracts_api.py create mode 100644 test/test_conversion_config_operation.py create mode 100644 test/test_conversion_operation_config_params.py create mode 100644 test/test_conversion_operation_execution.py create mode 100644 test/test_conversion_operation_execution_output.py create mode 100644 test/test_conversion_operation_execution_params.py create mode 100644 test/test_conversion_operation_execution_params_execution_params.py create mode 100644 test/test_conversion_operation_failure.py create mode 100644 test/test_conversion_operation_preview.py create mode 100644 test/test_conversion_operation_preview_output.py create mode 100644 test/test_conversion_operation_type.py create mode 100644 test/test_conversion_validation_failure.py create mode 100644 test/test_convert_assets_request.py create mode 100644 test/test_convert_assets_response.py create mode 100644 test/test_cosigner.py create mode 100644 test/test_cosigners_beta_api.py create mode 100644 test/test_cosigners_paginated_response.py create mode 100644 test/test_create_address_request.py create mode 100644 test/test_create_address_response.py create mode 100644 test/test_create_api_user.py create mode 100644 test/test_create_assets_bulk_request.py create mode 100644 test/test_create_assets_request.py create mode 100644 test/test_create_config_operation_request.py create mode 100644 test/test_create_connection_request.py create mode 100644 test/test_create_connection_response.py create mode 100644 test/test_create_console_user.py create mode 100644 test/test_create_contract_request.py create mode 100644 test/test_create_conversion_config_operation_request.py create mode 100644 test/test_create_disbursement_config_operation_request.py create mode 100644 test/test_create_internal_transfer_request.py create mode 100644 test/test_create_internal_wallet_asset_request.py create mode 100644 test/test_create_multiple_accounts_request.py create mode 100644 test/test_create_ncw_connection_request.py create mode 100644 test/test_create_network_id_request.py create mode 100644 test/test_create_payout_request.py create mode 100644 test/test_create_token_request_dto.py create mode 100644 test/test_create_token_request_dto_create_params.py create mode 100644 test/test_create_transaction_response.py create mode 100644 test/test_create_transfer_config_operation_request.py create mode 100644 test/test_create_user_group_response.py create mode 100644 test/test_create_vault_account_connection_request.py create mode 100644 test/test_create_vault_account_request.py create mode 100644 test/test_create_vault_asset_response.py create mode 100644 test/test_create_wallet_request.py create mode 100644 test/test_create_workflow_execution_request_params_inner.py create mode 100644 test/test_custom_routing_dest.py create mode 100644 test/test_default_network_routing_dest.py create mode 100644 test/test_delegation_dto.py create mode 100644 test/test_delegation_summary_dto.py create mode 100644 test/test_delete_network_connection_response.py create mode 100644 test/test_delete_network_id_response.py create mode 100644 test/test_deployed_contract_response_dto.py create mode 100644 test/test_deployed_contracts_api.py create mode 100644 test/test_deployed_contracts_paginated_response.py create mode 100644 test/test_deposit_funds_from_linked_dda_response.py create mode 100644 test/test_destination.py create mode 100644 test/test_destination_transfer_peer_path.py create mode 100644 test/test_destination_transfer_peer_path_response.py create mode 100644 test/test_disbursement_amount_instruction.py create mode 100644 test/test_disbursement_config_operation.py create mode 100644 test/test_disbursement_instruction.py create mode 100644 test/test_disbursement_instruction_output.py create mode 100644 test/test_disbursement_operation_config_params.py create mode 100644 test/test_disbursement_operation_execution.py create mode 100644 test/test_disbursement_operation_execution_output.py create mode 100644 test/test_disbursement_operation_execution_params.py create mode 100644 test/test_disbursement_operation_execution_params_execution_params.py create mode 100644 test/test_disbursement_operation_input.py create mode 100644 test/test_disbursement_operation_preview.py create mode 100644 test/test_disbursement_operation_preview_output.py create mode 100644 test/test_disbursement_operation_preview_output_instruction_set_inner.py create mode 100644 test/test_disbursement_operation_type.py create mode 100644 test/test_disbursement_percentage_instruction.py create mode 100644 test/test_disbursement_validation_failure.py create mode 100644 test/test_dispatch_payout_response.py create mode 100644 test/test_draft_response.py create mode 100644 test/test_draft_review_and_validation_response.py create mode 100644 test/test_drop_transaction_request.py create mode 100644 test/test_drop_transaction_response.py create mode 100644 test/test_edit_gas_station_configuration_response.py create mode 100644 test/test_error_response.py create mode 100644 test/test_error_response_error.py create mode 100644 test/test_error_schema.py create mode 100644 test/test_estimated_network_fee_response.py create mode 100644 test/test_estimated_transaction_fee_response.py create mode 100644 test/test_evm_token_create_params_dto.py create mode 100644 test/test_exchange_account.py create mode 100644 test/test_exchange_accounts_api.py create mode 100644 test/test_exchange_accounts_paged.py create mode 100644 test/test_exchange_accounts_paged_paging.py create mode 100644 test/test_exchange_asset.py create mode 100644 test/test_exchange_settlement_transactions_response.py create mode 100644 test/test_exchange_trading_account.py create mode 100644 test/test_exchange_type.py create mode 100644 test/test_execute_action_request.py create mode 100644 test/test_execute_action_response.py create mode 100644 test/test_execution_conversion_operation.py create mode 100644 test/test_execution_disbursement_operation.py create mode 100644 test/test_execution_operation_status.py create mode 100644 test/test_execution_screening_operation.py create mode 100644 test/test_execution_transfer_operation.py create mode 100644 test/test_external_wallet_asset.py create mode 100644 test/test_external_wallets_api.py create mode 100644 test/test_fee_info.py create mode 100644 test/test_fiat_account.py create mode 100644 test/test_fiat_account_type.py create mode 100644 test/test_fiat_accounts_api.py create mode 100644 test/test_fiat_asset.py create mode 100644 test/test_freeze_transaction_response.py create mode 100644 test/test_function_doc.py create mode 100644 test/test_funds.py create mode 100644 test/test_gas_station_configuration.py create mode 100644 test/test_gas_station_configuration_response.py create mode 100644 test/test_gas_station_properties_response.py create mode 100644 test/test_gas_stations_api.py create mode 100644 test/test_get_api_users_response.py create mode 100644 test/test_get_audit_logs_response.py create mode 100644 test/test_get_audit_logs_response_dto.py create mode 100644 test/test_get_connections_response.py create mode 100644 test/test_get_console_users_response.py create mode 100644 test/test_get_filter_parameter.py create mode 100644 test/test_get_max_spendable_amount_response.py create mode 100644 test/test_get_nfts_response.py create mode 100644 test/test_get_ota_status_response.py create mode 100644 test/test_get_ownership_tokens_response.py create mode 100644 test/test_get_transaction_operation.py create mode 100644 test/test_get_whitelist_ip_addresses_response.py create mode 100644 test/test_get_workspace_status_response.py create mode 100644 test/test_http_contract_does_not_exist_error.py create mode 100644 test/test_instruction_amount.py create mode 100644 test/test_internal_transfer_response.py create mode 100644 test/test_internal_wallets_api.py create mode 100644 test/test_job.py create mode 100644 test/test_job_created.py create mode 100644 test/test_job_management_api.py create mode 100644 test/test_lean_abi_function.py create mode 100644 test/test_lean_contract_dto.py create mode 100644 test/test_lean_deployed_contract_response_dto.py create mode 100644 test/test_list_owned_collections_response.py create mode 100644 test/test_list_owned_tokens_response.py create mode 100644 test/test_media_entity_response.py delete mode 100644 test/test_models/test_add_collateral_request_body.py delete mode 100644 test/test_models/test_aml_screening_result.py delete mode 100644 test/test_models/test_amount_aggregation_time_period_method.py delete mode 100644 test/test_models/test_amount_info.py delete mode 100644 test/test_models/test_asset_type_response.py delete mode 100644 test/test_models/test_asset_wallet.py delete mode 100644 test/test_models/test_authorization_groups.py delete mode 100644 test/test_models/test_authorization_info.py delete mode 100644 test/test_models/test_block_info.py delete mode 100644 test/test_models/test_cancel_transaction_response.py delete mode 100644 test/test_models/test_collection_ownership_response.py delete mode 100644 test/test_models/test_config_change_request_status.py delete mode 100644 test/test_models/test_create_address_response.py delete mode 100644 test/test_models/test_create_connection_request.py delete mode 100644 test/test_models/test_create_connection_response.py delete mode 100644 test/test_models/test_create_internal_transfer_request.py delete mode 100644 test/test_models/test_create_payout_request.py delete mode 100644 test/test_models/test_create_transaction_response.py delete mode 100644 test/test_models/test_create_users_group_response.py delete mode 100644 test/test_models/test_create_vault_asset_response.py delete mode 100644 test/test_models/test_custom_crypto_routing_dest.py delete mode 100644 test/test_models/test_custom_fiat_routing_dest.py delete mode 100644 test/test_models/test_default_network_routing_dest.py delete mode 100644 test/test_models/test_destination_transfer_peer_path.py delete mode 100644 test/test_models/test_destination_transfer_peer_path_response.py delete mode 100644 test/test_models/test_dispatch_payout_response.py delete mode 100644 test/test_models/test_draft_response.py delete mode 100644 test/test_models/test_draft_review_and_validation_response.py delete mode 100644 test/test_models/test_drop_transaction_request.py delete mode 100644 test/test_models/test_drop_transaction_response.py delete mode 100644 test/test_models/test_error.py delete mode 100644 test/test_models/test_error_response.py delete mode 100644 test/test_models/test_estimated_network_fee_response.py delete mode 100644 test/test_models/test_estimated_transaction_fee_response.py delete mode 100644 test/test_models/test_exchange_account.py delete mode 100644 test/test_models/test_exchange_asset.py delete mode 100644 test/test_models/test_exchange_trading_account.py delete mode 100644 test/test_models/test_exchange_type.py delete mode 100644 test/test_models/test_external_wallet_asset.py delete mode 100644 test/test_models/test_fee_info.py delete mode 100644 test/test_models/test_fiat_account.py delete mode 100644 test/test_models/test_fiat_account_type.py delete mode 100644 test/test_models/test_fiat_asset.py delete mode 100644 test/test_models/test_freeze_transaction_response.py delete mode 100644 test/test_models/test_gas_station_configuration.py delete mode 100644 test/test_models/test_gas_station_properties_response.py delete mode 100644 test/test_models/test_get_connections_response.py delete mode 100644 test/test_models/test_get_settlement_response.py delete mode 100644 test/test_models/test_get_transaction_operation.py delete mode 100644 test/test_models/test_get_users_response.py delete mode 100644 test/test_models/test_instruction_amount.py delete mode 100644 test/test_models/test_media_entity_response.py delete mode 100644 test/test_models/test_ncw.py delete mode 100644 test/test_models/test_network_channel.py delete mode 100644 test/test_models/test_network_connection.py delete mode 100644 test/test_models/test_network_connection_response.py delete mode 100644 test/test_models/test_network_connection_routing_policy.py delete mode 100644 test/test_models/test_network_fee.py delete mode 100644 test/test_models/test_network_id.py delete mode 100644 test/test_models/test_network_id_response.py delete mode 100644 test/test_models/test_network_id_routing_policy.py delete mode 100644 test/test_models/test_network_record.py delete mode 100644 test/test_models/test_none_network_routing_dest.py delete mode 100644 test/test_models/test_one_time_address.py delete mode 100644 test/test_models/test_paginated_asset_wallet_response.py delete mode 100644 test/test_models/test_paging.py delete mode 100644 test/test_models/test_payee_account.py delete mode 100644 test/test_models/test_payee_account_response.py delete mode 100644 test/test_models/test_payee_account_type.py delete mode 100644 test/test_models/test_payment_account.py delete mode 100644 test/test_models/test_payment_account_response.py delete mode 100644 test/test_models/test_payment_account_type.py delete mode 100644 test/test_models/test_payout_init_method.py delete mode 100644 test/test_models/test_payout_instruction.py delete mode 100644 test/test_models/test_payout_instruction_response.py delete mode 100644 test/test_models/test_payout_instruction_state.py delete mode 100644 test/test_models/test_payout_response.py delete mode 100644 test/test_models/test_payout_state.py delete mode 100644 test/test_models/test_payout_status.py delete mode 100644 test/test_models/test_policy_and_validation_response.py delete mode 100644 test/test_models/test_policy_check_result.py delete mode 100644 test/test_models/test_policy_metadata.py delete mode 100644 test/test_models/test_policy_response.py delete mode 100644 test/test_models/test_policy_rule.py delete mode 100644 test/test_models/test_policy_rule_check_result.py delete mode 100644 test/test_models/test_policy_rule_error.py delete mode 100644 test/test_models/test_policy_src_or_dest_id.py delete mode 100644 test/test_models/test_policy_src_or_dest_sub_type.py delete mode 100644 test/test_models/test_policy_src_or_dest_type.py delete mode 100644 test/test_models/test_policy_status.py delete mode 100644 test/test_models/test_policy_validation.py delete mode 100644 test/test_models/test_public_key_information.py delete mode 100644 test/test_models/test_publish_result.py delete mode 100644 test/test_models/test_remove_collateral_request_body.py delete mode 100644 test/test_models/test_request_options.py delete mode 100644 test/test_models/test_resend_webhooks_response.py delete mode 100644 test/test_models/test_respond_to_connection_request.py delete mode 100644 test/test_models/test_reward_info.py delete mode 100644 test/test_models/test_rewards_info.py delete mode 100644 test/test_models/test_session_dto.py delete mode 100644 test/test_models/test_session_metadata.py delete mode 100644 test/test_models/test_set_confirmations_threshold_request.py delete mode 100644 test/test_models/test_set_confirmations_threshold_response.py delete mode 100644 test/test_models/test_settlement_request_body.py delete mode 100644 test/test_models/test_settlement_response.py delete mode 100644 test/test_models/test_signed_message.py delete mode 100644 test/test_models/test_source_transfer_peer_path_response.py delete mode 100644 test/test_models/test_system_message_info.py delete mode 100644 test/test_models/test_term.py delete mode 100644 test/test_models/test_to_collateral_transaction.py delete mode 100644 test/test_models/test_to_exchange_transaction.py delete mode 100644 test/test_models/test_token_collection_response.py delete mode 100644 test/test_models/test_token_ownership_response.py delete mode 100644 test/test_models/test_token_response.py delete mode 100644 test/test_models/test_trading_account_type.py delete mode 100644 test/test_models/test_transaction.py delete mode 100644 test/test_models/test_transaction_fee.py delete mode 100644 test/test_models/test_transaction_operation.py delete mode 100644 test/test_models/test_transaction_request.py delete mode 100644 test/test_models/test_transaction_request_destination.py delete mode 100644 test/test_models/test_transaction_response.py delete mode 100644 test/test_models/test_transaction_response_destination.py delete mode 100644 test/test_models/test_transfer_peer_path.py delete mode 100644 test/test_models/test_travel_rule_address.py delete mode 100644 test/test_models/test_travel_rule_get_all_vasps_response.py delete mode 100644 test/test_models/test_travel_rule_issuer.py delete mode 100644 test/test_models/test_travel_rule_issuers.py delete mode 100644 test/test_models/test_travel_rule_ownership_proof.py delete mode 100644 test/test_models/test_travel_rule_pii_ivms.py delete mode 100644 test/test_models/test_travel_rule_transaction_blockchain_info.py delete mode 100644 test/test_models/test_travel_rule_update_vasp_details.py delete mode 100644 test/test_models/test_travel_rule_validate_full_transaction_request.py delete mode 100644 test/test_models/test_travel_rule_validate_transaction_request.py delete mode 100644 test/test_models/test_travel_rule_validate_transaction_response.py delete mode 100644 test/test_models/test_travel_rule_vasp.py delete mode 100644 test/test_models/test_unfreeze_transaction_response.py delete mode 100644 test/test_models/test_unmanaged_wallet.py delete mode 100644 test/test_models/test_unsigned_message.py delete mode 100644 test/test_models/test_unspent_input.py delete mode 100644 test/test_models/test_unspent_inputs_response.py delete mode 100644 test/test_models/test_update_token_ownership_status_dto.py delete mode 100644 test/test_models/test_user_group_create_request.py delete mode 100644 test/test_models/test_user_group_create_response.py delete mode 100644 test/test_models/test_user_group_update_request.py delete mode 100644 test/test_models/test_user_response.py delete mode 100644 test/test_models/test_users_group_response.py delete mode 100644 test/test_models/test_users_groups_response.py delete mode 100644 test/test_models/test_validate_address_response.py delete mode 100644 test/test_models/test_vault_account.py delete mode 100644 test/test_models/test_vault_accounts_paged_response.py delete mode 100644 test/test_models/test_vault_asset.py delete mode 100644 test/test_models/test_vault_wallet_address.py delete mode 100644 test/test_models/test_wallet_asset.py delete mode 100644 test/test_models/test_wallet_asset_additional_info.py delete mode 100644 test/test_models/test_xb_settlement_asset.py delete mode 100644 test/test_models/test_xb_settlement_asset_id.py delete mode 100644 test/test_models/test_xb_settlement_config_creation_request_body.py delete mode 100644 test/test_models/test_xb_settlement_config_creation_response.py delete mode 100644 test/test_models/test_xb_settlement_config_deletion_response.py delete mode 100644 test/test_models/test_xb_settlement_config_edit_request_body.py delete mode 100644 test/test_models/test_xb_settlement_config_edit_response.py delete mode 100644 test/test_models/test_xb_settlement_config_id.py delete mode 100644 test/test_models/test_xb_settlement_config_model.py delete mode 100644 test/test_models/test_xb_settlement_config_step.py delete mode 100644 test/test_models/test_xb_settlement_config_steps_record.py delete mode 100644 test/test_models/test_xb_settlement_conversion_slippage_basis_points.py delete mode 100644 test/test_models/test_xb_settlement_corridor_id.py delete mode 100644 test/test_models/test_xb_settlement_create_flow_request_body.py delete mode 100644 test/test_models/test_xb_settlement_create_flow_response.py delete mode 100644 test/test_models/test_xb_settlement_crypto_asset.py delete mode 100644 test/test_models/test_xb_settlement_fiat_asset.py delete mode 100644 test/test_models/test_xb_settlement_flow_execution_model.py delete mode 100644 test/test_models/test_xb_settlement_flow_execution_request_body.py delete mode 100644 test/test_models/test_xb_settlement_flow_execution_response.py delete mode 100644 test/test_models/test_xb_settlement_flow_execution_status.py delete mode 100644 test/test_models/test_xb_settlement_flow_execution_step.py delete mode 100644 test/test_models/test_xb_settlement_flow_execution_step_status.py delete mode 100644 test/test_models/test_xb_settlement_flow_preview_model.py delete mode 100644 test/test_models/test_xb_settlement_flow_selected_conversion_slippage_reason.py delete mode 100644 test/test_models/test_xb_settlement_flow_setup_step.py delete mode 100644 test/test_models/test_xb_settlement_flow_steps_execution_record.py delete mode 100644 test/test_models/test_xb_settlement_flow_steps_record.py delete mode 100644 test/test_models/test_xb_settlement_get_all_configs_response.py delete mode 100644 test/test_models/test_xb_settlement_get_config_response.py delete mode 100644 test/test_models/test_xb_settlement_get_flow_response.py delete mode 100644 test/test_models/test_xb_settlement_step_type.py create mode 100644 test/test_network_channel.py create mode 100644 test/test_network_connection.py create mode 100644 test/test_network_connection_response.py create mode 100644 test/test_network_connection_routing_policy_value.py create mode 100644 test/test_network_connection_status.py create mode 100644 test/test_network_connections_api.py create mode 100644 test/test_network_fee.py create mode 100644 test/test_network_id.py create mode 100644 test/test_network_id_response.py create mode 100644 test/test_network_id_routing_policy_value.py create mode 100644 test/test_network_record.py create mode 100644 test/test_nfts_api.py create mode 100644 test/test_none_network_routing_dest.py create mode 100644 test/test_not_found_exception.py create mode 100644 test/test_off_exchanges_api.py create mode 100644 test/test_one_time_address.py create mode 100644 test/test_one_time_address_account.py create mode 100644 test/test_operation_execution_failure.py create mode 100644 test/test_ota_beta_api.py create mode 100644 test/test_paginated_address_response.py create mode 100644 test/test_paginated_address_response_paging.py create mode 100644 test/test_paginated_asset_wallet_response.py create mode 100644 test/test_paginated_asset_wallet_response_paging.py create mode 100644 test/test_paging.py create mode 100644 test/test_parameter.py create mode 100644 test/test_parameter_with_value.py delete mode 100644 test/test_paths/__init__.py delete mode 100644 test/test_paths/test_audits/__init__.py delete mode 100644 test/test_paths/test_audits/test_get.py delete mode 100644 test/test_paths/test_connections/__init__.py delete mode 100644 test/test_paths/test_connections/test_get.py delete mode 100644 test/test_paths/test_connections_wc/__init__.py delete mode 100644 test/test_paths/test_connections_wc/test_post.py delete mode 100644 test/test_paths/test_connections_wc_id/__init__.py delete mode 100644 test/test_paths/test_connections_wc_id/test_delete.py delete mode 100644 test/test_paths/test_connections_wc_id/test_put.py delete mode 100644 test/test_paths/test_contracts/__init__.py delete mode 100644 test/test_paths/test_contracts/test_get.py delete mode 100644 test/test_paths/test_contracts/test_post.py delete mode 100644 test/test_paths/test_contracts_contract_id/__init__.py delete mode 100644 test/test_paths/test_contracts_contract_id/test_delete.py delete mode 100644 test/test_paths/test_contracts_contract_id/test_get.py delete mode 100644 test/test_paths/test_contracts_contract_id_asset_id/__init__.py delete mode 100644 test/test_paths/test_contracts_contract_id_asset_id/test_delete.py delete mode 100644 test/test_paths/test_contracts_contract_id_asset_id/test_get.py delete mode 100644 test/test_paths/test_contracts_contract_id_asset_id/test_post.py delete mode 100644 test/test_paths/test_estimate_network_fee/__init__.py delete mode 100644 test/test_paths/test_estimate_network_fee/test_get.py delete mode 100644 test/test_paths/test_exchange_accounts/__init__.py delete mode 100644 test/test_paths/test_exchange_accounts/test_get.py delete mode 100644 test/test_paths/test_exchange_accounts_exchange_account_id/__init__.py delete mode 100644 test/test_paths/test_exchange_accounts_exchange_account_id/test_get.py delete mode 100644 test/test_paths/test_exchange_accounts_exchange_account_id_asset_id/__init__.py delete mode 100644 test/test_paths/test_exchange_accounts_exchange_account_id_asset_id/test_get.py delete mode 100644 test/test_paths/test_exchange_accounts_exchange_account_id_convert/__init__.py delete mode 100644 test/test_paths/test_exchange_accounts_exchange_account_id_convert/test_post.py delete mode 100644 test/test_paths/test_exchange_accounts_exchange_account_id_internal_transfer/__init__.py delete mode 100644 test/test_paths/test_exchange_accounts_exchange_account_id_internal_transfer/test_post.py delete mode 100644 test/test_paths/test_external_wallets/__init__.py delete mode 100644 test/test_paths/test_external_wallets/test_get.py delete mode 100644 test/test_paths/test_external_wallets/test_post.py delete mode 100644 test/test_paths/test_external_wallets_wallet_id/__init__.py delete mode 100644 test/test_paths/test_external_wallets_wallet_id/test_delete.py delete mode 100644 test/test_paths/test_external_wallets_wallet_id/test_get.py delete mode 100644 test/test_paths/test_external_wallets_wallet_id_asset_id/__init__.py delete mode 100644 test/test_paths/test_external_wallets_wallet_id_asset_id/test_delete.py delete mode 100644 test/test_paths/test_external_wallets_wallet_id_asset_id/test_get.py delete mode 100644 test/test_paths/test_external_wallets_wallet_id_asset_id/test_post.py delete mode 100644 test/test_paths/test_external_wallets_wallet_id_set_customer_ref_id/__init__.py delete mode 100644 test/test_paths/test_external_wallets_wallet_id_set_customer_ref_id/test_post.py delete mode 100644 test/test_paths/test_fiat_accounts/__init__.py delete mode 100644 test/test_paths/test_fiat_accounts/test_get.py delete mode 100644 test/test_paths/test_fiat_accounts_account_id/__init__.py delete mode 100644 test/test_paths/test_fiat_accounts_account_id/test_get.py delete mode 100644 test/test_paths/test_fiat_accounts_account_id_deposit_from_linked_dda/__init__.py delete mode 100644 test/test_paths/test_fiat_accounts_account_id_deposit_from_linked_dda/test_post.py delete mode 100644 test/test_paths/test_fiat_accounts_account_id_redeem_to_linked_dda/__init__.py delete mode 100644 test/test_paths/test_fiat_accounts_account_id_redeem_to_linked_dda/test_post.py delete mode 100644 test/test_paths/test_gas_station/__init__.py delete mode 100644 test/test_paths/test_gas_station/test_get.py delete mode 100644 test/test_paths/test_gas_station_asset_id/__init__.py delete mode 100644 test/test_paths/test_gas_station_asset_id/test_get.py delete mode 100644 test/test_paths/test_gas_station_configuration/__init__.py delete mode 100644 test/test_paths/test_gas_station_configuration/test_put.py delete mode 100644 test/test_paths/test_gas_station_configuration_asset_id/__init__.py delete mode 100644 test/test_paths/test_gas_station_configuration_asset_id/test_put.py delete mode 100644 test/test_paths/test_internal_wallets/__init__.py delete mode 100644 test/test_paths/test_internal_wallets/test_get.py delete mode 100644 test/test_paths/test_internal_wallets/test_post.py delete mode 100644 test/test_paths/test_internal_wallets_wallet_id/__init__.py delete mode 100644 test/test_paths/test_internal_wallets_wallet_id/test_delete.py delete mode 100644 test/test_paths/test_internal_wallets_wallet_id/test_get.py delete mode 100644 test/test_paths/test_internal_wallets_wallet_id_asset_id/__init__.py delete mode 100644 test/test_paths/test_internal_wallets_wallet_id_asset_id/test_delete.py delete mode 100644 test/test_paths/test_internal_wallets_wallet_id_asset_id/test_get.py delete mode 100644 test/test_paths/test_internal_wallets_wallet_id_asset_id/test_post.py delete mode 100644 test/test_paths/test_internal_wallets_wallet_id_set_customer_ref_id/__init__.py delete mode 100644 test/test_paths/test_internal_wallets_wallet_id_set_customer_ref_id/test_post.py delete mode 100644 test/test_paths/test_management_ota/__init__.py delete mode 100644 test/test_paths/test_management_ota/test_get.py delete mode 100644 test/test_paths/test_management_ota/test_post.py delete mode 100644 test/test_paths/test_network_connections/__init__.py delete mode 100644 test/test_paths/test_network_connections/test_get.py delete mode 100644 test/test_paths/test_network_connections/test_post.py delete mode 100644 test/test_paths/test_network_connections_connection_id/__init__.py delete mode 100644 test/test_paths/test_network_connections_connection_id/test_delete.py delete mode 100644 test/test_paths/test_network_connections_connection_id/test_get.py delete mode 100644 test/test_paths/test_network_connections_connection_id_is_third_party_routing_asset_type/__init__.py delete mode 100644 test/test_paths/test_network_connections_connection_id_is_third_party_routing_asset_type/test_get.py delete mode 100644 test/test_paths/test_network_connections_connection_id_set_routing_policy/__init__.py delete mode 100644 test/test_paths/test_network_connections_connection_id_set_routing_policy/test_patch.py delete mode 100644 test/test_paths/test_network_ids/__init__.py delete mode 100644 test/test_paths/test_network_ids/test_get.py delete mode 100644 test/test_paths/test_network_ids/test_post.py delete mode 100644 test/test_paths/test_network_ids_network_id/__init__.py delete mode 100644 test/test_paths/test_network_ids_network_id/test_delete.py delete mode 100644 test/test_paths/test_network_ids_network_id/test_get.py delete mode 100644 test/test_paths/test_network_ids_network_id_set_discoverability/__init__.py delete mode 100644 test/test_paths/test_network_ids_network_id_set_discoverability/test_patch.py delete mode 100644 test/test_paths/test_network_ids_network_id_set_name/__init__.py delete mode 100644 test/test_paths/test_network_ids_network_id_set_name/test_patch.py delete mode 100644 test/test_paths/test_network_ids_network_id_set_routing_policy/__init__.py delete mode 100644 test/test_paths/test_network_ids_network_id_set_routing_policy/test_patch.py delete mode 100644 test/test_paths/test_nfts_ownership_collections/__init__.py delete mode 100644 test/test_paths/test_nfts_ownership_collections/test_get.py delete mode 100644 test/test_paths/test_nfts_ownership_tokens/__init__.py delete mode 100644 test/test_paths/test_nfts_ownership_tokens/test_get.py delete mode 100644 test/test_paths/test_nfts_ownership_tokens/test_put.py delete mode 100644 test/test_paths/test_nfts_ownership_tokens_id_status/__init__.py delete mode 100644 test/test_paths/test_nfts_ownership_tokens_id_status/test_put.py delete mode 100644 test/test_paths/test_nfts_tokens/__init__.py delete mode 100644 test/test_paths/test_nfts_tokens/test_get.py delete mode 100644 test/test_paths/test_nfts_tokens_id/__init__.py delete mode 100644 test/test_paths/test_nfts_tokens_id/test_get.py delete mode 100644 test/test_paths/test_nfts_tokens_id/test_put.py delete mode 100644 test/test_paths/test_off_exchange_add/__init__.py delete mode 100644 test/test_paths/test_off_exchange_add/test_post.py delete mode 100644 test/test_paths/test_off_exchange_collateral_accounts_main_exchange_account_id/__init__.py delete mode 100644 test/test_paths/test_off_exchange_collateral_accounts_main_exchange_account_id/test_get.py delete mode 100644 test/test_paths/test_off_exchange_remove/__init__.py delete mode 100644 test/test_paths/test_off_exchange_remove/test_post.py delete mode 100644 test/test_paths/test_off_exchange_settlements_trader/__init__.py delete mode 100644 test/test_paths/test_off_exchange_settlements_trader/test_post.py delete mode 100644 test/test_paths/test_off_exchange_settlements_transactions/__init__.py delete mode 100644 test/test_paths/test_off_exchange_settlements_transactions/test_get.py delete mode 100644 test/test_paths/test_payments_payout/__init__.py delete mode 100644 test/test_paths/test_payments_payout/test_post.py delete mode 100644 test/test_paths/test_payments_payout_payout_id/__init__.py delete mode 100644 test/test_paths/test_payments_payout_payout_id/test_get.py delete mode 100644 test/test_paths/test_payments_payout_payout_id_actions_execute/__init__.py delete mode 100644 test/test_paths/test_payments_payout_payout_id_actions_execute/test_post.py delete mode 100644 test/test_paths/test_payments_xb_settlements_configs/__init__.py delete mode 100644 test/test_paths/test_payments_xb_settlements_configs/test_get.py delete mode 100644 test/test_paths/test_payments_xb_settlements_configs/test_post.py delete mode 100644 test/test_paths/test_payments_xb_settlements_configs_config_id/__init__.py delete mode 100644 test/test_paths/test_payments_xb_settlements_configs_config_id/test_delete.py delete mode 100644 test/test_paths/test_payments_xb_settlements_configs_config_id/test_get.py delete mode 100644 test/test_paths/test_payments_xb_settlements_configs_config_id/test_put.py delete mode 100644 test/test_paths/test_payments_xb_settlements_flows/__init__.py delete mode 100644 test/test_paths/test_payments_xb_settlements_flows/test_post.py delete mode 100644 test/test_paths/test_payments_xb_settlements_flows_flow_id/__init__.py delete mode 100644 test/test_paths/test_payments_xb_settlements_flows_flow_id/test_get.py delete mode 100644 test/test_paths/test_payments_xb_settlements_flows_flow_id_actions_execute/__init__.py delete mode 100644 test/test_paths/test_payments_xb_settlements_flows_flow_id_actions_execute/test_post.py delete mode 100644 test/test_paths/test_screeening_travel_rule_vasp_update/__init__.py delete mode 100644 test/test_paths/test_screeening_travel_rule_vasp_update/test_put.py delete mode 100644 test/test_paths/test_screening_travel_rule_transaction_validate/__init__.py delete mode 100644 test/test_paths/test_screening_travel_rule_transaction_validate/test_post.py delete mode 100644 test/test_paths/test_screening_travel_rule_transaction_validate_full/__init__.py delete mode 100644 test/test_paths/test_screening_travel_rule_transaction_validate_full/test_post.py delete mode 100644 test/test_paths/test_screening_travel_rule_vasp/__init__.py delete mode 100644 test/test_paths/test_screening_travel_rule_vasp/test_get.py delete mode 100644 test/test_paths/test_screening_travel_rule_vasp_did/__init__.py delete mode 100644 test/test_paths/test_screening_travel_rule_vasp_did/test_get.py delete mode 100644 test/test_paths/test_supported_assets/__init__.py delete mode 100644 test/test_paths/test_supported_assets/test_get.py delete mode 100644 test/test_paths/test_tap_active_policy/__init__.py delete mode 100644 test/test_paths/test_tap_active_policy/test_get.py delete mode 100644 test/test_paths/test_tap_draft/__init__.py delete mode 100644 test/test_paths/test_tap_draft/test_get.py delete mode 100644 test/test_paths/test_tap_draft/test_post.py delete mode 100644 test/test_paths/test_tap_draft/test_put.py delete mode 100644 test/test_paths/test_tap_publish/__init__.py delete mode 100644 test/test_paths/test_tap_publish/test_post.py delete mode 100644 test/test_paths/test_transactions/__init__.py delete mode 100644 test/test_paths/test_transactions/test_get.py delete mode 100644 test/test_paths/test_transactions/test_post.py delete mode 100644 test/test_paths/test_transactions_estimate_fee/__init__.py delete mode 100644 test/test_paths/test_transactions_estimate_fee/test_post.py delete mode 100644 test/test_paths/test_transactions_external_tx_id_external_tx_id_/__init__.py delete mode 100644 test/test_paths/test_transactions_external_tx_id_external_tx_id_/test_get.py delete mode 100644 test/test_paths/test_transactions_tx_id/__init__.py delete mode 100644 test/test_paths/test_transactions_tx_id/test_get.py delete mode 100644 test/test_paths/test_transactions_tx_id_cancel/__init__.py delete mode 100644 test/test_paths/test_transactions_tx_id_cancel/test_post.py delete mode 100644 test/test_paths/test_transactions_tx_id_drop/__init__.py delete mode 100644 test/test_paths/test_transactions_tx_id_drop/test_post.py delete mode 100644 test/test_paths/test_transactions_tx_id_freeze/__init__.py delete mode 100644 test/test_paths/test_transactions_tx_id_freeze/test_post.py delete mode 100644 test/test_paths/test_transactions_tx_id_set_confirmation_threshold/__init__.py delete mode 100644 test/test_paths/test_transactions_tx_id_set_confirmation_threshold/test_post.py delete mode 100644 test/test_paths/test_transactions_tx_id_unfreeze/__init__.py delete mode 100644 test/test_paths/test_transactions_tx_id_unfreeze/test_post.py delete mode 100644 test/test_paths/test_transactions_validate_address_asset_id_address/__init__.py delete mode 100644 test/test_paths/test_transactions_validate_address_asset_id_address/test_get.py delete mode 100644 test/test_paths/test_tx_hash_tx_hash_set_confirmation_threshold/__init__.py delete mode 100644 test/test_paths/test_tx_hash_tx_hash_set_confirmation_threshold/test_post.py delete mode 100644 test/test_paths/test_users/__init__.py delete mode 100644 test/test_paths/test_users/test_get.py delete mode 100644 test/test_paths/test_users_groups/__init__.py delete mode 100644 test/test_paths/test_users_groups/test_get.py delete mode 100644 test/test_paths/test_users_groups/test_post.py delete mode 100644 test/test_paths/test_users_groups_group_id/__init__.py delete mode 100644 test/test_paths/test_users_groups_group_id/test_delete.py delete mode 100644 test/test_paths/test_users_groups_group_id/test_get.py delete mode 100644 test/test_paths/test_users_groups_group_id/test_put.py delete mode 100644 test/test_paths/test_vault_accounts/__init__.py delete mode 100644 test/test_paths/test_vault_accounts/test_get.py delete mode 100644 test/test_paths/test_vault_accounts/test_post.py delete mode 100644 test/test_paths/test_vault_accounts_paged/__init__.py delete mode 100644 test/test_paths/test_vault_accounts_paged/test_get.py delete mode 100644 test/test_paths/test_vault_accounts_vault_account_id/__init__.py delete mode 100644 test/test_paths/test_vault_accounts_vault_account_id/test_get.py delete mode 100644 test/test_paths/test_vault_accounts_vault_account_id/test_put.py delete mode 100644 test/test_paths/test_vault_accounts_vault_account_id_asset_id/__init__.py delete mode 100644 test/test_paths/test_vault_accounts_vault_account_id_asset_id/test_get.py delete mode 100644 test/test_paths/test_vault_accounts_vault_account_id_asset_id/test_post.py delete mode 100644 test/test_paths/test_vault_accounts_vault_account_id_asset_id_activate/__init__.py delete mode 100644 test/test_paths/test_vault_accounts_vault_account_id_asset_id_activate/test_post.py delete mode 100644 test/test_paths/test_vault_accounts_vault_account_id_asset_id_addresses/__init__.py delete mode 100644 test/test_paths/test_vault_accounts_vault_account_id_asset_id_addresses/test_get.py delete mode 100644 test/test_paths/test_vault_accounts_vault_account_id_asset_id_addresses/test_post.py delete mode 100644 test/test_paths/test_vault_accounts_vault_account_id_asset_id_addresses_address_id/__init__.py delete mode 100644 test/test_paths/test_vault_accounts_vault_account_id_asset_id_addresses_address_id/test_put.py delete mode 100644 test/test_paths/test_vault_accounts_vault_account_id_asset_id_addresses_address_id_create_legacy/__init__.py delete mode 100644 test/test_paths/test_vault_accounts_vault_account_id_asset_id_addresses_address_id_create_legacy/test_post.py delete mode 100644 test/test_paths/test_vault_accounts_vault_account_id_asset_id_addresses_address_id_set_customer_ref_id/__init__.py delete mode 100644 test/test_paths/test_vault_accounts_vault_account_id_asset_id_addresses_address_id_set_customer_ref_id/test_post.py delete mode 100644 test/test_paths/test_vault_accounts_vault_account_id_asset_id_balance/__init__.py delete mode 100644 test/test_paths/test_vault_accounts_vault_account_id_asset_id_balance/test_post.py delete mode 100644 test/test_paths/test_vault_accounts_vault_account_id_asset_id_change_address_index_public_key_info/__init__.py delete mode 100644 test/test_paths/test_vault_accounts_vault_account_id_asset_id_change_address_index_public_key_info/test_get.py delete mode 100644 test/test_paths/test_vault_accounts_vault_account_id_asset_id_max_spendable_amount/__init__.py delete mode 100644 test/test_paths/test_vault_accounts_vault_account_id_asset_id_max_spendable_amount/test_get.py delete mode 100644 test/test_paths/test_vault_accounts_vault_account_id_asset_id_unspent_inputs/__init__.py delete mode 100644 test/test_paths/test_vault_accounts_vault_account_id_asset_id_unspent_inputs/test_get.py delete mode 100644 test/test_paths/test_vault_accounts_vault_account_id_hide/__init__.py delete mode 100644 test/test_paths/test_vault_accounts_vault_account_id_hide/test_post.py delete mode 100644 test/test_paths/test_vault_accounts_vault_account_id_set_auto_fuel/__init__.py delete mode 100644 test/test_paths/test_vault_accounts_vault_account_id_set_auto_fuel/test_post.py delete mode 100644 test/test_paths/test_vault_accounts_vault_account_id_set_customer_ref_id/__init__.py delete mode 100644 test/test_paths/test_vault_accounts_vault_account_id_set_customer_ref_id/test_post.py delete mode 100644 test/test_paths/test_vault_accounts_vault_account_id_unhide/__init__.py delete mode 100644 test/test_paths/test_vault_accounts_vault_account_id_unhide/test_post.py delete mode 100644 test/test_paths/test_vault_asset_wallets/__init__.py delete mode 100644 test/test_paths/test_vault_asset_wallets/test_get.py delete mode 100644 test/test_paths/test_vault_assets/__init__.py delete mode 100644 test/test_paths/test_vault_assets/test_get.py delete mode 100644 test/test_paths/test_vault_assets_asset_id/__init__.py delete mode 100644 test/test_paths/test_vault_assets_asset_id/test_get.py delete mode 100644 test/test_paths/test_vault_public_key_info_/__init__.py delete mode 100644 test/test_paths/test_vault_public_key_info_/test_get.py delete mode 100644 test/test_paths/test_webhooks_resend/__init__.py delete mode 100644 test/test_paths/test_webhooks_resend/test_post.py delete mode 100644 test/test_paths/test_webhooks_resend_tx_id/__init__.py delete mode 100644 test/test_paths/test_webhooks_resend_tx_id/test_post.py create mode 100644 test/test_payee_account.py create mode 100644 test/test_payee_account_response.py create mode 100644 test/test_payee_account_type.py create mode 100644 test/test_payment_account.py create mode 100644 test/test_payment_account_response.py create mode 100644 test/test_payment_account_type.py create mode 100644 test/test_payments_payout_api.py create mode 100644 test/test_payout_init_method.py create mode 100644 test/test_payout_instruction.py create mode 100644 test/test_payout_instruction_response.py create mode 100644 test/test_payout_instruction_state.py create mode 100644 test/test_payout_response.py create mode 100644 test/test_payout_state.py create mode 100644 test/test_payout_status.py create mode 100644 test/test_policy_and_validation_response.py create mode 100644 test/test_policy_check_result.py create mode 100644 test/test_policy_editor_beta_api.py create mode 100644 test/test_policy_metadata.py create mode 100644 test/test_policy_response.py create mode 100644 test/test_policy_rule.py create mode 100644 test/test_policy_rule_amount.py create mode 100644 test/test_policy_rule_amount_aggregation.py create mode 100644 test/test_policy_rule_authorization_groups.py create mode 100644 test/test_policy_rule_authorization_groups_groups_inner.py create mode 100644 test/test_policy_rule_check_result.py create mode 100644 test/test_policy_rule_designated_signers.py create mode 100644 test/test_policy_rule_dst.py create mode 100644 test/test_policy_rule_error.py create mode 100644 test/test_policy_rule_operators.py create mode 100644 test/test_policy_rule_raw_message_signing.py create mode 100644 test/test_policy_rule_raw_message_signing_derivation_path.py create mode 100644 test/test_policy_rule_src.py create mode 100644 test/test_policy_rules.py create mode 100644 test/test_policy_src_or_dest_sub_type.py create mode 100644 test/test_policy_src_or_dest_type.py create mode 100644 test/test_policy_status.py create mode 100644 test/test_policy_validation.py create mode 100644 test/test_pre_screening.py create mode 100644 test/test_provider_dto.py create mode 100644 test/test_public_key_information.py create mode 100644 test/test_publish_draft_request.py create mode 100644 test/test_publish_result.py create mode 100644 test/test_read_abi_function.py create mode 100644 test/test_read_call_function_dto.py create mode 100644 test/test_redeem_funds_to_linked_dda_response.py create mode 100644 test/test_register_new_asset_request.py create mode 100644 test/test_related_transaction_dto.py create mode 100644 test/test_remove_collateral_request_body.py create mode 100644 test/test_rename_cosigner.py create mode 100644 test/test_rename_vault_account_response.py create mode 100644 test/test_resend_transaction_webhooks_request.py create mode 100644 test/test_resend_webhooks_by_transaction_id_response.py create mode 100644 test/test_resend_webhooks_response.py create mode 100644 test/test_reset_device_api.py create mode 100644 test/test_respond_to_connection_request.py create mode 100644 test/test_reward_info.py create mode 100644 test/test_rewards_info.py create mode 100644 test/test_screening_configurations_request.py create mode 100644 test/test_screening_operation_execution.py create mode 100644 test/test_screening_operation_execution_output.py create mode 100644 test/test_screening_operation_failure.py create mode 100644 test/test_screening_operation_type.py create mode 100644 test/test_screening_policy_response.py create mode 100644 test/test_screening_provider_rules_configuration_response.py create mode 100644 test/test_screening_update_configurations_request.py create mode 100644 test/test_screening_validation_failure.py create mode 100644 test/test_screening_verdict.py create mode 100644 test/test_screening_verdict_matched_rule.py create mode 100644 test/test_session_dto.py create mode 100644 test/test_session_metadata.py create mode 100644 test/test_set_admin_quorum_threshold_request.py create mode 100644 test/test_set_admin_quorum_threshold_response.py create mode 100644 test/test_set_auto_fuel_request.py create mode 100644 test/test_set_confirmations_threshold_request.py create mode 100644 test/test_set_confirmations_threshold_response.py create mode 100644 test/test_set_customer_ref_id_for_address_request.py create mode 100644 test/test_set_customer_ref_id_request.py create mode 100644 test/test_set_network_id_discoverability_request.py create mode 100644 test/test_set_network_id_name_request.py create mode 100644 test/test_set_network_id_response.py create mode 100644 test/test_set_network_id_routing_policy_request.py create mode 100644 test/test_set_ota_status_request.py create mode 100644 test/test_set_ota_status_response.py create mode 100644 test/test_set_ota_status_response_one_of.py create mode 100644 test/test_set_routing_policy_request.py create mode 100644 test/test_set_routing_policy_response.py create mode 100644 test/test_settlement_request_body.py create mode 100644 test/test_settlement_response.py create mode 100644 test/test_signed_message.py create mode 100644 test/test_signed_message_signature.py create mode 100644 test/test_smart_transfer_api.py create mode 100644 test/test_smart_transfer_bad_request_response.py create mode 100644 test/test_smart_transfer_create_ticket.py create mode 100644 test/test_smart_transfer_create_ticket_term.py create mode 100644 test/test_smart_transfer_forbidden_response.py create mode 100644 test/test_smart_transfer_fund_term.py create mode 100644 test/test_smart_transfer_manually_fund_term.py create mode 100644 test/test_smart_transfer_not_found_response.py create mode 100644 test/test_smart_transfer_set_ticket_expiration.py create mode 100644 test/test_smart_transfer_set_ticket_external_id.py create mode 100644 test/test_smart_transfer_set_user_groups.py create mode 100644 test/test_smart_transfer_submit_ticket.py create mode 100644 test/test_smart_transfer_ticket.py create mode 100644 test/test_smart_transfer_ticket_filtered_response.py create mode 100644 test/test_smart_transfer_ticket_response.py create mode 100644 test/test_smart_transfer_ticket_term.py create mode 100644 test/test_smart_transfer_ticket_term_response.py create mode 100644 test/test_smart_transfer_update_ticket_term.py create mode 100644 test/test_smart_transfer_user_groups.py create mode 100644 test/test_smart_transfer_user_groups_response.py create mode 100644 test/test_solana_blockchain_data_dto.py create mode 100644 test/test_source_transfer_peer_path.py create mode 100644 test/test_source_transfer_peer_path_response.py create mode 100644 test/test_spam_ownership_response.py create mode 100644 test/test_spam_token_response.py create mode 100644 test/test_src_or_dest_attributes_inner.py create mode 100644 test/test_stake_request_dto.py create mode 100644 test/test_stake_response_dto.py create mode 100644 test/test_staking_beta_api.py create mode 100644 test/test_stellar_ripple_create_params_dto.py create mode 100644 test/test_system_message_info.py create mode 100644 test/test_task.py create mode 100644 test/test_templates_paginated_response.py create mode 100644 test/test_third_party_routing.py create mode 100644 test/test_to_collateral_transaction.py create mode 100644 test/test_to_exchange_transaction.py create mode 100644 test/test_token_collection_response.py create mode 100644 test/test_token_link_dto.py create mode 100644 test/test_token_link_dto_token_metadata.py create mode 100644 test/test_token_link_exists_http_error.py create mode 100644 test/test_token_link_request_dto.py create mode 100644 test/test_token_ownership_response.py create mode 100644 test/test_token_ownership_spam_update_payload.py create mode 100644 test/test_token_ownership_status_update_payload.py create mode 100644 test/test_token_response.py create mode 100644 test/test_tokenization_api.py create mode 100644 test/test_tokens_paginated_response.py create mode 100644 test/test_trading_account_type.py create mode 100644 test/test_transaction.py create mode 100644 test/test_transaction_fee.py create mode 100644 test/test_transaction_operation.py create mode 100644 test/test_transaction_request.py create mode 100644 test/test_transaction_request_amount.py create mode 100644 test/test_transaction_request_destination.py create mode 100644 test/test_transaction_request_fee.py create mode 100644 test/test_transaction_request_gas_limit.py create mode 100644 test/test_transaction_request_gas_price.py create mode 100644 test/test_transaction_request_network_fee.py create mode 100644 test/test_transaction_request_network_staking.py create mode 100644 test/test_transaction_request_priority_fee.py create mode 100644 test/test_transaction_response.py create mode 100644 test/test_transaction_response_contract_call_decoded_data.py create mode 100644 test/test_transaction_response_destination.py create mode 100644 test/test_transactions_api.py create mode 100644 test/test_transfer_config_operation.py create mode 100644 test/test_transfer_operation_config_params.py create mode 100644 test/test_transfer_operation_execution.py create mode 100644 test/test_transfer_operation_execution_output.py create mode 100644 test/test_transfer_operation_execution_params.py create mode 100644 test/test_transfer_operation_execution_params_execution_params.py create mode 100644 test/test_transfer_operation_failure.py create mode 100644 test/test_transfer_operation_failure_data.py create mode 100644 test/test_transfer_operation_preview.py create mode 100644 test/test_transfer_operation_preview_output.py create mode 100644 test/test_transfer_operation_type.py create mode 100644 test/test_transfer_peer_path_sub_type.py create mode 100644 test/test_transfer_peer_path_type.py create mode 100644 test/test_transfer_validation_failure.py create mode 100644 test/test_travel_rule_address.py create mode 100644 test/test_travel_rule_beta_api.py create mode 100644 test/test_travel_rule_create_transaction_request.py create mode 100644 test/test_travel_rule_get_all_vasps_response.py create mode 100644 test/test_travel_rule_issuer.py create mode 100644 test/test_travel_rule_issuers.py create mode 100644 test/test_travel_rule_ownership_proof.py create mode 100644 test/test_travel_rule_pii_ivms.py create mode 100644 test/test_travel_rule_policy_rule_response.py create mode 100644 test/test_travel_rule_transaction_blockchain_info.py create mode 100644 test/test_travel_rule_update_vasp_details.py create mode 100644 test/test_travel_rule_validate_full_transaction_request.py create mode 100644 test/test_travel_rule_validate_transaction_request.py create mode 100644 test/test_travel_rule_validate_transaction_response.py create mode 100644 test/test_travel_rule_vasp.py create mode 100644 test/test_unfreeze_transaction_response.py create mode 100644 test/test_unmanaged_wallet.py create mode 100644 test/test_unspent_input.py create mode 100644 test/test_unspent_inputs_response.py create mode 100644 test/test_unstake_request_dto.py create mode 100644 test/test_update_token_ownership_status_dto.py create mode 100644 test/test_update_vault_account_asset_address_request.py create mode 100644 test/test_update_vault_account_request.py create mode 100644 test/test_user_group_create_request.py create mode 100644 test/test_user_group_create_response.py create mode 100644 test/test_user_group_response.py create mode 100644 test/test_user_group_update_request.py create mode 100644 test/test_user_groups_beta_api.py create mode 100644 test/test_user_response.py create mode 100644 test/test_user_role.py create mode 100644 test/test_user_status.py create mode 100644 test/test_user_type.py create mode 100644 test/test_users_api.py create mode 100644 test/test_validate_address_response.py create mode 100644 test/test_validator_dto.py create mode 100644 test/test_vault_account.py create mode 100644 test/test_vault_accounts_paged_response.py create mode 100644 test/test_vault_accounts_paged_response_paging.py create mode 100644 test/test_vault_action_status.py create mode 100644 test/test_vault_asset.py create mode 100644 test/test_vault_wallet_address.py create mode 100644 test/test_vaults_api.py create mode 100644 test/test_vendor_dto.py create mode 100644 test/test_wallet_asset.py create mode 100644 test/test_wallet_asset_additional_info.py create mode 100644 test/test_web3_connections_api.py create mode 100644 test/test_webhooks_api.py create mode 100644 test/test_whitelist_ip_addresses_api.py create mode 100644 test/test_withdraw_request_dto.py create mode 100644 test/test_workflow_config_status.py create mode 100644 test/test_workflow_configuration_id.py create mode 100644 test/test_workflow_execution_operation.py create mode 100644 test/test_workspace_status_beta_api.py create mode 100644 test/test_write_abi_function.py create mode 100644 test/test_write_call_function_dto.py create mode 100644 test/test_write_call_function_response_dto.py diff --git a/.bumpversion.cfg b/.bumpversion.cfg deleted file mode 100644 index a0e024b4..00000000 --- a/.bumpversion.cfg +++ /dev/null @@ -1,4 +0,0 @@ -[bumpversion] -current_version = 0.0.2 -commit = false -tag = false diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/.github/ISSUE_TEMPLATE/bug_report.md similarity index 100% rename from .github/ISSUE_TEMPLATE/bug_report.md rename to .github/.github/ISSUE_TEMPLATE/bug_report.md diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/.github/ISSUE_TEMPLATE/feature_request.md similarity index 100% rename from .github/ISSUE_TEMPLATE/feature_request.md rename to .github/.github/ISSUE_TEMPLATE/feature_request.md diff --git a/.github/release-drafter.yml b/.github/.github/release-drafter.yml similarity index 100% rename from .github/release-drafter.yml rename to .github/.github/release-drafter.yml diff --git a/.github/workflows/pr-title.yml b/.github/.github/workflows/pr-title.yml similarity index 100% rename from .github/workflows/pr-title.yml rename to .github/.github/workflows/pr-title.yml diff --git a/.github/workflows/python-package.yml b/.github/.github/workflows/python-package.yml similarity index 100% rename from .github/workflows/python-package.yml rename to .github/.github/workflows/python-package.yml diff --git a/.github/workflows/python-publish.yml b/.github/.github/workflows/python-publish.yml similarity index 100% rename from .github/workflows/python-publish.yml rename to .github/.github/workflows/python-publish.yml diff --git a/.github/workflows/release-drafter.yml b/.github/.github/workflows/release-drafter.yml similarity index 100% rename from .github/workflows/release-drafter.yml rename to .github/.github/workflows/release-drafter.yml diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml new file mode 100644 index 00000000..7a606d5e --- /dev/null +++ b/.github/workflows/python.yml @@ -0,0 +1,38 @@ +# NOTE: This file is auto generated by OpenAPI Generator. +# URL: https://openapi-generator.tech +# +# ref: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python + +name: fireblocks_client Python package + +on: [push, pull_request] + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] + + steps: + - uses: actions/checkout@v3 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install flake8 pytest + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + if [ -f test-requirements.txt ]; then pip install -r test-requirements.txt; fi + - name: Lint with flake8 + run: | + # stop the build if there are Python syntax errors or undefined names + flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics + # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide + flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics + - name: Test with pytest + run: | + pytest diff --git a/.gitignore b/.gitignore index a62e8aba..43995bd4 100644 --- a/.gitignore +++ b/.gitignore @@ -33,7 +33,6 @@ var/ # Installer logs pip-log.txt pip-delete-this-directory.txt -dev-requirements.txt.log # Unit test / coverage reports htmlcov/ diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b3575559..7af2f286 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,6 +1,31 @@ -include: - - project: 'fireblocks/shell/common/templates/ci-infra' - file: - - 'pip-package-ci.yml' -variables: - COVERAGE_PERCENTAGE: 50 \ No newline at end of file +# NOTE: This file is auto generated by OpenAPI Generator. +# URL: https://openapi-generator.tech +# +# ref: https://docs.gitlab.com/ee/ci/README.html +# ref: https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Python.gitlab-ci.yml + +stages: + - test + +.pytest: + stage: test + script: + - pip install -r requirements.txt + - pip install -r test-requirements.txt + - pytest --cov=fireblocks_client + +pytest-3.7: + extends: .pytest + image: python:3.7-alpine +pytest-3.8: + extends: .pytest + image: python:3.8-alpine +pytest-3.9: + extends: .pytest + image: python:3.9-alpine +pytest-3.10: + extends: .pytest + image: python:3.10-alpine +pytest-3.11: + extends: .pytest + image: python:3.11-alpine diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 0487c50a..d9536caa 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -1,774 +1,1409 @@ +.github/workflows/python.yml .gitignore .gitlab-ci.yml .openapi-generator-ignore .travis.yml README.md -docs/apis/tags/AuditLogsApi.md -docs/apis/tags/BlockchainsAssetsApi.md -docs/apis/tags/ContractsApi.md -docs/apis/tags/ExchangeAccountsApi.md -docs/apis/tags/ExternalWalletsApi.md -docs/apis/tags/FiatAccountsApi.md -docs/apis/tags/GasStationsApi.md -docs/apis/tags/InternalWalletsApi.md -docs/apis/tags/NFTsBetaApi.md -docs/apis/tags/NetworkConnectionsApi.md -docs/apis/tags/OffExchangesApi.md -docs/apis/tags/PaymentsCrossBorderSettlementApi.md -docs/apis/tags/PaymentsPayoutApi.md -docs/apis/tags/PolicyEditorBetaApi.md -docs/apis/tags/TransactionsApi.md -docs/apis/tags/TravelRuleBetaApi.md -docs/apis/tags/UsersApi.md -docs/apis/tags/VaultsApi.md -docs/apis/tags/Web3ConnectionsApi.md -docs/apis/tags/WebhooksApi.md -docs/models/AddCollateralRequestBody.md -docs/models/AmlScreeningResult.md -docs/models/AmountAggregationTimePeriodMethod.md -docs/models/AmountInfo.md -docs/models/AssetTypeResponse.md -docs/models/AssetWallet.md -docs/models/AuthorizationGroups.md -docs/models/AuthorizationInfo.md -docs/models/BlockInfo.md -docs/models/CancelTransactionResponse.md -docs/models/CollectionOwnershipResponse.md -docs/models/ConfigChangeRequestStatus.md -docs/models/CreateAddressResponse.md -docs/models/CreateConnectionRequest.md -docs/models/CreateConnectionResponse.md -docs/models/CreateInternalTransferRequest.md -docs/models/CreatePayoutRequest.md -docs/models/CreateTransactionResponse.md -docs/models/CreateVaultAssetResponse.md -docs/models/CustomCryptoRoutingDest.md -docs/models/CustomFiatRoutingDest.md -docs/models/DefaultNetworkRoutingDest.md -docs/models/DestinationTransferPeerPath.md -docs/models/DestinationTransferPeerPathResponse.md -docs/models/DispatchPayoutResponse.md -docs/models/DraftResponse.md -docs/models/DraftReviewAndValidationResponse.md -docs/models/DropTransactionRequest.md -docs/models/DropTransactionResponse.md -docs/models/Error.md -docs/models/ErrorResponse.md -docs/models/EstimatedNetworkFeeResponse.md -docs/models/EstimatedTransactionFeeResponse.md -docs/models/ExchangeAccount.md -docs/models/ExchangeAsset.md -docs/models/ExchangeTradingAccount.md -docs/models/ExchangeType.md -docs/models/ExternalWalletAsset.md -docs/models/FeeInfo.md -docs/models/FiatAccount.md -docs/models/FiatAccountType.md -docs/models/FiatAsset.md -docs/models/FreezeTransactionResponse.md -docs/models/GasStationConfiguration.md -docs/models/GasStationPropertiesResponse.md -docs/models/GetConnectionsResponse.md -docs/models/GetSettlementResponse.md -docs/models/GetTransactionOperation.md -docs/models/GetUsersResponse.md -docs/models/InstructionAmount.md -docs/models/MediaEntityResponse.md -docs/models/NetworkChannel.md -docs/models/NetworkConnection.md -docs/models/NetworkConnectionResponse.md -docs/models/NetworkConnectionRoutingPolicy.md -docs/models/NetworkFee.md -docs/models/NetworkId.md -docs/models/NetworkIdResponse.md -docs/models/NetworkIdRoutingPolicy.md -docs/models/NetworkRecord.md -docs/models/NoneNetworkRoutingDest.md -docs/models/OneTimeAddress.md -docs/models/PaginatedAssetWalletResponse.md -docs/models/Paging.md -docs/models/PayeeAccount.md -docs/models/PayeeAccountResponse.md -docs/models/PayeeAccountType.md -docs/models/PaymentAccount.md -docs/models/PaymentAccountResponse.md -docs/models/PaymentAccountType.md -docs/models/PayoutInitMethod.md -docs/models/PayoutInstruction.md -docs/models/PayoutInstructionResponse.md -docs/models/PayoutInstructionState.md -docs/models/PayoutResponse.md -docs/models/PayoutState.md -docs/models/PayoutStatus.md -docs/models/PolicyAndValidationResponse.md -docs/models/PolicyCheckResult.md -docs/models/PolicyMetadata.md -docs/models/PolicyResponse.md -docs/models/PolicyRule.md -docs/models/PolicyRuleCheckResult.md -docs/models/PolicyRuleError.md -docs/models/PolicySrcOrDestId.md -docs/models/PolicySrcOrDestSubType.md -docs/models/PolicySrcOrDestType.md -docs/models/PolicyStatus.md -docs/models/PolicyValidation.md -docs/models/PublicKeyInformation.md -docs/models/PublishResult.md -docs/models/RemoveCollateralRequestBody.md -docs/models/ResendWebhooksResponse.md -docs/models/RespondToConnectionRequest.md -docs/models/RewardInfo.md -docs/models/RewardsInfo.md -docs/models/SessionDTO.md -docs/models/SessionMetadata.md -docs/models/SetConfirmationsThresholdRequest.md -docs/models/SetConfirmationsThresholdResponse.md -docs/models/SettlementRequestBody.md -docs/models/SettlementResponse.md -docs/models/SignedMessage.md -docs/models/SourceTransferPeerPathResponse.md -docs/models/SystemMessageInfo.md -docs/models/Term.md -docs/models/ToCollateralTransaction.md -docs/models/ToExchangeTransaction.md -docs/models/TokenCollectionResponse.md -docs/models/TokenOwnershipResponse.md -docs/models/TokenResponse.md -docs/models/TradingAccountType.md -docs/models/Transaction.md -docs/models/TransactionFee.md -docs/models/TransactionOperation.md -docs/models/TransactionRequest.md -docs/models/TransactionRequestDestination.md -docs/models/TransactionResponse.md -docs/models/TransactionResponseDestination.md -docs/models/TransferPeerPath.md -docs/models/TravelRuleAddress.md -docs/models/TravelRuleGetAllVASPsResponse.md -docs/models/TravelRuleIssuer.md -docs/models/TravelRuleIssuers.md -docs/models/TravelRuleOwnershipProof.md -docs/models/TravelRulePiiIVMS.md -docs/models/TravelRuleTransactionBlockchainInfo.md -docs/models/TravelRuleUpdateVASPDetails.md -docs/models/TravelRuleVASP.md -docs/models/TravelRuleValidateFullTransactionRequest.md -docs/models/TravelRuleValidateTransactionRequest.md -docs/models/TravelRuleValidateTransactionResponse.md -docs/models/UnfreezeTransactionResponse.md -docs/models/UnmanagedWallet.md -docs/models/UnsignedMessage.md -docs/models/UnspentInput.md -docs/models/UnspentInputsResponse.md -docs/models/UpdateTokenOwnershipStatusDto.md -docs/models/UserResponse.md -docs/models/ValidateAddressResponse.md -docs/models/VaultAccount.md -docs/models/VaultAccountsPagedResponse.md -docs/models/VaultAsset.md -docs/models/VaultWalletAddress.md -docs/models/WalletAsset.md -docs/models/WalletAssetAdditionalInfo.md -docs/models/XBSettlementAsset.md -docs/models/XBSettlementAssetID.md -docs/models/XBSettlementConfigCreationRequestBody.md -docs/models/XBSettlementConfigCreationResponse.md -docs/models/XBSettlementConfigDeletionResponse.md -docs/models/XBSettlementConfigEditRequestBody.md -docs/models/XBSettlementConfigEditResponse.md -docs/models/XBSettlementConfigId.md -docs/models/XBSettlementConfigModel.md -docs/models/XBSettlementConfigStep.md -docs/models/XBSettlementConfigStepsRecord.md -docs/models/XBSettlementConversionSlippageBasisPoints.md -docs/models/XBSettlementCorridorId.md -docs/models/XBSettlementCreateFlowRequestBody.md -docs/models/XBSettlementCreateFlowResponse.md -docs/models/XBSettlementCryptoAsset.md -docs/models/XBSettlementFiatAsset.md -docs/models/XBSettlementFlowExecutionModel.md -docs/models/XBSettlementFlowExecutionRequestBody.md -docs/models/XBSettlementFlowExecutionResponse.md -docs/models/XBSettlementFlowExecutionStatus.md -docs/models/XBSettlementFlowExecutionStep.md -docs/models/XBSettlementFlowExecutionStepStatus.md -docs/models/XBSettlementFlowPreviewModel.md -docs/models/XBSettlementFlowSelectedConversionSlippageReason.md -docs/models/XBSettlementFlowSetupStep.md -docs/models/XBSettlementFlowStepsExecutionRecord.md -docs/models/XBSettlementFlowStepsRecord.md -docs/models/XBSettlementGetAllConfigsResponse.md -docs/models/XBSettlementGetConfigResponse.md -docs/models/XBSettlementGetFlowResponse.md -docs/models/XBSettlementStepType.md +docs/APIUser.md +docs/AbiFunction.md +docs/Account.md +docs/AccountType.md +docs/AddAssetToExternalWalletRequest.md +docs/AddAssetToExternalWalletRequestOneOf.md +docs/AddAssetToExternalWalletRequestOneOf1.md +docs/AddAssetToExternalWalletRequestOneOf1AdditionalInfo.md +docs/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf.md +docs/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1.md +docs/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2.md +docs/AddCollateralRequestBody.md +docs/AddContractAssetRequest.md +docs/AdditionalInfoDto.md +docs/AmlRegistrationResult.md +docs/AmlScreeningResult.md +docs/AmountAggregationTimePeriodMethod.md +docs/AmountAndChainDescriptor.md +docs/AmountInfo.md +docs/ApiKey.md +docs/ApiKeysPaginatedResponse.md +docs/ApiUserApi.md +docs/AssetAlreadyExistHttpError.md +docs/AssetAmount.md +docs/AssetBadRequestErrorResponse.md +docs/AssetConflictErrorResponse.md +docs/AssetDoesNotExistHttpError.md +docs/AssetForbiddenErrorResponse.md +docs/AssetInternalServerErrorResponse.md +docs/AssetMetadataDto.md +docs/AssetNotFoundErrorResponse.md +docs/AssetResponse.md +docs/AssetResponseMetadata.md +docs/AssetResponseOnchain.md +docs/AssetTypeResponse.md +docs/AssetWallet.md +docs/AssetsApi.md +docs/AuditLogData.md +docs/AuditLogsApi.md +docs/AuditorData.md +docs/AuthorizationGroups.md +docs/AuthorizationInfo.md +docs/BlockInfo.md +docs/BlockchainsAssetsApi.md +docs/CancelTransactionResponse.md +docs/ChainInfoResponseDto.md +docs/CollectionMetadataDto.md +docs/CollectionOwnershipResponse.md +docs/ComplianceApi.md +docs/ComplianceResult.md +docs/ComplianceScreeningConfigurationApi.md +docs/ComplianceScreeningResult.md +docs/ConfigChangeRequestStatus.md +docs/ConfigConversionOperationSnapshot.md +docs/ConfigDisbursementOperationSnapshot.md +docs/ConfigOperation.md +docs/ConfigOperationSnapshot.md +docs/ConfigOperationStatus.md +docs/ConfigTransferOperationSnapshot.md +docs/ConsoleUser.md +docs/ConsoleUserApi.md +docs/ContractAbiResponseDto.md +docs/ContractAttributes.md +docs/ContractDeployRequest.md +docs/ContractDeployResponse.md +docs/ContractDoc.md +docs/ContractInteractionsApi.md +docs/ContractMetadataDto.md +docs/ContractTemplateDto.md +docs/ContractTemplatesApi.md +docs/ContractUploadRequest.md +docs/ContractsApi.md +docs/ConversionConfigOperation.md +docs/ConversionOperationConfigParams.md +docs/ConversionOperationExecution.md +docs/ConversionOperationExecutionOutput.md +docs/ConversionOperationExecutionParams.md +docs/ConversionOperationExecutionParamsExecutionParams.md +docs/ConversionOperationFailure.md +docs/ConversionOperationPreview.md +docs/ConversionOperationPreviewOutput.md +docs/ConversionOperationType.md +docs/ConversionValidationFailure.md +docs/ConvertAssetsRequest.md +docs/ConvertAssetsResponse.md +docs/Cosigner.md +docs/CosignersBetaApi.md +docs/CosignersPaginatedResponse.md +docs/CreateAPIUser.md +docs/CreateAddressRequest.md +docs/CreateAddressResponse.md +docs/CreateAssetsBulkRequest.md +docs/CreateAssetsRequest.md +docs/CreateConfigOperationRequest.md +docs/CreateConnectionRequest.md +docs/CreateConnectionResponse.md +docs/CreateConsoleUser.md +docs/CreateContractRequest.md +docs/CreateConversionConfigOperationRequest.md +docs/CreateDisbursementConfigOperationRequest.md +docs/CreateInternalTransferRequest.md +docs/CreateInternalWalletAssetRequest.md +docs/CreateMultipleAccountsRequest.md +docs/CreateNcwConnectionRequest.md +docs/CreateNetworkIdRequest.md +docs/CreatePayoutRequest.md +docs/CreateTokenRequestDto.md +docs/CreateTokenRequestDtoCreateParams.md +docs/CreateTransactionResponse.md +docs/CreateTransferConfigOperationRequest.md +docs/CreateUserGroupResponse.md +docs/CreateVaultAccountConnectionRequest.md +docs/CreateVaultAccountRequest.md +docs/CreateVaultAssetResponse.md +docs/CreateWalletRequest.md +docs/CreateWorkflowExecutionRequestParamsInner.md +docs/CustomRoutingDest.md +docs/DefaultNetworkRoutingDest.md +docs/DelegationDto.md +docs/DelegationSummaryDto.md +docs/DeleteNetworkConnectionResponse.md +docs/DeleteNetworkIdResponse.md +docs/DeployedContractResponseDto.md +docs/DeployedContractsApi.md +docs/DeployedContractsPaginatedResponse.md +docs/DepositFundsFromLinkedDDAResponse.md +docs/Destination.md +docs/DestinationTransferPeerPath.md +docs/DestinationTransferPeerPathResponse.md +docs/DisbursementAmountInstruction.md +docs/DisbursementConfigOperation.md +docs/DisbursementInstruction.md +docs/DisbursementInstructionOutput.md +docs/DisbursementOperationConfigParams.md +docs/DisbursementOperationExecution.md +docs/DisbursementOperationExecutionOutput.md +docs/DisbursementOperationExecutionParams.md +docs/DisbursementOperationExecutionParamsExecutionParams.md +docs/DisbursementOperationInput.md +docs/DisbursementOperationPreview.md +docs/DisbursementOperationPreviewOutput.md +docs/DisbursementOperationPreviewOutputInstructionSetInner.md +docs/DisbursementOperationType.md +docs/DisbursementPercentageInstruction.md +docs/DisbursementValidationFailure.md +docs/DispatchPayoutResponse.md +docs/DraftResponse.md +docs/DraftReviewAndValidationResponse.md +docs/DropTransactionRequest.md +docs/DropTransactionResponse.md +docs/EVMTokenCreateParamsDto.md +docs/EditGasStationConfigurationResponse.md +docs/ErrorResponse.md +docs/ErrorResponseError.md +docs/ErrorSchema.md +docs/EstimatedNetworkFeeResponse.md +docs/EstimatedTransactionFeeResponse.md +docs/ExchangeAccount.md +docs/ExchangeAccountsApi.md +docs/ExchangeAccountsPaged.md +docs/ExchangeAccountsPagedPaging.md +docs/ExchangeAsset.md +docs/ExchangeSettlementTransactionsResponse.md +docs/ExchangeTradingAccount.md +docs/ExchangeType.md +docs/ExecuteActionRequest.md +docs/ExecuteActionResponse.md +docs/ExecutionConversionOperation.md +docs/ExecutionDisbursementOperation.md +docs/ExecutionOperationStatus.md +docs/ExecutionScreeningOperation.md +docs/ExecutionTransferOperation.md +docs/ExternalWalletAsset.md +docs/ExternalWalletsApi.md +docs/FeeInfo.md +docs/FiatAccount.md +docs/FiatAccountType.md +docs/FiatAccountsApi.md +docs/FiatAsset.md +docs/FreezeTransactionResponse.md +docs/FunctionDoc.md +docs/Funds.md +docs/GasStationConfiguration.md +docs/GasStationConfigurationResponse.md +docs/GasStationPropertiesResponse.md +docs/GasStationsApi.md +docs/GetAPIUsersResponse.md +docs/GetAuditLogsResponse.md +docs/GetAuditLogsResponseDTO.md +docs/GetConnectionsResponse.md +docs/GetConsoleUsersResponse.md +docs/GetFilterParameter.md +docs/GetMaxSpendableAmountResponse.md +docs/GetNFTsResponse.md +docs/GetOtaStatusResponse.md +docs/GetOwnershipTokensResponse.md +docs/GetTransactionOperation.md +docs/GetWhitelistIpAddressesResponse.md +docs/GetWorkspaceStatusResponse.md +docs/HttpContractDoesNotExistError.md +docs/InstructionAmount.md +docs/InternalTransferResponse.md +docs/InternalWalletsApi.md +docs/Job.md +docs/JobCreated.md +docs/JobManagementApi.md +docs/LeanAbiFunction.md +docs/LeanContractDto.md +docs/LeanDeployedContractResponseDto.md +docs/ListOwnedCollectionsResponse.md +docs/ListOwnedTokensResponse.md +docs/MediaEntityResponse.md +docs/NFTsApi.md +docs/NetworkChannel.md +docs/NetworkConnection.md +docs/NetworkConnectionResponse.md +docs/NetworkConnectionRoutingPolicyValue.md +docs/NetworkConnectionStatus.md +docs/NetworkConnectionsApi.md +docs/NetworkFee.md +docs/NetworkId.md +docs/NetworkIdResponse.md +docs/NetworkIdRoutingPolicyValue.md +docs/NetworkRecord.md +docs/NoneNetworkRoutingDest.md +docs/NotFoundException.md +docs/OTABetaApi.md +docs/OffExchangesApi.md +docs/OneTimeAddress.md +docs/OneTimeAddressAccount.md +docs/OperationExecutionFailure.md +docs/PaginatedAddressResponse.md +docs/PaginatedAddressResponsePaging.md +docs/PaginatedAssetWalletResponse.md +docs/PaginatedAssetWalletResponsePaging.md +docs/Paging.md +docs/Parameter.md +docs/ParameterWithValue.md +docs/PayeeAccount.md +docs/PayeeAccountResponse.md +docs/PayeeAccountType.md +docs/PaymentAccount.md +docs/PaymentAccountResponse.md +docs/PaymentAccountType.md +docs/PaymentsPayoutApi.md +docs/PayoutInitMethod.md +docs/PayoutInstruction.md +docs/PayoutInstructionResponse.md +docs/PayoutInstructionState.md +docs/PayoutResponse.md +docs/PayoutState.md +docs/PayoutStatus.md +docs/PolicyAndValidationResponse.md +docs/PolicyCheckResult.md +docs/PolicyEditorBetaApi.md +docs/PolicyMetadata.md +docs/PolicyResponse.md +docs/PolicyRule.md +docs/PolicyRuleAmount.md +docs/PolicyRuleAmountAggregation.md +docs/PolicyRuleAuthorizationGroups.md +docs/PolicyRuleAuthorizationGroupsGroupsInner.md +docs/PolicyRuleCheckResult.md +docs/PolicyRuleDesignatedSigners.md +docs/PolicyRuleDst.md +docs/PolicyRuleError.md +docs/PolicyRuleOperators.md +docs/PolicyRuleRawMessageSigning.md +docs/PolicyRuleRawMessageSigningDerivationPath.md +docs/PolicyRuleSrc.md +docs/PolicyRules.md +docs/PolicySrcOrDestSubType.md +docs/PolicySrcOrDestType.md +docs/PolicyStatus.md +docs/PolicyValidation.md +docs/PreScreening.md +docs/ProviderDto.md +docs/PublicKeyInformation.md +docs/PublishDraftRequest.md +docs/PublishResult.md +docs/ReadAbiFunction.md +docs/ReadCallFunctionDto.md +docs/RedeemFundsToLinkedDDAResponse.md +docs/RegisterNewAssetRequest.md +docs/RelatedTransactionDto.md +docs/RemoveCollateralRequestBody.md +docs/RenameCosigner.md +docs/RenameVaultAccountResponse.md +docs/ResendTransactionWebhooksRequest.md +docs/ResendWebhooksByTransactionIdResponse.md +docs/ResendWebhooksResponse.md +docs/ResetDeviceApi.md +docs/RespondToConnectionRequest.md +docs/RewardInfo.md +docs/RewardsInfo.md +docs/ScreeningConfigurationsRequest.md +docs/ScreeningOperationExecution.md +docs/ScreeningOperationExecutionOutput.md +docs/ScreeningOperationFailure.md +docs/ScreeningOperationType.md +docs/ScreeningPolicyResponse.md +docs/ScreeningProviderRulesConfigurationResponse.md +docs/ScreeningUpdateConfigurationsRequest.md +docs/ScreeningValidationFailure.md +docs/ScreeningVerdict.md +docs/ScreeningVerdictMatchedRule.md +docs/SessionDTO.md +docs/SessionMetadata.md +docs/SetAdminQuorumThresholdRequest.md +docs/SetAdminQuorumThresholdResponse.md +docs/SetAutoFuelRequest.md +docs/SetConfirmationsThresholdRequest.md +docs/SetConfirmationsThresholdResponse.md +docs/SetCustomerRefIdForAddressRequest.md +docs/SetCustomerRefIdRequest.md +docs/SetNetworkIdDiscoverabilityRequest.md +docs/SetNetworkIdNameRequest.md +docs/SetNetworkIdResponse.md +docs/SetNetworkIdRoutingPolicyRequest.md +docs/SetOtaStatusRequest.md +docs/SetOtaStatusResponse.md +docs/SetOtaStatusResponseOneOf.md +docs/SetRoutingPolicyRequest.md +docs/SetRoutingPolicyResponse.md +docs/SettlementRequestBody.md +docs/SettlementResponse.md +docs/SignedMessage.md +docs/SignedMessageSignature.md +docs/SmartTransferApi.md +docs/SmartTransferBadRequestResponse.md +docs/SmartTransferCreateTicket.md +docs/SmartTransferCreateTicketTerm.md +docs/SmartTransferForbiddenResponse.md +docs/SmartTransferFundTerm.md +docs/SmartTransferManuallyFundTerm.md +docs/SmartTransferNotFoundResponse.md +docs/SmartTransferSetTicketExpiration.md +docs/SmartTransferSetTicketExternalId.md +docs/SmartTransferSetUserGroups.md +docs/SmartTransferSubmitTicket.md +docs/SmartTransferTicket.md +docs/SmartTransferTicketFilteredResponse.md +docs/SmartTransferTicketResponse.md +docs/SmartTransferTicketTerm.md +docs/SmartTransferTicketTermResponse.md +docs/SmartTransferUpdateTicketTerm.md +docs/SmartTransferUserGroups.md +docs/SmartTransferUserGroupsResponse.md +docs/SolanaBlockchainDataDto.md +docs/SourceTransferPeerPath.md +docs/SourceTransferPeerPathResponse.md +docs/SpamOwnershipResponse.md +docs/SpamTokenResponse.md +docs/SrcOrDestAttributesInner.md +docs/StakeRequestDto.md +docs/StakeResponseDto.md +docs/StakingBetaApi.md +docs/StellarRippleCreateParamsDto.md +docs/SystemMessageInfo.md +docs/Task.md +docs/TemplatesPaginatedResponse.md +docs/ThirdPartyRouting.md +docs/ToCollateralTransaction.md +docs/ToExchangeTransaction.md +docs/TokenCollectionResponse.md +docs/TokenLinkDto.md +docs/TokenLinkDtoTokenMetadata.md +docs/TokenLinkExistsHttpError.md +docs/TokenLinkRequestDto.md +docs/TokenOwnershipResponse.md +docs/TokenOwnershipSpamUpdatePayload.md +docs/TokenOwnershipStatusUpdatePayload.md +docs/TokenResponse.md +docs/TokenizationApi.md +docs/TokensPaginatedResponse.md +docs/TradingAccountType.md +docs/Transaction.md +docs/TransactionFee.md +docs/TransactionOperation.md +docs/TransactionRequest.md +docs/TransactionRequestAmount.md +docs/TransactionRequestDestination.md +docs/TransactionRequestFee.md +docs/TransactionRequestGasLimit.md +docs/TransactionRequestGasPrice.md +docs/TransactionRequestNetworkFee.md +docs/TransactionRequestNetworkStaking.md +docs/TransactionRequestPriorityFee.md +docs/TransactionResponse.md +docs/TransactionResponseContractCallDecodedData.md +docs/TransactionResponseDestination.md +docs/TransactionsApi.md +docs/TransferConfigOperation.md +docs/TransferOperationConfigParams.md +docs/TransferOperationExecution.md +docs/TransferOperationExecutionOutput.md +docs/TransferOperationExecutionParams.md +docs/TransferOperationExecutionParamsExecutionParams.md +docs/TransferOperationFailure.md +docs/TransferOperationFailureData.md +docs/TransferOperationPreview.md +docs/TransferOperationPreviewOutput.md +docs/TransferOperationType.md +docs/TransferPeerPathSubType.md +docs/TransferPeerPathType.md +docs/TransferValidationFailure.md +docs/TravelRuleAddress.md +docs/TravelRuleBetaApi.md +docs/TravelRuleCreateTransactionRequest.md +docs/TravelRuleGetAllVASPsResponse.md +docs/TravelRuleIssuer.md +docs/TravelRuleIssuers.md +docs/TravelRuleOwnershipProof.md +docs/TravelRulePiiIVMS.md +docs/TravelRulePolicyRuleResponse.md +docs/TravelRuleTransactionBlockchainInfo.md +docs/TravelRuleUpdateVASPDetails.md +docs/TravelRuleVASP.md +docs/TravelRuleValidateFullTransactionRequest.md +docs/TravelRuleValidateTransactionRequest.md +docs/TravelRuleValidateTransactionResponse.md +docs/UnfreezeTransactionResponse.md +docs/UnmanagedWallet.md +docs/UnspentInput.md +docs/UnspentInputsResponse.md +docs/UnstakeRequestDto.md +docs/UpdateTokenOwnershipStatusDto.md +docs/UpdateVaultAccountAssetAddressRequest.md +docs/UpdateVaultAccountRequest.md +docs/UserGroupCreateRequest.md +docs/UserGroupCreateResponse.md +docs/UserGroupResponse.md +docs/UserGroupUpdateRequest.md +docs/UserGroupsBetaApi.md +docs/UserResponse.md +docs/UserRole.md +docs/UserStatus.md +docs/UserType.md +docs/UsersApi.md +docs/ValidateAddressResponse.md +docs/ValidatorDto.md +docs/VaultAccount.md +docs/VaultAccountsPagedResponse.md +docs/VaultAccountsPagedResponsePaging.md +docs/VaultActionStatus.md +docs/VaultAsset.md +docs/VaultWalletAddress.md +docs/VaultsApi.md +docs/VendorDto.md +docs/WalletAsset.md +docs/WalletAssetAdditionalInfo.md +docs/Web3ConnectionsApi.md +docs/WebhooksApi.md +docs/WhitelistIpAddressesApi.md +docs/WithdrawRequestDto.md +docs/WorkflowConfigStatus.md +docs/WorkflowConfigurationId.md +docs/WorkflowExecutionOperation.md +docs/WorkspaceStatusBetaApi.md +docs/WriteAbiFunction.md +docs/WriteCallFunctionDto.md +docs/WriteCallFunctionResponseDto.md fireblocks_client/__init__.py +fireblocks_client/api/__init__.py +fireblocks_client/api/api_user_api.py +fireblocks_client/api/assets_api.py +fireblocks_client/api/audit_logs_api.py +fireblocks_client/api/blockchains_assets_api.py +fireblocks_client/api/compliance_api.py +fireblocks_client/api/compliance_screening_configuration_api.py +fireblocks_client/api/console_user_api.py +fireblocks_client/api/contract_interactions_api.py +fireblocks_client/api/contract_templates_api.py +fireblocks_client/api/contracts_api.py +fireblocks_client/api/cosigners_beta_api.py +fireblocks_client/api/deployed_contracts_api.py +fireblocks_client/api/exchange_accounts_api.py +fireblocks_client/api/external_wallets_api.py +fireblocks_client/api/fiat_accounts_api.py +fireblocks_client/api/gas_stations_api.py +fireblocks_client/api/internal_wallets_api.py +fireblocks_client/api/job_management_api.py +fireblocks_client/api/network_connections_api.py +fireblocks_client/api/nfts_api.py +fireblocks_client/api/off_exchanges_api.py +fireblocks_client/api/ota_beta_api.py +fireblocks_client/api/payments_payout_api.py +fireblocks_client/api/policy_editor_beta_api.py +fireblocks_client/api/reset_device_api.py +fireblocks_client/api/smart_transfer_api.py +fireblocks_client/api/staking_beta_api.py +fireblocks_client/api/tokenization_api.py +fireblocks_client/api/transactions_api.py +fireblocks_client/api/travel_rule_beta_api.py +fireblocks_client/api/user_groups_beta_api.py +fireblocks_client/api/users_api.py +fireblocks_client/api/vaults_api.py +fireblocks_client/api/web3_connections_api.py +fireblocks_client/api/webhooks_api.py +fireblocks_client/api/whitelist_ip_addresses_api.py +fireblocks_client/api/workspace_status_beta_api.py fireblocks_client/api_client.py -fireblocks_client/apis/__init__.py -fireblocks_client/apis/tags/audit_logs_api.py -fireblocks_client/apis/tags/blockchains_assets_api.py -fireblocks_client/apis/tags/contracts_api.py -fireblocks_client/apis/tags/exchange_accounts_api.py -fireblocks_client/apis/tags/external_wallets_api.py -fireblocks_client/apis/tags/fiat_accounts_api.py -fireblocks_client/apis/tags/gas_stations_api.py -fireblocks_client/apis/tags/internal_wallets_api.py -fireblocks_client/apis/tags/network_connections_api.py -fireblocks_client/apis/tags/nfts_beta_api.py -fireblocks_client/apis/tags/off_exchanges_api.py -fireblocks_client/apis/tags/payments_cross_border_settlement_api.py -fireblocks_client/apis/tags/payments_payout_api.py -fireblocks_client/apis/tags/policy_editor_beta_api.py -fireblocks_client/apis/tags/transactions_api.py -fireblocks_client/apis/tags/travel_rule_beta_api.py -fireblocks_client/apis/tags/users_api.py -fireblocks_client/apis/tags/vaults_api.py -fireblocks_client/apis/tags/web3_connections_api.py -fireblocks_client/apis/tags/webhooks_api.py +fireblocks_client/api_response.py fireblocks_client/configuration.py fireblocks_client/exceptions.py -fireblocks_client/model/__init__.py -fireblocks_client/model/add_collateral_request_body.py -fireblocks_client/model/add_collateral_request_body.pyi -fireblocks_client/model/aml_screening_result.py -fireblocks_client/model/aml_screening_result.pyi -fireblocks_client/model/amount_aggregation_time_period_method.py -fireblocks_client/model/amount_aggregation_time_period_method.pyi -fireblocks_client/model/amount_info.py -fireblocks_client/model/amount_info.pyi -fireblocks_client/model/asset_type_response.py -fireblocks_client/model/asset_type_response.pyi -fireblocks_client/model/asset_wallet.py -fireblocks_client/model/asset_wallet.pyi -fireblocks_client/model/authorization_groups.py -fireblocks_client/model/authorization_groups.pyi -fireblocks_client/model/authorization_info.py -fireblocks_client/model/authorization_info.pyi -fireblocks_client/model/block_info.py -fireblocks_client/model/block_info.pyi -fireblocks_client/model/cancel_transaction_response.py -fireblocks_client/model/cancel_transaction_response.pyi -fireblocks_client/model/collection_ownership_response.py -fireblocks_client/model/collection_ownership_response.pyi -fireblocks_client/model/config_change_request_status.py -fireblocks_client/model/config_change_request_status.pyi -fireblocks_client/model/create_address_response.py -fireblocks_client/model/create_address_response.pyi -fireblocks_client/model/create_connection_request.py -fireblocks_client/model/create_connection_request.pyi -fireblocks_client/model/create_connection_response.py -fireblocks_client/model/create_connection_response.pyi -fireblocks_client/model/create_internal_transfer_request.py -fireblocks_client/model/create_internal_transfer_request.pyi -fireblocks_client/model/create_payout_request.py -fireblocks_client/model/create_payout_request.pyi -fireblocks_client/model/create_transaction_response.py -fireblocks_client/model/create_transaction_response.pyi -fireblocks_client/model/create_vault_asset_response.py -fireblocks_client/model/create_vault_asset_response.pyi -fireblocks_client/model/custom_crypto_routing_dest.py -fireblocks_client/model/custom_crypto_routing_dest.pyi -fireblocks_client/model/custom_fiat_routing_dest.py -fireblocks_client/model/custom_fiat_routing_dest.pyi -fireblocks_client/model/default_network_routing_dest.py -fireblocks_client/model/default_network_routing_dest.pyi -fireblocks_client/model/destination_transfer_peer_path.py -fireblocks_client/model/destination_transfer_peer_path.pyi -fireblocks_client/model/destination_transfer_peer_path_response.py -fireblocks_client/model/destination_transfer_peer_path_response.pyi -fireblocks_client/model/dispatch_payout_response.py -fireblocks_client/model/dispatch_payout_response.pyi -fireblocks_client/model/draft_response.py -fireblocks_client/model/draft_response.pyi -fireblocks_client/model/draft_review_and_validation_response.py -fireblocks_client/model/draft_review_and_validation_response.pyi -fireblocks_client/model/drop_transaction_request.py -fireblocks_client/model/drop_transaction_request.pyi -fireblocks_client/model/drop_transaction_response.py -fireblocks_client/model/drop_transaction_response.pyi -fireblocks_client/model/error.py -fireblocks_client/model/error.pyi -fireblocks_client/model/error_response.py -fireblocks_client/model/error_response.pyi -fireblocks_client/model/estimated_network_fee_response.py -fireblocks_client/model/estimated_network_fee_response.pyi -fireblocks_client/model/estimated_transaction_fee_response.py -fireblocks_client/model/estimated_transaction_fee_response.pyi -fireblocks_client/model/exchange_account.py -fireblocks_client/model/exchange_account.pyi -fireblocks_client/model/exchange_asset.py -fireblocks_client/model/exchange_asset.pyi -fireblocks_client/model/exchange_trading_account.py -fireblocks_client/model/exchange_trading_account.pyi -fireblocks_client/model/exchange_type.py -fireblocks_client/model/exchange_type.pyi -fireblocks_client/model/external_wallet_asset.py -fireblocks_client/model/external_wallet_asset.pyi -fireblocks_client/model/fee_info.py -fireblocks_client/model/fee_info.pyi -fireblocks_client/model/fiat_account.py -fireblocks_client/model/fiat_account.pyi -fireblocks_client/model/fiat_account_type.py -fireblocks_client/model/fiat_account_type.pyi -fireblocks_client/model/fiat_asset.py -fireblocks_client/model/fiat_asset.pyi -fireblocks_client/model/freeze_transaction_response.py -fireblocks_client/model/freeze_transaction_response.pyi -fireblocks_client/model/gas_station_configuration.py -fireblocks_client/model/gas_station_configuration.pyi -fireblocks_client/model/gas_station_properties_response.py -fireblocks_client/model/gas_station_properties_response.pyi -fireblocks_client/model/get_connections_response.py -fireblocks_client/model/get_connections_response.pyi -fireblocks_client/model/get_settlement_response.py -fireblocks_client/model/get_settlement_response.pyi -fireblocks_client/model/get_transaction_operation.py -fireblocks_client/model/get_transaction_operation.pyi -fireblocks_client/model/get_users_response.py -fireblocks_client/model/get_users_response.pyi -fireblocks_client/model/instruction_amount.py -fireblocks_client/model/instruction_amount.pyi -fireblocks_client/model/media_entity_response.py -fireblocks_client/model/media_entity_response.pyi -fireblocks_client/model/network_channel.py -fireblocks_client/model/network_channel.pyi -fireblocks_client/model/network_connection.py -fireblocks_client/model/network_connection.pyi -fireblocks_client/model/network_connection_response.py -fireblocks_client/model/network_connection_response.pyi -fireblocks_client/model/network_connection_routing_policy.py -fireblocks_client/model/network_connection_routing_policy.pyi -fireblocks_client/model/network_fee.py -fireblocks_client/model/network_fee.pyi -fireblocks_client/model/network_id.py -fireblocks_client/model/network_id.pyi -fireblocks_client/model/network_id_response.py -fireblocks_client/model/network_id_response.pyi -fireblocks_client/model/network_id_routing_policy.py -fireblocks_client/model/network_id_routing_policy.pyi -fireblocks_client/model/network_record.py -fireblocks_client/model/network_record.pyi -fireblocks_client/model/none_network_routing_dest.py -fireblocks_client/model/none_network_routing_dest.pyi -fireblocks_client/model/one_time_address.py -fireblocks_client/model/one_time_address.pyi -fireblocks_client/model/paginated_asset_wallet_response.py -fireblocks_client/model/paginated_asset_wallet_response.pyi -fireblocks_client/model/paging.py -fireblocks_client/model/paging.pyi -fireblocks_client/model/payee_account.py -fireblocks_client/model/payee_account.pyi -fireblocks_client/model/payee_account_response.py -fireblocks_client/model/payee_account_response.pyi -fireblocks_client/model/payee_account_type.py -fireblocks_client/model/payee_account_type.pyi -fireblocks_client/model/payment_account.py -fireblocks_client/model/payment_account.pyi -fireblocks_client/model/payment_account_response.py -fireblocks_client/model/payment_account_response.pyi -fireblocks_client/model/payment_account_type.py -fireblocks_client/model/payment_account_type.pyi -fireblocks_client/model/payout_init_method.py -fireblocks_client/model/payout_init_method.pyi -fireblocks_client/model/payout_instruction.py -fireblocks_client/model/payout_instruction.pyi -fireblocks_client/model/payout_instruction_response.py -fireblocks_client/model/payout_instruction_response.pyi -fireblocks_client/model/payout_instruction_state.py -fireblocks_client/model/payout_instruction_state.pyi -fireblocks_client/model/payout_response.py -fireblocks_client/model/payout_response.pyi -fireblocks_client/model/payout_state.py -fireblocks_client/model/payout_state.pyi -fireblocks_client/model/payout_status.py -fireblocks_client/model/payout_status.pyi -fireblocks_client/model/policy_and_validation_response.py -fireblocks_client/model/policy_and_validation_response.pyi -fireblocks_client/model/policy_check_result.py -fireblocks_client/model/policy_check_result.pyi -fireblocks_client/model/policy_metadata.py -fireblocks_client/model/policy_metadata.pyi -fireblocks_client/model/policy_response.py -fireblocks_client/model/policy_response.pyi -fireblocks_client/model/policy_rule.py -fireblocks_client/model/policy_rule.pyi -fireblocks_client/model/policy_rule_check_result.py -fireblocks_client/model/policy_rule_check_result.pyi -fireblocks_client/model/policy_rule_error.py -fireblocks_client/model/policy_rule_error.pyi -fireblocks_client/model/policy_src_or_dest_id.py -fireblocks_client/model/policy_src_or_dest_id.pyi -fireblocks_client/model/policy_src_or_dest_sub_type.py -fireblocks_client/model/policy_src_or_dest_sub_type.pyi -fireblocks_client/model/policy_src_or_dest_type.py -fireblocks_client/model/policy_src_or_dest_type.pyi -fireblocks_client/model/policy_status.py -fireblocks_client/model/policy_status.pyi -fireblocks_client/model/policy_validation.py -fireblocks_client/model/policy_validation.pyi -fireblocks_client/model/public_key_information.py -fireblocks_client/model/public_key_information.pyi -fireblocks_client/model/publish_result.py -fireblocks_client/model/publish_result.pyi -fireblocks_client/model/remove_collateral_request_body.py -fireblocks_client/model/remove_collateral_request_body.pyi -fireblocks_client/model/resend_webhooks_response.py -fireblocks_client/model/resend_webhooks_response.pyi -fireblocks_client/model/respond_to_connection_request.py -fireblocks_client/model/respond_to_connection_request.pyi -fireblocks_client/model/reward_info.py -fireblocks_client/model/reward_info.pyi -fireblocks_client/model/rewards_info.py -fireblocks_client/model/rewards_info.pyi -fireblocks_client/model/session_dto.py -fireblocks_client/model/session_dto.pyi -fireblocks_client/model/session_metadata.py -fireblocks_client/model/session_metadata.pyi -fireblocks_client/model/set_confirmations_threshold_request.py -fireblocks_client/model/set_confirmations_threshold_request.pyi -fireblocks_client/model/set_confirmations_threshold_response.py -fireblocks_client/model/set_confirmations_threshold_response.pyi -fireblocks_client/model/settlement_request_body.py -fireblocks_client/model/settlement_request_body.pyi -fireblocks_client/model/settlement_response.py -fireblocks_client/model/settlement_response.pyi -fireblocks_client/model/signed_message.py -fireblocks_client/model/signed_message.pyi -fireblocks_client/model/source_transfer_peer_path_response.py -fireblocks_client/model/source_transfer_peer_path_response.pyi -fireblocks_client/model/system_message_info.py -fireblocks_client/model/system_message_info.pyi -fireblocks_client/model/term.py -fireblocks_client/model/term.pyi -fireblocks_client/model/to_collateral_transaction.py -fireblocks_client/model/to_collateral_transaction.pyi -fireblocks_client/model/to_exchange_transaction.py -fireblocks_client/model/to_exchange_transaction.pyi -fireblocks_client/model/token_collection_response.py -fireblocks_client/model/token_collection_response.pyi -fireblocks_client/model/token_ownership_response.py -fireblocks_client/model/token_ownership_response.pyi -fireblocks_client/model/token_response.py -fireblocks_client/model/token_response.pyi -fireblocks_client/model/trading_account_type.py -fireblocks_client/model/trading_account_type.pyi -fireblocks_client/model/transaction.py -fireblocks_client/model/transaction.pyi -fireblocks_client/model/transaction_fee.py -fireblocks_client/model/transaction_fee.pyi -fireblocks_client/model/transaction_operation.py -fireblocks_client/model/transaction_operation.pyi -fireblocks_client/model/transaction_request.py -fireblocks_client/model/transaction_request.pyi -fireblocks_client/model/transaction_request_destination.py -fireblocks_client/model/transaction_request_destination.pyi -fireblocks_client/model/transaction_response.py -fireblocks_client/model/transaction_response.pyi -fireblocks_client/model/transaction_response_destination.py -fireblocks_client/model/transaction_response_destination.pyi -fireblocks_client/model/transfer_peer_path.py -fireblocks_client/model/transfer_peer_path.pyi -fireblocks_client/model/travel_rule_address.py -fireblocks_client/model/travel_rule_address.pyi -fireblocks_client/model/travel_rule_get_all_vasps_response.py -fireblocks_client/model/travel_rule_get_all_vasps_response.pyi -fireblocks_client/model/travel_rule_issuer.py -fireblocks_client/model/travel_rule_issuer.pyi -fireblocks_client/model/travel_rule_issuers.py -fireblocks_client/model/travel_rule_issuers.pyi -fireblocks_client/model/travel_rule_ownership_proof.py -fireblocks_client/model/travel_rule_ownership_proof.pyi -fireblocks_client/model/travel_rule_pii_ivms.py -fireblocks_client/model/travel_rule_pii_ivms.pyi -fireblocks_client/model/travel_rule_transaction_blockchain_info.py -fireblocks_client/model/travel_rule_transaction_blockchain_info.pyi -fireblocks_client/model/travel_rule_update_vasp_details.py -fireblocks_client/model/travel_rule_update_vasp_details.pyi -fireblocks_client/model/travel_rule_validate_full_transaction_request.py -fireblocks_client/model/travel_rule_validate_full_transaction_request.pyi -fireblocks_client/model/travel_rule_validate_transaction_request.py -fireblocks_client/model/travel_rule_validate_transaction_request.pyi -fireblocks_client/model/travel_rule_validate_transaction_response.py -fireblocks_client/model/travel_rule_validate_transaction_response.pyi -fireblocks_client/model/travel_rule_vasp.py -fireblocks_client/model/travel_rule_vasp.pyi -fireblocks_client/model/unfreeze_transaction_response.py -fireblocks_client/model/unfreeze_transaction_response.pyi -fireblocks_client/model/unmanaged_wallet.py -fireblocks_client/model/unmanaged_wallet.pyi -fireblocks_client/model/unsigned_message.py -fireblocks_client/model/unsigned_message.pyi -fireblocks_client/model/unspent_input.py -fireblocks_client/model/unspent_input.pyi -fireblocks_client/model/unspent_inputs_response.py -fireblocks_client/model/unspent_inputs_response.pyi -fireblocks_client/model/update_token_ownership_status_dto.py -fireblocks_client/model/update_token_ownership_status_dto.pyi -fireblocks_client/model/user_response.py -fireblocks_client/model/user_response.pyi -fireblocks_client/model/validate_address_response.py -fireblocks_client/model/validate_address_response.pyi -fireblocks_client/model/vault_account.py -fireblocks_client/model/vault_account.pyi -fireblocks_client/model/vault_accounts_paged_response.py -fireblocks_client/model/vault_accounts_paged_response.pyi -fireblocks_client/model/vault_asset.py -fireblocks_client/model/vault_asset.pyi -fireblocks_client/model/vault_wallet_address.py -fireblocks_client/model/vault_wallet_address.pyi -fireblocks_client/model/wallet_asset.py -fireblocks_client/model/wallet_asset.pyi -fireblocks_client/model/wallet_asset_additional_info.py -fireblocks_client/model/wallet_asset_additional_info.pyi -fireblocks_client/model/xb_settlement_asset.py -fireblocks_client/model/xb_settlement_asset.pyi -fireblocks_client/model/xb_settlement_asset_id.py -fireblocks_client/model/xb_settlement_asset_id.pyi -fireblocks_client/model/xb_settlement_config_creation_request_body.py -fireblocks_client/model/xb_settlement_config_creation_request_body.pyi -fireblocks_client/model/xb_settlement_config_creation_response.py -fireblocks_client/model/xb_settlement_config_creation_response.pyi -fireblocks_client/model/xb_settlement_config_deletion_response.py -fireblocks_client/model/xb_settlement_config_deletion_response.pyi -fireblocks_client/model/xb_settlement_config_edit_request_body.py -fireblocks_client/model/xb_settlement_config_edit_request_body.pyi -fireblocks_client/model/xb_settlement_config_edit_response.py -fireblocks_client/model/xb_settlement_config_edit_response.pyi -fireblocks_client/model/xb_settlement_config_id.py -fireblocks_client/model/xb_settlement_config_id.pyi -fireblocks_client/model/xb_settlement_config_model.py -fireblocks_client/model/xb_settlement_config_model.pyi -fireblocks_client/model/xb_settlement_config_step.py -fireblocks_client/model/xb_settlement_config_step.pyi -fireblocks_client/model/xb_settlement_config_steps_record.py -fireblocks_client/model/xb_settlement_config_steps_record.pyi -fireblocks_client/model/xb_settlement_conversion_slippage_basis_points.py -fireblocks_client/model/xb_settlement_conversion_slippage_basis_points.pyi -fireblocks_client/model/xb_settlement_corridor_id.py -fireblocks_client/model/xb_settlement_corridor_id.pyi -fireblocks_client/model/xb_settlement_create_flow_request_body.py -fireblocks_client/model/xb_settlement_create_flow_request_body.pyi -fireblocks_client/model/xb_settlement_create_flow_response.py -fireblocks_client/model/xb_settlement_create_flow_response.pyi -fireblocks_client/model/xb_settlement_crypto_asset.py -fireblocks_client/model/xb_settlement_crypto_asset.pyi -fireblocks_client/model/xb_settlement_fiat_asset.py -fireblocks_client/model/xb_settlement_fiat_asset.pyi -fireblocks_client/model/xb_settlement_flow_execution_model.py -fireblocks_client/model/xb_settlement_flow_execution_model.pyi -fireblocks_client/model/xb_settlement_flow_execution_request_body.py -fireblocks_client/model/xb_settlement_flow_execution_request_body.pyi -fireblocks_client/model/xb_settlement_flow_execution_response.py -fireblocks_client/model/xb_settlement_flow_execution_response.pyi -fireblocks_client/model/xb_settlement_flow_execution_status.py -fireblocks_client/model/xb_settlement_flow_execution_status.pyi -fireblocks_client/model/xb_settlement_flow_execution_step.py -fireblocks_client/model/xb_settlement_flow_execution_step.pyi -fireblocks_client/model/xb_settlement_flow_execution_step_status.py -fireblocks_client/model/xb_settlement_flow_execution_step_status.pyi -fireblocks_client/model/xb_settlement_flow_preview_model.py -fireblocks_client/model/xb_settlement_flow_preview_model.pyi -fireblocks_client/model/xb_settlement_flow_selected_conversion_slippage_reason.py -fireblocks_client/model/xb_settlement_flow_selected_conversion_slippage_reason.pyi -fireblocks_client/model/xb_settlement_flow_setup_step.py -fireblocks_client/model/xb_settlement_flow_setup_step.pyi -fireblocks_client/model/xb_settlement_flow_steps_execution_record.py -fireblocks_client/model/xb_settlement_flow_steps_execution_record.pyi -fireblocks_client/model/xb_settlement_flow_steps_record.py -fireblocks_client/model/xb_settlement_flow_steps_record.pyi -fireblocks_client/model/xb_settlement_get_all_configs_response.py -fireblocks_client/model/xb_settlement_get_all_configs_response.pyi -fireblocks_client/model/xb_settlement_get_config_response.py -fireblocks_client/model/xb_settlement_get_config_response.pyi -fireblocks_client/model/xb_settlement_get_flow_response.py -fireblocks_client/model/xb_settlement_get_flow_response.pyi -fireblocks_client/model/xb_settlement_step_type.py -fireblocks_client/model/xb_settlement_step_type.pyi fireblocks_client/models/__init__.py +fireblocks_client/models/abi_function.py +fireblocks_client/models/account.py +fireblocks_client/models/account_type.py +fireblocks_client/models/add_asset_to_external_wallet_request.py +fireblocks_client/models/add_asset_to_external_wallet_request_one_of.py +fireblocks_client/models/add_asset_to_external_wallet_request_one_of1.py +fireblocks_client/models/add_asset_to_external_wallet_request_one_of1_additional_info.py +fireblocks_client/models/add_asset_to_external_wallet_request_one_of1_additional_info_one_of.py +fireblocks_client/models/add_asset_to_external_wallet_request_one_of1_additional_info_one_of1.py +fireblocks_client/models/add_asset_to_external_wallet_request_one_of1_additional_info_one_of2.py +fireblocks_client/models/add_collateral_request_body.py +fireblocks_client/models/add_contract_asset_request.py +fireblocks_client/models/additional_info_dto.py +fireblocks_client/models/aml_registration_result.py +fireblocks_client/models/aml_screening_result.py +fireblocks_client/models/amount_aggregation_time_period_method.py +fireblocks_client/models/amount_and_chain_descriptor.py +fireblocks_client/models/amount_info.py +fireblocks_client/models/api_key.py +fireblocks_client/models/api_keys_paginated_response.py +fireblocks_client/models/api_user.py +fireblocks_client/models/asset_already_exist_http_error.py +fireblocks_client/models/asset_amount.py +fireblocks_client/models/asset_bad_request_error_response.py +fireblocks_client/models/asset_conflict_error_response.py +fireblocks_client/models/asset_does_not_exist_http_error.py +fireblocks_client/models/asset_forbidden_error_response.py +fireblocks_client/models/asset_internal_server_error_response.py +fireblocks_client/models/asset_metadata_dto.py +fireblocks_client/models/asset_not_found_error_response.py +fireblocks_client/models/asset_response.py +fireblocks_client/models/asset_response_metadata.py +fireblocks_client/models/asset_response_onchain.py +fireblocks_client/models/asset_type_response.py +fireblocks_client/models/asset_wallet.py +fireblocks_client/models/audit_log_data.py +fireblocks_client/models/auditor_data.py +fireblocks_client/models/authorization_groups.py +fireblocks_client/models/authorization_info.py +fireblocks_client/models/block_info.py +fireblocks_client/models/cancel_transaction_response.py +fireblocks_client/models/chain_info_response_dto.py +fireblocks_client/models/collection_metadata_dto.py +fireblocks_client/models/collection_ownership_response.py +fireblocks_client/models/compliance_result.py +fireblocks_client/models/compliance_screening_result.py +fireblocks_client/models/config_change_request_status.py +fireblocks_client/models/config_conversion_operation_snapshot.py +fireblocks_client/models/config_disbursement_operation_snapshot.py +fireblocks_client/models/config_operation.py +fireblocks_client/models/config_operation_snapshot.py +fireblocks_client/models/config_operation_status.py +fireblocks_client/models/config_transfer_operation_snapshot.py +fireblocks_client/models/console_user.py +fireblocks_client/models/contract_abi_response_dto.py +fireblocks_client/models/contract_attributes.py +fireblocks_client/models/contract_deploy_request.py +fireblocks_client/models/contract_deploy_response.py +fireblocks_client/models/contract_doc.py +fireblocks_client/models/contract_metadata_dto.py +fireblocks_client/models/contract_template_dto.py +fireblocks_client/models/contract_upload_request.py +fireblocks_client/models/conversion_config_operation.py +fireblocks_client/models/conversion_operation_config_params.py +fireblocks_client/models/conversion_operation_execution.py +fireblocks_client/models/conversion_operation_execution_output.py +fireblocks_client/models/conversion_operation_execution_params.py +fireblocks_client/models/conversion_operation_execution_params_execution_params.py +fireblocks_client/models/conversion_operation_failure.py +fireblocks_client/models/conversion_operation_preview.py +fireblocks_client/models/conversion_operation_preview_output.py +fireblocks_client/models/conversion_operation_type.py +fireblocks_client/models/conversion_validation_failure.py +fireblocks_client/models/convert_assets_request.py +fireblocks_client/models/convert_assets_response.py +fireblocks_client/models/cosigner.py +fireblocks_client/models/cosigners_paginated_response.py +fireblocks_client/models/create_address_request.py +fireblocks_client/models/create_address_response.py +fireblocks_client/models/create_api_user.py +fireblocks_client/models/create_assets_bulk_request.py +fireblocks_client/models/create_assets_request.py +fireblocks_client/models/create_config_operation_request.py +fireblocks_client/models/create_connection_request.py +fireblocks_client/models/create_connection_response.py +fireblocks_client/models/create_console_user.py +fireblocks_client/models/create_contract_request.py +fireblocks_client/models/create_conversion_config_operation_request.py +fireblocks_client/models/create_disbursement_config_operation_request.py +fireblocks_client/models/create_internal_transfer_request.py +fireblocks_client/models/create_internal_wallet_asset_request.py +fireblocks_client/models/create_multiple_accounts_request.py +fireblocks_client/models/create_ncw_connection_request.py +fireblocks_client/models/create_network_id_request.py +fireblocks_client/models/create_payout_request.py +fireblocks_client/models/create_token_request_dto.py +fireblocks_client/models/create_token_request_dto_create_params.py +fireblocks_client/models/create_transaction_response.py +fireblocks_client/models/create_transfer_config_operation_request.py +fireblocks_client/models/create_user_group_response.py +fireblocks_client/models/create_vault_account_connection_request.py +fireblocks_client/models/create_vault_account_request.py +fireblocks_client/models/create_vault_asset_response.py +fireblocks_client/models/create_wallet_request.py +fireblocks_client/models/create_workflow_execution_request_params_inner.py +fireblocks_client/models/custom_routing_dest.py +fireblocks_client/models/default_network_routing_dest.py +fireblocks_client/models/delegation_dto.py +fireblocks_client/models/delegation_summary_dto.py +fireblocks_client/models/delete_network_connection_response.py +fireblocks_client/models/delete_network_id_response.py +fireblocks_client/models/deployed_contract_response_dto.py +fireblocks_client/models/deployed_contracts_paginated_response.py +fireblocks_client/models/deposit_funds_from_linked_dda_response.py +fireblocks_client/models/destination.py +fireblocks_client/models/destination_transfer_peer_path.py +fireblocks_client/models/destination_transfer_peer_path_response.py +fireblocks_client/models/disbursement_amount_instruction.py +fireblocks_client/models/disbursement_config_operation.py +fireblocks_client/models/disbursement_instruction.py +fireblocks_client/models/disbursement_instruction_output.py +fireblocks_client/models/disbursement_operation_config_params.py +fireblocks_client/models/disbursement_operation_execution.py +fireblocks_client/models/disbursement_operation_execution_output.py +fireblocks_client/models/disbursement_operation_execution_params.py +fireblocks_client/models/disbursement_operation_execution_params_execution_params.py +fireblocks_client/models/disbursement_operation_input.py +fireblocks_client/models/disbursement_operation_preview.py +fireblocks_client/models/disbursement_operation_preview_output.py +fireblocks_client/models/disbursement_operation_preview_output_instruction_set_inner.py +fireblocks_client/models/disbursement_operation_type.py +fireblocks_client/models/disbursement_percentage_instruction.py +fireblocks_client/models/disbursement_validation_failure.py +fireblocks_client/models/dispatch_payout_response.py +fireblocks_client/models/draft_response.py +fireblocks_client/models/draft_review_and_validation_response.py +fireblocks_client/models/drop_transaction_request.py +fireblocks_client/models/drop_transaction_response.py +fireblocks_client/models/edit_gas_station_configuration_response.py +fireblocks_client/models/error_response.py +fireblocks_client/models/error_response_error.py +fireblocks_client/models/error_schema.py +fireblocks_client/models/estimated_network_fee_response.py +fireblocks_client/models/estimated_transaction_fee_response.py +fireblocks_client/models/evm_token_create_params_dto.py +fireblocks_client/models/exchange_account.py +fireblocks_client/models/exchange_accounts_paged.py +fireblocks_client/models/exchange_accounts_paged_paging.py +fireblocks_client/models/exchange_asset.py +fireblocks_client/models/exchange_settlement_transactions_response.py +fireblocks_client/models/exchange_trading_account.py +fireblocks_client/models/exchange_type.py +fireblocks_client/models/execute_action_request.py +fireblocks_client/models/execute_action_response.py +fireblocks_client/models/execution_conversion_operation.py +fireblocks_client/models/execution_disbursement_operation.py +fireblocks_client/models/execution_operation_status.py +fireblocks_client/models/execution_screening_operation.py +fireblocks_client/models/execution_transfer_operation.py +fireblocks_client/models/external_wallet_asset.py +fireblocks_client/models/fee_info.py +fireblocks_client/models/fiat_account.py +fireblocks_client/models/fiat_account_type.py +fireblocks_client/models/fiat_asset.py +fireblocks_client/models/freeze_transaction_response.py +fireblocks_client/models/function_doc.py +fireblocks_client/models/funds.py +fireblocks_client/models/gas_station_configuration.py +fireblocks_client/models/gas_station_configuration_response.py +fireblocks_client/models/gas_station_properties_response.py +fireblocks_client/models/get_api_users_response.py +fireblocks_client/models/get_audit_logs_response.py +fireblocks_client/models/get_audit_logs_response_dto.py +fireblocks_client/models/get_connections_response.py +fireblocks_client/models/get_console_users_response.py +fireblocks_client/models/get_filter_parameter.py +fireblocks_client/models/get_max_spendable_amount_response.py +fireblocks_client/models/get_nfts_response.py +fireblocks_client/models/get_ota_status_response.py +fireblocks_client/models/get_ownership_tokens_response.py +fireblocks_client/models/get_transaction_operation.py +fireblocks_client/models/get_whitelist_ip_addresses_response.py +fireblocks_client/models/get_workspace_status_response.py +fireblocks_client/models/http_contract_does_not_exist_error.py +fireblocks_client/models/instruction_amount.py +fireblocks_client/models/internal_transfer_response.py +fireblocks_client/models/job.py +fireblocks_client/models/job_created.py +fireblocks_client/models/lean_abi_function.py +fireblocks_client/models/lean_contract_dto.py +fireblocks_client/models/lean_deployed_contract_response_dto.py +fireblocks_client/models/list_owned_collections_response.py +fireblocks_client/models/list_owned_tokens_response.py +fireblocks_client/models/media_entity_response.py +fireblocks_client/models/network_channel.py +fireblocks_client/models/network_connection.py +fireblocks_client/models/network_connection_response.py +fireblocks_client/models/network_connection_routing_policy_value.py +fireblocks_client/models/network_connection_status.py +fireblocks_client/models/network_fee.py +fireblocks_client/models/network_id.py +fireblocks_client/models/network_id_response.py +fireblocks_client/models/network_id_routing_policy_value.py +fireblocks_client/models/network_record.py +fireblocks_client/models/none_network_routing_dest.py +fireblocks_client/models/not_found_exception.py +fireblocks_client/models/one_time_address.py +fireblocks_client/models/one_time_address_account.py +fireblocks_client/models/operation_execution_failure.py +fireblocks_client/models/paginated_address_response.py +fireblocks_client/models/paginated_address_response_paging.py +fireblocks_client/models/paginated_asset_wallet_response.py +fireblocks_client/models/paginated_asset_wallet_response_paging.py +fireblocks_client/models/paging.py +fireblocks_client/models/parameter.py +fireblocks_client/models/parameter_with_value.py +fireblocks_client/models/payee_account.py +fireblocks_client/models/payee_account_response.py +fireblocks_client/models/payee_account_type.py +fireblocks_client/models/payment_account.py +fireblocks_client/models/payment_account_response.py +fireblocks_client/models/payment_account_type.py +fireblocks_client/models/payout_init_method.py +fireblocks_client/models/payout_instruction.py +fireblocks_client/models/payout_instruction_response.py +fireblocks_client/models/payout_instruction_state.py +fireblocks_client/models/payout_response.py +fireblocks_client/models/payout_state.py +fireblocks_client/models/payout_status.py +fireblocks_client/models/policy_and_validation_response.py +fireblocks_client/models/policy_check_result.py +fireblocks_client/models/policy_metadata.py +fireblocks_client/models/policy_response.py +fireblocks_client/models/policy_rule.py +fireblocks_client/models/policy_rule_amount.py +fireblocks_client/models/policy_rule_amount_aggregation.py +fireblocks_client/models/policy_rule_authorization_groups.py +fireblocks_client/models/policy_rule_authorization_groups_groups_inner.py +fireblocks_client/models/policy_rule_check_result.py +fireblocks_client/models/policy_rule_designated_signers.py +fireblocks_client/models/policy_rule_dst.py +fireblocks_client/models/policy_rule_error.py +fireblocks_client/models/policy_rule_operators.py +fireblocks_client/models/policy_rule_raw_message_signing.py +fireblocks_client/models/policy_rule_raw_message_signing_derivation_path.py +fireblocks_client/models/policy_rule_src.py +fireblocks_client/models/policy_rules.py +fireblocks_client/models/policy_src_or_dest_sub_type.py +fireblocks_client/models/policy_src_or_dest_type.py +fireblocks_client/models/policy_status.py +fireblocks_client/models/policy_validation.py +fireblocks_client/models/pre_screening.py +fireblocks_client/models/provider_dto.py +fireblocks_client/models/public_key_information.py +fireblocks_client/models/publish_draft_request.py +fireblocks_client/models/publish_result.py +fireblocks_client/models/read_abi_function.py +fireblocks_client/models/read_call_function_dto.py +fireblocks_client/models/redeem_funds_to_linked_dda_response.py +fireblocks_client/models/register_new_asset_request.py +fireblocks_client/models/related_transaction_dto.py +fireblocks_client/models/remove_collateral_request_body.py +fireblocks_client/models/rename_cosigner.py +fireblocks_client/models/rename_vault_account_response.py +fireblocks_client/models/resend_transaction_webhooks_request.py +fireblocks_client/models/resend_webhooks_by_transaction_id_response.py +fireblocks_client/models/resend_webhooks_response.py +fireblocks_client/models/respond_to_connection_request.py +fireblocks_client/models/reward_info.py +fireblocks_client/models/rewards_info.py +fireblocks_client/models/screening_configurations_request.py +fireblocks_client/models/screening_operation_execution.py +fireblocks_client/models/screening_operation_execution_output.py +fireblocks_client/models/screening_operation_failure.py +fireblocks_client/models/screening_operation_type.py +fireblocks_client/models/screening_policy_response.py +fireblocks_client/models/screening_provider_rules_configuration_response.py +fireblocks_client/models/screening_update_configurations_request.py +fireblocks_client/models/screening_validation_failure.py +fireblocks_client/models/screening_verdict.py +fireblocks_client/models/screening_verdict_matched_rule.py +fireblocks_client/models/session_dto.py +fireblocks_client/models/session_metadata.py +fireblocks_client/models/set_admin_quorum_threshold_request.py +fireblocks_client/models/set_admin_quorum_threshold_response.py +fireblocks_client/models/set_auto_fuel_request.py +fireblocks_client/models/set_confirmations_threshold_request.py +fireblocks_client/models/set_confirmations_threshold_response.py +fireblocks_client/models/set_customer_ref_id_for_address_request.py +fireblocks_client/models/set_customer_ref_id_request.py +fireblocks_client/models/set_network_id_discoverability_request.py +fireblocks_client/models/set_network_id_name_request.py +fireblocks_client/models/set_network_id_response.py +fireblocks_client/models/set_network_id_routing_policy_request.py +fireblocks_client/models/set_ota_status_request.py +fireblocks_client/models/set_ota_status_response.py +fireblocks_client/models/set_ota_status_response_one_of.py +fireblocks_client/models/set_routing_policy_request.py +fireblocks_client/models/set_routing_policy_response.py +fireblocks_client/models/settlement_request_body.py +fireblocks_client/models/settlement_response.py +fireblocks_client/models/signed_message.py +fireblocks_client/models/signed_message_signature.py +fireblocks_client/models/smart_transfer_bad_request_response.py +fireblocks_client/models/smart_transfer_create_ticket.py +fireblocks_client/models/smart_transfer_create_ticket_term.py +fireblocks_client/models/smart_transfer_forbidden_response.py +fireblocks_client/models/smart_transfer_fund_term.py +fireblocks_client/models/smart_transfer_manually_fund_term.py +fireblocks_client/models/smart_transfer_not_found_response.py +fireblocks_client/models/smart_transfer_set_ticket_expiration.py +fireblocks_client/models/smart_transfer_set_ticket_external_id.py +fireblocks_client/models/smart_transfer_set_user_groups.py +fireblocks_client/models/smart_transfer_submit_ticket.py +fireblocks_client/models/smart_transfer_ticket.py +fireblocks_client/models/smart_transfer_ticket_filtered_response.py +fireblocks_client/models/smart_transfer_ticket_response.py +fireblocks_client/models/smart_transfer_ticket_term.py +fireblocks_client/models/smart_transfer_ticket_term_response.py +fireblocks_client/models/smart_transfer_update_ticket_term.py +fireblocks_client/models/smart_transfer_user_groups.py +fireblocks_client/models/smart_transfer_user_groups_response.py +fireblocks_client/models/solana_blockchain_data_dto.py +fireblocks_client/models/source_transfer_peer_path.py +fireblocks_client/models/source_transfer_peer_path_response.py +fireblocks_client/models/spam_ownership_response.py +fireblocks_client/models/spam_token_response.py +fireblocks_client/models/src_or_dest_attributes_inner.py +fireblocks_client/models/stake_request_dto.py +fireblocks_client/models/stake_response_dto.py +fireblocks_client/models/stellar_ripple_create_params_dto.py +fireblocks_client/models/system_message_info.py +fireblocks_client/models/task.py +fireblocks_client/models/templates_paginated_response.py +fireblocks_client/models/third_party_routing.py +fireblocks_client/models/to_collateral_transaction.py +fireblocks_client/models/to_exchange_transaction.py +fireblocks_client/models/token_collection_response.py +fireblocks_client/models/token_link_dto.py +fireblocks_client/models/token_link_dto_token_metadata.py +fireblocks_client/models/token_link_exists_http_error.py +fireblocks_client/models/token_link_request_dto.py +fireblocks_client/models/token_ownership_response.py +fireblocks_client/models/token_ownership_spam_update_payload.py +fireblocks_client/models/token_ownership_status_update_payload.py +fireblocks_client/models/token_response.py +fireblocks_client/models/tokens_paginated_response.py +fireblocks_client/models/trading_account_type.py +fireblocks_client/models/transaction.py +fireblocks_client/models/transaction_fee.py +fireblocks_client/models/transaction_operation.py +fireblocks_client/models/transaction_request.py +fireblocks_client/models/transaction_request_amount.py +fireblocks_client/models/transaction_request_destination.py +fireblocks_client/models/transaction_request_fee.py +fireblocks_client/models/transaction_request_gas_limit.py +fireblocks_client/models/transaction_request_gas_price.py +fireblocks_client/models/transaction_request_network_fee.py +fireblocks_client/models/transaction_request_network_staking.py +fireblocks_client/models/transaction_request_priority_fee.py +fireblocks_client/models/transaction_response.py +fireblocks_client/models/transaction_response_contract_call_decoded_data.py +fireblocks_client/models/transaction_response_destination.py +fireblocks_client/models/transfer_config_operation.py +fireblocks_client/models/transfer_operation_config_params.py +fireblocks_client/models/transfer_operation_execution.py +fireblocks_client/models/transfer_operation_execution_output.py +fireblocks_client/models/transfer_operation_execution_params.py +fireblocks_client/models/transfer_operation_execution_params_execution_params.py +fireblocks_client/models/transfer_operation_failure.py +fireblocks_client/models/transfer_operation_failure_data.py +fireblocks_client/models/transfer_operation_preview.py +fireblocks_client/models/transfer_operation_preview_output.py +fireblocks_client/models/transfer_operation_type.py +fireblocks_client/models/transfer_peer_path_sub_type.py +fireblocks_client/models/transfer_peer_path_type.py +fireblocks_client/models/transfer_validation_failure.py +fireblocks_client/models/travel_rule_address.py +fireblocks_client/models/travel_rule_create_transaction_request.py +fireblocks_client/models/travel_rule_get_all_vasps_response.py +fireblocks_client/models/travel_rule_issuer.py +fireblocks_client/models/travel_rule_issuers.py +fireblocks_client/models/travel_rule_ownership_proof.py +fireblocks_client/models/travel_rule_pii_ivms.py +fireblocks_client/models/travel_rule_policy_rule_response.py +fireblocks_client/models/travel_rule_transaction_blockchain_info.py +fireblocks_client/models/travel_rule_update_vasp_details.py +fireblocks_client/models/travel_rule_validate_full_transaction_request.py +fireblocks_client/models/travel_rule_validate_transaction_request.py +fireblocks_client/models/travel_rule_validate_transaction_response.py +fireblocks_client/models/travel_rule_vasp.py +fireblocks_client/models/unfreeze_transaction_response.py +fireblocks_client/models/unmanaged_wallet.py +fireblocks_client/models/unspent_input.py +fireblocks_client/models/unspent_inputs_response.py +fireblocks_client/models/unstake_request_dto.py +fireblocks_client/models/update_token_ownership_status_dto.py +fireblocks_client/models/update_vault_account_asset_address_request.py +fireblocks_client/models/update_vault_account_request.py +fireblocks_client/models/user_group_create_request.py +fireblocks_client/models/user_group_create_response.py +fireblocks_client/models/user_group_response.py +fireblocks_client/models/user_group_update_request.py +fireblocks_client/models/user_response.py +fireblocks_client/models/user_role.py +fireblocks_client/models/user_status.py +fireblocks_client/models/user_type.py +fireblocks_client/models/validate_address_response.py +fireblocks_client/models/validator_dto.py +fireblocks_client/models/vault_account.py +fireblocks_client/models/vault_accounts_paged_response.py +fireblocks_client/models/vault_accounts_paged_response_paging.py +fireblocks_client/models/vault_action_status.py +fireblocks_client/models/vault_asset.py +fireblocks_client/models/vault_wallet_address.py +fireblocks_client/models/vendor_dto.py +fireblocks_client/models/wallet_asset.py +fireblocks_client/models/wallet_asset_additional_info.py +fireblocks_client/models/withdraw_request_dto.py +fireblocks_client/models/workflow_config_status.py +fireblocks_client/models/workflow_configuration_id.py +fireblocks_client/models/workflow_execution_operation.py +fireblocks_client/models/write_abi_function.py +fireblocks_client/models/write_call_function_dto.py +fireblocks_client/models/write_call_function_response_dto.py +fireblocks_client/py.typed fireblocks_client/rest.py -fireblocks_client/schemas.py git_push.sh +pyproject.toml requirements.txt setup.cfg setup.py test-requirements.txt test/__init__.py -test/test_models/__init__.py -test/test_models/test_add_collateral_request_body.py -test/test_models/test_aml_screening_result.py -test/test_models/test_amount_aggregation_time_period_method.py -test/test_models/test_amount_info.py -test/test_models/test_asset_type_response.py -test/test_models/test_asset_wallet.py -test/test_models/test_authorization_groups.py -test/test_models/test_authorization_info.py -test/test_models/test_block_info.py -test/test_models/test_cancel_transaction_response.py -test/test_models/test_collection_ownership_response.py -test/test_models/test_config_change_request_status.py -test/test_models/test_create_address_response.py -test/test_models/test_create_connection_request.py -test/test_models/test_create_connection_response.py -test/test_models/test_create_internal_transfer_request.py -test/test_models/test_create_payout_request.py -test/test_models/test_create_transaction_response.py -test/test_models/test_create_vault_asset_response.py -test/test_models/test_custom_crypto_routing_dest.py -test/test_models/test_custom_fiat_routing_dest.py -test/test_models/test_default_network_routing_dest.py -test/test_models/test_destination_transfer_peer_path.py -test/test_models/test_destination_transfer_peer_path_response.py -test/test_models/test_dispatch_payout_response.py -test/test_models/test_draft_response.py -test/test_models/test_draft_review_and_validation_response.py -test/test_models/test_drop_transaction_request.py -test/test_models/test_drop_transaction_response.py -test/test_models/test_error.py -test/test_models/test_error_response.py -test/test_models/test_estimated_network_fee_response.py -test/test_models/test_estimated_transaction_fee_response.py -test/test_models/test_exchange_account.py -test/test_models/test_exchange_asset.py -test/test_models/test_exchange_trading_account.py -test/test_models/test_exchange_type.py -test/test_models/test_external_wallet_asset.py -test/test_models/test_fee_info.py -test/test_models/test_fiat_account.py -test/test_models/test_fiat_account_type.py -test/test_models/test_fiat_asset.py -test/test_models/test_freeze_transaction_response.py -test/test_models/test_gas_station_configuration.py -test/test_models/test_gas_station_properties_response.py -test/test_models/test_get_connections_response.py -test/test_models/test_get_settlement_response.py -test/test_models/test_get_transaction_operation.py -test/test_models/test_get_users_response.py -test/test_models/test_instruction_amount.py -test/test_models/test_media_entity_response.py -test/test_models/test_network_channel.py -test/test_models/test_network_connection.py -test/test_models/test_network_connection_response.py -test/test_models/test_network_connection_routing_policy.py -test/test_models/test_network_fee.py -test/test_models/test_network_id.py -test/test_models/test_network_id_response.py -test/test_models/test_network_id_routing_policy.py -test/test_models/test_network_record.py -test/test_models/test_none_network_routing_dest.py -test/test_models/test_one_time_address.py -test/test_models/test_paginated_asset_wallet_response.py -test/test_models/test_paging.py -test/test_models/test_payee_account.py -test/test_models/test_payee_account_response.py -test/test_models/test_payee_account_type.py -test/test_models/test_payment_account.py -test/test_models/test_payment_account_response.py -test/test_models/test_payment_account_type.py -test/test_models/test_payout_init_method.py -test/test_models/test_payout_instruction.py -test/test_models/test_payout_instruction_response.py -test/test_models/test_payout_instruction_state.py -test/test_models/test_payout_response.py -test/test_models/test_payout_state.py -test/test_models/test_payout_status.py -test/test_models/test_policy_and_validation_response.py -test/test_models/test_policy_check_result.py -test/test_models/test_policy_metadata.py -test/test_models/test_policy_response.py -test/test_models/test_policy_rule.py -test/test_models/test_policy_rule_check_result.py -test/test_models/test_policy_rule_error.py -test/test_models/test_policy_src_or_dest_id.py -test/test_models/test_policy_src_or_dest_sub_type.py -test/test_models/test_policy_src_or_dest_type.py -test/test_models/test_policy_status.py -test/test_models/test_policy_validation.py -test/test_models/test_public_key_information.py -test/test_models/test_publish_result.py -test/test_models/test_remove_collateral_request_body.py -test/test_models/test_resend_webhooks_response.py -test/test_models/test_respond_to_connection_request.py -test/test_models/test_reward_info.py -test/test_models/test_rewards_info.py -test/test_models/test_session_dto.py -test/test_models/test_session_metadata.py -test/test_models/test_set_confirmations_threshold_request.py -test/test_models/test_set_confirmations_threshold_response.py -test/test_models/test_settlement_request_body.py -test/test_models/test_settlement_response.py -test/test_models/test_signed_message.py -test/test_models/test_source_transfer_peer_path_response.py -test/test_models/test_system_message_info.py -test/test_models/test_term.py -test/test_models/test_to_collateral_transaction.py -test/test_models/test_to_exchange_transaction.py -test/test_models/test_token_collection_response.py -test/test_models/test_token_ownership_response.py -test/test_models/test_token_response.py -test/test_models/test_trading_account_type.py -test/test_models/test_transaction.py -test/test_models/test_transaction_fee.py -test/test_models/test_transaction_operation.py -test/test_models/test_transaction_request.py -test/test_models/test_transaction_request_destination.py -test/test_models/test_transaction_response.py -test/test_models/test_transaction_response_destination.py -test/test_models/test_transfer_peer_path.py -test/test_models/test_travel_rule_address.py -test/test_models/test_travel_rule_get_all_vasps_response.py -test/test_models/test_travel_rule_issuer.py -test/test_models/test_travel_rule_issuers.py -test/test_models/test_travel_rule_ownership_proof.py -test/test_models/test_travel_rule_pii_ivms.py -test/test_models/test_travel_rule_transaction_blockchain_info.py -test/test_models/test_travel_rule_update_vasp_details.py -test/test_models/test_travel_rule_validate_full_transaction_request.py -test/test_models/test_travel_rule_validate_transaction_request.py -test/test_models/test_travel_rule_validate_transaction_response.py -test/test_models/test_travel_rule_vasp.py -test/test_models/test_unfreeze_transaction_response.py -test/test_models/test_unmanaged_wallet.py -test/test_models/test_unsigned_message.py -test/test_models/test_unspent_input.py -test/test_models/test_unspent_inputs_response.py -test/test_models/test_update_token_ownership_status_dto.py -test/test_models/test_user_response.py -test/test_models/test_validate_address_response.py -test/test_models/test_vault_account.py -test/test_models/test_vault_accounts_paged_response.py -test/test_models/test_vault_asset.py -test/test_models/test_vault_wallet_address.py -test/test_models/test_wallet_asset.py -test/test_models/test_wallet_asset_additional_info.py -test/test_models/test_xb_settlement_asset.py -test/test_models/test_xb_settlement_asset_id.py -test/test_models/test_xb_settlement_config_creation_request_body.py -test/test_models/test_xb_settlement_config_creation_response.py -test/test_models/test_xb_settlement_config_deletion_response.py -test/test_models/test_xb_settlement_config_edit_request_body.py -test/test_models/test_xb_settlement_config_edit_response.py -test/test_models/test_xb_settlement_config_id.py -test/test_models/test_xb_settlement_config_model.py -test/test_models/test_xb_settlement_config_step.py -test/test_models/test_xb_settlement_config_steps_record.py -test/test_models/test_xb_settlement_conversion_slippage_basis_points.py -test/test_models/test_xb_settlement_corridor_id.py -test/test_models/test_xb_settlement_create_flow_request_body.py -test/test_models/test_xb_settlement_create_flow_response.py -test/test_models/test_xb_settlement_crypto_asset.py -test/test_models/test_xb_settlement_fiat_asset.py -test/test_models/test_xb_settlement_flow_execution_model.py -test/test_models/test_xb_settlement_flow_execution_request_body.py -test/test_models/test_xb_settlement_flow_execution_response.py -test/test_models/test_xb_settlement_flow_execution_status.py -test/test_models/test_xb_settlement_flow_execution_step.py -test/test_models/test_xb_settlement_flow_execution_step_status.py -test/test_models/test_xb_settlement_flow_preview_model.py -test/test_models/test_xb_settlement_flow_selected_conversion_slippage_reason.py -test/test_models/test_xb_settlement_flow_setup_step.py -test/test_models/test_xb_settlement_flow_steps_execution_record.py -test/test_models/test_xb_settlement_flow_steps_record.py -test/test_models/test_xb_settlement_get_all_configs_response.py -test/test_models/test_xb_settlement_get_config_response.py -test/test_models/test_xb_settlement_get_flow_response.py -test/test_models/test_xb_settlement_step_type.py +test/test_abi_function.py +test/test_account.py +test/test_account_type.py +test/test_add_asset_to_external_wallet_request.py +test/test_add_asset_to_external_wallet_request_one_of.py +test/test_add_asset_to_external_wallet_request_one_of1.py +test/test_add_asset_to_external_wallet_request_one_of1_additional_info.py +test/test_add_asset_to_external_wallet_request_one_of1_additional_info_one_of.py +test/test_add_asset_to_external_wallet_request_one_of1_additional_info_one_of1.py +test/test_add_asset_to_external_wallet_request_one_of1_additional_info_one_of2.py +test/test_add_collateral_request_body.py +test/test_add_contract_asset_request.py +test/test_additional_info_dto.py +test/test_aml_registration_result.py +test/test_aml_screening_result.py +test/test_amount_aggregation_time_period_method.py +test/test_amount_and_chain_descriptor.py +test/test_amount_info.py +test/test_api_key.py +test/test_api_keys_paginated_response.py +test/test_api_user.py +test/test_api_user_api.py +test/test_asset_already_exist_http_error.py +test/test_asset_amount.py +test/test_asset_bad_request_error_response.py +test/test_asset_conflict_error_response.py +test/test_asset_does_not_exist_http_error.py +test/test_asset_forbidden_error_response.py +test/test_asset_internal_server_error_response.py +test/test_asset_metadata_dto.py +test/test_asset_not_found_error_response.py +test/test_asset_response.py +test/test_asset_response_metadata.py +test/test_asset_response_onchain.py +test/test_asset_type_response.py +test/test_asset_wallet.py +test/test_assets_api.py +test/test_audit_log_data.py +test/test_audit_logs_api.py +test/test_auditor_data.py +test/test_authorization_groups.py +test/test_authorization_info.py +test/test_block_info.py +test/test_blockchains_assets_api.py +test/test_cancel_transaction_response.py +test/test_chain_info_response_dto.py +test/test_collection_metadata_dto.py +test/test_collection_ownership_response.py +test/test_compliance_api.py +test/test_compliance_result.py +test/test_compliance_screening_configuration_api.py +test/test_compliance_screening_result.py +test/test_config_change_request_status.py +test/test_config_conversion_operation_snapshot.py +test/test_config_disbursement_operation_snapshot.py +test/test_config_operation.py +test/test_config_operation_snapshot.py +test/test_config_operation_status.py +test/test_config_transfer_operation_snapshot.py +test/test_console_user.py +test/test_console_user_api.py +test/test_contract_abi_response_dto.py +test/test_contract_attributes.py +test/test_contract_deploy_request.py +test/test_contract_deploy_response.py +test/test_contract_doc.py +test/test_contract_interactions_api.py +test/test_contract_metadata_dto.py +test/test_contract_template_dto.py +test/test_contract_templates_api.py +test/test_contract_upload_request.py +test/test_contracts_api.py +test/test_conversion_config_operation.py +test/test_conversion_operation_config_params.py +test/test_conversion_operation_execution.py +test/test_conversion_operation_execution_output.py +test/test_conversion_operation_execution_params.py +test/test_conversion_operation_execution_params_execution_params.py +test/test_conversion_operation_failure.py +test/test_conversion_operation_preview.py +test/test_conversion_operation_preview_output.py +test/test_conversion_operation_type.py +test/test_conversion_validation_failure.py +test/test_convert_assets_request.py +test/test_convert_assets_response.py +test/test_cosigner.py +test/test_cosigners_beta_api.py +test/test_cosigners_paginated_response.py +test/test_create_address_request.py +test/test_create_address_response.py +test/test_create_api_user.py +test/test_create_assets_bulk_request.py +test/test_create_assets_request.py +test/test_create_config_operation_request.py +test/test_create_connection_request.py +test/test_create_connection_response.py +test/test_create_console_user.py +test/test_create_contract_request.py +test/test_create_conversion_config_operation_request.py +test/test_create_disbursement_config_operation_request.py +test/test_create_internal_transfer_request.py +test/test_create_internal_wallet_asset_request.py +test/test_create_multiple_accounts_request.py +test/test_create_ncw_connection_request.py +test/test_create_network_id_request.py +test/test_create_payout_request.py +test/test_create_token_request_dto.py +test/test_create_token_request_dto_create_params.py +test/test_create_transaction_response.py +test/test_create_transfer_config_operation_request.py +test/test_create_user_group_response.py +test/test_create_vault_account_connection_request.py +test/test_create_vault_account_request.py +test/test_create_vault_asset_response.py +test/test_create_wallet_request.py +test/test_create_workflow_execution_request_params_inner.py +test/test_custom_routing_dest.py +test/test_default_network_routing_dest.py +test/test_delegation_dto.py +test/test_delegation_summary_dto.py +test/test_delete_network_connection_response.py +test/test_delete_network_id_response.py +test/test_deployed_contract_response_dto.py +test/test_deployed_contracts_api.py +test/test_deployed_contracts_paginated_response.py +test/test_deposit_funds_from_linked_dda_response.py +test/test_destination.py +test/test_destination_transfer_peer_path.py +test/test_destination_transfer_peer_path_response.py +test/test_disbursement_amount_instruction.py +test/test_disbursement_config_operation.py +test/test_disbursement_instruction.py +test/test_disbursement_instruction_output.py +test/test_disbursement_operation_config_params.py +test/test_disbursement_operation_execution.py +test/test_disbursement_operation_execution_output.py +test/test_disbursement_operation_execution_params.py +test/test_disbursement_operation_execution_params_execution_params.py +test/test_disbursement_operation_input.py +test/test_disbursement_operation_preview.py +test/test_disbursement_operation_preview_output.py +test/test_disbursement_operation_preview_output_instruction_set_inner.py +test/test_disbursement_operation_type.py +test/test_disbursement_percentage_instruction.py +test/test_disbursement_validation_failure.py +test/test_dispatch_payout_response.py +test/test_draft_response.py +test/test_draft_review_and_validation_response.py +test/test_drop_transaction_request.py +test/test_drop_transaction_response.py +test/test_edit_gas_station_configuration_response.py +test/test_error_response.py +test/test_error_response_error.py +test/test_error_schema.py +test/test_estimated_network_fee_response.py +test/test_estimated_transaction_fee_response.py +test/test_evm_token_create_params_dto.py +test/test_exchange_account.py +test/test_exchange_accounts_api.py +test/test_exchange_accounts_paged.py +test/test_exchange_accounts_paged_paging.py +test/test_exchange_asset.py +test/test_exchange_settlement_transactions_response.py +test/test_exchange_trading_account.py +test/test_exchange_type.py +test/test_execute_action_request.py +test/test_execute_action_response.py +test/test_execution_conversion_operation.py +test/test_execution_disbursement_operation.py +test/test_execution_operation_status.py +test/test_execution_screening_operation.py +test/test_execution_transfer_operation.py +test/test_external_wallet_asset.py +test/test_external_wallets_api.py +test/test_fee_info.py +test/test_fiat_account.py +test/test_fiat_account_type.py +test/test_fiat_accounts_api.py +test/test_fiat_asset.py +test/test_freeze_transaction_response.py +test/test_function_doc.py +test/test_funds.py +test/test_gas_station_configuration.py +test/test_gas_station_configuration_response.py +test/test_gas_station_properties_response.py +test/test_gas_stations_api.py +test/test_get_api_users_response.py +test/test_get_audit_logs_response.py +test/test_get_audit_logs_response_dto.py +test/test_get_connections_response.py +test/test_get_console_users_response.py +test/test_get_filter_parameter.py +test/test_get_max_spendable_amount_response.py +test/test_get_nfts_response.py +test/test_get_ota_status_response.py +test/test_get_ownership_tokens_response.py +test/test_get_transaction_operation.py +test/test_get_whitelist_ip_addresses_response.py +test/test_get_workspace_status_response.py +test/test_http_contract_does_not_exist_error.py +test/test_instruction_amount.py +test/test_internal_transfer_response.py +test/test_internal_wallets_api.py +test/test_job.py +test/test_job_created.py +test/test_job_management_api.py +test/test_lean_abi_function.py +test/test_lean_contract_dto.py +test/test_lean_deployed_contract_response_dto.py +test/test_list_owned_collections_response.py +test/test_list_owned_tokens_response.py +test/test_media_entity_response.py +test/test_network_channel.py +test/test_network_connection.py +test/test_network_connection_response.py +test/test_network_connection_routing_policy_value.py +test/test_network_connection_status.py +test/test_network_connections_api.py +test/test_network_fee.py +test/test_network_id.py +test/test_network_id_response.py +test/test_network_id_routing_policy_value.py +test/test_network_record.py +test/test_nfts_api.py +test/test_none_network_routing_dest.py +test/test_not_found_exception.py +test/test_off_exchanges_api.py +test/test_one_time_address.py +test/test_one_time_address_account.py +test/test_operation_execution_failure.py +test/test_ota_beta_api.py +test/test_paginated_address_response.py +test/test_paginated_address_response_paging.py +test/test_paginated_asset_wallet_response.py +test/test_paginated_asset_wallet_response_paging.py +test/test_paging.py +test/test_parameter.py +test/test_parameter_with_value.py +test/test_payee_account.py +test/test_payee_account_response.py +test/test_payee_account_type.py +test/test_payment_account.py +test/test_payment_account_response.py +test/test_payment_account_type.py +test/test_payments_payout_api.py +test/test_payout_init_method.py +test/test_payout_instruction.py +test/test_payout_instruction_response.py +test/test_payout_instruction_state.py +test/test_payout_response.py +test/test_payout_state.py +test/test_payout_status.py +test/test_policy_and_validation_response.py +test/test_policy_check_result.py +test/test_policy_editor_beta_api.py +test/test_policy_metadata.py +test/test_policy_response.py +test/test_policy_rule.py +test/test_policy_rule_amount.py +test/test_policy_rule_amount_aggregation.py +test/test_policy_rule_authorization_groups.py +test/test_policy_rule_authorization_groups_groups_inner.py +test/test_policy_rule_check_result.py +test/test_policy_rule_designated_signers.py +test/test_policy_rule_dst.py +test/test_policy_rule_error.py +test/test_policy_rule_operators.py +test/test_policy_rule_raw_message_signing.py +test/test_policy_rule_raw_message_signing_derivation_path.py +test/test_policy_rule_src.py +test/test_policy_rules.py +test/test_policy_src_or_dest_sub_type.py +test/test_policy_src_or_dest_type.py +test/test_policy_status.py +test/test_policy_validation.py +test/test_pre_screening.py +test/test_provider_dto.py +test/test_public_key_information.py +test/test_publish_draft_request.py +test/test_publish_result.py +test/test_read_abi_function.py +test/test_read_call_function_dto.py +test/test_redeem_funds_to_linked_dda_response.py +test/test_register_new_asset_request.py +test/test_related_transaction_dto.py +test/test_remove_collateral_request_body.py +test/test_rename_cosigner.py +test/test_rename_vault_account_response.py +test/test_resend_transaction_webhooks_request.py +test/test_resend_webhooks_by_transaction_id_response.py +test/test_resend_webhooks_response.py +test/test_reset_device_api.py +test/test_respond_to_connection_request.py +test/test_reward_info.py +test/test_rewards_info.py +test/test_screening_configurations_request.py +test/test_screening_operation_execution.py +test/test_screening_operation_execution_output.py +test/test_screening_operation_failure.py +test/test_screening_operation_type.py +test/test_screening_policy_response.py +test/test_screening_provider_rules_configuration_response.py +test/test_screening_update_configurations_request.py +test/test_screening_validation_failure.py +test/test_screening_verdict.py +test/test_screening_verdict_matched_rule.py +test/test_session_dto.py +test/test_session_metadata.py +test/test_set_admin_quorum_threshold_request.py +test/test_set_admin_quorum_threshold_response.py +test/test_set_auto_fuel_request.py +test/test_set_confirmations_threshold_request.py +test/test_set_confirmations_threshold_response.py +test/test_set_customer_ref_id_for_address_request.py +test/test_set_customer_ref_id_request.py +test/test_set_network_id_discoverability_request.py +test/test_set_network_id_name_request.py +test/test_set_network_id_response.py +test/test_set_network_id_routing_policy_request.py +test/test_set_ota_status_request.py +test/test_set_ota_status_response.py +test/test_set_ota_status_response_one_of.py +test/test_set_routing_policy_request.py +test/test_set_routing_policy_response.py +test/test_settlement_request_body.py +test/test_settlement_response.py +test/test_signed_message.py +test/test_signed_message_signature.py +test/test_smart_transfer_api.py +test/test_smart_transfer_bad_request_response.py +test/test_smart_transfer_create_ticket.py +test/test_smart_transfer_create_ticket_term.py +test/test_smart_transfer_forbidden_response.py +test/test_smart_transfer_fund_term.py +test/test_smart_transfer_manually_fund_term.py +test/test_smart_transfer_not_found_response.py +test/test_smart_transfer_set_ticket_expiration.py +test/test_smart_transfer_set_ticket_external_id.py +test/test_smart_transfer_set_user_groups.py +test/test_smart_transfer_submit_ticket.py +test/test_smart_transfer_ticket.py +test/test_smart_transfer_ticket_filtered_response.py +test/test_smart_transfer_ticket_response.py +test/test_smart_transfer_ticket_term.py +test/test_smart_transfer_ticket_term_response.py +test/test_smart_transfer_update_ticket_term.py +test/test_smart_transfer_user_groups.py +test/test_smart_transfer_user_groups_response.py +test/test_solana_blockchain_data_dto.py +test/test_source_transfer_peer_path.py +test/test_source_transfer_peer_path_response.py +test/test_spam_ownership_response.py +test/test_spam_token_response.py +test/test_src_or_dest_attributes_inner.py +test/test_stake_request_dto.py +test/test_stake_response_dto.py +test/test_staking_beta_api.py +test/test_stellar_ripple_create_params_dto.py +test/test_system_message_info.py +test/test_task.py +test/test_templates_paginated_response.py +test/test_third_party_routing.py +test/test_to_collateral_transaction.py +test/test_to_exchange_transaction.py +test/test_token_collection_response.py +test/test_token_link_dto.py +test/test_token_link_dto_token_metadata.py +test/test_token_link_exists_http_error.py +test/test_token_link_request_dto.py +test/test_token_ownership_response.py +test/test_token_ownership_spam_update_payload.py +test/test_token_ownership_status_update_payload.py +test/test_token_response.py +test/test_tokenization_api.py +test/test_tokens_paginated_response.py +test/test_trading_account_type.py +test/test_transaction.py +test/test_transaction_fee.py +test/test_transaction_operation.py +test/test_transaction_request.py +test/test_transaction_request_amount.py +test/test_transaction_request_destination.py +test/test_transaction_request_fee.py +test/test_transaction_request_gas_limit.py +test/test_transaction_request_gas_price.py +test/test_transaction_request_network_fee.py +test/test_transaction_request_network_staking.py +test/test_transaction_request_priority_fee.py +test/test_transaction_response.py +test/test_transaction_response_contract_call_decoded_data.py +test/test_transaction_response_destination.py +test/test_transactions_api.py +test/test_transfer_config_operation.py +test/test_transfer_operation_config_params.py +test/test_transfer_operation_execution.py +test/test_transfer_operation_execution_output.py +test/test_transfer_operation_execution_params.py +test/test_transfer_operation_execution_params_execution_params.py +test/test_transfer_operation_failure.py +test/test_transfer_operation_failure_data.py +test/test_transfer_operation_preview.py +test/test_transfer_operation_preview_output.py +test/test_transfer_operation_type.py +test/test_transfer_peer_path_sub_type.py +test/test_transfer_peer_path_type.py +test/test_transfer_validation_failure.py +test/test_travel_rule_address.py +test/test_travel_rule_beta_api.py +test/test_travel_rule_create_transaction_request.py +test/test_travel_rule_get_all_vasps_response.py +test/test_travel_rule_issuer.py +test/test_travel_rule_issuers.py +test/test_travel_rule_ownership_proof.py +test/test_travel_rule_pii_ivms.py +test/test_travel_rule_policy_rule_response.py +test/test_travel_rule_transaction_blockchain_info.py +test/test_travel_rule_update_vasp_details.py +test/test_travel_rule_validate_full_transaction_request.py +test/test_travel_rule_validate_transaction_request.py +test/test_travel_rule_validate_transaction_response.py +test/test_travel_rule_vasp.py +test/test_unfreeze_transaction_response.py +test/test_unmanaged_wallet.py +test/test_unspent_input.py +test/test_unspent_inputs_response.py +test/test_unstake_request_dto.py +test/test_update_token_ownership_status_dto.py +test/test_update_vault_account_asset_address_request.py +test/test_update_vault_account_request.py +test/test_user_group_create_request.py +test/test_user_group_create_response.py +test/test_user_group_response.py +test/test_user_group_update_request.py +test/test_user_groups_beta_api.py +test/test_user_response.py +test/test_user_role.py +test/test_user_status.py +test/test_user_type.py +test/test_users_api.py +test/test_validate_address_response.py +test/test_validator_dto.py +test/test_vault_account.py +test/test_vault_accounts_paged_response.py +test/test_vault_accounts_paged_response_paging.py +test/test_vault_action_status.py +test/test_vault_asset.py +test/test_vault_wallet_address.py +test/test_vaults_api.py +test/test_vendor_dto.py +test/test_wallet_asset.py +test/test_wallet_asset_additional_info.py +test/test_web3_connections_api.py +test/test_webhooks_api.py +test/test_whitelist_ip_addresses_api.py +test/test_withdraw_request_dto.py +test/test_workflow_config_status.py +test/test_workflow_configuration_id.py +test/test_workflow_execution_operation.py +test/test_workspace_status_beta_api.py +test/test_write_abi_function.py +test/test_write_call_function_dto.py +test/test_write_call_function_response_dto.py tox.ini diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION index 4be2c727..8b23b8d4 100644 --- a/.openapi-generator/VERSION +++ b/.openapi-generator/VERSION @@ -1 +1 @@ -6.5.0 \ No newline at end of file +7.3.0 \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index edd7521f..8c0e6899 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,10 +1,14 @@ # ref: https://docs.travis-ci.com/user/languages/python language: python python: - - "3.5" - - "3.6" - "3.7" - "3.8" + - "3.9" + - "3.10" + - "3.11" + # uncomment the following if needed + #- "3.11-dev" # 3.11 development branch + #- "nightly" # nightly build # command to install dependencies install: - "pip install -r requirements.txt" diff --git a/README.md b/README.md index 2ff49f89..43b60c98 100644 --- a/README.md +++ b/README.md @@ -1,419 +1,728 @@ -[![PyPI version](https://badge.fury.io/py/fireblocks.svg)](https://badge.fury.io/py/fireblocks) +# fireblocks +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -# Fireblocks SDK +This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -The Fireblocks SDK allows developers to seamlessly integrate with the Fireblocks platform and perform a variety of operations, including managing vault accounts and executing transactions securely. - -For detailed documentation and additional resources, please refer to the [Fireblocks Developer Portal](https://developers.fireblocks.com/). - -> **Warning** -> This package is currently in a beta stage and should be used at your own risk. -> The provided interfaces might go through backwards-incompatibale changes. -> For a more stable SDK, please use the [Fireblocks Python SDK](https://github.com/fireblocks/fireblocks-sdk-py) +- API version: 1.6.2 +- Package version: 1.0.0 +- Build package: org.openapitools.codegen.languages.PythonClientCodegen ## Requirements. -Python >=3.7 - -### Endpoint responses -Endpoint responses have been enriched to now include more information. -Any response reom an endpoint will now include the following properties: -response: urllib3.HTTPResponse -body: typing.Union[Unset, Schema] -headers: typing.Union[Unset, TODO] -Note: response header deserialization has not yet been added - +Python 3.7+ ## Installation & Usage +### pip install + If the python package is hosted on a repository, you can install directly using: + ```sh -pip install fireblocks +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 fireblocks_client ``` -## Usage -

Using Environment Variables
-You can initialize the SDK using environment variables from your .env file or by setting them programmatically:

+### Setuptools -```python -// Set the environment variables -os.environ["FIREBLOCKS_BASE_PATH"] = 'https://sandbox-api.fireblocks.io/v1' -os.environ["FIREBLOCKS_API_KEY"] = '' -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() +Install via [Setuptools](http://pypi.python.org/pypi/setuptools). + +```sh +python setup.py install --user ``` -

Providing Local Variables
-Alternatively, you can directly pass the required parameters when initializing the Fireblocks API instance:

+(or `sudo python setup.py install` to install the package for all users) +Then import the package: ```python -FIREBLOCKS_API_SECRET_PATH = "./fireblocks_secret.key"; - -// Initialize a Fireblocks API instance with local variables -config = Configuration(api_key="my-api-key", base_path="https://sandbox-api.fireblocks.io/v1",secret_key=open(FIREBLOCKS_API_SECRET_PATH, "r").read()) -vault_api = vaults_api.VaultsApi(config); +import fireblocks_client ``` -## Examples +### Tests -

Create a Vault Account
-To create a new vault account, you can use the following function:

+Execute `pytest` to run the tests. -```python -create_vault_account_response = vault_api.create_vault_account(body={"name": "New Vault"}) -``` +## Getting Started -

Create a Transaction
-To make a transaction between vault accounts, you can use the following function:

+Please follow the [installation procedure](#installation--usage) and then run the following: ```python -tx_request = tx_api_instance.create_transaction( - body=TransactionRequest( - source=TransferPeerPath(id="0", type="VAULT_ACCOUNT"), - destination=DestinationTransferPeerPath( - id="0", type="VAULT_ACCOUNT" - ), - assetId="ETH_TEST3", - amount="0.001", - ) - ) + +import fireblocks_client +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.ApiUserApi(api_client) + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + create_api_user = fireblocks_client.CreateAPIUser() # CreateAPIUser | (optional) + + try: + # Create Api user + api_instance.create_api_user(idempotency_key=idempotency_key, create_api_user=create_api_user) + except ApiException as e: + print("Exception when calling ApiUserApi->create_api_user: %s\n" % e) + ``` ## Documentation for API Endpoints -All URIs are relative to https://developers.fireblocks.com/reference/ +All URIs are relative to *https://api.fireblocks.io/v1* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- -*AuditLogsApi* | [**get_audits**](docs/apis/tags/AuditLogsApi.md#get_audits) | **get** /audits | Get audit logs -*BlockchainsAssetsApi* | [**get_supported_assets**](docs/apis/tags/BlockchainsAssetsApi.md#get_supported_assets) | **get** /supported_assets | List all asset types supported by Fireblocks -*ContractsApi* | [**add_asset_to_contract**](docs/apis/tags/ContractsApi.md#add_asset_to_contract) | **post** /contracts/{contractId}/{assetId} | Add an asset to a contract -*ContractsApi* | [**create_contract**](docs/apis/tags/ContractsApi.md#create_contract) | **post** /contracts | Create a contract -*ContractsApi* | [**delete_contract**](docs/apis/tags/ContractsApi.md#delete_contract) | **delete** /contracts/{contractId} | Delete a contract -*ContractsApi* | [**get_asset_in_contract**](docs/apis/tags/ContractsApi.md#get_asset_in_contract) | **get** /contracts/{contractId}/{assetId} | Find a contract asset -*ContractsApi* | [**get_contract_by_id**](docs/apis/tags/ContractsApi.md#get_contract_by_id) | **get** /contracts/{contractId} | Find a specific contract -*ContractsApi* | [**get_contracts**](docs/apis/tags/ContractsApi.md#get_contracts) | **get** /contracts | List contracts -*ContractsApi* | [**remove_asset_from_contract**](docs/apis/tags/ContractsApi.md#remove_asset_from_contract) | **delete** /contracts/{contractId}/{assetId} | Delete a contract asset -*ExchangeAccountsApi* | [**convert_assets**](docs/apis/tags/ExchangeAccountsApi.md#convert_assets) | **post** /exchange_accounts/{exchangeAccountId}/convert | Convert exchange account funds from the source asset to the destination asset. Coinbase (USD to USDC, USDC to USD) and Bitso (MXN to USD) are supported conversions. -*ExchangeAccountsApi* | [**get_exchange_account_asset**](docs/apis/tags/ExchangeAccountsApi.md#get_exchange_account_asset) | **get** /exchange_accounts/{exchangeAccountId}/{assetId} | Find an asset for an exchange account -*ExchangeAccountsApi* | [**get_exchange_account_by_id**](docs/apis/tags/ExchangeAccountsApi.md#get_exchange_account_by_id) | **get** /exchange_accounts/{exchangeAccountId} | Find a specific exchange account -*ExchangeAccountsApi* | [**get_exchange_accounts**](docs/apis/tags/ExchangeAccountsApi.md#get_exchange_accounts) | **get** /exchange_accounts | List exchange accounts -*ExchangeAccountsApi* | [**internal_transfer**](docs/apis/tags/ExchangeAccountsApi.md#internal_transfer) | **post** /exchange_accounts/{exchangeAccountId}/internal_transfer | Internal tranfer for exchange accounts -*ExternalWalletsApi* | [**add_asset_to_external_wallet**](docs/apis/tags/ExternalWalletsApi.md#add_asset_to_external_wallet) | **post** /external_wallets/{walletId}/{assetId} | Add an asset to an external wallet. -*ExternalWalletsApi* | [**create_external_wallet**](docs/apis/tags/ExternalWalletsApi.md#create_external_wallet) | **post** /external_wallets | Create an external wallet -*ExternalWalletsApi* | [**delete_external_wallet**](docs/apis/tags/ExternalWalletsApi.md#delete_external_wallet) | **delete** /external_wallets/{walletId} | Delete an external wallet -*ExternalWalletsApi* | [**get_asset_in_external_wallet**](docs/apis/tags/ExternalWalletsApi.md#get_asset_in_external_wallet) | **get** /external_wallets/{walletId}/{assetId} | Get an asset from an external wallet -*ExternalWalletsApi* | [**get_external_wallet_by_id**](docs/apis/tags/ExternalWalletsApi.md#get_external_wallet_by_id) | **get** /external_wallets/{walletId} | Find an external wallet -*ExternalWalletsApi* | [**get_external_wallets**](docs/apis/tags/ExternalWalletsApi.md#get_external_wallets) | **get** /external_wallets | List external wallets -*ExternalWalletsApi* | [**remove_asset_from_external_wallet**](docs/apis/tags/ExternalWalletsApi.md#remove_asset_from_external_wallet) | **delete** /external_wallets/{walletId}/{assetId} | Delete an asset from an external wallet -*ExternalWalletsApi* | [**set_customer_ref_id_for_external_wallet**](docs/apis/tags/ExternalWalletsApi.md#set_customer_ref_id_for_external_wallet) | **post** /external_wallets/{walletId}/set_customer_ref_id | Set an AML customer reference ID for an external wallet -*FiatAccountsApi* | [**deposit_funds_from_linked_dda**](docs/apis/tags/FiatAccountsApi.md#deposit_funds_from_linked_dda) | **post** /fiat_accounts/{accountId}/deposit_from_linked_dda | Deposit funds from DDA -*FiatAccountsApi* | [**get_fiat_account_by_id**](docs/apis/tags/FiatAccountsApi.md#get_fiat_account_by_id) | **get** /fiat_accounts/{accountId} | Find a specific fiat account -*FiatAccountsApi* | [**get_fiat_accounts**](docs/apis/tags/FiatAccountsApi.md#get_fiat_accounts) | **get** /fiat_accounts | List fiat accounts -*FiatAccountsApi* | [**redeem_funds_to_linked_dda**](docs/apis/tags/FiatAccountsApi.md#redeem_funds_to_linked_dda) | **post** /fiat_accounts/{accountId}/redeem_to_linked_dda | Redeem funds to DDA -*GasStationsApi* | [**get_gas_station**](docs/apis/tags/GasStationsApi.md#get_gas_station) | **get** /gas_station | Get gas station settings -*GasStationsApi* | [**get_gas_station_by_asset_id**](docs/apis/tags/GasStationsApi.md#get_gas_station_by_asset_id) | **get** /gas_station/{assetId} | Get gas station settings by asset -*GasStationsApi* | [**update_gas_station_configuration**](docs/apis/tags/GasStationsApi.md#update_gas_station_configuration) | **put** /gas_station/configuration | Edit gas station settings -*GasStationsApi* | [**update_gas_station_configuration_by_asset_id**](docs/apis/tags/GasStationsApi.md#update_gas_station_configuration_by_asset_id) | **put** /gas_station/configuration/{assetId} | Edit gas station settings for an asset -*InternalWalletsApi* | [**create_internal_wallet**](docs/apis/tags/InternalWalletsApi.md#create_internal_wallet) | **post** /internal_wallets | Create an internal wallet -*InternalWalletsApi* | [**create_internal_wallet_asset**](docs/apis/tags/InternalWalletsApi.md#create_internal_wallet_asset) | **post** /internal_wallets/{walletId}/{assetId} | Add an asset to an internal wallet -*InternalWalletsApi* | [**delete_internal_wallet**](docs/apis/tags/InternalWalletsApi.md#delete_internal_wallet) | **delete** /internal_wallets/{walletId} | Delete an internal wallet -*InternalWalletsApi* | [**delete_internal_wallet_asset**](docs/apis/tags/InternalWalletsApi.md#delete_internal_wallet_asset) | **delete** /internal_wallets/{walletId}/{assetId} | Delete a whitelisted address from an internal wallet -*InternalWalletsApi* | [**get_internal_wallet_asset**](docs/apis/tags/InternalWalletsApi.md#get_internal_wallet_asset) | **get** /internal_wallets/{walletId}/{assetId} | Get an asset from an internal wallet -*InternalWalletsApi* | [**get_internal_wallet_by_id**](docs/apis/tags/InternalWalletsApi.md#get_internal_wallet_by_id) | **get** /internal_wallets/{walletId} | Get assets for internal wallet -*InternalWalletsApi* | [**get_internal_wallets**](docs/apis/tags/InternalWalletsApi.md#get_internal_wallets) | **get** /internal_wallets | List internal wallets -*InternalWalletsApi* | [**set_customer_ref_id_for_internal_wallet**](docs/apis/tags/InternalWalletsApi.md#set_customer_ref_id_for_internal_wallet) | **post** /internal_wallets/{walletId}/set_customer_ref_id | Set an AML/KYT customer reference ID for an internal wallet -*NFTsApi* | [**get_nft**](docs/apis/tags/NFTsApi.md#get_nft) | **get** /nfts/tokens/{id} | List token data by ID -*NFTsApi* | [**get_nfts**](docs/apis/tags/NFTsApi.md#get_nfts) | **get** /nfts/tokens | List tokens by IDs -*NFTsApi* | [**get_ownership_tokens**](docs/apis/tags/NFTsApi.md#get_ownership_tokens) | **get** /nfts/ownership/tokens | List all owned tokens (paginated) -*NFTsApi* | [**list_owned_collections**](docs/apis/tags/NFTsApi.md#list_owned_collections) | **get** /nfts/ownership/collections | List owned collections (paginated) -*NFTsApi* | [**refresh_nft_metadata**](docs/apis/tags/NFTsApi.md#refresh_nft_metadata) | **put** /nfts/tokens/{id} | Refresh token metadata -*NFTsApi* | [**update_ownership_tokens**](docs/apis/tags/NFTsApi.md#update_ownership_tokens) | **put** /nfts/ownership/tokens | Refresh vault account tokens -*NFTsApi* | [**update_token_ownership_status**](docs/apis/tags/NFTsApi.md#update_token_ownership_status) | **put** /nfts/ownership/tokens/{id}/status | Update token ownership status -*NetworkConnectionsApi* | [**check_third_party_routing_for_network_connection**](docs/apis/tags/NetworkConnectionsApi.md#check_third_party_routing_for_network_connection) | **get** /network_connections/{connectionId}/is_third_party_routing/{assetType} | Retrieve third-party network routing validation by asset type. -*NetworkConnectionsApi* | [**create_network_connection**](docs/apis/tags/NetworkConnectionsApi.md#create_network_connection) | **post** /network_connections | Creates a new network connection -*NetworkConnectionsApi* | [**create_network_id**](docs/apis/tags/NetworkConnectionsApi.md#create_network_id) | **post** /network_ids | Creates a new Network ID -*NetworkConnectionsApi* | [**delete_network_connection**](docs/apis/tags/NetworkConnectionsApi.md#delete_network_connection) | **delete** /network_connections/{connectionId} | Deletes a network connection by ID -*NetworkConnectionsApi* | [**delete_network_id**](docs/apis/tags/NetworkConnectionsApi.md#delete_network_id) | **delete** /network_ids/{networkId} | Deletes specific network ID. -*NetworkConnectionsApi* | [**get_network_connection_by_id**](docs/apis/tags/NetworkConnectionsApi.md#get_network_connection_by_id) | **get** /network_connections/{connectionId} | Get a network connection -*NetworkConnectionsApi* | [**get_network_connections**](docs/apis/tags/NetworkConnectionsApi.md#get_network_connections) | **get** /network_connections | List network connections -*NetworkConnectionsApi* | [**get_network_id_by_id**](docs/apis/tags/NetworkConnectionsApi.md#get_network_id_by_id) | **get** /network_ids/{networkId} | Returns specific network ID. -*NetworkConnectionsApi* | [**get_network_ids**](docs/apis/tags/NetworkConnectionsApi.md#get_network_ids) | **get** /network_ids | Returns all network IDs, both local IDs and discoverable remote IDs -*NetworkConnectionsApi* | [**set_discoverability_for_network_id**](docs/apis/tags/NetworkConnectionsApi.md#set_discoverability_for_network_id) | **patch** /network_ids/{networkId}/set_discoverability | Update network ID's discoverability. -*NetworkConnectionsApi* | [**set_network_id_name**](docs/apis/tags/NetworkConnectionsApi.md#set_network_id_name) | **patch** /network_ids/{networkId}/set_name | Update network ID's name. -*NetworkConnectionsApi* | [**set_routing_policy_for_network_connection**](docs/apis/tags/NetworkConnectionsApi.md#set_routing_policy_for_network_connection) | **patch** /network_connections/{connectionId}/set_routing_policy | Update network connection routing policy. -*NetworkConnectionsApi* | [**set_routing_policy_for_network_id**](docs/apis/tags/NetworkConnectionsApi.md#set_routing_policy_for_network_id) | **patch** /network_ids/{networkId}/set_routing_policy | Update network id routing policy. -*OTABetaApi* | [**get_ota_status**](docs/apis/tags/OTABetaApi.md#get_ota_status) | **get** /management/ota | Returns current OTA status -*OTABetaApi* | [**set_ota_status**](docs/apis/tags/OTABetaApi.md#set_ota_status) | **post** /management/ota | Enable or disable transactions to OTA -*OffExchangesApi* | [**add_off_exchange**](docs/apis/tags/OffExchangesApi.md#add_off_exchange) | **post** /off_exchange/add | add collateral -*OffExchangesApi* | [**get_off_exchange_collateral_accounts**](docs/apis/tags/OffExchangesApi.md#get_off_exchange_collateral_accounts) | **get** /off_exchange/collateral_accounts/{mainExchangeAccountId} | Find a specific collateral exchange account -*OffExchangesApi* | [**get_off_exchange_settlement_transactions**](docs/apis/tags/OffExchangesApi.md#get_off_exchange_settlement_transactions) | **get** /off_exchange/settlements/transactions | get settlements transactions from exchange -*OffExchangesApi* | [**remove_off_exchange**](docs/apis/tags/OffExchangesApi.md#remove_off_exchange) | **post** /off_exchange/remove | remove collateral -*OffExchangesApi* | [**settle_off_exchange_trades**](docs/apis/tags/OffExchangesApi.md#settle_off_exchange_trades) | **post** /off_exchange/settlements/trader | create settlement for a trader -*PaymentsPayoutApi* | [**create_payout**](docs/apis/tags/PaymentsPayoutApi.md#create_payout) | **post** /payments/payout | Create a payout instruction set -*PaymentsPayoutApi* | [**execute_payout_action**](docs/apis/tags/PaymentsPayoutApi.md#execute_payout_action) | **post** /payments/payout/{payoutId}/actions/execute | Execute a payout instruction set -*PaymentsPayoutApi* | [**get_payout_by_id**](docs/apis/tags/PaymentsPayoutApi.md#get_payout_by_id) | **get** /payments/payout/{payoutId} | Get the status of a payout instruction set -*PaymentsCrossBorderSettlementApi* | [**create_xb_settlement_config**](docs/apis/tags/PaymentsCrossBorderSettlementApi.md#create_xb_settlement_config) | **post** /payments/xb-settlements/configs | Create a new cross-border settlement configuration -*PaymentsCrossBorderSettlementApi* | [**create_xb_settlement_flow**](docs/apis/tags/PaymentsCrossBorderSettlementApi.md#create_xb_settlement_flow) | **post** /payments/xb-settlements/flows | Create a new cross-border settlement flow -*PaymentsCrossBorderSettlementApi* | [**delete_xb_settlement_config**](docs/apis/tags/PaymentsCrossBorderSettlementApi.md#delete_xb_settlement_config) | **delete** /payments/xb-settlements/configs/{configId} | Delete a cross-border settlement configuration -*PaymentsCrossBorderSettlementApi* | [**execute_xb_settlement_flow_action**](docs/apis/tags/PaymentsCrossBorderSettlementApi.md#execute_xb_settlement_flow_action) | **post** /payments/xb-settlements/flows/{flowId}/actions/execute | Execute cross-border settlement flow -*PaymentsCrossBorderSettlementApi* | [**get_xb_settlement_config_by_id**](docs/apis/tags/PaymentsCrossBorderSettlementApi.md#get_xb_settlement_config_by_id) | **get** /payments/xb-settlements/configs/{configId} | Get a specific cross-border settlement configuration -*PaymentsCrossBorderSettlementApi* | [**get_xb_settlement_configs**](docs/apis/tags/PaymentsCrossBorderSettlementApi.md#get_xb_settlement_configs) | **get** /payments/xb-settlements/configs | Get all the cross-border settlement configurations -*PaymentsCrossBorderSettlementApi* | [**get_xb_settlement_flow_by_id**](docs/apis/tags/PaymentsCrossBorderSettlementApi.md#get_xb_settlement_flow_by_id) | **get** /payments/xb-settlements/flows/{flowId} | Get specific cross-border settlement flow details -*PaymentsCrossBorderSettlementApi* | [**update_xb_settlement_config**](docs/apis/tags/PaymentsCrossBorderSettlementApi.md#update_xb_settlement_config) | **put** /payments/xb-settlements/configs/{configId} | Edit a cross-border settlement configuration -*PolicyEditorBetaApi* | [**get_active_policy**](docs/apis/tags/PolicyEditorBetaApi.md#get_active_policy) | **get** /tap/active_policy | Get the active policy and its validation -*PolicyEditorBetaApi* | [**get_draft**](docs/apis/tags/PolicyEditorBetaApi.md#get_draft) | **get** /tap/draft | Get the active draft -*PolicyEditorBetaApi* | [**publish_draft**](docs/apis/tags/PolicyEditorBetaApi.md#publish_draft) | **post** /tap/draft | Send publish request for a certain draft id -*PolicyEditorBetaApi* | [**publish_policy_rules**](docs/apis/tags/PolicyEditorBetaApi.md#publish_policy_rules) | **post** /tap/publish | Send publish request for a set of policy rules -*PolicyEditorBetaApi* | [**update_draft**](docs/apis/tags/PolicyEditorBetaApi.md#update_draft) | **put** /tap/draft | Update the draft with a new set of rules -*TransactionsApi* | [**cancel_transaction**](docs/apis/tags/TransactionsApi.md#cancel_transaction) | **post** /transactions/{txId}/cancel | Cancel a transaction -*TransactionsApi* | [**create_transaction**](docs/apis/tags/TransactionsApi.md#create_transaction) | **post** /transactions | Create a new transaction -*TransactionsApi* | [**drop_transaction**](docs/apis/tags/TransactionsApi.md#drop_transaction) | **post** /transactions/{txId}/drop | Drop ETH transaction by ID -*TransactionsApi* | [**estimate_network_fee**](docs/apis/tags/TransactionsApi.md#estimate_network_fee) | **get** /estimate_network_fee | Estimate the required fee for an asset -*TransactionsApi* | [**estimate_transaction_fee**](docs/apis/tags/TransactionsApi.md#estimate_transaction_fee) | **post** /transactions/estimate_fee | Estimate transaction fee -*TransactionsApi* | [**freeze_transaction**](docs/apis/tags/TransactionsApi.md#freeze_transaction) | **post** /transactions/{txId}/freeze | Freeze a transaction -*TransactionsApi* | [**get_transaction_by_external_id**](docs/apis/tags/TransactionsApi.md#get_transaction_by_external_id) | **get** /transactions/external_tx_id/{externalTxId}/ | Find a specific transaction by external transaction ID -*TransactionsApi* | [**get_transaction_by_id**](docs/apis/tags/TransactionsApi.md#get_transaction_by_id) | **get** /transactions/{txId} | Find a specific transaction by Fireblocks transaction ID -*TransactionsApi* | [**get_transactions**](docs/apis/tags/TransactionsApi.md#get_transactions) | **get** /transactions | List transaction history -*TransactionsApi* | [**set_confirmation_threshold_for_transaction**](docs/apis/tags/TransactionsApi.md#set_confirmation_threshold_for_transaction) | **post** /transactions/{txId}/set_confirmation_threshold | Set confirmation threshold by transaction ID -*TransactionsApi* | [**set_confirmation_threshold_for_transaction_by_hash**](docs/apis/tags/TransactionsApi.md#set_confirmation_threshold_for_transaction_by_hash) | **post** /txHash/{txHash}/set_confirmation_threshold | Set confirmation threshold by transaction hash -*TransactionsApi* | [**unfreeze_transaction**](docs/apis/tags/TransactionsApi.md#unfreeze_transaction) | **post** /transactions/{txId}/unfreeze | Unfreeze a transaction -*TransactionsApi* | [**validate_address**](docs/apis/tags/TransactionsApi.md#validate_address) | **get** /transactions/validate_address/{assetId}/{address} | Validate destination address -*TravelRuleBetaApi* | [**get_vaspby_did**](docs/apis/tags/TravelRuleBetaApi.md#get_vaspby_did) | **get** /screening/travel_rule/vasp/{did} | Get VASP details -*TravelRuleBetaApi* | [**get_vasps**](docs/apis/tags/TravelRuleBetaApi.md#get_vasps) | **get** /screening/travel_rule/vasp | Get All VASPs -*TravelRuleBetaApi* | [**travel_rule_api_controller_update_vasp**](docs/apis/tags/TravelRuleBetaApi.md#travel_rule_api_controller_update_vasp) | **put** /screeening/travel_rule/vasp/update | Add jsonDidKey to VASP details -*TravelRuleBetaApi* | [**validate_full_travel_rule_transaction**](docs/apis/tags/TravelRuleBetaApi.md#validate_full_travel_rule_transaction) | **post** /screening/travel_rule/transaction/validate/full | Validate Full Travel Rule Transaction -*TravelRuleBetaApi* | [**validate_travel_rule_transaction**](docs/apis/tags/TravelRuleBetaApi.md#validate_travel_rule_transaction) | **post** /screening/travel_rule/transaction/validate | Validate Travel Rule Transaction -*UsersApi* | [**get_users**](docs/apis/tags/UsersApi.md#get_users) | **get** /users | List users -*UsersGroupsBetaApi* | [**create_user_group**](docs/apis/tags/UsersGroupsBetaApi.md#create_user_group) | **post** /users_groups | Create users group -*UsersGroupsBetaApi* | [**delete_user_group**](docs/apis/tags/UsersGroupsBetaApi.md#delete_user_group) | **delete** /users_groups/{groupId} | Delete users group -*UsersGroupsBetaApi* | [**get_user_group**](docs/apis/tags/UsersGroupsBetaApi.md#get_user_group) | **get** /users_groups/{groupId} | Get users group -*UsersGroupsBetaApi* | [**get_user_groups**](docs/apis/tags/UsersGroupsBetaApi.md#get_user_groups) | **get** /users_groups | List users groups -*UsersGroupsBetaApi* | [**update_user_group**](docs/apis/tags/UsersGroupsBetaApi.md#update_user_group) | **put** /users_groups/{groupId} | Update users group -*VaultsApi* | [**activate_asset_for_vault_account**](docs/apis/tags/VaultsApi.md#activate_asset_for_vault_account) | **post** /vault/accounts/{vaultAccountId}/{assetId}/activate | Activate a wallet in a vault account -*VaultsApi* | [**create_legacy_address_for_vault_account_asset**](docs/apis/tags/VaultsApi.md#create_legacy_address_for_vault_account_asset) | **post** /vault/accounts/{vaultAccountId}/{assetId}/addresses/{addressId}/create_legacy | Convert a segwit address to legacy format -*VaultsApi* | [**create_vault_account**](docs/apis/tags/VaultsApi.md#create_vault_account) | **post** /vault/accounts | Create a new vault account -*VaultsApi* | [**create_vault_account_asset**](docs/apis/tags/VaultsApi.md#create_vault_account_asset) | **post** /vault/accounts/{vaultAccountId}/{assetId} | Create a new wallet -*VaultsApi* | [**create_vault_account_asset_address**](docs/apis/tags/VaultsApi.md#create_vault_account_asset_address) | **post** /vault/accounts/{vaultAccountId}/{assetId}/addresses | Create new asset deposit address -*VaultsApi* | [**get_asset_wallets**](docs/apis/tags/VaultsApi.md#get_asset_wallets) | **get** /vault/asset_wallets | List asset wallets (Paginated) -*VaultsApi* | [**get_max_spendable_amount**](docs/apis/tags/VaultsApi.md#get_max_spendable_amount) | **get** /vault/accounts/{vaultAccountId}/{assetId}/max_spendable_amount | Get the maximum spendable amount in a single transaction. -*VaultsApi* | [**get_paged_vault_accounts**](docs/apis/tags/VaultsApi.md#get_paged_vault_accounts) | **get** /vault/accounts_paged | List vault acounts (Paginated) -*VaultsApi* | [**get_public_key_info**](docs/apis/tags/VaultsApi.md#get_public_key_info) | **get** /vault/public_key_info/ | Get the public key information -*VaultsApi* | [**get_public_key_info_for_address**](docs/apis/tags/VaultsApi.md#get_public_key_info_for_address) | **get** /vault/accounts/{vaultAccountId}/{assetId}/{change}/{addressIndex}/public_key_info | Get the public key for a vault account -*VaultsApi* | [**get_vault_account_asset**](docs/apis/tags/VaultsApi.md#get_vault_account_asset) | **get** /vault/accounts/{vaultAccountId}/{assetId} | Get the asset balance for a vault account -*VaultsApi* | [**get_vault_account_asset_addresses**](docs/apis/tags/VaultsApi.md#get_vault_account_asset_addresses) | **get** /vault/accounts/{vaultAccountId}/{assetId}/addresses | Get asset addresses -*VaultsApi* | [**get_vault_account_asset_unspent_inputs**](docs/apis/tags/VaultsApi.md#get_vault_account_asset_unspent_inputs) | **get** /vault/accounts/{vaultAccountId}/{assetId}/unspent_inputs | Get UTXO unspent inputs information -*VaultsApi* | [**get_vault_account_by_id**](docs/apis/tags/VaultsApi.md#get_vault_account_by_id) | **get** /vault/accounts/{vaultAccountId} | Find a vault account by ID -*VaultsApi* | [**get_vault_accounts**](docs/apis/tags/VaultsApi.md#get_vault_accounts) | **get** /vault/accounts | List vault accounts -*VaultsApi* | [**get_vault_asset_by_id**](docs/apis/tags/VaultsApi.md#get_vault_asset_by_id) | **get** /vault/assets/{assetId} | Get vault balance by asset -*VaultsApi* | [**get_vault_assets**](docs/apis/tags/VaultsApi.md#get_vault_assets) | **get** /vault/assets | Get asset balance for chosen assets -*VaultsApi* | [**hide_vault_account**](docs/apis/tags/VaultsApi.md#hide_vault_account) | **post** /vault/accounts/{vaultAccountId}/hide | Hide a vault account in the console -*VaultsApi* | [**set_auto_fuel_for_vault_account**](docs/apis/tags/VaultsApi.md#set_auto_fuel_for_vault_account) | **post** /vault/accounts/{vaultAccountId}/set_auto_fuel | Turn autofueling on or off -*VaultsApi* | [**set_customer_ref_id_for_vault_account**](docs/apis/tags/VaultsApi.md#set_customer_ref_id_for_vault_account) | **post** /vault/accounts/{vaultAccountId}/set_customer_ref_id | Set an AML/KYT customer reference ID for a vault account -*VaultsApi* | [**set_customer_ref_id_for_vault_account_asset_address**](docs/apis/tags/VaultsApi.md#set_customer_ref_id_for_vault_account_asset_address) | **post** /vault/accounts/{vaultAccountId}/{assetId}/addresses/{addressId}/set_customer_ref_id | Assign AML customer reference ID -*VaultsApi* | [**unhide_vault_account**](docs/apis/tags/VaultsApi.md#unhide_vault_account) | **post** /vault/accounts/{vaultAccountId}/unhide | Unhide a vault account in the console -*VaultsApi* | [**update_vault_account**](docs/apis/tags/VaultsApi.md#update_vault_account) | **put** /vault/accounts/{vaultAccountId} | Rename a vault account -*VaultsApi* | [**update_vault_account_asset_address**](docs/apis/tags/VaultsApi.md#update_vault_account_asset_address) | **put** /vault/accounts/{vaultAccountId}/{assetId}/addresses/{addressId} | Update address description -*VaultsApi* | [**update_vault_account_asset_balance**](docs/apis/tags/VaultsApi.md#update_vault_account_asset_balance) | **post** /vault/accounts/{vaultAccountId}/{assetId}/balance | Refresh asset balance data -*Web3ConnectionsApi* | [**create**](docs/apis/tags/Web3ConnectionsApi.md#create) | **post** /connections/wc | Create a new Web3 connection. -*Web3ConnectionsApi* | [**get**](docs/apis/tags/Web3ConnectionsApi.md#get) | **get** /connections | List all open Web3 connections. -*Web3ConnectionsApi* | [**remove**](docs/apis/tags/Web3ConnectionsApi.md#remove) | **delete** /connections/wc/{id} | Remove an existing Web3 connection. -*Web3ConnectionsApi* | [**submit**](docs/apis/tags/Web3ConnectionsApi.md#submit) | **put** /connections/wc/{id} | Respond to a pending Web3 connection request. -*WebhooksApi* | [**resend_webhooks**](docs/apis/tags/WebhooksApi.md#resend_webhooks) | **post** /webhooks/resend | Resend failed webhooks -*WebhooksApi* | [**resend_webhooks_for_transaction**](docs/apis/tags/WebhooksApi.md#resend_webhooks_for_transaction) | **post** /webhooks/resend/{txId} | Resend failed webhooks for a transaction by ID +*ApiUserApi* | [**create_api_user**](docs/ApiUserApi.md#create_api_user) | **POST** /management/api_users | Create Api user +*ApiUserApi* | [**get_api_users**](docs/ApiUserApi.md#get_api_users) | **GET** /management/api_users | Get Api users +*AssetsApi* | [**create_assets_bulk**](docs/AssetsApi.md#create_assets_bulk) | **POST** /vault/assets/bulk | Bulk creation of wallets +*AuditLogsApi* | [**get_audit_logs**](docs/AuditLogsApi.md#get_audit_logs) | **GET** /management/audit_logs | Get audit logs +*AuditLogsApi* | [**get_audits**](docs/AuditLogsApi.md#get_audits) | **GET** /audits | Get audit logs +*BlockchainsAssetsApi* | [**get_supported_assets**](docs/BlockchainsAssetsApi.md#get_supported_assets) | **GET** /supported_assets | List all asset types supported by Fireblocks +*BlockchainsAssetsApi* | [**register_new_asset**](docs/BlockchainsAssetsApi.md#register_new_asset) | **POST** /assets | Register an asset +*ComplianceApi* | [**get_aml_post_screening_policy**](docs/ComplianceApi.md#get_aml_post_screening_policy) | **GET** /screening/aml/post_screening_policy | AML - View Post-Screening Policy +*ComplianceApi* | [**get_aml_screening_policy**](docs/ComplianceApi.md#get_aml_screening_policy) | **GET** /screening/aml/screening_policy | AML - View Screening Policy +*ComplianceApi* | [**get_post_screening_policy**](docs/ComplianceApi.md#get_post_screening_policy) | **GET** /screening/travel_rule/post_screening_policy | Travel Rule - View Post-Screening Policy +*ComplianceApi* | [**get_screening_policy**](docs/ComplianceApi.md#get_screening_policy) | **GET** /screening/travel_rule/screening_policy | Travel Rule - View Screening Policy +*ComplianceApi* | [**update_aml_screening_configuration**](docs/ComplianceApi.md#update_aml_screening_configuration) | **PUT** /screening/aml/policy_configuration | Update AML Configuration +*ComplianceApi* | [**update_screening_configuration**](docs/ComplianceApi.md#update_screening_configuration) | **PUT** /screening/configurations | Tenant - Screening Configuration +*ComplianceApi* | [**update_travel_rule_config**](docs/ComplianceApi.md#update_travel_rule_config) | **PUT** /screening/travel_rule/policy_configuration | Update Travel Rule Configuration +*ComplianceScreeningConfigurationApi* | [**get_aml_screening_configuration**](docs/ComplianceScreeningConfigurationApi.md#get_aml_screening_configuration) | **GET** /screening/aml/policy_configuration | Get AML Screening Policy Configuration +*ComplianceScreeningConfigurationApi* | [**get_screening_configuration**](docs/ComplianceScreeningConfigurationApi.md#get_screening_configuration) | **GET** /screening/travel_rule/policy_configuration | Get Travel Rule Screening Policy Configuration +*ConsoleUserApi* | [**create_console_user**](docs/ConsoleUserApi.md#create_console_user) | **POST** /management/users | Create console user +*ConsoleUserApi* | [**get_console_users**](docs/ConsoleUserApi.md#get_console_users) | **GET** /management/users | Get console users +*ContractInteractionsApi* | [**get_deployed_contract_abi**](docs/ContractInteractionsApi.md#get_deployed_contract_abi) | **GET** /contract_interactions/base_asset_id/{assetId}/contract_address/{contractAddress}/functions | Return deployed contract's ABI +*ContractInteractionsApi* | [**read_call_function**](docs/ContractInteractionsApi.md#read_call_function) | **POST** /contract_interactions/base_asset_id/{assetId}/contract_address/{contractAddress}/functions/read | Call a read function on a deployed contract +*ContractInteractionsApi* | [**write_call_function**](docs/ContractInteractionsApi.md#write_call_function) | **POST** /contract_interactions/base_asset_id/{assetId}/contract_address/{contractAddress}/functions/write | Call a write function on a deployed contract +*ContractTemplatesApi* | [**delete_contract_template_by_id**](docs/ContractTemplatesApi.md#delete_contract_template_by_id) | **DELETE** /tokenization/templates/{contractTemplateId} | Delete a contract template by id +*ContractTemplatesApi* | [**deploy_contract**](docs/ContractTemplatesApi.md#deploy_contract) | **POST** /tokenization/templates/{contractTemplateId}/deploy | Deploy contract +*ContractTemplatesApi* | [**get_constructor_by_contract_template_id**](docs/ContractTemplatesApi.md#get_constructor_by_contract_template_id) | **GET** /tokenization/templates/{contractTemplateId}/constructor | Return contract template's constructor +*ContractTemplatesApi* | [**get_contract_template_by_id**](docs/ContractTemplatesApi.md#get_contract_template_by_id) | **GET** /tokenization/templates/{contractTemplateId} | Return contract template by id +*ContractTemplatesApi* | [**get_contract_templates**](docs/ContractTemplatesApi.md#get_contract_templates) | **GET** /tokenization/templates | List all contract templates +*ContractTemplatesApi* | [**get_function_abi_by_contract_template_id**](docs/ContractTemplatesApi.md#get_function_abi_by_contract_template_id) | **GET** /tokenization/templates/{contractTemplateId}/function | Return contract template's function +*ContractTemplatesApi* | [**upload_contract_template**](docs/ContractTemplatesApi.md#upload_contract_template) | **POST** /tokenization/templates | Upload contract template +*ContractsApi* | [**add_contract_asset**](docs/ContractsApi.md#add_contract_asset) | **POST** /contracts/{contractId}/{assetId} | Add an asset to a contract +*ContractsApi* | [**create_contract**](docs/ContractsApi.md#create_contract) | **POST** /contracts | Create a contract +*ContractsApi* | [**delete_contract**](docs/ContractsApi.md#delete_contract) | **DELETE** /contracts/{contractId} | Delete a contract +*ContractsApi* | [**delete_contract_asset**](docs/ContractsApi.md#delete_contract_asset) | **DELETE** /contracts/{contractId}/{assetId} | Delete a contract asset +*ContractsApi* | [**get_contract**](docs/ContractsApi.md#get_contract) | **GET** /contracts/{contractId} | Find a specific contract +*ContractsApi* | [**get_contract_asset**](docs/ContractsApi.md#get_contract_asset) | **GET** /contracts/{contractId}/{assetId} | Find a contract asset +*ContractsApi* | [**get_contracts**](docs/ContractsApi.md#get_contracts) | **GET** /contracts | List contracts +*CosignersBetaApi* | [**get_api_key**](docs/CosignersBetaApi.md#get_api_key) | **GET** /cosigners/{cosignerId}/api_keys/{apiKeyId} | Get API key +*CosignersBetaApi* | [**get_api_keys**](docs/CosignersBetaApi.md#get_api_keys) | **GET** /cosigners/{cosignerId}/api_keys | Get all API keys +*CosignersBetaApi* | [**get_cosigner**](docs/CosignersBetaApi.md#get_cosigner) | **GET** /cosigners/{cosignerId} | Get cosigner +*CosignersBetaApi* | [**get_cosigners**](docs/CosignersBetaApi.md#get_cosigners) | **GET** /cosigners | Get all cosigners +*CosignersBetaApi* | [**rename_cosigner**](docs/CosignersBetaApi.md#rename_cosigner) | **PATCH** /cosigners/{cosignerId} | Rename cosigner +*DeployedContractsApi* | [**get_deployed_contract_by_address**](docs/DeployedContractsApi.md#get_deployed_contract_by_address) | **GET** /tokenization/contracts/{assetId}/{contractAddress} | Return deployed contract data +*DeployedContractsApi* | [**get_deployed_contract_by_id**](docs/DeployedContractsApi.md#get_deployed_contract_by_id) | **GET** /tokenization/contracts/{id} | Return deployed contract data by id +*DeployedContractsApi* | [**get_deployed_contracts**](docs/DeployedContractsApi.md#get_deployed_contracts) | **GET** /tokenization/contracts | List deployed contracts data +*ExchangeAccountsApi* | [**convert_assets**](docs/ExchangeAccountsApi.md#convert_assets) | **POST** /exchange_accounts/{exchangeAccountId}/convert | Convert exchange account funds from the source asset to the destination asset. +*ExchangeAccountsApi* | [**get_exchange_account**](docs/ExchangeAccountsApi.md#get_exchange_account) | **GET** /exchange_accounts/{exchangeAccountId} | Find a specific exchange account +*ExchangeAccountsApi* | [**get_exchange_account_asset**](docs/ExchangeAccountsApi.md#get_exchange_account_asset) | **GET** /exchange_accounts/{exchangeAccountId}/{assetId} | Find an asset for an exchange account +*ExchangeAccountsApi* | [**get_paged_exchange_accounts**](docs/ExchangeAccountsApi.md#get_paged_exchange_accounts) | **GET** /exchange_accounts/paged | Pagination list exchange accounts +*ExchangeAccountsApi* | [**internal_transfer**](docs/ExchangeAccountsApi.md#internal_transfer) | **POST** /exchange_accounts/{exchangeAccountId}/internal_transfer | Internal transfer for exchange accounts +*ExternalWalletsApi* | [**add_asset_to_external_wallet**](docs/ExternalWalletsApi.md#add_asset_to_external_wallet) | **POST** /external_wallets/{walletId}/{assetId} | Add an asset to an external wallet. +*ExternalWalletsApi* | [**create_external_wallet**](docs/ExternalWalletsApi.md#create_external_wallet) | **POST** /external_wallets | Create an external wallet +*ExternalWalletsApi* | [**delete_external_wallet**](docs/ExternalWalletsApi.md#delete_external_wallet) | **DELETE** /external_wallets/{walletId} | Delete an external wallet +*ExternalWalletsApi* | [**get_external_wallet**](docs/ExternalWalletsApi.md#get_external_wallet) | **GET** /external_wallets/{walletId} | Find an external wallet +*ExternalWalletsApi* | [**get_external_wallet_asset**](docs/ExternalWalletsApi.md#get_external_wallet_asset) | **GET** /external_wallets/{walletId}/{assetId} | Get an asset from an external wallet +*ExternalWalletsApi* | [**get_external_wallets**](docs/ExternalWalletsApi.md#get_external_wallets) | **GET** /external_wallets | List external wallets +*ExternalWalletsApi* | [**remove_asset_from_external_wallet**](docs/ExternalWalletsApi.md#remove_asset_from_external_wallet) | **DELETE** /external_wallets/{walletId}/{assetId} | Delete an asset from an external wallet +*ExternalWalletsApi* | [**set_external_wallet_customer_ref_id**](docs/ExternalWalletsApi.md#set_external_wallet_customer_ref_id) | **POST** /external_wallets/{walletId}/set_customer_ref_id | Set an AML customer reference ID for an external wallet +*FiatAccountsApi* | [**deposit_funds_from_linked_dda**](docs/FiatAccountsApi.md#deposit_funds_from_linked_dda) | **POST** /fiat_accounts/{accountId}/deposit_from_linked_dda | Deposit funds from DDA +*FiatAccountsApi* | [**get_fiat_account**](docs/FiatAccountsApi.md#get_fiat_account) | **GET** /fiat_accounts/{accountId} | Find a specific fiat account +*FiatAccountsApi* | [**get_fiat_accounts**](docs/FiatAccountsApi.md#get_fiat_accounts) | **GET** /fiat_accounts | List fiat accounts +*FiatAccountsApi* | [**redeem_funds_to_linked_dda**](docs/FiatAccountsApi.md#redeem_funds_to_linked_dda) | **POST** /fiat_accounts/{accountId}/redeem_to_linked_dda | Redeem funds to DDA +*GasStationsApi* | [**get_gas_station_by_asset_id**](docs/GasStationsApi.md#get_gas_station_by_asset_id) | **GET** /gas_station/{assetId} | Get gas station settings by asset +*GasStationsApi* | [**get_gas_station_info**](docs/GasStationsApi.md#get_gas_station_info) | **GET** /gas_station | Get gas station settings +*GasStationsApi* | [**update_gas_station_configuration**](docs/GasStationsApi.md#update_gas_station_configuration) | **PUT** /gas_station/configuration | Edit gas station settings +*GasStationsApi* | [**update_gas_station_configuration_by_asset_id**](docs/GasStationsApi.md#update_gas_station_configuration_by_asset_id) | **PUT** /gas_station/configuration/{assetId} | Edit gas station settings for an asset +*InternalWalletsApi* | [**create_internal_wallet**](docs/InternalWalletsApi.md#create_internal_wallet) | **POST** /internal_wallets | Create an internal wallet +*InternalWalletsApi* | [**create_internal_wallet_asset**](docs/InternalWalletsApi.md#create_internal_wallet_asset) | **POST** /internal_wallets/{walletId}/{assetId} | Add an asset to an internal wallet +*InternalWalletsApi* | [**delete_internal_wallet**](docs/InternalWalletsApi.md#delete_internal_wallet) | **DELETE** /internal_wallets/{walletId} | Delete an internal wallet +*InternalWalletsApi* | [**delete_internal_wallet_asset**](docs/InternalWalletsApi.md#delete_internal_wallet_asset) | **DELETE** /internal_wallets/{walletId}/{assetId} | Delete a whitelisted address from an internal wallet +*InternalWalletsApi* | [**get_internal_wallet**](docs/InternalWalletsApi.md#get_internal_wallet) | **GET** /internal_wallets/{walletId} | Get assets for internal wallet +*InternalWalletsApi* | [**get_internal_wallet_asset**](docs/InternalWalletsApi.md#get_internal_wallet_asset) | **GET** /internal_wallets/{walletId}/{assetId} | Get an asset from an internal wallet +*InternalWalletsApi* | [**get_internal_wallets**](docs/InternalWalletsApi.md#get_internal_wallets) | **GET** /internal_wallets | List internal wallets +*InternalWalletsApi* | [**set_customer_ref_id_for_internal_wallet**](docs/InternalWalletsApi.md#set_customer_ref_id_for_internal_wallet) | **POST** /internal_wallets/{walletId}/set_customer_ref_id | Set an AML/KYT customer reference ID for an internal wallet +*JobManagementApi* | [**cancel_job**](docs/JobManagementApi.md#cancel_job) | **POST** /batch/{jobId}/cancel | Cancel a running job +*JobManagementApi* | [**continue_job**](docs/JobManagementApi.md#continue_job) | **POST** /batch/{jobId}/continue | Continue a paused job +*JobManagementApi* | [**get_job**](docs/JobManagementApi.md#get_job) | **GET** /batch/{jobId} | Get job details +*JobManagementApi* | [**get_job_tasks**](docs/JobManagementApi.md#get_job_tasks) | **GET** /batch/{jobId}/tasks | Return a list of tasks for given job +*JobManagementApi* | [**get_jobs**](docs/JobManagementApi.md#get_jobs) | **GET** /batch/jobs | Return a list of jobs belonging to tenant +*JobManagementApi* | [**pause_job**](docs/JobManagementApi.md#pause_job) | **POST** /batch/{jobId}/pause | Pause a job +*NFTsApi* | [**get_nft**](docs/NFTsApi.md#get_nft) | **GET** /nfts/tokens/{id} | List token data by ID +*NFTsApi* | [**get_nfts**](docs/NFTsApi.md#get_nfts) | **GET** /nfts/tokens | List tokens by IDs +*NFTsApi* | [**get_ownership_tokens**](docs/NFTsApi.md#get_ownership_tokens) | **GET** /nfts/ownership/tokens | List all owned tokens (paginated) +*NFTsApi* | [**list_owned_collections**](docs/NFTsApi.md#list_owned_collections) | **GET** /nfts/ownership/collections | List owned collections (paginated) +*NFTsApi* | [**list_owned_tokens**](docs/NFTsApi.md#list_owned_tokens) | **GET** /nfts/ownership/assets | List all distinct owned tokens (paginated) +*NFTsApi* | [**refresh_nft_metadata**](docs/NFTsApi.md#refresh_nft_metadata) | **PUT** /nfts/tokens/{id} | Refresh token metadata +*NFTsApi* | [**update_ownership_tokens**](docs/NFTsApi.md#update_ownership_tokens) | **PUT** /nfts/ownership/tokens | Refresh vault account tokens +*NFTsApi* | [**update_token_ownership_status**](docs/NFTsApi.md#update_token_ownership_status) | **PUT** /nfts/ownership/tokens/{id}/status | Update token ownership status +*NFTsApi* | [**update_tokens_ownership_spam**](docs/NFTsApi.md#update_tokens_ownership_spam) | **PUT** /nfts/ownership/tokens/spam | Update tokens ownership spam property +*NFTsApi* | [**update_tokens_ownership_status**](docs/NFTsApi.md#update_tokens_ownership_status) | **PUT** /nfts/ownership/tokens/status | Update tokens ownership status +*NetworkConnectionsApi* | [**check_third_party_routing**](docs/NetworkConnectionsApi.md#check_third_party_routing) | **GET** /network_connections/{connectionId}/is_third_party_routing/{assetType} | Retrieve third-party network routing validation by asset type. +*NetworkConnectionsApi* | [**create_network_connection**](docs/NetworkConnectionsApi.md#create_network_connection) | **POST** /network_connections | Creates a new network connection +*NetworkConnectionsApi* | [**create_network_id**](docs/NetworkConnectionsApi.md#create_network_id) | **POST** /network_ids | Creates a new Network ID +*NetworkConnectionsApi* | [**delete_network_connection**](docs/NetworkConnectionsApi.md#delete_network_connection) | **DELETE** /network_connections/{connectionId} | Deletes a network connection by ID +*NetworkConnectionsApi* | [**delete_network_id**](docs/NetworkConnectionsApi.md#delete_network_id) | **DELETE** /network_ids/{networkId} | Deletes specific network ID. +*NetworkConnectionsApi* | [**get_network**](docs/NetworkConnectionsApi.md#get_network) | **GET** /network_connections/{connectionId} | Get a network connection +*NetworkConnectionsApi* | [**get_network_connections**](docs/NetworkConnectionsApi.md#get_network_connections) | **GET** /network_connections | List network connections +*NetworkConnectionsApi* | [**get_network_id**](docs/NetworkConnectionsApi.md#get_network_id) | **GET** /network_ids/{networkId} | Returns specific network ID. +*NetworkConnectionsApi* | [**get_network_ids**](docs/NetworkConnectionsApi.md#get_network_ids) | **GET** /network_ids | Returns all network IDs, both local IDs and discoverable remote IDs +*NetworkConnectionsApi* | [**get_routing_policy_asset_groups**](docs/NetworkConnectionsApi.md#get_routing_policy_asset_groups) | **GET** /network_ids/routing_policy_asset_groups | Returns all enabled routing policy asset groups +*NetworkConnectionsApi* | [**set_network_id_discoverability**](docs/NetworkConnectionsApi.md#set_network_id_discoverability) | **PATCH** /network_ids/{networkId}/set_discoverability | Update network ID's discoverability. +*NetworkConnectionsApi* | [**set_network_id_name**](docs/NetworkConnectionsApi.md#set_network_id_name) | **PATCH** /network_ids/{networkId}/set_name | Update network ID's name. +*NetworkConnectionsApi* | [**set_network_id_routing_policy**](docs/NetworkConnectionsApi.md#set_network_id_routing_policy) | **PATCH** /network_ids/{networkId}/set_routing_policy | Update network id routing policy. +*NetworkConnectionsApi* | [**set_routing_policy**](docs/NetworkConnectionsApi.md#set_routing_policy) | **PATCH** /network_connections/{connectionId}/set_routing_policy | Update network connection routing policy. +*OTABetaApi* | [**get_ota_status**](docs/OTABetaApi.md#get_ota_status) | **GET** /management/ota | Returns current OTA status +*OTABetaApi* | [**set_ota_status**](docs/OTABetaApi.md#set_ota_status) | **PUT** /management/ota | Enable or disable transactions to OTA +*OffExchangesApi* | [**add_off_exchange**](docs/OffExchangesApi.md#add_off_exchange) | **POST** /off_exchange/add | add collateral +*OffExchangesApi* | [**get_off_exchange_collateral_accounts**](docs/OffExchangesApi.md#get_off_exchange_collateral_accounts) | **GET** /off_exchange/collateral_accounts/{mainExchangeAccountId} | Find a specific collateral exchange account +*OffExchangesApi* | [**get_off_exchange_settlement_transactions**](docs/OffExchangesApi.md#get_off_exchange_settlement_transactions) | **GET** /off_exchange/settlements/transactions | get settlements transactions from exchange +*OffExchangesApi* | [**remove_off_exchange**](docs/OffExchangesApi.md#remove_off_exchange) | **POST** /off_exchange/remove | remove collateral +*OffExchangesApi* | [**settle_off_exchange_trades**](docs/OffExchangesApi.md#settle_off_exchange_trades) | **POST** /off_exchange/settlements/trader | create settlement for a trader +*PaymentsPayoutApi* | [**create_payout**](docs/PaymentsPayoutApi.md#create_payout) | **POST** /payments/payout | Create a payout instruction set +*PaymentsPayoutApi* | [**execute_payout_action**](docs/PaymentsPayoutApi.md#execute_payout_action) | **POST** /payments/payout/{payoutId}/actions/execute | Execute a payout instruction set +*PaymentsPayoutApi* | [**get_payout**](docs/PaymentsPayoutApi.md#get_payout) | **GET** /payments/payout/{payoutId} | Get the status of a payout instruction set +*PolicyEditorBetaApi* | [**get_active_policy**](docs/PolicyEditorBetaApi.md#get_active_policy) | **GET** /tap/active_policy | Get the active policy and its validation +*PolicyEditorBetaApi* | [**get_draft**](docs/PolicyEditorBetaApi.md#get_draft) | **GET** /tap/draft | Get the active draft +*PolicyEditorBetaApi* | [**publish_draft**](docs/PolicyEditorBetaApi.md#publish_draft) | **POST** /tap/draft | Send publish request for a certain draft id +*PolicyEditorBetaApi* | [**publish_policy_rules**](docs/PolicyEditorBetaApi.md#publish_policy_rules) | **POST** /tap/publish | Send publish request for a set of policy rules +*PolicyEditorBetaApi* | [**update_draft**](docs/PolicyEditorBetaApi.md#update_draft) | **PUT** /tap/draft | Update the draft with a new set of rules +*ResetDeviceApi* | [**reset_device**](docs/ResetDeviceApi.md#reset_device) | **POST** /management/users/{id}/reset_device | Resets device +*SmartTransferApi* | [**cancel_ticket**](docs/SmartTransferApi.md#cancel_ticket) | **PUT** /smart-transfers/{ticketId}/cancel | Cancel Ticket +*SmartTransferApi* | [**create_ticket**](docs/SmartTransferApi.md#create_ticket) | **POST** /smart-transfers | Create Ticket +*SmartTransferApi* | [**create_ticket_term**](docs/SmartTransferApi.md#create_ticket_term) | **POST** /smart-transfers/{ticketId}/terms | Create leg (term) +*SmartTransferApi* | [**find_ticket_by_id**](docs/SmartTransferApi.md#find_ticket_by_id) | **GET** /smart-transfers/{ticketId} | Search Tickets by ID +*SmartTransferApi* | [**find_ticket_term_by_id**](docs/SmartTransferApi.md#find_ticket_term_by_id) | **GET** /smart-transfers/{ticketId}/terms/{termId} | Search ticket by leg (term) ID +*SmartTransferApi* | [**fulfill_ticket**](docs/SmartTransferApi.md#fulfill_ticket) | **PUT** /smart-transfers/{ticketId}/fulfill | Fund ticket manually +*SmartTransferApi* | [**fund_ticket_term**](docs/SmartTransferApi.md#fund_ticket_term) | **PUT** /smart-transfers/{ticketId}/terms/{termId}/fund | Define funding source +*SmartTransferApi* | [**get_smart_transfer_user_groups**](docs/SmartTransferApi.md#get_smart_transfer_user_groups) | **GET** /smart-transfers/settings/user-groups | Get user group +*SmartTransferApi* | [**manually_fund_ticket_term**](docs/SmartTransferApi.md#manually_fund_ticket_term) | **PUT** /smart-transfers/{ticketId}/terms/{termId}/manually-fund | Manually add term transaction +*SmartTransferApi* | [**remove_ticket_term**](docs/SmartTransferApi.md#remove_ticket_term) | **DELETE** /smart-transfers/{ticketId}/terms/{termId} | Delete ticket leg (term) +*SmartTransferApi* | [**search_tickets**](docs/SmartTransferApi.md#search_tickets) | **GET** /smart-transfers | Find Ticket +*SmartTransferApi* | [**set_external_ref_id**](docs/SmartTransferApi.md#set_external_ref_id) | **PUT** /smart-transfers/{ticketId}/external-id | Add external ref. ID +*SmartTransferApi* | [**set_ticket_expiration**](docs/SmartTransferApi.md#set_ticket_expiration) | **PUT** /smart-transfers/{ticketId}/expires-in | Set expiration +*SmartTransferApi* | [**set_user_groups**](docs/SmartTransferApi.md#set_user_groups) | **POST** /smart-transfers/settings/user-groups | Set user group +*SmartTransferApi* | [**submit_ticket**](docs/SmartTransferApi.md#submit_ticket) | **PUT** /smart-transfers/{ticketId}/submit | Submit ticket +*SmartTransferApi* | [**update_ticket_term**](docs/SmartTransferApi.md#update_ticket_term) | **PUT** /smart-transfers/{ticketId}/terms/{termId} | Update ticket leg (term) +*StakingBetaApi* | [**approve_terms_of_service_by_provider_id**](docs/StakingBetaApi.md#approve_terms_of_service_by_provider_id) | **POST** /staking/providers/{providerId}/approveTermsOfService | +*StakingBetaApi* | [**execute_action**](docs/StakingBetaApi.md#execute_action) | **POST** /staking/chains/{chainDescriptor}/{actionId} | +*StakingBetaApi* | [**get_all_delegations**](docs/StakingBetaApi.md#get_all_delegations) | **GET** /staking/positions | +*StakingBetaApi* | [**get_chain_info**](docs/StakingBetaApi.md#get_chain_info) | **GET** /staking/chains/{chainDescriptor}/chainInfo | +*StakingBetaApi* | [**get_chains**](docs/StakingBetaApi.md#get_chains) | **GET** /staking/chains | +*StakingBetaApi* | [**get_delegation_by_id**](docs/StakingBetaApi.md#get_delegation_by_id) | **GET** /staking/positions/{id} | +*StakingBetaApi* | [**get_providers**](docs/StakingBetaApi.md#get_providers) | **GET** /staking/providers | +*StakingBetaApi* | [**get_summary**](docs/StakingBetaApi.md#get_summary) | **GET** /staking/positions/summary | +*StakingBetaApi* | [**get_summary_by_vault**](docs/StakingBetaApi.md#get_summary_by_vault) | **GET** /staking/positions/summary/vaults | +*TokenizationApi* | [**get_linked_token**](docs/TokenizationApi.md#get_linked_token) | **GET** /tokenization/tokens/{id} | Return a linked token +*TokenizationApi* | [**get_linked_tokens**](docs/TokenizationApi.md#get_linked_tokens) | **GET** /tokenization/tokens | List all linked tokens +*TokenizationApi* | [**issue_new_token**](docs/TokenizationApi.md#issue_new_token) | **POST** /tokenization/tokens | Issue a new token +*TokenizationApi* | [**link**](docs/TokenizationApi.md#link) | **POST** /tokenization/tokens/link | Link a token +*TokenizationApi* | [**unlink**](docs/TokenizationApi.md#unlink) | **DELETE** /tokenization/tokens/{id} | Unlink a token +*TransactionsApi* | [**cancel_transaction**](docs/TransactionsApi.md#cancel_transaction) | **POST** /transactions/{txId}/cancel | Cancel a transaction +*TransactionsApi* | [**create_transaction**](docs/TransactionsApi.md#create_transaction) | **POST** /transactions | Create a new transaction +*TransactionsApi* | [**drop_transaction**](docs/TransactionsApi.md#drop_transaction) | **POST** /transactions/{txId}/drop | Drop ETH transaction by ID +*TransactionsApi* | [**estimate_network_fee**](docs/TransactionsApi.md#estimate_network_fee) | **GET** /estimate_network_fee | Estimate the required fee for an asset +*TransactionsApi* | [**estimate_transaction_fee**](docs/TransactionsApi.md#estimate_transaction_fee) | **POST** /transactions/estimate_fee | Estimate transaction fee +*TransactionsApi* | [**freeze_transaction**](docs/TransactionsApi.md#freeze_transaction) | **POST** /transactions/{txId}/freeze | Freeze a transaction +*TransactionsApi* | [**get_transaction**](docs/TransactionsApi.md#get_transaction) | **GET** /transactions/{txId} | Find a specific transaction by Fireblocks transaction ID +*TransactionsApi* | [**get_transaction_by_external_id**](docs/TransactionsApi.md#get_transaction_by_external_id) | **GET** /transactions/external_tx_id/{externalTxId} | Find a specific transaction by external transaction ID +*TransactionsApi* | [**get_transactions**](docs/TransactionsApi.md#get_transactions) | **GET** /transactions | List transaction history +*TransactionsApi* | [**set_confirmation_threshold_by_transaction_hash**](docs/TransactionsApi.md#set_confirmation_threshold_by_transaction_hash) | **POST** /txHash/{txHash}/set_confirmation_threshold | Set confirmation threshold by transaction hash +*TransactionsApi* | [**set_transaction_confirmation_threshold**](docs/TransactionsApi.md#set_transaction_confirmation_threshold) | **POST** /transactions/{txId}/set_confirmation_threshold | Set confirmation threshold by transaction ID +*TransactionsApi* | [**unfreeze_transaction**](docs/TransactionsApi.md#unfreeze_transaction) | **POST** /transactions/{txId}/unfreeze | Unfreeze a transaction +*TransactionsApi* | [**validate_address**](docs/TransactionsApi.md#validate_address) | **GET** /transactions/validate_address/{assetId}/{address} | Validate destination address +*TravelRuleBetaApi* | [**get_vaspby_did**](docs/TravelRuleBetaApi.md#get_vaspby_did) | **GET** /screening/travel_rule/vasp/{did} | Get VASP details +*TravelRuleBetaApi* | [**get_vasps**](docs/TravelRuleBetaApi.md#get_vasps) | **GET** /screening/travel_rule/vasp | Get All VASPs +*TravelRuleBetaApi* | [**update_vasp**](docs/TravelRuleBetaApi.md#update_vasp) | **PUT** /screening/travel_rule/vasp/update | Add jsonDidKey to VASP details +*TravelRuleBetaApi* | [**validate_full_travel_rule_transaction**](docs/TravelRuleBetaApi.md#validate_full_travel_rule_transaction) | **POST** /screening/travel_rule/transaction/validate/full | Validate Full Travel Rule Transaction +*TravelRuleBetaApi* | [**validate_travel_rule_transaction**](docs/TravelRuleBetaApi.md#validate_travel_rule_transaction) | **POST** /screening/travel_rule/transaction/validate | Validate Travel Rule Transaction +*UserGroupsBetaApi* | [**create_user_group**](docs/UserGroupsBetaApi.md#create_user_group) | **POST** /management/user_groups | Create user group +*UserGroupsBetaApi* | [**delete_user_group**](docs/UserGroupsBetaApi.md#delete_user_group) | **DELETE** /management/user_groups/{groupId} | Delete user group +*UserGroupsBetaApi* | [**get_user_group**](docs/UserGroupsBetaApi.md#get_user_group) | **GET** /management/user_groups/{groupId} | Get user group +*UserGroupsBetaApi* | [**get_user_groups**](docs/UserGroupsBetaApi.md#get_user_groups) | **GET** /management/user_groups | List user groups +*UserGroupsBetaApi* | [**update_user_group**](docs/UserGroupsBetaApi.md#update_user_group) | **PUT** /management/user_groups/{groupId} | Update user group +*UsersApi* | [**get_users**](docs/UsersApi.md#get_users) | **GET** /users | List users +*VaultsApi* | [**activate_asset_for_vault_account**](docs/VaultsApi.md#activate_asset_for_vault_account) | **POST** /vault/accounts/{vaultAccountId}/{assetId}/activate | Activate a wallet in a vault account +*VaultsApi* | [**create_legacy_address**](docs/VaultsApi.md#create_legacy_address) | **POST** /vault/accounts/{vaultAccountId}/{assetId}/addresses/{addressId}/create_legacy | Convert a segwit address to legacy format +*VaultsApi* | [**create_multiple_accounts**](docs/VaultsApi.md#create_multiple_accounts) | **POST** /vault/accounts/bulk | Bulk creation of new vault accounts +*VaultsApi* | [**create_vault_account**](docs/VaultsApi.md#create_vault_account) | **POST** /vault/accounts | Create a new vault account +*VaultsApi* | [**create_vault_account_asset**](docs/VaultsApi.md#create_vault_account_asset) | **POST** /vault/accounts/{vaultAccountId}/{assetId} | Create a new wallet +*VaultsApi* | [**create_vault_account_asset_address**](docs/VaultsApi.md#create_vault_account_asset_address) | **POST** /vault/accounts/{vaultAccountId}/{assetId}/addresses | Create new asset deposit address +*VaultsApi* | [**get_asset_wallets**](docs/VaultsApi.md#get_asset_wallets) | **GET** /vault/asset_wallets | List asset wallets (Paginated) +*VaultsApi* | [**get_max_spendable_amount**](docs/VaultsApi.md#get_max_spendable_amount) | **GET** /vault/accounts/{vaultAccountId}/{assetId}/max_spendable_amount | Get the maximum spendable amount in a single transaction. +*VaultsApi* | [**get_paged_vault_accounts**](docs/VaultsApi.md#get_paged_vault_accounts) | **GET** /vault/accounts_paged | List vault accounts (Paginated) +*VaultsApi* | [**get_public_key_info**](docs/VaultsApi.md#get_public_key_info) | **GET** /vault/public_key_info | Get the public key information +*VaultsApi* | [**get_public_key_info_for_address**](docs/VaultsApi.md#get_public_key_info_for_address) | **GET** /vault/accounts/{vaultAccountId}/{assetId}/{change}/{addressIndex}/public_key_info | Get the public key for a vault account +*VaultsApi* | [**get_unspent_inputs**](docs/VaultsApi.md#get_unspent_inputs) | **GET** /vault/accounts/{vaultAccountId}/{assetId}/unspent_inputs | Get UTXO unspent inputs information +*VaultsApi* | [**get_vault_account**](docs/VaultsApi.md#get_vault_account) | **GET** /vault/accounts/{vaultAccountId} | Find a vault account by ID +*VaultsApi* | [**get_vault_account_asset**](docs/VaultsApi.md#get_vault_account_asset) | **GET** /vault/accounts/{vaultAccountId}/{assetId} | Get the asset balance for a vault account +*VaultsApi* | [**get_vault_account_asset_addresses_paginated**](docs/VaultsApi.md#get_vault_account_asset_addresses_paginated) | **GET** /vault/accounts/{vaultAccountId}/{assetId}/addresses_paginated | List addresses (Paginated) +*VaultsApi* | [**get_vault_assets**](docs/VaultsApi.md#get_vault_assets) | **GET** /vault/assets | Get asset balance for chosen assets +*VaultsApi* | [**get_vault_balance_by_asset**](docs/VaultsApi.md#get_vault_balance_by_asset) | **GET** /vault/assets/{assetId} | Get vault balance by asset +*VaultsApi* | [**hide_vault_account**](docs/VaultsApi.md#hide_vault_account) | **POST** /vault/accounts/{vaultAccountId}/hide | Hide a vault account in the console +*VaultsApi* | [**set_customer_ref_id_for_address**](docs/VaultsApi.md#set_customer_ref_id_for_address) | **POST** /vault/accounts/{vaultAccountId}/{assetId}/addresses/{addressId}/set_customer_ref_id | Assign AML customer reference ID +*VaultsApi* | [**set_vault_account_auto_fuel**](docs/VaultsApi.md#set_vault_account_auto_fuel) | **POST** /vault/accounts/{vaultAccountId}/set_auto_fuel | Turn autofueling on or off +*VaultsApi* | [**set_vault_account_customer_ref_id**](docs/VaultsApi.md#set_vault_account_customer_ref_id) | **POST** /vault/accounts/{vaultAccountId}/set_customer_ref_id | Set an AML/KYT customer reference ID for a vault account +*VaultsApi* | [**unhide_vault_account**](docs/VaultsApi.md#unhide_vault_account) | **POST** /vault/accounts/{vaultAccountId}/unhide | Unhide a vault account in the console +*VaultsApi* | [**update_vault_account**](docs/VaultsApi.md#update_vault_account) | **PUT** /vault/accounts/{vaultAccountId} | Rename a vault account +*VaultsApi* | [**update_vault_account_asset_address**](docs/VaultsApi.md#update_vault_account_asset_address) | **PUT** /vault/accounts/{vaultAccountId}/{assetId}/addresses/{addressId} | Update address description +*VaultsApi* | [**update_vault_account_asset_balance**](docs/VaultsApi.md#update_vault_account_asset_balance) | **POST** /vault/accounts/{vaultAccountId}/{assetId}/balance | Refresh asset balance data +*Web3ConnectionsApi* | [**create**](docs/Web3ConnectionsApi.md#create) | **POST** /connections/wc | Create a new Web3 connection. +*Web3ConnectionsApi* | [**get**](docs/Web3ConnectionsApi.md#get) | **GET** /connections | List all open Web3 connections. +*Web3ConnectionsApi* | [**remove**](docs/Web3ConnectionsApi.md#remove) | **DELETE** /connections/wc/{id} | Remove an existing Web3 connection. +*Web3ConnectionsApi* | [**submit**](docs/Web3ConnectionsApi.md#submit) | **PUT** /connections/wc/{id} | Respond to a pending Web3 connection request. +*WebhooksApi* | [**resend_transaction_webhooks**](docs/WebhooksApi.md#resend_transaction_webhooks) | **POST** /webhooks/resend/{txId} | Resend failed webhooks for a transaction by ID +*WebhooksApi* | [**resend_webhooks**](docs/WebhooksApi.md#resend_webhooks) | **POST** /webhooks/resend | Resend failed webhooks +*WorkspaceStatusBetaApi* | [**get_workspace_status**](docs/WorkspaceStatusBetaApi.md#get_workspace_status) | **GET** /management/workspace_status | Returns current workspace status +*WhitelistIpAddressesApi* | [**get_whitelist_ip_addresses**](docs/WhitelistIpAddressesApi.md#get_whitelist_ip_addresses) | **GET** /management/api_users/{userId}/whitelist_ip_addresses | Gets whitelisted ip addresses -## Documentation For Models - - [AddCollateralRequestBody](docs/models/AddCollateralRequestBody.md) - - [AmlScreeningResult](docs/models/AmlScreeningResult.md) - - [AmountAggregationTimePeriodMethod](docs/models/AmountAggregationTimePeriodMethod.md) - - [AmountInfo](docs/models/AmountInfo.md) - - [AssetTypeResponse](docs/models/AssetTypeResponse.md) - - [AssetWallet](docs/models/AssetWallet.md) - - [AuthorizationGroups](docs/models/AuthorizationGroups.md) - - [AuthorizationInfo](docs/models/AuthorizationInfo.md) - - [BlockInfo](docs/models/BlockInfo.md) - - [CancelTransactionResponse](docs/models/CancelTransactionResponse.md) - - [CollectionOwnershipResponse](docs/models/CollectionOwnershipResponse.md) - - [ConfigChangeRequestStatus](docs/models/ConfigChangeRequestStatus.md) - - [CreateAddressResponse](docs/models/CreateAddressResponse.md) - - [CreateConnectionRequest](docs/models/CreateConnectionRequest.md) - - [CreateConnectionResponse](docs/models/CreateConnectionResponse.md) - - [CreateInternalTransferRequest](docs/models/CreateInternalTransferRequest.md) - - [CreatePayoutRequest](docs/models/CreatePayoutRequest.md) - - [CreateTransactionResponse](docs/models/CreateTransactionResponse.md) - - [CreateUsersGroupResponse](docs/models/CreateUsersGroupResponse.md) - - [CreateVaultAssetResponse](docs/models/CreateVaultAssetResponse.md) - - [CustomCryptoRoutingDest](docs/models/CustomCryptoRoutingDest.md) - - [CustomFiatRoutingDest](docs/models/CustomFiatRoutingDest.md) - - [DefaultNetworkRoutingDest](docs/models/DefaultNetworkRoutingDest.md) - - [DestinationTransferPeerPath](docs/models/DestinationTransferPeerPath.md) - - [DestinationTransferPeerPathResponse](docs/models/DestinationTransferPeerPathResponse.md) - - [DispatchPayoutResponse](docs/models/DispatchPayoutResponse.md) - - [DraftResponse](docs/models/DraftResponse.md) - - [DraftReviewAndValidationResponse](docs/models/DraftReviewAndValidationResponse.md) - - [DropTransactionRequest](docs/models/DropTransactionRequest.md) - - [DropTransactionResponse](docs/models/DropTransactionResponse.md) - - [Error](docs/models/Error.md) - - [ErrorResponse](docs/models/ErrorResponse.md) - - [EstimatedNetworkFeeResponse](docs/models/EstimatedNetworkFeeResponse.md) - - [EstimatedTransactionFeeResponse](docs/models/EstimatedTransactionFeeResponse.md) - - [ExchangeAccount](docs/models/ExchangeAccount.md) - - [ExchangeAsset](docs/models/ExchangeAsset.md) - - [ExchangeTradingAccount](docs/models/ExchangeTradingAccount.md) - - [ExchangeType](docs/models/ExchangeType.md) - - [ExternalWalletAsset](docs/models/ExternalWalletAsset.md) - - [FeeInfo](docs/models/FeeInfo.md) - - [FiatAccount](docs/models/FiatAccount.md) - - [FiatAccountType](docs/models/FiatAccountType.md) - - [FiatAsset](docs/models/FiatAsset.md) - - [FreezeTransactionResponse](docs/models/FreezeTransactionResponse.md) - - [GasStationConfiguration](docs/models/GasStationConfiguration.md) - - [GasStationPropertiesResponse](docs/models/GasStationPropertiesResponse.md) - - [GetConnectionsResponse](docs/models/GetConnectionsResponse.md) - - [GetSettlementResponse](docs/models/GetSettlementResponse.md) - - [GetTransactionOperation](docs/models/GetTransactionOperation.md) - - [GetUsersResponse](docs/models/GetUsersResponse.md) - - [InstructionAmount](docs/models/InstructionAmount.md) - - [MediaEntityResponse](docs/models/MediaEntityResponse.md) - - [Ncw](docs/models/Ncw.md) - - [NetworkChannel](docs/models/NetworkChannel.md) - - [NetworkConnection](docs/models/NetworkConnection.md) - - [NetworkConnectionResponse](docs/models/NetworkConnectionResponse.md) - - [NetworkConnectionRoutingPolicy](docs/models/NetworkConnectionRoutingPolicy.md) - - [NetworkFee](docs/models/NetworkFee.md) - - [NetworkId](docs/models/NetworkId.md) - - [NetworkIdResponse](docs/models/NetworkIdResponse.md) - - [NetworkIdRoutingPolicy](docs/models/NetworkIdRoutingPolicy.md) - - [NetworkRecord](docs/models/NetworkRecord.md) - - [NoneNetworkRoutingDest](docs/models/NoneNetworkRoutingDest.md) - - [OneTimeAddress](docs/models/OneTimeAddress.md) - - [PaginatedAssetWalletResponse](docs/models/PaginatedAssetWalletResponse.md) - - [Paging](docs/models/Paging.md) - - [PayeeAccount](docs/models/PayeeAccount.md) - - [PayeeAccountResponse](docs/models/PayeeAccountResponse.md) - - [PayeeAccountType](docs/models/PayeeAccountType.md) - - [PaymentAccount](docs/models/PaymentAccount.md) - - [PaymentAccountResponse](docs/models/PaymentAccountResponse.md) - - [PaymentAccountType](docs/models/PaymentAccountType.md) - - [PayoutInitMethod](docs/models/PayoutInitMethod.md) - - [PayoutInstruction](docs/models/PayoutInstruction.md) - - [PayoutInstructionResponse](docs/models/PayoutInstructionResponse.md) - - [PayoutInstructionState](docs/models/PayoutInstructionState.md) - - [PayoutResponse](docs/models/PayoutResponse.md) - - [PayoutState](docs/models/PayoutState.md) - - [PayoutStatus](docs/models/PayoutStatus.md) - - [PolicyAndValidationResponse](docs/models/PolicyAndValidationResponse.md) - - [PolicyCheckResult](docs/models/PolicyCheckResult.md) - - [PolicyMetadata](docs/models/PolicyMetadata.md) - - [PolicyResponse](docs/models/PolicyResponse.md) - - [PolicyRule](docs/models/PolicyRule.md) - - [PolicyRuleCheckResult](docs/models/PolicyRuleCheckResult.md) - - [PolicyRuleError](docs/models/PolicyRuleError.md) - - [PolicySrcOrDestId](docs/models/PolicySrcOrDestId.md) - - [PolicySrcOrDestSubType](docs/models/PolicySrcOrDestSubType.md) - - [PolicySrcOrDestType](docs/models/PolicySrcOrDestType.md) - - [PolicyStatus](docs/models/PolicyStatus.md) - - [PolicyValidation](docs/models/PolicyValidation.md) - - [PublicKeyInformation](docs/models/PublicKeyInformation.md) - - [PublishResult](docs/models/PublishResult.md) - - [RemoveCollateralRequestBody](docs/models/RemoveCollateralRequestBody.md) - - [RequestOptions](docs/models/RequestOptions.md) - - [ResendWebhooksResponse](docs/models/ResendWebhooksResponse.md) - - [RespondToConnectionRequest](docs/models/RespondToConnectionRequest.md) - - [RewardInfo](docs/models/RewardInfo.md) - - [RewardsInfo](docs/models/RewardsInfo.md) - - [SessionDTO](docs/models/SessionDTO.md) - - [SessionMetadata](docs/models/SessionMetadata.md) - - [SetConfirmationsThresholdRequest](docs/models/SetConfirmationsThresholdRequest.md) - - [SetConfirmationsThresholdResponse](docs/models/SetConfirmationsThresholdResponse.md) - - [SettlementRequestBody](docs/models/SettlementRequestBody.md) - - [SettlementResponse](docs/models/SettlementResponse.md) - - [SignedMessage](docs/models/SignedMessage.md) - - [SourceTransferPeerPathResponse](docs/models/SourceTransferPeerPathResponse.md) - - [SystemMessageInfo](docs/models/SystemMessageInfo.md) - - [Term](docs/models/Term.md) - - [ToCollateralTransaction](docs/models/ToCollateralTransaction.md) - - [ToExchangeTransaction](docs/models/ToExchangeTransaction.md) - - [TokenCollectionResponse](docs/models/TokenCollectionResponse.md) - - [TokenOwnershipResponse](docs/models/TokenOwnershipResponse.md) - - [TokenResponse](docs/models/TokenResponse.md) - - [TradingAccountType](docs/models/TradingAccountType.md) - - [Transaction](docs/models/Transaction.md) - - [TransactionFee](docs/models/TransactionFee.md) - - [TransactionOperation](docs/models/TransactionOperation.md) - - [TransactionRequest](docs/models/TransactionRequest.md) - - [TransactionRequestDestination](docs/models/TransactionRequestDestination.md) - - [TransactionResponse](docs/models/TransactionResponse.md) - - [TransactionResponseDestination](docs/models/TransactionResponseDestination.md) - - [TransferPeerPath](docs/models/TransferPeerPath.md) - - [TravelRuleAddress](docs/models/TravelRuleAddress.md) - - [TravelRuleGetAllVASPsResponse](docs/models/TravelRuleGetAllVASPsResponse.md) - - [TravelRuleIssuer](docs/models/TravelRuleIssuer.md) - - [TravelRuleIssuers](docs/models/TravelRuleIssuers.md) - - [TravelRuleOwnershipProof](docs/models/TravelRuleOwnershipProof.md) - - [TravelRulePiiIVMS](docs/models/TravelRulePiiIVMS.md) - - [TravelRuleTransactionBlockchainInfo](docs/models/TravelRuleTransactionBlockchainInfo.md) - - [TravelRuleUpdateVASPDetails](docs/models/TravelRuleUpdateVASPDetails.md) - - [TravelRuleVASP](docs/models/TravelRuleVASP.md) - - [TravelRuleValidateFullTransactionRequest](docs/models/TravelRuleValidateFullTransactionRequest.md) - - [TravelRuleValidateTransactionRequest](docs/models/TravelRuleValidateTransactionRequest.md) - - [TravelRuleValidateTransactionResponse](docs/models/TravelRuleValidateTransactionResponse.md) - - [UnfreezeTransactionResponse](docs/models/UnfreezeTransactionResponse.md) - - [UnmanagedWallet](docs/models/UnmanagedWallet.md) - - [UnsignedMessage](docs/models/UnsignedMessage.md) - - [UnspentInput](docs/models/UnspentInput.md) - - [UnspentInputsResponse](docs/models/UnspentInputsResponse.md) - - [UpdateTokenOwnershipStatusDto](docs/models/UpdateTokenOwnershipStatusDto.md) - - [UserGroupCreateRequest](docs/models/UserGroupCreateRequest.md) - - [UserGroupCreateResponse](docs/models/UserGroupCreateResponse.md) - - [UserGroupUpdateRequest](docs/models/UserGroupUpdateRequest.md) - - [UserResponse](docs/models/UserResponse.md) - - [UsersGroupResponse](docs/models/UsersGroupResponse.md) - - [UsersGroupsResponse](docs/models/UsersGroupsResponse.md) - - [ValidateAddressResponse](docs/models/ValidateAddressResponse.md) - - [VaultAccount](docs/models/VaultAccount.md) - - [VaultAccountsPagedResponse](docs/models/VaultAccountsPagedResponse.md) - - [VaultAsset](docs/models/VaultAsset.md) - - [VaultWalletAddress](docs/models/VaultWalletAddress.md) - - [WalletAsset](docs/models/WalletAsset.md) - - [WalletAssetAdditionalInfo](docs/models/WalletAssetAdditionalInfo.md) - - [XBSettlementAsset](docs/models/XBSettlementAsset.md) - - [XBSettlementAssetID](docs/models/XBSettlementAssetID.md) - - [XBSettlementConfigCreationRequestBody](docs/models/XBSettlementConfigCreationRequestBody.md) - - [XBSettlementConfigCreationResponse](docs/models/XBSettlementConfigCreationResponse.md) - - [XBSettlementConfigDeletionResponse](docs/models/XBSettlementConfigDeletionResponse.md) - - [XBSettlementConfigEditRequestBody](docs/models/XBSettlementConfigEditRequestBody.md) - - [XBSettlementConfigEditResponse](docs/models/XBSettlementConfigEditResponse.md) - - [XBSettlementConfigId](docs/models/XBSettlementConfigId.md) - - [XBSettlementConfigModel](docs/models/XBSettlementConfigModel.md) - - [XBSettlementConfigStep](docs/models/XBSettlementConfigStep.md) - - [XBSettlementConfigStepsRecord](docs/models/XBSettlementConfigStepsRecord.md) - - [XBSettlementConversionSlippageBasisPoints](docs/models/XBSettlementConversionSlippageBasisPoints.md) - - [XBSettlementCorridorId](docs/models/XBSettlementCorridorId.md) - - [XBSettlementCreateFlowRequestBody](docs/models/XBSettlementCreateFlowRequestBody.md) - - [XBSettlementCreateFlowResponse](docs/models/XBSettlementCreateFlowResponse.md) - - [XBSettlementCryptoAsset](docs/models/XBSettlementCryptoAsset.md) - - [XBSettlementFiatAsset](docs/models/XBSettlementFiatAsset.md) - - [XBSettlementFlowExecutionModel](docs/models/XBSettlementFlowExecutionModel.md) - - [XBSettlementFlowExecutionRequestBody](docs/models/XBSettlementFlowExecutionRequestBody.md) - - [XBSettlementFlowExecutionResponse](docs/models/XBSettlementFlowExecutionResponse.md) - - [XBSettlementFlowExecutionStatus](docs/models/XBSettlementFlowExecutionStatus.md) - - [XBSettlementFlowExecutionStep](docs/models/XBSettlementFlowExecutionStep.md) - - [XBSettlementFlowExecutionStepStatus](docs/models/XBSettlementFlowExecutionStepStatus.md) - - [XBSettlementFlowPreviewModel](docs/models/XBSettlementFlowPreviewModel.md) - - [XBSettlementFlowSelectedConversionSlippageReason](docs/models/XBSettlementFlowSelectedConversionSlippageReason.md) - - [XBSettlementFlowSetupStep](docs/models/XBSettlementFlowSetupStep.md) - - [XBSettlementFlowStepsExecutionRecord](docs/models/XBSettlementFlowStepsExecutionRecord.md) - - [XBSettlementFlowStepsRecord](docs/models/XBSettlementFlowStepsRecord.md) - - [XBSettlementGetAllConfigsResponse](docs/models/XBSettlementGetAllConfigsResponse.md) - - [XBSettlementGetConfigResponse](docs/models/XBSettlementGetConfigResponse.md) - - [XBSettlementGetFlowResponse](docs/models/XBSettlementGetFlowResponse.md) - - [XBSettlementStepType](docs/models/XBSettlementStepType.md) +## Documentation For Models + - [APIUser](docs/APIUser.md) + - [AbiFunction](docs/AbiFunction.md) + - [Account](docs/Account.md) + - [AccountType](docs/AccountType.md) + - [AddAssetToExternalWalletRequest](docs/AddAssetToExternalWalletRequest.md) + - [AddAssetToExternalWalletRequestOneOf](docs/AddAssetToExternalWalletRequestOneOf.md) + - [AddAssetToExternalWalletRequestOneOf1](docs/AddAssetToExternalWalletRequestOneOf1.md) + - [AddAssetToExternalWalletRequestOneOf1AdditionalInfo](docs/AddAssetToExternalWalletRequestOneOf1AdditionalInfo.md) + - [AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf](docs/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf.md) + - [AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1](docs/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1.md) + - [AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2](docs/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2.md) + - [AddCollateralRequestBody](docs/AddCollateralRequestBody.md) + - [AddContractAssetRequest](docs/AddContractAssetRequest.md) + - [AdditionalInfoDto](docs/AdditionalInfoDto.md) + - [AmlRegistrationResult](docs/AmlRegistrationResult.md) + - [AmlScreeningResult](docs/AmlScreeningResult.md) + - [AmountAggregationTimePeriodMethod](docs/AmountAggregationTimePeriodMethod.md) + - [AmountAndChainDescriptor](docs/AmountAndChainDescriptor.md) + - [AmountInfo](docs/AmountInfo.md) + - [ApiKey](docs/ApiKey.md) + - [ApiKeysPaginatedResponse](docs/ApiKeysPaginatedResponse.md) + - [AssetAlreadyExistHttpError](docs/AssetAlreadyExistHttpError.md) + - [AssetAmount](docs/AssetAmount.md) + - [AssetBadRequestErrorResponse](docs/AssetBadRequestErrorResponse.md) + - [AssetConflictErrorResponse](docs/AssetConflictErrorResponse.md) + - [AssetDoesNotExistHttpError](docs/AssetDoesNotExistHttpError.md) + - [AssetForbiddenErrorResponse](docs/AssetForbiddenErrorResponse.md) + - [AssetInternalServerErrorResponse](docs/AssetInternalServerErrorResponse.md) + - [AssetMetadataDto](docs/AssetMetadataDto.md) + - [AssetNotFoundErrorResponse](docs/AssetNotFoundErrorResponse.md) + - [AssetResponse](docs/AssetResponse.md) + - [AssetResponseMetadata](docs/AssetResponseMetadata.md) + - [AssetResponseOnchain](docs/AssetResponseOnchain.md) + - [AssetTypeResponse](docs/AssetTypeResponse.md) + - [AssetWallet](docs/AssetWallet.md) + - [AuditLogData](docs/AuditLogData.md) + - [AuditorData](docs/AuditorData.md) + - [AuthorizationGroups](docs/AuthorizationGroups.md) + - [AuthorizationInfo](docs/AuthorizationInfo.md) + - [BlockInfo](docs/BlockInfo.md) + - [CancelTransactionResponse](docs/CancelTransactionResponse.md) + - [ChainInfoResponseDto](docs/ChainInfoResponseDto.md) + - [CollectionMetadataDto](docs/CollectionMetadataDto.md) + - [CollectionOwnershipResponse](docs/CollectionOwnershipResponse.md) + - [ComplianceResult](docs/ComplianceResult.md) + - [ComplianceScreeningResult](docs/ComplianceScreeningResult.md) + - [ConfigChangeRequestStatus](docs/ConfigChangeRequestStatus.md) + - [ConfigConversionOperationSnapshot](docs/ConfigConversionOperationSnapshot.md) + - [ConfigDisbursementOperationSnapshot](docs/ConfigDisbursementOperationSnapshot.md) + - [ConfigOperation](docs/ConfigOperation.md) + - [ConfigOperationSnapshot](docs/ConfigOperationSnapshot.md) + - [ConfigOperationStatus](docs/ConfigOperationStatus.md) + - [ConfigTransferOperationSnapshot](docs/ConfigTransferOperationSnapshot.md) + - [ConsoleUser](docs/ConsoleUser.md) + - [ContractAbiResponseDto](docs/ContractAbiResponseDto.md) + - [ContractAttributes](docs/ContractAttributes.md) + - [ContractDeployRequest](docs/ContractDeployRequest.md) + - [ContractDeployResponse](docs/ContractDeployResponse.md) + - [ContractDoc](docs/ContractDoc.md) + - [ContractMetadataDto](docs/ContractMetadataDto.md) + - [ContractTemplateDto](docs/ContractTemplateDto.md) + - [ContractUploadRequest](docs/ContractUploadRequest.md) + - [ConversionConfigOperation](docs/ConversionConfigOperation.md) + - [ConversionOperationConfigParams](docs/ConversionOperationConfigParams.md) + - [ConversionOperationExecution](docs/ConversionOperationExecution.md) + - [ConversionOperationExecutionOutput](docs/ConversionOperationExecutionOutput.md) + - [ConversionOperationExecutionParams](docs/ConversionOperationExecutionParams.md) + - [ConversionOperationExecutionParamsExecutionParams](docs/ConversionOperationExecutionParamsExecutionParams.md) + - [ConversionOperationFailure](docs/ConversionOperationFailure.md) + - [ConversionOperationPreview](docs/ConversionOperationPreview.md) + - [ConversionOperationPreviewOutput](docs/ConversionOperationPreviewOutput.md) + - [ConversionOperationType](docs/ConversionOperationType.md) + - [ConversionValidationFailure](docs/ConversionValidationFailure.md) + - [ConvertAssetsRequest](docs/ConvertAssetsRequest.md) + - [ConvertAssetsResponse](docs/ConvertAssetsResponse.md) + - [Cosigner](docs/Cosigner.md) + - [CosignersPaginatedResponse](docs/CosignersPaginatedResponse.md) + - [CreateAPIUser](docs/CreateAPIUser.md) + - [CreateAddressRequest](docs/CreateAddressRequest.md) + - [CreateAddressResponse](docs/CreateAddressResponse.md) + - [CreateAssetsBulkRequest](docs/CreateAssetsBulkRequest.md) + - [CreateAssetsRequest](docs/CreateAssetsRequest.md) + - [CreateConfigOperationRequest](docs/CreateConfigOperationRequest.md) + - [CreateConnectionRequest](docs/CreateConnectionRequest.md) + - [CreateConnectionResponse](docs/CreateConnectionResponse.md) + - [CreateConsoleUser](docs/CreateConsoleUser.md) + - [CreateContractRequest](docs/CreateContractRequest.md) + - [CreateConversionConfigOperationRequest](docs/CreateConversionConfigOperationRequest.md) + - [CreateDisbursementConfigOperationRequest](docs/CreateDisbursementConfigOperationRequest.md) + - [CreateInternalTransferRequest](docs/CreateInternalTransferRequest.md) + - [CreateInternalWalletAssetRequest](docs/CreateInternalWalletAssetRequest.md) + - [CreateMultipleAccountsRequest](docs/CreateMultipleAccountsRequest.md) + - [CreateNcwConnectionRequest](docs/CreateNcwConnectionRequest.md) + - [CreateNetworkIdRequest](docs/CreateNetworkIdRequest.md) + - [CreatePayoutRequest](docs/CreatePayoutRequest.md) + - [CreateTokenRequestDto](docs/CreateTokenRequestDto.md) + - [CreateTokenRequestDtoCreateParams](docs/CreateTokenRequestDtoCreateParams.md) + - [CreateTransactionResponse](docs/CreateTransactionResponse.md) + - [CreateTransferConfigOperationRequest](docs/CreateTransferConfigOperationRequest.md) + - [CreateUserGroupResponse](docs/CreateUserGroupResponse.md) + - [CreateVaultAccountConnectionRequest](docs/CreateVaultAccountConnectionRequest.md) + - [CreateVaultAccountRequest](docs/CreateVaultAccountRequest.md) + - [CreateVaultAssetResponse](docs/CreateVaultAssetResponse.md) + - [CreateWalletRequest](docs/CreateWalletRequest.md) + - [CreateWorkflowExecutionRequestParamsInner](docs/CreateWorkflowExecutionRequestParamsInner.md) + - [CustomRoutingDest](docs/CustomRoutingDest.md) + - [DefaultNetworkRoutingDest](docs/DefaultNetworkRoutingDest.md) + - [DelegationDto](docs/DelegationDto.md) + - [DelegationSummaryDto](docs/DelegationSummaryDto.md) + - [DeleteNetworkConnectionResponse](docs/DeleteNetworkConnectionResponse.md) + - [DeleteNetworkIdResponse](docs/DeleteNetworkIdResponse.md) + - [DeployedContractResponseDto](docs/DeployedContractResponseDto.md) + - [DeployedContractsPaginatedResponse](docs/DeployedContractsPaginatedResponse.md) + - [DepositFundsFromLinkedDDAResponse](docs/DepositFundsFromLinkedDDAResponse.md) + - [Destination](docs/Destination.md) + - [DestinationTransferPeerPath](docs/DestinationTransferPeerPath.md) + - [DestinationTransferPeerPathResponse](docs/DestinationTransferPeerPathResponse.md) + - [DisbursementAmountInstruction](docs/DisbursementAmountInstruction.md) + - [DisbursementConfigOperation](docs/DisbursementConfigOperation.md) + - [DisbursementInstruction](docs/DisbursementInstruction.md) + - [DisbursementInstructionOutput](docs/DisbursementInstructionOutput.md) + - [DisbursementOperationConfigParams](docs/DisbursementOperationConfigParams.md) + - [DisbursementOperationExecution](docs/DisbursementOperationExecution.md) + - [DisbursementOperationExecutionOutput](docs/DisbursementOperationExecutionOutput.md) + - [DisbursementOperationExecutionParams](docs/DisbursementOperationExecutionParams.md) + - [DisbursementOperationExecutionParamsExecutionParams](docs/DisbursementOperationExecutionParamsExecutionParams.md) + - [DisbursementOperationInput](docs/DisbursementOperationInput.md) + - [DisbursementOperationPreview](docs/DisbursementOperationPreview.md) + - [DisbursementOperationPreviewOutput](docs/DisbursementOperationPreviewOutput.md) + - [DisbursementOperationPreviewOutputInstructionSetInner](docs/DisbursementOperationPreviewOutputInstructionSetInner.md) + - [DisbursementOperationType](docs/DisbursementOperationType.md) + - [DisbursementPercentageInstruction](docs/DisbursementPercentageInstruction.md) + - [DisbursementValidationFailure](docs/DisbursementValidationFailure.md) + - [DispatchPayoutResponse](docs/DispatchPayoutResponse.md) + - [DraftResponse](docs/DraftResponse.md) + - [DraftReviewAndValidationResponse](docs/DraftReviewAndValidationResponse.md) + - [DropTransactionRequest](docs/DropTransactionRequest.md) + - [DropTransactionResponse](docs/DropTransactionResponse.md) + - [EVMTokenCreateParamsDto](docs/EVMTokenCreateParamsDto.md) + - [EditGasStationConfigurationResponse](docs/EditGasStationConfigurationResponse.md) + - [ErrorResponse](docs/ErrorResponse.md) + - [ErrorResponseError](docs/ErrorResponseError.md) + - [ErrorSchema](docs/ErrorSchema.md) + - [EstimatedNetworkFeeResponse](docs/EstimatedNetworkFeeResponse.md) + - [EstimatedTransactionFeeResponse](docs/EstimatedTransactionFeeResponse.md) + - [ExchangeAccount](docs/ExchangeAccount.md) + - [ExchangeAccountsPaged](docs/ExchangeAccountsPaged.md) + - [ExchangeAccountsPagedPaging](docs/ExchangeAccountsPagedPaging.md) + - [ExchangeAsset](docs/ExchangeAsset.md) + - [ExchangeSettlementTransactionsResponse](docs/ExchangeSettlementTransactionsResponse.md) + - [ExchangeTradingAccount](docs/ExchangeTradingAccount.md) + - [ExchangeType](docs/ExchangeType.md) + - [ExecuteActionRequest](docs/ExecuteActionRequest.md) + - [ExecuteActionResponse](docs/ExecuteActionResponse.md) + - [ExecutionConversionOperation](docs/ExecutionConversionOperation.md) + - [ExecutionDisbursementOperation](docs/ExecutionDisbursementOperation.md) + - [ExecutionOperationStatus](docs/ExecutionOperationStatus.md) + - [ExecutionScreeningOperation](docs/ExecutionScreeningOperation.md) + - [ExecutionTransferOperation](docs/ExecutionTransferOperation.md) + - [ExternalWalletAsset](docs/ExternalWalletAsset.md) + - [FeeInfo](docs/FeeInfo.md) + - [FiatAccount](docs/FiatAccount.md) + - [FiatAccountType](docs/FiatAccountType.md) + - [FiatAsset](docs/FiatAsset.md) + - [FreezeTransactionResponse](docs/FreezeTransactionResponse.md) + - [FunctionDoc](docs/FunctionDoc.md) + - [Funds](docs/Funds.md) + - [GasStationConfiguration](docs/GasStationConfiguration.md) + - [GasStationConfigurationResponse](docs/GasStationConfigurationResponse.md) + - [GasStationPropertiesResponse](docs/GasStationPropertiesResponse.md) + - [GetAPIUsersResponse](docs/GetAPIUsersResponse.md) + - [GetAuditLogsResponse](docs/GetAuditLogsResponse.md) + - [GetAuditLogsResponseDTO](docs/GetAuditLogsResponseDTO.md) + - [GetConnectionsResponse](docs/GetConnectionsResponse.md) + - [GetConsoleUsersResponse](docs/GetConsoleUsersResponse.md) + - [GetFilterParameter](docs/GetFilterParameter.md) + - [GetMaxSpendableAmountResponse](docs/GetMaxSpendableAmountResponse.md) + - [GetNFTsResponse](docs/GetNFTsResponse.md) + - [GetOtaStatusResponse](docs/GetOtaStatusResponse.md) + - [GetOwnershipTokensResponse](docs/GetOwnershipTokensResponse.md) + - [GetTransactionOperation](docs/GetTransactionOperation.md) + - [GetWhitelistIpAddressesResponse](docs/GetWhitelistIpAddressesResponse.md) + - [GetWorkspaceStatusResponse](docs/GetWorkspaceStatusResponse.md) + - [HttpContractDoesNotExistError](docs/HttpContractDoesNotExistError.md) + - [InstructionAmount](docs/InstructionAmount.md) + - [InternalTransferResponse](docs/InternalTransferResponse.md) + - [Job](docs/Job.md) + - [JobCreated](docs/JobCreated.md) + - [LeanAbiFunction](docs/LeanAbiFunction.md) + - [LeanContractDto](docs/LeanContractDto.md) + - [LeanDeployedContractResponseDto](docs/LeanDeployedContractResponseDto.md) + - [ListOwnedCollectionsResponse](docs/ListOwnedCollectionsResponse.md) + - [ListOwnedTokensResponse](docs/ListOwnedTokensResponse.md) + - [MediaEntityResponse](docs/MediaEntityResponse.md) + - [NetworkChannel](docs/NetworkChannel.md) + - [NetworkConnection](docs/NetworkConnection.md) + - [NetworkConnectionResponse](docs/NetworkConnectionResponse.md) + - [NetworkConnectionRoutingPolicyValue](docs/NetworkConnectionRoutingPolicyValue.md) + - [NetworkConnectionStatus](docs/NetworkConnectionStatus.md) + - [NetworkFee](docs/NetworkFee.md) + - [NetworkId](docs/NetworkId.md) + - [NetworkIdResponse](docs/NetworkIdResponse.md) + - [NetworkIdRoutingPolicyValue](docs/NetworkIdRoutingPolicyValue.md) + - [NetworkRecord](docs/NetworkRecord.md) + - [NoneNetworkRoutingDest](docs/NoneNetworkRoutingDest.md) + - [NotFoundException](docs/NotFoundException.md) + - [OneTimeAddress](docs/OneTimeAddress.md) + - [OneTimeAddressAccount](docs/OneTimeAddressAccount.md) + - [OperationExecutionFailure](docs/OperationExecutionFailure.md) + - [PaginatedAddressResponse](docs/PaginatedAddressResponse.md) + - [PaginatedAddressResponsePaging](docs/PaginatedAddressResponsePaging.md) + - [PaginatedAssetWalletResponse](docs/PaginatedAssetWalletResponse.md) + - [PaginatedAssetWalletResponsePaging](docs/PaginatedAssetWalletResponsePaging.md) + - [Paging](docs/Paging.md) + - [Parameter](docs/Parameter.md) + - [ParameterWithValue](docs/ParameterWithValue.md) + - [PayeeAccount](docs/PayeeAccount.md) + - [PayeeAccountResponse](docs/PayeeAccountResponse.md) + - [PayeeAccountType](docs/PayeeAccountType.md) + - [PaymentAccount](docs/PaymentAccount.md) + - [PaymentAccountResponse](docs/PaymentAccountResponse.md) + - [PaymentAccountType](docs/PaymentAccountType.md) + - [PayoutInitMethod](docs/PayoutInitMethod.md) + - [PayoutInstruction](docs/PayoutInstruction.md) + - [PayoutInstructionResponse](docs/PayoutInstructionResponse.md) + - [PayoutInstructionState](docs/PayoutInstructionState.md) + - [PayoutResponse](docs/PayoutResponse.md) + - [PayoutState](docs/PayoutState.md) + - [PayoutStatus](docs/PayoutStatus.md) + - [PolicyAndValidationResponse](docs/PolicyAndValidationResponse.md) + - [PolicyCheckResult](docs/PolicyCheckResult.md) + - [PolicyMetadata](docs/PolicyMetadata.md) + - [PolicyResponse](docs/PolicyResponse.md) + - [PolicyRule](docs/PolicyRule.md) + - [PolicyRuleAmount](docs/PolicyRuleAmount.md) + - [PolicyRuleAmountAggregation](docs/PolicyRuleAmountAggregation.md) + - [PolicyRuleAuthorizationGroups](docs/PolicyRuleAuthorizationGroups.md) + - [PolicyRuleAuthorizationGroupsGroupsInner](docs/PolicyRuleAuthorizationGroupsGroupsInner.md) + - [PolicyRuleCheckResult](docs/PolicyRuleCheckResult.md) + - [PolicyRuleDesignatedSigners](docs/PolicyRuleDesignatedSigners.md) + - [PolicyRuleDst](docs/PolicyRuleDst.md) + - [PolicyRuleError](docs/PolicyRuleError.md) + - [PolicyRuleOperators](docs/PolicyRuleOperators.md) + - [PolicyRuleRawMessageSigning](docs/PolicyRuleRawMessageSigning.md) + - [PolicyRuleRawMessageSigningDerivationPath](docs/PolicyRuleRawMessageSigningDerivationPath.md) + - [PolicyRuleSrc](docs/PolicyRuleSrc.md) + - [PolicyRules](docs/PolicyRules.md) + - [PolicySrcOrDestSubType](docs/PolicySrcOrDestSubType.md) + - [PolicySrcOrDestType](docs/PolicySrcOrDestType.md) + - [PolicyStatus](docs/PolicyStatus.md) + - [PolicyValidation](docs/PolicyValidation.md) + - [PreScreening](docs/PreScreening.md) + - [ProviderDto](docs/ProviderDto.md) + - [PublicKeyInformation](docs/PublicKeyInformation.md) + - [PublishDraftRequest](docs/PublishDraftRequest.md) + - [PublishResult](docs/PublishResult.md) + - [ReadAbiFunction](docs/ReadAbiFunction.md) + - [ReadCallFunctionDto](docs/ReadCallFunctionDto.md) + - [RedeemFundsToLinkedDDAResponse](docs/RedeemFundsToLinkedDDAResponse.md) + - [RegisterNewAssetRequest](docs/RegisterNewAssetRequest.md) + - [RelatedTransactionDto](docs/RelatedTransactionDto.md) + - [RemoveCollateralRequestBody](docs/RemoveCollateralRequestBody.md) + - [RenameCosigner](docs/RenameCosigner.md) + - [RenameVaultAccountResponse](docs/RenameVaultAccountResponse.md) + - [ResendTransactionWebhooksRequest](docs/ResendTransactionWebhooksRequest.md) + - [ResendWebhooksByTransactionIdResponse](docs/ResendWebhooksByTransactionIdResponse.md) + - [ResendWebhooksResponse](docs/ResendWebhooksResponse.md) + - [RespondToConnectionRequest](docs/RespondToConnectionRequest.md) + - [RewardInfo](docs/RewardInfo.md) + - [RewardsInfo](docs/RewardsInfo.md) + - [ScreeningConfigurationsRequest](docs/ScreeningConfigurationsRequest.md) + - [ScreeningOperationExecution](docs/ScreeningOperationExecution.md) + - [ScreeningOperationExecutionOutput](docs/ScreeningOperationExecutionOutput.md) + - [ScreeningOperationFailure](docs/ScreeningOperationFailure.md) + - [ScreeningOperationType](docs/ScreeningOperationType.md) + - [ScreeningPolicyResponse](docs/ScreeningPolicyResponse.md) + - [ScreeningProviderRulesConfigurationResponse](docs/ScreeningProviderRulesConfigurationResponse.md) + - [ScreeningUpdateConfigurationsRequest](docs/ScreeningUpdateConfigurationsRequest.md) + - [ScreeningValidationFailure](docs/ScreeningValidationFailure.md) + - [ScreeningVerdict](docs/ScreeningVerdict.md) + - [ScreeningVerdictMatchedRule](docs/ScreeningVerdictMatchedRule.md) + - [SessionDTO](docs/SessionDTO.md) + - [SessionMetadata](docs/SessionMetadata.md) + - [SetAdminQuorumThresholdRequest](docs/SetAdminQuorumThresholdRequest.md) + - [SetAdminQuorumThresholdResponse](docs/SetAdminQuorumThresholdResponse.md) + - [SetAutoFuelRequest](docs/SetAutoFuelRequest.md) + - [SetConfirmationsThresholdRequest](docs/SetConfirmationsThresholdRequest.md) + - [SetConfirmationsThresholdResponse](docs/SetConfirmationsThresholdResponse.md) + - [SetCustomerRefIdForAddressRequest](docs/SetCustomerRefIdForAddressRequest.md) + - [SetCustomerRefIdRequest](docs/SetCustomerRefIdRequest.md) + - [SetNetworkIdDiscoverabilityRequest](docs/SetNetworkIdDiscoverabilityRequest.md) + - [SetNetworkIdNameRequest](docs/SetNetworkIdNameRequest.md) + - [SetNetworkIdResponse](docs/SetNetworkIdResponse.md) + - [SetNetworkIdRoutingPolicyRequest](docs/SetNetworkIdRoutingPolicyRequest.md) + - [SetOtaStatusRequest](docs/SetOtaStatusRequest.md) + - [SetOtaStatusResponse](docs/SetOtaStatusResponse.md) + - [SetOtaStatusResponseOneOf](docs/SetOtaStatusResponseOneOf.md) + - [SetRoutingPolicyRequest](docs/SetRoutingPolicyRequest.md) + - [SetRoutingPolicyResponse](docs/SetRoutingPolicyResponse.md) + - [SettlementRequestBody](docs/SettlementRequestBody.md) + - [SettlementResponse](docs/SettlementResponse.md) + - [SignedMessage](docs/SignedMessage.md) + - [SignedMessageSignature](docs/SignedMessageSignature.md) + - [SmartTransferBadRequestResponse](docs/SmartTransferBadRequestResponse.md) + - [SmartTransferCreateTicket](docs/SmartTransferCreateTicket.md) + - [SmartTransferCreateTicketTerm](docs/SmartTransferCreateTicketTerm.md) + - [SmartTransferForbiddenResponse](docs/SmartTransferForbiddenResponse.md) + - [SmartTransferFundTerm](docs/SmartTransferFundTerm.md) + - [SmartTransferManuallyFundTerm](docs/SmartTransferManuallyFundTerm.md) + - [SmartTransferNotFoundResponse](docs/SmartTransferNotFoundResponse.md) + - [SmartTransferSetTicketExpiration](docs/SmartTransferSetTicketExpiration.md) + - [SmartTransferSetTicketExternalId](docs/SmartTransferSetTicketExternalId.md) + - [SmartTransferSetUserGroups](docs/SmartTransferSetUserGroups.md) + - [SmartTransferSubmitTicket](docs/SmartTransferSubmitTicket.md) + - [SmartTransferTicket](docs/SmartTransferTicket.md) + - [SmartTransferTicketFilteredResponse](docs/SmartTransferTicketFilteredResponse.md) + - [SmartTransferTicketResponse](docs/SmartTransferTicketResponse.md) + - [SmartTransferTicketTerm](docs/SmartTransferTicketTerm.md) + - [SmartTransferTicketTermResponse](docs/SmartTransferTicketTermResponse.md) + - [SmartTransferUpdateTicketTerm](docs/SmartTransferUpdateTicketTerm.md) + - [SmartTransferUserGroups](docs/SmartTransferUserGroups.md) + - [SmartTransferUserGroupsResponse](docs/SmartTransferUserGroupsResponse.md) + - [SolanaBlockchainDataDto](docs/SolanaBlockchainDataDto.md) + - [SourceTransferPeerPath](docs/SourceTransferPeerPath.md) + - [SourceTransferPeerPathResponse](docs/SourceTransferPeerPathResponse.md) + - [SpamOwnershipResponse](docs/SpamOwnershipResponse.md) + - [SpamTokenResponse](docs/SpamTokenResponse.md) + - [SrcOrDestAttributesInner](docs/SrcOrDestAttributesInner.md) + - [StakeRequestDto](docs/StakeRequestDto.md) + - [StakeResponseDto](docs/StakeResponseDto.md) + - [StellarRippleCreateParamsDto](docs/StellarRippleCreateParamsDto.md) + - [SystemMessageInfo](docs/SystemMessageInfo.md) + - [Task](docs/Task.md) + - [TemplatesPaginatedResponse](docs/TemplatesPaginatedResponse.md) + - [ThirdPartyRouting](docs/ThirdPartyRouting.md) + - [ToCollateralTransaction](docs/ToCollateralTransaction.md) + - [ToExchangeTransaction](docs/ToExchangeTransaction.md) + - [TokenCollectionResponse](docs/TokenCollectionResponse.md) + - [TokenLinkDto](docs/TokenLinkDto.md) + - [TokenLinkDtoTokenMetadata](docs/TokenLinkDtoTokenMetadata.md) + - [TokenLinkExistsHttpError](docs/TokenLinkExistsHttpError.md) + - [TokenLinkRequestDto](docs/TokenLinkRequestDto.md) + - [TokenOwnershipResponse](docs/TokenOwnershipResponse.md) + - [TokenOwnershipSpamUpdatePayload](docs/TokenOwnershipSpamUpdatePayload.md) + - [TokenOwnershipStatusUpdatePayload](docs/TokenOwnershipStatusUpdatePayload.md) + - [TokenResponse](docs/TokenResponse.md) + - [TokensPaginatedResponse](docs/TokensPaginatedResponse.md) + - [TradingAccountType](docs/TradingAccountType.md) + - [Transaction](docs/Transaction.md) + - [TransactionFee](docs/TransactionFee.md) + - [TransactionOperation](docs/TransactionOperation.md) + - [TransactionRequest](docs/TransactionRequest.md) + - [TransactionRequestAmount](docs/TransactionRequestAmount.md) + - [TransactionRequestDestination](docs/TransactionRequestDestination.md) + - [TransactionRequestFee](docs/TransactionRequestFee.md) + - [TransactionRequestGasLimit](docs/TransactionRequestGasLimit.md) + - [TransactionRequestGasPrice](docs/TransactionRequestGasPrice.md) + - [TransactionRequestNetworkFee](docs/TransactionRequestNetworkFee.md) + - [TransactionRequestNetworkStaking](docs/TransactionRequestNetworkStaking.md) + - [TransactionRequestPriorityFee](docs/TransactionRequestPriorityFee.md) + - [TransactionResponse](docs/TransactionResponse.md) + - [TransactionResponseContractCallDecodedData](docs/TransactionResponseContractCallDecodedData.md) + - [TransactionResponseDestination](docs/TransactionResponseDestination.md) + - [TransferConfigOperation](docs/TransferConfigOperation.md) + - [TransferOperationConfigParams](docs/TransferOperationConfigParams.md) + - [TransferOperationExecution](docs/TransferOperationExecution.md) + - [TransferOperationExecutionOutput](docs/TransferOperationExecutionOutput.md) + - [TransferOperationExecutionParams](docs/TransferOperationExecutionParams.md) + - [TransferOperationExecutionParamsExecutionParams](docs/TransferOperationExecutionParamsExecutionParams.md) + - [TransferOperationFailure](docs/TransferOperationFailure.md) + - [TransferOperationFailureData](docs/TransferOperationFailureData.md) + - [TransferOperationPreview](docs/TransferOperationPreview.md) + - [TransferOperationPreviewOutput](docs/TransferOperationPreviewOutput.md) + - [TransferOperationType](docs/TransferOperationType.md) + - [TransferPeerPathSubType](docs/TransferPeerPathSubType.md) + - [TransferPeerPathType](docs/TransferPeerPathType.md) + - [TransferValidationFailure](docs/TransferValidationFailure.md) + - [TravelRuleAddress](docs/TravelRuleAddress.md) + - [TravelRuleCreateTransactionRequest](docs/TravelRuleCreateTransactionRequest.md) + - [TravelRuleGetAllVASPsResponse](docs/TravelRuleGetAllVASPsResponse.md) + - [TravelRuleIssuer](docs/TravelRuleIssuer.md) + - [TravelRuleIssuers](docs/TravelRuleIssuers.md) + - [TravelRuleOwnershipProof](docs/TravelRuleOwnershipProof.md) + - [TravelRulePiiIVMS](docs/TravelRulePiiIVMS.md) + - [TravelRulePolicyRuleResponse](docs/TravelRulePolicyRuleResponse.md) + - [TravelRuleTransactionBlockchainInfo](docs/TravelRuleTransactionBlockchainInfo.md) + - [TravelRuleUpdateVASPDetails](docs/TravelRuleUpdateVASPDetails.md) + - [TravelRuleVASP](docs/TravelRuleVASP.md) + - [TravelRuleValidateFullTransactionRequest](docs/TravelRuleValidateFullTransactionRequest.md) + - [TravelRuleValidateTransactionRequest](docs/TravelRuleValidateTransactionRequest.md) + - [TravelRuleValidateTransactionResponse](docs/TravelRuleValidateTransactionResponse.md) + - [UnfreezeTransactionResponse](docs/UnfreezeTransactionResponse.md) + - [UnmanagedWallet](docs/UnmanagedWallet.md) + - [UnspentInput](docs/UnspentInput.md) + - [UnspentInputsResponse](docs/UnspentInputsResponse.md) + - [UnstakeRequestDto](docs/UnstakeRequestDto.md) + - [UpdateTokenOwnershipStatusDto](docs/UpdateTokenOwnershipStatusDto.md) + - [UpdateVaultAccountAssetAddressRequest](docs/UpdateVaultAccountAssetAddressRequest.md) + - [UpdateVaultAccountRequest](docs/UpdateVaultAccountRequest.md) + - [UserGroupCreateRequest](docs/UserGroupCreateRequest.md) + - [UserGroupCreateResponse](docs/UserGroupCreateResponse.md) + - [UserGroupResponse](docs/UserGroupResponse.md) + - [UserGroupUpdateRequest](docs/UserGroupUpdateRequest.md) + - [UserResponse](docs/UserResponse.md) + - [UserRole](docs/UserRole.md) + - [UserStatus](docs/UserStatus.md) + - [UserType](docs/UserType.md) + - [ValidateAddressResponse](docs/ValidateAddressResponse.md) + - [ValidatorDto](docs/ValidatorDto.md) + - [VaultAccount](docs/VaultAccount.md) + - [VaultAccountsPagedResponse](docs/VaultAccountsPagedResponse.md) + - [VaultAccountsPagedResponsePaging](docs/VaultAccountsPagedResponsePaging.md) + - [VaultActionStatus](docs/VaultActionStatus.md) + - [VaultAsset](docs/VaultAsset.md) + - [VaultWalletAddress](docs/VaultWalletAddress.md) + - [VendorDto](docs/VendorDto.md) + - [WalletAsset](docs/WalletAsset.md) + - [WalletAssetAdditionalInfo](docs/WalletAssetAdditionalInfo.md) + - [WithdrawRequestDto](docs/WithdrawRequestDto.md) + - [WorkflowConfigStatus](docs/WorkflowConfigStatus.md) + - [WorkflowConfigurationId](docs/WorkflowConfigurationId.md) + - [WorkflowExecutionOperation](docs/WorkflowExecutionOperation.md) + - [WriteAbiFunction](docs/WriteAbiFunction.md) + - [WriteCallFunctionDto](docs/WriteCallFunctionDto.md) + - [WriteCallFunctionResponseDto](docs/WriteCallFunctionResponseDto.md) + + + ## Documentation For Authorization + Authentication schemes defined for the API: ### bearerTokenAuth @@ -431,43 +740,5 @@ Authentication schemes defined for the API: ## Author support@fireblocks.com -support@fireblocks.com -support@fireblocks.com -support@fireblocks.com -support@fireblocks.com -support@fireblocks.com -support@fireblocks.com -support@fireblocks.com -support@fireblocks.com -support@fireblocks.com -support@fireblocks.com -support@fireblocks.com -support@fireblocks.com -support@fireblocks.com -support@fireblocks.com -support@fireblocks.com -support@fireblocks.com -support@fireblocks.com -support@fireblocks.com -support@fireblocks.com -support@fireblocks.com -support@fireblocks.com - -## Notes for Large OpenAPI documents -If the OpenAPI document is large, imports in fireblocks_client.apis and fireblocks_client.models may fail with a -RecursionError indicating the maximum recursion limit has been exceeded. In that case, there are a couple of solutions: -Solution 1: -Use specific imports for apis and models like: -- `from fireblocks_client.apis.default_api import DefaultApi` -- `from fireblocks_client.model.pet import Pet` -Solution 1: -Before importing the package, adjust the maximum recursion limit as shown below: -``` -import sys -sys.setrecursionlimit(1500) -import fireblocks_client -from fireblocks_client.apis import * -from fireblocks_client.models import * -``` diff --git a/docs/APIUser.md b/docs/APIUser.md new file mode 100644 index 00000000..0f310a2a --- /dev/null +++ b/docs/APIUser.md @@ -0,0 +1,34 @@ +# APIUser + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | The unique identifier of the user | [optional] +**name** | **str** | The name of the user | [optional] +**role** | [**UserRole**](UserRole.md) | | [optional] +**enabled** | **bool** | Whether the user is enabled | [optional] +**status** | [**UserStatus**](UserStatus.md) | | [optional] +**user_type** | [**UserType**](UserType.md) | | [optional] + +## Example + +```python +from fireblocks_client.models.api_user import APIUser + +# TODO update the JSON string below +json = "{}" +# create an instance of APIUser from a JSON string +api_user_instance = APIUser.from_json(json) +# print the JSON string representation of the object +print APIUser.to_json() + +# convert the object into a dict +api_user_dict = api_user_instance.to_dict() +# create an instance of APIUser from a dict +api_user_form_dict = api_user.from_dict(api_user_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/docs/AbiFunction.md b/docs/AbiFunction.md new file mode 100644 index 00000000..09db9e54 --- /dev/null +++ b/docs/AbiFunction.md @@ -0,0 +1,34 @@ +# AbiFunction + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | The name of the contract function as it appears in the ABI | [optional] +**state_mutability** | **str** | The state mutability of the contract function as it appears in the ABI | [optional] +**type** | **str** | The type if the function | +**inputs** | [**List[Parameter]**](Parameter.md) | The parameters that this function/constructor posses | +**outputs** | [**List[Parameter]**](Parameter.md) | The parameters that this 'read' function returns | [optional] +**description** | **str** | The documentation of this function (if has any) | [optional] + +## Example + +```python +from fireblocks_client.models.abi_function import AbiFunction + +# TODO update the JSON string below +json = "{}" +# create an instance of AbiFunction from a JSON string +abi_function_instance = AbiFunction.from_json(json) +# print the JSON string representation of the object +print AbiFunction.to_json() + +# convert the object into a dict +abi_function_dict = abi_function_instance.to_dict() +# create an instance of AbiFunction from a dict +abi_function_form_dict = abi_function.from_dict(abi_function_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/docs/Account.md b/docs/Account.md new file mode 100644 index 00000000..50778b6b --- /dev/null +++ b/docs/Account.md @@ -0,0 +1,30 @@ +# Account + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_id** | **str** | | +**account_type** | [**AccountType**](AccountType.md) | | + +## Example + +```python +from fireblocks_client.models.account import Account + +# TODO update the JSON string below +json = "{}" +# create an instance of Account from a JSON string +account_instance = Account.from_json(json) +# print the JSON string representation of the object +print Account.to_json() + +# convert the object into a dict +account_dict = account_instance.to_dict() +# create an instance of Account from a dict +account_form_dict = account.from_dict(account_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/docs/AccountType.md b/docs/AccountType.md new file mode 100644 index 00000000..06a85131 --- /dev/null +++ b/docs/AccountType.md @@ -0,0 +1,11 @@ +# AccountType + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[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/AddAssetToExternalWalletRequest.md b/docs/AddAssetToExternalWalletRequest.md new file mode 100644 index 00000000..87c7cda6 --- /dev/null +++ b/docs/AddAssetToExternalWalletRequest.md @@ -0,0 +1,31 @@ +# AddAssetToExternalWalletRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**address** | **str** | The wallet's address (or xpub) of the wallet | +**tag** | **str** | For XRP wallets, the destination tag; for EOS/XLM, the memo; for the fiat providers (BLINC by BCB Group), the Bank Transfer Description | [optional] +**additional_info** | [**AddAssetToExternalWalletRequestOneOf1AdditionalInfo**](AddAssetToExternalWalletRequestOneOf1AdditionalInfo.md) | | + +## Example + +```python +from fireblocks_client.models.add_asset_to_external_wallet_request import AddAssetToExternalWalletRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of AddAssetToExternalWalletRequest from a JSON string +add_asset_to_external_wallet_request_instance = AddAssetToExternalWalletRequest.from_json(json) +# print the JSON string representation of the object +print AddAssetToExternalWalletRequest.to_json() + +# convert the object into a dict +add_asset_to_external_wallet_request_dict = add_asset_to_external_wallet_request_instance.to_dict() +# create an instance of AddAssetToExternalWalletRequest from a dict +add_asset_to_external_wallet_request_form_dict = add_asset_to_external_wallet_request.from_dict(add_asset_to_external_wallet_request_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/docs/AddAssetToExternalWalletRequestOneOf.md b/docs/AddAssetToExternalWalletRequestOneOf.md new file mode 100644 index 00000000..5b29b23e --- /dev/null +++ b/docs/AddAssetToExternalWalletRequestOneOf.md @@ -0,0 +1,30 @@ +# AddAssetToExternalWalletRequestOneOf + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**address** | **str** | The wallet's address (or xpub) of the wallet | +**tag** | **str** | For XRP wallets, the destination tag; for EOS/XLM, the memo; for the fiat providers (BLINC by BCB Group), the Bank Transfer Description | [optional] + +## Example + +```python +from fireblocks_client.models.add_asset_to_external_wallet_request_one_of import AddAssetToExternalWalletRequestOneOf + +# TODO update the JSON string below +json = "{}" +# create an instance of AddAssetToExternalWalletRequestOneOf from a JSON string +add_asset_to_external_wallet_request_one_of_instance = AddAssetToExternalWalletRequestOneOf.from_json(json) +# print the JSON string representation of the object +print AddAssetToExternalWalletRequestOneOf.to_json() + +# convert the object into a dict +add_asset_to_external_wallet_request_one_of_dict = add_asset_to_external_wallet_request_one_of_instance.to_dict() +# create an instance of AddAssetToExternalWalletRequestOneOf from a dict +add_asset_to_external_wallet_request_one_of_form_dict = add_asset_to_external_wallet_request_one_of.from_dict(add_asset_to_external_wallet_request_one_of_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/docs/AddAssetToExternalWalletRequestOneOf1.md b/docs/AddAssetToExternalWalletRequestOneOf1.md new file mode 100644 index 00000000..41e09df1 --- /dev/null +++ b/docs/AddAssetToExternalWalletRequestOneOf1.md @@ -0,0 +1,29 @@ +# AddAssetToExternalWalletRequestOneOf1 + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**additional_info** | [**AddAssetToExternalWalletRequestOneOf1AdditionalInfo**](AddAssetToExternalWalletRequestOneOf1AdditionalInfo.md) | | + +## Example + +```python +from fireblocks_client.models.add_asset_to_external_wallet_request_one_of1 import AddAssetToExternalWalletRequestOneOf1 + +# TODO update the JSON string below +json = "{}" +# create an instance of AddAssetToExternalWalletRequestOneOf1 from a JSON string +add_asset_to_external_wallet_request_one_of1_instance = AddAssetToExternalWalletRequestOneOf1.from_json(json) +# print the JSON string representation of the object +print AddAssetToExternalWalletRequestOneOf1.to_json() + +# convert the object into a dict +add_asset_to_external_wallet_request_one_of1_dict = add_asset_to_external_wallet_request_one_of1_instance.to_dict() +# create an instance of AddAssetToExternalWalletRequestOneOf1 from a dict +add_asset_to_external_wallet_request_one_of1_form_dict = add_asset_to_external_wallet_request_one_of1.from_dict(add_asset_to_external_wallet_request_one_of1_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/docs/AddAssetToExternalWalletRequestOneOf1AdditionalInfo.md b/docs/AddAssetToExternalWalletRequestOneOf1AdditionalInfo.md new file mode 100644 index 00000000..529234dc --- /dev/null +++ b/docs/AddAssetToExternalWalletRequestOneOf1AdditionalInfo.md @@ -0,0 +1,44 @@ +# AddAssetToExternalWalletRequestOneOf1AdditionalInfo + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_holder_given_name** | **str** | | +**account_holder_surname** | **str** | | [optional] +**account_holder_city** | **str** | | +**account_holder_country** | **str** | | +**account_holder_address1** | **str** | | +**account_holder_address2** | **str** | | [optional] +**account_holder_district** | **str** | | [optional] +**account_holder_postal_code** | **str** | | +**iban** | **str** | | +**iban_city** | **str** | | +**iban_country** | **str** | | +**aba_routing_number** | **str** | | +**aba_account_number** | **str** | | +**aba_country** | **str** | | +**spei_clabe** | **str** | | +**spei_name** | **str** | | [optional] + +## Example + +```python +from fireblocks_client.models.add_asset_to_external_wallet_request_one_of1_additional_info import AddAssetToExternalWalletRequestOneOf1AdditionalInfo + +# TODO update the JSON string below +json = "{}" +# create an instance of AddAssetToExternalWalletRequestOneOf1AdditionalInfo from a JSON string +add_asset_to_external_wallet_request_one_of1_additional_info_instance = AddAssetToExternalWalletRequestOneOf1AdditionalInfo.from_json(json) +# print the JSON string representation of the object +print AddAssetToExternalWalletRequestOneOf1AdditionalInfo.to_json() + +# convert the object into a dict +add_asset_to_external_wallet_request_one_of1_additional_info_dict = add_asset_to_external_wallet_request_one_of1_additional_info_instance.to_dict() +# create an instance of AddAssetToExternalWalletRequestOneOf1AdditionalInfo from a dict +add_asset_to_external_wallet_request_one_of1_additional_info_form_dict = add_asset_to_external_wallet_request_one_of1_additional_info.from_dict(add_asset_to_external_wallet_request_one_of1_additional_info_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/docs/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf.md b/docs/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf.md new file mode 100644 index 00000000..9641558d --- /dev/null +++ b/docs/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf.md @@ -0,0 +1,39 @@ +# AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_holder_given_name** | **str** | | +**account_holder_surname** | **str** | | [optional] +**account_holder_city** | **str** | | +**account_holder_country** | **str** | | +**account_holder_address1** | **str** | | +**account_holder_address2** | **str** | | [optional] +**account_holder_district** | **str** | | [optional] +**account_holder_postal_code** | **str** | | +**iban** | **str** | | +**iban_city** | **str** | | +**iban_country** | **str** | | + +## Example + +```python +from fireblocks_client.models.add_asset_to_external_wallet_request_one_of1_additional_info_one_of import AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf + +# TODO update the JSON string below +json = "{}" +# create an instance of AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf from a JSON string +add_asset_to_external_wallet_request_one_of1_additional_info_one_of_instance = AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf.from_json(json) +# print the JSON string representation of the object +print AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf.to_json() + +# convert the object into a dict +add_asset_to_external_wallet_request_one_of1_additional_info_one_of_dict = add_asset_to_external_wallet_request_one_of1_additional_info_one_of_instance.to_dict() +# create an instance of AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf from a dict +add_asset_to_external_wallet_request_one_of1_additional_info_one_of_form_dict = add_asset_to_external_wallet_request_one_of1_additional_info_one_of.from_dict(add_asset_to_external_wallet_request_one_of1_additional_info_one_of_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/docs/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1.md b/docs/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1.md new file mode 100644 index 00000000..cc105cbd --- /dev/null +++ b/docs/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1.md @@ -0,0 +1,39 @@ +# AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_holder_given_name** | **str** | | +**account_holder_surname** | **str** | | [optional] +**account_holder_city** | **str** | | +**account_holder_country** | **str** | | +**account_holder_address1** | **str** | | +**account_holder_address2** | **str** | | [optional] +**account_holder_district** | **str** | | [optional] +**account_holder_postal_code** | **str** | | +**aba_routing_number** | **str** | | +**aba_account_number** | **str** | | +**aba_country** | **str** | | + +## Example + +```python +from fireblocks_client.models.add_asset_to_external_wallet_request_one_of1_additional_info_one_of1 import AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 + +# TODO update the JSON string below +json = "{}" +# create an instance of AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 from a JSON string +add_asset_to_external_wallet_request_one_of1_additional_info_one_of1_instance = AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1.from_json(json) +# print the JSON string representation of the object +print AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1.to_json() + +# convert the object into a dict +add_asset_to_external_wallet_request_one_of1_additional_info_one_of1_dict = add_asset_to_external_wallet_request_one_of1_additional_info_one_of1_instance.to_dict() +# create an instance of AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 from a dict +add_asset_to_external_wallet_request_one_of1_additional_info_one_of1_form_dict = add_asset_to_external_wallet_request_one_of1_additional_info_one_of1.from_dict(add_asset_to_external_wallet_request_one_of1_additional_info_one_of1_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/docs/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2.md b/docs/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2.md new file mode 100644 index 00000000..e6ca68b1 --- /dev/null +++ b/docs/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2.md @@ -0,0 +1,30 @@ +# AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2 + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**spei_clabe** | **str** | | +**spei_name** | **str** | | [optional] + +## Example + +```python +from fireblocks_client.models.add_asset_to_external_wallet_request_one_of1_additional_info_one_of2 import AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2 + +# TODO update the JSON string below +json = "{}" +# create an instance of AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2 from a JSON string +add_asset_to_external_wallet_request_one_of1_additional_info_one_of2_instance = AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2.from_json(json) +# print the JSON string representation of the object +print AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2.to_json() + +# convert the object into a dict +add_asset_to_external_wallet_request_one_of1_additional_info_one_of2_dict = add_asset_to_external_wallet_request_one_of1_additional_info_one_of2_instance.to_dict() +# create an instance of AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2 from a dict +add_asset_to_external_wallet_request_one_of1_additional_info_one_of2_form_dict = add_asset_to_external_wallet_request_one_of1_additional_info_one_of2.from_dict(add_asset_to_external_wallet_request_one_of1_additional_info_one_of2_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/docs/AddCollateralRequestBody.md b/docs/AddCollateralRequestBody.md new file mode 100644 index 00000000..b22dc251 --- /dev/null +++ b/docs/AddCollateralRequestBody.md @@ -0,0 +1,30 @@ +# AddCollateralRequestBody + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**transaction_request** | [**TransactionRequest**](TransactionRequest.md) | | [optional] +**is_src_collateral** | **bool** | optional | [optional] + +## Example + +```python +from fireblocks_client.models.add_collateral_request_body import AddCollateralRequestBody + +# TODO update the JSON string below +json = "{}" +# create an instance of AddCollateralRequestBody from a JSON string +add_collateral_request_body_instance = AddCollateralRequestBody.from_json(json) +# print the JSON string representation of the object +print AddCollateralRequestBody.to_json() + +# convert the object into a dict +add_collateral_request_body_dict = add_collateral_request_body_instance.to_dict() +# create an instance of AddCollateralRequestBody from a dict +add_collateral_request_body_form_dict = add_collateral_request_body.from_dict(add_collateral_request_body_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/docs/AddContractAssetRequest.md b/docs/AddContractAssetRequest.md new file mode 100644 index 00000000..161ac2c2 --- /dev/null +++ b/docs/AddContractAssetRequest.md @@ -0,0 +1,30 @@ +# AddContractAssetRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**address** | **str** | The contract's address (or xpub) of the wallet | +**tag** | **str** | The destination tag, for XRP wallets | [optional] + +## Example + +```python +from fireblocks_client.models.add_contract_asset_request import AddContractAssetRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of AddContractAssetRequest from a JSON string +add_contract_asset_request_instance = AddContractAssetRequest.from_json(json) +# print the JSON string representation of the object +print AddContractAssetRequest.to_json() + +# convert the object into a dict +add_contract_asset_request_dict = add_contract_asset_request_instance.to_dict() +# create an instance of AddContractAssetRequest from a dict +add_contract_asset_request_form_dict = add_contract_asset_request.from_dict(add_contract_asset_request_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/docs/AdditionalInfoDto.md b/docs/AdditionalInfoDto.md new file mode 100644 index 00000000..e915e007 --- /dev/null +++ b/docs/AdditionalInfoDto.md @@ -0,0 +1,31 @@ +# AdditionalInfoDto + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**estimated_annual_reward** | **float** | The estimated annual reward rate for the blockchain, represented as a decimal percentage value. | +**lockup_period** | **float** | The duration of the lockup period for certain actions on the blockchain, measured in milliseconds. | +**activation_period** | **float** | The duration of the activation period for certain actions on the blockchain, measured in milliseconds. | + +## Example + +```python +from fireblocks_client.models.additional_info_dto import AdditionalInfoDto + +# TODO update the JSON string below +json = "{}" +# create an instance of AdditionalInfoDto from a JSON string +additional_info_dto_instance = AdditionalInfoDto.from_json(json) +# print the JSON string representation of the object +print AdditionalInfoDto.to_json() + +# convert the object into a dict +additional_info_dto_dict = additional_info_dto_instance.to_dict() +# create an instance of AdditionalInfoDto from a dict +additional_info_dto_form_dict = additional_info_dto.from_dict(additional_info_dto_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/docs/AmlRegistrationResult.md b/docs/AmlRegistrationResult.md new file mode 100644 index 00000000..d08417da --- /dev/null +++ b/docs/AmlRegistrationResult.md @@ -0,0 +1,31 @@ +# AmlRegistrationResult + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**provider** | **str** | | [optional] +**success** | **bool** | | [optional] +**timestamp** | **float** | | [optional] + +## Example + +```python +from fireblocks_client.models.aml_registration_result import AmlRegistrationResult + +# TODO update the JSON string below +json = "{}" +# create an instance of AmlRegistrationResult from a JSON string +aml_registration_result_instance = AmlRegistrationResult.from_json(json) +# print the JSON string representation of the object +print AmlRegistrationResult.to_json() + +# convert the object into a dict +aml_registration_result_dict = aml_registration_result_instance.to_dict() +# create an instance of AmlRegistrationResult from a dict +aml_registration_result_form_dict = aml_registration_result.from_dict(aml_registration_result_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/docs/AmlScreeningResult.md b/docs/AmlScreeningResult.md new file mode 100644 index 00000000..60af56f8 --- /dev/null +++ b/docs/AmlScreeningResult.md @@ -0,0 +1,31 @@ +# AmlScreeningResult + +The result of the AML screening. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**provider** | **str** | | [optional] +**payload** | **object** | | [optional] + +## Example + +```python +from fireblocks_client.models.aml_screening_result import AmlScreeningResult + +# TODO update the JSON string below +json = "{}" +# create an instance of AmlScreeningResult from a JSON string +aml_screening_result_instance = AmlScreeningResult.from_json(json) +# print the JSON string representation of the object +print AmlScreeningResult.to_json() + +# convert the object into a dict +aml_screening_result_dict = aml_screening_result_instance.to_dict() +# create an instance of AmlScreeningResult from a dict +aml_screening_result_form_dict = aml_screening_result.from_dict(aml_screening_result_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/docs/AmountAggregationTimePeriodMethod.md b/docs/AmountAggregationTimePeriodMethod.md new file mode 100644 index 00000000..aaed28b0 --- /dev/null +++ b/docs/AmountAggregationTimePeriodMethod.md @@ -0,0 +1,12 @@ +# AmountAggregationTimePeriodMethod + +* PER_SINGLE_MATCH - Apply the limit to each listed entity * ACROSS_ALL_MATCHES - Apply the limit to the sum of all listed entities + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[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/AmountAndChainDescriptor.md b/docs/AmountAndChainDescriptor.md new file mode 100644 index 00000000..92e49625 --- /dev/null +++ b/docs/AmountAndChainDescriptor.md @@ -0,0 +1,30 @@ +# AmountAndChainDescriptor + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**chain_descriptor** | **str** | The protocol identifier (e.g. \"ETH\"/\"SOL\") for summary | +**amount** | **str** | Cryptocurrency quantity | + +## Example + +```python +from fireblocks_client.models.amount_and_chain_descriptor import AmountAndChainDescriptor + +# TODO update the JSON string below +json = "{}" +# create an instance of AmountAndChainDescriptor from a JSON string +amount_and_chain_descriptor_instance = AmountAndChainDescriptor.from_json(json) +# print the JSON string representation of the object +print AmountAndChainDescriptor.to_json() + +# convert the object into a dict +amount_and_chain_descriptor_dict = amount_and_chain_descriptor_instance.to_dict() +# create an instance of AmountAndChainDescriptor from a dict +amount_and_chain_descriptor_form_dict = amount_and_chain_descriptor.from_dict(amount_and_chain_descriptor_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/docs/AmountInfo.md b/docs/AmountInfo.md new file mode 100644 index 00000000..edc13511 --- /dev/null +++ b/docs/AmountInfo.md @@ -0,0 +1,33 @@ +# AmountInfo + +The details of the requested amount to transfer. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**amount** | **str** | If the transfer is a withdrawal from an exchange, the actual amount that was requested to be transferred. Otherwise, the requested amount. | [optional] +**requested_amount** | **str** | The amount requested by the user. | [optional] +**net_amount** | **str** | The net amount of the transaction, after fee deduction. | [optional] +**amount_usd** | **str** | The USD value of the requested amount. | [optional] + +## Example + +```python +from fireblocks_client.models.amount_info import AmountInfo + +# TODO update the JSON string below +json = "{}" +# create an instance of AmountInfo from a JSON string +amount_info_instance = AmountInfo.from_json(json) +# print the JSON string representation of the object +print AmountInfo.to_json() + +# convert the object into a dict +amount_info_dict = amount_info_instance.to_dict() +# create an instance of AmountInfo from a dict +amount_info_form_dict = amount_info.from_dict(amount_info_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/docs/ApiKey.md b/docs/ApiKey.md new file mode 100644 index 00000000..d7e90d81 --- /dev/null +++ b/docs/ApiKey.md @@ -0,0 +1,30 @@ +# ApiKey + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | The unique identifier of the API key | +**last_seen** | **datetime** | The date the API key was last seen | + +## Example + +```python +from fireblocks_client.models.api_key import ApiKey + +# TODO update the JSON string below +json = "{}" +# create an instance of ApiKey from a JSON string +api_key_instance = ApiKey.from_json(json) +# print the JSON string representation of the object +print ApiKey.to_json() + +# convert the object into a dict +api_key_dict = api_key_instance.to_dict() +# create an instance of ApiKey from a dict +api_key_form_dict = api_key.from_dict(api_key_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/docs/ApiKeysPaginatedResponse.md b/docs/ApiKeysPaginatedResponse.md new file mode 100644 index 00000000..99033c24 --- /dev/null +++ b/docs/ApiKeysPaginatedResponse.md @@ -0,0 +1,30 @@ +# ApiKeysPaginatedResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**List[ApiKey]**](ApiKey.md) | The data of the current page | +**next** | **str** | The ID of the next page | [optional] + +## Example + +```python +from fireblocks_client.models.api_keys_paginated_response import ApiKeysPaginatedResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of ApiKeysPaginatedResponse from a JSON string +api_keys_paginated_response_instance = ApiKeysPaginatedResponse.from_json(json) +# print the JSON string representation of the object +print ApiKeysPaginatedResponse.to_json() + +# convert the object into a dict +api_keys_paginated_response_dict = api_keys_paginated_response_instance.to_dict() +# create an instance of ApiKeysPaginatedResponse from a dict +api_keys_paginated_response_form_dict = api_keys_paginated_response.from_dict(api_keys_paginated_response_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/docs/ApiUserApi.md b/docs/ApiUserApi.md new file mode 100644 index 00000000..50de2ea3 --- /dev/null +++ b/docs/ApiUserApi.md @@ -0,0 +1,151 @@ +# fireblocks_client.ApiUserApi + +All URIs are relative to *https://api.fireblocks.io/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_api_user**](ApiUserApi.md#create_api_user) | **POST** /management/api_users | Create Api user +[**get_api_users**](ApiUserApi.md#get_api_users) | **GET** /management/api_users | Get Api users + + +# **create_api_user** +> create_api_user(idempotency_key=idempotency_key, create_api_user=create_api_user) + +Create Api user + +Creates Api user in your tenant + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.create_api_user import CreateAPIUser +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.ApiUserApi(api_client) + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + create_api_user = fireblocks_client.CreateAPIUser() # CreateAPIUser | (optional) + + try: + # Create Api user + api_instance.create_api_user(idempotency_key=idempotency_key, create_api_user=create_api_user) + except Exception as e: + print("Exception when calling ApiUserApi->create_api_user: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + **create_api_user** | [**CreateAPIUser**](CreateAPIUser.md)| | [optional] + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | User creation approval request has been sent | * X-Request-ID -
| +**400** | bad request | * X-Request-ID -
| +**401** | Unauthorized. Missing / invalid JWT token in Authorization header. | * X-Request-ID -
| +**403** | Lacking permissions. | * X-Request-ID -
| +**5XX** | Internal error. | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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_api_users** +> GetAPIUsersResponse get_api_users() + +Get Api users + +Get Api users of your tenant + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.get_api_users_response import GetAPIUsersResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.ApiUserApi(api_client) + + try: + # Get Api users + api_response = api_instance.get_api_users() + print("The response of ApiUserApi->get_api_users:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ApiUserApi->get_api_users: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**GetAPIUsersResponse**](GetAPIUsersResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | got api users | * X-Request-ID -
| +**401** | Unauthorized. Missing / invalid JWT token in Authorization header. | * X-Request-ID -
| +**403** | Lacking permissions. | * X-Request-ID -
| +**5XX** | Internal error. | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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) + diff --git a/docs/AssetAlreadyExistHttpError.md b/docs/AssetAlreadyExistHttpError.md new file mode 100644 index 00000000..bb6f57eb --- /dev/null +++ b/docs/AssetAlreadyExistHttpError.md @@ -0,0 +1,31 @@ +# AssetAlreadyExistHttpError + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status_code** | **int** | HTTP status code | [optional] +**message** | **str** | Error message | [optional] +**error** | **str** | Short description of the HTTP error | [optional] + +## Example + +```python +from fireblocks_client.models.asset_already_exist_http_error import AssetAlreadyExistHttpError + +# TODO update the JSON string below +json = "{}" +# create an instance of AssetAlreadyExistHttpError from a JSON string +asset_already_exist_http_error_instance = AssetAlreadyExistHttpError.from_json(json) +# print the JSON string representation of the object +print AssetAlreadyExistHttpError.to_json() + +# convert the object into a dict +asset_already_exist_http_error_dict = asset_already_exist_http_error_instance.to_dict() +# create an instance of AssetAlreadyExistHttpError from a dict +asset_already_exist_http_error_form_dict = asset_already_exist_http_error.from_dict(asset_already_exist_http_error_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/docs/AssetAmount.md b/docs/AssetAmount.md new file mode 100644 index 00000000..1c27c6fc --- /dev/null +++ b/docs/AssetAmount.md @@ -0,0 +1,30 @@ +# AssetAmount + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**amount** | **str** | | +**asset_id** | **str** | | + +## Example + +```python +from fireblocks_client.models.asset_amount import AssetAmount + +# TODO update the JSON string below +json = "{}" +# create an instance of AssetAmount from a JSON string +asset_amount_instance = AssetAmount.from_json(json) +# print the JSON string representation of the object +print AssetAmount.to_json() + +# convert the object into a dict +asset_amount_dict = asset_amount_instance.to_dict() +# create an instance of AssetAmount from a dict +asset_amount_form_dict = asset_amount.from_dict(asset_amount_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/docs/AssetBadRequestErrorResponse.md b/docs/AssetBadRequestErrorResponse.md new file mode 100644 index 00000000..ce4ccf28 --- /dev/null +++ b/docs/AssetBadRequestErrorResponse.md @@ -0,0 +1,30 @@ +# AssetBadRequestErrorResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message** | **str** | Bad request error code | +**code** | **str** | Error code | + +## Example + +```python +from fireblocks_client.models.asset_bad_request_error_response import AssetBadRequestErrorResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of AssetBadRequestErrorResponse from a JSON string +asset_bad_request_error_response_instance = AssetBadRequestErrorResponse.from_json(json) +# print the JSON string representation of the object +print AssetBadRequestErrorResponse.to_json() + +# convert the object into a dict +asset_bad_request_error_response_dict = asset_bad_request_error_response_instance.to_dict() +# create an instance of AssetBadRequestErrorResponse from a dict +asset_bad_request_error_response_form_dict = asset_bad_request_error_response.from_dict(asset_bad_request_error_response_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/docs/AssetConflictErrorResponse.md b/docs/AssetConflictErrorResponse.md new file mode 100644 index 00000000..63be3628 --- /dev/null +++ b/docs/AssetConflictErrorResponse.md @@ -0,0 +1,30 @@ +# AssetConflictErrorResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message** | **str** | Conflict error code | +**code** | **str** | Error code | + +## Example + +```python +from fireblocks_client.models.asset_conflict_error_response import AssetConflictErrorResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of AssetConflictErrorResponse from a JSON string +asset_conflict_error_response_instance = AssetConflictErrorResponse.from_json(json) +# print the JSON string representation of the object +print AssetConflictErrorResponse.to_json() + +# convert the object into a dict +asset_conflict_error_response_dict = asset_conflict_error_response_instance.to_dict() +# create an instance of AssetConflictErrorResponse from a dict +asset_conflict_error_response_form_dict = asset_conflict_error_response.from_dict(asset_conflict_error_response_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/docs/AssetDoesNotExistHttpError.md b/docs/AssetDoesNotExistHttpError.md new file mode 100644 index 00000000..993d5994 --- /dev/null +++ b/docs/AssetDoesNotExistHttpError.md @@ -0,0 +1,31 @@ +# AssetDoesNotExistHttpError + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status_code** | **int** | HTTP status code | [optional] +**message** | **str** | Error message | [optional] +**error** | **str** | Short description of the HTTP error | [optional] + +## Example + +```python +from fireblocks_client.models.asset_does_not_exist_http_error import AssetDoesNotExistHttpError + +# TODO update the JSON string below +json = "{}" +# create an instance of AssetDoesNotExistHttpError from a JSON string +asset_does_not_exist_http_error_instance = AssetDoesNotExistHttpError.from_json(json) +# print the JSON string representation of the object +print AssetDoesNotExistHttpError.to_json() + +# convert the object into a dict +asset_does_not_exist_http_error_dict = asset_does_not_exist_http_error_instance.to_dict() +# create an instance of AssetDoesNotExistHttpError from a dict +asset_does_not_exist_http_error_form_dict = asset_does_not_exist_http_error.from_dict(asset_does_not_exist_http_error_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/docs/AssetForbiddenErrorResponse.md b/docs/AssetForbiddenErrorResponse.md new file mode 100644 index 00000000..b7a8b8f6 --- /dev/null +++ b/docs/AssetForbiddenErrorResponse.md @@ -0,0 +1,30 @@ +# AssetForbiddenErrorResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message** | **str** | Forbidden error code | +**code** | **str** | Error code | + +## Example + +```python +from fireblocks_client.models.asset_forbidden_error_response import AssetForbiddenErrorResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of AssetForbiddenErrorResponse from a JSON string +asset_forbidden_error_response_instance = AssetForbiddenErrorResponse.from_json(json) +# print the JSON string representation of the object +print AssetForbiddenErrorResponse.to_json() + +# convert the object into a dict +asset_forbidden_error_response_dict = asset_forbidden_error_response_instance.to_dict() +# create an instance of AssetForbiddenErrorResponse from a dict +asset_forbidden_error_response_form_dict = asset_forbidden_error_response.from_dict(asset_forbidden_error_response_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/docs/AssetInternalServerErrorResponse.md b/docs/AssetInternalServerErrorResponse.md new file mode 100644 index 00000000..2e10c46b --- /dev/null +++ b/docs/AssetInternalServerErrorResponse.md @@ -0,0 +1,30 @@ +# AssetInternalServerErrorResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message** | **str** | Internal server error code | +**code** | **str** | Error code | + +## Example + +```python +from fireblocks_client.models.asset_internal_server_error_response import AssetInternalServerErrorResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of AssetInternalServerErrorResponse from a JSON string +asset_internal_server_error_response_instance = AssetInternalServerErrorResponse.from_json(json) +# print the JSON string representation of the object +print AssetInternalServerErrorResponse.to_json() + +# convert the object into a dict +asset_internal_server_error_response_dict = asset_internal_server_error_response_instance.to_dict() +# create an instance of AssetInternalServerErrorResponse from a dict +asset_internal_server_error_response_form_dict = asset_internal_server_error_response.from_dict(asset_internal_server_error_response_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/docs/AssetMetadataDto.md b/docs/AssetMetadataDto.md new file mode 100644 index 00000000..20fecffc --- /dev/null +++ b/docs/AssetMetadataDto.md @@ -0,0 +1,41 @@ +# AssetMetadataDto + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**asset_id** | **str** | The Fireblocks` asset id | +**name** | **str** | The name of the token | [optional] +**symbol** | **str** | The symbol of the token | [optional] +**network_protocol** | **str** | The network protocol of the token | [optional] +**total_supply** | **str** | The total supply of the token | [optional] +**holders_count** | **float** | The number of holders of the token | [optional] +**type** | **str** | The type of the token | [optional] +**contract_address** | **str** | The address of the token contract | [optional] +**issuer_address** | **str** | In case of Stellar or Ripple, the address of the issuer of the token | [optional] +**testnet** | **bool** | Is it deployed on testnet or to mainnet | [optional] +**blockchain** | **str** | The blockchain native asset id which the token is deployed on | [optional] +**decimals** | **float** | The number of decimals of the token | [optional] +**vault_account_id** | **str** | The id of the vault account that initiated the request to issue the token. Will be empty if token was issued outside of Fireblocks. | [optional] + +## Example + +```python +from fireblocks_client.models.asset_metadata_dto import AssetMetadataDto + +# TODO update the JSON string below +json = "{}" +# create an instance of AssetMetadataDto from a JSON string +asset_metadata_dto_instance = AssetMetadataDto.from_json(json) +# print the JSON string representation of the object +print AssetMetadataDto.to_json() + +# convert the object into a dict +asset_metadata_dto_dict = asset_metadata_dto_instance.to_dict() +# create an instance of AssetMetadataDto from a dict +asset_metadata_dto_form_dict = asset_metadata_dto.from_dict(asset_metadata_dto_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/docs/AssetNotFoundErrorResponse.md b/docs/AssetNotFoundErrorResponse.md new file mode 100644 index 00000000..18dce31c --- /dev/null +++ b/docs/AssetNotFoundErrorResponse.md @@ -0,0 +1,30 @@ +# AssetNotFoundErrorResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message** | **str** | Not found error code | +**code** | **str** | Error code | + +## Example + +```python +from fireblocks_client.models.asset_not_found_error_response import AssetNotFoundErrorResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of AssetNotFoundErrorResponse from a JSON string +asset_not_found_error_response_instance = AssetNotFoundErrorResponse.from_json(json) +# print the JSON string representation of the object +print AssetNotFoundErrorResponse.to_json() + +# convert the object into a dict +asset_not_found_error_response_dict = asset_not_found_error_response_instance.to_dict() +# create an instance of AssetNotFoundErrorResponse from a dict +asset_not_found_error_response_form_dict = asset_not_found_error_response.from_dict(asset_not_found_error_response_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/docs/AssetResponse.md b/docs/AssetResponse.md new file mode 100644 index 00000000..6c4147e8 --- /dev/null +++ b/docs/AssetResponse.md @@ -0,0 +1,32 @@ +# AssetResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**legacy_id** | **str** | | +**asset_class** | **str** | | +**onchain** | [**AssetResponseOnchain**](AssetResponseOnchain.md) | | +**metadata** | [**AssetResponseMetadata**](AssetResponseMetadata.md) | | + +## Example + +```python +from fireblocks_client.models.asset_response import AssetResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of AssetResponse from a JSON string +asset_response_instance = AssetResponse.from_json(json) +# print the JSON string representation of the object +print AssetResponse.to_json() + +# convert the object into a dict +asset_response_dict = asset_response_instance.to_dict() +# create an instance of AssetResponse from a dict +asset_response_form_dict = asset_response.from_dict(asset_response_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/docs/AssetResponseMetadata.md b/docs/AssetResponseMetadata.md new file mode 100644 index 00000000..52297cf7 --- /dev/null +++ b/docs/AssetResponseMetadata.md @@ -0,0 +1,30 @@ +# AssetResponseMetadata + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**scope** | **str** | The scope of the asset | +**deprecated** | **bool** | Is asset deprecated | + +## Example + +```python +from fireblocks_client.models.asset_response_metadata import AssetResponseMetadata + +# TODO update the JSON string below +json = "{}" +# create an instance of AssetResponseMetadata from a JSON string +asset_response_metadata_instance = AssetResponseMetadata.from_json(json) +# print the JSON string representation of the object +print AssetResponseMetadata.to_json() + +# convert the object into a dict +asset_response_metadata_dict = asset_response_metadata_instance.to_dict() +# create an instance of AssetResponseMetadata from a dict +asset_response_metadata_form_dict = asset_response_metadata.from_dict(asset_response_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/docs/AssetResponseOnchain.md b/docs/AssetResponseOnchain.md new file mode 100644 index 00000000..86a93714 --- /dev/null +++ b/docs/AssetResponseOnchain.md @@ -0,0 +1,33 @@ +# AssetResponseOnchain + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**symbol** | **str** | The asset symbol | +**name** | **str** | The asset name | +**address** | **str** | The asset address | [optional] +**decimals** | **float** | Number of decimals | +**standard** | **str** | The asset standard | + +## Example + +```python +from fireblocks_client.models.asset_response_onchain import AssetResponseOnchain + +# TODO update the JSON string below +json = "{}" +# create an instance of AssetResponseOnchain from a JSON string +asset_response_onchain_instance = AssetResponseOnchain.from_json(json) +# print the JSON string representation of the object +print AssetResponseOnchain.to_json() + +# convert the object into a dict +asset_response_onchain_dict = asset_response_onchain_instance.to_dict() +# create an instance of AssetResponseOnchain from a dict +asset_response_onchain_form_dict = asset_response_onchain.from_dict(asset_response_onchain_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/docs/AssetTypeResponse.md b/docs/AssetTypeResponse.md new file mode 100644 index 00000000..da026055 --- /dev/null +++ b/docs/AssetTypeResponse.md @@ -0,0 +1,34 @@ +# AssetTypeResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | +**name** | **str** | | +**type** | **str** | | +**contract_address** | **str** | | [optional] +**native_asset** | **str** | | [optional] +**decimals** | **float** | | [optional] + +## Example + +```python +from fireblocks_client.models.asset_type_response import AssetTypeResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of AssetTypeResponse from a JSON string +asset_type_response_instance = AssetTypeResponse.from_json(json) +# print the JSON string representation of the object +print AssetTypeResponse.to_json() + +# convert the object into a dict +asset_type_response_dict = asset_type_response_instance.to_dict() +# create an instance of AssetTypeResponse from a dict +asset_type_response_form_dict = asset_type_response.from_dict(asset_type_response_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/docs/AssetWallet.md b/docs/AssetWallet.md new file mode 100644 index 00000000..44534dbc --- /dev/null +++ b/docs/AssetWallet.md @@ -0,0 +1,39 @@ +# AssetWallet + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**vault_id** | **str** | ID of the vault account. You can [get the vault account by this ID](https://developers.fireblocks.com/reference/get_vault-accounts-vaultaccountid) to retrieve vault properties such as its name, auto fueling, hidden on UI or customer reference ID. | [optional] +**asset_id** | **str** | ID of the asset. You can get more information about this asset by using the [supported assets API](https://developers.fireblocks.com/reference/get_supported-assets) | [optional] +**available** | **str** | Available balance, available to use in a transaction. | [optional] +**total** | **str** | Total balance at the asset wallet, as seen at the blockchain explorers. This includes balance available, and any kind of unavailable balance such as locked, frozen, or others. | [optional] +**pending** | **str** | Pending balance. | [optional] +**staked** | **str** | Staked balance. | [optional] +**frozen** | **str** | Funds frozen due to the anti-money laundering policy at this workspace. | [optional] +**locked_amount** | **str** | Locked balance. | [optional] +**block_height** | **str** | The height (number) of the block of the balance. Can by empty. | [optional] +**block_hash** | **str** | The hash of the block of the balance. Can by empty. | [optional] +**creation_timestamp** | **str** | Unix timestamp of the time the asset wallet was created. | [optional] + +## Example + +```python +from fireblocks_client.models.asset_wallet import AssetWallet + +# TODO update the JSON string below +json = "{}" +# create an instance of AssetWallet from a JSON string +asset_wallet_instance = AssetWallet.from_json(json) +# print the JSON string representation of the object +print AssetWallet.to_json() + +# convert the object into a dict +asset_wallet_dict = asset_wallet_instance.to_dict() +# create an instance of AssetWallet from a dict +asset_wallet_form_dict = asset_wallet.from_dict(asset_wallet_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/docs/AssetsApi.md b/docs/AssetsApi.md new file mode 100644 index 00000000..658cf814 --- /dev/null +++ b/docs/AssetsApi.md @@ -0,0 +1,81 @@ +# fireblocks_client.AssetsApi + +All URIs are relative to *https://api.fireblocks.io/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_assets_bulk**](AssetsApi.md#create_assets_bulk) | **POST** /vault/assets/bulk | Bulk creation of wallets + + +# **create_assets_bulk** +> JobCreated create_assets_bulk(create_assets_bulk_request, idempotency_key=idempotency_key) + +Bulk creation of wallets + +Create multiple wallets for a given vault account by running an async job.
**Note**: - These endpoints are currently in beta and might be subject to changes. - We limit accounts to 10k per operation and 200k per customer during beta testing. - Currently, we are only supporting EVM wallets. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.create_assets_bulk_request import CreateAssetsBulkRequest +from fireblocks_client.models.job_created import JobCreated +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.AssetsApi(api_client) + create_assets_bulk_request = fireblocks_client.CreateAssetsBulkRequest() # CreateAssetsBulkRequest | + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + + try: + # Bulk creation of wallets + api_response = api_instance.create_assets_bulk(create_assets_bulk_request, idempotency_key=idempotency_key) + print("The response of AssetsApi->create_assets_bulk:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AssetsApi->create_assets_bulk: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **create_assets_bulk_request** | [**CreateAssetsBulkRequest**](CreateAssetsBulkRequest.md)| | + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + +### Return type + +[**JobCreated**](JobCreated.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A JobCreated object | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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) + diff --git a/docs/AuditLogData.md b/docs/AuditLogData.md new file mode 100644 index 00000000..b0238121 --- /dev/null +++ b/docs/AuditLogData.md @@ -0,0 +1,36 @@ +# AuditLogData + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | The unique identifier of the audit log | [optional] +**timestamp** | **str** | The timestamp of the audit log | [optional] +**created_at** | **str** | The timestamp of the audit log creation | [optional] +**user** | **str** | The user who performed the action | [optional] +**subject** | **str** | The subject of the action | [optional] +**event** | **str** | The event that was performed | [optional] +**tenant_id** | **str** | The tenant ID of the audit log | [optional] +**user_id** | **str** | The user ID of the audit log | [optional] + +## Example + +```python +from fireblocks_client.models.audit_log_data import AuditLogData + +# TODO update the JSON string below +json = "{}" +# create an instance of AuditLogData from a JSON string +audit_log_data_instance = AuditLogData.from_json(json) +# print the JSON string representation of the object +print AuditLogData.to_json() + +# convert the object into a dict +audit_log_data_dict = audit_log_data_instance.to_dict() +# create an instance of AuditLogData from a dict +audit_log_data_form_dict = audit_log_data.from_dict(audit_log_data_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/docs/AuditLogsApi.md b/docs/AuditLogsApi.md new file mode 100644 index 00000000..3fdf9306 --- /dev/null +++ b/docs/AuditLogsApi.md @@ -0,0 +1,150 @@ +# fireblocks_client.AuditLogsApi + +All URIs are relative to *https://api.fireblocks.io/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_audit_logs**](AuditLogsApi.md#get_audit_logs) | **GET** /management/audit_logs | Get audit logs +[**get_audits**](AuditLogsApi.md#get_audits) | **GET** /audits | Get audit logs + + +# **get_audit_logs** +> GetAuditLogsResponse get_audit_logs(time_period=time_period, cursor=cursor) + +Get audit logs + +Get all audits + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.get_audit_logs_response import GetAuditLogsResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.AuditLogsApi(api_client) + time_period = 'time_period_example' # str | The last time period to fetch audit logs (optional) + cursor = 'cursor_example' # str | The next id to start fetch audit logs from (optional) + + try: + # Get audit logs + api_response = api_instance.get_audit_logs(time_period=time_period, cursor=cursor) + print("The response of AuditLogsApi->get_audit_logs:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AuditLogsApi->get_audit_logs: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **time_period** | **str**| The last time period to fetch audit logs | [optional] + **cursor** | **str**| The next id to start fetch audit logs from | [optional] + +### Return type + +[**GetAuditLogsResponse**](GetAuditLogsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Audit logs from requested time period | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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_audits** +> GetAuditLogsResponseDTO get_audits(time_period=time_period) + +Get audit logs + +Get all audits + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.get_audit_logs_response_dto import GetAuditLogsResponseDTO +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.AuditLogsApi(api_client) + time_period = 'time_period_example' # str | The last time period to fetch audit logs (optional) + + try: + # Get audit logs + api_response = api_instance.get_audits(time_period=time_period) + print("The response of AuditLogsApi->get_audits:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AuditLogsApi->get_audits: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **time_period** | **str**| The last time period to fetch audit logs | [optional] + +### Return type + +[**GetAuditLogsResponseDTO**](GetAuditLogsResponseDTO.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Audit logs from requested time period | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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) + diff --git a/docs/AuditorData.md b/docs/AuditorData.md new file mode 100644 index 00000000..634247f6 --- /dev/null +++ b/docs/AuditorData.md @@ -0,0 +1,31 @@ +# AuditorData + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | | +**image_url** | **str** | | +**link** | **str** | | + +## Example + +```python +from fireblocks_client.models.auditor_data import AuditorData + +# TODO update the JSON string below +json = "{}" +# create an instance of AuditorData from a JSON string +auditor_data_instance = AuditorData.from_json(json) +# print the JSON string representation of the object +print AuditorData.to_json() + +# convert the object into a dict +auditor_data_dict = auditor_data_instance.to_dict() +# create an instance of AuditorData from a dict +auditor_data_form_dict = auditor_data.from_dict(auditor_data_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/docs/AuthorizationGroups.md b/docs/AuthorizationGroups.md new file mode 100644 index 00000000..69a4695c --- /dev/null +++ b/docs/AuthorizationGroups.md @@ -0,0 +1,30 @@ +# AuthorizationGroups + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**th** | **float** | | [optional] +**users** | **Dict[str, str]** | | [optional] + +## Example + +```python +from fireblocks_client.models.authorization_groups import AuthorizationGroups + +# TODO update the JSON string below +json = "{}" +# create an instance of AuthorizationGroups from a JSON string +authorization_groups_instance = AuthorizationGroups.from_json(json) +# print the JSON string representation of the object +print AuthorizationGroups.to_json() + +# convert the object into a dict +authorization_groups_dict = authorization_groups_instance.to_dict() +# create an instance of AuthorizationGroups from a dict +authorization_groups_form_dict = authorization_groups.from_dict(authorization_groups_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/docs/AuthorizationInfo.md b/docs/AuthorizationInfo.md new file mode 100644 index 00000000..cf52cc37 --- /dev/null +++ b/docs/AuthorizationInfo.md @@ -0,0 +1,32 @@ +# AuthorizationInfo + +The information about your [Transaction Authorization Policy (TAP).](https://developers.fireblocks.com/docs/capabilities#transaction-authorization-policy-tap) + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allow_operator_as_authorizer** | **bool** | | [optional] +**logic** | **str** | | [optional] +**groups** | [**List[AuthorizationGroups]**](AuthorizationGroups.md) | | [optional] + +## Example + +```python +from fireblocks_client.models.authorization_info import AuthorizationInfo + +# TODO update the JSON string below +json = "{}" +# create an instance of AuthorizationInfo from a JSON string +authorization_info_instance = AuthorizationInfo.from_json(json) +# print the JSON string representation of the object +print AuthorizationInfo.to_json() + +# convert the object into a dict +authorization_info_dict = authorization_info_instance.to_dict() +# create an instance of AuthorizationInfo from a dict +authorization_info_form_dict = authorization_info.from_dict(authorization_info_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/docs/BlockInfo.md b/docs/BlockInfo.md new file mode 100644 index 00000000..d670c0ec --- /dev/null +++ b/docs/BlockInfo.md @@ -0,0 +1,31 @@ +# BlockInfo + +The block hash and height of the block that this transaction was mined in. **Note**: If an outgoing transaction uses the destinations object with more than one value in the array, blockHash is set to null. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**block_height** | **str** | | [optional] +**block_hash** | **str** | | [optional] + +## Example + +```python +from fireblocks_client.models.block_info import BlockInfo + +# TODO update the JSON string below +json = "{}" +# create an instance of BlockInfo from a JSON string +block_info_instance = BlockInfo.from_json(json) +# print the JSON string representation of the object +print BlockInfo.to_json() + +# convert the object into a dict +block_info_dict = block_info_instance.to_dict() +# create an instance of BlockInfo from a dict +block_info_form_dict = block_info.from_dict(block_info_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/docs/BlockchainsAssetsApi.md b/docs/BlockchainsAssetsApi.md new file mode 100644 index 00000000..dec8db41 --- /dev/null +++ b/docs/BlockchainsAssetsApi.md @@ -0,0 +1,151 @@ +# fireblocks_client.BlockchainsAssetsApi + +All URIs are relative to *https://api.fireblocks.io/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_supported_assets**](BlockchainsAssetsApi.md#get_supported_assets) | **GET** /supported_assets | List all asset types supported by Fireblocks +[**register_new_asset**](BlockchainsAssetsApi.md#register_new_asset) | **POST** /assets | Register an asset + + +# **get_supported_assets** +> List[AssetTypeResponse] get_supported_assets() + +List all asset types supported by Fireblocks + +Returns all asset types supported by Fireblocks. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.asset_type_response import AssetTypeResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.BlockchainsAssetsApi(api_client) + + try: + # List all asset types supported by Fireblocks + api_response = api_instance.get_supported_assets() + print("The response of BlockchainsAssetsApi->get_supported_assets:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling BlockchainsAssetsApi->get_supported_assets: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**List[AssetTypeResponse]**](AssetTypeResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A Transaction object | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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) + +# **register_new_asset** +> AssetResponse register_new_asset(idempotency_key=idempotency_key, register_new_asset_request=register_new_asset_request) + +Register an asset + +Register a new asset to a workspace and return the newly created asset's details. Currently supported for EVM based chains only. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.asset_response import AssetResponse +from fireblocks_client.models.register_new_asset_request import RegisterNewAssetRequest +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.BlockchainsAssetsApi(api_client) + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + register_new_asset_request = fireblocks_client.RegisterNewAssetRequest() # RegisterNewAssetRequest | (optional) + + try: + # Register an asset + api_response = api_instance.register_new_asset(idempotency_key=idempotency_key, register_new_asset_request=register_new_asset_request) + print("The response of BlockchainsAssetsApi->register_new_asset:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling BlockchainsAssetsApi->register_new_asset: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + **register_new_asset_request** | [**RegisterNewAssetRequest**](RegisterNewAssetRequest.md)| | [optional] + +### Return type + +[**AssetResponse**](AssetResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A new asset has been created successfully | - | +**400** | - Listing an asset on the requested blockchain is not supported. Error code: 1000 - The asset address is invalid. Error code: 1003 - Self serve listing an asset on the requested blockchain is currently not supported, please contact support. Error code: 1004 | - | +**403** | - The asset creation quota reached. Error code: 1005 | - | +**404** | - Invalid address, could not get asset information. Error code 1003 | - | +**409** | - The asset is already supported globally. Error code: 1001 - The asset has already been added to this workspace. Error code: 1002 | - | +**500** | Failed to create asset | - | + +[[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) + diff --git a/docs/CancelTransactionResponse.md b/docs/CancelTransactionResponse.md new file mode 100644 index 00000000..e8956bb5 --- /dev/null +++ b/docs/CancelTransactionResponse.md @@ -0,0 +1,29 @@ +# CancelTransactionResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | | [optional] + +## Example + +```python +from fireblocks_client.models.cancel_transaction_response import CancelTransactionResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of CancelTransactionResponse from a JSON string +cancel_transaction_response_instance = CancelTransactionResponse.from_json(json) +# print the JSON string representation of the object +print CancelTransactionResponse.to_json() + +# convert the object into a dict +cancel_transaction_response_dict = cancel_transaction_response_instance.to_dict() +# create an instance of CancelTransactionResponse from a dict +cancel_transaction_response_form_dict = cancel_transaction_response.from_dict(cancel_transaction_response_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/docs/ChainInfoResponseDto.md b/docs/ChainInfoResponseDto.md new file mode 100644 index 00000000..862daf86 --- /dev/null +++ b/docs/ChainInfoResponseDto.md @@ -0,0 +1,33 @@ +# ChainInfoResponseDto + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**chain_descriptor** | **str** | The protocol identifier (e.g. \"ETH\"/\"SOL\"). | +**current_epoch** | **float** | The current epoch number of the blockchain network. | +**epoch_elapsed** | **float** | The percentage of time that has elapsed within the current epoch, represented as a decimal value between 0 and 1. | +**epoch_duration** | **float** | The total duration in milliseconds of a single epoch. | +**additional_info** | [**AdditionalInfoDto**](AdditionalInfoDto.md) | Additional information related to the blockchain. This may include extra details about the blockchain network. | + +## Example + +```python +from fireblocks_client.models.chain_info_response_dto import ChainInfoResponseDto + +# TODO update the JSON string below +json = "{}" +# create an instance of ChainInfoResponseDto from a JSON string +chain_info_response_dto_instance = ChainInfoResponseDto.from_json(json) +# print the JSON string representation of the object +print ChainInfoResponseDto.to_json() + +# convert the object into a dict +chain_info_response_dto_dict = chain_info_response_dto_instance.to_dict() +# create an instance of ChainInfoResponseDto from a dict +chain_info_response_dto_form_dict = chain_info_response_dto.from_dict(chain_info_response_dto_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/docs/CollectionMetadataDto.md b/docs/CollectionMetadataDto.md new file mode 100644 index 00000000..c5aebc68 --- /dev/null +++ b/docs/CollectionMetadataDto.md @@ -0,0 +1,34 @@ +# CollectionMetadataDto + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**fb_collection_id** | **str** | Fireblocks collection id | +**name** | **str** | Collection name | [optional] +**symbol** | **str** | Collection symbol | [optional] +**standard** | **str** | Collection contract standard | [optional] +**blockchain_descriptor** | **str** | Collection's blockchain | +**contract_address** | **str** | Collection contract address | [optional] + +## Example + +```python +from fireblocks_client.models.collection_metadata_dto import CollectionMetadataDto + +# TODO update the JSON string below +json = "{}" +# create an instance of CollectionMetadataDto from a JSON string +collection_metadata_dto_instance = CollectionMetadataDto.from_json(json) +# print the JSON string representation of the object +print CollectionMetadataDto.to_json() + +# convert the object into a dict +collection_metadata_dto_dict = collection_metadata_dto_instance.to_dict() +# create an instance of CollectionMetadataDto from a dict +collection_metadata_dto_form_dict = collection_metadata_dto.from_dict(collection_metadata_dto_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/docs/CollectionOwnershipResponse.md b/docs/CollectionOwnershipResponse.md new file mode 100644 index 00000000..98d33d0e --- /dev/null +++ b/docs/CollectionOwnershipResponse.md @@ -0,0 +1,34 @@ +# CollectionOwnershipResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | Fireblocks collection id | +**name** | **str** | Collection name | [optional] +**symbol** | **str** | Collection symbol | [optional] +**standard** | **str** | Collection contract standard | [optional] +**blockchain_descriptor** | **str** | Collection's blockchain | +**contract_address** | **str** | Collection contract standard | [optional] + +## Example + +```python +from fireblocks_client.models.collection_ownership_response import CollectionOwnershipResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of CollectionOwnershipResponse from a JSON string +collection_ownership_response_instance = CollectionOwnershipResponse.from_json(json) +# print the JSON string representation of the object +print CollectionOwnershipResponse.to_json() + +# convert the object into a dict +collection_ownership_response_dict = collection_ownership_response_instance.to_dict() +# create an instance of CollectionOwnershipResponse from a dict +collection_ownership_response_form_dict = collection_ownership_response.from_dict(collection_ownership_response_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/docs/ComplianceApi.md b/docs/ComplianceApi.md new file mode 100644 index 00000000..0c8d550b --- /dev/null +++ b/docs/ComplianceApi.md @@ -0,0 +1,475 @@ +# fireblocks_client.ComplianceApi + +All URIs are relative to *https://api.fireblocks.io/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_aml_post_screening_policy**](ComplianceApi.md#get_aml_post_screening_policy) | **GET** /screening/aml/post_screening_policy | AML - View Post-Screening Policy +[**get_aml_screening_policy**](ComplianceApi.md#get_aml_screening_policy) | **GET** /screening/aml/screening_policy | AML - View Screening Policy +[**get_post_screening_policy**](ComplianceApi.md#get_post_screening_policy) | **GET** /screening/travel_rule/post_screening_policy | Travel Rule - View Post-Screening Policy +[**get_screening_policy**](ComplianceApi.md#get_screening_policy) | **GET** /screening/travel_rule/screening_policy | Travel Rule - View Screening Policy +[**update_aml_screening_configuration**](ComplianceApi.md#update_aml_screening_configuration) | **PUT** /screening/aml/policy_configuration | Update AML Configuration +[**update_screening_configuration**](ComplianceApi.md#update_screening_configuration) | **PUT** /screening/configurations | Tenant - Screening Configuration +[**update_travel_rule_config**](ComplianceApi.md#update_travel_rule_config) | **PUT** /screening/travel_rule/policy_configuration | Update Travel Rule Configuration + + +# **get_aml_post_screening_policy** +> ScreeningPolicyResponse get_aml_post_screening_policy() + +AML - View Post-Screening Policy + +Get the post-screening policy for AML. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.screening_policy_response import ScreeningPolicyResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.ComplianceApi(api_client) + + try: + # AML - View Post-Screening Policy + api_response = api_instance.get_aml_post_screening_policy() + print("The response of ComplianceApi->get_aml_post_screening_policy:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ComplianceApi->get_aml_post_screening_policy: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**ScreeningPolicyResponse**](ScreeningPolicyResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Post-screening policy retrieved successfully. | - | + +[[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_aml_screening_policy** +> ScreeningProviderRulesConfigurationResponse get_aml_screening_policy() + +AML - View Screening Policy + +Get the screening policy for AML. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.screening_provider_rules_configuration_response import ScreeningProviderRulesConfigurationResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.ComplianceApi(api_client) + + try: + # AML - View Screening Policy + api_response = api_instance.get_aml_screening_policy() + print("The response of ComplianceApi->get_aml_screening_policy:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ComplianceApi->get_aml_screening_policy: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**ScreeningProviderRulesConfigurationResponse**](ScreeningProviderRulesConfigurationResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Screening policy retrieved successfully. | - | + +[[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_post_screening_policy** +> ScreeningPolicyResponse get_post_screening_policy() + +Travel Rule - View Post-Screening Policy + +Get the post-screening policy for Travel Rule. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.screening_policy_response import ScreeningPolicyResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.ComplianceApi(api_client) + + try: + # Travel Rule - View Post-Screening Policy + api_response = api_instance.get_post_screening_policy() + print("The response of ComplianceApi->get_post_screening_policy:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ComplianceApi->get_post_screening_policy: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**ScreeningPolicyResponse**](ScreeningPolicyResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Post-screening policy retrieved successfully. | - | + +[[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_screening_policy** +> ScreeningProviderRulesConfigurationResponse get_screening_policy() + +Travel Rule - View Screening Policy + +Get the screening policy for Travel Rule. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.screening_provider_rules_configuration_response import ScreeningProviderRulesConfigurationResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.ComplianceApi(api_client) + + try: + # Travel Rule - View Screening Policy + api_response = api_instance.get_screening_policy() + print("The response of ComplianceApi->get_screening_policy:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ComplianceApi->get_screening_policy: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**ScreeningProviderRulesConfigurationResponse**](ScreeningProviderRulesConfigurationResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Screening policy retrieved successfully. | - | + +[[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) + +# **update_aml_screening_configuration** +> ScreeningConfigurationsRequest update_aml_screening_configuration(idempotency_key=idempotency_key) + +Update AML Configuration + +Updates bypass screening, inbound delay, or outbound delay configurations for AML. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.screening_configurations_request import ScreeningConfigurationsRequest +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.ComplianceApi(api_client) + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + + try: + # Update AML Configuration + api_response = api_instance.update_aml_screening_configuration(idempotency_key=idempotency_key) + print("The response of ComplianceApi->update_aml_screening_configuration:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ComplianceApi->update_aml_screening_configuration: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + +### Return type + +[**ScreeningConfigurationsRequest**](ScreeningConfigurationsRequest.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Configuration updated successfully. | - | + +[[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) + +# **update_screening_configuration** +> ScreeningUpdateConfigurationsRequest update_screening_configuration(idempotency_key=idempotency_key) + +Tenant - Screening Configuration + +Update tenant screening configuration. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.screening_update_configurations_request import ScreeningUpdateConfigurationsRequest +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.ComplianceApi(api_client) + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + + try: + # Tenant - Screening Configuration + api_response = api_instance.update_screening_configuration(idempotency_key=idempotency_key) + print("The response of ComplianceApi->update_screening_configuration:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ComplianceApi->update_screening_configuration: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + +### Return type + +[**ScreeningUpdateConfigurationsRequest**](ScreeningUpdateConfigurationsRequest.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Tenant Screening configuration updated successfully. | - | + +[[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) + +# **update_travel_rule_config** +> ScreeningConfigurationsRequest update_travel_rule_config(idempotency_key=idempotency_key) + +Update Travel Rule Configuration + +Updates bypass screening, inbound delay, or outbound delay configurations for Travel Rule. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.screening_configurations_request import ScreeningConfigurationsRequest +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.ComplianceApi(api_client) + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + + try: + # Update Travel Rule Configuration + api_response = api_instance.update_travel_rule_config(idempotency_key=idempotency_key) + print("The response of ComplianceApi->update_travel_rule_config:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ComplianceApi->update_travel_rule_config: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + +### Return type + +[**ScreeningConfigurationsRequest**](ScreeningConfigurationsRequest.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Configuration updated successfully. | - | + +[[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) + diff --git a/docs/ComplianceResult.md b/docs/ComplianceResult.md new file mode 100644 index 00000000..d5e37337 --- /dev/null +++ b/docs/ComplianceResult.md @@ -0,0 +1,34 @@ +# ComplianceResult + +The result of the Compliance AML/Travel Rule screening. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**aml** | [**List[ComplianceScreeningResult]**](ComplianceScreeningResult.md) | The end result of the AML screening. | [optional] +**tr** | [**List[ComplianceScreeningResult]**](ComplianceScreeningResult.md) | The result of the Travel Rule screening. | [optional] +**aml_list** | [**List[ComplianceScreeningResult]**](ComplianceScreeningResult.md) | The list of all results of the AML screening. | [optional] +**status** | **str** | Status of compliance result screening. | [optional] +**aml_registration** | [**List[AmlRegistrationResult]**](AmlRegistrationResult.md) | The results of the AML address registration. | [optional] + +## Example + +```python +from fireblocks_client.models.compliance_result import ComplianceResult + +# TODO update the JSON string below +json = "{}" +# create an instance of ComplianceResult from a JSON string +compliance_result_instance = ComplianceResult.from_json(json) +# print the JSON string representation of the object +print ComplianceResult.to_json() + +# convert the object into a dict +compliance_result_dict = compliance_result_instance.to_dict() +# create an instance of ComplianceResult from a dict +compliance_result_form_dict = compliance_result.from_dict(compliance_result_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/docs/ComplianceScreeningConfigurationApi.md b/docs/ComplianceScreeningConfigurationApi.md new file mode 100644 index 00000000..fe7d3686 --- /dev/null +++ b/docs/ComplianceScreeningConfigurationApi.md @@ -0,0 +1,138 @@ +# fireblocks_client.ComplianceScreeningConfigurationApi + +All URIs are relative to *https://api.fireblocks.io/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_aml_screening_configuration**](ComplianceScreeningConfigurationApi.md#get_aml_screening_configuration) | **GET** /screening/aml/policy_configuration | Get AML Screening Policy Configuration +[**get_screening_configuration**](ComplianceScreeningConfigurationApi.md#get_screening_configuration) | **GET** /screening/travel_rule/policy_configuration | Get Travel Rule Screening Policy Configuration + + +# **get_aml_screening_configuration** +> ScreeningConfigurationsRequest get_aml_screening_configuration() + +Get AML Screening Policy Configuration + +Retrieves the configuration for Travel Rule screening policy. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.screening_configurations_request import ScreeningConfigurationsRequest +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.ComplianceScreeningConfigurationApi(api_client) + + try: + # Get AML Screening Policy Configuration + api_response = api_instance.get_aml_screening_configuration() + print("The response of ComplianceScreeningConfigurationApi->get_aml_screening_configuration:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ComplianceScreeningConfigurationApi->get_aml_screening_configuration: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**ScreeningConfigurationsRequest**](ScreeningConfigurationsRequest.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Screening policy configuration retrieved successfully. | - | + +[[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_screening_configuration** +> ScreeningConfigurationsRequest get_screening_configuration() + +Get Travel Rule Screening Policy Configuration + +Retrieves the configuration for Travel Rule screening policy. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.screening_configurations_request import ScreeningConfigurationsRequest +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.ComplianceScreeningConfigurationApi(api_client) + + try: + # Get Travel Rule Screening Policy Configuration + api_response = api_instance.get_screening_configuration() + print("The response of ComplianceScreeningConfigurationApi->get_screening_configuration:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ComplianceScreeningConfigurationApi->get_screening_configuration: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**ScreeningConfigurationsRequest**](ScreeningConfigurationsRequest.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Screening policy configuration retrieved successfully. | - | + +[[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) + diff --git a/docs/ComplianceScreeningResult.md b/docs/ComplianceScreeningResult.md new file mode 100644 index 00000000..11029369 --- /dev/null +++ b/docs/ComplianceScreeningResult.md @@ -0,0 +1,33 @@ +# ComplianceScreeningResult + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**provider** | **str** | | [optional] +**payload** | **object** | The payload of the screening result. The payload is a JSON object that contains the screening result. The payload is different for each screening provider. | [optional] +**bypass_reason** | **str** | | [optional] +**screening_status** | **str** | | [optional] +**timestamp** | **float** | | [optional] + +## Example + +```python +from fireblocks_client.models.compliance_screening_result import ComplianceScreeningResult + +# TODO update the JSON string below +json = "{}" +# create an instance of ComplianceScreeningResult from a JSON string +compliance_screening_result_instance = ComplianceScreeningResult.from_json(json) +# print the JSON string representation of the object +print ComplianceScreeningResult.to_json() + +# convert the object into a dict +compliance_screening_result_dict = compliance_screening_result_instance.to_dict() +# create an instance of ComplianceScreeningResult from a dict +compliance_screening_result_form_dict = compliance_screening_result.from_dict(compliance_screening_result_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/docs/ConfigChangeRequestStatus.md b/docs/ConfigChangeRequestStatus.md new file mode 100644 index 00000000..9d425c09 --- /dev/null +++ b/docs/ConfigChangeRequestStatus.md @@ -0,0 +1,11 @@ +# ConfigChangeRequestStatus + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[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/ConfigConversionOperationSnapshot.md b/docs/ConfigConversionOperationSnapshot.md new file mode 100644 index 00000000..36b0c7d3 --- /dev/null +++ b/docs/ConfigConversionOperationSnapshot.md @@ -0,0 +1,31 @@ +# ConfigConversionOperationSnapshot + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**operation_id** | **str** | | +**type** | [**ConversionOperationType**](ConversionOperationType.md) | | +**params** | [**ConversionOperationConfigParams**](ConversionOperationConfigParams.md) | | + +## Example + +```python +from fireblocks_client.models.config_conversion_operation_snapshot import ConfigConversionOperationSnapshot + +# TODO update the JSON string below +json = "{}" +# create an instance of ConfigConversionOperationSnapshot from a JSON string +config_conversion_operation_snapshot_instance = ConfigConversionOperationSnapshot.from_json(json) +# print the JSON string representation of the object +print ConfigConversionOperationSnapshot.to_json() + +# convert the object into a dict +config_conversion_operation_snapshot_dict = config_conversion_operation_snapshot_instance.to_dict() +# create an instance of ConfigConversionOperationSnapshot from a dict +config_conversion_operation_snapshot_form_dict = config_conversion_operation_snapshot.from_dict(config_conversion_operation_snapshot_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/docs/ConfigDisbursementOperationSnapshot.md b/docs/ConfigDisbursementOperationSnapshot.md new file mode 100644 index 00000000..e477ca56 --- /dev/null +++ b/docs/ConfigDisbursementOperationSnapshot.md @@ -0,0 +1,31 @@ +# ConfigDisbursementOperationSnapshot + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**operation_id** | **str** | | +**type** | [**DisbursementOperationType**](DisbursementOperationType.md) | | +**params** | [**DisbursementOperationConfigParams**](DisbursementOperationConfigParams.md) | | + +## Example + +```python +from fireblocks_client.models.config_disbursement_operation_snapshot import ConfigDisbursementOperationSnapshot + +# TODO update the JSON string below +json = "{}" +# create an instance of ConfigDisbursementOperationSnapshot from a JSON string +config_disbursement_operation_snapshot_instance = ConfigDisbursementOperationSnapshot.from_json(json) +# print the JSON string representation of the object +print ConfigDisbursementOperationSnapshot.to_json() + +# convert the object into a dict +config_disbursement_operation_snapshot_dict = config_disbursement_operation_snapshot_instance.to_dict() +# create an instance of ConfigDisbursementOperationSnapshot from a dict +config_disbursement_operation_snapshot_form_dict = config_disbursement_operation_snapshot.from_dict(config_disbursement_operation_snapshot_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/docs/ConfigOperation.md b/docs/ConfigOperation.md new file mode 100644 index 00000000..c5a7090d --- /dev/null +++ b/docs/ConfigOperation.md @@ -0,0 +1,33 @@ +# ConfigOperation + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**operation_id** | **str** | | +**type** | [**DisbursementOperationType**](DisbursementOperationType.md) | | +**params** | [**DisbursementOperationConfigParams**](DisbursementOperationConfigParams.md) | | +**status** | [**ConfigOperationStatus**](ConfigOperationStatus.md) | | +**validation_failure** | [**DisbursementValidationFailure**](DisbursementValidationFailure.md) | | [optional] + +## Example + +```python +from fireblocks_client.models.config_operation import ConfigOperation + +# TODO update the JSON string below +json = "{}" +# create an instance of ConfigOperation from a JSON string +config_operation_instance = ConfigOperation.from_json(json) +# print the JSON string representation of the object +print ConfigOperation.to_json() + +# convert the object into a dict +config_operation_dict = config_operation_instance.to_dict() +# create an instance of ConfigOperation from a dict +config_operation_form_dict = config_operation.from_dict(config_operation_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/docs/ConfigOperationSnapshot.md b/docs/ConfigOperationSnapshot.md new file mode 100644 index 00000000..04197434 --- /dev/null +++ b/docs/ConfigOperationSnapshot.md @@ -0,0 +1,31 @@ +# ConfigOperationSnapshot + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**operation_id** | **str** | | +**type** | [**DisbursementOperationType**](DisbursementOperationType.md) | | +**params** | [**DisbursementOperationConfigParams**](DisbursementOperationConfigParams.md) | | + +## Example + +```python +from fireblocks_client.models.config_operation_snapshot import ConfigOperationSnapshot + +# TODO update the JSON string below +json = "{}" +# create an instance of ConfigOperationSnapshot from a JSON string +config_operation_snapshot_instance = ConfigOperationSnapshot.from_json(json) +# print the JSON string representation of the object +print ConfigOperationSnapshot.to_json() + +# convert the object into a dict +config_operation_snapshot_dict = config_operation_snapshot_instance.to_dict() +# create an instance of ConfigOperationSnapshot from a dict +config_operation_snapshot_form_dict = config_operation_snapshot.from_dict(config_operation_snapshot_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/docs/ConfigOperationStatus.md b/docs/ConfigOperationStatus.md new file mode 100644 index 00000000..7b1cadae --- /dev/null +++ b/docs/ConfigOperationStatus.md @@ -0,0 +1,11 @@ +# ConfigOperationStatus + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[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/ConfigTransferOperationSnapshot.md b/docs/ConfigTransferOperationSnapshot.md new file mode 100644 index 00000000..91393277 --- /dev/null +++ b/docs/ConfigTransferOperationSnapshot.md @@ -0,0 +1,31 @@ +# ConfigTransferOperationSnapshot + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**operation_id** | **str** | | +**type** | [**TransferOperationType**](TransferOperationType.md) | | +**params** | [**TransferOperationConfigParams**](TransferOperationConfigParams.md) | | + +## Example + +```python +from fireblocks_client.models.config_transfer_operation_snapshot import ConfigTransferOperationSnapshot + +# TODO update the JSON string below +json = "{}" +# create an instance of ConfigTransferOperationSnapshot from a JSON string +config_transfer_operation_snapshot_instance = ConfigTransferOperationSnapshot.from_json(json) +# print the JSON string representation of the object +print ConfigTransferOperationSnapshot.to_json() + +# convert the object into a dict +config_transfer_operation_snapshot_dict = config_transfer_operation_snapshot_instance.to_dict() +# create an instance of ConfigTransferOperationSnapshot from a dict +config_transfer_operation_snapshot_form_dict = config_transfer_operation_snapshot.from_dict(config_transfer_operation_snapshot_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/docs/ConsoleUser.md b/docs/ConsoleUser.md new file mode 100644 index 00000000..532cdce8 --- /dev/null +++ b/docs/ConsoleUser.md @@ -0,0 +1,36 @@ +# ConsoleUser + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | The unique identifier of the user | [optional] +**first_name** | **str** | The first name of the user | [optional] +**last_name** | **str** | The last name of the user | [optional] +**email** | **str** | The email address of the user | [optional] +**role** | [**UserRole**](UserRole.md) | | [optional] +**enabled** | **bool** | Whether the user is enabled | [optional] +**status** | [**UserStatus**](UserStatus.md) | | [optional] +**user_type** | [**UserType**](UserType.md) | | [optional] + +## Example + +```python +from fireblocks_client.models.console_user import ConsoleUser + +# TODO update the JSON string below +json = "{}" +# create an instance of ConsoleUser from a JSON string +console_user_instance = ConsoleUser.from_json(json) +# print the JSON string representation of the object +print ConsoleUser.to_json() + +# convert the object into a dict +console_user_dict = console_user_instance.to_dict() +# create an instance of ConsoleUser from a dict +console_user_form_dict = console_user.from_dict(console_user_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/docs/ConsoleUserApi.md b/docs/ConsoleUserApi.md new file mode 100644 index 00000000..9f84067d --- /dev/null +++ b/docs/ConsoleUserApi.md @@ -0,0 +1,151 @@ +# fireblocks_client.ConsoleUserApi + +All URIs are relative to *https://api.fireblocks.io/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_console_user**](ConsoleUserApi.md#create_console_user) | **POST** /management/users | Create console user +[**get_console_users**](ConsoleUserApi.md#get_console_users) | **GET** /management/users | Get console users + + +# **create_console_user** +> create_console_user(idempotency_key=idempotency_key, create_console_user=create_console_user) + +Create console user + +Creates console user in your tenant + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.create_console_user import CreateConsoleUser +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.ConsoleUserApi(api_client) + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + create_console_user = fireblocks_client.CreateConsoleUser() # CreateConsoleUser | (optional) + + try: + # Create console user + api_instance.create_console_user(idempotency_key=idempotency_key, create_console_user=create_console_user) + except Exception as e: + print("Exception when calling ConsoleUserApi->create_console_user: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + **create_console_user** | [**CreateConsoleUser**](CreateConsoleUser.md)| | [optional] + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | User creation approval request has been sent | * X-Request-ID -
| +**400** | bad request | * X-Request-ID -
| +**401** | Unauthorized. Missing / invalid JWT token in Authorization header. | * X-Request-ID -
| +**403** | Lacking permissions. | * X-Request-ID -
| +**5XX** | Internal error. | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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_console_users** +> GetConsoleUsersResponse get_console_users() + +Get console users + +Get console users for your tenant + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.get_console_users_response import GetConsoleUsersResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.ConsoleUserApi(api_client) + + try: + # Get console users + api_response = api_instance.get_console_users() + print("The response of ConsoleUserApi->get_console_users:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ConsoleUserApi->get_console_users: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**GetConsoleUsersResponse**](GetConsoleUsersResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | got console users | * X-Request-ID -
| +**401** | Unauthorized. Missing / invalid JWT token in Authorization header. | * X-Request-ID -
| +**403** | Lacking permissions. | * X-Request-ID -
| +**5XX** | Internal error. | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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) + diff --git a/docs/ContractAbiResponseDto.md b/docs/ContractAbiResponseDto.md new file mode 100644 index 00000000..5072a16a --- /dev/null +++ b/docs/ContractAbiResponseDto.md @@ -0,0 +1,30 @@ +# ContractAbiResponseDto + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**abi** | [**List[AbiFunction]**](AbiFunction.md) | The abi of the contract | +**implementation_abi** | [**List[AbiFunction]**](AbiFunction.md) | The abi of the implementation contract if exists. Relevant only for proxy patterns | [optional] + +## Example + +```python +from fireblocks_client.models.contract_abi_response_dto import ContractAbiResponseDto + +# TODO update the JSON string below +json = "{}" +# create an instance of ContractAbiResponseDto from a JSON string +contract_abi_response_dto_instance = ContractAbiResponseDto.from_json(json) +# print the JSON string representation of the object +print ContractAbiResponseDto.to_json() + +# convert the object into a dict +contract_abi_response_dto_dict = contract_abi_response_dto_instance.to_dict() +# create an instance of ContractAbiResponseDto from a dict +contract_abi_response_dto_form_dict = contract_abi_response_dto.from_dict(contract_abi_response_dto_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/docs/ContractAttributes.md b/docs/ContractAttributes.md new file mode 100644 index 00000000..4315afb1 --- /dev/null +++ b/docs/ContractAttributes.md @@ -0,0 +1,31 @@ +# ContractAttributes + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**use_cases** | **List[str]** | | +**standards** | **List[str]** | | +**auditor** | [**AuditorData**](AuditorData.md) | | + +## Example + +```python +from fireblocks_client.models.contract_attributes import ContractAttributes + +# TODO update the JSON string below +json = "{}" +# create an instance of ContractAttributes from a JSON string +contract_attributes_instance = ContractAttributes.from_json(json) +# print the JSON string representation of the object +print ContractAttributes.to_json() + +# convert the object into a dict +contract_attributes_dict = contract_attributes_instance.to_dict() +# create an instance of ContractAttributes from a dict +contract_attributes_form_dict = contract_attributes.from_dict(contract_attributes_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/docs/ContractDeployRequest.md b/docs/ContractDeployRequest.md new file mode 100644 index 00000000..f3d43643 --- /dev/null +++ b/docs/ContractDeployRequest.md @@ -0,0 +1,31 @@ +# ContractDeployRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**asset_id** | **str** | The base asset identifier of the blockchain you want to deploy to | +**vault_account_id** | **str** | The vault account id you wish to deploy from | +**constructor_parameters** | [**List[ParameterWithValue]**](ParameterWithValue.md) | The constructor parameters of this contract | [optional] + +## Example + +```python +from fireblocks_client.models.contract_deploy_request import ContractDeployRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of ContractDeployRequest from a JSON string +contract_deploy_request_instance = ContractDeployRequest.from_json(json) +# print the JSON string representation of the object +print ContractDeployRequest.to_json() + +# convert the object into a dict +contract_deploy_request_dict = contract_deploy_request_instance.to_dict() +# create an instance of ContractDeployRequest from a dict +contract_deploy_request_form_dict = contract_deploy_request.from_dict(contract_deploy_request_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/docs/ContractDeployResponse.md b/docs/ContractDeployResponse.md new file mode 100644 index 00000000..167c07d0 --- /dev/null +++ b/docs/ContractDeployResponse.md @@ -0,0 +1,29 @@ +# ContractDeployResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**tx_id** | **str** | The transaction id of the deployment request | + +## Example + +```python +from fireblocks_client.models.contract_deploy_response import ContractDeployResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of ContractDeployResponse from a JSON string +contract_deploy_response_instance = ContractDeployResponse.from_json(json) +# print the JSON string representation of the object +print ContractDeployResponse.to_json() + +# convert the object into a dict +contract_deploy_response_dict = contract_deploy_response_instance.to_dict() +# create an instance of ContractDeployResponse from a dict +contract_deploy_response_form_dict = contract_deploy_response.from_dict(contract_deploy_response_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/docs/ContractDoc.md b/docs/ContractDoc.md new file mode 100644 index 00000000..eed712d1 --- /dev/null +++ b/docs/ContractDoc.md @@ -0,0 +1,33 @@ +# ContractDoc + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**details** | **str** | A description of the contract | [optional] +**events** | **str** | A description of the contract`s events | [optional] +**kind** | **str** | Is it devdoc or userdoc | +**methods** | [**Dict[str, FunctionDoc]**](FunctionDoc.md) | The description of the contract functions | +**version** | **str** | The version of the contract | + +## Example + +```python +from fireblocks_client.models.contract_doc import ContractDoc + +# TODO update the JSON string below +json = "{}" +# create an instance of ContractDoc from a JSON string +contract_doc_instance = ContractDoc.from_json(json) +# print the JSON string representation of the object +print ContractDoc.to_json() + +# convert the object into a dict +contract_doc_dict = contract_doc_instance.to_dict() +# create an instance of ContractDoc from a dict +contract_doc_form_dict = contract_doc.from_dict(contract_doc_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/docs/ContractInteractionsApi.md b/docs/ContractInteractionsApi.md new file mode 100644 index 00000000..f96f654b --- /dev/null +++ b/docs/ContractInteractionsApi.md @@ -0,0 +1,236 @@ +# fireblocks_client.ContractInteractionsApi + +All URIs are relative to *https://api.fireblocks.io/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_deployed_contract_abi**](ContractInteractionsApi.md#get_deployed_contract_abi) | **GET** /contract_interactions/base_asset_id/{assetId}/contract_address/{contractAddress}/functions | Return deployed contract's ABI +[**read_call_function**](ContractInteractionsApi.md#read_call_function) | **POST** /contract_interactions/base_asset_id/{assetId}/contract_address/{contractAddress}/functions/read | Call a read function on a deployed contract +[**write_call_function**](ContractInteractionsApi.md#write_call_function) | **POST** /contract_interactions/base_asset_id/{assetId}/contract_address/{contractAddress}/functions/write | Call a write function on a deployed contract + + +# **get_deployed_contract_abi** +> ContractAbiResponseDto get_deployed_contract_abi(contract_address, asset_id, idempotency_key=idempotency_key) + +Return deployed contract's ABI + +Return deployed contract's ABI by blockchain native asset id and contract address + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.contract_abi_response_dto import ContractAbiResponseDto +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.ContractInteractionsApi(api_client) + contract_address = '0xC2c4e1Db41F0bB97996D0eD0542D2170d146FB66' # str | The contract's onchain address + asset_id = 'asset_id_example' # str | + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + + try: + # Return deployed contract's ABI + api_response = api_instance.get_deployed_contract_abi(contract_address, asset_id, idempotency_key=idempotency_key) + print("The response of ContractInteractionsApi->get_deployed_contract_abi:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ContractInteractionsApi->get_deployed_contract_abi: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **contract_address** | **str**| The contract's onchain address | + **asset_id** | **str**| | + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + +### Return type + +[**ContractAbiResponseDto**](ContractAbiResponseDto.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | | - | +**0** | Error Response | * X-Request-ID -
| + +[[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) + +# **read_call_function** +> List[ParameterWithValue] read_call_function(contract_address, asset_id, read_call_function_dto, idempotency_key=idempotency_key) + +Call a read function on a deployed contract + +Call a read function on a deployed contract by blockchain native asset id and contract address + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.parameter_with_value import ParameterWithValue +from fireblocks_client.models.read_call_function_dto import ReadCallFunctionDto +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.ContractInteractionsApi(api_client) + contract_address = '0xC2c4e1Db41F0bB97996D0eD0542D2170d146FB66' # str | The contract's onchain address + asset_id = 'asset_id_example' # str | + read_call_function_dto = fireblocks_client.ReadCallFunctionDto() # ReadCallFunctionDto | + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + + try: + # Call a read function on a deployed contract + api_response = api_instance.read_call_function(contract_address, asset_id, read_call_function_dto, idempotency_key=idempotency_key) + print("The response of ContractInteractionsApi->read_call_function:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ContractInteractionsApi->read_call_function: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **contract_address** | **str**| The contract's onchain address | + **asset_id** | **str**| | + **read_call_function_dto** | [**ReadCallFunctionDto**](ReadCallFunctionDto.md)| | + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + +### Return type + +[**List[ParameterWithValue]**](ParameterWithValue.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Read Call Retrieved Successfully | - | +**0** | Error Response | * X-Request-ID -
| + +[[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) + +# **write_call_function** +> WriteCallFunctionResponseDto write_call_function(contract_address, asset_id, write_call_function_dto, idempotency_key=idempotency_key) + +Call a write function on a deployed contract + +Call a write function on a deployed contract by blockchain native asset id and contract address. This creates an onchain transaction, thus it is an async operation. It returns a transaction id that can be polled for status check + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.write_call_function_dto import WriteCallFunctionDto +from fireblocks_client.models.write_call_function_response_dto import WriteCallFunctionResponseDto +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.ContractInteractionsApi(api_client) + contract_address = '0xC2c4e1Db41F0bB97996D0eD0542D2170d146FB66' # str | The contract's onchain address + asset_id = 'asset_id_example' # str | + write_call_function_dto = fireblocks_client.WriteCallFunctionDto() # WriteCallFunctionDto | + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + + try: + # Call a write function on a deployed contract + api_response = api_instance.write_call_function(contract_address, asset_id, write_call_function_dto, idempotency_key=idempotency_key) + print("The response of ContractInteractionsApi->write_call_function:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ContractInteractionsApi->write_call_function: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **contract_address** | **str**| The contract's onchain address | + **asset_id** | **str**| | + **write_call_function_dto** | [**WriteCallFunctionDto**](WriteCallFunctionDto.md)| | + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + +### Return type + +[**WriteCallFunctionResponseDto**](WriteCallFunctionResponseDto.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**202** | | - | +**0** | Error Response | * X-Request-ID -
| + +[[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) + diff --git a/docs/ContractMetadataDto.md b/docs/ContractMetadataDto.md new file mode 100644 index 00000000..cfc2b84d --- /dev/null +++ b/docs/ContractMetadataDto.md @@ -0,0 +1,33 @@ +# ContractMetadataDto + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | The deployed contract ID | +**blockchain_id** | **str** | The blockchain ID | +**contract_address** | **str** | The address of the token contract | +**contract_template_id** | **str** | The contract template ID | +**vault_account_id** | **str** | The vault account ID that initiated the request to issue the token | [optional] + +## Example + +```python +from fireblocks_client.models.contract_metadata_dto import ContractMetadataDto + +# TODO update the JSON string below +json = "{}" +# create an instance of ContractMetadataDto from a JSON string +contract_metadata_dto_instance = ContractMetadataDto.from_json(json) +# print the JSON string representation of the object +print ContractMetadataDto.to_json() + +# convert the object into a dict +contract_metadata_dto_dict = contract_metadata_dto_instance.to_dict() +# create an instance of ContractMetadataDto from a dict +contract_metadata_dto_form_dict = contract_metadata_dto.from_dict(contract_metadata_dto_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/docs/ContractTemplateDto.md b/docs/ContractTemplateDto.md new file mode 100644 index 00000000..dc2db01d --- /dev/null +++ b/docs/ContractTemplateDto.md @@ -0,0 +1,42 @@ +# ContractTemplateDto + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | The unique identifier of the contract template | +**name** | **str** | The name of the contract template | +**description** | **str** | A short description of the contract template | +**long_description** | **str** | A full description of the contract template. May contain to break the lines | [optional] +**abi** | **List[List[AbiFunction]]** | | +**attributes** | [**ContractAttributes**](ContractAttributes.md) | The attributes related to this contract template. It will be displayed in the tokenization page | [optional] +**docs** | [**ContractDoc**](ContractDoc.md) | A `natspec` compliant documentation json. Can be retrieved from the output json after compilation | [optional] +**owner** | **str** | The workspace id of the owner of this contract template. If it's a private contract, only this workspace will be allowed to deploy it | [optional] +**vendor** | [**VendorDto**](VendorDto.md) | The details of the vendor of this contract template. Applicable only for public contract templates | [optional] +**is_public** | **bool** | Is this a contract that is viewable by all fireblocks's users or is it visible only for this workspace | +**can_deploy** | **bool** | True if the workspace allowed to deploy this contract, false otherwise | [optional] +**type** | **str** | The type of the contract template | [optional] +**implementation_contract_id** | **str** | | [optional] +**initialization_phase** | **str** | | + +## Example + +```python +from fireblocks_client.models.contract_template_dto import ContractTemplateDto + +# TODO update the JSON string below +json = "{}" +# create an instance of ContractTemplateDto from a JSON string +contract_template_dto_instance = ContractTemplateDto.from_json(json) +# print the JSON string representation of the object +print ContractTemplateDto.to_json() + +# convert the object into a dict +contract_template_dto_dict = contract_template_dto_instance.to_dict() +# create an instance of ContractTemplateDto from a dict +contract_template_dto_form_dict = contract_template_dto.from_dict(contract_template_dto_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/docs/ContractTemplatesApi.md b/docs/ContractTemplatesApi.md new file mode 100644 index 00000000..86b32837 --- /dev/null +++ b/docs/ContractTemplatesApi.md @@ -0,0 +1,522 @@ +# fireblocks_client.ContractTemplatesApi + +All URIs are relative to *https://api.fireblocks.io/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**delete_contract_template_by_id**](ContractTemplatesApi.md#delete_contract_template_by_id) | **DELETE** /tokenization/templates/{contractTemplateId} | Delete a contract template by id +[**deploy_contract**](ContractTemplatesApi.md#deploy_contract) | **POST** /tokenization/templates/{contractTemplateId}/deploy | Deploy contract +[**get_constructor_by_contract_template_id**](ContractTemplatesApi.md#get_constructor_by_contract_template_id) | **GET** /tokenization/templates/{contractTemplateId}/constructor | Return contract template's constructor +[**get_contract_template_by_id**](ContractTemplatesApi.md#get_contract_template_by_id) | **GET** /tokenization/templates/{contractTemplateId} | Return contract template by id +[**get_contract_templates**](ContractTemplatesApi.md#get_contract_templates) | **GET** /tokenization/templates | List all contract templates +[**get_function_abi_by_contract_template_id**](ContractTemplatesApi.md#get_function_abi_by_contract_template_id) | **GET** /tokenization/templates/{contractTemplateId}/function | Return contract template's function +[**upload_contract_template**](ContractTemplatesApi.md#upload_contract_template) | **POST** /tokenization/templates | Upload contract template + + +# **delete_contract_template_by_id** +> delete_contract_template_by_id(contract_template_id) + +Delete a contract template by id + +Delete a contract by id. allowed only for private contract templates. Notice: it is irreversible! + +### Example + + +```python +import fireblocks_client +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.ContractTemplatesApi(api_client) + contract_template_id = 'b70701f4-d7b1-4795-a8ee-b09cdb5b850d' # str | The Contract Template identifier + + try: + # Delete a contract template by id + api_instance.delete_contract_template_by_id(contract_template_id) + except Exception as e: + print("Exception when calling ContractTemplatesApi->delete_contract_template_by_id: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **contract_template_id** | **str**| The Contract Template identifier | + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**204** | Contract was deleted successfully | - | +**404** | Could not find contract. | - | +**0** | Error Response | * X-Request-ID -
| + +[[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) + +# **deploy_contract** +> ContractDeployResponse deploy_contract(contract_template_id, contract_deploy_request, idempotency_key=idempotency_key) + +Deploy contract + +Deploy a new contract by contract template id. If you wish to deploy a token (ERC20, ERC721 etc), and create asset please use POST /tokenization + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.contract_deploy_request import ContractDeployRequest +from fireblocks_client.models.contract_deploy_response import ContractDeployResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.ContractTemplatesApi(api_client) + contract_template_id = 'b70701f4-d7b1-4795-a8ee-b09cdb5b850d' # str | The Contract Template identifier + contract_deploy_request = fireblocks_client.ContractDeployRequest() # ContractDeployRequest | + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + + try: + # Deploy contract + api_response = api_instance.deploy_contract(contract_template_id, contract_deploy_request, idempotency_key=idempotency_key) + print("The response of ContractTemplatesApi->deploy_contract:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ContractTemplatesApi->deploy_contract: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **contract_template_id** | **str**| The Contract Template identifier | + **contract_deploy_request** | [**ContractDeployRequest**](ContractDeployRequest.md)| | + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + +### Return type + +[**ContractDeployResponse**](ContractDeployResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**202** | Contract was deployed successfully | - | +**404** | Could not find contract. | - | +**0** | Error Response | * X-Request-ID -
| + +[[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_constructor_by_contract_template_id** +> AbiFunction get_constructor_by_contract_template_id(contract_template_id, with_docs=with_docs) + +Return contract template's constructor + +Return contract template's constructor ABI + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.abi_function import AbiFunction +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.ContractTemplatesApi(api_client) + contract_template_id = 'b70701f4-d7b1-4795-a8ee-b09cdb5b850d' # str | The Contract Template identifier + with_docs = False # bool | true if you want to get the abi with its docs (optional) (default to False) + + try: + # Return contract template's constructor + api_response = api_instance.get_constructor_by_contract_template_id(contract_template_id, with_docs=with_docs) + print("The response of ContractTemplatesApi->get_constructor_by_contract_template_id:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ContractTemplatesApi->get_constructor_by_contract_template_id: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **contract_template_id** | **str**| The Contract Template identifier | + **with_docs** | **bool**| true if you want to get the abi with its docs | [optional] [default to False] + +### Return type + +[**AbiFunction**](AbiFunction.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Contract template's constructor ABI was returned successfully | - | +**404** | Could not find contract. | - | +**0** | Error Response | * X-Request-ID -
| + +[[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_contract_template_by_id** +> ContractTemplateDto get_contract_template_by_id(contract_template_id) + +Return contract template by id + +Return detailed information about the contract template + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.contract_template_dto import ContractTemplateDto +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.ContractTemplatesApi(api_client) + contract_template_id = 'b70701f4-d7b1-4795-a8ee-b09cdb5b850d' # str | The Contract Template identifier + + try: + # Return contract template by id + api_response = api_instance.get_contract_template_by_id(contract_template_id) + print("The response of ContractTemplatesApi->get_contract_template_by_id:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ContractTemplatesApi->get_contract_template_by_id: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **contract_template_id** | **str**| The Contract Template identifier | + +### Return type + +[**ContractTemplateDto**](ContractTemplateDto.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Contract template was returned successfully | - | +**404** | Could not find contract. | - | +**0** | Error Response | * X-Request-ID -
| + +[[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_contract_templates** +> TemplatesPaginatedResponse get_contract_templates(limit=limit, offset=offset, page_cursor=page_cursor, page_size=page_size, type=type, initialization_phase=initialization_phase) + +List all contract templates + +Return minimal representation of all the contract templates available for the workspace + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.templates_paginated_response import TemplatesPaginatedResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.ContractTemplatesApi(api_client) + limit = 100 # float | Items per page (max 100) (optional) (default to 100) + offset = 0 # float | Paging offset (optional) (default to 0) + page_cursor = 'MjAyMy0xMi0xMyAyMDozNjowOC4zMDI=:MTEwMA==' # str | Page cursor to get the next page (optional) + page_size = 10 # float | Number of items per page, requesting more then max will return max items (optional) + type = 'FUNGIBLE_TOKEN' # str | The type of the contract templates you wish to retrieve. Can accept one type, more or none (optional) + initialization_phase = 'initialization_phase_example' # str | (optional) + + try: + # List all contract templates + api_response = api_instance.get_contract_templates(limit=limit, offset=offset, page_cursor=page_cursor, page_size=page_size, type=type, initialization_phase=initialization_phase) + print("The response of ContractTemplatesApi->get_contract_templates:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ContractTemplatesApi->get_contract_templates: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **limit** | **float**| Items per page (max 100) | [optional] [default to 100] + **offset** | **float**| Paging offset | [optional] [default to 0] + **page_cursor** | **str**| Page cursor to get the next page | [optional] + **page_size** | **float**| Number of items per page, requesting more then max will return max items | [optional] + **type** | **str**| The type of the contract templates you wish to retrieve. Can accept one type, more or none | [optional] + **initialization_phase** | **str**| | [optional] + +### Return type + +[**TemplatesPaginatedResponse**](TemplatesPaginatedResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | List of contract templates was returned successfully | - | +**0** | Error Response | * X-Request-ID -
| + +[[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_function_abi_by_contract_template_id** +> AbiFunction get_function_abi_by_contract_template_id(contract_template_id, function_signature) + +Return contract template's function + +Return contract template`s function ABI by signature + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.abi_function import AbiFunction +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.ContractTemplatesApi(api_client) + contract_template_id = 'b70701f4-d7b1-4795-a8ee-b09cdb5b850d' # str | The Contract Template identifier + function_signature = 'function_signature_example' # str | + + try: + # Return contract template's function + api_response = api_instance.get_function_abi_by_contract_template_id(contract_template_id, function_signature) + print("The response of ContractTemplatesApi->get_function_abi_by_contract_template_id:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ContractTemplatesApi->get_function_abi_by_contract_template_id: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **contract_template_id** | **str**| The Contract Template identifier | + **function_signature** | **str**| | + +### Return type + +[**AbiFunction**](AbiFunction.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Contract template`s function ABI was returned successfully | - | +**404** | Could not find contract. | - | +**0** | Error Response | * X-Request-ID -
| + +[[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) + +# **upload_contract_template** +> ContractTemplateDto upload_contract_template(contract_upload_request, idempotency_key=idempotency_key) + +Upload contract template + +Upload a new contract template. This contract template will be available for the workspace + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.contract_template_dto import ContractTemplateDto +from fireblocks_client.models.contract_upload_request import ContractUploadRequest +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.ContractTemplatesApi(api_client) + contract_upload_request = fireblocks_client.ContractUploadRequest() # ContractUploadRequest | + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + + try: + # Upload contract template + api_response = api_instance.upload_contract_template(contract_upload_request, idempotency_key=idempotency_key) + print("The response of ContractTemplatesApi->upload_contract_template:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ContractTemplatesApi->upload_contract_template: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **contract_upload_request** | [**ContractUploadRequest**](ContractUploadRequest.md)| | + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + +### Return type + +[**ContractTemplateDto**](ContractTemplateDto.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | Contract was uploaded successfully | - | +**0** | Error Response | * X-Request-ID -
| + +[[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) + diff --git a/docs/ContractUploadRequest.md b/docs/ContractUploadRequest.md new file mode 100644 index 00000000..7c0fc6ec --- /dev/null +++ b/docs/ContractUploadRequest.md @@ -0,0 +1,37 @@ +# ContractUploadRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | The name of the contract template | +**description** | **str** | A short description of the contract template | +**long_description** | **str** | A full description of the contract template. May contain to break the lines | [optional] +**bytecode** | **str** | The compiled artifact of this smart contract. Used for deployment of this contract template | +**sourcecode** | **str** | The source code of the contract. Optional. | [optional] +**type** | **str** | The type of the contract template | [optional] +**docs** | [**ContractDoc**](ContractDoc.md) | A `natspec` compliant documentation json. Can be retrieved from the output json after compilation | [optional] +**abi** | **List[List[AbiFunction]]** | | +**attributes** | [**ContractAttributes**](ContractAttributes.md) | The attributes related to this contract template. It will be displayed in the tokenization page | [optional] + +## Example + +```python +from fireblocks_client.models.contract_upload_request import ContractUploadRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of ContractUploadRequest from a JSON string +contract_upload_request_instance = ContractUploadRequest.from_json(json) +# print the JSON string representation of the object +print ContractUploadRequest.to_json() + +# convert the object into a dict +contract_upload_request_dict = contract_upload_request_instance.to_dict() +# create an instance of ContractUploadRequest from a dict +contract_upload_request_form_dict = contract_upload_request.from_dict(contract_upload_request_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/docs/ContractsApi.md b/docs/ContractsApi.md new file mode 100644 index 00000000..1c31a787 --- /dev/null +++ b/docs/ContractsApi.md @@ -0,0 +1,502 @@ +# fireblocks_client.ContractsApi + +All URIs are relative to *https://api.fireblocks.io/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**add_contract_asset**](ContractsApi.md#add_contract_asset) | **POST** /contracts/{contractId}/{assetId} | Add an asset to a contract +[**create_contract**](ContractsApi.md#create_contract) | **POST** /contracts | Create a contract +[**delete_contract**](ContractsApi.md#delete_contract) | **DELETE** /contracts/{contractId} | Delete a contract +[**delete_contract_asset**](ContractsApi.md#delete_contract_asset) | **DELETE** /contracts/{contractId}/{assetId} | Delete a contract asset +[**get_contract**](ContractsApi.md#get_contract) | **GET** /contracts/{contractId} | Find a specific contract +[**get_contract_asset**](ContractsApi.md#get_contract_asset) | **GET** /contracts/{contractId}/{assetId} | Find a contract asset +[**get_contracts**](ContractsApi.md#get_contracts) | **GET** /contracts | List contracts + + +# **add_contract_asset** +> ExternalWalletAsset add_contract_asset(contract_id, asset_id, idempotency_key=idempotency_key, add_contract_asset_request=add_contract_asset_request) + +Add an asset to a contract + +Adds an asset to an existing contract. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.add_contract_asset_request import AddContractAssetRequest +from fireblocks_client.models.external_wallet_asset import ExternalWalletAsset +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.ContractsApi(api_client) + contract_id = 'contract_id_example' # str | The ID of the contract + asset_id = 'asset_id_example' # str | The ID of the asset to add + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + add_contract_asset_request = fireblocks_client.AddContractAssetRequest() # AddContractAssetRequest | (optional) + + try: + # Add an asset to a contract + api_response = api_instance.add_contract_asset(contract_id, asset_id, idempotency_key=idempotency_key, add_contract_asset_request=add_contract_asset_request) + print("The response of ContractsApi->add_contract_asset:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ContractsApi->add_contract_asset: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **contract_id** | **str**| The ID of the contract | + **asset_id** | **str**| The ID of the asset to add | + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + **add_contract_asset_request** | [**AddContractAssetRequest**](AddContractAssetRequest.md)| | [optional] + +### Return type + +[**ExternalWalletAsset**](ExternalWalletAsset.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A Wallet Asset object | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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) + +# **create_contract** +> UnmanagedWallet create_contract(idempotency_key=idempotency_key, create_contract_request=create_contract_request) + +Create a contract + +Creates a new contract. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.create_contract_request import CreateContractRequest +from fireblocks_client.models.unmanaged_wallet import UnmanagedWallet +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.ContractsApi(api_client) + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + create_contract_request = fireblocks_client.CreateContractRequest() # CreateContractRequest | (optional) + + try: + # Create a contract + api_response = api_instance.create_contract(idempotency_key=idempotency_key, create_contract_request=create_contract_request) + print("The response of ContractsApi->create_contract:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ContractsApi->create_contract: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + **create_contract_request** | [**CreateContractRequest**](CreateContractRequest.md)| | [optional] + +### Return type + +[**UnmanagedWallet**](UnmanagedWallet.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A Wallet object | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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) + +# **delete_contract** +> delete_contract(contract_id) + +Delete a contract + +Deletes a contract by ID. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.ContractsApi(api_client) + contract_id = 'contract_id_example' # str | The ID of the contract to delete + + try: + # Delete a contract + api_instance.delete_contract(contract_id) + except Exception as e: + print("Exception when calling ContractsApi->delete_contract: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **contract_id** | **str**| The ID of the contract to delete | + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | OK | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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) + +# **delete_contract_asset** +> delete_contract_asset(contract_id, asset_id) + +Delete a contract asset + +Deletes a contract asset by ID. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.ContractsApi(api_client) + contract_id = 'contract_id_example' # str | The ID of the contract + asset_id = 'asset_id_example' # str | The ID of the asset to delete + + try: + # Delete a contract asset + api_instance.delete_contract_asset(contract_id, asset_id) + except Exception as e: + print("Exception when calling ContractsApi->delete_contract_asset: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **contract_id** | **str**| The ID of the contract | + **asset_id** | **str**| The ID of the asset to delete | + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | OK | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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_contract** +> UnmanagedWallet get_contract(contract_id) + +Find a specific contract + +Returns a contract by ID. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.unmanaged_wallet import UnmanagedWallet +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.ContractsApi(api_client) + contract_id = 'contract_id_example' # str | The ID of the contract to return + + try: + # Find a specific contract + api_response = api_instance.get_contract(contract_id) + print("The response of ContractsApi->get_contract:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ContractsApi->get_contract: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **contract_id** | **str**| The ID of the contract to return | + +### Return type + +[**UnmanagedWallet**](UnmanagedWallet.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A Wallet object | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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_contract_asset** +> ExternalWalletAsset get_contract_asset(contract_id, asset_id) + +Find a contract asset + +Returns a contract asset by ID. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.external_wallet_asset import ExternalWalletAsset +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.ContractsApi(api_client) + contract_id = 'contract_id_example' # str | The ID of the contract + asset_id = 'asset_id_example' # str | The ID of the asset to return + + try: + # Find a contract asset + api_response = api_instance.get_contract_asset(contract_id, asset_id) + print("The response of ContractsApi->get_contract_asset:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ContractsApi->get_contract_asset: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **contract_id** | **str**| The ID of the contract | + **asset_id** | **str**| The ID of the asset to return | + +### Return type + +[**ExternalWalletAsset**](ExternalWalletAsset.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A Wallet Asset object | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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_contracts** +> List[UnmanagedWallet] get_contracts() + +List contracts + +Gets a list of contracts. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.unmanaged_wallet import UnmanagedWallet +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.ContractsApi(api_client) + + try: + # List contracts + api_response = api_instance.get_contracts() + print("The response of ContractsApi->get_contracts:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ContractsApi->get_contracts: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**List[UnmanagedWallet]**](UnmanagedWallet.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A list of contracts | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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) + diff --git a/docs/ConversionConfigOperation.md b/docs/ConversionConfigOperation.md new file mode 100644 index 00000000..1ae41f87 --- /dev/null +++ b/docs/ConversionConfigOperation.md @@ -0,0 +1,33 @@ +# ConversionConfigOperation + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**operation_id** | **str** | | +**type** | [**ConversionOperationType**](ConversionOperationType.md) | | +**params** | [**ConversionOperationConfigParams**](ConversionOperationConfigParams.md) | | +**status** | [**ConfigOperationStatus**](ConfigOperationStatus.md) | | +**validation_failure** | [**ConversionValidationFailure**](ConversionValidationFailure.md) | | [optional] + +## Example + +```python +from fireblocks_client.models.conversion_config_operation import ConversionConfigOperation + +# TODO update the JSON string below +json = "{}" +# create an instance of ConversionConfigOperation from a JSON string +conversion_config_operation_instance = ConversionConfigOperation.from_json(json) +# print the JSON string representation of the object +print ConversionConfigOperation.to_json() + +# convert the object into a dict +conversion_config_operation_dict = conversion_config_operation_instance.to_dict() +# create an instance of ConversionConfigOperation from a dict +conversion_config_operation_form_dict = conversion_config_operation.from_dict(conversion_config_operation_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/docs/ConversionOperationConfigParams.md b/docs/ConversionOperationConfigParams.md new file mode 100644 index 00000000..bc7e8537 --- /dev/null +++ b/docs/ConversionOperationConfigParams.md @@ -0,0 +1,33 @@ +# ConversionOperationConfigParams + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**amount** | **str** | | [optional] +**account_id** | **str** | | [optional] +**src_asset_id** | **str** | | [optional] +**dest_asset_id** | **str** | | +**slippage_basis_points** | **int** | | [optional] + +## Example + +```python +from fireblocks_client.models.conversion_operation_config_params import ConversionOperationConfigParams + +# TODO update the JSON string below +json = "{}" +# create an instance of ConversionOperationConfigParams from a JSON string +conversion_operation_config_params_instance = ConversionOperationConfigParams.from_json(json) +# print the JSON string representation of the object +print ConversionOperationConfigParams.to_json() + +# convert the object into a dict +conversion_operation_config_params_dict = conversion_operation_config_params_instance.to_dict() +# create an instance of ConversionOperationConfigParams from a dict +conversion_operation_config_params_form_dict = conversion_operation_config_params.from_dict(conversion_operation_config_params_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/docs/ConversionOperationExecution.md b/docs/ConversionOperationExecution.md new file mode 100644 index 00000000..55615b67 --- /dev/null +++ b/docs/ConversionOperationExecution.md @@ -0,0 +1,33 @@ +# ConversionOperationExecution + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**input** | [**ConversionOperationConfigParams**](ConversionOperationConfigParams.md) | | +**output** | [**ConversionOperationExecutionOutput**](ConversionOperationExecutionOutput.md) | | [optional] +**started_at** | **float** | | +**finished_at** | **float** | | [optional] +**failure** | [**ConversionOperationFailure**](ConversionOperationFailure.md) | | [optional] + +## Example + +```python +from fireblocks_client.models.conversion_operation_execution import ConversionOperationExecution + +# TODO update the JSON string below +json = "{}" +# create an instance of ConversionOperationExecution from a JSON string +conversion_operation_execution_instance = ConversionOperationExecution.from_json(json) +# print the JSON string representation of the object +print ConversionOperationExecution.to_json() + +# convert the object into a dict +conversion_operation_execution_dict = conversion_operation_execution_instance.to_dict() +# create an instance of ConversionOperationExecution from a dict +conversion_operation_execution_form_dict = conversion_operation_execution.from_dict(conversion_operation_execution_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/docs/ConversionOperationExecutionOutput.md b/docs/ConversionOperationExecutionOutput.md new file mode 100644 index 00000000..ee393e44 --- /dev/null +++ b/docs/ConversionOperationExecutionOutput.md @@ -0,0 +1,31 @@ +# ConversionOperationExecutionOutput + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**amount** | [**AssetAmount**](AssetAmount.md) | | +**fee** | [**AssetAmount**](AssetAmount.md) | | +**conversion_rate** | **str** | | + +## Example + +```python +from fireblocks_client.models.conversion_operation_execution_output import ConversionOperationExecutionOutput + +# TODO update the JSON string below +json = "{}" +# create an instance of ConversionOperationExecutionOutput from a JSON string +conversion_operation_execution_output_instance = ConversionOperationExecutionOutput.from_json(json) +# print the JSON string representation of the object +print ConversionOperationExecutionOutput.to_json() + +# convert the object into a dict +conversion_operation_execution_output_dict = conversion_operation_execution_output_instance.to_dict() +# create an instance of ConversionOperationExecutionOutput from a dict +conversion_operation_execution_output_form_dict = conversion_operation_execution_output.from_dict(conversion_operation_execution_output_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/docs/ConversionOperationExecutionParams.md b/docs/ConversionOperationExecutionParams.md new file mode 100644 index 00000000..8c990fcc --- /dev/null +++ b/docs/ConversionOperationExecutionParams.md @@ -0,0 +1,30 @@ +# ConversionOperationExecutionParams + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**config_operation_id** | **str** | | +**execution_params** | [**ConversionOperationExecutionParamsExecutionParams**](ConversionOperationExecutionParamsExecutionParams.md) | | [optional] + +## Example + +```python +from fireblocks_client.models.conversion_operation_execution_params import ConversionOperationExecutionParams + +# TODO update the JSON string below +json = "{}" +# create an instance of ConversionOperationExecutionParams from a JSON string +conversion_operation_execution_params_instance = ConversionOperationExecutionParams.from_json(json) +# print the JSON string representation of the object +print ConversionOperationExecutionParams.to_json() + +# convert the object into a dict +conversion_operation_execution_params_dict = conversion_operation_execution_params_instance.to_dict() +# create an instance of ConversionOperationExecutionParams from a dict +conversion_operation_execution_params_form_dict = conversion_operation_execution_params.from_dict(conversion_operation_execution_params_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/docs/ConversionOperationExecutionParamsExecutionParams.md b/docs/ConversionOperationExecutionParamsExecutionParams.md new file mode 100644 index 00000000..7e2d9c09 --- /dev/null +++ b/docs/ConversionOperationExecutionParamsExecutionParams.md @@ -0,0 +1,33 @@ +# ConversionOperationExecutionParamsExecutionParams + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**amount** | **str** | | [optional] +**account_id** | **str** | | [optional] +**src_asset_id** | **str** | | [optional] +**dest_asset_id** | **str** | | [optional] +**slippage_basis_points** | **int** | | [optional] + +## Example + +```python +from fireblocks_client.models.conversion_operation_execution_params_execution_params import ConversionOperationExecutionParamsExecutionParams + +# TODO update the JSON string below +json = "{}" +# create an instance of ConversionOperationExecutionParamsExecutionParams from a JSON string +conversion_operation_execution_params_execution_params_instance = ConversionOperationExecutionParamsExecutionParams.from_json(json) +# print the JSON string representation of the object +print ConversionOperationExecutionParamsExecutionParams.to_json() + +# convert the object into a dict +conversion_operation_execution_params_execution_params_dict = conversion_operation_execution_params_execution_params_instance.to_dict() +# create an instance of ConversionOperationExecutionParamsExecutionParams from a dict +conversion_operation_execution_params_execution_params_form_dict = conversion_operation_execution_params_execution_params.from_dict(conversion_operation_execution_params_execution_params_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/docs/ConversionOperationFailure.md b/docs/ConversionOperationFailure.md new file mode 100644 index 00000000..123977c8 --- /dev/null +++ b/docs/ConversionOperationFailure.md @@ -0,0 +1,30 @@ +# ConversionOperationFailure + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**reason** | **str** | | +**data** | **Dict[str, object]** | | [optional] + +## Example + +```python +from fireblocks_client.models.conversion_operation_failure import ConversionOperationFailure + +# TODO update the JSON string below +json = "{}" +# create an instance of ConversionOperationFailure from a JSON string +conversion_operation_failure_instance = ConversionOperationFailure.from_json(json) +# print the JSON string representation of the object +print ConversionOperationFailure.to_json() + +# convert the object into a dict +conversion_operation_failure_dict = conversion_operation_failure_instance.to_dict() +# create an instance of ConversionOperationFailure from a dict +conversion_operation_failure_form_dict = conversion_operation_failure.from_dict(conversion_operation_failure_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/docs/ConversionOperationPreview.md b/docs/ConversionOperationPreview.md new file mode 100644 index 00000000..35709419 --- /dev/null +++ b/docs/ConversionOperationPreview.md @@ -0,0 +1,31 @@ +# ConversionOperationPreview + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**input** | [**ConversionOperationConfigParams**](ConversionOperationConfigParams.md) | | +**output** | [**ConversionOperationPreviewOutput**](ConversionOperationPreviewOutput.md) | | [optional] +**failure** | [**ConversionOperationFailure**](ConversionOperationFailure.md) | | [optional] + +## Example + +```python +from fireblocks_client.models.conversion_operation_preview import ConversionOperationPreview + +# TODO update the JSON string below +json = "{}" +# create an instance of ConversionOperationPreview from a JSON string +conversion_operation_preview_instance = ConversionOperationPreview.from_json(json) +# print the JSON string representation of the object +print ConversionOperationPreview.to_json() + +# convert the object into a dict +conversion_operation_preview_dict = conversion_operation_preview_instance.to_dict() +# create an instance of ConversionOperationPreview from a dict +conversion_operation_preview_form_dict = conversion_operation_preview.from_dict(conversion_operation_preview_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/docs/ConversionOperationPreviewOutput.md b/docs/ConversionOperationPreviewOutput.md new file mode 100644 index 00000000..3491a507 --- /dev/null +++ b/docs/ConversionOperationPreviewOutput.md @@ -0,0 +1,32 @@ +# ConversionOperationPreviewOutput + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**amount** | [**AssetAmount**](AssetAmount.md) | | +**fee** | [**AssetAmount**](AssetAmount.md) | | +**conversion_rate** | **str** | | +**time_seconds** | **float** | | + +## Example + +```python +from fireblocks_client.models.conversion_operation_preview_output import ConversionOperationPreviewOutput + +# TODO update the JSON string below +json = "{}" +# create an instance of ConversionOperationPreviewOutput from a JSON string +conversion_operation_preview_output_instance = ConversionOperationPreviewOutput.from_json(json) +# print the JSON string representation of the object +print ConversionOperationPreviewOutput.to_json() + +# convert the object into a dict +conversion_operation_preview_output_dict = conversion_operation_preview_output_instance.to_dict() +# create an instance of ConversionOperationPreviewOutput from a dict +conversion_operation_preview_output_form_dict = conversion_operation_preview_output.from_dict(conversion_operation_preview_output_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/docs/ConversionOperationType.md b/docs/ConversionOperationType.md new file mode 100644 index 00000000..33b41fef --- /dev/null +++ b/docs/ConversionOperationType.md @@ -0,0 +1,11 @@ +# ConversionOperationType + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[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/ConversionValidationFailure.md b/docs/ConversionValidationFailure.md new file mode 100644 index 00000000..5a06b5d7 --- /dev/null +++ b/docs/ConversionValidationFailure.md @@ -0,0 +1,30 @@ +# ConversionValidationFailure + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**reason** | **str** | | +**data** | **Dict[str, object]** | | [optional] + +## Example + +```python +from fireblocks_client.models.conversion_validation_failure import ConversionValidationFailure + +# TODO update the JSON string below +json = "{}" +# create an instance of ConversionValidationFailure from a JSON string +conversion_validation_failure_instance = ConversionValidationFailure.from_json(json) +# print the JSON string representation of the object +print ConversionValidationFailure.to_json() + +# convert the object into a dict +conversion_validation_failure_dict = conversion_validation_failure_instance.to_dict() +# create an instance of ConversionValidationFailure from a dict +conversion_validation_failure_form_dict = conversion_validation_failure.from_dict(conversion_validation_failure_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/docs/ConvertAssetsRequest.md b/docs/ConvertAssetsRequest.md new file mode 100644 index 00000000..a1090648 --- /dev/null +++ b/docs/ConvertAssetsRequest.md @@ -0,0 +1,31 @@ +# ConvertAssetsRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**src_asset** | **str** | Name of the source asset (must be in a currency that is supported for conversions in the selected exchange type that corresponds to your exchange ID) | +**dest_asset** | **str** | Name of the destination asset (must be in a currency that is supported for conversions in the selected exchange type that corresponds to your exchange ID) | +**amount** | **float** | The amount to transfer (in the currency of the source asset) | + +## Example + +```python +from fireblocks_client.models.convert_assets_request import ConvertAssetsRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of ConvertAssetsRequest from a JSON string +convert_assets_request_instance = ConvertAssetsRequest.from_json(json) +# print the JSON string representation of the object +print ConvertAssetsRequest.to_json() + +# convert the object into a dict +convert_assets_request_dict = convert_assets_request_instance.to_dict() +# create an instance of ConvertAssetsRequest from a dict +convert_assets_request_form_dict = convert_assets_request.from_dict(convert_assets_request_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/docs/ConvertAssetsResponse.md b/docs/ConvertAssetsResponse.md new file mode 100644 index 00000000..c377796a --- /dev/null +++ b/docs/ConvertAssetsResponse.md @@ -0,0 +1,29 @@ +# ConvertAssetsResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Indicates whether the conversion was successful | + +## Example + +```python +from fireblocks_client.models.convert_assets_response import ConvertAssetsResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of ConvertAssetsResponse from a JSON string +convert_assets_response_instance = ConvertAssetsResponse.from_json(json) +# print the JSON string representation of the object +print ConvertAssetsResponse.to_json() + +# convert the object into a dict +convert_assets_response_dict = convert_assets_response_instance.to_dict() +# create an instance of ConvertAssetsResponse from a dict +convert_assets_response_form_dict = convert_assets_response.from_dict(convert_assets_response_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/docs/Cosigner.md b/docs/Cosigner.md new file mode 100644 index 00000000..18982f1f --- /dev/null +++ b/docs/Cosigner.md @@ -0,0 +1,31 @@ +# Cosigner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**archived** | **bool** | Whether the cosigner is archived | +**id** | **str** | The unique identifier of the cosigner | +**name** | **str** | The name of the cosigner | [optional] + +## Example + +```python +from fireblocks_client.models.cosigner import Cosigner + +# TODO update the JSON string below +json = "{}" +# create an instance of Cosigner from a JSON string +cosigner_instance = Cosigner.from_json(json) +# print the JSON string representation of the object +print Cosigner.to_json() + +# convert the object into a dict +cosigner_dict = cosigner_instance.to_dict() +# create an instance of Cosigner from a dict +cosigner_form_dict = cosigner.from_dict(cosigner_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/docs/CosignersBetaApi.md b/docs/CosignersBetaApi.md new file mode 100644 index 00000000..e6b2e586 --- /dev/null +++ b/docs/CosignersBetaApi.md @@ -0,0 +1,373 @@ +# fireblocks_client.CosignersBetaApi + +All URIs are relative to *https://api.fireblocks.io/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_api_key**](CosignersBetaApi.md#get_api_key) | **GET** /cosigners/{cosignerId}/api_keys/{apiKeyId} | Get API key +[**get_api_keys**](CosignersBetaApi.md#get_api_keys) | **GET** /cosigners/{cosignerId}/api_keys | Get all API keys +[**get_cosigner**](CosignersBetaApi.md#get_cosigner) | **GET** /cosigners/{cosignerId} | Get cosigner +[**get_cosigners**](CosignersBetaApi.md#get_cosigners) | **GET** /cosigners | Get all cosigners +[**rename_cosigner**](CosignersBetaApi.md#rename_cosigner) | **PATCH** /cosigners/{cosignerId} | Rename cosigner + + +# **get_api_key** +> ApiKey get_api_key(cosigner_id, api_key_id) + +Get API key + +Get an API key by ID **Note:** These endpoints are currently in beta and might be subject to changes. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.api_key import ApiKey +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.CosignersBetaApi(api_client) + cosigner_id = '44fcead0-7053-4831-a53a-df7fb90d440f' # str | The unique identifier of the cosigner + api_key_id = '44fcead0-7053-4831-a53a-df7fb90d440f' # str | The unique identifier of the API key + + try: + # Get API key + api_response = api_instance.get_api_key(cosigner_id, api_key_id) + print("The response of CosignersBetaApi->get_api_key:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling CosignersBetaApi->get_api_key: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cosigner_id** | **str**| The unique identifier of the cosigner | + **api_key_id** | **str**| The unique identifier of the API key | + +### Return type + +[**ApiKey**](ApiKey.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | An ApiKey object | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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_api_keys** +> ApiKeysPaginatedResponse get_api_keys(cosigner_id, order=order, page_cursor=page_cursor, page_size=page_size) + +Get all API keys + +Get all cosigner paired API keys (paginated) **Note:** These endpoints are currently in beta and might be subject to changes. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.api_keys_paginated_response import ApiKeysPaginatedResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.CosignersBetaApi(api_client) + cosigner_id = '44fcead0-7053-4831-a53a-df7fb90d440f' # str | The unique identifier of the cosigner + order = 'DESC' # str | ASC / DESC ordering (default DESC) (optional) (default to 'DESC') + page_cursor = 'page_cursor_example' # str | Cursor of the required page (optional) + page_size = 10 # float | Maximum number of items in the page (optional) (default to 10) + + try: + # Get all API keys + api_response = api_instance.get_api_keys(cosigner_id, order=order, page_cursor=page_cursor, page_size=page_size) + print("The response of CosignersBetaApi->get_api_keys:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling CosignersBetaApi->get_api_keys: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cosigner_id** | **str**| The unique identifier of the cosigner | + **order** | **str**| ASC / DESC ordering (default DESC) | [optional] [default to 'DESC'] + **page_cursor** | **str**| Cursor of the required page | [optional] + **page_size** | **float**| Maximum number of items in the page | [optional] [default to 10] + +### Return type + +[**ApiKeysPaginatedResponse**](ApiKeysPaginatedResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A paginated response containing ApiKey objects | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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_cosigner** +> Cosigner get_cosigner(cosigner_id) + +Get cosigner + +Get a cosigner by ID **Note:** These endpoints are currently in beta and might be subject to changes. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.cosigner import Cosigner +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.CosignersBetaApi(api_client) + cosigner_id = '44fcead0-7053-4831-a53a-df7fb90d440f' # str | The unique identifier of the cosigner + + try: + # Get cosigner + api_response = api_instance.get_cosigner(cosigner_id) + print("The response of CosignersBetaApi->get_cosigner:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling CosignersBetaApi->get_cosigner: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cosigner_id** | **str**| The unique identifier of the cosigner | + +### Return type + +[**Cosigner**](Cosigner.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A cosigner object | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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_cosigners** +> CosignersPaginatedResponse get_cosigners(order=order, page_cursor=page_cursor, page_size=page_size) + +Get all cosigners + +Get all workspace cosigners (paginated) **Note:** These endpoints are currently in beta and might be subject to changes. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.cosigners_paginated_response import CosignersPaginatedResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.CosignersBetaApi(api_client) + order = 'DESC' # str | ASC / DESC ordering (default DESC) (optional) (default to 'DESC') + page_cursor = 'page_cursor_example' # str | Cursor of the required page (optional) + page_size = 10 # float | Maximum number of items in the page (optional) (default to 10) + + try: + # Get all cosigners + api_response = api_instance.get_cosigners(order=order, page_cursor=page_cursor, page_size=page_size) + print("The response of CosignersBetaApi->get_cosigners:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling CosignersBetaApi->get_cosigners: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **order** | **str**| ASC / DESC ordering (default DESC) | [optional] [default to 'DESC'] + **page_cursor** | **str**| Cursor of the required page | [optional] + **page_size** | **float**| Maximum number of items in the page | [optional] [default to 10] + +### Return type + +[**CosignersPaginatedResponse**](CosignersPaginatedResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A paginated response containing Cosigner objects | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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) + +# **rename_cosigner** +> Cosigner rename_cosigner(cosigner_id, rename_cosigner) + +Rename cosigner + +Rename a cosigner by ID **Note:** These endpoints are currently in beta and might be subject to changes. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.cosigner import Cosigner +from fireblocks_client.models.rename_cosigner import RenameCosigner +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.CosignersBetaApi(api_client) + cosigner_id = '44fcead0-7053-4831-a53a-df7fb90d440f' # str | The unique identifier of the cosigner + rename_cosigner = fireblocks_client.RenameCosigner() # RenameCosigner | + + try: + # Rename cosigner + api_response = api_instance.rename_cosigner(cosigner_id, rename_cosigner) + print("The response of CosignersBetaApi->rename_cosigner:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling CosignersBetaApi->rename_cosigner: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cosigner_id** | **str**| The unique identifier of the cosigner | + **rename_cosigner** | [**RenameCosigner**](RenameCosigner.md)| | + +### Return type + +[**Cosigner**](Cosigner.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A cosigner object | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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) + diff --git a/docs/CosignersPaginatedResponse.md b/docs/CosignersPaginatedResponse.md new file mode 100644 index 00000000..2bcefac9 --- /dev/null +++ b/docs/CosignersPaginatedResponse.md @@ -0,0 +1,30 @@ +# CosignersPaginatedResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**List[Cosigner]**](Cosigner.md) | The data of the current page | +**next** | **str** | The ID of the next page | [optional] + +## Example + +```python +from fireblocks_client.models.cosigners_paginated_response import CosignersPaginatedResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of CosignersPaginatedResponse from a JSON string +cosigners_paginated_response_instance = CosignersPaginatedResponse.from_json(json) +# print the JSON string representation of the object +print CosignersPaginatedResponse.to_json() + +# convert the object into a dict +cosigners_paginated_response_dict = cosigners_paginated_response_instance.to_dict() +# create an instance of CosignersPaginatedResponse from a dict +cosigners_paginated_response_form_dict = cosigners_paginated_response.from_dict(cosigners_paginated_response_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/docs/CreateAPIUser.md b/docs/CreateAPIUser.md new file mode 100644 index 00000000..02bb36d0 --- /dev/null +++ b/docs/CreateAPIUser.md @@ -0,0 +1,33 @@ +# CreateAPIUser + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**role** | **str** | Users role | +**name** | **str** | Users name | +**csr_pem** | **str** | CSR file that is used to verify API requests. read more https://developers.fireblocks.com/docs/quickstart | +**co_signer_setup_type** | **str** | Different environments allow for different setup options, field is required for management/signer role | [optional] +**co_signer_setup_is_first_user** | **bool** | pass as true if this is the first user on the coSigner machine | [optional] + +## Example + +```python +from fireblocks_client.models.create_api_user import CreateAPIUser + +# TODO update the JSON string below +json = "{}" +# create an instance of CreateAPIUser from a JSON string +create_api_user_instance = CreateAPIUser.from_json(json) +# print the JSON string representation of the object +print CreateAPIUser.to_json() + +# convert the object into a dict +create_api_user_dict = create_api_user_instance.to_dict() +# create an instance of CreateAPIUser from a dict +create_api_user_form_dict = create_api_user.from_dict(create_api_user_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/docs/CreateAddressRequest.md b/docs/CreateAddressRequest.md new file mode 100644 index 00000000..f073f50a --- /dev/null +++ b/docs/CreateAddressRequest.md @@ -0,0 +1,30 @@ +# CreateAddressRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **str** | (Optional) Attach a description to the new address | [optional] +**customer_ref_id** | **str** | Optional - Sets a customer reference ID | [optional] + +## Example + +```python +from fireblocks_client.models.create_address_request import CreateAddressRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of CreateAddressRequest from a JSON string +create_address_request_instance = CreateAddressRequest.from_json(json) +# print the JSON string representation of the object +print CreateAddressRequest.to_json() + +# convert the object into a dict +create_address_request_dict = create_address_request_instance.to_dict() +# create an instance of CreateAddressRequest from a dict +create_address_request_form_dict = create_address_request.from_dict(create_address_request_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/docs/CreateAddressResponse.md b/docs/CreateAddressResponse.md new file mode 100644 index 00000000..133f24b9 --- /dev/null +++ b/docs/CreateAddressResponse.md @@ -0,0 +1,33 @@ +# CreateAddressResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**address** | **str** | | [optional] +**legacy_address** | **str** | | [optional] +**enterprise_address** | **str** | | [optional] +**tag** | **str** | | [optional] +**bip44_address_index** | **int** | | [optional] + +## Example + +```python +from fireblocks_client.models.create_address_response import CreateAddressResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of CreateAddressResponse from a JSON string +create_address_response_instance = CreateAddressResponse.from_json(json) +# print the JSON string representation of the object +print CreateAddressResponse.to_json() + +# convert the object into a dict +create_address_response_dict = create_address_response_instance.to_dict() +# create an instance of CreateAddressResponse from a dict +create_address_response_form_dict = create_address_response.from_dict(create_address_response_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/docs/CreateAssetsBulkRequest.md b/docs/CreateAssetsBulkRequest.md new file mode 100644 index 00000000..e65a545b --- /dev/null +++ b/docs/CreateAssetsBulkRequest.md @@ -0,0 +1,31 @@ +# CreateAssetsBulkRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**asset_id** | **str** | The ID of the new asset | [optional] +**vault_account_id_from** | **str** | The smallest vault account ID in the range | [optional] +**vault_account_id_to** | **str** | The largest vault account ID in the range | [optional] + +## Example + +```python +from fireblocks_client.models.create_assets_bulk_request import CreateAssetsBulkRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of CreateAssetsBulkRequest from a JSON string +create_assets_bulk_request_instance = CreateAssetsBulkRequest.from_json(json) +# print the JSON string representation of the object +print CreateAssetsBulkRequest.to_json() + +# convert the object into a dict +create_assets_bulk_request_dict = create_assets_bulk_request_instance.to_dict() +# create an instance of CreateAssetsBulkRequest from a dict +create_assets_bulk_request_form_dict = create_assets_bulk_request.from_dict(create_assets_bulk_request_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/docs/CreateAssetsRequest.md b/docs/CreateAssetsRequest.md new file mode 100644 index 00000000..2b1a96d8 --- /dev/null +++ b/docs/CreateAssetsRequest.md @@ -0,0 +1,29 @@ +# CreateAssetsRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**eos_account_name** | **str** | Optional - when creating an EOS wallet, the account name. If not provided, a random name will be generated | [optional] + +## Example + +```python +from fireblocks_client.models.create_assets_request import CreateAssetsRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of CreateAssetsRequest from a JSON string +create_assets_request_instance = CreateAssetsRequest.from_json(json) +# print the JSON string representation of the object +print CreateAssetsRequest.to_json() + +# convert the object into a dict +create_assets_request_dict = create_assets_request_instance.to_dict() +# create an instance of CreateAssetsRequest from a dict +create_assets_request_form_dict = create_assets_request.from_dict(create_assets_request_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/docs/CreateConfigOperationRequest.md b/docs/CreateConfigOperationRequest.md new file mode 100644 index 00000000..0e20420d --- /dev/null +++ b/docs/CreateConfigOperationRequest.md @@ -0,0 +1,30 @@ +# CreateConfigOperationRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | [**DisbursementOperationType**](DisbursementOperationType.md) | | +**params** | [**DisbursementOperationConfigParams**](DisbursementOperationConfigParams.md) | | + +## Example + +```python +from fireblocks_client.models.create_config_operation_request import CreateConfigOperationRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of CreateConfigOperationRequest from a JSON string +create_config_operation_request_instance = CreateConfigOperationRequest.from_json(json) +# print the JSON string representation of the object +print CreateConfigOperationRequest.to_json() + +# convert the object into a dict +create_config_operation_request_dict = create_config_operation_request_instance.to_dict() +# create an instance of CreateConfigOperationRequest from a dict +create_config_operation_request_form_dict = create_config_operation_request.from_dict(create_config_operation_request_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/docs/CreateConnectionRequest.md b/docs/CreateConnectionRequest.md new file mode 100644 index 00000000..4248c9dd --- /dev/null +++ b/docs/CreateConnectionRequest.md @@ -0,0 +1,34 @@ +# CreateConnectionRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**vault_account_id** | **float** | The ID of the vault to connect to the dApp. | +**fee_level** | **str** | The default fee level. Valid values are `MEDIUM` and `HIGH`. | +**uri** | **str** | The WalletConnect uri provided by the dapp. | +**chain_ids** | **List[str]** | The IDs of the blockchain networks used in the Web3 connection (Currently required in V1 connections only). | [optional] +**ncw_id** | **str** | The ID of the Non-Custodial Wallet to connect to the dApp. | +**ncw_account_id** | **float** | The NCW account ID to connect to the dApp. | + +## Example + +```python +from fireblocks_client.models.create_connection_request import CreateConnectionRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of CreateConnectionRequest from a JSON string +create_connection_request_instance = CreateConnectionRequest.from_json(json) +# print the JSON string representation of the object +print CreateConnectionRequest.to_json() + +# convert the object into a dict +create_connection_request_dict = create_connection_request_instance.to_dict() +# create an instance of CreateConnectionRequest from a dict +create_connection_request_form_dict = create_connection_request.from_dict(create_connection_request_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/docs/CreateConnectionResponse.md b/docs/CreateConnectionResponse.md new file mode 100644 index 00000000..c98e60c0 --- /dev/null +++ b/docs/CreateConnectionResponse.md @@ -0,0 +1,30 @@ +# CreateConnectionResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | The ID of the Web3 connection initiated. | +**session_metadata** | [**SessionMetadata**](SessionMetadata.md) | Metadata of the Web3 connection (provided by the DApp). | + +## Example + +```python +from fireblocks_client.models.create_connection_response import CreateConnectionResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of CreateConnectionResponse from a JSON string +create_connection_response_instance = CreateConnectionResponse.from_json(json) +# print the JSON string representation of the object +print CreateConnectionResponse.to_json() + +# convert the object into a dict +create_connection_response_dict = create_connection_response_instance.to_dict() +# create an instance of CreateConnectionResponse from a dict +create_connection_response_form_dict = create_connection_response.from_dict(create_connection_response_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/docs/CreateConsoleUser.md b/docs/CreateConsoleUser.md new file mode 100644 index 00000000..e9ff77fc --- /dev/null +++ b/docs/CreateConsoleUser.md @@ -0,0 +1,32 @@ +# CreateConsoleUser + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**first_name** | **str** | users firstName | +**last_name** | **str** | users lastName | +**role** | **str** | users role | +**email** | **str** | valid email address | + +## Example + +```python +from fireblocks_client.models.create_console_user import CreateConsoleUser + +# TODO update the JSON string below +json = "{}" +# create an instance of CreateConsoleUser from a JSON string +create_console_user_instance = CreateConsoleUser.from_json(json) +# print the JSON string representation of the object +print CreateConsoleUser.to_json() + +# convert the object into a dict +create_console_user_dict = create_console_user_instance.to_dict() +# create an instance of CreateConsoleUser from a dict +create_console_user_form_dict = create_console_user.from_dict(create_console_user_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/docs/CreateContractRequest.md b/docs/CreateContractRequest.md new file mode 100644 index 00000000..5ceb58ff --- /dev/null +++ b/docs/CreateContractRequest.md @@ -0,0 +1,29 @@ +# CreateContractRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | the contract's display name | [optional] + +## Example + +```python +from fireblocks_client.models.create_contract_request import CreateContractRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of CreateContractRequest from a JSON string +create_contract_request_instance = CreateContractRequest.from_json(json) +# print the JSON string representation of the object +print CreateContractRequest.to_json() + +# convert the object into a dict +create_contract_request_dict = create_contract_request_instance.to_dict() +# create an instance of CreateContractRequest from a dict +create_contract_request_form_dict = create_contract_request.from_dict(create_contract_request_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/docs/CreateConversionConfigOperationRequest.md b/docs/CreateConversionConfigOperationRequest.md new file mode 100644 index 00000000..4a2585d3 --- /dev/null +++ b/docs/CreateConversionConfigOperationRequest.md @@ -0,0 +1,30 @@ +# CreateConversionConfigOperationRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | [**ConversionOperationType**](ConversionOperationType.md) | | +**params** | [**ConversionOperationConfigParams**](ConversionOperationConfigParams.md) | | + +## Example + +```python +from fireblocks_client.models.create_conversion_config_operation_request import CreateConversionConfigOperationRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of CreateConversionConfigOperationRequest from a JSON string +create_conversion_config_operation_request_instance = CreateConversionConfigOperationRequest.from_json(json) +# print the JSON string representation of the object +print CreateConversionConfigOperationRequest.to_json() + +# convert the object into a dict +create_conversion_config_operation_request_dict = create_conversion_config_operation_request_instance.to_dict() +# create an instance of CreateConversionConfigOperationRequest from a dict +create_conversion_config_operation_request_form_dict = create_conversion_config_operation_request.from_dict(create_conversion_config_operation_request_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/docs/CreateDisbursementConfigOperationRequest.md b/docs/CreateDisbursementConfigOperationRequest.md new file mode 100644 index 00000000..60fe60a8 --- /dev/null +++ b/docs/CreateDisbursementConfigOperationRequest.md @@ -0,0 +1,30 @@ +# CreateDisbursementConfigOperationRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | [**DisbursementOperationType**](DisbursementOperationType.md) | | +**params** | [**DisbursementOperationConfigParams**](DisbursementOperationConfigParams.md) | | + +## Example + +```python +from fireblocks_client.models.create_disbursement_config_operation_request import CreateDisbursementConfigOperationRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of CreateDisbursementConfigOperationRequest from a JSON string +create_disbursement_config_operation_request_instance = CreateDisbursementConfigOperationRequest.from_json(json) +# print the JSON string representation of the object +print CreateDisbursementConfigOperationRequest.to_json() + +# convert the object into a dict +create_disbursement_config_operation_request_dict = create_disbursement_config_operation_request_instance.to_dict() +# create an instance of CreateDisbursementConfigOperationRequest from a dict +create_disbursement_config_operation_request_form_dict = create_disbursement_config_operation_request.from_dict(create_disbursement_config_operation_request_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/docs/CreateInternalTransferRequest.md b/docs/CreateInternalTransferRequest.md new file mode 100644 index 00000000..8e1c7fef --- /dev/null +++ b/docs/CreateInternalTransferRequest.md @@ -0,0 +1,32 @@ +# CreateInternalTransferRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**asset** | **str** | | [optional] +**amount** | **str** | | [optional] +**source_type** | [**TradingAccountType**](TradingAccountType.md) | | [optional] +**dest_type** | [**TradingAccountType**](TradingAccountType.md) | | [optional] + +## Example + +```python +from fireblocks_client.models.create_internal_transfer_request import CreateInternalTransferRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of CreateInternalTransferRequest from a JSON string +create_internal_transfer_request_instance = CreateInternalTransferRequest.from_json(json) +# print the JSON string representation of the object +print CreateInternalTransferRequest.to_json() + +# convert the object into a dict +create_internal_transfer_request_dict = create_internal_transfer_request_instance.to_dict() +# create an instance of CreateInternalTransferRequest from a dict +create_internal_transfer_request_form_dict = create_internal_transfer_request.from_dict(create_internal_transfer_request_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/docs/CreateInternalWalletAssetRequest.md b/docs/CreateInternalWalletAssetRequest.md new file mode 100644 index 00000000..b801f47d --- /dev/null +++ b/docs/CreateInternalWalletAssetRequest.md @@ -0,0 +1,30 @@ +# CreateInternalWalletAssetRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**address** | **str** | The wallet's address or, for EOS wallets, the account name | +**tag** | **str** | for XRP wallets, the destination tag; for EOS, the memo; for the fiat providers (BLINC by BCB Group), the Bank Transfer Description | [optional] + +## Example + +```python +from fireblocks_client.models.create_internal_wallet_asset_request import CreateInternalWalletAssetRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of CreateInternalWalletAssetRequest from a JSON string +create_internal_wallet_asset_request_instance = CreateInternalWalletAssetRequest.from_json(json) +# print the JSON string representation of the object +print CreateInternalWalletAssetRequest.to_json() + +# convert the object into a dict +create_internal_wallet_asset_request_dict = create_internal_wallet_asset_request_instance.to_dict() +# create an instance of CreateInternalWalletAssetRequest from a dict +create_internal_wallet_asset_request_form_dict = create_internal_wallet_asset_request.from_dict(create_internal_wallet_asset_request_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/docs/CreateMultipleAccountsRequest.md b/docs/CreateMultipleAccountsRequest.md new file mode 100644 index 00000000..a5f69f35 --- /dev/null +++ b/docs/CreateMultipleAccountsRequest.md @@ -0,0 +1,30 @@ +# CreateMultipleAccountsRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **int** | Count | [optional] +**asset_ids** | **List[str]** | Array of asset IDs | [optional] + +## Example + +```python +from fireblocks_client.models.create_multiple_accounts_request import CreateMultipleAccountsRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of CreateMultipleAccountsRequest from a JSON string +create_multiple_accounts_request_instance = CreateMultipleAccountsRequest.from_json(json) +# print the JSON string representation of the object +print CreateMultipleAccountsRequest.to_json() + +# convert the object into a dict +create_multiple_accounts_request_dict = create_multiple_accounts_request_instance.to_dict() +# create an instance of CreateMultipleAccountsRequest from a dict +create_multiple_accounts_request_form_dict = create_multiple_accounts_request.from_dict(create_multiple_accounts_request_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/docs/CreateNcwConnectionRequest.md b/docs/CreateNcwConnectionRequest.md new file mode 100644 index 00000000..1a2031e7 --- /dev/null +++ b/docs/CreateNcwConnectionRequest.md @@ -0,0 +1,33 @@ +# CreateNcwConnectionRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ncw_id** | **str** | The ID of the Non-Custodial Wallet to connect to the dApp. | +**ncw_account_id** | **float** | The NCW account ID to connect to the dApp. | +**fee_level** | **str** | The default fee level. Valid values are `MEDIUM` and `HIGH`. | +**uri** | **str** | The WalletConnect uri provided by the dapp. | +**chain_ids** | **List[str]** | The IDs of the blockchain networks used in the Web3 connection (Currently required in V1 connections only). | [optional] + +## Example + +```python +from fireblocks_client.models.create_ncw_connection_request import CreateNcwConnectionRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of CreateNcwConnectionRequest from a JSON string +create_ncw_connection_request_instance = CreateNcwConnectionRequest.from_json(json) +# print the JSON string representation of the object +print CreateNcwConnectionRequest.to_json() + +# convert the object into a dict +create_ncw_connection_request_dict = create_ncw_connection_request_instance.to_dict() +# create an instance of CreateNcwConnectionRequest from a dict +create_ncw_connection_request_form_dict = create_ncw_connection_request.from_dict(create_ncw_connection_request_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/docs/CreateNetworkIdRequest.md b/docs/CreateNetworkIdRequest.md new file mode 100644 index 00000000..e169444c --- /dev/null +++ b/docs/CreateNetworkIdRequest.md @@ -0,0 +1,30 @@ +# CreateNetworkIdRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | | +**routing_policy** | [**Dict[str, NetworkIdRoutingPolicyValue]**](NetworkIdRoutingPolicyValue.md) | | [optional] + +## Example + +```python +from fireblocks_client.models.create_network_id_request import CreateNetworkIdRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of CreateNetworkIdRequest from a JSON string +create_network_id_request_instance = CreateNetworkIdRequest.from_json(json) +# print the JSON string representation of the object +print CreateNetworkIdRequest.to_json() + +# convert the object into a dict +create_network_id_request_dict = create_network_id_request_instance.to_dict() +# create an instance of CreateNetworkIdRequest from a dict +create_network_id_request_form_dict = create_network_id_request.from_dict(create_network_id_request_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/docs/CreatePayoutRequest.md b/docs/CreatePayoutRequest.md new file mode 100644 index 00000000..811e9c83 --- /dev/null +++ b/docs/CreatePayoutRequest.md @@ -0,0 +1,30 @@ +# CreatePayoutRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**payment_account** | [**PaymentAccount**](PaymentAccount.md) | | +**instruction_set** | [**List[PayoutInstruction]**](PayoutInstruction.md) | | + +## Example + +```python +from fireblocks_client.models.create_payout_request import CreatePayoutRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of CreatePayoutRequest from a JSON string +create_payout_request_instance = CreatePayoutRequest.from_json(json) +# print the JSON string representation of the object +print CreatePayoutRequest.to_json() + +# convert the object into a dict +create_payout_request_dict = create_payout_request_instance.to_dict() +# create an instance of CreatePayoutRequest from a dict +create_payout_request_form_dict = create_payout_request.from_dict(create_payout_request_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/docs/CreateTokenRequestDto.md b/docs/CreateTokenRequestDto.md new file mode 100644 index 00000000..0707ab3a --- /dev/null +++ b/docs/CreateTokenRequestDto.md @@ -0,0 +1,33 @@ +# CreateTokenRequestDto + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**blockchain_id** | **str** | The id of the blockchain the request was initiated on | [optional] +**asset_id** | **str** | The base asset identifier of the blockchain you want to deploy to | [optional] +**vault_account_id** | **str** | The id of the vault account that initiated the request to issue the token | +**create_params** | [**CreateTokenRequestDtoCreateParams**](CreateTokenRequestDtoCreateParams.md) | | +**display_name** | **str** | | [optional] + +## Example + +```python +from fireblocks_client.models.create_token_request_dto import CreateTokenRequestDto + +# TODO update the JSON string below +json = "{}" +# create an instance of CreateTokenRequestDto from a JSON string +create_token_request_dto_instance = CreateTokenRequestDto.from_json(json) +# print the JSON string representation of the object +print CreateTokenRequestDto.to_json() + +# convert the object into a dict +create_token_request_dto_dict = create_token_request_dto_instance.to_dict() +# create an instance of CreateTokenRequestDto from a dict +create_token_request_dto_form_dict = create_token_request_dto.from_dict(create_token_request_dto_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/docs/CreateTokenRequestDtoCreateParams.md b/docs/CreateTokenRequestDtoCreateParams.md new file mode 100644 index 00000000..c72dfc2d --- /dev/null +++ b/docs/CreateTokenRequestDtoCreateParams.md @@ -0,0 +1,33 @@ +# CreateTokenRequestDtoCreateParams + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**contract_id** | **str** | The id of the contract template that will be used to create the token | +**constructor_params** | **List[List[ParameterWithValue]]** | The constructor parameters and values of the contract template | [optional] +**symbol** | **str** | The symbol of the token | +**name** | **str** | The name of the token | +**issuer_address** | **str** | The address of the issuer of this token. Will be part of the identifier of this token on chain. | + +## Example + +```python +from fireblocks_client.models.create_token_request_dto_create_params import CreateTokenRequestDtoCreateParams + +# TODO update the JSON string below +json = "{}" +# create an instance of CreateTokenRequestDtoCreateParams from a JSON string +create_token_request_dto_create_params_instance = CreateTokenRequestDtoCreateParams.from_json(json) +# print the JSON string representation of the object +print CreateTokenRequestDtoCreateParams.to_json() + +# convert the object into a dict +create_token_request_dto_create_params_dict = create_token_request_dto_create_params_instance.to_dict() +# create an instance of CreateTokenRequestDtoCreateParams from a dict +create_token_request_dto_create_params_form_dict = create_token_request_dto_create_params.from_dict(create_token_request_dto_create_params_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/docs/CreateTransactionResponse.md b/docs/CreateTransactionResponse.md new file mode 100644 index 00000000..d9e9d3de --- /dev/null +++ b/docs/CreateTransactionResponse.md @@ -0,0 +1,31 @@ +# CreateTransactionResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | The ID of the transaction. | [optional] +**status** | **str** | The primary status of the transaction. For details, see [Primary transaction statuses.] (https://developers.fireblocks.com/reference/primary-transaction-statuses) | [optional] +**system_messages** | [**SystemMessageInfo**](SystemMessageInfo.md) | | [optional] + +## Example + +```python +from fireblocks_client.models.create_transaction_response import CreateTransactionResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of CreateTransactionResponse from a JSON string +create_transaction_response_instance = CreateTransactionResponse.from_json(json) +# print the JSON string representation of the object +print CreateTransactionResponse.to_json() + +# convert the object into a dict +create_transaction_response_dict = create_transaction_response_instance.to_dict() +# create an instance of CreateTransactionResponse from a dict +create_transaction_response_form_dict = create_transaction_response.from_dict(create_transaction_response_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/docs/CreateTransferConfigOperationRequest.md b/docs/CreateTransferConfigOperationRequest.md new file mode 100644 index 00000000..f6feb812 --- /dev/null +++ b/docs/CreateTransferConfigOperationRequest.md @@ -0,0 +1,30 @@ +# CreateTransferConfigOperationRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | [**TransferOperationType**](TransferOperationType.md) | | +**params** | [**TransferOperationConfigParams**](TransferOperationConfigParams.md) | | + +## Example + +```python +from fireblocks_client.models.create_transfer_config_operation_request import CreateTransferConfigOperationRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of CreateTransferConfigOperationRequest from a JSON string +create_transfer_config_operation_request_instance = CreateTransferConfigOperationRequest.from_json(json) +# print the JSON string representation of the object +print CreateTransferConfigOperationRequest.to_json() + +# convert the object into a dict +create_transfer_config_operation_request_dict = create_transfer_config_operation_request_instance.to_dict() +# create an instance of CreateTransferConfigOperationRequest from a dict +create_transfer_config_operation_request_form_dict = create_transfer_config_operation_request.from_dict(create_transfer_config_operation_request_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/docs/CreateUserGroupResponse.md b/docs/CreateUserGroupResponse.md new file mode 100644 index 00000000..ae3b4fd9 --- /dev/null +++ b/docs/CreateUserGroupResponse.md @@ -0,0 +1,32 @@ +# CreateUserGroupResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**name** | **str** | | [optional] +**member_ids** | **List[str]** | | [optional] +**status** | **str** | | [optional] + +## Example + +```python +from fireblocks_client.models.create_user_group_response import CreateUserGroupResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of CreateUserGroupResponse from a JSON string +create_user_group_response_instance = CreateUserGroupResponse.from_json(json) +# print the JSON string representation of the object +print CreateUserGroupResponse.to_json() + +# convert the object into a dict +create_user_group_response_dict = create_user_group_response_instance.to_dict() +# create an instance of CreateUserGroupResponse from a dict +create_user_group_response_form_dict = create_user_group_response.from_dict(create_user_group_response_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/docs/CreateVaultAccountConnectionRequest.md b/docs/CreateVaultAccountConnectionRequest.md new file mode 100644 index 00000000..9658acfc --- /dev/null +++ b/docs/CreateVaultAccountConnectionRequest.md @@ -0,0 +1,32 @@ +# CreateVaultAccountConnectionRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**vault_account_id** | **float** | The ID of the vault to connect to the dApp. | +**fee_level** | **str** | The default fee level. Valid values are `MEDIUM` and `HIGH`. | +**uri** | **str** | The WalletConnect uri provided by the dapp. | +**chain_ids** | **List[str]** | The IDs of the blockchain networks used in the Web3 connection (Currently required in V1 connections only). | [optional] + +## Example + +```python +from fireblocks_client.models.create_vault_account_connection_request import CreateVaultAccountConnectionRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of CreateVaultAccountConnectionRequest from a JSON string +create_vault_account_connection_request_instance = CreateVaultAccountConnectionRequest.from_json(json) +# print the JSON string representation of the object +print CreateVaultAccountConnectionRequest.to_json() + +# convert the object into a dict +create_vault_account_connection_request_dict = create_vault_account_connection_request_instance.to_dict() +# create an instance of CreateVaultAccountConnectionRequest from a dict +create_vault_account_connection_request_form_dict = create_vault_account_connection_request.from_dict(create_vault_account_connection_request_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/docs/CreateVaultAccountRequest.md b/docs/CreateVaultAccountRequest.md new file mode 100644 index 00000000..d6725773 --- /dev/null +++ b/docs/CreateVaultAccountRequest.md @@ -0,0 +1,32 @@ +# CreateVaultAccountRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | Account Name | [optional] +**hidden_on_ui** | **bool** | Optional - if true, the created account and all related transactions will not be shown on Fireblocks console | [optional] +**customer_ref_id** | **str** | Optional - Sets a customer reference ID | [optional] +**auto_fuel** | **bool** | Optional - Sets the autoFuel property of the vault account | [optional] + +## Example + +```python +from fireblocks_client.models.create_vault_account_request import CreateVaultAccountRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of CreateVaultAccountRequest from a JSON string +create_vault_account_request_instance = CreateVaultAccountRequest.from_json(json) +# print the JSON string representation of the object +print CreateVaultAccountRequest.to_json() + +# convert the object into a dict +create_vault_account_request_dict = create_vault_account_request_instance.to_dict() +# create an instance of CreateVaultAccountRequest from a dict +create_vault_account_request_form_dict = create_vault_account_request.from_dict(create_vault_account_request_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/docs/CreateVaultAssetResponse.md b/docs/CreateVaultAssetResponse.md new file mode 100644 index 00000000..8fa6e520 --- /dev/null +++ b/docs/CreateVaultAssetResponse.md @@ -0,0 +1,36 @@ +# CreateVaultAssetResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**address** | **str** | | [optional] +**legacy_address** | **str** | | [optional] +**enterprise_address** | **str** | | [optional] +**tag** | **str** | | [optional] +**eos_account_name** | **str** | | [optional] +**status** | **str** | | [optional] +**activation_tx_id** | **str** | | [optional] + +## Example + +```python +from fireblocks_client.models.create_vault_asset_response import CreateVaultAssetResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of CreateVaultAssetResponse from a JSON string +create_vault_asset_response_instance = CreateVaultAssetResponse.from_json(json) +# print the JSON string representation of the object +print CreateVaultAssetResponse.to_json() + +# convert the object into a dict +create_vault_asset_response_dict = create_vault_asset_response_instance.to_dict() +# create an instance of CreateVaultAssetResponse from a dict +create_vault_asset_response_form_dict = create_vault_asset_response.from_dict(create_vault_asset_response_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/docs/CreateWalletRequest.md b/docs/CreateWalletRequest.md new file mode 100644 index 00000000..440f2c46 --- /dev/null +++ b/docs/CreateWalletRequest.md @@ -0,0 +1,30 @@ +# CreateWalletRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | the wallet's display name | [optional] +**customer_ref_id** | **str** | Optional - Sets a customer reference ID | [optional] + +## Example + +```python +from fireblocks_client.models.create_wallet_request import CreateWalletRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of CreateWalletRequest from a JSON string +create_wallet_request_instance = CreateWalletRequest.from_json(json) +# print the JSON string representation of the object +print CreateWalletRequest.to_json() + +# convert the object into a dict +create_wallet_request_dict = create_wallet_request_instance.to_dict() +# create an instance of CreateWalletRequest from a dict +create_wallet_request_form_dict = create_wallet_request.from_dict(create_wallet_request_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/docs/CreateWorkflowExecutionRequestParamsInner.md b/docs/CreateWorkflowExecutionRequestParamsInner.md new file mode 100644 index 00000000..d8636059 --- /dev/null +++ b/docs/CreateWorkflowExecutionRequestParamsInner.md @@ -0,0 +1,30 @@ +# CreateWorkflowExecutionRequestParamsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**config_operation_id** | **str** | | +**execution_params** | [**DisbursementOperationExecutionParamsExecutionParams**](DisbursementOperationExecutionParamsExecutionParams.md) | | [optional] + +## Example + +```python +from fireblocks_client.models.create_workflow_execution_request_params_inner import CreateWorkflowExecutionRequestParamsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of CreateWorkflowExecutionRequestParamsInner from a JSON string +create_workflow_execution_request_params_inner_instance = CreateWorkflowExecutionRequestParamsInner.from_json(json) +# print the JSON string representation of the object +print CreateWorkflowExecutionRequestParamsInner.to_json() + +# convert the object into a dict +create_workflow_execution_request_params_inner_dict = create_workflow_execution_request_params_inner_instance.to_dict() +# create an instance of CreateWorkflowExecutionRequestParamsInner from a dict +create_workflow_execution_request_params_inner_form_dict = create_workflow_execution_request_params_inner.from_dict(create_workflow_execution_request_params_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/docs/CustomRoutingDest.md b/docs/CustomRoutingDest.md new file mode 100644 index 00000000..81ed53d4 --- /dev/null +++ b/docs/CustomRoutingDest.md @@ -0,0 +1,31 @@ +# CustomRoutingDest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**scheme** | **str** | The network routing logic. | +**dst_type** | **str** | The account the funds are being sent to. | +**dst_id** | **str** | The ID of the account the funds are being sent to. | + +## Example + +```python +from fireblocks_client.models.custom_routing_dest import CustomRoutingDest + +# TODO update the JSON string below +json = "{}" +# create an instance of CustomRoutingDest from a JSON string +custom_routing_dest_instance = CustomRoutingDest.from_json(json) +# print the JSON string representation of the object +print CustomRoutingDest.to_json() + +# convert the object into a dict +custom_routing_dest_dict = custom_routing_dest_instance.to_dict() +# create an instance of CustomRoutingDest from a dict +custom_routing_dest_form_dict = custom_routing_dest.from_dict(custom_routing_dest_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/docs/DefaultNetworkRoutingDest.md b/docs/DefaultNetworkRoutingDest.md new file mode 100644 index 00000000..55e73fe4 --- /dev/null +++ b/docs/DefaultNetworkRoutingDest.md @@ -0,0 +1,29 @@ +# DefaultNetworkRoutingDest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**scheme** | **str** | The network routing logic. | + +## Example + +```python +from fireblocks_client.models.default_network_routing_dest import DefaultNetworkRoutingDest + +# TODO update the JSON string below +json = "{}" +# create an instance of DefaultNetworkRoutingDest from a JSON string +default_network_routing_dest_instance = DefaultNetworkRoutingDest.from_json(json) +# print the JSON string representation of the object +print DefaultNetworkRoutingDest.to_json() + +# convert the object into a dict +default_network_routing_dest_dict = default_network_routing_dest_instance.to_dict() +# create an instance of DefaultNetworkRoutingDest from a dict +default_network_routing_dest_form_dict = default_network_routing_dest.from_dict(default_network_routing_dest_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/docs/DelegationDto.md b/docs/DelegationDto.md new file mode 100644 index 00000000..3e7c98a3 --- /dev/null +++ b/docs/DelegationDto.md @@ -0,0 +1,44 @@ +# DelegationDto + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | The unique identifier of the staking position | +**vault_account_id** | **str** | The source vault account to stake from | +**validator_name** | **str** | The destination validator address name | +**provider_name** | **str** | The destination validator provider name | +**chain_descriptor** | **str** | The protocol identifier (e.g. \"ETH\"/ \"SOL\") to use | +**amount** | **str** | Amount of tokens to stake, measured in the staked asset unit. | +**rewards_amount** | **str** | The amount staked in the position, measured in the staked asset unit. | +**date_created** | **str** | When was the request made (ISO Date). | +**status** | **str** | The current status. | +**related_transactions** | [**List[RelatedTransactionDto]**](RelatedTransactionDto.md) | An array of transaction objects related to this position. Each object includes a 'txId' representing the transaction ID and a 'completed' boolean indicating if the transaction was completed. | +**validator_address** | **str** | The destination address of the staking transaction. | +**provider_id** | **str** | The unique identifier of the staking provider | +**available_actions** | **List[str]** | An array of available actions that can be performed. for example, actions like \"unstake\" or \"withdraw\". | +**in_progress** | **bool** | Indicates whether there is an ongoing action for this position (true if ongoing, false if not). | +**in_progress_tx_id** | **str** | The transaction ID of the ongoing request | [optional] +**blockchain_position_info** | [**SolanaBlockchainDataDto**](SolanaBlockchainDataDto.md) | Additional fields per blockchain - can be empty or missing if not initialized or no additional info exists. The type depends on the chainDescriptor value. For Solana (SOL), stake account address. For Ethereum (ETH), an empty object is returned as no specific data is available. | + +## Example + +```python +from fireblocks_client.models.delegation_dto import DelegationDto + +# TODO update the JSON string below +json = "{}" +# create an instance of DelegationDto from a JSON string +delegation_dto_instance = DelegationDto.from_json(json) +# print the JSON string representation of the object +print DelegationDto.to_json() + +# convert the object into a dict +delegation_dto_dict = delegation_dto_instance.to_dict() +# create an instance of DelegationDto from a dict +delegation_dto_form_dict = delegation_dto.from_dict(delegation_dto_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/docs/DelegationSummaryDto.md b/docs/DelegationSummaryDto.md new file mode 100644 index 00000000..97d300c5 --- /dev/null +++ b/docs/DelegationSummaryDto.md @@ -0,0 +1,32 @@ +# DelegationSummaryDto + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**active** | [**List[AmountAndChainDescriptor]**](AmountAndChainDescriptor.md) | An array of objects containing chain descriptors and associated amounts, representing active positions. | +**inactive** | [**List[AmountAndChainDescriptor]**](AmountAndChainDescriptor.md) | An array of objects containing chain descriptors and associated amounts, representing inactive positions. | +**rewards_amount** | [**List[AmountAndChainDescriptor]**](AmountAndChainDescriptor.md) | An array of objects containing chain descriptors and associated amounts, representing rewards positions. | +**total_staked** | [**List[AmountAndChainDescriptor]**](AmountAndChainDescriptor.md) | An array of objects with chain descriptors and total staked amounts, representing the combined staked totals of active and inactive positions. | + +## Example + +```python +from fireblocks_client.models.delegation_summary_dto import DelegationSummaryDto + +# TODO update the JSON string below +json = "{}" +# create an instance of DelegationSummaryDto from a JSON string +delegation_summary_dto_instance = DelegationSummaryDto.from_json(json) +# print the JSON string representation of the object +print DelegationSummaryDto.to_json() + +# convert the object into a dict +delegation_summary_dto_dict = delegation_summary_dto_instance.to_dict() +# create an instance of DelegationSummaryDto from a dict +delegation_summary_dto_form_dict = delegation_summary_dto.from_dict(delegation_summary_dto_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/docs/DeleteNetworkConnectionResponse.md b/docs/DeleteNetworkConnectionResponse.md new file mode 100644 index 00000000..7af0c518 --- /dev/null +++ b/docs/DeleteNetworkConnectionResponse.md @@ -0,0 +1,29 @@ +# DeleteNetworkConnectionResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | | + +## Example + +```python +from fireblocks_client.models.delete_network_connection_response import DeleteNetworkConnectionResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of DeleteNetworkConnectionResponse from a JSON string +delete_network_connection_response_instance = DeleteNetworkConnectionResponse.from_json(json) +# print the JSON string representation of the object +print DeleteNetworkConnectionResponse.to_json() + +# convert the object into a dict +delete_network_connection_response_dict = delete_network_connection_response_instance.to_dict() +# create an instance of DeleteNetworkConnectionResponse from a dict +delete_network_connection_response_form_dict = delete_network_connection_response.from_dict(delete_network_connection_response_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/docs/DeleteNetworkIdResponse.md b/docs/DeleteNetworkIdResponse.md new file mode 100644 index 00000000..6b149dc5 --- /dev/null +++ b/docs/DeleteNetworkIdResponse.md @@ -0,0 +1,29 @@ +# DeleteNetworkIdResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | | + +## Example + +```python +from fireblocks_client.models.delete_network_id_response import DeleteNetworkIdResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of DeleteNetworkIdResponse from a JSON string +delete_network_id_response_instance = DeleteNetworkIdResponse.from_json(json) +# print the JSON string representation of the object +print DeleteNetworkIdResponse.to_json() + +# convert the object into a dict +delete_network_id_response_dict = delete_network_id_response_instance.to_dict() +# create an instance of DeleteNetworkIdResponse from a dict +delete_network_id_response_form_dict = delete_network_id_response.from_dict(delete_network_id_response_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/docs/DeployedContractResponseDto.md b/docs/DeployedContractResponseDto.md new file mode 100644 index 00000000..56482864 --- /dev/null +++ b/docs/DeployedContractResponseDto.md @@ -0,0 +1,33 @@ +# DeployedContractResponseDto + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | The deployed contract data identifier | +**contract_address** | **str** | The contract's onchain address | +**contract_template_id** | **str** | The contract template identifier | +**vault_account_id** | **str** | The vault account id this contract was deploy from | [optional] +**blockchain_id** | **str** | | + +## Example + +```python +from fireblocks_client.models.deployed_contract_response_dto import DeployedContractResponseDto + +# TODO update the JSON string below +json = "{}" +# create an instance of DeployedContractResponseDto from a JSON string +deployed_contract_response_dto_instance = DeployedContractResponseDto.from_json(json) +# print the JSON string representation of the object +print DeployedContractResponseDto.to_json() + +# convert the object into a dict +deployed_contract_response_dto_dict = deployed_contract_response_dto_instance.to_dict() +# create an instance of DeployedContractResponseDto from a dict +deployed_contract_response_dto_form_dict = deployed_contract_response_dto.from_dict(deployed_contract_response_dto_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/docs/DeployedContractsApi.md b/docs/DeployedContractsApi.md new file mode 100644 index 00000000..b0b41144 --- /dev/null +++ b/docs/DeployedContractsApi.md @@ -0,0 +1,228 @@ +# fireblocks_client.DeployedContractsApi + +All URIs are relative to *https://api.fireblocks.io/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_deployed_contract_by_address**](DeployedContractsApi.md#get_deployed_contract_by_address) | **GET** /tokenization/contracts/{assetId}/{contractAddress} | Return deployed contract data +[**get_deployed_contract_by_id**](DeployedContractsApi.md#get_deployed_contract_by_id) | **GET** /tokenization/contracts/{id} | Return deployed contract data by id +[**get_deployed_contracts**](DeployedContractsApi.md#get_deployed_contracts) | **GET** /tokenization/contracts | List deployed contracts data + + +# **get_deployed_contract_by_address** +> DeployedContractResponseDto get_deployed_contract_by_address(contract_address, asset_id) + +Return deployed contract data + +Return deployed contract data by blockchain native asset id and contract address + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.deployed_contract_response_dto import DeployedContractResponseDto +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.DeployedContractsApi(api_client) + contract_address = '0xC2c4e1Db41F0bB97996D0eD0542D2170d146FB66' # str | The contract's onchain address + asset_id = 'asset_id_example' # str | + + try: + # Return deployed contract data + api_response = api_instance.get_deployed_contract_by_address(contract_address, asset_id) + print("The response of DeployedContractsApi->get_deployed_contract_by_address:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling DeployedContractsApi->get_deployed_contract_by_address: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **contract_address** | **str**| The contract's onchain address | + **asset_id** | **str**| | + +### Return type + +[**DeployedContractResponseDto**](DeployedContractResponseDto.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | | - | +**0** | Error Response | * X-Request-ID -
| + +[[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_deployed_contract_by_id** +> DeployedContractResponseDto get_deployed_contract_by_id(id) + +Return deployed contract data by id + +Return deployed contract data by id + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.deployed_contract_response_dto import DeployedContractResponseDto +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.DeployedContractsApi(api_client) + id = 'b70701f4-d7b1-4795-a8ee-b09cdb5b850d' # str | The deployed contract data identifier + + try: + # Return deployed contract data by id + api_response = api_instance.get_deployed_contract_by_id(id) + print("The response of DeployedContractsApi->get_deployed_contract_by_id:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling DeployedContractsApi->get_deployed_contract_by_id: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| The deployed contract data identifier | + +### Return type + +[**DeployedContractResponseDto**](DeployedContractResponseDto.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | | - | +**0** | Error Response | * X-Request-ID -
| + +[[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_deployed_contracts** +> DeployedContractsPaginatedResponse get_deployed_contracts(page_cursor=page_cursor, page_size=page_size, contract_address=contract_address, asset_id=asset_id, template_id=template_id) + +List deployed contracts data + +Return a filtered lean representation of the deployed contracts data on all blockchains (paginated) + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.deployed_contracts_paginated_response import DeployedContractsPaginatedResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.DeployedContractsApi(api_client) + page_cursor = 'MjAyMy0xMi0xMyAyMDozNjowOC4zMDI=:MTEwMA==' # str | Page cursor to get the next page (optional) + page_size = 10 # float | Number of items per page, requesting more then max will return max items (optional) + contract_address = '0xC2c4e1Db41F0bB97996D0eD0542D2170d146FB66' # str | The contract's onchain address (optional) + asset_id = 'asset_id_example' # str | (optional) + template_id = 'template_id_example' # str | (optional) + + try: + # List deployed contracts data + api_response = api_instance.get_deployed_contracts(page_cursor=page_cursor, page_size=page_size, contract_address=contract_address, asset_id=asset_id, template_id=template_id) + print("The response of DeployedContractsApi->get_deployed_contracts:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling DeployedContractsApi->get_deployed_contracts: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **page_cursor** | **str**| Page cursor to get the next page | [optional] + **page_size** | **float**| Number of items per page, requesting more then max will return max items | [optional] + **contract_address** | **str**| The contract's onchain address | [optional] + **asset_id** | **str**| | [optional] + **template_id** | **str**| | [optional] + +### Return type + +[**DeployedContractsPaginatedResponse**](DeployedContractsPaginatedResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Deployed contracts fetched successfully | - | +**0** | Error Response | * X-Request-ID -
| + +[[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) + diff --git a/docs/DeployedContractsPaginatedResponse.md b/docs/DeployedContractsPaginatedResponse.md new file mode 100644 index 00000000..b71d353b --- /dev/null +++ b/docs/DeployedContractsPaginatedResponse.md @@ -0,0 +1,30 @@ +# DeployedContractsPaginatedResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**List[LeanDeployedContractResponseDto]**](LeanDeployedContractResponseDto.md) | The data of the current page | +**next** | **str** | The ID of the next page | [optional] + +## Example + +```python +from fireblocks_client.models.deployed_contracts_paginated_response import DeployedContractsPaginatedResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of DeployedContractsPaginatedResponse from a JSON string +deployed_contracts_paginated_response_instance = DeployedContractsPaginatedResponse.from_json(json) +# print the JSON string representation of the object +print DeployedContractsPaginatedResponse.to_json() + +# convert the object into a dict +deployed_contracts_paginated_response_dict = deployed_contracts_paginated_response_instance.to_dict() +# create an instance of DeployedContractsPaginatedResponse from a dict +deployed_contracts_paginated_response_form_dict = deployed_contracts_paginated_response.from_dict(deployed_contracts_paginated_response_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/docs/DepositFundsFromLinkedDDAResponse.md b/docs/DepositFundsFromLinkedDDAResponse.md new file mode 100644 index 00000000..fb7621fd --- /dev/null +++ b/docs/DepositFundsFromLinkedDDAResponse.md @@ -0,0 +1,29 @@ +# DepositFundsFromLinkedDDAResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Indicates whether the funds were successfully deposited from the linked DDA | + +## Example + +```python +from fireblocks_client.models.deposit_funds_from_linked_dda_response import DepositFundsFromLinkedDDAResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of DepositFundsFromLinkedDDAResponse from a JSON string +deposit_funds_from_linked_dda_response_instance = DepositFundsFromLinkedDDAResponse.from_json(json) +# print the JSON string representation of the object +print DepositFundsFromLinkedDDAResponse.to_json() + +# convert the object into a dict +deposit_funds_from_linked_dda_response_dict = deposit_funds_from_linked_dda_response_instance.to_dict() +# create an instance of DepositFundsFromLinkedDDAResponse from a dict +deposit_funds_from_linked_dda_response_form_dict = deposit_funds_from_linked_dda_response.from_dict(deposit_funds_from_linked_dda_response_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/docs/Destination.md b/docs/Destination.md new file mode 100644 index 00000000..6eb6e27e --- /dev/null +++ b/docs/Destination.md @@ -0,0 +1,32 @@ +# Destination + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_id** | **str** | | +**account_type** | [**AccountType**](AccountType.md) | | +**one_time_address** | **str** | | +**tag** | **str** | | [optional] + +## Example + +```python +from fireblocks_client.models.destination import Destination + +# TODO update the JSON string below +json = "{}" +# create an instance of Destination from a JSON string +destination_instance = Destination.from_json(json) +# print the JSON string representation of the object +print Destination.to_json() + +# convert the object into a dict +destination_dict = destination_instance.to_dict() +# create an instance of Destination from a dict +destination_form_dict = destination.from_dict(destination_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/docs/DestinationTransferPeerPath.md b/docs/DestinationTransferPeerPath.md new file mode 100644 index 00000000..0f0abc0f --- /dev/null +++ b/docs/DestinationTransferPeerPath.md @@ -0,0 +1,35 @@ +# DestinationTransferPeerPath + +The destination of the transaction. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | [**TransferPeerPathType**](TransferPeerPathType.md) | | +**sub_type** | [**TransferPeerPathSubType**](TransferPeerPathSubType.md) | | [optional] +**id** | **str** | | [optional] +**name** | **str** | | [optional] +**wallet_id** | **str** | | [optional] +**one_time_address** | [**OneTimeAddress**](OneTimeAddress.md) | | [optional] + +## Example + +```python +from fireblocks_client.models.destination_transfer_peer_path import DestinationTransferPeerPath + +# TODO update the JSON string below +json = "{}" +# create an instance of DestinationTransferPeerPath from a JSON string +destination_transfer_peer_path_instance = DestinationTransferPeerPath.from_json(json) +# print the JSON string representation of the object +print DestinationTransferPeerPath.to_json() + +# convert the object into a dict +destination_transfer_peer_path_dict = destination_transfer_peer_path_instance.to_dict() +# create an instance of DestinationTransferPeerPath from a dict +destination_transfer_peer_path_form_dict = destination_transfer_peer_path.from_dict(destination_transfer_peer_path_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/docs/DestinationTransferPeerPathResponse.md b/docs/DestinationTransferPeerPathResponse.md new file mode 100644 index 00000000..9a048d16 --- /dev/null +++ b/docs/DestinationTransferPeerPathResponse.md @@ -0,0 +1,34 @@ +# DestinationTransferPeerPathResponse + +Destination of the transaction. **Note:** In case the transaction is sent to multiple destinations, the `destinations` parameter is be used instead of this. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | [**TransferPeerPathType**](TransferPeerPathType.md) | | +**sub_type** | **str** | In case the type is set to `EXCHANGE_ACCOUNT` or `FIAT_ACCOUNT`, the specific exchange vendor name or fiat vendor name.In case the type is set to `INTERNAL_WALLET` or `EXTERNAL_WALLET`, the subType is set to `Internal` or `External`. | [optional] +**id** | **str** | The ID of the peer. You can retrieve the ID of each venue object using the endpoints for [listing vault accounts](https://developers.fireblocks.com/reference/get_vault-accounts-paged), [listing exchange account](https://developers.fireblocks.com/reference/get_exchange-accounts), [listing fiat accounts](https://developers.fireblocks.com/reference/get_fiat-accounts), [listing internal wallets](https://developers.fireblocks.com/reference/get_internal-wallets), [listing external wallets](https://developers.fireblocks.com/reference/get_external-wallets), [listing network connections](https://developers.fireblocks.com/reference/get_network-connections). For the other types, this parameter is not needed. | [optional] +**name** | **str** | The name of the peer. | [optional] +**wallet_id** | **str** | | [optional] + +## Example + +```python +from fireblocks_client.models.destination_transfer_peer_path_response import DestinationTransferPeerPathResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of DestinationTransferPeerPathResponse from a JSON string +destination_transfer_peer_path_response_instance = DestinationTransferPeerPathResponse.from_json(json) +# print the JSON string representation of the object +print DestinationTransferPeerPathResponse.to_json() + +# convert the object into a dict +destination_transfer_peer_path_response_dict = destination_transfer_peer_path_response_instance.to_dict() +# create an instance of DestinationTransferPeerPathResponse from a dict +destination_transfer_peer_path_response_form_dict = destination_transfer_peer_path_response.from_dict(destination_transfer_peer_path_response_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/docs/DisbursementAmountInstruction.md b/docs/DisbursementAmountInstruction.md new file mode 100644 index 00000000..1e0f16b1 --- /dev/null +++ b/docs/DisbursementAmountInstruction.md @@ -0,0 +1,31 @@ +# DisbursementAmountInstruction + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**payee_account** | [**Destination**](Destination.md) | | +**asset_id** | **str** | | +**amount** | **str** | | + +## Example + +```python +from fireblocks_client.models.disbursement_amount_instruction import DisbursementAmountInstruction + +# TODO update the JSON string below +json = "{}" +# create an instance of DisbursementAmountInstruction from a JSON string +disbursement_amount_instruction_instance = DisbursementAmountInstruction.from_json(json) +# print the JSON string representation of the object +print DisbursementAmountInstruction.to_json() + +# convert the object into a dict +disbursement_amount_instruction_dict = disbursement_amount_instruction_instance.to_dict() +# create an instance of DisbursementAmountInstruction from a dict +disbursement_amount_instruction_form_dict = disbursement_amount_instruction.from_dict(disbursement_amount_instruction_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/docs/DisbursementConfigOperation.md b/docs/DisbursementConfigOperation.md new file mode 100644 index 00000000..b1f1adb7 --- /dev/null +++ b/docs/DisbursementConfigOperation.md @@ -0,0 +1,33 @@ +# DisbursementConfigOperation + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**operation_id** | **str** | | +**type** | [**DisbursementOperationType**](DisbursementOperationType.md) | | +**params** | [**DisbursementOperationConfigParams**](DisbursementOperationConfigParams.md) | | +**status** | [**ConfigOperationStatus**](ConfigOperationStatus.md) | | +**validation_failure** | [**DisbursementValidationFailure**](DisbursementValidationFailure.md) | | [optional] + +## Example + +```python +from fireblocks_client.models.disbursement_config_operation import DisbursementConfigOperation + +# TODO update the JSON string below +json = "{}" +# create an instance of DisbursementConfigOperation from a JSON string +disbursement_config_operation_instance = DisbursementConfigOperation.from_json(json) +# print the JSON string representation of the object +print DisbursementConfigOperation.to_json() + +# convert the object into a dict +disbursement_config_operation_dict = disbursement_config_operation_instance.to_dict() +# create an instance of DisbursementConfigOperation from a dict +disbursement_config_operation_form_dict = disbursement_config_operation.from_dict(disbursement_config_operation_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/docs/DisbursementInstruction.md b/docs/DisbursementInstruction.md new file mode 100644 index 00000000..5a356395 --- /dev/null +++ b/docs/DisbursementInstruction.md @@ -0,0 +1,32 @@ +# DisbursementInstruction + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**payee_account** | [**Destination**](Destination.md) | | +**asset_id** | **str** | | +**amount** | **str** | | +**percentage** | **str** | | + +## Example + +```python +from fireblocks_client.models.disbursement_instruction import DisbursementInstruction + +# TODO update the JSON string below +json = "{}" +# create an instance of DisbursementInstruction from a JSON string +disbursement_instruction_instance = DisbursementInstruction.from_json(json) +# print the JSON string representation of the object +print DisbursementInstruction.to_json() + +# convert the object into a dict +disbursement_instruction_dict = disbursement_instruction_instance.to_dict() +# create an instance of DisbursementInstruction from a dict +disbursement_instruction_form_dict = disbursement_instruction.from_dict(disbursement_instruction_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/docs/DisbursementInstructionOutput.md b/docs/DisbursementInstructionOutput.md new file mode 100644 index 00000000..e8d83dee --- /dev/null +++ b/docs/DisbursementInstructionOutput.md @@ -0,0 +1,31 @@ +# DisbursementInstructionOutput + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**amount** | [**AssetAmount**](AssetAmount.md) | | +**fee** | [**AssetAmount**](AssetAmount.md) | | +**payee_account** | [**Destination**](Destination.md) | | + +## Example + +```python +from fireblocks_client.models.disbursement_instruction_output import DisbursementInstructionOutput + +# TODO update the JSON string below +json = "{}" +# create an instance of DisbursementInstructionOutput from a JSON string +disbursement_instruction_output_instance = DisbursementInstructionOutput.from_json(json) +# print the JSON string representation of the object +print DisbursementInstructionOutput.to_json() + +# convert the object into a dict +disbursement_instruction_output_dict = disbursement_instruction_output_instance.to_dict() +# create an instance of DisbursementInstructionOutput from a dict +disbursement_instruction_output_form_dict = disbursement_instruction_output.from_dict(disbursement_instruction_output_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/docs/DisbursementOperationConfigParams.md b/docs/DisbursementOperationConfigParams.md new file mode 100644 index 00000000..7727ca18 --- /dev/null +++ b/docs/DisbursementOperationConfigParams.md @@ -0,0 +1,30 @@ +# DisbursementOperationConfigParams + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**payment_account** | [**Account**](Account.md) | | [optional] +**instruction_set** | [**List[DisbursementInstruction]**](DisbursementInstruction.md) | | + +## Example + +```python +from fireblocks_client.models.disbursement_operation_config_params import DisbursementOperationConfigParams + +# TODO update the JSON string below +json = "{}" +# create an instance of DisbursementOperationConfigParams from a JSON string +disbursement_operation_config_params_instance = DisbursementOperationConfigParams.from_json(json) +# print the JSON string representation of the object +print DisbursementOperationConfigParams.to_json() + +# convert the object into a dict +disbursement_operation_config_params_dict = disbursement_operation_config_params_instance.to_dict() +# create an instance of DisbursementOperationConfigParams from a dict +disbursement_operation_config_params_form_dict = disbursement_operation_config_params.from_dict(disbursement_operation_config_params_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/docs/DisbursementOperationExecution.md b/docs/DisbursementOperationExecution.md new file mode 100644 index 00000000..b4643b44 --- /dev/null +++ b/docs/DisbursementOperationExecution.md @@ -0,0 +1,34 @@ +# DisbursementOperationExecution + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**input** | [**DisbursementOperationInput**](DisbursementOperationInput.md) | | +**output** | [**DisbursementOperationExecutionOutput**](DisbursementOperationExecutionOutput.md) | | [optional] +**payout_id** | **str** | | [optional] +**started_at** | **float** | | +**finished_at** | **float** | | [optional] +**failure** | [**OperationExecutionFailure**](OperationExecutionFailure.md) | | [optional] + +## Example + +```python +from fireblocks_client.models.disbursement_operation_execution import DisbursementOperationExecution + +# TODO update the JSON string below +json = "{}" +# create an instance of DisbursementOperationExecution from a JSON string +disbursement_operation_execution_instance = DisbursementOperationExecution.from_json(json) +# print the JSON string representation of the object +print DisbursementOperationExecution.to_json() + +# convert the object into a dict +disbursement_operation_execution_dict = disbursement_operation_execution_instance.to_dict() +# create an instance of DisbursementOperationExecution from a dict +disbursement_operation_execution_form_dict = disbursement_operation_execution.from_dict(disbursement_operation_execution_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/docs/DisbursementOperationExecutionOutput.md b/docs/DisbursementOperationExecutionOutput.md new file mode 100644 index 00000000..eba84f89 --- /dev/null +++ b/docs/DisbursementOperationExecutionOutput.md @@ -0,0 +1,29 @@ +# DisbursementOperationExecutionOutput + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**instruction_set** | [**List[DisbursementInstructionOutput]**](DisbursementInstructionOutput.md) | | + +## Example + +```python +from fireblocks_client.models.disbursement_operation_execution_output import DisbursementOperationExecutionOutput + +# TODO update the JSON string below +json = "{}" +# create an instance of DisbursementOperationExecutionOutput from a JSON string +disbursement_operation_execution_output_instance = DisbursementOperationExecutionOutput.from_json(json) +# print the JSON string representation of the object +print DisbursementOperationExecutionOutput.to_json() + +# convert the object into a dict +disbursement_operation_execution_output_dict = disbursement_operation_execution_output_instance.to_dict() +# create an instance of DisbursementOperationExecutionOutput from a dict +disbursement_operation_execution_output_form_dict = disbursement_operation_execution_output.from_dict(disbursement_operation_execution_output_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/docs/DisbursementOperationExecutionParams.md b/docs/DisbursementOperationExecutionParams.md new file mode 100644 index 00000000..de22ce42 --- /dev/null +++ b/docs/DisbursementOperationExecutionParams.md @@ -0,0 +1,30 @@ +# DisbursementOperationExecutionParams + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**config_operation_id** | **str** | | +**execution_params** | [**DisbursementOperationExecutionParamsExecutionParams**](DisbursementOperationExecutionParamsExecutionParams.md) | | [optional] + +## Example + +```python +from fireblocks_client.models.disbursement_operation_execution_params import DisbursementOperationExecutionParams + +# TODO update the JSON string below +json = "{}" +# create an instance of DisbursementOperationExecutionParams from a JSON string +disbursement_operation_execution_params_instance = DisbursementOperationExecutionParams.from_json(json) +# print the JSON string representation of the object +print DisbursementOperationExecutionParams.to_json() + +# convert the object into a dict +disbursement_operation_execution_params_dict = disbursement_operation_execution_params_instance.to_dict() +# create an instance of DisbursementOperationExecutionParams from a dict +disbursement_operation_execution_params_form_dict = disbursement_operation_execution_params.from_dict(disbursement_operation_execution_params_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/docs/DisbursementOperationExecutionParamsExecutionParams.md b/docs/DisbursementOperationExecutionParamsExecutionParams.md new file mode 100644 index 00000000..4675933f --- /dev/null +++ b/docs/DisbursementOperationExecutionParamsExecutionParams.md @@ -0,0 +1,31 @@ +# DisbursementOperationExecutionParamsExecutionParams + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**amount** | **str** | | [optional] +**payment_account** | [**Account**](Account.md) | | [optional] +**instruction_set** | [**List[DisbursementInstruction]**](DisbursementInstruction.md) | | [optional] + +## Example + +```python +from fireblocks_client.models.disbursement_operation_execution_params_execution_params import DisbursementOperationExecutionParamsExecutionParams + +# TODO update the JSON string below +json = "{}" +# create an instance of DisbursementOperationExecutionParamsExecutionParams from a JSON string +disbursement_operation_execution_params_execution_params_instance = DisbursementOperationExecutionParamsExecutionParams.from_json(json) +# print the JSON string representation of the object +print DisbursementOperationExecutionParamsExecutionParams.to_json() + +# convert the object into a dict +disbursement_operation_execution_params_execution_params_dict = disbursement_operation_execution_params_execution_params_instance.to_dict() +# create an instance of DisbursementOperationExecutionParamsExecutionParams from a dict +disbursement_operation_execution_params_execution_params_form_dict = disbursement_operation_execution_params_execution_params.from_dict(disbursement_operation_execution_params_execution_params_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/docs/DisbursementOperationInput.md b/docs/DisbursementOperationInput.md new file mode 100644 index 00000000..b3c603f8 --- /dev/null +++ b/docs/DisbursementOperationInput.md @@ -0,0 +1,31 @@ +# DisbursementOperationInput + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**amount** | **str** | | [optional] +**payment_account** | [**Account**](Account.md) | | +**instruction_set** | [**List[DisbursementInstruction]**](DisbursementInstruction.md) | | + +## Example + +```python +from fireblocks_client.models.disbursement_operation_input import DisbursementOperationInput + +# TODO update the JSON string below +json = "{}" +# create an instance of DisbursementOperationInput from a JSON string +disbursement_operation_input_instance = DisbursementOperationInput.from_json(json) +# print the JSON string representation of the object +print DisbursementOperationInput.to_json() + +# convert the object into a dict +disbursement_operation_input_dict = disbursement_operation_input_instance.to_dict() +# create an instance of DisbursementOperationInput from a dict +disbursement_operation_input_form_dict = disbursement_operation_input.from_dict(disbursement_operation_input_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/docs/DisbursementOperationPreview.md b/docs/DisbursementOperationPreview.md new file mode 100644 index 00000000..77ecccca --- /dev/null +++ b/docs/DisbursementOperationPreview.md @@ -0,0 +1,31 @@ +# DisbursementOperationPreview + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**input** | [**DisbursementOperationInput**](DisbursementOperationInput.md) | | +**output** | [**DisbursementOperationPreviewOutput**](DisbursementOperationPreviewOutput.md) | | [optional] +**failure** | [**OperationExecutionFailure**](OperationExecutionFailure.md) | | [optional] + +## Example + +```python +from fireblocks_client.models.disbursement_operation_preview import DisbursementOperationPreview + +# TODO update the JSON string below +json = "{}" +# create an instance of DisbursementOperationPreview from a JSON string +disbursement_operation_preview_instance = DisbursementOperationPreview.from_json(json) +# print the JSON string representation of the object +print DisbursementOperationPreview.to_json() + +# convert the object into a dict +disbursement_operation_preview_dict = disbursement_operation_preview_instance.to_dict() +# create an instance of DisbursementOperationPreview from a dict +disbursement_operation_preview_form_dict = disbursement_operation_preview.from_dict(disbursement_operation_preview_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/docs/DisbursementOperationPreviewOutput.md b/docs/DisbursementOperationPreviewOutput.md new file mode 100644 index 00000000..b1d8fe4e --- /dev/null +++ b/docs/DisbursementOperationPreviewOutput.md @@ -0,0 +1,29 @@ +# DisbursementOperationPreviewOutput + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**instruction_set** | [**List[DisbursementOperationPreviewOutputInstructionSetInner]**](DisbursementOperationPreviewOutputInstructionSetInner.md) | | + +## Example + +```python +from fireblocks_client.models.disbursement_operation_preview_output import DisbursementOperationPreviewOutput + +# TODO update the JSON string below +json = "{}" +# create an instance of DisbursementOperationPreviewOutput from a JSON string +disbursement_operation_preview_output_instance = DisbursementOperationPreviewOutput.from_json(json) +# print the JSON string representation of the object +print DisbursementOperationPreviewOutput.to_json() + +# convert the object into a dict +disbursement_operation_preview_output_dict = disbursement_operation_preview_output_instance.to_dict() +# create an instance of DisbursementOperationPreviewOutput from a dict +disbursement_operation_preview_output_form_dict = disbursement_operation_preview_output.from_dict(disbursement_operation_preview_output_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/docs/DisbursementOperationPreviewOutputInstructionSetInner.md b/docs/DisbursementOperationPreviewOutputInstructionSetInner.md new file mode 100644 index 00000000..52ad0d82 --- /dev/null +++ b/docs/DisbursementOperationPreviewOutputInstructionSetInner.md @@ -0,0 +1,32 @@ +# DisbursementOperationPreviewOutputInstructionSetInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**amount** | [**AssetAmount**](AssetAmount.md) | | +**fee** | [**AssetAmount**](AssetAmount.md) | | +**payee_account** | [**Destination**](Destination.md) | | +**time_seconds** | **float** | | + +## Example + +```python +from fireblocks_client.models.disbursement_operation_preview_output_instruction_set_inner import DisbursementOperationPreviewOutputInstructionSetInner + +# TODO update the JSON string below +json = "{}" +# create an instance of DisbursementOperationPreviewOutputInstructionSetInner from a JSON string +disbursement_operation_preview_output_instruction_set_inner_instance = DisbursementOperationPreviewOutputInstructionSetInner.from_json(json) +# print the JSON string representation of the object +print DisbursementOperationPreviewOutputInstructionSetInner.to_json() + +# convert the object into a dict +disbursement_operation_preview_output_instruction_set_inner_dict = disbursement_operation_preview_output_instruction_set_inner_instance.to_dict() +# create an instance of DisbursementOperationPreviewOutputInstructionSetInner from a dict +disbursement_operation_preview_output_instruction_set_inner_form_dict = disbursement_operation_preview_output_instruction_set_inner.from_dict(disbursement_operation_preview_output_instruction_set_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/docs/DisbursementOperationType.md b/docs/DisbursementOperationType.md new file mode 100644 index 00000000..79dff5f2 --- /dev/null +++ b/docs/DisbursementOperationType.md @@ -0,0 +1,11 @@ +# DisbursementOperationType + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[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/DisbursementPercentageInstruction.md b/docs/DisbursementPercentageInstruction.md new file mode 100644 index 00000000..0dd06079 --- /dev/null +++ b/docs/DisbursementPercentageInstruction.md @@ -0,0 +1,31 @@ +# DisbursementPercentageInstruction + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**payee_account** | [**Destination**](Destination.md) | | +**asset_id** | **str** | | +**percentage** | **str** | | + +## Example + +```python +from fireblocks_client.models.disbursement_percentage_instruction import DisbursementPercentageInstruction + +# TODO update the JSON string below +json = "{}" +# create an instance of DisbursementPercentageInstruction from a JSON string +disbursement_percentage_instruction_instance = DisbursementPercentageInstruction.from_json(json) +# print the JSON string representation of the object +print DisbursementPercentageInstruction.to_json() + +# convert the object into a dict +disbursement_percentage_instruction_dict = disbursement_percentage_instruction_instance.to_dict() +# create an instance of DisbursementPercentageInstruction from a dict +disbursement_percentage_instruction_form_dict = disbursement_percentage_instruction.from_dict(disbursement_percentage_instruction_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/docs/DisbursementValidationFailure.md b/docs/DisbursementValidationFailure.md new file mode 100644 index 00000000..fbc93512 --- /dev/null +++ b/docs/DisbursementValidationFailure.md @@ -0,0 +1,30 @@ +# DisbursementValidationFailure + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**reason** | **str** | | +**data** | **Dict[str, object]** | | [optional] + +## Example + +```python +from fireblocks_client.models.disbursement_validation_failure import DisbursementValidationFailure + +# TODO update the JSON string below +json = "{}" +# create an instance of DisbursementValidationFailure from a JSON string +disbursement_validation_failure_instance = DisbursementValidationFailure.from_json(json) +# print the JSON string representation of the object +print DisbursementValidationFailure.to_json() + +# convert the object into a dict +disbursement_validation_failure_dict = disbursement_validation_failure_instance.to_dict() +# create an instance of DisbursementValidationFailure from a dict +disbursement_validation_failure_form_dict = disbursement_validation_failure.from_dict(disbursement_validation_failure_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/docs/DispatchPayoutResponse.md b/docs/DispatchPayoutResponse.md new file mode 100644 index 00000000..f2ebe4c3 --- /dev/null +++ b/docs/DispatchPayoutResponse.md @@ -0,0 +1,29 @@ +# DispatchPayoutResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**payout_id** | **str** | | + +## Example + +```python +from fireblocks_client.models.dispatch_payout_response import DispatchPayoutResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of DispatchPayoutResponse from a JSON string +dispatch_payout_response_instance = DispatchPayoutResponse.from_json(json) +# print the JSON string representation of the object +print DispatchPayoutResponse.to_json() + +# convert the object into a dict +dispatch_payout_response_dict = dispatch_payout_response_instance.to_dict() +# create an instance of DispatchPayoutResponse from a dict +dispatch_payout_response_form_dict = dispatch_payout_response.from_dict(dispatch_payout_response_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/docs/DraftResponse.md b/docs/DraftResponse.md new file mode 100644 index 00000000..29542622 --- /dev/null +++ b/docs/DraftResponse.md @@ -0,0 +1,33 @@ +# DraftResponse + +Response object for draft operations + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **str** | Operation status | +**rules** | [**List[PolicyRule]**](PolicyRule.md) | Draft rules | +**draft_id** | **str** | Draft unique id | +**metadata** | [**PolicyMetadata**](PolicyMetadata.md) | | + +## Example + +```python +from fireblocks_client.models.draft_response import DraftResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of DraftResponse from a JSON string +draft_response_instance = DraftResponse.from_json(json) +# print the JSON string representation of the object +print DraftResponse.to_json() + +# convert the object into a dict +draft_response_dict = draft_response_instance.to_dict() +# create an instance of DraftResponse from a dict +draft_response_form_dict = draft_response.from_dict(draft_response_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/docs/DraftReviewAndValidationResponse.md b/docs/DraftReviewAndValidationResponse.md new file mode 100644 index 00000000..f9ef5f1f --- /dev/null +++ b/docs/DraftReviewAndValidationResponse.md @@ -0,0 +1,31 @@ +# DraftReviewAndValidationResponse + +Draft validation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**draft_response** | [**DraftResponse**](DraftResponse.md) | | +**validation** | [**PolicyValidation**](PolicyValidation.md) | | + +## Example + +```python +from fireblocks_client.models.draft_review_and_validation_response import DraftReviewAndValidationResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of DraftReviewAndValidationResponse from a JSON string +draft_review_and_validation_response_instance = DraftReviewAndValidationResponse.from_json(json) +# print the JSON string representation of the object +print DraftReviewAndValidationResponse.to_json() + +# convert the object into a dict +draft_review_and_validation_response_dict = draft_review_and_validation_response_instance.to_dict() +# create an instance of DraftReviewAndValidationResponse from a dict +draft_review_and_validation_response_form_dict = draft_review_and_validation_response.from_dict(draft_review_and_validation_response_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/docs/DropTransactionRequest.md b/docs/DropTransactionRequest.md new file mode 100644 index 00000000..a1d1a086 --- /dev/null +++ b/docs/DropTransactionRequest.md @@ -0,0 +1,31 @@ +# DropTransactionRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**tx_id** | **str** | | [optional] +**fee_level** | **str** | | [optional] +**gas_price** | **str** | | [optional] + +## Example + +```python +from fireblocks_client.models.drop_transaction_request import DropTransactionRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of DropTransactionRequest from a JSON string +drop_transaction_request_instance = DropTransactionRequest.from_json(json) +# print the JSON string representation of the object +print DropTransactionRequest.to_json() + +# convert the object into a dict +drop_transaction_request_dict = drop_transaction_request_instance.to_dict() +# create an instance of DropTransactionRequest from a dict +drop_transaction_request_form_dict = drop_transaction_request.from_dict(drop_transaction_request_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/docs/DropTransactionResponse.md b/docs/DropTransactionResponse.md new file mode 100644 index 00000000..c819b1ad --- /dev/null +++ b/docs/DropTransactionResponse.md @@ -0,0 +1,31 @@ +# DropTransactionResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**tx_status** | **str** | | [optional] +**tx_id** | **str** | | [optional] +**replaced_tx_hash** | **str** | | [optional] + +## Example + +```python +from fireblocks_client.models.drop_transaction_response import DropTransactionResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of DropTransactionResponse from a JSON string +drop_transaction_response_instance = DropTransactionResponse.from_json(json) +# print the JSON string representation of the object +print DropTransactionResponse.to_json() + +# convert the object into a dict +drop_transaction_response_dict = drop_transaction_response_instance.to_dict() +# create an instance of DropTransactionResponse from a dict +drop_transaction_response_form_dict = drop_transaction_response.from_dict(drop_transaction_response_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/docs/EVMTokenCreateParamsDto.md b/docs/EVMTokenCreateParamsDto.md new file mode 100644 index 00000000..7ad93b79 --- /dev/null +++ b/docs/EVMTokenCreateParamsDto.md @@ -0,0 +1,30 @@ +# EVMTokenCreateParamsDto + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**contract_id** | **str** | The id of the contract template that will be used to create the token | +**constructor_params** | **List[List[ParameterWithValue]]** | The constructor parameters and values of the contract template | [optional] + +## Example + +```python +from fireblocks_client.models.evm_token_create_params_dto import EVMTokenCreateParamsDto + +# TODO update the JSON string below +json = "{}" +# create an instance of EVMTokenCreateParamsDto from a JSON string +evm_token_create_params_dto_instance = EVMTokenCreateParamsDto.from_json(json) +# print the JSON string representation of the object +print EVMTokenCreateParamsDto.to_json() + +# convert the object into a dict +evm_token_create_params_dto_dict = evm_token_create_params_dto_instance.to_dict() +# create an instance of EVMTokenCreateParamsDto from a dict +evm_token_create_params_dto_form_dict = evm_token_create_params_dto.from_dict(evm_token_create_params_dto_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/docs/EditGasStationConfigurationResponse.md b/docs/EditGasStationConfigurationResponse.md new file mode 100644 index 00000000..a10ee384 --- /dev/null +++ b/docs/EditGasStationConfigurationResponse.md @@ -0,0 +1,29 @@ +# EditGasStationConfigurationResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Indicates whether editing the gas station configuration was successful | + +## Example + +```python +from fireblocks_client.models.edit_gas_station_configuration_response import EditGasStationConfigurationResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of EditGasStationConfigurationResponse from a JSON string +edit_gas_station_configuration_response_instance = EditGasStationConfigurationResponse.from_json(json) +# print the JSON string representation of the object +print EditGasStationConfigurationResponse.to_json() + +# convert the object into a dict +edit_gas_station_configuration_response_dict = edit_gas_station_configuration_response_instance.to_dict() +# create an instance of EditGasStationConfigurationResponse from a dict +edit_gas_station_configuration_response_form_dict = edit_gas_station_configuration_response.from_dict(edit_gas_station_configuration_response_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/docs/ErrorResponse.md b/docs/ErrorResponse.md new file mode 100644 index 00000000..24f98e4d --- /dev/null +++ b/docs/ErrorResponse.md @@ -0,0 +1,29 @@ +# ErrorResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | [**ErrorResponseError**](ErrorResponseError.md) | | + +## Example + +```python +from fireblocks_client.models.error_response import ErrorResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of ErrorResponse from a JSON string +error_response_instance = ErrorResponse.from_json(json) +# print the JSON string representation of the object +print ErrorResponse.to_json() + +# convert the object into a dict +error_response_dict = error_response_instance.to_dict() +# create an instance of ErrorResponse from a dict +error_response_form_dict = error_response.from_dict(error_response_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/docs/ErrorResponseError.md b/docs/ErrorResponseError.md new file mode 100644 index 00000000..fb4f50b6 --- /dev/null +++ b/docs/ErrorResponseError.md @@ -0,0 +1,30 @@ +# ErrorResponseError + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | | +**message** | **str** | | + +## Example + +```python +from fireblocks_client.models.error_response_error import ErrorResponseError + +# TODO update the JSON string below +json = "{}" +# create an instance of ErrorResponseError from a JSON string +error_response_error_instance = ErrorResponseError.from_json(json) +# print the JSON string representation of the object +print ErrorResponseError.to_json() + +# convert the object into a dict +error_response_error_dict = error_response_error_instance.to_dict() +# create an instance of ErrorResponseError from a dict +error_response_error_form_dict = error_response_error.from_dict(error_response_error_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/docs/ErrorSchema.md b/docs/ErrorSchema.md new file mode 100644 index 00000000..e19ea52e --- /dev/null +++ b/docs/ErrorSchema.md @@ -0,0 +1,30 @@ +# ErrorSchema + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message** | **str** | | [optional] +**code** | **float** | | [optional] + +## Example + +```python +from fireblocks_client.models.error_schema import ErrorSchema + +# TODO update the JSON string below +json = "{}" +# create an instance of ErrorSchema from a JSON string +error_schema_instance = ErrorSchema.from_json(json) +# print the JSON string representation of the object +print ErrorSchema.to_json() + +# convert the object into a dict +error_schema_dict = error_schema_instance.to_dict() +# create an instance of ErrorSchema from a dict +error_schema_form_dict = error_schema.from_dict(error_schema_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/docs/EstimatedNetworkFeeResponse.md b/docs/EstimatedNetworkFeeResponse.md new file mode 100644 index 00000000..8aaabc93 --- /dev/null +++ b/docs/EstimatedNetworkFeeResponse.md @@ -0,0 +1,31 @@ +# EstimatedNetworkFeeResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**low** | [**NetworkFee**](NetworkFee.md) | | +**medium** | [**NetworkFee**](NetworkFee.md) | | +**high** | [**NetworkFee**](NetworkFee.md) | | + +## Example + +```python +from fireblocks_client.models.estimated_network_fee_response import EstimatedNetworkFeeResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of EstimatedNetworkFeeResponse from a JSON string +estimated_network_fee_response_instance = EstimatedNetworkFeeResponse.from_json(json) +# print the JSON string representation of the object +print EstimatedNetworkFeeResponse.to_json() + +# convert the object into a dict +estimated_network_fee_response_dict = estimated_network_fee_response_instance.to_dict() +# create an instance of EstimatedNetworkFeeResponse from a dict +estimated_network_fee_response_form_dict = estimated_network_fee_response.from_dict(estimated_network_fee_response_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/docs/EstimatedTransactionFeeResponse.md b/docs/EstimatedTransactionFeeResponse.md new file mode 100644 index 00000000..1cdb5577 --- /dev/null +++ b/docs/EstimatedTransactionFeeResponse.md @@ -0,0 +1,31 @@ +# EstimatedTransactionFeeResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**low** | [**TransactionFee**](TransactionFee.md) | | +**medium** | [**TransactionFee**](TransactionFee.md) | | +**high** | [**TransactionFee**](TransactionFee.md) | | + +## Example + +```python +from fireblocks_client.models.estimated_transaction_fee_response import EstimatedTransactionFeeResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of EstimatedTransactionFeeResponse from a JSON string +estimated_transaction_fee_response_instance = EstimatedTransactionFeeResponse.from_json(json) +# print the JSON string representation of the object +print EstimatedTransactionFeeResponse.to_json() + +# convert the object into a dict +estimated_transaction_fee_response_dict = estimated_transaction_fee_response_instance.to_dict() +# create an instance of EstimatedTransactionFeeResponse from a dict +estimated_transaction_fee_response_form_dict = estimated_transaction_fee_response.from_dict(estimated_transaction_fee_response_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/docs/ExchangeAccount.md b/docs/ExchangeAccount.md new file mode 100644 index 00000000..1eed5e2b --- /dev/null +++ b/docs/ExchangeAccount.md @@ -0,0 +1,37 @@ +# ExchangeAccount + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**type** | [**ExchangeType**](ExchangeType.md) | | [optional] +**name** | **str** | Display name of the exchange account | [optional] +**status** | **str** | | [optional] +**assets** | [**List[ExchangeAsset]**](ExchangeAsset.md) | | [optional] +**success** | **bool** | Did succeed in retrieve balance data | [optional] +**trading_accounts** | [**List[ExchangeTradingAccount]**](ExchangeTradingAccount.md) | | [optional] +**is_subaccount** | **bool** | True if the account is a subaccount in an exchange | [optional] +**main_account_id** | **str** | if the account is a sub-account, the ID of the main account | [optional] + +## Example + +```python +from fireblocks_client.models.exchange_account import ExchangeAccount + +# TODO update the JSON string below +json = "{}" +# create an instance of ExchangeAccount from a JSON string +exchange_account_instance = ExchangeAccount.from_json(json) +# print the JSON string representation of the object +print ExchangeAccount.to_json() + +# convert the object into a dict +exchange_account_dict = exchange_account_instance.to_dict() +# create an instance of ExchangeAccount from a dict +exchange_account_form_dict = exchange_account.from_dict(exchange_account_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/docs/ExchangeAccountsApi.md b/docs/ExchangeAccountsApi.md new file mode 100644 index 00000000..3858d372 --- /dev/null +++ b/docs/ExchangeAccountsApi.md @@ -0,0 +1,374 @@ +# fireblocks_client.ExchangeAccountsApi + +All URIs are relative to *https://api.fireblocks.io/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**convert_assets**](ExchangeAccountsApi.md#convert_assets) | **POST** /exchange_accounts/{exchangeAccountId}/convert | Convert exchange account funds from the source asset to the destination asset. +[**get_exchange_account**](ExchangeAccountsApi.md#get_exchange_account) | **GET** /exchange_accounts/{exchangeAccountId} | Find a specific exchange account +[**get_exchange_account_asset**](ExchangeAccountsApi.md#get_exchange_account_asset) | **GET** /exchange_accounts/{exchangeAccountId}/{assetId} | Find an asset for an exchange account +[**get_paged_exchange_accounts**](ExchangeAccountsApi.md#get_paged_exchange_accounts) | **GET** /exchange_accounts/paged | Pagination list exchange accounts +[**internal_transfer**](ExchangeAccountsApi.md#internal_transfer) | **POST** /exchange_accounts/{exchangeAccountId}/internal_transfer | Internal transfer for exchange accounts + + +# **convert_assets** +> ConvertAssetsResponse convert_assets(exchange_account_id, idempotency_key=idempotency_key, convert_assets_request=convert_assets_request) + +Convert exchange account funds from the source asset to the destination asset. + +Convert exchange account funds from the source asset to the destination asset. Coinbase (USD to USDC, USDC to USD) and Bitso (MXN to USD) are supported conversions. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.convert_assets_request import ConvertAssetsRequest +from fireblocks_client.models.convert_assets_response import ConvertAssetsResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.ExchangeAccountsApi(api_client) + exchange_account_id = 'exchange_account_id_example' # str | The ID of the exchange account. Please make sure the exchange supports conversions. To find the ID of your exchange account, use GET/exchange_accounts. + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + convert_assets_request = fireblocks_client.ConvertAssetsRequest() # ConvertAssetsRequest | (optional) + + try: + # Convert exchange account funds from the source asset to the destination asset. + api_response = api_instance.convert_assets(exchange_account_id, idempotency_key=idempotency_key, convert_assets_request=convert_assets_request) + print("The response of ExchangeAccountsApi->convert_assets:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ExchangeAccountsApi->convert_assets: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **exchange_account_id** | **str**| The ID of the exchange account. Please make sure the exchange supports conversions. To find the ID of your exchange account, use GET/exchange_accounts. | + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + **convert_assets_request** | [**ConvertAssetsRequest**](ConvertAssetsRequest.md)| | [optional] + +### Return type + +[**ConvertAssetsResponse**](ConvertAssetsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Conversion successful | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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_exchange_account** +> ExchangeAccount get_exchange_account(exchange_account_id) + +Find a specific exchange account + +Returns an exchange account by ID. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.exchange_account import ExchangeAccount +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.ExchangeAccountsApi(api_client) + exchange_account_id = 'exchange_account_id_example' # str | The ID of the exchange account to return + + try: + # Find a specific exchange account + api_response = api_instance.get_exchange_account(exchange_account_id) + print("The response of ExchangeAccountsApi->get_exchange_account:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ExchangeAccountsApi->get_exchange_account: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **exchange_account_id** | **str**| The ID of the exchange account to return | + +### Return type + +[**ExchangeAccount**](ExchangeAccount.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | An ExchangeAccount object | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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_exchange_account_asset** +> ExchangeAsset get_exchange_account_asset(exchange_account_id, asset_id) + +Find an asset for an exchange account + +Returns an asset for an exchange account. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.exchange_asset import ExchangeAsset +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.ExchangeAccountsApi(api_client) + exchange_account_id = 'exchange_account_id_example' # str | The ID of the exchange account to return + asset_id = 'asset_id_example' # str | The ID of the asset to return + + try: + # Find an asset for an exchange account + api_response = api_instance.get_exchange_account_asset(exchange_account_id, asset_id) + print("The response of ExchangeAccountsApi->get_exchange_account_asset:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ExchangeAccountsApi->get_exchange_account_asset: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **exchange_account_id** | **str**| The ID of the exchange account to return | + **asset_id** | **str**| The ID of the asset to return | + +### Return type + +[**ExchangeAsset**](ExchangeAsset.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | An ExchangeAccountAsset object | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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_paged_exchange_accounts** +> List[ExchangeAccountsPaged] get_paged_exchange_accounts(limit, before=before, after=after) + +Pagination list exchange accounts + +Returns a page include exchange accounts. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.exchange_accounts_paged import ExchangeAccountsPaged +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.ExchangeAccountsApi(api_client) + limit = 3 # float | number of exchanges per page (default to 3) + before = 'before_example' # str | (optional) + after = 'after_example' # str | (optional) + + try: + # Pagination list exchange accounts + api_response = api_instance.get_paged_exchange_accounts(limit, before=before, after=after) + print("The response of ExchangeAccountsApi->get_paged_exchange_accounts:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ExchangeAccountsApi->get_paged_exchange_accounts: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **limit** | **float**| number of exchanges per page | [default to 3] + **before** | **str**| | [optional] + **after** | **str**| | [optional] + +### Return type + +[**List[ExchangeAccountsPaged]**](ExchangeAccountsPaged.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | An ExchangeAccount object | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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) + +# **internal_transfer** +> InternalTransferResponse internal_transfer(exchange_account_id, idempotency_key=idempotency_key, create_internal_transfer_request=create_internal_transfer_request) + +Internal transfer for exchange accounts + +Transfers funds between trading accounts under the same exchange account. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.create_internal_transfer_request import CreateInternalTransferRequest +from fireblocks_client.models.internal_transfer_response import InternalTransferResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.ExchangeAccountsApi(api_client) + exchange_account_id = 'exchange_account_id_example' # str | The ID of the exchange account to return + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + create_internal_transfer_request = fireblocks_client.CreateInternalTransferRequest() # CreateInternalTransferRequest | (optional) + + try: + # Internal transfer for exchange accounts + api_response = api_instance.internal_transfer(exchange_account_id, idempotency_key=idempotency_key, create_internal_transfer_request=create_internal_transfer_request) + print("The response of ExchangeAccountsApi->internal_transfer:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ExchangeAccountsApi->internal_transfer: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **exchange_account_id** | **str**| The ID of the exchange account to return | + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + **create_internal_transfer_request** | [**CreateInternalTransferRequest**](CreateInternalTransferRequest.md)| | [optional] + +### Return type + +[**InternalTransferResponse**](InternalTransferResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | Transfer succeeded | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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) + diff --git a/docs/ExchangeAccountsPaged.md b/docs/ExchangeAccountsPaged.md new file mode 100644 index 00000000..72f65ec0 --- /dev/null +++ b/docs/ExchangeAccountsPaged.md @@ -0,0 +1,32 @@ +# ExchangeAccountsPaged + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**exchange_account** | [**List[ExchangeAccount]**](ExchangeAccount.md) | | [optional] +**paging** | [**ExchangeAccountsPagedPaging**](ExchangeAccountsPagedPaging.md) | | [optional] +**prev_url** | **str** | | [optional] +**next_url** | **str** | | [optional] + +## Example + +```python +from fireblocks_client.models.exchange_accounts_paged import ExchangeAccountsPaged + +# TODO update the JSON string below +json = "{}" +# create an instance of ExchangeAccountsPaged from a JSON string +exchange_accounts_paged_instance = ExchangeAccountsPaged.from_json(json) +# print the JSON string representation of the object +print ExchangeAccountsPaged.to_json() + +# convert the object into a dict +exchange_accounts_paged_dict = exchange_accounts_paged_instance.to_dict() +# create an instance of ExchangeAccountsPaged from a dict +exchange_accounts_paged_form_dict = exchange_accounts_paged.from_dict(exchange_accounts_paged_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/docs/ExchangeAccountsPagedPaging.md b/docs/ExchangeAccountsPagedPaging.md new file mode 100644 index 00000000..57097a3d --- /dev/null +++ b/docs/ExchangeAccountsPagedPaging.md @@ -0,0 +1,30 @@ +# ExchangeAccountsPagedPaging + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**after** | **str** | Query value to the after page | [optional] +**before** | **str** | Query value to the before page | [optional] + +## Example + +```python +from fireblocks_client.models.exchange_accounts_paged_paging import ExchangeAccountsPagedPaging + +# TODO update the JSON string below +json = "{}" +# create an instance of ExchangeAccountsPagedPaging from a JSON string +exchange_accounts_paged_paging_instance = ExchangeAccountsPagedPaging.from_json(json) +# print the JSON string representation of the object +print ExchangeAccountsPagedPaging.to_json() + +# convert the object into a dict +exchange_accounts_paged_paging_dict = exchange_accounts_paged_paging_instance.to_dict() +# create an instance of ExchangeAccountsPagedPaging from a dict +exchange_accounts_paged_paging_form_dict = exchange_accounts_paged_paging.from_dict(exchange_accounts_paged_paging_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/docs/ExchangeAsset.md b/docs/ExchangeAsset.md new file mode 100644 index 00000000..57d68849 --- /dev/null +++ b/docs/ExchangeAsset.md @@ -0,0 +1,33 @@ +# ExchangeAsset + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**balance** | **str** | | [optional] +**locked_amount** | **str** | | [optional] +**total** | **str** | | [optional] +**available** | **str** | | [optional] + +## Example + +```python +from fireblocks_client.models.exchange_asset import ExchangeAsset + +# TODO update the JSON string below +json = "{}" +# create an instance of ExchangeAsset from a JSON string +exchange_asset_instance = ExchangeAsset.from_json(json) +# print the JSON string representation of the object +print ExchangeAsset.to_json() + +# convert the object into a dict +exchange_asset_dict = exchange_asset_instance.to_dict() +# create an instance of ExchangeAsset from a dict +exchange_asset_form_dict = exchange_asset.from_dict(exchange_asset_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/docs/ExchangeSettlementTransactionsResponse.md b/docs/ExchangeSettlementTransactionsResponse.md new file mode 100644 index 00000000..5f56c6be --- /dev/null +++ b/docs/ExchangeSettlementTransactionsResponse.md @@ -0,0 +1,30 @@ +# ExchangeSettlementTransactionsResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**to_exchange** | [**List[ToExchangeTransaction]**](ToExchangeTransaction.md) | | [optional] +**to_collateral** | [**List[ToCollateralTransaction]**](ToCollateralTransaction.md) | | [optional] + +## Example + +```python +from fireblocks_client.models.exchange_settlement_transactions_response import ExchangeSettlementTransactionsResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of ExchangeSettlementTransactionsResponse from a JSON string +exchange_settlement_transactions_response_instance = ExchangeSettlementTransactionsResponse.from_json(json) +# print the JSON string representation of the object +print ExchangeSettlementTransactionsResponse.to_json() + +# convert the object into a dict +exchange_settlement_transactions_response_dict = exchange_settlement_transactions_response_instance.to_dict() +# create an instance of ExchangeSettlementTransactionsResponse from a dict +exchange_settlement_transactions_response_form_dict = exchange_settlement_transactions_response.from_dict(exchange_settlement_transactions_response_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/docs/ExchangeTradingAccount.md b/docs/ExchangeTradingAccount.md new file mode 100644 index 00000000..3b988aec --- /dev/null +++ b/docs/ExchangeTradingAccount.md @@ -0,0 +1,31 @@ +# ExchangeTradingAccount + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | | [optional] +**name** | **str** | | [optional] +**assets** | [**List[ExchangeAsset]**](ExchangeAsset.md) | | [optional] + +## Example + +```python +from fireblocks_client.models.exchange_trading_account import ExchangeTradingAccount + +# TODO update the JSON string below +json = "{}" +# create an instance of ExchangeTradingAccount from a JSON string +exchange_trading_account_instance = ExchangeTradingAccount.from_json(json) +# print the JSON string representation of the object +print ExchangeTradingAccount.to_json() + +# convert the object into a dict +exchange_trading_account_dict = exchange_trading_account_instance.to_dict() +# create an instance of ExchangeTradingAccount from a dict +exchange_trading_account_form_dict = exchange_trading_account.from_dict(exchange_trading_account_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/docs/ExchangeType.md b/docs/ExchangeType.md new file mode 100644 index 00000000..ba5c4dd3 --- /dev/null +++ b/docs/ExchangeType.md @@ -0,0 +1,11 @@ +# ExchangeType + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[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/ExecuteActionRequest.md b/docs/ExecuteActionRequest.md new file mode 100644 index 00000000..9d948242 --- /dev/null +++ b/docs/ExecuteActionRequest.md @@ -0,0 +1,35 @@ +# ExecuteActionRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**vault_account_id** | **str** | The source vault account to stake from | +**provider_id** | **str** | The ID of the provider | +**stake_amount** | **str** | Amount of tokens to stake | +**tx_note** | **str** | The note to associate with the transactions. | [optional] +**fee** | **str** | Represents the fee for a transaction, which can be specified as a percentage value. Only one of fee/feeLevel is required. | [optional] +**fee_level** | **str** | Represents the fee level for a transaction, which can be set as slow, medium, or fast. Only one of fee/feeLevel is required. | [optional] +**id** | **str** | id of position to withdraw | + +## Example + +```python +from fireblocks_client.models.execute_action_request import ExecuteActionRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of ExecuteActionRequest from a JSON string +execute_action_request_instance = ExecuteActionRequest.from_json(json) +# print the JSON string representation of the object +print ExecuteActionRequest.to_json() + +# convert the object into a dict +execute_action_request_dict = execute_action_request_instance.to_dict() +# create an instance of ExecuteActionRequest from a dict +execute_action_request_form_dict = execute_action_request.from_dict(execute_action_request_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/docs/ExecuteActionResponse.md b/docs/ExecuteActionResponse.md new file mode 100644 index 00000000..e8d23bde --- /dev/null +++ b/docs/ExecuteActionResponse.md @@ -0,0 +1,29 @@ +# ExecuteActionResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | The unique identifier of the staking position | + +## Example + +```python +from fireblocks_client.models.execute_action_response import ExecuteActionResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of ExecuteActionResponse from a JSON string +execute_action_response_instance = ExecuteActionResponse.from_json(json) +# print the JSON string representation of the object +print ExecuteActionResponse.to_json() + +# convert the object into a dict +execute_action_response_dict = execute_action_response_instance.to_dict() +# create an instance of ExecuteActionResponse from a dict +execute_action_response_form_dict = execute_action_response.from_dict(execute_action_response_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/docs/ExecutionConversionOperation.md b/docs/ExecutionConversionOperation.md new file mode 100644 index 00000000..47f45fe9 --- /dev/null +++ b/docs/ExecutionConversionOperation.md @@ -0,0 +1,34 @@ +# ExecutionConversionOperation + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**operation_id** | **str** | | +**status** | [**ExecutionOperationStatus**](ExecutionOperationStatus.md) | | +**validation_failure** | [**ConversionValidationFailure**](ConversionValidationFailure.md) | | [optional] +**operation_type** | [**ConversionOperationType**](ConversionOperationType.md) | | +**preview** | [**ConversionOperationPreview**](ConversionOperationPreview.md) | | [optional] +**execution** | [**ConversionOperationExecution**](ConversionOperationExecution.md) | | [optional] + +## Example + +```python +from fireblocks_client.models.execution_conversion_operation import ExecutionConversionOperation + +# TODO update the JSON string below +json = "{}" +# create an instance of ExecutionConversionOperation from a JSON string +execution_conversion_operation_instance = ExecutionConversionOperation.from_json(json) +# print the JSON string representation of the object +print ExecutionConversionOperation.to_json() + +# convert the object into a dict +execution_conversion_operation_dict = execution_conversion_operation_instance.to_dict() +# create an instance of ExecutionConversionOperation from a dict +execution_conversion_operation_form_dict = execution_conversion_operation.from_dict(execution_conversion_operation_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/docs/ExecutionDisbursementOperation.md b/docs/ExecutionDisbursementOperation.md new file mode 100644 index 00000000..16184d9b --- /dev/null +++ b/docs/ExecutionDisbursementOperation.md @@ -0,0 +1,34 @@ +# ExecutionDisbursementOperation + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**operation_id** | **str** | | +**status** | [**ExecutionOperationStatus**](ExecutionOperationStatus.md) | | +**validation_failure** | [**DisbursementValidationFailure**](DisbursementValidationFailure.md) | | [optional] +**operation_type** | [**DisbursementOperationType**](DisbursementOperationType.md) | | +**preview** | [**DisbursementOperationPreview**](DisbursementOperationPreview.md) | | [optional] +**execution** | [**DisbursementOperationExecution**](DisbursementOperationExecution.md) | | [optional] + +## Example + +```python +from fireblocks_client.models.execution_disbursement_operation import ExecutionDisbursementOperation + +# TODO update the JSON string below +json = "{}" +# create an instance of ExecutionDisbursementOperation from a JSON string +execution_disbursement_operation_instance = ExecutionDisbursementOperation.from_json(json) +# print the JSON string representation of the object +print ExecutionDisbursementOperation.to_json() + +# convert the object into a dict +execution_disbursement_operation_dict = execution_disbursement_operation_instance.to_dict() +# create an instance of ExecutionDisbursementOperation from a dict +execution_disbursement_operation_form_dict = execution_disbursement_operation.from_dict(execution_disbursement_operation_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/docs/ExecutionOperationStatus.md b/docs/ExecutionOperationStatus.md new file mode 100644 index 00000000..eea85332 --- /dev/null +++ b/docs/ExecutionOperationStatus.md @@ -0,0 +1,11 @@ +# ExecutionOperationStatus + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[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/ExecutionScreeningOperation.md b/docs/ExecutionScreeningOperation.md new file mode 100644 index 00000000..284d0d80 --- /dev/null +++ b/docs/ExecutionScreeningOperation.md @@ -0,0 +1,33 @@ +# ExecutionScreeningOperation + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**operation_id** | **str** | | +**status** | [**ExecutionOperationStatus**](ExecutionOperationStatus.md) | | +**operation_type** | [**ScreeningOperationType**](ScreeningOperationType.md) | | +**validation_failure** | [**ScreeningValidationFailure**](ScreeningValidationFailure.md) | | [optional] +**execution** | [**ScreeningOperationExecution**](ScreeningOperationExecution.md) | | [optional] + +## Example + +```python +from fireblocks_client.models.execution_screening_operation import ExecutionScreeningOperation + +# TODO update the JSON string below +json = "{}" +# create an instance of ExecutionScreeningOperation from a JSON string +execution_screening_operation_instance = ExecutionScreeningOperation.from_json(json) +# print the JSON string representation of the object +print ExecutionScreeningOperation.to_json() + +# convert the object into a dict +execution_screening_operation_dict = execution_screening_operation_instance.to_dict() +# create an instance of ExecutionScreeningOperation from a dict +execution_screening_operation_form_dict = execution_screening_operation.from_dict(execution_screening_operation_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/docs/ExecutionTransferOperation.md b/docs/ExecutionTransferOperation.md new file mode 100644 index 00000000..712f9ee1 --- /dev/null +++ b/docs/ExecutionTransferOperation.md @@ -0,0 +1,34 @@ +# ExecutionTransferOperation + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**operation_id** | **str** | | +**status** | [**ExecutionOperationStatus**](ExecutionOperationStatus.md) | | +**validation_failure** | [**TransferValidationFailure**](TransferValidationFailure.md) | | [optional] +**operation_type** | [**TransferOperationType**](TransferOperationType.md) | | +**preview** | [**TransferOperationPreview**](TransferOperationPreview.md) | | [optional] +**execution** | [**TransferOperationExecution**](TransferOperationExecution.md) | | [optional] + +## Example + +```python +from fireblocks_client.models.execution_transfer_operation import ExecutionTransferOperation + +# TODO update the JSON string below +json = "{}" +# create an instance of ExecutionTransferOperation from a JSON string +execution_transfer_operation_instance = ExecutionTransferOperation.from_json(json) +# print the JSON string representation of the object +print ExecutionTransferOperation.to_json() + +# convert the object into a dict +execution_transfer_operation_dict = execution_transfer_operation_instance.to_dict() +# create an instance of ExecutionTransferOperation from a dict +execution_transfer_operation_form_dict = execution_transfer_operation.from_dict(execution_transfer_operation_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/docs/ExternalWalletAsset.md b/docs/ExternalWalletAsset.md new file mode 100644 index 00000000..96402436 --- /dev/null +++ b/docs/ExternalWalletAsset.md @@ -0,0 +1,36 @@ +# ExternalWalletAsset + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**status** | [**ConfigChangeRequestStatus**](ConfigChangeRequestStatus.md) | | [optional] +**address** | **str** | | [optional] +**balance** | **str** | | [optional] +**locked_amount** | **str** | | [optional] +**tag** | **str** | | [optional] +**activation_time** | **str** | | [optional] +**additional_info** | [**List[WalletAssetAdditionalInfo]**](WalletAssetAdditionalInfo.md) | | [optional] + +## Example + +```python +from fireblocks_client.models.external_wallet_asset import ExternalWalletAsset + +# TODO update the JSON string below +json = "{}" +# create an instance of ExternalWalletAsset from a JSON string +external_wallet_asset_instance = ExternalWalletAsset.from_json(json) +# print the JSON string representation of the object +print ExternalWalletAsset.to_json() + +# convert the object into a dict +external_wallet_asset_dict = external_wallet_asset_instance.to_dict() +# create an instance of ExternalWalletAsset from a dict +external_wallet_asset_form_dict = external_wallet_asset.from_dict(external_wallet_asset_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/docs/ExternalWalletsApi.md b/docs/ExternalWalletsApi.md new file mode 100644 index 00000000..5aaa0919 --- /dev/null +++ b/docs/ExternalWalletsApi.md @@ -0,0 +1,574 @@ +# fireblocks_client.ExternalWalletsApi + +All URIs are relative to *https://api.fireblocks.io/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**add_asset_to_external_wallet**](ExternalWalletsApi.md#add_asset_to_external_wallet) | **POST** /external_wallets/{walletId}/{assetId} | Add an asset to an external wallet. +[**create_external_wallet**](ExternalWalletsApi.md#create_external_wallet) | **POST** /external_wallets | Create an external wallet +[**delete_external_wallet**](ExternalWalletsApi.md#delete_external_wallet) | **DELETE** /external_wallets/{walletId} | Delete an external wallet +[**get_external_wallet**](ExternalWalletsApi.md#get_external_wallet) | **GET** /external_wallets/{walletId} | Find an external wallet +[**get_external_wallet_asset**](ExternalWalletsApi.md#get_external_wallet_asset) | **GET** /external_wallets/{walletId}/{assetId} | Get an asset from an external wallet +[**get_external_wallets**](ExternalWalletsApi.md#get_external_wallets) | **GET** /external_wallets | List external wallets +[**remove_asset_from_external_wallet**](ExternalWalletsApi.md#remove_asset_from_external_wallet) | **DELETE** /external_wallets/{walletId}/{assetId} | Delete an asset from an external wallet +[**set_external_wallet_customer_ref_id**](ExternalWalletsApi.md#set_external_wallet_customer_ref_id) | **POST** /external_wallets/{walletId}/set_customer_ref_id | Set an AML customer reference ID for an external wallet + + +# **add_asset_to_external_wallet** +> ExternalWalletAsset add_asset_to_external_wallet(wallet_id, asset_id, idempotency_key=idempotency_key, add_asset_to_external_wallet_request=add_asset_to_external_wallet_request) + +Add an asset to an external wallet. + +Adds an asset to an existing external wallet. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.add_asset_to_external_wallet_request import AddAssetToExternalWalletRequest +from fireblocks_client.models.external_wallet_asset import ExternalWalletAsset +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.ExternalWalletsApi(api_client) + wallet_id = 'wallet_id_example' # str | The ID of the wallet + asset_id = 'asset_id_example' # str | The ID of the asset to add + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + add_asset_to_external_wallet_request = fireblocks_client.AddAssetToExternalWalletRequest() # AddAssetToExternalWalletRequest | (optional) + + try: + # Add an asset to an external wallet. + api_response = api_instance.add_asset_to_external_wallet(wallet_id, asset_id, idempotency_key=idempotency_key, add_asset_to_external_wallet_request=add_asset_to_external_wallet_request) + print("The response of ExternalWalletsApi->add_asset_to_external_wallet:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ExternalWalletsApi->add_asset_to_external_wallet: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **wallet_id** | **str**| The ID of the wallet | + **asset_id** | **str**| The ID of the asset to add | + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + **add_asset_to_external_wallet_request** | [**AddAssetToExternalWalletRequest**](AddAssetToExternalWalletRequest.md)| | [optional] + +### Return type + +[**ExternalWalletAsset**](ExternalWalletAsset.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A Wallet Asset object | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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) + +# **create_external_wallet** +> UnmanagedWallet create_external_wallet(idempotency_key=idempotency_key, create_wallet_request=create_wallet_request) + +Create an external wallet + +Creates a new external wallet with the requested name. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.create_wallet_request import CreateWalletRequest +from fireblocks_client.models.unmanaged_wallet import UnmanagedWallet +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.ExternalWalletsApi(api_client) + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + create_wallet_request = fireblocks_client.CreateWalletRequest() # CreateWalletRequest | (optional) + + try: + # Create an external wallet + api_response = api_instance.create_external_wallet(idempotency_key=idempotency_key, create_wallet_request=create_wallet_request) + print("The response of ExternalWalletsApi->create_external_wallet:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ExternalWalletsApi->create_external_wallet: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + **create_wallet_request** | [**CreateWalletRequest**](CreateWalletRequest.md)| | [optional] + +### Return type + +[**UnmanagedWallet**](UnmanagedWallet.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A Wallet object | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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) + +# **delete_external_wallet** +> delete_external_wallet(wallet_id) + +Delete an external wallet + +Deletes an external wallet by ID. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.ExternalWalletsApi(api_client) + wallet_id = 'wallet_id_example' # str | The ID of the wallet to delete + + try: + # Delete an external wallet + api_instance.delete_external_wallet(wallet_id) + except Exception as e: + print("Exception when calling ExternalWalletsApi->delete_external_wallet: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **wallet_id** | **str**| The ID of the wallet to delete | + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | OK | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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_external_wallet** +> UnmanagedWallet get_external_wallet(wallet_id) + +Find an external wallet + +Returns an external wallet by ID. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.unmanaged_wallet import UnmanagedWallet +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.ExternalWalletsApi(api_client) + wallet_id = 'wallet_id_example' # str | The ID of the wallet to return + + try: + # Find an external wallet + api_response = api_instance.get_external_wallet(wallet_id) + print("The response of ExternalWalletsApi->get_external_wallet:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ExternalWalletsApi->get_external_wallet: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **wallet_id** | **str**| The ID of the wallet to return | + +### Return type + +[**UnmanagedWallet**](UnmanagedWallet.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A Wallet object | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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_external_wallet_asset** +> ExternalWalletAsset get_external_wallet_asset(wallet_id, asset_id) + +Get an asset from an external wallet + +Returns an external wallet by wallet ID and asset ID. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.external_wallet_asset import ExternalWalletAsset +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.ExternalWalletsApi(api_client) + wallet_id = 'wallet_id_example' # str | The ID of the wallet + asset_id = 'asset_id_example' # str | The ID of the asset to return + + try: + # Get an asset from an external wallet + api_response = api_instance.get_external_wallet_asset(wallet_id, asset_id) + print("The response of ExternalWalletsApi->get_external_wallet_asset:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ExternalWalletsApi->get_external_wallet_asset: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **wallet_id** | **str**| The ID of the wallet | + **asset_id** | **str**| The ID of the asset to return | + +### Return type + +[**ExternalWalletAsset**](ExternalWalletAsset.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A Wallet Asset object | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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_external_wallets** +> List[UnmanagedWallet] get_external_wallets() + +List external wallets + +Gets a list of external wallets under the workspace. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.unmanaged_wallet import UnmanagedWallet +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.ExternalWalletsApi(api_client) + + try: + # List external wallets + api_response = api_instance.get_external_wallets() + print("The response of ExternalWalletsApi->get_external_wallets:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ExternalWalletsApi->get_external_wallets: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**List[UnmanagedWallet]**](UnmanagedWallet.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A list of external wallets | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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) + +# **remove_asset_from_external_wallet** +> remove_asset_from_external_wallet(wallet_id, asset_id) + +Delete an asset from an external wallet + +Deletes an external wallet asset by ID. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.ExternalWalletsApi(api_client) + wallet_id = 'wallet_id_example' # str | The ID of the wallet + asset_id = 'asset_id_example' # str | The ID of the asset to delete + + try: + # Delete an asset from an external wallet + api_instance.remove_asset_from_external_wallet(wallet_id, asset_id) + except Exception as e: + print("Exception when calling ExternalWalletsApi->remove_asset_from_external_wallet: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **wallet_id** | **str**| The ID of the wallet | + **asset_id** | **str**| The ID of the asset to delete | + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | OK | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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) + +# **set_external_wallet_customer_ref_id** +> set_external_wallet_customer_ref_id(wallet_id, set_customer_ref_id_request, idempotency_key=idempotency_key) + +Set an AML customer reference ID for an external wallet + +Sets an AML/KYT customer reference ID for the specific external wallet. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.set_customer_ref_id_request import SetCustomerRefIdRequest +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.ExternalWalletsApi(api_client) + wallet_id = 'wallet_id_example' # str | The wallet ID + set_customer_ref_id_request = fireblocks_client.SetCustomerRefIdRequest() # SetCustomerRefIdRequest | + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + + try: + # Set an AML customer reference ID for an external wallet + api_instance.set_external_wallet_customer_ref_id(wallet_id, set_customer_ref_id_request, idempotency_key=idempotency_key) + except Exception as e: + print("Exception when calling ExternalWalletsApi->set_external_wallet_customer_ref_id: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **wallet_id** | **str**| The wallet ID | + **set_customer_ref_id_request** | [**SetCustomerRefIdRequest**](SetCustomerRefIdRequest.md)| | + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | OK | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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) + diff --git a/docs/FeeInfo.md b/docs/FeeInfo.md new file mode 100644 index 00000000..161a6d2d --- /dev/null +++ b/docs/FeeInfo.md @@ -0,0 +1,32 @@ +# FeeInfo + +Details of the transaction's fee. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**network_fee** | **str** | The fee paid to the network | [optional] +**service_fee** | **str** | The total fee deducted by the exchange from the actual requested amount (serviceFee = amount - netAmount) | [optional] +**gas_price** | **str** | | [optional] + +## Example + +```python +from fireblocks_client.models.fee_info import FeeInfo + +# TODO update the JSON string below +json = "{}" +# create an instance of FeeInfo from a JSON string +fee_info_instance = FeeInfo.from_json(json) +# print the JSON string representation of the object +print FeeInfo.to_json() + +# convert the object into a dict +fee_info_dict = fee_info_instance.to_dict() +# create an instance of FeeInfo from a dict +fee_info_form_dict = fee_info.from_dict(fee_info_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/docs/FiatAccount.md b/docs/FiatAccount.md new file mode 100644 index 00000000..f69eb62f --- /dev/null +++ b/docs/FiatAccount.md @@ -0,0 +1,33 @@ +# FiatAccount + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**type** | [**FiatAccountType**](FiatAccountType.md) | | [optional] +**name** | **str** | Display name of the fiat account | [optional] +**address** | **str** | | [optional] +**assets** | [**List[FiatAsset]**](FiatAsset.md) | | [optional] + +## Example + +```python +from fireblocks_client.models.fiat_account import FiatAccount + +# TODO update the JSON string below +json = "{}" +# create an instance of FiatAccount from a JSON string +fiat_account_instance = FiatAccount.from_json(json) +# print the JSON string representation of the object +print FiatAccount.to_json() + +# convert the object into a dict +fiat_account_dict = fiat_account_instance.to_dict() +# create an instance of FiatAccount from a dict +fiat_account_form_dict = fiat_account.from_dict(fiat_account_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/docs/FiatAccountType.md b/docs/FiatAccountType.md new file mode 100644 index 00000000..9a890b63 --- /dev/null +++ b/docs/FiatAccountType.md @@ -0,0 +1,11 @@ +# FiatAccountType + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[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/FiatAccountsApi.md b/docs/FiatAccountsApi.md new file mode 100644 index 00000000..078a818d --- /dev/null +++ b/docs/FiatAccountsApi.md @@ -0,0 +1,294 @@ +# fireblocks_client.FiatAccountsApi + +All URIs are relative to *https://api.fireblocks.io/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**deposit_funds_from_linked_dda**](FiatAccountsApi.md#deposit_funds_from_linked_dda) | **POST** /fiat_accounts/{accountId}/deposit_from_linked_dda | Deposit funds from DDA +[**get_fiat_account**](FiatAccountsApi.md#get_fiat_account) | **GET** /fiat_accounts/{accountId} | Find a specific fiat account +[**get_fiat_accounts**](FiatAccountsApi.md#get_fiat_accounts) | **GET** /fiat_accounts | List fiat accounts +[**redeem_funds_to_linked_dda**](FiatAccountsApi.md#redeem_funds_to_linked_dda) | **POST** /fiat_accounts/{accountId}/redeem_to_linked_dda | Redeem funds to DDA + + +# **deposit_funds_from_linked_dda** +> DepositFundsFromLinkedDDAResponse deposit_funds_from_linked_dda(account_id, idempotency_key=idempotency_key, funds=funds) + +Deposit funds from DDA + +Deposits funds from the linked DDA. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.deposit_funds_from_linked_dda_response import DepositFundsFromLinkedDDAResponse +from fireblocks_client.models.funds import Funds +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.FiatAccountsApi(api_client) + account_id = 'account_id_example' # str | The ID of the fiat account to use + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + funds = fireblocks_client.Funds() # Funds | (optional) + + try: + # Deposit funds from DDA + api_response = api_instance.deposit_funds_from_linked_dda(account_id, idempotency_key=idempotency_key, funds=funds) + print("The response of FiatAccountsApi->deposit_funds_from_linked_dda:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling FiatAccountsApi->deposit_funds_from_linked_dda: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **account_id** | **str**| The ID of the fiat account to use | + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + **funds** | [**Funds**](Funds.md)| | [optional] + +### Return type + +[**DepositFundsFromLinkedDDAResponse**](DepositFundsFromLinkedDDAResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | Transfer succeeded | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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_fiat_account** +> FiatAccount get_fiat_account(account_id) + +Find a specific fiat account + +Returns a fiat account by ID. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.fiat_account import FiatAccount +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.FiatAccountsApi(api_client) + account_id = 'account_id_example' # str | The ID of the fiat account to return + + try: + # Find a specific fiat account + api_response = api_instance.get_fiat_account(account_id) + print("The response of FiatAccountsApi->get_fiat_account:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling FiatAccountsApi->get_fiat_account: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **account_id** | **str**| The ID of the fiat account to return | + +### Return type + +[**FiatAccount**](FiatAccount.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A fiat account object | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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_fiat_accounts** +> List[FiatAccount] get_fiat_accounts() + +List fiat accounts + +Returns all fiat accounts. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.fiat_account import FiatAccount +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.FiatAccountsApi(api_client) + + try: + # List fiat accounts + api_response = api_instance.get_fiat_accounts() + print("The response of FiatAccountsApi->get_fiat_accounts:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling FiatAccountsApi->get_fiat_accounts: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**List[FiatAccount]**](FiatAccount.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A fiat account object | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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) + +# **redeem_funds_to_linked_dda** +> RedeemFundsToLinkedDDAResponse redeem_funds_to_linked_dda(account_id, idempotency_key=idempotency_key, funds=funds) + +Redeem funds to DDA + +Redeems funds to the linked DDA. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.funds import Funds +from fireblocks_client.models.redeem_funds_to_linked_dda_response import RedeemFundsToLinkedDDAResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.FiatAccountsApi(api_client) + account_id = 'account_id_example' # str | The ID of the fiat account to use + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + funds = fireblocks_client.Funds() # Funds | (optional) + + try: + # Redeem funds to DDA + api_response = api_instance.redeem_funds_to_linked_dda(account_id, idempotency_key=idempotency_key, funds=funds) + print("The response of FiatAccountsApi->redeem_funds_to_linked_dda:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling FiatAccountsApi->redeem_funds_to_linked_dda: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **account_id** | **str**| The ID of the fiat account to use | + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + **funds** | [**Funds**](Funds.md)| | [optional] + +### Return type + +[**RedeemFundsToLinkedDDAResponse**](RedeemFundsToLinkedDDAResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | Transfer succeeded | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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) + diff --git a/docs/FiatAsset.md b/docs/FiatAsset.md new file mode 100644 index 00000000..bed75d63 --- /dev/null +++ b/docs/FiatAsset.md @@ -0,0 +1,30 @@ +# FiatAsset + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**balance** | **str** | | [optional] + +## Example + +```python +from fireblocks_client.models.fiat_asset import FiatAsset + +# TODO update the JSON string below +json = "{}" +# create an instance of FiatAsset from a JSON string +fiat_asset_instance = FiatAsset.from_json(json) +# print the JSON string representation of the object +print FiatAsset.to_json() + +# convert the object into a dict +fiat_asset_dict = fiat_asset_instance.to_dict() +# create an instance of FiatAsset from a dict +fiat_asset_form_dict = fiat_asset.from_dict(fiat_asset_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/docs/FreezeTransactionResponse.md b/docs/FreezeTransactionResponse.md new file mode 100644 index 00000000..f98635d5 --- /dev/null +++ b/docs/FreezeTransactionResponse.md @@ -0,0 +1,29 @@ +# FreezeTransactionResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | | [optional] + +## Example + +```python +from fireblocks_client.models.freeze_transaction_response import FreezeTransactionResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of FreezeTransactionResponse from a JSON string +freeze_transaction_response_instance = FreezeTransactionResponse.from_json(json) +# print the JSON string representation of the object +print FreezeTransactionResponse.to_json() + +# convert the object into a dict +freeze_transaction_response_dict = freeze_transaction_response_instance.to_dict() +# create an instance of FreezeTransactionResponse from a dict +freeze_transaction_response_form_dict = freeze_transaction_response.from_dict(freeze_transaction_response_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/docs/FunctionDoc.md b/docs/FunctionDoc.md new file mode 100644 index 00000000..e807a7b9 --- /dev/null +++ b/docs/FunctionDoc.md @@ -0,0 +1,31 @@ +# FunctionDoc + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**details** | **str** | A description of the function | [optional] +**params** | **Dict[str, str]** | A description of the function parameters | [optional] +**returns** | **Dict[str, str]** | A description of the function return values. only for read functions | [optional] + +## Example + +```python +from fireblocks_client.models.function_doc import FunctionDoc + +# TODO update the JSON string below +json = "{}" +# create an instance of FunctionDoc from a JSON string +function_doc_instance = FunctionDoc.from_json(json) +# print the JSON string representation of the object +print FunctionDoc.to_json() + +# convert the object into a dict +function_doc_dict = function_doc_instance.to_dict() +# create an instance of FunctionDoc from a dict +function_doc_form_dict = function_doc.from_dict(function_doc_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/docs/Funds.md b/docs/Funds.md new file mode 100644 index 00000000..34f8366e --- /dev/null +++ b/docs/Funds.md @@ -0,0 +1,29 @@ +# Funds + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**amount** | **float** | | [optional] + +## Example + +```python +from fireblocks_client.models.funds import Funds + +# TODO update the JSON string below +json = "{}" +# create an instance of Funds from a JSON string +funds_instance = Funds.from_json(json) +# print the JSON string representation of the object +print Funds.to_json() + +# convert the object into a dict +funds_dict = funds_instance.to_dict() +# create an instance of Funds from a dict +funds_form_dict = funds.from_dict(funds_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/docs/GasStationConfiguration.md b/docs/GasStationConfiguration.md new file mode 100644 index 00000000..ca07f9c1 --- /dev/null +++ b/docs/GasStationConfiguration.md @@ -0,0 +1,31 @@ +# GasStationConfiguration + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**gas_threshold** | **str** | | [optional] +**gas_cap** | **str** | | [optional] +**max_gas_price** | **str** | | [optional] + +## Example + +```python +from fireblocks_client.models.gas_station_configuration import GasStationConfiguration + +# TODO update the JSON string below +json = "{}" +# create an instance of GasStationConfiguration from a JSON string +gas_station_configuration_instance = GasStationConfiguration.from_json(json) +# print the JSON string representation of the object +print GasStationConfiguration.to_json() + +# convert the object into a dict +gas_station_configuration_dict = gas_station_configuration_instance.to_dict() +# create an instance of GasStationConfiguration from a dict +gas_station_configuration_form_dict = gas_station_configuration.from_dict(gas_station_configuration_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/docs/GasStationConfigurationResponse.md b/docs/GasStationConfigurationResponse.md new file mode 100644 index 00000000..5670a667 --- /dev/null +++ b/docs/GasStationConfigurationResponse.md @@ -0,0 +1,31 @@ +# GasStationConfigurationResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**gas_threshold** | **str** | | [optional] +**gas_cap** | **str** | | [optional] +**max_gas_price** | **str** | | [optional] + +## Example + +```python +from fireblocks_client.models.gas_station_configuration_response import GasStationConfigurationResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GasStationConfigurationResponse from a JSON string +gas_station_configuration_response_instance = GasStationConfigurationResponse.from_json(json) +# print the JSON string representation of the object +print GasStationConfigurationResponse.to_json() + +# convert the object into a dict +gas_station_configuration_response_dict = gas_station_configuration_response_instance.to_dict() +# create an instance of GasStationConfigurationResponse from a dict +gas_station_configuration_response_form_dict = gas_station_configuration_response.from_dict(gas_station_configuration_response_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/docs/GasStationPropertiesResponse.md b/docs/GasStationPropertiesResponse.md new file mode 100644 index 00000000..2470ce7c --- /dev/null +++ b/docs/GasStationPropertiesResponse.md @@ -0,0 +1,30 @@ +# GasStationPropertiesResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**balance** | **object** | | [optional] +**configuration** | [**GasStationConfigurationResponse**](GasStationConfigurationResponse.md) | | [optional] + +## Example + +```python +from fireblocks_client.models.gas_station_properties_response import GasStationPropertiesResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GasStationPropertiesResponse from a JSON string +gas_station_properties_response_instance = GasStationPropertiesResponse.from_json(json) +# print the JSON string representation of the object +print GasStationPropertiesResponse.to_json() + +# convert the object into a dict +gas_station_properties_response_dict = gas_station_properties_response_instance.to_dict() +# create an instance of GasStationPropertiesResponse from a dict +gas_station_properties_response_form_dict = gas_station_properties_response.from_dict(gas_station_properties_response_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/docs/GasStationsApi.md b/docs/GasStationsApi.md new file mode 100644 index 00000000..412a980d --- /dev/null +++ b/docs/GasStationsApi.md @@ -0,0 +1,292 @@ +# fireblocks_client.GasStationsApi + +All URIs are relative to *https://api.fireblocks.io/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_gas_station_by_asset_id**](GasStationsApi.md#get_gas_station_by_asset_id) | **GET** /gas_station/{assetId} | Get gas station settings by asset +[**get_gas_station_info**](GasStationsApi.md#get_gas_station_info) | **GET** /gas_station | Get gas station settings +[**update_gas_station_configuration**](GasStationsApi.md#update_gas_station_configuration) | **PUT** /gas_station/configuration | Edit gas station settings +[**update_gas_station_configuration_by_asset_id**](GasStationsApi.md#update_gas_station_configuration_by_asset_id) | **PUT** /gas_station/configuration/{assetId} | Edit gas station settings for an asset + + +# **get_gas_station_by_asset_id** +> GasStationPropertiesResponse get_gas_station_by_asset_id(asset_id) + +Get gas station settings by asset + +Returns gas station settings and balances for a requested asset. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.gas_station_properties_response import GasStationPropertiesResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.GasStationsApi(api_client) + asset_id = 'asset_id_example' # str | The ID of the asset + + try: + # Get gas station settings by asset + api_response = api_instance.get_gas_station_by_asset_id(asset_id) + print("The response of GasStationsApi->get_gas_station_by_asset_id:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling GasStationsApi->get_gas_station_by_asset_id: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **asset_id** | **str**| The ID of the asset | + +### Return type + +[**GasStationPropertiesResponse**](GasStationPropertiesResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Gas Station properties | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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_gas_station_info** +> GasStationPropertiesResponse get_gas_station_info() + +Get gas station settings + +Returns gas station settings and ETH balance. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.gas_station_properties_response import GasStationPropertiesResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.GasStationsApi(api_client) + + try: + # Get gas station settings + api_response = api_instance.get_gas_station_info() + print("The response of GasStationsApi->get_gas_station_info:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling GasStationsApi->get_gas_station_info: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**GasStationPropertiesResponse**](GasStationPropertiesResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Gas Station properties | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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) + +# **update_gas_station_configuration** +> EditGasStationConfigurationResponse update_gas_station_configuration(gas_station_configuration, idempotency_key=idempotency_key) + +Edit gas station settings + +Configures gas station settings for ETH. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.edit_gas_station_configuration_response import EditGasStationConfigurationResponse +from fireblocks_client.models.gas_station_configuration import GasStationConfiguration +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.GasStationsApi(api_client) + gas_station_configuration = fireblocks_client.GasStationConfiguration() # GasStationConfiguration | + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + + try: + # Edit gas station settings + api_response = api_instance.update_gas_station_configuration(gas_station_configuration, idempotency_key=idempotency_key) + print("The response of GasStationsApi->update_gas_station_configuration:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling GasStationsApi->update_gas_station_configuration: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **gas_station_configuration** | [**GasStationConfiguration**](GasStationConfiguration.md)| | + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + +### Return type + +[**EditGasStationConfigurationResponse**](EditGasStationConfigurationResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | OK | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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) + +# **update_gas_station_configuration_by_asset_id** +> EditGasStationConfigurationResponse update_gas_station_configuration_by_asset_id(asset_id, gas_station_configuration, idempotency_key=idempotency_key) + +Edit gas station settings for an asset + +Configures gas station settings for a requested asset. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.edit_gas_station_configuration_response import EditGasStationConfigurationResponse +from fireblocks_client.models.gas_station_configuration import GasStationConfiguration +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.GasStationsApi(api_client) + asset_id = 'asset_id_example' # str | The ID of the asset + gas_station_configuration = fireblocks_client.GasStationConfiguration() # GasStationConfiguration | + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + + try: + # Edit gas station settings for an asset + api_response = api_instance.update_gas_station_configuration_by_asset_id(asset_id, gas_station_configuration, idempotency_key=idempotency_key) + print("The response of GasStationsApi->update_gas_station_configuration_by_asset_id:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling GasStationsApi->update_gas_station_configuration_by_asset_id: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **asset_id** | **str**| The ID of the asset | + **gas_station_configuration** | [**GasStationConfiguration**](GasStationConfiguration.md)| | + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + +### Return type + +[**EditGasStationConfigurationResponse**](EditGasStationConfigurationResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | OK | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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) + diff --git a/docs/GetAPIUsersResponse.md b/docs/GetAPIUsersResponse.md new file mode 100644 index 00000000..8533b621 --- /dev/null +++ b/docs/GetAPIUsersResponse.md @@ -0,0 +1,29 @@ +# GetAPIUsersResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**users** | [**List[APIUser]**](APIUser.md) | | + +## Example + +```python +from fireblocks_client.models.get_api_users_response import GetAPIUsersResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetAPIUsersResponse from a JSON string +get_api_users_response_instance = GetAPIUsersResponse.from_json(json) +# print the JSON string representation of the object +print GetAPIUsersResponse.to_json() + +# convert the object into a dict +get_api_users_response_dict = get_api_users_response_instance.to_dict() +# create an instance of GetAPIUsersResponse from a dict +get_api_users_response_form_dict = get_api_users_response.from_dict(get_api_users_response_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/docs/GetAuditLogsResponse.md b/docs/GetAuditLogsResponse.md new file mode 100644 index 00000000..32e58a38 --- /dev/null +++ b/docs/GetAuditLogsResponse.md @@ -0,0 +1,31 @@ +# GetAuditLogsResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**List[AuditLogData]**](AuditLogData.md) | | [optional] +**cursor** | **str** | The next id to start fetch audit logs from | [optional] +**total** | **float** | The total number of audit logs | [optional] + +## Example + +```python +from fireblocks_client.models.get_audit_logs_response import GetAuditLogsResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetAuditLogsResponse from a JSON string +get_audit_logs_response_instance = GetAuditLogsResponse.from_json(json) +# print the JSON string representation of the object +print GetAuditLogsResponse.to_json() + +# convert the object into a dict +get_audit_logs_response_dict = get_audit_logs_response_instance.to_dict() +# create an instance of GetAuditLogsResponse from a dict +get_audit_logs_response_form_dict = get_audit_logs_response.from_dict(get_audit_logs_response_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/docs/GetAuditLogsResponseDTO.md b/docs/GetAuditLogsResponseDTO.md new file mode 100644 index 00000000..85964b7b --- /dev/null +++ b/docs/GetAuditLogsResponseDTO.md @@ -0,0 +1,31 @@ +# GetAuditLogsResponseDTO + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | **List[object]** | | [optional] +**total** | **float** | | [optional] +**cursor** | **str** | | [optional] + +## Example + +```python +from fireblocks_client.models.get_audit_logs_response_dto import GetAuditLogsResponseDTO + +# TODO update the JSON string below +json = "{}" +# create an instance of GetAuditLogsResponseDTO from a JSON string +get_audit_logs_response_dto_instance = GetAuditLogsResponseDTO.from_json(json) +# print the JSON string representation of the object +print GetAuditLogsResponseDTO.to_json() + +# convert the object into a dict +get_audit_logs_response_dto_dict = get_audit_logs_response_dto_instance.to_dict() +# create an instance of GetAuditLogsResponseDTO from a dict +get_audit_logs_response_dto_form_dict = get_audit_logs_response_dto.from_dict(get_audit_logs_response_dto_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/docs/GetConnectionsResponse.md b/docs/GetConnectionsResponse.md new file mode 100644 index 00000000..913233bc --- /dev/null +++ b/docs/GetConnectionsResponse.md @@ -0,0 +1,30 @@ +# GetConnectionsResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**List[SessionDTO]**](SessionDTO.md) | Array with the requested Web3 connection's data | +**paging** | [**Paging**](Paging.md) | | [optional] + +## Example + +```python +from fireblocks_client.models.get_connections_response import GetConnectionsResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetConnectionsResponse from a JSON string +get_connections_response_instance = GetConnectionsResponse.from_json(json) +# print the JSON string representation of the object +print GetConnectionsResponse.to_json() + +# convert the object into a dict +get_connections_response_dict = get_connections_response_instance.to_dict() +# create an instance of GetConnectionsResponse from a dict +get_connections_response_form_dict = get_connections_response.from_dict(get_connections_response_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/docs/GetConsoleUsersResponse.md b/docs/GetConsoleUsersResponse.md new file mode 100644 index 00000000..d6544634 --- /dev/null +++ b/docs/GetConsoleUsersResponse.md @@ -0,0 +1,29 @@ +# GetConsoleUsersResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**users** | [**List[ConsoleUser]**](ConsoleUser.md) | | + +## Example + +```python +from fireblocks_client.models.get_console_users_response import GetConsoleUsersResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetConsoleUsersResponse from a JSON string +get_console_users_response_instance = GetConsoleUsersResponse.from_json(json) +# print the JSON string representation of the object +print GetConsoleUsersResponse.to_json() + +# convert the object into a dict +get_console_users_response_dict = get_console_users_response_instance.to_dict() +# create an instance of GetConsoleUsersResponse from a dict +get_console_users_response_form_dict = get_console_users_response.from_dict(get_console_users_response_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/docs/GetFilterParameter.md b/docs/GetFilterParameter.md new file mode 100644 index 00000000..5f11c8d9 --- /dev/null +++ b/docs/GetFilterParameter.md @@ -0,0 +1,35 @@ +# GetFilterParameter + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**user_id** | **str** | | [optional] +**vault_account_id** | **float** | | [optional] +**connection_method** | **str** | | [optional] +**fee_level** | **str** | | [optional] +**app_url** | **str** | | [optional] +**app_name** | **str** | | [optional] + +## Example + +```python +from fireblocks_client.models.get_filter_parameter import GetFilterParameter + +# TODO update the JSON string below +json = "{}" +# create an instance of GetFilterParameter from a JSON string +get_filter_parameter_instance = GetFilterParameter.from_json(json) +# print the JSON string representation of the object +print GetFilterParameter.to_json() + +# convert the object into a dict +get_filter_parameter_dict = get_filter_parameter_instance.to_dict() +# create an instance of GetFilterParameter from a dict +get_filter_parameter_form_dict = get_filter_parameter.from_dict(get_filter_parameter_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/docs/GetMaxSpendableAmountResponse.md b/docs/GetMaxSpendableAmountResponse.md new file mode 100644 index 00000000..0513b3b8 --- /dev/null +++ b/docs/GetMaxSpendableAmountResponse.md @@ -0,0 +1,29 @@ +# GetMaxSpendableAmountResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**max_spendable_amount** | **str** | The maximum amount that can be spent from the vault account | [optional] + +## Example + +```python +from fireblocks_client.models.get_max_spendable_amount_response import GetMaxSpendableAmountResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetMaxSpendableAmountResponse from a JSON string +get_max_spendable_amount_response_instance = GetMaxSpendableAmountResponse.from_json(json) +# print the JSON string representation of the object +print GetMaxSpendableAmountResponse.to_json() + +# convert the object into a dict +get_max_spendable_amount_response_dict = get_max_spendable_amount_response_instance.to_dict() +# create an instance of GetMaxSpendableAmountResponse from a dict +get_max_spendable_amount_response_form_dict = get_max_spendable_amount_response.from_dict(get_max_spendable_amount_response_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/docs/GetNFTsResponse.md b/docs/GetNFTsResponse.md new file mode 100644 index 00000000..34295647 --- /dev/null +++ b/docs/GetNFTsResponse.md @@ -0,0 +1,30 @@ +# GetNFTsResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**paging** | [**Paging**](Paging.md) | | [optional] +**data** | [**List[TokenResponse]**](TokenResponse.md) | | [optional] + +## Example + +```python +from fireblocks_client.models.get_nfts_response import GetNFTsResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetNFTsResponse from a JSON string +get_nfts_response_instance = GetNFTsResponse.from_json(json) +# print the JSON string representation of the object +print GetNFTsResponse.to_json() + +# convert the object into a dict +get_nfts_response_dict = get_nfts_response_instance.to_dict() +# create an instance of GetNFTsResponse from a dict +get_nfts_response_form_dict = get_nfts_response.from_dict(get_nfts_response_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/docs/GetOtaStatusResponse.md b/docs/GetOtaStatusResponse.md new file mode 100644 index 00000000..71dca1ec --- /dev/null +++ b/docs/GetOtaStatusResponse.md @@ -0,0 +1,29 @@ +# GetOtaStatusResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**enabled** | **bool** | Current OTA status | [optional] + +## Example + +```python +from fireblocks_client.models.get_ota_status_response import GetOtaStatusResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetOtaStatusResponse from a JSON string +get_ota_status_response_instance = GetOtaStatusResponse.from_json(json) +# print the JSON string representation of the object +print GetOtaStatusResponse.to_json() + +# convert the object into a dict +get_ota_status_response_dict = get_ota_status_response_instance.to_dict() +# create an instance of GetOtaStatusResponse from a dict +get_ota_status_response_form_dict = get_ota_status_response.from_dict(get_ota_status_response_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/docs/GetOwnershipTokensResponse.md b/docs/GetOwnershipTokensResponse.md new file mode 100644 index 00000000..b7fe0633 --- /dev/null +++ b/docs/GetOwnershipTokensResponse.md @@ -0,0 +1,30 @@ +# GetOwnershipTokensResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**paging** | [**Paging**](Paging.md) | | [optional] +**data** | [**List[TokenOwnershipResponse]**](TokenOwnershipResponse.md) | | [optional] + +## Example + +```python +from fireblocks_client.models.get_ownership_tokens_response import GetOwnershipTokensResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetOwnershipTokensResponse from a JSON string +get_ownership_tokens_response_instance = GetOwnershipTokensResponse.from_json(json) +# print the JSON string representation of the object +print GetOwnershipTokensResponse.to_json() + +# convert the object into a dict +get_ownership_tokens_response_dict = get_ownership_tokens_response_instance.to_dict() +# create an instance of GetOwnershipTokensResponse from a dict +get_ownership_tokens_response_form_dict = get_ownership_tokens_response.from_dict(get_ownership_tokens_response_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/docs/GetTransactionOperation.md b/docs/GetTransactionOperation.md new file mode 100644 index 00000000..a21e6183 --- /dev/null +++ b/docs/GetTransactionOperation.md @@ -0,0 +1,12 @@ +# GetTransactionOperation + +* `TRANSFER` - Transfers funds from one account to another. UTXO blockchains allow multi-input and multi-output transfers. All other blockchains allow transfers with one source address and one destination address. * `MINT` - Mints new tokens. Supported for Stellar, Ripple and EVM-based blockchains. * `BURN` - Burns tokens. Supported for Stellar, Ripple and EVM-based blockchains. * `CONTRACT_CALL` - Calls a smart contract method for web3 operations on any EVM blockchain. The Fireblocks [development libraries](https://developers.fireblocks.com/docs/ethereum-development#convenience-libraries) are recommended for building contract call transactions. * `TYPED_MESSAGE` - An off-chain message in either Ethereum Personal Message or EIP712 format. Use it to sign specific readable messages that are not actual transactions. [Learn more about typed messages](https://developers.fireblocks.com/docs/typed-message-signing). * `RAW` - An off-chain message with no predefined format. Use it to sign any message with your private key, including protocols such as blockchains and custom transaction types that are not natively supported by Fireblocks. [Learn more about raw signing transactions.](https://developers.fireblocks.com/docs/raw-message-signing) * `ENABLE_ASSET` - Algorand, DigitalBits, Solana, and Stellar require an on-chain transaction to create an asset wallet and enable the deposit address. This transaction is automatically created when adding assets on these blockchains at a vault account. * `STAKE` - Assign assets to a staking pool managed by a staking validator. Supported for Stellar and EVM-based blockchains. This transaction is automatically created when performing staking operations. * `UNSTAKE` - Remove assets from a staking pool managed by a staking validator. Supported for Stellar and EVM-based blockchains. This transaction is automatically created when performing staking operations. * `WITHDRAW` - Transfer assets from a dedicated staking vault account to another address. Supported for Stellar and EVM-based blockchains. This transaction is automatically created when performing staking operations. **Note:** Fireblocks will rename this type from `WITHDRAW` to a different type name soon. There will be a 7-day notice regarding the new type name. * `SUPPLY_TO_COMPOUND` - Deprecated since April 1st, 2023. Older transactions may have this as their operation, in case users in the workspace have used the direct integration between Fireblocks and the Compound DeFI protocol. * `REDEEM_FROM_COMPOUND` - Deprecated since April 1st, 2023. Older transactions may have this as their operation, in case users in the workspace have used the direct integration between Fireblocks and the Compound DeFI protocol. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[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/GetWhitelistIpAddressesResponse.md b/docs/GetWhitelistIpAddressesResponse.md new file mode 100644 index 00000000..649eacf6 --- /dev/null +++ b/docs/GetWhitelistIpAddressesResponse.md @@ -0,0 +1,30 @@ +# GetWhitelistIpAddressesResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**user_id** | **str** | The ID of the user | [optional] +**whitelisted_ips** | **List[str]** | List of whitelisted ip addresses | [optional] + +## Example + +```python +from fireblocks_client.models.get_whitelist_ip_addresses_response import GetWhitelistIpAddressesResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetWhitelistIpAddressesResponse from a JSON string +get_whitelist_ip_addresses_response_instance = GetWhitelistIpAddressesResponse.from_json(json) +# print the JSON string representation of the object +print GetWhitelistIpAddressesResponse.to_json() + +# convert the object into a dict +get_whitelist_ip_addresses_response_dict = get_whitelist_ip_addresses_response_instance.to_dict() +# create an instance of GetWhitelistIpAddressesResponse from a dict +get_whitelist_ip_addresses_response_form_dict = get_whitelist_ip_addresses_response.from_dict(get_whitelist_ip_addresses_response_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/docs/GetWorkspaceStatusResponse.md b/docs/GetWorkspaceStatusResponse.md new file mode 100644 index 00000000..255f6899 --- /dev/null +++ b/docs/GetWorkspaceStatusResponse.md @@ -0,0 +1,29 @@ +# GetWorkspaceStatusResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **str** | Current workspace status | [optional] + +## Example + +```python +from fireblocks_client.models.get_workspace_status_response import GetWorkspaceStatusResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetWorkspaceStatusResponse from a JSON string +get_workspace_status_response_instance = GetWorkspaceStatusResponse.from_json(json) +# print the JSON string representation of the object +print GetWorkspaceStatusResponse.to_json() + +# convert the object into a dict +get_workspace_status_response_dict = get_workspace_status_response_instance.to_dict() +# create an instance of GetWorkspaceStatusResponse from a dict +get_workspace_status_response_form_dict = get_workspace_status_response.from_dict(get_workspace_status_response_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/docs/HttpContractDoesNotExistError.md b/docs/HttpContractDoesNotExistError.md new file mode 100644 index 00000000..f3bca660 --- /dev/null +++ b/docs/HttpContractDoesNotExistError.md @@ -0,0 +1,30 @@ +# HttpContractDoesNotExistError + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message** | **str** | Not Found error code | [optional] +**code** | **str** | Error code | [optional] + +## Example + +```python +from fireblocks_client.models.http_contract_does_not_exist_error import HttpContractDoesNotExistError + +# TODO update the JSON string below +json = "{}" +# create an instance of HttpContractDoesNotExistError from a JSON string +http_contract_does_not_exist_error_instance = HttpContractDoesNotExistError.from_json(json) +# print the JSON string representation of the object +print HttpContractDoesNotExistError.to_json() + +# convert the object into a dict +http_contract_does_not_exist_error_dict = http_contract_does_not_exist_error_instance.to_dict() +# create an instance of HttpContractDoesNotExistError from a dict +http_contract_does_not_exist_error_form_dict = http_contract_does_not_exist_error.from_dict(http_contract_does_not_exist_error_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/docs/InstructionAmount.md b/docs/InstructionAmount.md new file mode 100644 index 00000000..dcffdfe1 --- /dev/null +++ b/docs/InstructionAmount.md @@ -0,0 +1,30 @@ +# InstructionAmount + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**amount** | **str** | | +**asset_id** | **str** | | + +## Example + +```python +from fireblocks_client.models.instruction_amount import InstructionAmount + +# TODO update the JSON string below +json = "{}" +# create an instance of InstructionAmount from a JSON string +instruction_amount_instance = InstructionAmount.from_json(json) +# print the JSON string representation of the object +print InstructionAmount.to_json() + +# convert the object into a dict +instruction_amount_dict = instruction_amount_instance.to_dict() +# create an instance of InstructionAmount from a dict +instruction_amount_form_dict = instruction_amount.from_dict(instruction_amount_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/docs/InternalTransferResponse.md b/docs/InternalTransferResponse.md new file mode 100644 index 00000000..56173282 --- /dev/null +++ b/docs/InternalTransferResponse.md @@ -0,0 +1,29 @@ +# InternalTransferResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Indicates whether the transfer was successful | + +## Example + +```python +from fireblocks_client.models.internal_transfer_response import InternalTransferResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of InternalTransferResponse from a JSON string +internal_transfer_response_instance = InternalTransferResponse.from_json(json) +# print the JSON string representation of the object +print InternalTransferResponse.to_json() + +# convert the object into a dict +internal_transfer_response_dict = internal_transfer_response_instance.to_dict() +# create an instance of InternalTransferResponse from a dict +internal_transfer_response_form_dict = internal_transfer_response.from_dict(internal_transfer_response_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/docs/InternalWalletsApi.md b/docs/InternalWalletsApi.md new file mode 100644 index 00000000..94539139 --- /dev/null +++ b/docs/InternalWalletsApi.md @@ -0,0 +1,574 @@ +# fireblocks_client.InternalWalletsApi + +All URIs are relative to *https://api.fireblocks.io/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_internal_wallet**](InternalWalletsApi.md#create_internal_wallet) | **POST** /internal_wallets | Create an internal wallet +[**create_internal_wallet_asset**](InternalWalletsApi.md#create_internal_wallet_asset) | **POST** /internal_wallets/{walletId}/{assetId} | Add an asset to an internal wallet +[**delete_internal_wallet**](InternalWalletsApi.md#delete_internal_wallet) | **DELETE** /internal_wallets/{walletId} | Delete an internal wallet +[**delete_internal_wallet_asset**](InternalWalletsApi.md#delete_internal_wallet_asset) | **DELETE** /internal_wallets/{walletId}/{assetId} | Delete a whitelisted address from an internal wallet +[**get_internal_wallet**](InternalWalletsApi.md#get_internal_wallet) | **GET** /internal_wallets/{walletId} | Get assets for internal wallet +[**get_internal_wallet_asset**](InternalWalletsApi.md#get_internal_wallet_asset) | **GET** /internal_wallets/{walletId}/{assetId} | Get an asset from an internal wallet +[**get_internal_wallets**](InternalWalletsApi.md#get_internal_wallets) | **GET** /internal_wallets | List internal wallets +[**set_customer_ref_id_for_internal_wallet**](InternalWalletsApi.md#set_customer_ref_id_for_internal_wallet) | **POST** /internal_wallets/{walletId}/set_customer_ref_id | Set an AML/KYT customer reference ID for an internal wallet + + +# **create_internal_wallet** +> UnmanagedWallet create_internal_wallet(idempotency_key=idempotency_key, create_wallet_request=create_wallet_request) + +Create an internal wallet + +Creates a new internal wallet with the requested name. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.create_wallet_request import CreateWalletRequest +from fireblocks_client.models.unmanaged_wallet import UnmanagedWallet +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.InternalWalletsApi(api_client) + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + create_wallet_request = fireblocks_client.CreateWalletRequest() # CreateWalletRequest | (optional) + + try: + # Create an internal wallet + api_response = api_instance.create_internal_wallet(idempotency_key=idempotency_key, create_wallet_request=create_wallet_request) + print("The response of InternalWalletsApi->create_internal_wallet:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling InternalWalletsApi->create_internal_wallet: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + **create_wallet_request** | [**CreateWalletRequest**](CreateWalletRequest.md)| | [optional] + +### Return type + +[**UnmanagedWallet**](UnmanagedWallet.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A new wallet object | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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) + +# **create_internal_wallet_asset** +> WalletAsset create_internal_wallet_asset(wallet_id, asset_id, idempotency_key=idempotency_key, create_internal_wallet_asset_request=create_internal_wallet_asset_request) + +Add an asset to an internal wallet + +Adds an asset to an existing internal wallet. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.create_internal_wallet_asset_request import CreateInternalWalletAssetRequest +from fireblocks_client.models.wallet_asset import WalletAsset +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.InternalWalletsApi(api_client) + wallet_id = 'wallet_id_example' # str | The ID of the wallet + asset_id = 'asset_id_example' # str | The ID of the asset to add + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + create_internal_wallet_asset_request = fireblocks_client.CreateInternalWalletAssetRequest() # CreateInternalWalletAssetRequest | (optional) + + try: + # Add an asset to an internal wallet + api_response = api_instance.create_internal_wallet_asset(wallet_id, asset_id, idempotency_key=idempotency_key, create_internal_wallet_asset_request=create_internal_wallet_asset_request) + print("The response of InternalWalletsApi->create_internal_wallet_asset:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling InternalWalletsApi->create_internal_wallet_asset: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **wallet_id** | **str**| The ID of the wallet | + **asset_id** | **str**| The ID of the asset to add | + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + **create_internal_wallet_asset_request** | [**CreateInternalWalletAssetRequest**](CreateInternalWalletAssetRequest.md)| | [optional] + +### Return type + +[**WalletAsset**](WalletAsset.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A Wallet Asset object | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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) + +# **delete_internal_wallet** +> delete_internal_wallet(wallet_id) + +Delete an internal wallet + +Deletes an internal wallet by ID. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.InternalWalletsApi(api_client) + wallet_id = 'wallet_id_example' # str | The ID of the wallet to delete + + try: + # Delete an internal wallet + api_instance.delete_internal_wallet(wallet_id) + except Exception as e: + print("Exception when calling InternalWalletsApi->delete_internal_wallet: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **wallet_id** | **str**| The ID of the wallet to delete | + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | OK | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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) + +# **delete_internal_wallet_asset** +> delete_internal_wallet_asset(wallet_id, asset_id) + +Delete a whitelisted address from an internal wallet + +Deletes a whitelisted address (for an asset) from an internal wallet. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.InternalWalletsApi(api_client) + wallet_id = 'wallet_id_example' # str | The ID of the wallet + asset_id = 'asset_id_example' # str | The ID of the asset to delete + + try: + # Delete a whitelisted address from an internal wallet + api_instance.delete_internal_wallet_asset(wallet_id, asset_id) + except Exception as e: + print("Exception when calling InternalWalletsApi->delete_internal_wallet_asset: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **wallet_id** | **str**| The ID of the wallet | + **asset_id** | **str**| The ID of the asset to delete | + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | OK | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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_internal_wallet** +> UnmanagedWallet get_internal_wallet(wallet_id) + +Get assets for internal wallet + +Returns all assets in an internal wallet by ID. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.unmanaged_wallet import UnmanagedWallet +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.InternalWalletsApi(api_client) + wallet_id = 'wallet_id_example' # str | The ID of the wallet to return + + try: + # Get assets for internal wallet + api_response = api_instance.get_internal_wallet(wallet_id) + print("The response of InternalWalletsApi->get_internal_wallet:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling InternalWalletsApi->get_internal_wallet: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **wallet_id** | **str**| The ID of the wallet to return | + +### Return type + +[**UnmanagedWallet**](UnmanagedWallet.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A Wallet object | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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_internal_wallet_asset** +> WalletAsset get_internal_wallet_asset(wallet_id, asset_id) + +Get an asset from an internal wallet + +Returns information for an asset in an internal wallet. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.wallet_asset import WalletAsset +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.InternalWalletsApi(api_client) + wallet_id = 'wallet_id_example' # str | The ID of the wallet + asset_id = 'asset_id_example' # str | The ID of the asset to return + + try: + # Get an asset from an internal wallet + api_response = api_instance.get_internal_wallet_asset(wallet_id, asset_id) + print("The response of InternalWalletsApi->get_internal_wallet_asset:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling InternalWalletsApi->get_internal_wallet_asset: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **wallet_id** | **str**| The ID of the wallet | + **asset_id** | **str**| The ID of the asset to return | + +### Return type + +[**WalletAsset**](WalletAsset.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A Wallet Asset object | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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_internal_wallets** +> List[UnmanagedWallet] get_internal_wallets() + +List internal wallets + +Gets a list of internal wallets. **Note**: BTC-based assets belonging to whitelisted addresses cannot be retrieved between 00:00 UTC and 00:01 UTC daily due to third-party provider, Blockchair, being unavailable for this 60 second period. Please wait until the next minute to retrieve BTC-based assets. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.unmanaged_wallet import UnmanagedWallet +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.InternalWalletsApi(api_client) + + try: + # List internal wallets + api_response = api_instance.get_internal_wallets() + print("The response of InternalWalletsApi->get_internal_wallets:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling InternalWalletsApi->get_internal_wallets: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**List[UnmanagedWallet]**](UnmanagedWallet.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A list of internal wallets | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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) + +# **set_customer_ref_id_for_internal_wallet** +> set_customer_ref_id_for_internal_wallet(wallet_id, set_customer_ref_id_request, idempotency_key=idempotency_key) + +Set an AML/KYT customer reference ID for an internal wallet + +Sets an AML/KYT customer reference ID for the specific internal wallet. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.set_customer_ref_id_request import SetCustomerRefIdRequest +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.InternalWalletsApi(api_client) + wallet_id = 'wallet_id_example' # str | The wallet ID + set_customer_ref_id_request = fireblocks_client.SetCustomerRefIdRequest() # SetCustomerRefIdRequest | + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + + try: + # Set an AML/KYT customer reference ID for an internal wallet + api_instance.set_customer_ref_id_for_internal_wallet(wallet_id, set_customer_ref_id_request, idempotency_key=idempotency_key) + except Exception as e: + print("Exception when calling InternalWalletsApi->set_customer_ref_id_for_internal_wallet: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **wallet_id** | **str**| The wallet ID | + **set_customer_ref_id_request** | [**SetCustomerRefIdRequest**](SetCustomerRefIdRequest.md)| | + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | OK | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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) + diff --git a/docs/Job.md b/docs/Job.md new file mode 100644 index 00000000..acd3f208 --- /dev/null +++ b/docs/Job.md @@ -0,0 +1,36 @@ +# Job + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**tenant_id** | **str** | | [optional] +**type** | **str** | | [optional] +**user_id** | **str** | | [optional] +**created** | **float** | | [optional] +**updated** | **float** | | [optional] +**state** | **str** | | [optional] +**tasks** | [**List[Task]**](Task.md) | | [optional] + +## Example + +```python +from fireblocks_client.models.job import Job + +# TODO update the JSON string below +json = "{}" +# create an instance of Job from a JSON string +job_instance = Job.from_json(json) +# print the JSON string representation of the object +print Job.to_json() + +# convert the object into a dict +job_dict = job_instance.to_dict() +# create an instance of Job from a dict +job_form_dict = job.from_dict(job_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/docs/JobCreated.md b/docs/JobCreated.md new file mode 100644 index 00000000..d25d5eb7 --- /dev/null +++ b/docs/JobCreated.md @@ -0,0 +1,29 @@ +# JobCreated + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**job_id** | **str** | | [optional] + +## Example + +```python +from fireblocks_client.models.job_created import JobCreated + +# TODO update the JSON string below +json = "{}" +# create an instance of JobCreated from a JSON string +job_created_instance = JobCreated.from_json(json) +# print the JSON string representation of the object +print JobCreated.to_json() + +# convert the object into a dict +job_created_dict = job_created_instance.to_dict() +# create an instance of JobCreated from a dict +job_created_form_dict = job_created.from_dict(job_created_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/docs/JobManagementApi.md b/docs/JobManagementApi.md new file mode 100644 index 00000000..e5edbbe9 --- /dev/null +++ b/docs/JobManagementApi.md @@ -0,0 +1,427 @@ +# fireblocks_client.JobManagementApi + +All URIs are relative to *https://api.fireblocks.io/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**cancel_job**](JobManagementApi.md#cancel_job) | **POST** /batch/{jobId}/cancel | Cancel a running job +[**continue_job**](JobManagementApi.md#continue_job) | **POST** /batch/{jobId}/continue | Continue a paused job +[**get_job**](JobManagementApi.md#get_job) | **GET** /batch/{jobId} | Get job details +[**get_job_tasks**](JobManagementApi.md#get_job_tasks) | **GET** /batch/{jobId}/tasks | Return a list of tasks for given job +[**get_jobs**](JobManagementApi.md#get_jobs) | **GET** /batch/jobs | Return a list of jobs belonging to tenant +[**pause_job**](JobManagementApi.md#pause_job) | **POST** /batch/{jobId}/pause | Pause a job + + +# **cancel_job** +> cancel_job(job_id, idempotency_key=idempotency_key) + +Cancel a running job + +Stop the given job immediately. If the job is in the ‘Active’ state, the job will be canceled after completing the current task. Vault accounts and Wallets that are already created will not be affected. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.JobManagementApi(api_client) + job_id = 'job_id_example' # str | The requested job id + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + + try: + # Cancel a running job + api_instance.cancel_job(job_id, idempotency_key=idempotency_key) + except Exception as e: + print("Exception when calling JobManagementApi->cancel_job: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **job_id** | **str**| The requested job id | + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | canceled successfully | - | +**0** | Error Response | * X-Request-ID -
| + +[[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) + +# **continue_job** +> continue_job(job_id, idempotency_key=idempotency_key) + +Continue a paused job + +Continue the given paused job. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.JobManagementApi(api_client) + job_id = 'job_id_example' # str | The requested job id + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + + try: + # Continue a paused job + api_instance.continue_job(job_id, idempotency_key=idempotency_key) + except Exception as e: + print("Exception when calling JobManagementApi->continue_job: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **job_id** | **str**| The requested job id | + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | continued successfully | - | +**0** | Error Response | * X-Request-ID -
| + +[[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_job** +> Job get_job(job_id) + +Get job details + +Get an object describing the given job + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.job import Job +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.JobManagementApi(api_client) + job_id = 'job_id_example' # str | The requested job id + + try: + # Get job details + api_response = api_instance.get_job(job_id) + print("The response of JobManagementApi->get_job:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling JobManagementApi->get_job: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **job_id** | **str**| The requested job id | + +### Return type + +[**Job**](Job.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A JSON object that describes the job | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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_job_tasks** +> List[Task] get_job_tasks(job_id) + +Return a list of tasks for given job + +Return a list of tasks for given job + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.task import Task +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.JobManagementApi(api_client) + job_id = 'job_id_example' # str | The requested job id + + try: + # Return a list of tasks for given job + api_response = api_instance.get_job_tasks(job_id) + print("The response of JobManagementApi->get_job_tasks:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling JobManagementApi->get_job_tasks: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **job_id** | **str**| The requested job id | + +### Return type + +[**List[Task]**](Task.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | An array of tasks | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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_jobs** +> List[Job] get_jobs(from_time=from_time, to_time=to_time) + +Return a list of jobs belonging to tenant + +Get an array of objects including all active, paused, canceled, and complete jobs in a workspace. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.job import Job +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.JobManagementApi(api_client) + from_time = 56 # int | Start of time range in ms since 1970 (optional) + to_time = 56 # int | End of time range in ms since 1970 (optional) + + try: + # Return a list of jobs belonging to tenant + api_response = api_instance.get_jobs(from_time=from_time, to_time=to_time) + print("The response of JobManagementApi->get_jobs:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling JobManagementApi->get_jobs: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **from_time** | **int**| Start of time range in ms since 1970 | [optional] + **to_time** | **int**| End of time range in ms since 1970 | [optional] + +### Return type + +[**List[Job]**](Job.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | An array of jobs | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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) + +# **pause_job** +> pause_job(job_id, idempotency_key=idempotency_key) + +Pause a job + +Pause the given job, after the current task is done. A paused job can later be resumed by calling ‘continue’, or canceled. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.JobManagementApi(api_client) + job_id = 'job_id_example' # str | The requested job id + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + + try: + # Pause a job + api_instance.pause_job(job_id, idempotency_key=idempotency_key) + except Exception as e: + print("Exception when calling JobManagementApi->pause_job: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **job_id** | **str**| The requested job id | + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | paused successfully | - | +**0** | Error Response | * X-Request-ID -
| + +[[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) + diff --git a/docs/LeanAbiFunction.md b/docs/LeanAbiFunction.md new file mode 100644 index 00000000..acc6ad93 --- /dev/null +++ b/docs/LeanAbiFunction.md @@ -0,0 +1,30 @@ +# LeanAbiFunction + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | The function name | [optional] +**inputs** | [**List[ParameterWithValue]**](ParameterWithValue.md) | The function inputs | + +## Example + +```python +from fireblocks_client.models.lean_abi_function import LeanAbiFunction + +# TODO update the JSON string below +json = "{}" +# create an instance of LeanAbiFunction from a JSON string +lean_abi_function_instance = LeanAbiFunction.from_json(json) +# print the JSON string representation of the object +print LeanAbiFunction.to_json() + +# convert the object into a dict +lean_abi_function_dict = lean_abi_function_instance.to_dict() +# create an instance of LeanAbiFunction from a dict +lean_abi_function_form_dict = lean_abi_function.from_dict(lean_abi_function_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/docs/LeanContractDto.md b/docs/LeanContractDto.md new file mode 100644 index 00000000..6b43e75b --- /dev/null +++ b/docs/LeanContractDto.md @@ -0,0 +1,37 @@ +# LeanContractDto + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | The unique identifier of the contract template | +**name** | **str** | The name of the contract template | +**description** | **str** | A short description of the contract template | +**attributes** | [**ContractAttributes**](ContractAttributes.md) | The attributes related to this contract template. It will be displayed in the tokenization page | [optional] +**is_public** | **bool** | Is this a contract that is viewable by all fireblocks's users or is it visible only for this workspace | +**can_deploy** | **bool** | True if the workspace allowed to deploy this contract, false otherwise | [optional] +**owner** | **str** | The workspace id of the owner of this contract template. If it's a private contract, only this workspace will be allowed to deploy it | [optional] +**vendor** | [**VendorDto**](VendorDto.md) | The details of the vendor of this contract template. Applicable only for public contract templates | [optional] +**type** | **str** | | [optional] + +## Example + +```python +from fireblocks_client.models.lean_contract_dto import LeanContractDto + +# TODO update the JSON string below +json = "{}" +# create an instance of LeanContractDto from a JSON string +lean_contract_dto_instance = LeanContractDto.from_json(json) +# print the JSON string representation of the object +print LeanContractDto.to_json() + +# convert the object into a dict +lean_contract_dto_dict = lean_contract_dto_instance.to_dict() +# create an instance of LeanContractDto from a dict +lean_contract_dto_form_dict = lean_contract_dto.from_dict(lean_contract_dto_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/docs/LeanDeployedContractResponseDto.md b/docs/LeanDeployedContractResponseDto.md new file mode 100644 index 00000000..06568760 --- /dev/null +++ b/docs/LeanDeployedContractResponseDto.md @@ -0,0 +1,32 @@ +# LeanDeployedContractResponseDto + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | The deployed contract data identifier | +**contract_address** | **str** | The contract's onchain address | +**contract_template_id** | **str** | The contract template identifier | +**blockchain_id** | **str** | | + +## Example + +```python +from fireblocks_client.models.lean_deployed_contract_response_dto import LeanDeployedContractResponseDto + +# TODO update the JSON string below +json = "{}" +# create an instance of LeanDeployedContractResponseDto from a JSON string +lean_deployed_contract_response_dto_instance = LeanDeployedContractResponseDto.from_json(json) +# print the JSON string representation of the object +print LeanDeployedContractResponseDto.to_json() + +# convert the object into a dict +lean_deployed_contract_response_dto_dict = lean_deployed_contract_response_dto_instance.to_dict() +# create an instance of LeanDeployedContractResponseDto from a dict +lean_deployed_contract_response_dto_form_dict = lean_deployed_contract_response_dto.from_dict(lean_deployed_contract_response_dto_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/docs/ListOwnedCollectionsResponse.md b/docs/ListOwnedCollectionsResponse.md new file mode 100644 index 00000000..0ef38a8b --- /dev/null +++ b/docs/ListOwnedCollectionsResponse.md @@ -0,0 +1,30 @@ +# ListOwnedCollectionsResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**paging** | [**Paging**](Paging.md) | | [optional] +**data** | [**List[CollectionOwnershipResponse]**](CollectionOwnershipResponse.md) | | [optional] + +## Example + +```python +from fireblocks_client.models.list_owned_collections_response import ListOwnedCollectionsResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of ListOwnedCollectionsResponse from a JSON string +list_owned_collections_response_instance = ListOwnedCollectionsResponse.from_json(json) +# print the JSON string representation of the object +print ListOwnedCollectionsResponse.to_json() + +# convert the object into a dict +list_owned_collections_response_dict = list_owned_collections_response_instance.to_dict() +# create an instance of ListOwnedCollectionsResponse from a dict +list_owned_collections_response_form_dict = list_owned_collections_response.from_dict(list_owned_collections_response_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/docs/ListOwnedTokensResponse.md b/docs/ListOwnedTokensResponse.md new file mode 100644 index 00000000..bd25d995 --- /dev/null +++ b/docs/ListOwnedTokensResponse.md @@ -0,0 +1,30 @@ +# ListOwnedTokensResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**paging** | [**Paging**](Paging.md) | | [optional] +**data** | [**List[TokenResponse]**](TokenResponse.md) | | [optional] + +## Example + +```python +from fireblocks_client.models.list_owned_tokens_response import ListOwnedTokensResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of ListOwnedTokensResponse from a JSON string +list_owned_tokens_response_instance = ListOwnedTokensResponse.from_json(json) +# print the JSON string representation of the object +print ListOwnedTokensResponse.to_json() + +# convert the object into a dict +list_owned_tokens_response_dict = list_owned_tokens_response_instance.to_dict() +# create an instance of ListOwnedTokensResponse from a dict +list_owned_tokens_response_form_dict = list_owned_tokens_response.from_dict(list_owned_tokens_response_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/docs/MediaEntityResponse.md b/docs/MediaEntityResponse.md new file mode 100644 index 00000000..995c38a6 --- /dev/null +++ b/docs/MediaEntityResponse.md @@ -0,0 +1,30 @@ +# MediaEntityResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**url** | **str** | Cached accessible URL | +**content_type** | **str** | Media type | + +## Example + +```python +from fireblocks_client.models.media_entity_response import MediaEntityResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of MediaEntityResponse from a JSON string +media_entity_response_instance = MediaEntityResponse.from_json(json) +# print the JSON string representation of the object +print MediaEntityResponse.to_json() + +# convert the object into a dict +media_entity_response_dict = media_entity_response_instance.to_dict() +# create an instance of MediaEntityResponse from a dict +media_entity_response_form_dict = media_entity_response.from_dict(media_entity_response_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/docs/NFTsApi.md b/docs/NFTsApi.md new file mode 100644 index 00000000..46994f5c --- /dev/null +++ b/docs/NFTsApi.md @@ -0,0 +1,768 @@ +# fireblocks_client.NFTsApi + +All URIs are relative to *https://api.fireblocks.io/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_nft**](NFTsApi.md#get_nft) | **GET** /nfts/tokens/{id} | List token data by ID +[**get_nfts**](NFTsApi.md#get_nfts) | **GET** /nfts/tokens | List tokens by IDs +[**get_ownership_tokens**](NFTsApi.md#get_ownership_tokens) | **GET** /nfts/ownership/tokens | List all owned tokens (paginated) +[**list_owned_collections**](NFTsApi.md#list_owned_collections) | **GET** /nfts/ownership/collections | List owned collections (paginated) +[**list_owned_tokens**](NFTsApi.md#list_owned_tokens) | **GET** /nfts/ownership/assets | List all distinct owned tokens (paginated) +[**refresh_nft_metadata**](NFTsApi.md#refresh_nft_metadata) | **PUT** /nfts/tokens/{id} | Refresh token metadata +[**update_ownership_tokens**](NFTsApi.md#update_ownership_tokens) | **PUT** /nfts/ownership/tokens | Refresh vault account tokens +[**update_token_ownership_status**](NFTsApi.md#update_token_ownership_status) | **PUT** /nfts/ownership/tokens/{id}/status | Update token ownership status +[**update_tokens_ownership_spam**](NFTsApi.md#update_tokens_ownership_spam) | **PUT** /nfts/ownership/tokens/spam | Update tokens ownership spam property +[**update_tokens_ownership_status**](NFTsApi.md#update_tokens_ownership_status) | **PUT** /nfts/ownership/tokens/status | Update tokens ownership status + + +# **get_nft** +> TokenResponse get_nft(id) + +List token data by ID + +Returns the requested token data. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.token_response import TokenResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.NFTsApi(api_client) + id = 'NFT-abcdefabcdefabcdefabcdefabcdefabcdefabcd' # str | NFT ID + + try: + # List token data by ID + api_response = api_instance.get_nft(id) + print("The response of NFTsApi->get_nft:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling NFTsApi->get_nft: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| NFT ID | + +### Return type + +[**TokenResponse**](TokenResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | | * X-Request-ID -
| + +[[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_nfts** +> GetNFTsResponse get_nfts(ids, page_cursor=page_cursor, page_size=page_size, sort=sort, order=order) + +List tokens by IDs + +Returns the requested tokens data. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.get_nfts_response import GetNFTsResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.NFTsApi(api_client) + ids = 'ids_example' # str | A comma separated list of NFT IDs. Up to 100 are allowed in a single request. + page_cursor = 'page_cursor_example' # str | Page cursor to fetch (optional) + page_size = 3.4 # float | Items per page (max 100) (optional) + sort = ['sort_example'] # List[str] | Sort by param, it can be one param or a list of params separated by comma (optional) + order = 'ASC' # str | Order direction, it can be `ASC` for ascending or `DESC` for descending (optional) (default to 'ASC') + + try: + # List tokens by IDs + api_response = api_instance.get_nfts(ids, page_cursor=page_cursor, page_size=page_size, sort=sort, order=order) + print("The response of NFTsApi->get_nfts:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling NFTsApi->get_nfts: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ids** | **str**| A comma separated list of NFT IDs. Up to 100 are allowed in a single request. | + **page_cursor** | **str**| Page cursor to fetch | [optional] + **page_size** | **float**| Items per page (max 100) | [optional] + **sort** | [**List[str]**](str.md)| Sort by param, it can be one param or a list of params separated by comma | [optional] + **order** | **str**| Order direction, it can be `ASC` for ascending or `DESC` for descending | [optional] [default to 'ASC'] + +### Return type + +[**GetNFTsResponse**](GetNFTsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | | * X-Request-ID -
| + +[[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_ownership_tokens** +> GetOwnershipTokensResponse get_ownership_tokens(blockchain_descriptor=blockchain_descriptor, vault_account_ids=vault_account_ids, ncw_id=ncw_id, ncw_account_ids=ncw_account_ids, wallet_type=wallet_type, ids=ids, collection_ids=collection_ids, page_cursor=page_cursor, page_size=page_size, sort=sort, order=order, status=status, search=search, spam=spam) + +List all owned tokens (paginated) + +Returns all tokens and their data in your workspace. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.get_ownership_tokens_response import GetOwnershipTokensResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.NFTsApi(api_client) + blockchain_descriptor = 'blockchain_descriptor_example' # str | Blockchain descriptor filter (optional) + vault_account_ids = 'vault_account_ids_example' # str | A comma separated list of Vault Account IDs. Up to 100 are allowed in a single request. This field will be ignored when walletType=END_USER_WALLET or ncwId is provided. (optional) + ncw_id = 'ncw_id_example' # str | Tenant's Non-Custodial Wallet ID (optional) + ncw_account_ids = 'ncw_account_ids_example' # str | A comma separated list of Non-Custodial account IDs. Up to 100 are allowed in a single request. This field will be ignored when walletType=VAULT_ACCOUNT or ncwId is not provided. (optional) + wallet_type = 'VAULT_ACCOUNT' # str | Wallet type, it can be `VAULT_ACCOUNT` or `END_USER_WALLET` (optional) (default to 'VAULT_ACCOUNT') + ids = 'ids_example' # str | A comma separated list of NFT IDs. Up to 100 are allowed in a single request. (optional) + collection_ids = 'collection_ids_example' # str | A comma separated list of collection IDs. Up to 100 are allowed in a single request. (optional) + page_cursor = 'page_cursor_example' # str | Page cursor to fetch (optional) + page_size = 3.4 # float | Items per page (max 100) (optional) + sort = ['sort_example'] # List[str] | Sort by param, it can be one param or a list of params separated by comma (optional) + order = 'ASC' # str | Order direction, it can be `ASC` for ascending or `DESC` for descending (optional) (default to 'ASC') + status = 'LISTED' # str | Token ownership status (optional) (default to 'LISTED') + search = 'search_example' # str | Search owned tokens and their collections. Possible criteria for search: token name and id within the contract/collection, collection name, blockchain descriptor and name. (optional) + spam = 'spam_example' # str | Token ownership spam status. (optional) + + try: + # List all owned tokens (paginated) + api_response = api_instance.get_ownership_tokens(blockchain_descriptor=blockchain_descriptor, vault_account_ids=vault_account_ids, ncw_id=ncw_id, ncw_account_ids=ncw_account_ids, wallet_type=wallet_type, ids=ids, collection_ids=collection_ids, page_cursor=page_cursor, page_size=page_size, sort=sort, order=order, status=status, search=search, spam=spam) + print("The response of NFTsApi->get_ownership_tokens:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling NFTsApi->get_ownership_tokens: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **blockchain_descriptor** | **str**| Blockchain descriptor filter | [optional] + **vault_account_ids** | **str**| A comma separated list of Vault Account IDs. Up to 100 are allowed in a single request. This field will be ignored when walletType=END_USER_WALLET or ncwId is provided. | [optional] + **ncw_id** | **str**| Tenant's Non-Custodial Wallet ID | [optional] + **ncw_account_ids** | **str**| A comma separated list of Non-Custodial account IDs. Up to 100 are allowed in a single request. This field will be ignored when walletType=VAULT_ACCOUNT or ncwId is not provided. | [optional] + **wallet_type** | **str**| Wallet type, it can be `VAULT_ACCOUNT` or `END_USER_WALLET` | [optional] [default to 'VAULT_ACCOUNT'] + **ids** | **str**| A comma separated list of NFT IDs. Up to 100 are allowed in a single request. | [optional] + **collection_ids** | **str**| A comma separated list of collection IDs. Up to 100 are allowed in a single request. | [optional] + **page_cursor** | **str**| Page cursor to fetch | [optional] + **page_size** | **float**| Items per page (max 100) | [optional] + **sort** | [**List[str]**](str.md)| Sort by param, it can be one param or a list of params separated by comma | [optional] + **order** | **str**| Order direction, it can be `ASC` for ascending or `DESC` for descending | [optional] [default to 'ASC'] + **status** | **str**| Token ownership status | [optional] [default to 'LISTED'] + **search** | **str**| Search owned tokens and their collections. Possible criteria for search: token name and id within the contract/collection, collection name, blockchain descriptor and name. | [optional] + **spam** | **str**| Token ownership spam status. | [optional] + +### Return type + +[**GetOwnershipTokensResponse**](GetOwnershipTokensResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | | * X-Request-ID -
| + +[[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) + +# **list_owned_collections** +> ListOwnedCollectionsResponse list_owned_collections(ncw_id=ncw_id, wallet_type=wallet_type, search=search, page_cursor=page_cursor, page_size=page_size, sort=sort, order=order, status=status) + +List owned collections (paginated) + +Returns all collections in your workspace + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.list_owned_collections_response import ListOwnedCollectionsResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.NFTsApi(api_client) + ncw_id = 'ncw_id_example' # str | Tenant's Non-Custodial Wallet ID (optional) + wallet_type = 'VAULT_ACCOUNT' # str | Wallet type, it can be `VAULT_ACCOUNT` or `END_USER_WALLET` (optional) (default to 'VAULT_ACCOUNT') + search = 'search_example' # str | Search owned collections. Possible criteria for search: collection name, collection contract address. (optional) + page_cursor = 'page_cursor_example' # str | Page cursor to fetch (optional) + page_size = 3.4 # float | Items per page (max 100) (optional) + sort = ['sort_example'] # List[str] | Sort by param, it can be one param or a list of params separated by comma (optional) + order = 'ASC' # str | Order direction, it can be `ASC` for ascending or `DESC` for descending (optional) (default to 'ASC') + status = 'LISTED' # str | Token ownership status (optional) (default to 'LISTED') + + try: + # List owned collections (paginated) + api_response = api_instance.list_owned_collections(ncw_id=ncw_id, wallet_type=wallet_type, search=search, page_cursor=page_cursor, page_size=page_size, sort=sort, order=order, status=status) + print("The response of NFTsApi->list_owned_collections:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling NFTsApi->list_owned_collections: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ncw_id** | **str**| Tenant's Non-Custodial Wallet ID | [optional] + **wallet_type** | **str**| Wallet type, it can be `VAULT_ACCOUNT` or `END_USER_WALLET` | [optional] [default to 'VAULT_ACCOUNT'] + **search** | **str**| Search owned collections. Possible criteria for search: collection name, collection contract address. | [optional] + **page_cursor** | **str**| Page cursor to fetch | [optional] + **page_size** | **float**| Items per page (max 100) | [optional] + **sort** | [**List[str]**](str.md)| Sort by param, it can be one param or a list of params separated by comma | [optional] + **order** | **str**| Order direction, it can be `ASC` for ascending or `DESC` for descending | [optional] [default to 'ASC'] + **status** | **str**| Token ownership status | [optional] [default to 'LISTED'] + +### Return type + +[**ListOwnedCollectionsResponse**](ListOwnedCollectionsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | | * X-Request-ID -
| + +[[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) + +# **list_owned_tokens** +> ListOwnedTokensResponse list_owned_tokens(ncw_id=ncw_id, wallet_type=wallet_type, page_cursor=page_cursor, page_size=page_size, sort=sort, order=order, status=status, search=search, spam=spam) + +List all distinct owned tokens (paginated) + +Returns all owned distinct tokens (for your tenant) and their data in your workspace. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.list_owned_tokens_response import ListOwnedTokensResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.NFTsApi(api_client) + ncw_id = 'ncw_id_example' # str | Tenant's Non-Custodial Wallet ID (optional) + wallet_type = 'VAULT_ACCOUNT' # str | Wallet type, it can be `VAULT_ACCOUNT` or `END_USER_WALLET` (optional) (default to 'VAULT_ACCOUNT') + page_cursor = 'page_cursor_example' # str | Page cursor to fetch (optional) + page_size = 3.4 # float | Items per page (max 100) (optional) + sort = ['sort_example'] # List[str] | Sort by param, it can be one param or a list of params separated by comma (optional) + order = 'ASC' # str | Order direction, it can be `ASC` for ascending or `DESC` for descending (optional) (default to 'ASC') + status = 'LISTED' # str | Token ownership status (optional) (default to 'LISTED') + search = 'search_example' # str | Search owned tokens by token name (optional) + spam = 'spam_example' # str | Token ownership spam status. (optional) + + try: + # List all distinct owned tokens (paginated) + api_response = api_instance.list_owned_tokens(ncw_id=ncw_id, wallet_type=wallet_type, page_cursor=page_cursor, page_size=page_size, sort=sort, order=order, status=status, search=search, spam=spam) + print("The response of NFTsApi->list_owned_tokens:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling NFTsApi->list_owned_tokens: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ncw_id** | **str**| Tenant's Non-Custodial Wallet ID | [optional] + **wallet_type** | **str**| Wallet type, it can be `VAULT_ACCOUNT` or `END_USER_WALLET` | [optional] [default to 'VAULT_ACCOUNT'] + **page_cursor** | **str**| Page cursor to fetch | [optional] + **page_size** | **float**| Items per page (max 100) | [optional] + **sort** | [**List[str]**](str.md)| Sort by param, it can be one param or a list of params separated by comma | [optional] + **order** | **str**| Order direction, it can be `ASC` for ascending or `DESC` for descending | [optional] [default to 'ASC'] + **status** | **str**| Token ownership status | [optional] [default to 'LISTED'] + **search** | **str**| Search owned tokens by token name | [optional] + **spam** | **str**| Token ownership spam status. | [optional] + +### Return type + +[**ListOwnedTokensResponse**](ListOwnedTokensResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | | * X-Request-ID -
| + +[[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) + +# **refresh_nft_metadata** +> refresh_nft_metadata(id, idempotency_key=idempotency_key) + +Refresh token metadata + +Updates the latest token metadata. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.NFTsApi(api_client) + id = 'NFT-abcdefabcdefabcdefabcdefabcdefabcdefabcd' # str | NFT ID + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + + try: + # Refresh token metadata + api_instance.refresh_nft_metadata(id, idempotency_key=idempotency_key) + except Exception as e: + print("Exception when calling NFTsApi->refresh_nft_metadata: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| NFT ID | + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**202** | | * X-Request-ID -
| + +[[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) + +# **update_ownership_tokens** +> update_ownership_tokens(blockchain_descriptor, vault_account_id, idempotency_key=idempotency_key) + +Refresh vault account tokens + +Updates all tokens and balances per blockchain and vault account. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.NFTsApi(api_client) + blockchain_descriptor = 'blockchain_descriptor_example' # str | Blockchain descriptor filter + vault_account_id = 'vault_account_id_example' # str | Vault account filter + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + + try: + # Refresh vault account tokens + api_instance.update_ownership_tokens(blockchain_descriptor, vault_account_id, idempotency_key=idempotency_key) + except Exception as e: + print("Exception when calling NFTsApi->update_ownership_tokens: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **blockchain_descriptor** | **str**| Blockchain descriptor filter | + **vault_account_id** | **str**| Vault account filter | + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**202** | | * X-Request-ID -
| + +[[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) + +# **update_token_ownership_status** +> update_token_ownership_status(id, update_token_ownership_status_dto, idempotency_key=idempotency_key) + +Update token ownership status + +Updates token status for a tenant, in all tenant vaults. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.update_token_ownership_status_dto import UpdateTokenOwnershipStatusDto +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.NFTsApi(api_client) + id = 'NFT-abcdefabcdefabcdefabcdefabcdefabcdefabcd' # str | NFT ID + update_token_ownership_status_dto = fireblocks_client.UpdateTokenOwnershipStatusDto() # UpdateTokenOwnershipStatusDto | + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + + try: + # Update token ownership status + api_instance.update_token_ownership_status(id, update_token_ownership_status_dto, idempotency_key=idempotency_key) + except Exception as e: + print("Exception when calling NFTsApi->update_token_ownership_status: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| NFT ID | + **update_token_ownership_status_dto** | [**UpdateTokenOwnershipStatusDto**](UpdateTokenOwnershipStatusDto.md)| | + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: Not defined + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | | * X-Request-ID -
| + +[[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) + +# **update_tokens_ownership_spam** +> update_tokens_ownership_spam(token_ownership_spam_update_payload, idempotency_key=idempotency_key) + +Update tokens ownership spam property + +Updates tokens spam property for a tenant's token ownerships, in all tenant vaults. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.token_ownership_spam_update_payload import TokenOwnershipSpamUpdatePayload +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.NFTsApi(api_client) + token_ownership_spam_update_payload = [fireblocks_client.TokenOwnershipSpamUpdatePayload()] # List[TokenOwnershipSpamUpdatePayload] | + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + + try: + # Update tokens ownership spam property + api_instance.update_tokens_ownership_spam(token_ownership_spam_update_payload, idempotency_key=idempotency_key) + except Exception as e: + print("Exception when calling NFTsApi->update_tokens_ownership_spam: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **token_ownership_spam_update_payload** | [**List[TokenOwnershipSpamUpdatePayload]**](TokenOwnershipSpamUpdatePayload.md)| | + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: Not defined + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | All token spam properties have been updated | * X-Request-ID -
| +**400** | Invalid data sent | * X-Request-ID -
| +**404** | When ownership for token ID is not found | * X-Request-ID -
| + +[[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) + +# **update_tokens_ownership_status** +> update_tokens_ownership_status(token_ownership_status_update_payload, idempotency_key=idempotency_key) + +Update tokens ownership status + +Updates tokens status for a tenant, in all tenant vaults. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.token_ownership_status_update_payload import TokenOwnershipStatusUpdatePayload +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.NFTsApi(api_client) + token_ownership_status_update_payload = [fireblocks_client.TokenOwnershipStatusUpdatePayload()] # List[TokenOwnershipStatusUpdatePayload] | + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + + try: + # Update tokens ownership status + api_instance.update_tokens_ownership_status(token_ownership_status_update_payload, idempotency_key=idempotency_key) + except Exception as e: + print("Exception when calling NFTsApi->update_tokens_ownership_status: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **token_ownership_status_update_payload** | [**List[TokenOwnershipStatusUpdatePayload]**](TokenOwnershipStatusUpdatePayload.md)| | + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: Not defined + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | All token statuses have been updated | * X-Request-ID -
| +**400** | Invalid data sent | * X-Request-ID -
| +**404** | When ownership for token ID is not found | * X-Request-ID -
| + +[[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) + diff --git a/docs/NetworkChannel.md b/docs/NetworkChannel.md new file mode 100644 index 00000000..fd1aa121 --- /dev/null +++ b/docs/NetworkChannel.md @@ -0,0 +1,31 @@ +# NetworkChannel + +Deprecated in the only used reference - NetworkConnectionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**network_id** | **str** | | [optional] +**name** | **str** | | [optional] + +## Example + +```python +from fireblocks_client.models.network_channel import NetworkChannel + +# TODO update the JSON string below +json = "{}" +# create an instance of NetworkChannel from a JSON string +network_channel_instance = NetworkChannel.from_json(json) +# print the JSON string representation of the object +print NetworkChannel.to_json() + +# convert the object into a dict +network_channel_dict = network_channel_instance.to_dict() +# create an instance of NetworkChannel from a dict +network_channel_form_dict = network_channel.from_dict(network_channel_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/docs/NetworkConnection.md b/docs/NetworkConnection.md new file mode 100644 index 00000000..b7a420c3 --- /dev/null +++ b/docs/NetworkConnection.md @@ -0,0 +1,31 @@ +# NetworkConnection + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**local_network_id** | **str** | The network ID of the profile trying to create the connection. | +**remote_network_id** | **str** | The network ID the profile is attempting to connect to. | +**routing_policy** | [**Dict[str, NetworkConnectionRoutingPolicyValue]**](NetworkConnectionRoutingPolicyValue.md) | | [optional] + +## Example + +```python +from fireblocks_client.models.network_connection import NetworkConnection + +# TODO update the JSON string below +json = "{}" +# create an instance of NetworkConnection from a JSON string +network_connection_instance = NetworkConnection.from_json(json) +# print the JSON string representation of the object +print NetworkConnection.to_json() + +# convert the object into a dict +network_connection_dict = network_connection_instance.to_dict() +# create an instance of NetworkConnection from a dict +network_connection_form_dict = network_connection.from_dict(network_connection_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/docs/NetworkConnectionResponse.md b/docs/NetworkConnectionResponse.md new file mode 100644 index 00000000..1f6203b2 --- /dev/null +++ b/docs/NetworkConnectionResponse.md @@ -0,0 +1,35 @@ +# NetworkConnectionResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | +**local_channel** | [**NetworkChannel**](NetworkChannel.md) | Deprecated - Replaced by `localNetworkId` | [optional] +**remote_channel** | [**NetworkChannel**](NetworkChannel.md) | Deprecated - Replaced by `remoteNetworkId` | [optional] +**status** | [**NetworkConnectionStatus**](NetworkConnectionStatus.md) | | +**local_network_id** | [**NetworkId**](NetworkId.md) | | +**remote_network_id** | [**NetworkId**](NetworkId.md) | | +**routing_policy** | [**Dict[str, NetworkConnectionRoutingPolicyValue]**](NetworkConnectionRoutingPolicyValue.md) | | + +## Example + +```python +from fireblocks_client.models.network_connection_response import NetworkConnectionResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of NetworkConnectionResponse from a JSON string +network_connection_response_instance = NetworkConnectionResponse.from_json(json) +# print the JSON string representation of the object +print NetworkConnectionResponse.to_json() + +# convert the object into a dict +network_connection_response_dict = network_connection_response_instance.to_dict() +# create an instance of NetworkConnectionResponse from a dict +network_connection_response_form_dict = network_connection_response.from_dict(network_connection_response_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/docs/NetworkConnectionRoutingPolicyValue.md b/docs/NetworkConnectionRoutingPolicyValue.md new file mode 100644 index 00000000..04e51bc7 --- /dev/null +++ b/docs/NetworkConnectionRoutingPolicyValue.md @@ -0,0 +1,31 @@ +# NetworkConnectionRoutingPolicyValue + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**scheme** | **str** | No network routing logic. | +**dst_type** | **str** | The account the funds are being sent to. | +**dst_id** | **str** | The ID of the account the funds are being sent to. | + +## Example + +```python +from fireblocks_client.models.network_connection_routing_policy_value import NetworkConnectionRoutingPolicyValue + +# TODO update the JSON string below +json = "{}" +# create an instance of NetworkConnectionRoutingPolicyValue from a JSON string +network_connection_routing_policy_value_instance = NetworkConnectionRoutingPolicyValue.from_json(json) +# print the JSON string representation of the object +print NetworkConnectionRoutingPolicyValue.to_json() + +# convert the object into a dict +network_connection_routing_policy_value_dict = network_connection_routing_policy_value_instance.to_dict() +# create an instance of NetworkConnectionRoutingPolicyValue from a dict +network_connection_routing_policy_value_form_dict = network_connection_routing_policy_value.from_dict(network_connection_routing_policy_value_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/docs/NetworkConnectionStatus.md b/docs/NetworkConnectionStatus.md new file mode 100644 index 00000000..9ea0ceb1 --- /dev/null +++ b/docs/NetworkConnectionStatus.md @@ -0,0 +1,11 @@ +# NetworkConnectionStatus + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[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/NetworkConnectionsApi.md b/docs/NetworkConnectionsApi.md new file mode 100644 index 00000000..3c11fc5e --- /dev/null +++ b/docs/NetworkConnectionsApi.md @@ -0,0 +1,995 @@ +# fireblocks_client.NetworkConnectionsApi + +All URIs are relative to *https://api.fireblocks.io/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**check_third_party_routing**](NetworkConnectionsApi.md#check_third_party_routing) | **GET** /network_connections/{connectionId}/is_third_party_routing/{assetType} | Retrieve third-party network routing validation by asset type. +[**create_network_connection**](NetworkConnectionsApi.md#create_network_connection) | **POST** /network_connections | Creates a new network connection +[**create_network_id**](NetworkConnectionsApi.md#create_network_id) | **POST** /network_ids | Creates a new Network ID +[**delete_network_connection**](NetworkConnectionsApi.md#delete_network_connection) | **DELETE** /network_connections/{connectionId} | Deletes a network connection by ID +[**delete_network_id**](NetworkConnectionsApi.md#delete_network_id) | **DELETE** /network_ids/{networkId} | Deletes specific network ID. +[**get_network**](NetworkConnectionsApi.md#get_network) | **GET** /network_connections/{connectionId} | Get a network connection +[**get_network_connections**](NetworkConnectionsApi.md#get_network_connections) | **GET** /network_connections | List network connections +[**get_network_id**](NetworkConnectionsApi.md#get_network_id) | **GET** /network_ids/{networkId} | Returns specific network ID. +[**get_network_ids**](NetworkConnectionsApi.md#get_network_ids) | **GET** /network_ids | Returns all network IDs, both local IDs and discoverable remote IDs +[**get_routing_policy_asset_groups**](NetworkConnectionsApi.md#get_routing_policy_asset_groups) | **GET** /network_ids/routing_policy_asset_groups | Returns all enabled routing policy asset groups +[**set_network_id_discoverability**](NetworkConnectionsApi.md#set_network_id_discoverability) | **PATCH** /network_ids/{networkId}/set_discoverability | Update network ID's discoverability. +[**set_network_id_name**](NetworkConnectionsApi.md#set_network_id_name) | **PATCH** /network_ids/{networkId}/set_name | Update network ID's name. +[**set_network_id_routing_policy**](NetworkConnectionsApi.md#set_network_id_routing_policy) | **PATCH** /network_ids/{networkId}/set_routing_policy | Update network id routing policy. +[**set_routing_policy**](NetworkConnectionsApi.md#set_routing_policy) | **PATCH** /network_connections/{connectionId}/set_routing_policy | Update network connection routing policy. + + +# **check_third_party_routing** +> ThirdPartyRouting check_third_party_routing(connection_id, asset_type) + +Retrieve third-party network routing validation by asset type. + +The Fireblocks Network allows for flexibility around incoming deposits. A receiver can receive network deposits to locations other than Fireblocks. This endpoint validates whether future transactions are routed to the displayed recipient or to a 3rd party. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.third_party_routing import ThirdPartyRouting +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.NetworkConnectionsApi(api_client) + connection_id = 'connection_id_example' # str | The ID of the network connection + asset_type = 'asset_type_example' # str | The destination asset type + + try: + # Retrieve third-party network routing validation by asset type. + api_response = api_instance.check_third_party_routing(connection_id, asset_type) + print("The response of NetworkConnectionsApi->check_third_party_routing:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling NetworkConnectionsApi->check_third_party_routing: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **connection_id** | **str**| The ID of the network connection | + **asset_type** | **str**| The destination asset type | + +### Return type + +[**ThirdPartyRouting**](ThirdPartyRouting.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | result for the validation | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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) + +# **create_network_connection** +> NetworkConnectionResponse create_network_connection(idempotency_key=idempotency_key, network_connection=network_connection) + +Creates a new network connection + +Initiates a new network connection. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** Supported asset groups for routing police can be found at `/network_ids/routing_policy_asset_groups` - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.network_connection import NetworkConnection +from fireblocks_client.models.network_connection_response import NetworkConnectionResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.NetworkConnectionsApi(api_client) + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + network_connection = fireblocks_client.NetworkConnection() # NetworkConnection | (optional) + + try: + # Creates a new network connection + api_response = api_instance.create_network_connection(idempotency_key=idempotency_key, network_connection=network_connection) + print("The response of NetworkConnectionsApi->create_network_connection:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling NetworkConnectionsApi->create_network_connection: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + **network_connection** | [**NetworkConnection**](NetworkConnection.md)| | [optional] + +### Return type + +[**NetworkConnectionResponse**](NetworkConnectionResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | A Network Connection object | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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) + +# **create_network_id** +> NetworkIdResponse create_network_id(idempotency_key=idempotency_key, create_network_id_request=create_network_id_request) + +Creates a new Network ID + +Creates a new Network ID. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** Supported asset groups for routing police can be found at `/network_ids/routing_policy_asset_groups` - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.create_network_id_request import CreateNetworkIdRequest +from fireblocks_client.models.network_id_response import NetworkIdResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.NetworkConnectionsApi(api_client) + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + create_network_id_request = fireblocks_client.CreateNetworkIdRequest() # CreateNetworkIdRequest | (optional) + + try: + # Creates a new Network ID + api_response = api_instance.create_network_id(idempotency_key=idempotency_key, create_network_id_request=create_network_id_request) + print("The response of NetworkConnectionsApi->create_network_id:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling NetworkConnectionsApi->create_network_id: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + **create_network_id_request** | [**CreateNetworkIdRequest**](CreateNetworkIdRequest.md)| | [optional] + +### Return type + +[**NetworkIdResponse**](NetworkIdResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | Returns the new network ID in your workspace | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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) + +# **delete_network_connection** +> DeleteNetworkConnectionResponse delete_network_connection(connection_id) + +Deletes a network connection by ID + +Deletes an existing network connection specified by its connection ID. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.delete_network_connection_response import DeleteNetworkConnectionResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.NetworkConnectionsApi(api_client) + connection_id = 'connection_id_example' # str | The ID of the network connection to delete + + try: + # Deletes a network connection by ID + api_response = api_instance.delete_network_connection(connection_id) + print("The response of NetworkConnectionsApi->delete_network_connection:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling NetworkConnectionsApi->delete_network_connection: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **connection_id** | **str**| The ID of the network connection to delete | + +### Return type + +[**DeleteNetworkConnectionResponse**](DeleteNetworkConnectionResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Network ID | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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) + +# **delete_network_id** +> DeleteNetworkIdResponse delete_network_id(network_id) + +Deletes specific network ID. + +Deletes a network by its ID. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.delete_network_id_response import DeleteNetworkIdResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.NetworkConnectionsApi(api_client) + network_id = 'network_id_example' # str | The ID of the network + + try: + # Deletes specific network ID. + api_response = api_instance.delete_network_id(network_id) + print("The response of NetworkConnectionsApi->delete_network_id:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling NetworkConnectionsApi->delete_network_id: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **network_id** | **str**| The ID of the network | + +### Return type + +[**DeleteNetworkIdResponse**](DeleteNetworkIdResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Network ID | - | +**0** | Error Response | * X-Request-ID -
| + +[[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_network** +> NetworkConnectionResponse get_network(connection_id) + +Get a network connection + +Gets a network connection by ID. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.network_connection_response import NetworkConnectionResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.NetworkConnectionsApi(api_client) + connection_id = 'connection_id_example' # str | The ID of the connection + + try: + # Get a network connection + api_response = api_instance.get_network(connection_id) + print("The response of NetworkConnectionsApi->get_network:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling NetworkConnectionsApi->get_network: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **connection_id** | **str**| The ID of the connection | + +### Return type + +[**NetworkConnectionResponse**](NetworkConnectionResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A network connection | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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_network_connections** +> List[NetworkConnectionResponse] get_network_connections() + +List network connections + +Returns all network connections. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.network_connection_response import NetworkConnectionResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.NetworkConnectionsApi(api_client) + + try: + # List network connections + api_response = api_instance.get_network_connections() + print("The response of NetworkConnectionsApi->get_network_connections:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling NetworkConnectionsApi->get_network_connections: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**List[NetworkConnectionResponse]**](NetworkConnectionResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A list of network connections | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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_network_id** +> NetworkIdResponse get_network_id(network_id) + +Returns specific network ID. + +Retrieves a network by its ID. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.network_id_response import NetworkIdResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.NetworkConnectionsApi(api_client) + network_id = 'network_id_example' # str | The ID of the network + + try: + # Returns specific network ID. + api_response = api_instance.get_network_id(network_id) + print("The response of NetworkConnectionsApi->get_network_id:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling NetworkConnectionsApi->get_network_id: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **network_id** | **str**| The ID of the network | + +### Return type + +[**NetworkIdResponse**](NetworkIdResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Network ID | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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_network_ids** +> List[NetworkIdResponse] get_network_ids() + +Returns all network IDs, both local IDs and discoverable remote IDs + +Retrieves a list of all local and discoverable remote network IDs. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.network_id_response import NetworkIdResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.NetworkConnectionsApi(api_client) + + try: + # Returns all network IDs, both local IDs and discoverable remote IDs + api_response = api_instance.get_network_ids() + print("The response of NetworkConnectionsApi->get_network_ids:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling NetworkConnectionsApi->get_network_ids: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**List[NetworkIdResponse]**](NetworkIdResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A list of network IDs | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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_routing_policy_asset_groups** +> List[str] get_routing_policy_asset_groups() + +Returns all enabled routing policy asset groups + +Retrieves a list of all enabled routing policy asset groups. Your routing policy defines how your transactions are routed. You can use one or more enabled routing policy asset groups to describe connection or network id routing policy. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.NetworkConnectionsApi(api_client) + + try: + # Returns all enabled routing policy asset groups + api_response = api_instance.get_routing_policy_asset_groups() + print("The response of NetworkConnectionsApi->get_routing_policy_asset_groups:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling NetworkConnectionsApi->get_routing_policy_asset_groups: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +**List[str]** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A list of enabled routing policy asset groups | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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) + +# **set_network_id_discoverability** +> SetNetworkIdResponse set_network_id_discoverability(network_id, set_network_id_discoverability_request) + +Update network ID's discoverability. + +Update whether or not the network ID is discoverable by others. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.set_network_id_discoverability_request import SetNetworkIdDiscoverabilityRequest +from fireblocks_client.models.set_network_id_response import SetNetworkIdResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.NetworkConnectionsApi(api_client) + network_id = 'network_id_example' # str | The ID of the network + set_network_id_discoverability_request = fireblocks_client.SetNetworkIdDiscoverabilityRequest() # SetNetworkIdDiscoverabilityRequest | + + try: + # Update network ID's discoverability. + api_response = api_instance.set_network_id_discoverability(network_id, set_network_id_discoverability_request) + print("The response of NetworkConnectionsApi->set_network_id_discoverability:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling NetworkConnectionsApi->set_network_id_discoverability: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **network_id** | **str**| The ID of the network | + **set_network_id_discoverability_request** | [**SetNetworkIdDiscoverabilityRequest**](SetNetworkIdDiscoverabilityRequest.md)| | + +### Return type + +[**SetNetworkIdResponse**](SetNetworkIdResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Network ID | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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) + +# **set_network_id_name** +> SetNetworkIdResponse set_network_id_name(network_id, set_network_id_name_request) + +Update network ID's name. + +Updates name of a specified network ID. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.set_network_id_name_request import SetNetworkIdNameRequest +from fireblocks_client.models.set_network_id_response import SetNetworkIdResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.NetworkConnectionsApi(api_client) + network_id = 'network_id_example' # str | The ID of the network + set_network_id_name_request = fireblocks_client.SetNetworkIdNameRequest() # SetNetworkIdNameRequest | + + try: + # Update network ID's name. + api_response = api_instance.set_network_id_name(network_id, set_network_id_name_request) + print("The response of NetworkConnectionsApi->set_network_id_name:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling NetworkConnectionsApi->set_network_id_name: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **network_id** | **str**| The ID of the network | + **set_network_id_name_request** | [**SetNetworkIdNameRequest**](SetNetworkIdNameRequest.md)| | + +### Return type + +[**SetNetworkIdResponse**](SetNetworkIdResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Network ID | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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) + +# **set_network_id_routing_policy** +> SetNetworkIdResponse set_network_id_routing_policy(network_id, set_network_id_routing_policy_request=set_network_id_routing_policy_request) + +Update network id routing policy. + +Updates the routing policy of a specified network ID. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** Supported asset groups for routing police can be found at `/network_ids/routing_policy_asset_groups` - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.set_network_id_response import SetNetworkIdResponse +from fireblocks_client.models.set_network_id_routing_policy_request import SetNetworkIdRoutingPolicyRequest +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.NetworkConnectionsApi(api_client) + network_id = 'network_id_example' # str | The ID of the network + set_network_id_routing_policy_request = fireblocks_client.SetNetworkIdRoutingPolicyRequest() # SetNetworkIdRoutingPolicyRequest | (optional) + + try: + # Update network id routing policy. + api_response = api_instance.set_network_id_routing_policy(network_id, set_network_id_routing_policy_request=set_network_id_routing_policy_request) + print("The response of NetworkConnectionsApi->set_network_id_routing_policy:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling NetworkConnectionsApi->set_network_id_routing_policy: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **network_id** | **str**| The ID of the network | + **set_network_id_routing_policy_request** | [**SetNetworkIdRoutingPolicyRequest**](SetNetworkIdRoutingPolicyRequest.md)| | [optional] + +### Return type + +[**SetNetworkIdResponse**](SetNetworkIdResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Network ID | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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) + +# **set_routing_policy** +> SetRoutingPolicyResponse set_routing_policy(connection_id, set_routing_policy_request=set_routing_policy_request) + +Update network connection routing policy. + +Updates an existing network connection's routing policy. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** Supported asset groups for routing police can be found at `/network_ids/routing_policy_asset_groups` - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.set_routing_policy_request import SetRoutingPolicyRequest +from fireblocks_client.models.set_routing_policy_response import SetRoutingPolicyResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.NetworkConnectionsApi(api_client) + connection_id = 'connection_id_example' # str | The ID of the network connection + set_routing_policy_request = fireblocks_client.SetRoutingPolicyRequest() # SetRoutingPolicyRequest | (optional) + + try: + # Update network connection routing policy. + api_response = api_instance.set_routing_policy(connection_id, set_routing_policy_request=set_routing_policy_request) + print("The response of NetworkConnectionsApi->set_routing_policy:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling NetworkConnectionsApi->set_routing_policy: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **connection_id** | **str**| The ID of the network connection | + **set_routing_policy_request** | [**SetRoutingPolicyRequest**](SetRoutingPolicyRequest.md)| | [optional] + +### Return type + +[**SetRoutingPolicyResponse**](SetRoutingPolicyResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Network ID | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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) + diff --git a/docs/NetworkFee.md b/docs/NetworkFee.md new file mode 100644 index 00000000..c7de8ef5 --- /dev/null +++ b/docs/NetworkFee.md @@ -0,0 +1,33 @@ +# NetworkFee + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**fee_per_byte** | **str** | | [optional] +**gas_price** | **str** | | [optional] +**network_fee** | **str** | | [optional] +**base_fee** | **str** | (optional) Base Fee according to EIP-1559 (ETH assets) | [optional] +**priority_fee** | **str** | (optional) Priority Fee according to EIP-1559 (ETH assets) | [optional] + +## Example + +```python +from fireblocks_client.models.network_fee import NetworkFee + +# TODO update the JSON string below +json = "{}" +# create an instance of NetworkFee from a JSON string +network_fee_instance = NetworkFee.from_json(json) +# print the JSON string representation of the object +print NetworkFee.to_json() + +# convert the object into a dict +network_fee_dict = network_fee_instance.to_dict() +# create an instance of NetworkFee from a dict +network_fee_form_dict = network_fee.from_dict(network_fee_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/docs/NetworkId.md b/docs/NetworkId.md new file mode 100644 index 00000000..ca117ca5 --- /dev/null +++ b/docs/NetworkId.md @@ -0,0 +1,30 @@ +# NetworkId + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | +**name** | **str** | | + +## Example + +```python +from fireblocks_client.models.network_id import NetworkId + +# TODO update the JSON string below +json = "{}" +# create an instance of NetworkId from a JSON string +network_id_instance = NetworkId.from_json(json) +# print the JSON string representation of the object +print NetworkId.to_json() + +# convert the object into a dict +network_id_dict = network_id_instance.to_dict() +# create an instance of NetworkId from a dict +network_id_form_dict = network_id.from_dict(network_id_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/docs/NetworkIdResponse.md b/docs/NetworkIdResponse.md new file mode 100644 index 00000000..567aa5e8 --- /dev/null +++ b/docs/NetworkIdResponse.md @@ -0,0 +1,32 @@ +# NetworkIdResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | +**name** | **str** | | +**routing_policy** | [**Dict[str, NetworkIdRoutingPolicyValue]**](NetworkIdRoutingPolicyValue.md) | | [optional] +**is_discoverable** | **bool** | The specific network is discoverable. | [optional] + +## Example + +```python +from fireblocks_client.models.network_id_response import NetworkIdResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of NetworkIdResponse from a JSON string +network_id_response_instance = NetworkIdResponse.from_json(json) +# print the JSON string representation of the object +print NetworkIdResponse.to_json() + +# convert the object into a dict +network_id_response_dict = network_id_response_instance.to_dict() +# create an instance of NetworkIdResponse from a dict +network_id_response_form_dict = network_id_response.from_dict(network_id_response_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/docs/NetworkIdRoutingPolicyValue.md b/docs/NetworkIdRoutingPolicyValue.md new file mode 100644 index 00000000..69d52f71 --- /dev/null +++ b/docs/NetworkIdRoutingPolicyValue.md @@ -0,0 +1,31 @@ +# NetworkIdRoutingPolicyValue + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**scheme** | **str** | No network routing logic. | +**dst_type** | **str** | The account the funds are being sent to. | +**dst_id** | **str** | The ID of the account the funds are being sent to. | + +## Example + +```python +from fireblocks_client.models.network_id_routing_policy_value import NetworkIdRoutingPolicyValue + +# TODO update the JSON string below +json = "{}" +# create an instance of NetworkIdRoutingPolicyValue from a JSON string +network_id_routing_policy_value_instance = NetworkIdRoutingPolicyValue.from_json(json) +# print the JSON string representation of the object +print NetworkIdRoutingPolicyValue.to_json() + +# convert the object into a dict +network_id_routing_policy_value_dict = network_id_routing_policy_value_instance.to_dict() +# create an instance of NetworkIdRoutingPolicyValue from a dict +network_id_routing_policy_value_form_dict = network_id_routing_policy_value.from_dict(network_id_routing_policy_value_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/docs/NetworkRecord.md b/docs/NetworkRecord.md new file mode 100644 index 00000000..736cab0a --- /dev/null +++ b/docs/NetworkRecord.md @@ -0,0 +1,41 @@ +# NetworkRecord + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**source** | [**SourceTransferPeerPathResponse**](SourceTransferPeerPathResponse.md) | | [optional] +**destination** | [**DestinationTransferPeerPathResponse**](DestinationTransferPeerPathResponse.md) | | [optional] +**tx_hash** | **str** | | [optional] +**network_fee** | **str** | | [optional] +**asset_id** | **str** | | [optional] +**net_amount** | **str** | The net amount of the transaction, after fee deduction | [optional] +**is_dropped** | **bool** | | [optional] +**type** | **str** | | [optional] +**destination_address** | **str** | | [optional] +**source_address** | **str** | | [optional] +**amount_usd** | **str** | | [optional] +**index** | **float** | | [optional] +**reward_info** | [**RewardInfo**](RewardInfo.md) | | [optional] + +## Example + +```python +from fireblocks_client.models.network_record import NetworkRecord + +# TODO update the JSON string below +json = "{}" +# create an instance of NetworkRecord from a JSON string +network_record_instance = NetworkRecord.from_json(json) +# print the JSON string representation of the object +print NetworkRecord.to_json() + +# convert the object into a dict +network_record_dict = network_record_instance.to_dict() +# create an instance of NetworkRecord from a dict +network_record_form_dict = network_record.from_dict(network_record_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/docs/NoneNetworkRoutingDest.md b/docs/NoneNetworkRoutingDest.md new file mode 100644 index 00000000..50cae98a --- /dev/null +++ b/docs/NoneNetworkRoutingDest.md @@ -0,0 +1,29 @@ +# NoneNetworkRoutingDest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**scheme** | **str** | No network routing logic. | + +## Example + +```python +from fireblocks_client.models.none_network_routing_dest import NoneNetworkRoutingDest + +# TODO update the JSON string below +json = "{}" +# create an instance of NoneNetworkRoutingDest from a JSON string +none_network_routing_dest_instance = NoneNetworkRoutingDest.from_json(json) +# print the JSON string representation of the object +print NoneNetworkRoutingDest.to_json() + +# convert the object into a dict +none_network_routing_dest_dict = none_network_routing_dest_instance.to_dict() +# create an instance of NoneNetworkRoutingDest from a dict +none_network_routing_dest_form_dict = none_network_routing_dest.from_dict(none_network_routing_dest_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/docs/NotFoundException.md b/docs/NotFoundException.md new file mode 100644 index 00000000..560ab009 --- /dev/null +++ b/docs/NotFoundException.md @@ -0,0 +1,31 @@ +# NotFoundException + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status_code** | **int** | HTTP status code | [optional] +**message** | **str** | Error message | [optional] +**error** | **str** | Short description of the HTTP error | [optional] + +## Example + +```python +from fireblocks_client.models.not_found_exception import NotFoundException + +# TODO update the JSON string below +json = "{}" +# create an instance of NotFoundException from a JSON string +not_found_exception_instance = NotFoundException.from_json(json) +# print the JSON string representation of the object +print NotFoundException.to_json() + +# convert the object into a dict +not_found_exception_dict = not_found_exception_instance.to_dict() +# create an instance of NotFoundException from a dict +not_found_exception_form_dict = not_found_exception.from_dict(not_found_exception_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/docs/OTABetaApi.md b/docs/OTABetaApi.md new file mode 100644 index 00000000..2bda7668 --- /dev/null +++ b/docs/OTABetaApi.md @@ -0,0 +1,149 @@ +# fireblocks_client.OTABetaApi + +All URIs are relative to *https://api.fireblocks.io/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_ota_status**](OTABetaApi.md#get_ota_status) | **GET** /management/ota | Returns current OTA status +[**set_ota_status**](OTABetaApi.md#set_ota_status) | **PUT** /management/ota | Enable or disable transactions to OTA + + +# **get_ota_status** +> GetOtaStatusResponse get_ota_status() + +Returns current OTA status + +Returns current OTA status + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.get_ota_status_response import GetOtaStatusResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.OTABetaApi(api_client) + + try: + # Returns current OTA status + api_response = api_instance.get_ota_status() + print("The response of OTABetaApi->get_ota_status:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling OTABetaApi->get_ota_status: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**GetOtaStatusResponse**](GetOtaStatusResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Current OTA status | - | +**404** | Configuration not found for tenant | - | + +[[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) + +# **set_ota_status** +> SetOtaStatusResponse set_ota_status(set_ota_status_request, idempotency_key=idempotency_key) + +Enable or disable transactions to OTA + +Enable or disable transactions to OTA + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.set_ota_status_request import SetOtaStatusRequest +from fireblocks_client.models.set_ota_status_response import SetOtaStatusResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.OTABetaApi(api_client) + set_ota_status_request = fireblocks_client.SetOtaStatusRequest() # SetOtaStatusRequest | + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + + try: + # Enable or disable transactions to OTA + api_response = api_instance.set_ota_status(set_ota_status_request, idempotency_key=idempotency_key) + print("The response of OTABetaApi->set_ota_status:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling OTABetaApi->set_ota_status: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **set_ota_status_request** | [**SetOtaStatusRequest**](SetOtaStatusRequest.md)| | + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + +### Return type + +[**SetOtaStatusResponse**](SetOtaStatusResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**202** | Successfully updated OTA status | * X-Request-ID -
| +**400** | Bad request | - | +**409** | Similar request already pending | - | +**500** | Internal server error | - | + +[[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) + diff --git a/docs/OffExchangesApi.md b/docs/OffExchangesApi.md new file mode 100644 index 00000000..f6bdf580 --- /dev/null +++ b/docs/OffExchangesApi.md @@ -0,0 +1,367 @@ +# fireblocks_client.OffExchangesApi + +All URIs are relative to *https://api.fireblocks.io/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**add_off_exchange**](OffExchangesApi.md#add_off_exchange) | **POST** /off_exchange/add | add collateral +[**get_off_exchange_collateral_accounts**](OffExchangesApi.md#get_off_exchange_collateral_accounts) | **GET** /off_exchange/collateral_accounts/{mainExchangeAccountId} | Find a specific collateral exchange account +[**get_off_exchange_settlement_transactions**](OffExchangesApi.md#get_off_exchange_settlement_transactions) | **GET** /off_exchange/settlements/transactions | get settlements transactions from exchange +[**remove_off_exchange**](OffExchangesApi.md#remove_off_exchange) | **POST** /off_exchange/remove | remove collateral +[**settle_off_exchange_trades**](OffExchangesApi.md#settle_off_exchange_trades) | **POST** /off_exchange/settlements/trader | create settlement for a trader + + +# **add_off_exchange** +> CreateTransactionResponse add_off_exchange(idempotency_key=idempotency_key, add_collateral_request_body=add_collateral_request_body) + +add collateral + +add collateral, create deposit request + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.add_collateral_request_body import AddCollateralRequestBody +from fireblocks_client.models.create_transaction_response import CreateTransactionResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.OffExchangesApi(api_client) + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + add_collateral_request_body = fireblocks_client.AddCollateralRequestBody() # AddCollateralRequestBody | (optional) + + try: + # add collateral + api_response = api_instance.add_off_exchange(idempotency_key=idempotency_key, add_collateral_request_body=add_collateral_request_body) + print("The response of OffExchangesApi->add_off_exchange:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling OffExchangesApi->add_off_exchange: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + **add_collateral_request_body** | [**AddCollateralRequestBody**](AddCollateralRequestBody.md)| | [optional] + +### Return type + +[**CreateTransactionResponse**](CreateTransactionResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A transaction object | - | +**0** | Error Response | * X-Request-ID -
| + +[[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_off_exchange_collateral_accounts** +> ExchangeAccount get_off_exchange_collateral_accounts(main_exchange_account_id) + +Find a specific collateral exchange account + +Returns a collateral account by mainExchangeAccountId. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.exchange_account import ExchangeAccount +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.OffExchangesApi(api_client) + main_exchange_account_id = 'main_exchange_account_id_example' # str | The id of the main exchange account for which the requested collateral account is associated with + + try: + # Find a specific collateral exchange account + api_response = api_instance.get_off_exchange_collateral_accounts(main_exchange_account_id) + print("The response of OffExchangesApi->get_off_exchange_collateral_accounts:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling OffExchangesApi->get_off_exchange_collateral_accounts: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **main_exchange_account_id** | **str**| The id of the main exchange account for which the requested collateral account is associated with | + +### Return type + +[**ExchangeAccount**](ExchangeAccount.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | An ExchangeAccount object | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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_off_exchange_settlement_transactions** +> ExchangeSettlementTransactionsResponse get_off_exchange_settlement_transactions(main_exchange_account_id) + +get settlements transactions from exchange + +get settlements transactions from exchange + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.exchange_settlement_transactions_response import ExchangeSettlementTransactionsResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.OffExchangesApi(api_client) + main_exchange_account_id = 'main_exchange_account_id_example' # str | + + try: + # get settlements transactions from exchange + api_response = api_instance.get_off_exchange_settlement_transactions(main_exchange_account_id) + print("The response of OffExchangesApi->get_off_exchange_settlement_transactions:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling OffExchangesApi->get_off_exchange_settlement_transactions: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **main_exchange_account_id** | **str**| | + +### Return type + +[**ExchangeSettlementTransactionsResponse**](ExchangeSettlementTransactionsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A settlement transactions | - | +**0** | Error Response | * X-Request-ID -
| + +[[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) + +# **remove_off_exchange** +> CreateTransactionResponse remove_off_exchange(idempotency_key=idempotency_key, remove_collateral_request_body=remove_collateral_request_body) + +remove collateral + +remove collateral, create withdraw request + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.create_transaction_response import CreateTransactionResponse +from fireblocks_client.models.remove_collateral_request_body import RemoveCollateralRequestBody +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.OffExchangesApi(api_client) + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + remove_collateral_request_body = fireblocks_client.RemoveCollateralRequestBody() # RemoveCollateralRequestBody | (optional) + + try: + # remove collateral + api_response = api_instance.remove_off_exchange(idempotency_key=idempotency_key, remove_collateral_request_body=remove_collateral_request_body) + print("The response of OffExchangesApi->remove_off_exchange:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling OffExchangesApi->remove_off_exchange: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + **remove_collateral_request_body** | [**RemoveCollateralRequestBody**](RemoveCollateralRequestBody.md)| | [optional] + +### Return type + +[**CreateTransactionResponse**](CreateTransactionResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A transaction object | - | +**0** | Error Response | * X-Request-ID -
| + +[[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) + +# **settle_off_exchange_trades** +> SettlementResponse settle_off_exchange_trades(idempotency_key=idempotency_key, settlement_request_body=settlement_request_body) + +create settlement for a trader + +create settlement for a trader + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.settlement_request_body import SettlementRequestBody +from fireblocks_client.models.settlement_response import SettlementResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.OffExchangesApi(api_client) + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + settlement_request_body = fireblocks_client.SettlementRequestBody() # SettlementRequestBody | (optional) + + try: + # create settlement for a trader + api_response = api_instance.settle_off_exchange_trades(idempotency_key=idempotency_key, settlement_request_body=settlement_request_body) + print("The response of OffExchangesApi->settle_off_exchange_trades:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling OffExchangesApi->settle_off_exchange_trades: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + **settlement_request_body** | [**SettlementRequestBody**](SettlementRequestBody.md)| | [optional] + +### Return type + +[**SettlementResponse**](SettlementResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | A settlement object | - | +**0** | Error Response | * X-Request-ID -
| + +[[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) + diff --git a/docs/OneTimeAddress.md b/docs/OneTimeAddress.md new file mode 100644 index 00000000..0e770ae0 --- /dev/null +++ b/docs/OneTimeAddress.md @@ -0,0 +1,30 @@ +# OneTimeAddress + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**address** | **str** | | +**tag** | **str** | | [optional] + +## Example + +```python +from fireblocks_client.models.one_time_address import OneTimeAddress + +# TODO update the JSON string below +json = "{}" +# create an instance of OneTimeAddress from a JSON string +one_time_address_instance = OneTimeAddress.from_json(json) +# print the JSON string representation of the object +print OneTimeAddress.to_json() + +# convert the object into a dict +one_time_address_dict = one_time_address_instance.to_dict() +# create an instance of OneTimeAddress from a dict +one_time_address_form_dict = one_time_address.from_dict(one_time_address_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/docs/OneTimeAddressAccount.md b/docs/OneTimeAddressAccount.md new file mode 100644 index 00000000..a686dc6c --- /dev/null +++ b/docs/OneTimeAddressAccount.md @@ -0,0 +1,30 @@ +# OneTimeAddressAccount + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**one_time_address** | **str** | | +**tag** | **str** | | [optional] + +## Example + +```python +from fireblocks_client.models.one_time_address_account import OneTimeAddressAccount + +# TODO update the JSON string below +json = "{}" +# create an instance of OneTimeAddressAccount from a JSON string +one_time_address_account_instance = OneTimeAddressAccount.from_json(json) +# print the JSON string representation of the object +print OneTimeAddressAccount.to_json() + +# convert the object into a dict +one_time_address_account_dict = one_time_address_account_instance.to_dict() +# create an instance of OneTimeAddressAccount from a dict +one_time_address_account_form_dict = one_time_address_account.from_dict(one_time_address_account_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/docs/OperationExecutionFailure.md b/docs/OperationExecutionFailure.md new file mode 100644 index 00000000..e4a51a77 --- /dev/null +++ b/docs/OperationExecutionFailure.md @@ -0,0 +1,30 @@ +# OperationExecutionFailure + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**reason** | **str** | | +**data** | **Dict[str, object]** | | [optional] + +## Example + +```python +from fireblocks_client.models.operation_execution_failure import OperationExecutionFailure + +# TODO update the JSON string below +json = "{}" +# create an instance of OperationExecutionFailure from a JSON string +operation_execution_failure_instance = OperationExecutionFailure.from_json(json) +# print the JSON string representation of the object +print OperationExecutionFailure.to_json() + +# convert the object into a dict +operation_execution_failure_dict = operation_execution_failure_instance.to_dict() +# create an instance of OperationExecutionFailure from a dict +operation_execution_failure_form_dict = operation_execution_failure.from_dict(operation_execution_failure_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/docs/PaginatedAddressResponse.md b/docs/PaginatedAddressResponse.md new file mode 100644 index 00000000..8c2093ba --- /dev/null +++ b/docs/PaginatedAddressResponse.md @@ -0,0 +1,30 @@ +# PaginatedAddressResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**addresses** | [**List[VaultWalletAddress]**](VaultWalletAddress.md) | | [optional] +**paging** | [**PaginatedAddressResponsePaging**](PaginatedAddressResponsePaging.md) | | [optional] + +## Example + +```python +from fireblocks_client.models.paginated_address_response import PaginatedAddressResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PaginatedAddressResponse from a JSON string +paginated_address_response_instance = PaginatedAddressResponse.from_json(json) +# print the JSON string representation of the object +print PaginatedAddressResponse.to_json() + +# convert the object into a dict +paginated_address_response_dict = paginated_address_response_instance.to_dict() +# create an instance of PaginatedAddressResponse from a dict +paginated_address_response_form_dict = paginated_address_response.from_dict(paginated_address_response_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/docs/PaginatedAddressResponsePaging.md b/docs/PaginatedAddressResponsePaging.md new file mode 100644 index 00000000..cf0ef75d --- /dev/null +++ b/docs/PaginatedAddressResponsePaging.md @@ -0,0 +1,30 @@ +# PaginatedAddressResponsePaging + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**before** | **str** | A string representing a cursor. Users can use this with a new request to this API endpoint as the “before” request parameter to fetch the previous page of results. | [optional] +**after** | **str** | A string representing a cursor. Users can use this with a new request to this API endpoint as the “after” request parameter to fetch the next page of results. | [optional] + +## Example + +```python +from fireblocks_client.models.paginated_address_response_paging import PaginatedAddressResponsePaging + +# TODO update the JSON string below +json = "{}" +# create an instance of PaginatedAddressResponsePaging from a JSON string +paginated_address_response_paging_instance = PaginatedAddressResponsePaging.from_json(json) +# print the JSON string representation of the object +print PaginatedAddressResponsePaging.to_json() + +# convert the object into a dict +paginated_address_response_paging_dict = paginated_address_response_paging_instance.to_dict() +# create an instance of PaginatedAddressResponsePaging from a dict +paginated_address_response_paging_form_dict = paginated_address_response_paging.from_dict(paginated_address_response_paging_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/docs/PaginatedAssetWalletResponse.md b/docs/PaginatedAssetWalletResponse.md new file mode 100644 index 00000000..668ab205 --- /dev/null +++ b/docs/PaginatedAssetWalletResponse.md @@ -0,0 +1,30 @@ +# PaginatedAssetWalletResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**asset_wallets** | [**List[AssetWallet]**](AssetWallet.md) | | [optional] +**paging** | [**PaginatedAssetWalletResponsePaging**](PaginatedAssetWalletResponsePaging.md) | | [optional] + +## Example + +```python +from fireblocks_client.models.paginated_asset_wallet_response import PaginatedAssetWalletResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PaginatedAssetWalletResponse from a JSON string +paginated_asset_wallet_response_instance = PaginatedAssetWalletResponse.from_json(json) +# print the JSON string representation of the object +print PaginatedAssetWalletResponse.to_json() + +# convert the object into a dict +paginated_asset_wallet_response_dict = paginated_asset_wallet_response_instance.to_dict() +# create an instance of PaginatedAssetWalletResponse from a dict +paginated_asset_wallet_response_form_dict = paginated_asset_wallet_response.from_dict(paginated_asset_wallet_response_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/docs/PaginatedAssetWalletResponsePaging.md b/docs/PaginatedAssetWalletResponsePaging.md new file mode 100644 index 00000000..a445002b --- /dev/null +++ b/docs/PaginatedAssetWalletResponsePaging.md @@ -0,0 +1,30 @@ +# PaginatedAssetWalletResponsePaging + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**before** | **str** | A string representing a cursor. Users can use this with a new request to this API endpoint as the “before” request parameter to fetch the previous page of results. | [optional] +**after** | **str** | A string representing a cursor. Users can use this with a new request to this API endpoint as the “before” request parameter to fetch the next page of results. | [optional] + +## Example + +```python +from fireblocks_client.models.paginated_asset_wallet_response_paging import PaginatedAssetWalletResponsePaging + +# TODO update the JSON string below +json = "{}" +# create an instance of PaginatedAssetWalletResponsePaging from a JSON string +paginated_asset_wallet_response_paging_instance = PaginatedAssetWalletResponsePaging.from_json(json) +# print the JSON string representation of the object +print PaginatedAssetWalletResponsePaging.to_json() + +# convert the object into a dict +paginated_asset_wallet_response_paging_dict = paginated_asset_wallet_response_paging_instance.to_dict() +# create an instance of PaginatedAssetWalletResponsePaging from a dict +paginated_asset_wallet_response_paging_form_dict = paginated_asset_wallet_response_paging.from_dict(paginated_asset_wallet_response_paging_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/docs/Paging.md b/docs/Paging.md new file mode 100644 index 00000000..54a765d8 --- /dev/null +++ b/docs/Paging.md @@ -0,0 +1,29 @@ +# Paging + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**next** | **str** | Cursor to the next page | + +## Example + +```python +from fireblocks_client.models.paging import Paging + +# TODO update the JSON string below +json = "{}" +# create an instance of Paging from a JSON string +paging_instance = Paging.from_json(json) +# print the JSON string representation of the object +print Paging.to_json() + +# convert the object into a dict +paging_dict = paging_instance.to_dict() +# create an instance of Paging from a dict +paging_form_dict = paging.from_dict(paging_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/docs/Parameter.md b/docs/Parameter.md new file mode 100644 index 00000000..4ef45f7e --- /dev/null +++ b/docs/Parameter.md @@ -0,0 +1,33 @@ +# Parameter + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | The name of the parameter as it appears in the ABI | +**description** | **str** | A description of the parameter, fetched from the devdoc of this contract | [optional] +**internal_type** | **str** | The internal type of the parameter as it appears in the ABI | [optional] +**type** | **str** | The type of the parameter as it appears in the ABI | +**components** | [**List[Parameter]**](Parameter.md) | | [optional] + +## Example + +```python +from fireblocks_client.models.parameter import Parameter + +# TODO update the JSON string below +json = "{}" +# create an instance of Parameter from a JSON string +parameter_instance = Parameter.from_json(json) +# print the JSON string representation of the object +print Parameter.to_json() + +# convert the object into a dict +parameter_dict = parameter_instance.to_dict() +# create an instance of Parameter from a dict +parameter_form_dict = parameter.from_dict(parameter_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/docs/ParameterWithValue.md b/docs/ParameterWithValue.md new file mode 100644 index 00000000..613296b5 --- /dev/null +++ b/docs/ParameterWithValue.md @@ -0,0 +1,35 @@ +# ParameterWithValue + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | The name of the parameter as it appears in the ABI | +**description** | **str** | A description of the parameter, fetched from the devdoc of this contract | [optional] +**internal_type** | **str** | The internal type of the parameter as it appears in the ABI | [optional] +**type** | **str** | The type of the parameter as it appears in the ABI | +**components** | [**List[Parameter]**](Parameter.md) | | [optional] +**value** | **str** | The value of the parameter. can also be ParameterWithValue | [optional] +**function_value** | [**LeanAbiFunction**](LeanAbiFunction.md) | The function value of this param (if has one). If this is set, the `value` shouldn`t be. Used for proxies | [optional] + +## Example + +```python +from fireblocks_client.models.parameter_with_value import ParameterWithValue + +# TODO update the JSON string below +json = "{}" +# create an instance of ParameterWithValue from a JSON string +parameter_with_value_instance = ParameterWithValue.from_json(json) +# print the JSON string representation of the object +print ParameterWithValue.to_json() + +# convert the object into a dict +parameter_with_value_dict = parameter_with_value_instance.to_dict() +# create an instance of ParameterWithValue from a dict +parameter_with_value_form_dict = parameter_with_value.from_dict(parameter_with_value_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/docs/PayeeAccount.md b/docs/PayeeAccount.md new file mode 100644 index 00000000..651cc08f --- /dev/null +++ b/docs/PayeeAccount.md @@ -0,0 +1,30 @@ +# PayeeAccount + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | +**type** | [**PayeeAccountType**](PayeeAccountType.md) | | + +## Example + +```python +from fireblocks_client.models.payee_account import PayeeAccount + +# TODO update the JSON string below +json = "{}" +# create an instance of PayeeAccount from a JSON string +payee_account_instance = PayeeAccount.from_json(json) +# print the JSON string representation of the object +print PayeeAccount.to_json() + +# convert the object into a dict +payee_account_dict = payee_account_instance.to_dict() +# create an instance of PayeeAccount from a dict +payee_account_form_dict = payee_account.from_dict(payee_account_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/docs/PayeeAccountResponse.md b/docs/PayeeAccountResponse.md new file mode 100644 index 00000000..8f68ac9e --- /dev/null +++ b/docs/PayeeAccountResponse.md @@ -0,0 +1,30 @@ +# PayeeAccountResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**type** | [**PayeeAccountType**](PayeeAccountType.md) | | [optional] + +## Example + +```python +from fireblocks_client.models.payee_account_response import PayeeAccountResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PayeeAccountResponse from a JSON string +payee_account_response_instance = PayeeAccountResponse.from_json(json) +# print the JSON string representation of the object +print PayeeAccountResponse.to_json() + +# convert the object into a dict +payee_account_response_dict = payee_account_response_instance.to_dict() +# create an instance of PayeeAccountResponse from a dict +payee_account_response_form_dict = payee_account_response.from_dict(payee_account_response_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/docs/PayeeAccountType.md b/docs/PayeeAccountType.md new file mode 100644 index 00000000..3469f6f7 --- /dev/null +++ b/docs/PayeeAccountType.md @@ -0,0 +1,12 @@ +# PayeeAccountType + +- VAULT_ACCOUNT a native Fireblocks vault account - EXCHANGE_ACCOUNT a third-party exchange account - INTERNAL_WALLET a whitelisted address marked as internal to the workspace/organization - EXTERNAL_WALLET a whitelisted address marked as external - NETWORK_CONNECTION a member of the Fireblocks network - FIAT_ACCOUNT a third-party account of a fiat bank (Signature, BCB, etc) + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[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/PaymentAccount.md b/docs/PaymentAccount.md new file mode 100644 index 00000000..c0f1c010 --- /dev/null +++ b/docs/PaymentAccount.md @@ -0,0 +1,30 @@ +# PaymentAccount + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | +**type** | [**PaymentAccountType**](PaymentAccountType.md) | | + +## Example + +```python +from fireblocks_client.models.payment_account import PaymentAccount + +# TODO update the JSON string below +json = "{}" +# create an instance of PaymentAccount from a JSON string +payment_account_instance = PaymentAccount.from_json(json) +# print the JSON string representation of the object +print PaymentAccount.to_json() + +# convert the object into a dict +payment_account_dict = payment_account_instance.to_dict() +# create an instance of PaymentAccount from a dict +payment_account_form_dict = payment_account.from_dict(payment_account_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/docs/PaymentAccountResponse.md b/docs/PaymentAccountResponse.md new file mode 100644 index 00000000..3f06c3f9 --- /dev/null +++ b/docs/PaymentAccountResponse.md @@ -0,0 +1,30 @@ +# PaymentAccountResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**type** | [**PaymentAccountType**](PaymentAccountType.md) | | [optional] + +## Example + +```python +from fireblocks_client.models.payment_account_response import PaymentAccountResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PaymentAccountResponse from a JSON string +payment_account_response_instance = PaymentAccountResponse.from_json(json) +# print the JSON string representation of the object +print PaymentAccountResponse.to_json() + +# convert the object into a dict +payment_account_response_dict = payment_account_response_instance.to_dict() +# create an instance of PaymentAccountResponse from a dict +payment_account_response_form_dict = payment_account_response.from_dict(payment_account_response_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/docs/PaymentAccountType.md b/docs/PaymentAccountType.md new file mode 100644 index 00000000..7a412cde --- /dev/null +++ b/docs/PaymentAccountType.md @@ -0,0 +1,11 @@ +# PaymentAccountType + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[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/PaymentsPayoutApi.md b/docs/PaymentsPayoutApi.md new file mode 100644 index 00000000..81bba09c --- /dev/null +++ b/docs/PaymentsPayoutApi.md @@ -0,0 +1,229 @@ +# fireblocks_client.PaymentsPayoutApi + +All URIs are relative to *https://api.fireblocks.io/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_payout**](PaymentsPayoutApi.md#create_payout) | **POST** /payments/payout | Create a payout instruction set +[**execute_payout_action**](PaymentsPayoutApi.md#execute_payout_action) | **POST** /payments/payout/{payoutId}/actions/execute | Execute a payout instruction set +[**get_payout**](PaymentsPayoutApi.md#get_payout) | **GET** /payments/payout/{payoutId} | Get the status of a payout instruction set + + +# **create_payout** +> PayoutResponse create_payout(idempotency_key=idempotency_key, create_payout_request=create_payout_request) + +Create a payout instruction set + +**Note:** The reference content in this section documents the Payments Engine endpoint. The Payments Engine endpoints include APIs available only for customers with Payments Engine enabled on their accounts.

These endpoints are currently in beta and might be subject to changes.

If you want to learn more about Fireblocks Payments Engine, please contact your Fireblocks Customer Success Manager or email CSM@fireblocks.com.

Create a payout instruction set.
A payout instruction set is a set of instructions for distributing payments from a single payment account to a list of payee accounts.
The instruction set defines:
+ +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.create_payout_request import CreatePayoutRequest +from fireblocks_client.models.payout_response import PayoutResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.PaymentsPayoutApi(api_client) + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + create_payout_request = {"paymentAccount":{"id":"EX_SUB1","type":"EXCHANGE_ACCOUNT"},"instructionSet":[{"payeeAccount":{"id":"bef85a1c-b605-4b2e-bdb5-2d400f4d0bf3","type":"EXTERNAL_WALLET"},"amount":{"amount":"43","assetId":"USDC"}},{"payeeAccount":{"id":"3adc1f92-e791-44a8-9aee-7f31c2108b78","type":"NETWORK_CONNECTION"},"amount":{"amount":"4423","assetId":"USDC"}}]} # CreatePayoutRequest | (optional) + + try: + # Create a payout instruction set + api_response = api_instance.create_payout(idempotency_key=idempotency_key, create_payout_request=create_payout_request) + print("The response of PaymentsPayoutApi->create_payout:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling PaymentsPayoutApi->create_payout: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + **create_payout_request** | [**CreatePayoutRequest**](CreatePayoutRequest.md)| | [optional] + +### Return type + +[**PayoutResponse**](PayoutResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | The payout instruction set creation succeeded and returns the generated instruction set with a unique payout IDThe payout ID will be used for executing the payout and checking the payout status. | - | +**400** | Bad request | - | +**401** | Unauthorized. Missing / invalid JWT token in Authorization header. | - | +**5XX** | Internal error. | - | + +[[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) + +# **execute_payout_action** +> DispatchPayoutResponse execute_payout_action(payout_id, idempotency_key=idempotency_key) + +Execute a payout instruction set + +**Note:** The reference content in this section documents the Payments Engine endpoint. The Payments Engine endpoints include APIs available only for customers with Payments Engine enabled on their accounts.

These endpoints are currently in beta and might be subject to changes.

If you want to learn more about Fireblocks Payments Engine, please contact your Fireblocks Customer Success Manager or email CSM@fireblocks.com.

Execute a payout instruction set.

The instruction set will be verified and executed.
Source locking
If you are executing a payout instruction set from a payment account with an already active payout the active payout will complete before the new payout instruction set can be executed.
You cannot execute the same payout instruction set more than once. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.dispatch_payout_response import DispatchPayoutResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.PaymentsPayoutApi(api_client) + payout_id = '1fe3b61f-7e1f-4a19-aff0-4f0a524d44d7' # str | the payout id received from the creation of the payout instruction set + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + + try: + # Execute a payout instruction set + api_response = api_instance.execute_payout_action(payout_id, idempotency_key=idempotency_key) + print("The response of PaymentsPayoutApi->execute_payout_action:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling PaymentsPayoutApi->execute_payout_action: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **payout_id** | **str**| the payout id received from the creation of the payout instruction set | + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + +### Return type + +[**DispatchPayoutResponse**](DispatchPayoutResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Executed the payout instruction set | - | +**400** | Bad request | - | +**401** | Unauthorized. Missing / invalid JWT token in Authorization header. | - | +**5XX** | Internal error. | - | + +[[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_payout** +> PayoutResponse get_payout(payout_id) + +Get the status of a payout instruction set + +**Note:** The reference content in this section documents the Payments Engine endpoint. The Payments Engine endpoints include APIs available only for customers with Payments Engine enabled on their accounts.

These endpoints are currently in beta and might be subject to changes.

If you want to learn more about Fireblocks Payments Engine, please contact your Fireblocks Customer Success Manager or email CSM@fireblocks.com.
+ +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.payout_response import PayoutResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.PaymentsPayoutApi(api_client) + payout_id = '1fe3b61f-7e1f-4a19-aff0-4f0a524d44d7' # str | the payout id received from the creation of the payout instruction set + + try: + # Get the status of a payout instruction set + api_response = api_instance.get_payout(payout_id) + print("The response of PaymentsPayoutApi->get_payout:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling PaymentsPayoutApi->get_payout: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **payout_id** | **str**| the payout id received from the creation of the payout instruction set | + +### Return type + +[**PayoutResponse**](PayoutResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Returns the current status of the payout instruction set, including the status of each payout instruction and the transactions created in the process. | - | +**401** | Unauthorized. Missing / invalid JWT token in Authorization header. | - | +**404** | No payout with the given payout ID exists. | - | +**5XX** | Internal error. | - | + +[[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) + diff --git a/docs/PayoutInitMethod.md b/docs/PayoutInitMethod.md new file mode 100644 index 00000000..a4af92e2 --- /dev/null +++ b/docs/PayoutInitMethod.md @@ -0,0 +1,11 @@ +# PayoutInitMethod + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[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/PayoutInstruction.md b/docs/PayoutInstruction.md new file mode 100644 index 00000000..8042182a --- /dev/null +++ b/docs/PayoutInstruction.md @@ -0,0 +1,31 @@ +# PayoutInstruction + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**payee_account** | [**PayeeAccount**](PayeeAccount.md) | | +**amount** | [**InstructionAmount**](InstructionAmount.md) | | + +## Example + +```python +from fireblocks_client.models.payout_instruction import PayoutInstruction + +# TODO update the JSON string below +json = "{}" +# create an instance of PayoutInstruction from a JSON string +payout_instruction_instance = PayoutInstruction.from_json(json) +# print the JSON string representation of the object +print PayoutInstruction.to_json() + +# convert the object into a dict +payout_instruction_dict = payout_instruction_instance.to_dict() +# create an instance of PayoutInstruction from a dict +payout_instruction_form_dict = payout_instruction.from_dict(payout_instruction_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/docs/PayoutInstructionResponse.md b/docs/PayoutInstructionResponse.md new file mode 100644 index 00000000..b8f1f29e --- /dev/null +++ b/docs/PayoutInstructionResponse.md @@ -0,0 +1,33 @@ +# PayoutInstructionResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**payee_account** | [**PayeeAccountResponse**](PayeeAccountResponse.md) | | +**amount** | [**InstructionAmount**](InstructionAmount.md) | | +**state** | [**PayoutInstructionState**](PayoutInstructionState.md) | | +**transactions** | [**List[Transaction]**](Transaction.md) | | + +## Example + +```python +from fireblocks_client.models.payout_instruction_response import PayoutInstructionResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PayoutInstructionResponse from a JSON string +payout_instruction_response_instance = PayoutInstructionResponse.from_json(json) +# print the JSON string representation of the object +print PayoutInstructionResponse.to_json() + +# convert the object into a dict +payout_instruction_response_dict = payout_instruction_response_instance.to_dict() +# create an instance of PayoutInstructionResponse from a dict +payout_instruction_response_form_dict = payout_instruction_response.from_dict(payout_instruction_response_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/docs/PayoutInstructionState.md b/docs/PayoutInstructionState.md new file mode 100644 index 00000000..eae878fe --- /dev/null +++ b/docs/PayoutInstructionState.md @@ -0,0 +1,12 @@ +# PayoutInstructionState + +- NOT_STARTED - waiting to start - TRANSACTION_SENT - an underlying transaction was sent - COMPLETED - completed successfully - FAILED - failed - TRANSLATION_ERROR -lookup of the destination failed (due to changes in the underlying whitelisted external wallet or similar) - SKIPPED- no transaction(s) created for this instruction + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[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/PayoutResponse.md b/docs/PayoutResponse.md new file mode 100644 index 00000000..6568b570 --- /dev/null +++ b/docs/PayoutResponse.md @@ -0,0 +1,37 @@ +# PayoutResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**payout_id** | **str** | | +**payment_account** | [**PaymentAccountResponse**](PaymentAccountResponse.md) | | +**created_at** | **float** | | +**state** | [**PayoutState**](PayoutState.md) | | +**status** | [**PayoutStatus**](PayoutStatus.md) | | +**reason_of_failure** | **str** | <ul> <li> INSUFFICIENT_BALANCE</li> <li> SOURCE_TRANSLATION</li> <li> SOURCE_NOT_UNIQUE</li> <li> SOURCE_NOT_FOUND</li> <li> SOURCE_TYPE_NOT_SUPPORTED</li> <li> EMPTY_SOURCE</li> <li> DESTINATION_TRANSLATION</li> <li> DESTINATION_NOT_UNIQUE</li> <li> DESTINATION_NOT_FOUND</li> <li> EMPTY_DESTINATION</li> <li> PARSING </li> <li> UNKNOWN</li> <li> FIREBLOCKS_CLIENT</li> <li> TRANSACTION_SUBMISSION</li> </ul> | [optional] +**init_method** | [**PayoutInitMethod**](PayoutInitMethod.md) | | [optional] +**instruction_set** | [**List[PayoutInstructionResponse]**](PayoutInstructionResponse.md) | | +**report_url** | **str** | | [optional] + +## Example + +```python +from fireblocks_client.models.payout_response import PayoutResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PayoutResponse from a JSON string +payout_response_instance = PayoutResponse.from_json(json) +# print the JSON string representation of the object +print PayoutResponse.to_json() + +# convert the object into a dict +payout_response_dict = payout_response_instance.to_dict() +# create an instance of PayoutResponse from a dict +payout_response_form_dict = payout_response.from_dict(payout_response_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/docs/PayoutState.md b/docs/PayoutState.md new file mode 100644 index 00000000..94c50c7a --- /dev/null +++ b/docs/PayoutState.md @@ -0,0 +1,12 @@ +# PayoutState + +- CREATED - payout instruction set created with all its details - FILE_FOUND - new file found in the FTP - REQUESTED - payout requested with all its details - TRANSLATED - payout instruction account IDs identified and translated - PROCESSING - payout instruction set executed and is processing - SUBMITTED - transactions submitted for payout instructions - FINALIZED - payout finished processing, all transactions processed successfully - INSUFFICIENT_BALANCE - insufficient balance in the payment account (can be a temporary state) - FAILED - one or more of the payout instructions failed + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[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/PayoutStatus.md b/docs/PayoutStatus.md new file mode 100644 index 00000000..006cb6e9 --- /dev/null +++ b/docs/PayoutStatus.md @@ -0,0 +1,12 @@ +# PayoutStatus + +- REQUESTED payout requested with all its details - VERIFIED payout instruction set details were verified - PROCESSING payout instruction set executed and is processing - FINALIZED payout done (all payout instructions completed successfully) - INSUFFICIENT_BALANCE insufficient balance in the payment account (can be a temporary state) - FAILED one or more of the payout instructions failed + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[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/PolicyAndValidationResponse.md b/docs/PolicyAndValidationResponse.md new file mode 100644 index 00000000..52624c04 --- /dev/null +++ b/docs/PolicyAndValidationResponse.md @@ -0,0 +1,31 @@ +# PolicyAndValidationResponse + +Policy validation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**policy** | [**PolicyResponse**](PolicyResponse.md) | | +**validation** | [**PolicyValidation**](PolicyValidation.md) | | + +## Example + +```python +from fireblocks_client.models.policy_and_validation_response import PolicyAndValidationResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PolicyAndValidationResponse from a JSON string +policy_and_validation_response_instance = PolicyAndValidationResponse.from_json(json) +# print the JSON string representation of the object +print PolicyAndValidationResponse.to_json() + +# convert the object into a dict +policy_and_validation_response_dict = policy_and_validation_response_instance.to_dict() +# create an instance of PolicyAndValidationResponse from a dict +policy_and_validation_response_form_dict = policy_and_validation_response.from_dict(policy_and_validation_response_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/docs/PolicyCheckResult.md b/docs/PolicyCheckResult.md new file mode 100644 index 00000000..b99f1948 --- /dev/null +++ b/docs/PolicyCheckResult.md @@ -0,0 +1,31 @@ +# PolicyCheckResult + +Policy rules validation result + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**errors** | **float** | Number of errors | +**result** | [**List[PolicyRuleCheckResult]**](PolicyRuleCheckResult.md) | A set of validation results | + +## Example + +```python +from fireblocks_client.models.policy_check_result import PolicyCheckResult + +# TODO update the JSON string below +json = "{}" +# create an instance of PolicyCheckResult from a JSON string +policy_check_result_instance = PolicyCheckResult.from_json(json) +# print the JSON string representation of the object +print PolicyCheckResult.to_json() + +# convert the object into a dict +policy_check_result_dict = policy_check_result_instance.to_dict() +# create an instance of PolicyCheckResult from a dict +policy_check_result_form_dict = policy_check_result.from_dict(policy_check_result_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/docs/PolicyEditorBetaApi.md b/docs/PolicyEditorBetaApi.md new file mode 100644 index 00000000..a4550361 --- /dev/null +++ b/docs/PolicyEditorBetaApi.md @@ -0,0 +1,359 @@ +# fireblocks_client.PolicyEditorBetaApi + +All URIs are relative to *https://api.fireblocks.io/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_active_policy**](PolicyEditorBetaApi.md#get_active_policy) | **GET** /tap/active_policy | Get the active policy and its validation +[**get_draft**](PolicyEditorBetaApi.md#get_draft) | **GET** /tap/draft | Get the active draft +[**publish_draft**](PolicyEditorBetaApi.md#publish_draft) | **POST** /tap/draft | Send publish request for a certain draft id +[**publish_policy_rules**](PolicyEditorBetaApi.md#publish_policy_rules) | **POST** /tap/publish | Send publish request for a set of policy rules +[**update_draft**](PolicyEditorBetaApi.md#update_draft) | **PUT** /tap/draft | Update the draft with a new set of rules + + +# **get_active_policy** +> PolicyAndValidationResponse get_active_policy() + +Get the active policy and its validation + +Returns the active policy and its validation.
**Note:** These endpoints are currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks TAP, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.policy_and_validation_response import PolicyAndValidationResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.PolicyEditorBetaApi(api_client) + + try: + # Get the active policy and its validation + api_response = api_instance.get_active_policy() + print("The response of PolicyEditorBetaApi->get_active_policy:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling PolicyEditorBetaApi->get_active_policy: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**PolicyAndValidationResponse**](PolicyAndValidationResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A policy object | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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_draft** +> DraftReviewAndValidationResponse get_draft() + +Get the active draft + +Returns the active draft and its validation.
**Note:** These endpoints are currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks TAP, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.draft_review_and_validation_response import DraftReviewAndValidationResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.PolicyEditorBetaApi(api_client) + + try: + # Get the active draft + api_response = api_instance.get_draft() + print("The response of PolicyEditorBetaApi->get_draft:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling PolicyEditorBetaApi->get_draft: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**DraftReviewAndValidationResponse**](DraftReviewAndValidationResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A draft validation response object | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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) + +# **publish_draft** +> PublishResult publish_draft(publish_draft_request, idempotency_key=idempotency_key) + +Send publish request for a certain draft id + +Send publish request of certain draft id and returns the response.
**Note:** These endpoints are currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks TAP, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.publish_draft_request import PublishDraftRequest +from fireblocks_client.models.publish_result import PublishResult +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.PolicyEditorBetaApi(api_client) + publish_draft_request = fireblocks_client.PublishDraftRequest() # PublishDraftRequest | + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + + try: + # Send publish request for a certain draft id + api_response = api_instance.publish_draft(publish_draft_request, idempotency_key=idempotency_key) + print("The response of PolicyEditorBetaApi->publish_draft:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling PolicyEditorBetaApi->publish_draft: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **publish_draft_request** | [**PublishDraftRequest**](PublishDraftRequest.md)| | + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + +### Return type + +[**PublishResult**](PublishResult.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | A policy publish result object | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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) + +# **publish_policy_rules** +> PublishResult publish_policy_rules(policy_rules, idempotency_key=idempotency_key) + +Send publish request for a set of policy rules + +Send publish request of set of policy rules and returns the response.
**Note:** These endpoints are currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks TAP, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.policy_rules import PolicyRules +from fireblocks_client.models.publish_result import PublishResult +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.PolicyEditorBetaApi(api_client) + policy_rules = fireblocks_client.PolicyRules() # PolicyRules | + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + + try: + # Send publish request for a set of policy rules + api_response = api_instance.publish_policy_rules(policy_rules, idempotency_key=idempotency_key) + print("The response of PolicyEditorBetaApi->publish_policy_rules:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling PolicyEditorBetaApi->publish_policy_rules: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **policy_rules** | [**PolicyRules**](PolicyRules.md)| | + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + +### Return type + +[**PublishResult**](PublishResult.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | A policy publish result object | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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) + +# **update_draft** +> DraftReviewAndValidationResponse update_draft(policy_rules, idempotency_key=idempotency_key) + +Update the draft with a new set of rules + +Update the draft and return its validation.
**Note:** These endpoints are currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks TAP, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.draft_review_and_validation_response import DraftReviewAndValidationResponse +from fireblocks_client.models.policy_rules import PolicyRules +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.PolicyEditorBetaApi(api_client) + policy_rules = fireblocks_client.PolicyRules() # PolicyRules | + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + + try: + # Update the draft with a new set of rules + api_response = api_instance.update_draft(policy_rules, idempotency_key=idempotency_key) + print("The response of PolicyEditorBetaApi->update_draft:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling PolicyEditorBetaApi->update_draft: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **policy_rules** | [**PolicyRules**](PolicyRules.md)| | + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + +### Return type + +[**DraftReviewAndValidationResponse**](DraftReviewAndValidationResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A draft validation response object | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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) + diff --git a/docs/PolicyMetadata.md b/docs/PolicyMetadata.md new file mode 100644 index 00000000..26082c7d --- /dev/null +++ b/docs/PolicyMetadata.md @@ -0,0 +1,33 @@ +# PolicyMetadata + +Policy related metadata + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**edited_by** | **str** | The user id of the user who last edited the policy | [optional] +**edited_at** | **str** | The timestamp of the last edit of the policy | [optional] +**published_by** | **str** | The user id of the user who last published the policy | [optional] +**published_at** | **str** | The timestamp of the last publish of the policy | [optional] + +## Example + +```python +from fireblocks_client.models.policy_metadata import PolicyMetadata + +# TODO update the JSON string below +json = "{}" +# create an instance of PolicyMetadata from a JSON string +policy_metadata_instance = PolicyMetadata.from_json(json) +# print the JSON string representation of the object +print PolicyMetadata.to_json() + +# convert the object into a dict +policy_metadata_dict = policy_metadata_instance.to_dict() +# create an instance of PolicyMetadata from a dict +policy_metadata_form_dict = policy_metadata.from_dict(policy_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/docs/PolicyResponse.md b/docs/PolicyResponse.md new file mode 100644 index 00000000..206c215d --- /dev/null +++ b/docs/PolicyResponse.md @@ -0,0 +1,31 @@ +# PolicyResponse + +Response object for policy operations + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**rules** | [**List[PolicyRule]**](PolicyRule.md) | A set of policy rules | +**metadata** | [**PolicyMetadata**](PolicyMetadata.md) | | + +## Example + +```python +from fireblocks_client.models.policy_response import PolicyResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PolicyResponse from a JSON string +policy_response_instance = PolicyResponse.from_json(json) +# print the JSON string representation of the object +print PolicyResponse.to_json() + +# convert the object into a dict +policy_response_dict = policy_response_instance.to_dict() +# create an instance of PolicyResponse from a dict +policy_response_form_dict = policy_response.from_dict(policy_response_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/docs/PolicyRule.md b/docs/PolicyRule.md new file mode 100644 index 00000000..53468e27 --- /dev/null +++ b/docs/PolicyRule.md @@ -0,0 +1,58 @@ +# PolicyRule + +Policy rule which is enforced on transactions + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**operator** | **str** | (deprecated - replaced by \"operators\") | Defines users who can initiate the type of transaction to which the rule applies. options are * \"*\" - All users are allowed * Specific User id | [optional] +**operators** | [**PolicyRuleOperators**](PolicyRuleOperators.md) | | [optional] +**transaction_type** | **str** | Defines the type of transaction to which the rule applies. * TRANSFER - Default. Transfers funds from one account to another * CONTRACT_CALL - Calls a smart contract, mainly for DeFi operations. * APPROVE - Allows a smart contract to withdraw from a designated wallet. * MINT - Perform a mint operation (increase supply) on a supported token * BURN - Perform a burn operation (reduce supply) on a supported token * SUPPLY - Use for DeFi to lend assets * REDEEM - Use for DeFi to get lending back * STAKE - Allows you to allocate and lock certain assets for earning staking rewards. * RAW - An off-chain message with no predefined format, use it to sign any message with your private key. * TYPED_MESSAGE - An off-chain message type that follows a predefined format, used to sign specific messages that are not actual transactions. | [optional] +**designated_signer** | **str** | (deprecated - replaced by \"designatedSigners\") Id representing the user who signs transactions that match a specific rule | [optional] +**designated_signers** | [**PolicyRuleDesignatedSigners**](PolicyRuleDesignatedSigners.md) | | [optional] +**type** | **str** | Policy rule type | +**action** | **str** | Defines what occurs when a transaction meets the rule's criteria * ALLOW - The transaction goes through and can be signed without requiring additional approvals * BLOCK - The transaction is automatically blocked * 2-TIER - Only these users or user groups can approve If any of them reject the transaction before the required approval threshold is met, the transaction doesn't go through The list of entities are set is \"authorizationGroups\" field | +**asset** | **str** | Defines the type of asset being transacted, options are * \"*\" - All assets * Specific asset | +**src_type** | [**PolicySrcOrDestType**](PolicySrcOrDestType.md) | (deprecated - replaced by "src") source account type | [optional] +**src_sub_type** | [**PolicySrcOrDestSubType**](PolicySrcOrDestSubType.md) | (deprecated - replaced by "src") source sub account type | [optional] +**src_id** | **str** | (deprecated - replaced by "src") source account id | [optional] +**src** | [**PolicyRuleSrc**](PolicyRuleSrc.md) | | [optional] +**dst_type** | [**PolicySrcOrDestType**](PolicySrcOrDestType.md) | (deprecated - replaced by "dst") destination account type | [optional] +**dst_sub_type** | [**PolicySrcOrDestSubType**](PolicySrcOrDestSubType.md) | (deprecated - replaced by "dst") destination sub account type | [optional] +**dst_id** | **str** | (deprecated - replaced by "dst") destination account id | [optional] +**dst** | [**PolicyRuleDst**](PolicyRuleDst.md) | | [optional] +**dst_address_type** | **str** | Defines whether the destination to which you are sending funds must be whitelisted, to allow one-time transfers to non-whitelisted external addresses, or both. By default, you can only transfer to an external address after it’s whitelisted. * WHITELISTED - Can only be sent to whitelisted addresses. * ONE_TIME - Can only be sent to non-whitelisted external addresses. * \"*\" - can be sent to whitelisted addresses or non-whitelisted external | [optional] +**amount_currency** | **str** | * USD - Limits the amount of any asset users can transfer based on the USD equivalent of the asset. * EUR - Limits the amount of any asset users can transfer based on the EURO equivalent of the asset. * NATIVE - Limits the amount of an asset a user can transfer when using a specific asset. | +**amount_scope** | **str** | * SINGLE_TX - limit applies to a single transaction * TIMEFRAME - limit applies to all transactions within the defined time period | +**amount** | [**PolicyRuleAmount**](PolicyRuleAmount.md) | | +**period_sec** | **float** | Time period in seconds applied by the amountScope field to accumulate transferred amounts in transactions that match the rule, until the total exceeds the value you specify under Minimum. When the specified amount is reached within that period, whether by one or many transactions, further transactions in that period either fail or require more approvals. | +**authorizers** | **List[str]** | (deprecated - replaced by \"authorizationGroups\") Allowed entities which can approves a transaction | [optional] +**authorizers_count** | **float** | (deprecated - replaced by \"authorizationGroups\") Min amount of entities which are needed to approve a transaction | [optional] +**authorization_groups** | [**PolicyRuleAuthorizationGroups**](PolicyRuleAuthorizationGroups.md) | | [optional] +**amount_aggregation** | [**PolicyRuleAmountAggregation**](PolicyRuleAmountAggregation.md) | | [optional] +**raw_message_signing** | [**PolicyRuleRawMessageSigning**](PolicyRuleRawMessageSigning.md) | | [optional] +**apply_for_approve** | **bool** | Applying this rule over APPROVE type transactions (can only be enabled when rule's transaction type is TRANSFER) | [optional] +**apply_for_typed_message** | **bool** | Applying this rule over TYPED_MESSAGE type transactions (can only be enabled when rule's transaction type is CONTRACT_CALL) | [optional] +**external_descriptor** | **str** | A unique id identifying the rule | [optional] + +## Example + +```python +from fireblocks_client.models.policy_rule import PolicyRule + +# TODO update the JSON string below +json = "{}" +# create an instance of PolicyRule from a JSON string +policy_rule_instance = PolicyRule.from_json(json) +# print the JSON string representation of the object +print PolicyRule.to_json() + +# convert the object into a dict +policy_rule_dict = policy_rule_instance.to_dict() +# create an instance of PolicyRule from a dict +policy_rule_form_dict = policy_rule.from_dict(policy_rule_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/docs/PolicyRuleAmount.md b/docs/PolicyRuleAmount.md new file mode 100644 index 00000000..e6e1b78c --- /dev/null +++ b/docs/PolicyRuleAmount.md @@ -0,0 +1,29 @@ +# PolicyRuleAmount + +Defines the value a transaction must exceed for the rule to apply to it (according to the amountCurrency field) + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Example + +```python +from fireblocks_client.models.policy_rule_amount import PolicyRuleAmount + +# TODO update the JSON string below +json = "{}" +# create an instance of PolicyRuleAmount from a JSON string +policy_rule_amount_instance = PolicyRuleAmount.from_json(json) +# print the JSON string representation of the object +print PolicyRuleAmount.to_json() + +# convert the object into a dict +policy_rule_amount_dict = policy_rule_amount_instance.to_dict() +# create an instance of PolicyRuleAmount from a dict +policy_rule_amount_form_dict = policy_rule_amount.from_dict(policy_rule_amount_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/docs/PolicyRuleAmountAggregation.md b/docs/PolicyRuleAmountAggregation.md new file mode 100644 index 00000000..672ef125 --- /dev/null +++ b/docs/PolicyRuleAmountAggregation.md @@ -0,0 +1,32 @@ +# PolicyRuleAmountAggregation + +Defines the method by which the Policy Engine calculates accumulation. It uses the Initiator, Source, and Destination to calculate accumulation toward the value under Minimum, for the time under Time Period. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**operators** | [**AmountAggregationTimePeriodMethod**](AmountAggregationTimePeriodMethod.md) | | [optional] +**src_transfer_peers** | [**AmountAggregationTimePeriodMethod**](AmountAggregationTimePeriodMethod.md) | | [optional] +**dst_transfer_peers** | [**AmountAggregationTimePeriodMethod**](AmountAggregationTimePeriodMethod.md) | | [optional] + +## Example + +```python +from fireblocks_client.models.policy_rule_amount_aggregation import PolicyRuleAmountAggregation + +# TODO update the JSON string below +json = "{}" +# create an instance of PolicyRuleAmountAggregation from a JSON string +policy_rule_amount_aggregation_instance = PolicyRuleAmountAggregation.from_json(json) +# print the JSON string representation of the object +print PolicyRuleAmountAggregation.to_json() + +# convert the object into a dict +policy_rule_amount_aggregation_dict = policy_rule_amount_aggregation_instance.to_dict() +# create an instance of PolicyRuleAmountAggregation from a dict +policy_rule_amount_aggregation_form_dict = policy_rule_amount_aggregation.from_dict(policy_rule_amount_aggregation_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/docs/PolicyRuleAuthorizationGroups.md b/docs/PolicyRuleAuthorizationGroups.md new file mode 100644 index 00000000..ba3d8094 --- /dev/null +++ b/docs/PolicyRuleAuthorizationGroups.md @@ -0,0 +1,32 @@ +# PolicyRuleAuthorizationGroups + +Defines the transaction approval terms + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**logic** | **str** | * AND - requires approval of all authorization groups * OR - requires approval of at least one of the authorization groups | [optional] +**allow_operator_as_authorizer** | **bool** | Defines whether the user who initiates a transaction can approve their own transaction and count toward the approval threshold for their transaction | [optional] +**groups** | [**List[PolicyRuleAuthorizationGroupsGroupsInner]**](PolicyRuleAuthorizationGroupsGroupsInner.md) | Groups of entities which can approve the transaction | [optional] + +## Example + +```python +from fireblocks_client.models.policy_rule_authorization_groups import PolicyRuleAuthorizationGroups + +# TODO update the JSON string below +json = "{}" +# create an instance of PolicyRuleAuthorizationGroups from a JSON string +policy_rule_authorization_groups_instance = PolicyRuleAuthorizationGroups.from_json(json) +# print the JSON string representation of the object +print PolicyRuleAuthorizationGroups.to_json() + +# convert the object into a dict +policy_rule_authorization_groups_dict = policy_rule_authorization_groups_instance.to_dict() +# create an instance of PolicyRuleAuthorizationGroups from a dict +policy_rule_authorization_groups_form_dict = policy_rule_authorization_groups.from_dict(policy_rule_authorization_groups_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/docs/PolicyRuleAuthorizationGroupsGroupsInner.md b/docs/PolicyRuleAuthorizationGroupsGroupsInner.md new file mode 100644 index 00000000..6ed8f3c5 --- /dev/null +++ b/docs/PolicyRuleAuthorizationGroupsGroupsInner.md @@ -0,0 +1,31 @@ +# PolicyRuleAuthorizationGroupsGroupsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**users** | **List[str]** | User ids | [optional] +**users_groups** | **List[str]** | Group ids | [optional] +**th** | **float** | Represents the min amount of entities which are required to approve the transaction, default is 1. | [optional] + +## Example + +```python +from fireblocks_client.models.policy_rule_authorization_groups_groups_inner import PolicyRuleAuthorizationGroupsGroupsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of PolicyRuleAuthorizationGroupsGroupsInner from a JSON string +policy_rule_authorization_groups_groups_inner_instance = PolicyRuleAuthorizationGroupsGroupsInner.from_json(json) +# print the JSON string representation of the object +print PolicyRuleAuthorizationGroupsGroupsInner.to_json() + +# convert the object into a dict +policy_rule_authorization_groups_groups_inner_dict = policy_rule_authorization_groups_groups_inner_instance.to_dict() +# create an instance of PolicyRuleAuthorizationGroupsGroupsInner from a dict +policy_rule_authorization_groups_groups_inner_form_dict = policy_rule_authorization_groups_groups_inner.from_dict(policy_rule_authorization_groups_groups_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/docs/PolicyRuleCheckResult.md b/docs/PolicyRuleCheckResult.md new file mode 100644 index 00000000..0dd282f8 --- /dev/null +++ b/docs/PolicyRuleCheckResult.md @@ -0,0 +1,32 @@ +# PolicyRuleCheckResult + +The rule validation result + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**index** | **float** | Rule index number in the policy | +**status** | **str** | Validation status | +**errors** | [**List[PolicyRuleError]**](PolicyRuleError.md) | A set of rule validation error objects | + +## Example + +```python +from fireblocks_client.models.policy_rule_check_result import PolicyRuleCheckResult + +# TODO update the JSON string below +json = "{}" +# create an instance of PolicyRuleCheckResult from a JSON string +policy_rule_check_result_instance = PolicyRuleCheckResult.from_json(json) +# print the JSON string representation of the object +print PolicyRuleCheckResult.to_json() + +# convert the object into a dict +policy_rule_check_result_dict = policy_rule_check_result_instance.to_dict() +# create an instance of PolicyRuleCheckResult from a dict +policy_rule_check_result_form_dict = policy_rule_check_result.from_dict(policy_rule_check_result_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/docs/PolicyRuleDesignatedSigners.md b/docs/PolicyRuleDesignatedSigners.md new file mode 100644 index 00000000..04115328 --- /dev/null +++ b/docs/PolicyRuleDesignatedSigners.md @@ -0,0 +1,31 @@ +# PolicyRuleDesignatedSigners + +Set of ids representing the users who signs transactions that match a specific rule + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**users** | **List[str]** | Set of users ids | [optional] +**users_groups** | **List[str]** | Set of group ids | [optional] + +## Example + +```python +from fireblocks_client.models.policy_rule_designated_signers import PolicyRuleDesignatedSigners + +# TODO update the JSON string below +json = "{}" +# create an instance of PolicyRuleDesignatedSigners from a JSON string +policy_rule_designated_signers_instance = PolicyRuleDesignatedSigners.from_json(json) +# print the JSON string representation of the object +print PolicyRuleDesignatedSigners.to_json() + +# convert the object into a dict +policy_rule_designated_signers_dict = policy_rule_designated_signers_instance.to_dict() +# create an instance of PolicyRuleDesignatedSigners from a dict +policy_rule_designated_signers_form_dict = policy_rule_designated_signers.from_dict(policy_rule_designated_signers_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/docs/PolicyRuleDst.md b/docs/PolicyRuleDst.md new file mode 100644 index 00000000..161ad5b4 --- /dev/null +++ b/docs/PolicyRuleDst.md @@ -0,0 +1,30 @@ +# PolicyRuleDst + +Defines the destination accounts the rule allows transfers to + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ids** | **List[List[SrcOrDestAttributesInner]]** | A set of ids in a tuple format | [optional] + +## Example + +```python +from fireblocks_client.models.policy_rule_dst import PolicyRuleDst + +# TODO update the JSON string below +json = "{}" +# create an instance of PolicyRuleDst from a JSON string +policy_rule_dst_instance = PolicyRuleDst.from_json(json) +# print the JSON string representation of the object +print PolicyRuleDst.to_json() + +# convert the object into a dict +policy_rule_dst_dict = policy_rule_dst_instance.to_dict() +# create an instance of PolicyRuleDst from a dict +policy_rule_dst_form_dict = policy_rule_dst.from_dict(policy_rule_dst_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/docs/PolicyRuleError.md b/docs/PolicyRuleError.md new file mode 100644 index 00000000..cfd6dadc --- /dev/null +++ b/docs/PolicyRuleError.md @@ -0,0 +1,33 @@ +# PolicyRuleError + +Rule validation result error + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error_message** | **str** | Error message | +**error_code** | **float** | error code | +**error_code_name** | **str** | error code name | +**error_field** | **str** | The field which the error relates to * operator - transaction initiator * operators - transaction initiators * authorizationGroups - transaction authorizer groups * designatedSigner - transaction signer * designatedSigners - transaction signers * contractMethods - contract methods * amountAggregation - transaction amount aggregation configuration * src - transaction source asset configuration * dst - transaction destination asset configuration | + +## Example + +```python +from fireblocks_client.models.policy_rule_error import PolicyRuleError + +# TODO update the JSON string below +json = "{}" +# create an instance of PolicyRuleError from a JSON string +policy_rule_error_instance = PolicyRuleError.from_json(json) +# print the JSON string representation of the object +print PolicyRuleError.to_json() + +# convert the object into a dict +policy_rule_error_dict = policy_rule_error_instance.to_dict() +# create an instance of PolicyRuleError from a dict +policy_rule_error_form_dict = policy_rule_error.from_dict(policy_rule_error_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/docs/PolicyRuleOperators.md b/docs/PolicyRuleOperators.md new file mode 100644 index 00000000..1d1b8be0 --- /dev/null +++ b/docs/PolicyRuleOperators.md @@ -0,0 +1,33 @@ +# PolicyRuleOperators + +Defines users/groups who can initiate the type of transaction to which the rule applies. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**wildcard** | **str** | If used then this property should appear as the only child property * \"*\" - All users are allowed | [optional] +**users** | **List[str]** | Set of users ids | [optional] +**users_groups** | **List[str]** | Set of group ids | [optional] +**services** | **List[str]** | set of services to initiate transactions | [optional] + +## Example + +```python +from fireblocks_client.models.policy_rule_operators import PolicyRuleOperators + +# TODO update the JSON string below +json = "{}" +# create an instance of PolicyRuleOperators from a JSON string +policy_rule_operators_instance = PolicyRuleOperators.from_json(json) +# print the JSON string representation of the object +print PolicyRuleOperators.to_json() + +# convert the object into a dict +policy_rule_operators_dict = policy_rule_operators_instance.to_dict() +# create an instance of PolicyRuleOperators from a dict +policy_rule_operators_form_dict = policy_rule_operators.from_dict(policy_rule_operators_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/docs/PolicyRuleRawMessageSigning.md b/docs/PolicyRuleRawMessageSigning.md new file mode 100644 index 00000000..d5e0e418 --- /dev/null +++ b/docs/PolicyRuleRawMessageSigning.md @@ -0,0 +1,31 @@ +# PolicyRuleRawMessageSigning + +Raw message signing configuration + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**algorithm** | **str** | | [optional] +**derivation_path** | [**PolicyRuleRawMessageSigningDerivationPath**](PolicyRuleRawMessageSigningDerivationPath.md) | | [optional] + +## Example + +```python +from fireblocks_client.models.policy_rule_raw_message_signing import PolicyRuleRawMessageSigning + +# TODO update the JSON string below +json = "{}" +# create an instance of PolicyRuleRawMessageSigning from a JSON string +policy_rule_raw_message_signing_instance = PolicyRuleRawMessageSigning.from_json(json) +# print the JSON string representation of the object +print PolicyRuleRawMessageSigning.to_json() + +# convert the object into a dict +policy_rule_raw_message_signing_dict = policy_rule_raw_message_signing_instance.to_dict() +# create an instance of PolicyRuleRawMessageSigning from a dict +policy_rule_raw_message_signing_form_dict = policy_rule_raw_message_signing.from_dict(policy_rule_raw_message_signing_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/docs/PolicyRuleRawMessageSigningDerivationPath.md b/docs/PolicyRuleRawMessageSigningDerivationPath.md new file mode 100644 index 00000000..81ccfbb3 --- /dev/null +++ b/docs/PolicyRuleRawMessageSigningDerivationPath.md @@ -0,0 +1,29 @@ +# PolicyRuleRawMessageSigningDerivationPath + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**path** | **List[float]** | | [optional] + +## Example + +```python +from fireblocks_client.models.policy_rule_raw_message_signing_derivation_path import PolicyRuleRawMessageSigningDerivationPath + +# TODO update the JSON string below +json = "{}" +# create an instance of PolicyRuleRawMessageSigningDerivationPath from a JSON string +policy_rule_raw_message_signing_derivation_path_instance = PolicyRuleRawMessageSigningDerivationPath.from_json(json) +# print the JSON string representation of the object +print PolicyRuleRawMessageSigningDerivationPath.to_json() + +# convert the object into a dict +policy_rule_raw_message_signing_derivation_path_dict = policy_rule_raw_message_signing_derivation_path_instance.to_dict() +# create an instance of PolicyRuleRawMessageSigningDerivationPath from a dict +policy_rule_raw_message_signing_derivation_path_form_dict = policy_rule_raw_message_signing_derivation_path.from_dict(policy_rule_raw_message_signing_derivation_path_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/docs/PolicyRuleSrc.md b/docs/PolicyRuleSrc.md new file mode 100644 index 00000000..b3624779 --- /dev/null +++ b/docs/PolicyRuleSrc.md @@ -0,0 +1,30 @@ +# PolicyRuleSrc + +Defines source accounts the rule allows transfers to originate from + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ids** | **List[List[SrcOrDestAttributesInner]]** | A set of ids in a tuple format | [optional] + +## Example + +```python +from fireblocks_client.models.policy_rule_src import PolicyRuleSrc + +# TODO update the JSON string below +json = "{}" +# create an instance of PolicyRuleSrc from a JSON string +policy_rule_src_instance = PolicyRuleSrc.from_json(json) +# print the JSON string representation of the object +print PolicyRuleSrc.to_json() + +# convert the object into a dict +policy_rule_src_dict = policy_rule_src_instance.to_dict() +# create an instance of PolicyRuleSrc from a dict +policy_rule_src_form_dict = policy_rule_src.from_dict(policy_rule_src_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/docs/PolicyRules.md b/docs/PolicyRules.md new file mode 100644 index 00000000..dba0a33d --- /dev/null +++ b/docs/PolicyRules.md @@ -0,0 +1,29 @@ +# PolicyRules + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**rules** | [**List[PolicyRule]**](PolicyRule.md) | Policy rules | [optional] + +## Example + +```python +from fireblocks_client.models.policy_rules import PolicyRules + +# TODO update the JSON string below +json = "{}" +# create an instance of PolicyRules from a JSON string +policy_rules_instance = PolicyRules.from_json(json) +# print the JSON string representation of the object +print PolicyRules.to_json() + +# convert the object into a dict +policy_rules_dict = policy_rules_instance.to_dict() +# create an instance of PolicyRules from a dict +policy_rules_form_dict = policy_rules.from_dict(policy_rules_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/docs/PolicySrcOrDestSubType.md b/docs/PolicySrcOrDestSubType.md new file mode 100644 index 00000000..9bb6a4b1 --- /dev/null +++ b/docs/PolicySrcOrDestSubType.md @@ -0,0 +1,12 @@ +# PolicySrcOrDestSubType + +* EXTERNAL - A whitelisted wallet assigned as external is typically used for addresses managed by your clients and counterparties * INTERNAL - A whitelisted wallet assigned as internal, is typically used for addresses that you control outside of your Fireblocks workspace * CONTRACT - A whitelisted wallet assigned as contract is for identifying and managing external smart contracts * EXCHANGETEST - Exchanges which operate only on testnet assets * \"*\" - All subtypes + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[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/PolicySrcOrDestType.md b/docs/PolicySrcOrDestType.md new file mode 100644 index 00000000..685cca05 --- /dev/null +++ b/docs/PolicySrcOrDestType.md @@ -0,0 +1,12 @@ +# PolicySrcOrDestType + +* EXCHANGE - A third-party exchange account connected to your workspace * UNMANAGED - A unmanaged wallet outside of Fireblocks workspace * VAULT - An account in your Fireblocks Vault * NETWORK_CONNECTION - A connection in your Fireblocks network * COMPOUND - (deprecated) An asset retrieved by using the Compound DeFI protocol * FIAT_ACCOUNT - A third-party fiat account connected to your workspace * ONE_TIME_ADDRESS - A non-whitelisted asset from your Fireblocks Workspace * \"*\" - All types + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[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/PolicyStatus.md b/docs/PolicyStatus.md new file mode 100644 index 00000000..bc86463d --- /dev/null +++ b/docs/PolicyStatus.md @@ -0,0 +1,12 @@ +# PolicyStatus + +* SUCCESS - success * UNVALIDATED - not validated yet * INVALID_CONFIGURATION - at least one rule is invalid * PENDING - pending approval * PENDING_CONSOLE_APPROVAL - pending approval from the console app * AWAITING_QUORUM - pending quorum approval * UNHANDLED_ERROR - unhandled error + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[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/PolicyValidation.md b/docs/PolicyValidation.md new file mode 100644 index 00000000..d11f6c32 --- /dev/null +++ b/docs/PolicyValidation.md @@ -0,0 +1,31 @@ +# PolicyValidation + +Policy validation object + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **str** | Validation status | +**check_result** | [**PolicyCheckResult**](PolicyCheckResult.md) | | + +## Example + +```python +from fireblocks_client.models.policy_validation import PolicyValidation + +# TODO update the JSON string below +json = "{}" +# create an instance of PolicyValidation from a JSON string +policy_validation_instance = PolicyValidation.from_json(json) +# print the JSON string representation of the object +print PolicyValidation.to_json() + +# convert the object into a dict +policy_validation_dict = policy_validation_instance.to_dict() +# create an instance of PolicyValidation from a dict +policy_validation_form_dict = policy_validation.from_dict(policy_validation_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/docs/PreScreening.md b/docs/PreScreening.md new file mode 100644 index 00000000..4c192cc6 --- /dev/null +++ b/docs/PreScreening.md @@ -0,0 +1,29 @@ +# PreScreening + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**enabled** | **bool** | | + +## Example + +```python +from fireblocks_client.models.pre_screening import PreScreening + +# TODO update the JSON string below +json = "{}" +# create an instance of PreScreening from a JSON string +pre_screening_instance = PreScreening.from_json(json) +# print the JSON string representation of the object +print PreScreening.to_json() + +# convert the object into a dict +pre_screening_dict = pre_screening_instance.to_dict() +# create an instance of PreScreening from a dict +pre_screening_form_dict = pre_screening.from_dict(pre_screening_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/docs/ProviderDto.md b/docs/ProviderDto.md new file mode 100644 index 00000000..8b94b15e --- /dev/null +++ b/docs/ProviderDto.md @@ -0,0 +1,34 @@ +# ProviderDto + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | The ID of the provider | +**provider_name** | **str** | Name of the provider | +**validators** | [**List[ValidatorDto]**](ValidatorDto.md) | An array of objects that includes chain descriptors and the corresponding fee percentages for validators supported by the provider | +**icon_url** | **str** | URL to the validator's icon | +**terms_of_service_url** | **str** | URL to the terms of service | +**is_terms_of_service_approved** | **bool** | Indicates whether the terms of service are approved | + +## Example + +```python +from fireblocks_client.models.provider_dto import ProviderDto + +# TODO update the JSON string below +json = "{}" +# create an instance of ProviderDto from a JSON string +provider_dto_instance = ProviderDto.from_json(json) +# print the JSON string representation of the object +print ProviderDto.to_json() + +# convert the object into a dict +provider_dto_dict = provider_dto_instance.to_dict() +# create an instance of ProviderDto from a dict +provider_dto_form_dict = provider_dto.from_dict(provider_dto_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/docs/PublicKeyInformation.md b/docs/PublicKeyInformation.md new file mode 100644 index 00000000..8fe11b31 --- /dev/null +++ b/docs/PublicKeyInformation.md @@ -0,0 +1,31 @@ +# PublicKeyInformation + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**algorithm** | **str** | | [optional] +**derivation_path** | **List[float]** | | [optional] +**public_key** | **str** | | [optional] + +## Example + +```python +from fireblocks_client.models.public_key_information import PublicKeyInformation + +# TODO update the JSON string below +json = "{}" +# create an instance of PublicKeyInformation from a JSON string +public_key_information_instance = PublicKeyInformation.from_json(json) +# print the JSON string representation of the object +print PublicKeyInformation.to_json() + +# convert the object into a dict +public_key_information_dict = public_key_information_instance.to_dict() +# create an instance of PublicKeyInformation from a dict +public_key_information_form_dict = public_key_information.from_dict(public_key_information_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/docs/PublishDraftRequest.md b/docs/PublishDraftRequest.md new file mode 100644 index 00000000..7657a333 --- /dev/null +++ b/docs/PublishDraftRequest.md @@ -0,0 +1,29 @@ +# PublishDraftRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**draft_id** | **str** | draft unique identifier | [optional] + +## Example + +```python +from fireblocks_client.models.publish_draft_request import PublishDraftRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of PublishDraftRequest from a JSON string +publish_draft_request_instance = PublishDraftRequest.from_json(json) +# print the JSON string representation of the object +print PublishDraftRequest.to_json() + +# convert the object into a dict +publish_draft_request_dict = publish_draft_request_instance.to_dict() +# create an instance of PublishDraftRequest from a dict +publish_draft_request_form_dict = publish_draft_request.from_dict(publish_draft_request_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/docs/PublishResult.md b/docs/PublishResult.md new file mode 100644 index 00000000..ee81d91e --- /dev/null +++ b/docs/PublishResult.md @@ -0,0 +1,33 @@ +# PublishResult + +Response object of the publish policy operation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | [**PolicyStatus**](PolicyStatus.md) | | +**rules** | [**List[PolicyRule]**](PolicyRule.md) | | +**check_result** | [**PolicyCheckResult**](PolicyCheckResult.md) | | +**metadata** | [**PolicyMetadata**](PolicyMetadata.md) | | + +## Example + +```python +from fireblocks_client.models.publish_result import PublishResult + +# TODO update the JSON string below +json = "{}" +# create an instance of PublishResult from a JSON string +publish_result_instance = PublishResult.from_json(json) +# print the JSON string representation of the object +print PublishResult.to_json() + +# convert the object into a dict +publish_result_dict = publish_result_instance.to_dict() +# create an instance of PublishResult from a dict +publish_result_form_dict = publish_result.from_dict(publish_result_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/docs/ReadAbiFunction.md b/docs/ReadAbiFunction.md new file mode 100644 index 00000000..29356599 --- /dev/null +++ b/docs/ReadAbiFunction.md @@ -0,0 +1,34 @@ +# ReadAbiFunction + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**state_mutability** | **str** | | +**outputs** | [**List[Parameter]**](Parameter.md) | | [optional] +**name** | **str** | | [optional] +**type** | **str** | | +**inputs** | [**List[ParameterWithValue]**](ParameterWithValue.md) | | +**description** | **str** | | [optional] + +## Example + +```python +from fireblocks_client.models.read_abi_function import ReadAbiFunction + +# TODO update the JSON string below +json = "{}" +# create an instance of ReadAbiFunction from a JSON string +read_abi_function_instance = ReadAbiFunction.from_json(json) +# print the JSON string representation of the object +print ReadAbiFunction.to_json() + +# convert the object into a dict +read_abi_function_dict = read_abi_function_instance.to_dict() +# create an instance of ReadAbiFunction from a dict +read_abi_function_form_dict = read_abi_function.from_dict(read_abi_function_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/docs/ReadCallFunctionDto.md b/docs/ReadCallFunctionDto.md new file mode 100644 index 00000000..931096ad --- /dev/null +++ b/docs/ReadCallFunctionDto.md @@ -0,0 +1,29 @@ +# ReadCallFunctionDto + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**abi_function** | [**List[ReadAbiFunction]**](ReadAbiFunction.md) | The abi of the read function you wish to call | + +## Example + +```python +from fireblocks_client.models.read_call_function_dto import ReadCallFunctionDto + +# TODO update the JSON string below +json = "{}" +# create an instance of ReadCallFunctionDto from a JSON string +read_call_function_dto_instance = ReadCallFunctionDto.from_json(json) +# print the JSON string representation of the object +print ReadCallFunctionDto.to_json() + +# convert the object into a dict +read_call_function_dto_dict = read_call_function_dto_instance.to_dict() +# create an instance of ReadCallFunctionDto from a dict +read_call_function_dto_form_dict = read_call_function_dto.from_dict(read_call_function_dto_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/docs/RedeemFundsToLinkedDDAResponse.md b/docs/RedeemFundsToLinkedDDAResponse.md new file mode 100644 index 00000000..55bcd569 --- /dev/null +++ b/docs/RedeemFundsToLinkedDDAResponse.md @@ -0,0 +1,29 @@ +# RedeemFundsToLinkedDDAResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Indicates whether the funds were successfully redeemed to the linked DDA | + +## Example + +```python +from fireblocks_client.models.redeem_funds_to_linked_dda_response import RedeemFundsToLinkedDDAResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of RedeemFundsToLinkedDDAResponse from a JSON string +redeem_funds_to_linked_dda_response_instance = RedeemFundsToLinkedDDAResponse.from_json(json) +# print the JSON string representation of the object +print RedeemFundsToLinkedDDAResponse.to_json() + +# convert the object into a dict +redeem_funds_to_linked_dda_response_dict = redeem_funds_to_linked_dda_response_instance.to_dict() +# create an instance of RedeemFundsToLinkedDDAResponse from a dict +redeem_funds_to_linked_dda_response_form_dict = redeem_funds_to_linked_dda_response.from_dict(redeem_funds_to_linked_dda_response_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/docs/RegisterNewAssetRequest.md b/docs/RegisterNewAssetRequest.md new file mode 100644 index 00000000..512f6c51 --- /dev/null +++ b/docs/RegisterNewAssetRequest.md @@ -0,0 +1,31 @@ +# RegisterNewAssetRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**blockchain_id** | **str** | Native asset of blockchain | +**address** | **str** | Asset address | +**symbol** | **str** | Asset symbol | [optional] + +## Example + +```python +from fireblocks_client.models.register_new_asset_request import RegisterNewAssetRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of RegisterNewAssetRequest from a JSON string +register_new_asset_request_instance = RegisterNewAssetRequest.from_json(json) +# print the JSON string representation of the object +print RegisterNewAssetRequest.to_json() + +# convert the object into a dict +register_new_asset_request_dict = register_new_asset_request_instance.to_dict() +# create an instance of RegisterNewAssetRequest from a dict +register_new_asset_request_form_dict = register_new_asset_request.from_dict(register_new_asset_request_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/docs/RelatedTransactionDto.md b/docs/RelatedTransactionDto.md new file mode 100644 index 00000000..c579f1b6 --- /dev/null +++ b/docs/RelatedTransactionDto.md @@ -0,0 +1,30 @@ +# RelatedTransactionDto + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**tx_id** | **str** | The transaction ID | +**completed** | **bool** | Is the transaction completed or not | + +## Example + +```python +from fireblocks_client.models.related_transaction_dto import RelatedTransactionDto + +# TODO update the JSON string below +json = "{}" +# create an instance of RelatedTransactionDto from a JSON string +related_transaction_dto_instance = RelatedTransactionDto.from_json(json) +# print the JSON string representation of the object +print RelatedTransactionDto.to_json() + +# convert the object into a dict +related_transaction_dto_dict = related_transaction_dto_instance.to_dict() +# create an instance of RelatedTransactionDto from a dict +related_transaction_dto_form_dict = related_transaction_dto.from_dict(related_transaction_dto_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/docs/RemoveCollateralRequestBody.md b/docs/RemoveCollateralRequestBody.md new file mode 100644 index 00000000..68531e2f --- /dev/null +++ b/docs/RemoveCollateralRequestBody.md @@ -0,0 +1,30 @@ +# RemoveCollateralRequestBody + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**transaction_request** | [**TransactionRequest**](TransactionRequest.md) | | [optional] +**is_dst_collateral** | **bool** | optional | [optional] + +## Example + +```python +from fireblocks_client.models.remove_collateral_request_body import RemoveCollateralRequestBody + +# TODO update the JSON string below +json = "{}" +# create an instance of RemoveCollateralRequestBody from a JSON string +remove_collateral_request_body_instance = RemoveCollateralRequestBody.from_json(json) +# print the JSON string representation of the object +print RemoveCollateralRequestBody.to_json() + +# convert the object into a dict +remove_collateral_request_body_dict = remove_collateral_request_body_instance.to_dict() +# create an instance of RemoveCollateralRequestBody from a dict +remove_collateral_request_body_form_dict = remove_collateral_request_body.from_dict(remove_collateral_request_body_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/docs/RenameCosigner.md b/docs/RenameCosigner.md new file mode 100644 index 00000000..3cfd0d27 --- /dev/null +++ b/docs/RenameCosigner.md @@ -0,0 +1,29 @@ +# RenameCosigner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | The new name of the cosigner | [optional] + +## Example + +```python +from fireblocks_client.models.rename_cosigner import RenameCosigner + +# TODO update the JSON string below +json = "{}" +# create an instance of RenameCosigner from a JSON string +rename_cosigner_instance = RenameCosigner.from_json(json) +# print the JSON string representation of the object +print RenameCosigner.to_json() + +# convert the object into a dict +rename_cosigner_dict = rename_cosigner_instance.to_dict() +# create an instance of RenameCosigner from a dict +rename_cosigner_form_dict = rename_cosigner.from_dict(rename_cosigner_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/docs/RenameVaultAccountResponse.md b/docs/RenameVaultAccountResponse.md new file mode 100644 index 00000000..4c291276 --- /dev/null +++ b/docs/RenameVaultAccountResponse.md @@ -0,0 +1,30 @@ +# RenameVaultAccountResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | The new name of the vault account | [optional] +**id** | **str** | The ID of the vault account | [optional] + +## Example + +```python +from fireblocks_client.models.rename_vault_account_response import RenameVaultAccountResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of RenameVaultAccountResponse from a JSON string +rename_vault_account_response_instance = RenameVaultAccountResponse.from_json(json) +# print the JSON string representation of the object +print RenameVaultAccountResponse.to_json() + +# convert the object into a dict +rename_vault_account_response_dict = rename_vault_account_response_instance.to_dict() +# create an instance of RenameVaultAccountResponse from a dict +rename_vault_account_response_form_dict = rename_vault_account_response.from_dict(rename_vault_account_response_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/docs/ResendTransactionWebhooksRequest.md b/docs/ResendTransactionWebhooksRequest.md new file mode 100644 index 00000000..3e6994d0 --- /dev/null +++ b/docs/ResendTransactionWebhooksRequest.md @@ -0,0 +1,30 @@ +# ResendTransactionWebhooksRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**resend_created** | **bool** | | [optional] +**resend_status_updated** | **bool** | | [optional] + +## Example + +```python +from fireblocks_client.models.resend_transaction_webhooks_request import ResendTransactionWebhooksRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of ResendTransactionWebhooksRequest from a JSON string +resend_transaction_webhooks_request_instance = ResendTransactionWebhooksRequest.from_json(json) +# print the JSON string representation of the object +print ResendTransactionWebhooksRequest.to_json() + +# convert the object into a dict +resend_transaction_webhooks_request_dict = resend_transaction_webhooks_request_instance.to_dict() +# create an instance of ResendTransactionWebhooksRequest from a dict +resend_transaction_webhooks_request_form_dict = resend_transaction_webhooks_request.from_dict(resend_transaction_webhooks_request_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/docs/ResendWebhooksByTransactionIdResponse.md b/docs/ResendWebhooksByTransactionIdResponse.md new file mode 100644 index 00000000..b2e253e9 --- /dev/null +++ b/docs/ResendWebhooksByTransactionIdResponse.md @@ -0,0 +1,29 @@ +# ResendWebhooksByTransactionIdResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Indicates whether the webhooks were successfully resent | + +## Example + +```python +from fireblocks_client.models.resend_webhooks_by_transaction_id_response import ResendWebhooksByTransactionIdResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of ResendWebhooksByTransactionIdResponse from a JSON string +resend_webhooks_by_transaction_id_response_instance = ResendWebhooksByTransactionIdResponse.from_json(json) +# print the JSON string representation of the object +print ResendWebhooksByTransactionIdResponse.to_json() + +# convert the object into a dict +resend_webhooks_by_transaction_id_response_dict = resend_webhooks_by_transaction_id_response_instance.to_dict() +# create an instance of ResendWebhooksByTransactionIdResponse from a dict +resend_webhooks_by_transaction_id_response_form_dict = resend_webhooks_by_transaction_id_response.from_dict(resend_webhooks_by_transaction_id_response_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/docs/ResendWebhooksResponse.md b/docs/ResendWebhooksResponse.md new file mode 100644 index 00000000..f52ae2a3 --- /dev/null +++ b/docs/ResendWebhooksResponse.md @@ -0,0 +1,29 @@ +# ResendWebhooksResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**messages_count** | **float** | | [optional] + +## Example + +```python +from fireblocks_client.models.resend_webhooks_response import ResendWebhooksResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of ResendWebhooksResponse from a JSON string +resend_webhooks_response_instance = ResendWebhooksResponse.from_json(json) +# print the JSON string representation of the object +print ResendWebhooksResponse.to_json() + +# convert the object into a dict +resend_webhooks_response_dict = resend_webhooks_response_instance.to_dict() +# create an instance of ResendWebhooksResponse from a dict +resend_webhooks_response_form_dict = resend_webhooks_response.from_dict(resend_webhooks_response_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/docs/ResetDeviceApi.md b/docs/ResetDeviceApi.md new file mode 100644 index 00000000..822bde62 --- /dev/null +++ b/docs/ResetDeviceApi.md @@ -0,0 +1,80 @@ +# fireblocks_client.ResetDeviceApi + +All URIs are relative to *https://api.fireblocks.io/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**reset_device**](ResetDeviceApi.md#reset_device) | **POST** /management/users/{id}/reset_device | Resets device + + +# **reset_device** +> reset_device(id, idempotency_key=idempotency_key) + +Resets device + +Resets mobile device for given console user, that user will need to do mobile onboarding again. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.ResetDeviceApi(api_client) + id = 'id_example' # str | The ID of the console user + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + + try: + # Resets device + api_instance.reset_device(id, idempotency_key=idempotency_key) + except Exception as e: + print("Exception when calling ResetDeviceApi->reset_device: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| The ID of the console user | + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Reset device approval request has been sent | * X-Request-ID -
| +**401** | Unauthorized. Missing / invalid JWT token in Authorization header. | * X-Request-ID -
| +**403** | Lacking permissions. | * X-Request-ID -
| +**5XX** | Internal error. | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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) + diff --git a/docs/RespondToConnectionRequest.md b/docs/RespondToConnectionRequest.md new file mode 100644 index 00000000..b71b9987 --- /dev/null +++ b/docs/RespondToConnectionRequest.md @@ -0,0 +1,29 @@ +# RespondToConnectionRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**approve** | **bool** | Approval of the initiated Web3 connection. | + +## Example + +```python +from fireblocks_client.models.respond_to_connection_request import RespondToConnectionRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of RespondToConnectionRequest from a JSON string +respond_to_connection_request_instance = RespondToConnectionRequest.from_json(json) +# print the JSON string representation of the object +print RespondToConnectionRequest.to_json() + +# convert the object into a dict +respond_to_connection_request_dict = respond_to_connection_request_instance.to_dict() +# create an instance of RespondToConnectionRequest from a dict +respond_to_connection_request_form_dict = respond_to_connection_request.from_dict(respond_to_connection_request_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/docs/RewardInfo.md b/docs/RewardInfo.md new file mode 100644 index 00000000..09c31c7e --- /dev/null +++ b/docs/RewardInfo.md @@ -0,0 +1,31 @@ +# RewardInfo + +This field is relevant only for Algorand transactions. Both `srcRewards` and `destRewards` will appear only for Vault to Vault transactions, otherwise you will receive only the Fireblocks’ side of the transaction. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**src_rewards** | **str** | | [optional] +**dest_rewards** | **str** | | [optional] + +## Example + +```python +from fireblocks_client.models.reward_info import RewardInfo + +# TODO update the JSON string below +json = "{}" +# create an instance of RewardInfo from a JSON string +reward_info_instance = RewardInfo.from_json(json) +# print the JSON string representation of the object +print RewardInfo.to_json() + +# convert the object into a dict +reward_info_dict = reward_info_instance.to_dict() +# create an instance of RewardInfo from a dict +reward_info_form_dict = reward_info.from_dict(reward_info_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/docs/RewardsInfo.md b/docs/RewardsInfo.md new file mode 100644 index 00000000..5567cf82 --- /dev/null +++ b/docs/RewardsInfo.md @@ -0,0 +1,29 @@ +# RewardsInfo + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**pending_rewards** | **str** | Amount that is pending for rewards | [optional] + +## Example + +```python +from fireblocks_client.models.rewards_info import RewardsInfo + +# TODO update the JSON string below +json = "{}" +# create an instance of RewardsInfo from a JSON string +rewards_info_instance = RewardsInfo.from_json(json) +# print the JSON string representation of the object +print RewardsInfo.to_json() + +# convert the object into a dict +rewards_info_dict = rewards_info_instance.to_dict() +# create an instance of RewardsInfo from a dict +rewards_info_form_dict = rewards_info.from_dict(rewards_info_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/docs/ScreeningConfigurationsRequest.md b/docs/ScreeningConfigurationsRequest.md new file mode 100644 index 00000000..48e9d015 --- /dev/null +++ b/docs/ScreeningConfigurationsRequest.md @@ -0,0 +1,31 @@ +# ScreeningConfigurationsRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**bypass_screening_during_service_outages** | **bool** | Flag to enable or disable bypass screening during service outages. | [optional] +**inbound_transaction_delay** | **float** | Inbound transaction delay in seconds. | [optional] +**outbound_transaction_delay** | **float** | Outbound transaction delay in seconds. | [optional] + +## Example + +```python +from fireblocks_client.models.screening_configurations_request import ScreeningConfigurationsRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of ScreeningConfigurationsRequest from a JSON string +screening_configurations_request_instance = ScreeningConfigurationsRequest.from_json(json) +# print the JSON string representation of the object +print ScreeningConfigurationsRequest.to_json() + +# convert the object into a dict +screening_configurations_request_dict = screening_configurations_request_instance.to_dict() +# create an instance of ScreeningConfigurationsRequest from a dict +screening_configurations_request_form_dict = screening_configurations_request.from_dict(screening_configurations_request_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/docs/ScreeningOperationExecution.md b/docs/ScreeningOperationExecution.md new file mode 100644 index 00000000..4c51fd6d --- /dev/null +++ b/docs/ScreeningOperationExecution.md @@ -0,0 +1,32 @@ +# ScreeningOperationExecution + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**output** | [**ScreeningOperationExecutionOutput**](ScreeningOperationExecutionOutput.md) | | [optional] +**started_at** | **float** | | +**finished_at** | **float** | | [optional] +**failure** | [**ScreeningOperationFailure**](ScreeningOperationFailure.md) | | [optional] + +## Example + +```python +from fireblocks_client.models.screening_operation_execution import ScreeningOperationExecution + +# TODO update the JSON string below +json = "{}" +# create an instance of ScreeningOperationExecution from a JSON string +screening_operation_execution_instance = ScreeningOperationExecution.from_json(json) +# print the JSON string representation of the object +print ScreeningOperationExecution.to_json() + +# convert the object into a dict +screening_operation_execution_dict = screening_operation_execution_instance.to_dict() +# create an instance of ScreeningOperationExecution from a dict +screening_operation_execution_form_dict = screening_operation_execution.from_dict(screening_operation_execution_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/docs/ScreeningOperationExecutionOutput.md b/docs/ScreeningOperationExecutionOutput.md new file mode 100644 index 00000000..63278857 --- /dev/null +++ b/docs/ScreeningOperationExecutionOutput.md @@ -0,0 +1,29 @@ +# ScreeningOperationExecutionOutput + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**verdicts** | [**List[ScreeningVerdict]**](ScreeningVerdict.md) | | + +## Example + +```python +from fireblocks_client.models.screening_operation_execution_output import ScreeningOperationExecutionOutput + +# TODO update the JSON string below +json = "{}" +# create an instance of ScreeningOperationExecutionOutput from a JSON string +screening_operation_execution_output_instance = ScreeningOperationExecutionOutput.from_json(json) +# print the JSON string representation of the object +print ScreeningOperationExecutionOutput.to_json() + +# convert the object into a dict +screening_operation_execution_output_dict = screening_operation_execution_output_instance.to_dict() +# create an instance of ScreeningOperationExecutionOutput from a dict +screening_operation_execution_output_form_dict = screening_operation_execution_output.from_dict(screening_operation_execution_output_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/docs/ScreeningOperationFailure.md b/docs/ScreeningOperationFailure.md new file mode 100644 index 00000000..a7c8b737 --- /dev/null +++ b/docs/ScreeningOperationFailure.md @@ -0,0 +1,30 @@ +# ScreeningOperationFailure + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**reason** | **str** | | +**data** | [**ScreeningOperationExecutionOutput**](ScreeningOperationExecutionOutput.md) | | [optional] + +## Example + +```python +from fireblocks_client.models.screening_operation_failure import ScreeningOperationFailure + +# TODO update the JSON string below +json = "{}" +# create an instance of ScreeningOperationFailure from a JSON string +screening_operation_failure_instance = ScreeningOperationFailure.from_json(json) +# print the JSON string representation of the object +print ScreeningOperationFailure.to_json() + +# convert the object into a dict +screening_operation_failure_dict = screening_operation_failure_instance.to_dict() +# create an instance of ScreeningOperationFailure from a dict +screening_operation_failure_form_dict = screening_operation_failure.from_dict(screening_operation_failure_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/docs/ScreeningOperationType.md b/docs/ScreeningOperationType.md new file mode 100644 index 00000000..a6306d9c --- /dev/null +++ b/docs/ScreeningOperationType.md @@ -0,0 +1,11 @@ +# ScreeningOperationType + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[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/ScreeningPolicyResponse.md b/docs/ScreeningPolicyResponse.md new file mode 100644 index 00000000..1809ce6b --- /dev/null +++ b/docs/ScreeningPolicyResponse.md @@ -0,0 +1,33 @@ +# ScreeningPolicyResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**policy** | [**TravelRulePolicyRuleResponse**](TravelRulePolicyRuleResponse.md) | | +**policy_status** | **str** | | [optional] +**is_default** | **bool** | | +**create_date** | **datetime** | | [optional] +**last_update** | **datetime** | | + +## Example + +```python +from fireblocks_client.models.screening_policy_response import ScreeningPolicyResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of ScreeningPolicyResponse from a JSON string +screening_policy_response_instance = ScreeningPolicyResponse.from_json(json) +# print the JSON string representation of the object +print ScreeningPolicyResponse.to_json() + +# convert the object into a dict +screening_policy_response_dict = screening_policy_response_instance.to_dict() +# create an instance of ScreeningPolicyResponse from a dict +screening_policy_response_form_dict = screening_policy_response.from_dict(screening_policy_response_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/docs/ScreeningProviderRulesConfigurationResponse.md b/docs/ScreeningProviderRulesConfigurationResponse.md new file mode 100644 index 00000000..3db0cf5e --- /dev/null +++ b/docs/ScreeningProviderRulesConfigurationResponse.md @@ -0,0 +1,34 @@ +# ScreeningProviderRulesConfigurationResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**direction** | **str** | | [optional] +**status** | **str** | | [optional] +**amount_usd** | **float** | | [optional] +**amount** | **float** | | [optional] +**asset** | **str** | | [optional] +**action** | **str** | | + +## Example + +```python +from fireblocks_client.models.screening_provider_rules_configuration_response import ScreeningProviderRulesConfigurationResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of ScreeningProviderRulesConfigurationResponse from a JSON string +screening_provider_rules_configuration_response_instance = ScreeningProviderRulesConfigurationResponse.from_json(json) +# print the JSON string representation of the object +print ScreeningProviderRulesConfigurationResponse.to_json() + +# convert the object into a dict +screening_provider_rules_configuration_response_dict = screening_provider_rules_configuration_response_instance.to_dict() +# create an instance of ScreeningProviderRulesConfigurationResponse from a dict +screening_provider_rules_configuration_response_form_dict = screening_provider_rules_configuration_response.from_dict(screening_provider_rules_configuration_response_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/docs/ScreeningUpdateConfigurationsRequest.md b/docs/ScreeningUpdateConfigurationsRequest.md new file mode 100644 index 00000000..640c962d --- /dev/null +++ b/docs/ScreeningUpdateConfigurationsRequest.md @@ -0,0 +1,30 @@ +# ScreeningUpdateConfigurationsRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**disable_bypass** | **bool** | Flag to enable or disable bypass screening on tenant configuration. | [optional] +**disable_unfreeze** | **bool** | Flag to enable or disable unfreeze of transaction frozen by policy rule on tenant configuration. | [optional] + +## Example + +```python +from fireblocks_client.models.screening_update_configurations_request import ScreeningUpdateConfigurationsRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of ScreeningUpdateConfigurationsRequest from a JSON string +screening_update_configurations_request_instance = ScreeningUpdateConfigurationsRequest.from_json(json) +# print the JSON string representation of the object +print ScreeningUpdateConfigurationsRequest.to_json() + +# convert the object into a dict +screening_update_configurations_request_dict = screening_update_configurations_request_instance.to_dict() +# create an instance of ScreeningUpdateConfigurationsRequest from a dict +screening_update_configurations_request_form_dict = screening_update_configurations_request.from_dict(screening_update_configurations_request_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/docs/ScreeningValidationFailure.md b/docs/ScreeningValidationFailure.md new file mode 100644 index 00000000..958a1c36 --- /dev/null +++ b/docs/ScreeningValidationFailure.md @@ -0,0 +1,30 @@ +# ScreeningValidationFailure + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**reason** | **str** | | +**data** | **Dict[str, object]** | | [optional] + +## Example + +```python +from fireblocks_client.models.screening_validation_failure import ScreeningValidationFailure + +# TODO update the JSON string below +json = "{}" +# create an instance of ScreeningValidationFailure from a JSON string +screening_validation_failure_instance = ScreeningValidationFailure.from_json(json) +# print the JSON string representation of the object +print ScreeningValidationFailure.to_json() + +# convert the object into a dict +screening_validation_failure_dict = screening_validation_failure_instance.to_dict() +# create an instance of ScreeningValidationFailure from a dict +screening_validation_failure_form_dict = screening_validation_failure.from_dict(screening_validation_failure_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/docs/ScreeningVerdict.md b/docs/ScreeningVerdict.md new file mode 100644 index 00000000..c3dab2e6 --- /dev/null +++ b/docs/ScreeningVerdict.md @@ -0,0 +1,34 @@ +# ScreeningVerdict + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**verdict** | **str** | | +**execution_operation_id** | **str** | | +**account** | [**Destination**](Destination.md) | | +**asset_id** | **str** | | +**amount** | **str** | | +**matched_rule** | [**ScreeningVerdictMatchedRule**](ScreeningVerdictMatchedRule.md) | | [optional] + +## Example + +```python +from fireblocks_client.models.screening_verdict import ScreeningVerdict + +# TODO update the JSON string below +json = "{}" +# create an instance of ScreeningVerdict from a JSON string +screening_verdict_instance = ScreeningVerdict.from_json(json) +# print the JSON string representation of the object +print ScreeningVerdict.to_json() + +# convert the object into a dict +screening_verdict_dict = screening_verdict_instance.to_dict() +# create an instance of ScreeningVerdict from a dict +screening_verdict_form_dict = screening_verdict.from_dict(screening_verdict_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/docs/ScreeningVerdictMatchedRule.md b/docs/ScreeningVerdictMatchedRule.md new file mode 100644 index 00000000..0d518e06 --- /dev/null +++ b/docs/ScreeningVerdictMatchedRule.md @@ -0,0 +1,30 @@ +# ScreeningVerdictMatchedRule + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**action** | **str** | | [optional] +**category** | **List[str]** | | [optional] + +## Example + +```python +from fireblocks_client.models.screening_verdict_matched_rule import ScreeningVerdictMatchedRule + +# TODO update the JSON string below +json = "{}" +# create an instance of ScreeningVerdictMatchedRule from a JSON string +screening_verdict_matched_rule_instance = ScreeningVerdictMatchedRule.from_json(json) +# print the JSON string representation of the object +print ScreeningVerdictMatchedRule.to_json() + +# convert the object into a dict +screening_verdict_matched_rule_dict = screening_verdict_matched_rule_instance.to_dict() +# create an instance of ScreeningVerdictMatchedRule from a dict +screening_verdict_matched_rule_form_dict = screening_verdict_matched_rule.from_dict(screening_verdict_matched_rule_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/docs/SessionDTO.md b/docs/SessionDTO.md new file mode 100644 index 00000000..d459777c --- /dev/null +++ b/docs/SessionDTO.md @@ -0,0 +1,37 @@ +# SessionDTO + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | Id of the connection | +**user_id** | **str** | Id of the user that created the connection | +**session_metadata** | [**SessionMetadata**](SessionMetadata.md) | Metadata of the connection (provided by the dapp) | +**vault_account_id** | **float** | The vault to connect | +**fee_level** | **str** | The default fee level | +**chain_ids** | **List[str]** | The chains approved for the connection | +**connection_type** | **str** | The connection's type | +**connection_method** | **str** | The method through which the connection was established | +**creation_date** | **datetime** | Timestamp of the session's creation | + +## Example + +```python +from fireblocks_client.models.session_dto import SessionDTO + +# TODO update the JSON string below +json = "{}" +# create an instance of SessionDTO from a JSON string +session_dto_instance = SessionDTO.from_json(json) +# print the JSON string representation of the object +print SessionDTO.to_json() + +# convert the object into a dict +session_dto_dict = session_dto_instance.to_dict() +# create an instance of SessionDTO from a dict +session_dto_form_dict = session_dto.from_dict(session_dto_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/docs/SessionMetadata.md b/docs/SessionMetadata.md new file mode 100644 index 00000000..d5f89149 --- /dev/null +++ b/docs/SessionMetadata.md @@ -0,0 +1,32 @@ +# SessionMetadata + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**app_url** | **str** | | +**app_name** | **str** | | [optional] +**app_description** | **str** | | [optional] +**app_icon** | **str** | | [optional] + +## Example + +```python +from fireblocks_client.models.session_metadata import SessionMetadata + +# TODO update the JSON string below +json = "{}" +# create an instance of SessionMetadata from a JSON string +session_metadata_instance = SessionMetadata.from_json(json) +# print the JSON string representation of the object +print SessionMetadata.to_json() + +# convert the object into a dict +session_metadata_dict = session_metadata_instance.to_dict() +# create an instance of SessionMetadata from a dict +session_metadata_form_dict = session_metadata.from_dict(session_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/docs/SetAdminQuorumThresholdRequest.md b/docs/SetAdminQuorumThresholdRequest.md new file mode 100644 index 00000000..667a7c31 --- /dev/null +++ b/docs/SetAdminQuorumThresholdRequest.md @@ -0,0 +1,29 @@ +# SetAdminQuorumThresholdRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**admin_quorum_threshold** | **float** | The number of admins that will requires to approve an operation | [optional] + +## Example + +```python +from fireblocks_client.models.set_admin_quorum_threshold_request import SetAdminQuorumThresholdRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of SetAdminQuorumThresholdRequest from a JSON string +set_admin_quorum_threshold_request_instance = SetAdminQuorumThresholdRequest.from_json(json) +# print the JSON string representation of the object +print SetAdminQuorumThresholdRequest.to_json() + +# convert the object into a dict +set_admin_quorum_threshold_request_dict = set_admin_quorum_threshold_request_instance.to_dict() +# create an instance of SetAdminQuorumThresholdRequest from a dict +set_admin_quorum_threshold_request_form_dict = set_admin_quorum_threshold_request.from_dict(set_admin_quorum_threshold_request_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/docs/SetAdminQuorumThresholdResponse.md b/docs/SetAdminQuorumThresholdResponse.md new file mode 100644 index 00000000..3ca11c9a --- /dev/null +++ b/docs/SetAdminQuorumThresholdResponse.md @@ -0,0 +1,29 @@ +# SetAdminQuorumThresholdResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message** | **str** | The message which indicates the result of the operation. | + +## Example + +```python +from fireblocks_client.models.set_admin_quorum_threshold_response import SetAdminQuorumThresholdResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of SetAdminQuorumThresholdResponse from a JSON string +set_admin_quorum_threshold_response_instance = SetAdminQuorumThresholdResponse.from_json(json) +# print the JSON string representation of the object +print SetAdminQuorumThresholdResponse.to_json() + +# convert the object into a dict +set_admin_quorum_threshold_response_dict = set_admin_quorum_threshold_response_instance.to_dict() +# create an instance of SetAdminQuorumThresholdResponse from a dict +set_admin_quorum_threshold_response_form_dict = set_admin_quorum_threshold_response.from_dict(set_admin_quorum_threshold_response_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/docs/SetAutoFuelRequest.md b/docs/SetAutoFuelRequest.md new file mode 100644 index 00000000..8b3223b8 --- /dev/null +++ b/docs/SetAutoFuelRequest.md @@ -0,0 +1,29 @@ +# SetAutoFuelRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**auto_fuel** | **bool** | Auto Fuel | [optional] + +## Example + +```python +from fireblocks_client.models.set_auto_fuel_request import SetAutoFuelRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of SetAutoFuelRequest from a JSON string +set_auto_fuel_request_instance = SetAutoFuelRequest.from_json(json) +# print the JSON string representation of the object +print SetAutoFuelRequest.to_json() + +# convert the object into a dict +set_auto_fuel_request_dict = set_auto_fuel_request_instance.to_dict() +# create an instance of SetAutoFuelRequest from a dict +set_auto_fuel_request_form_dict = set_auto_fuel_request.from_dict(set_auto_fuel_request_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/docs/SetConfirmationsThresholdRequest.md b/docs/SetConfirmationsThresholdRequest.md new file mode 100644 index 00000000..2b7fe45e --- /dev/null +++ b/docs/SetConfirmationsThresholdRequest.md @@ -0,0 +1,29 @@ +# SetConfirmationsThresholdRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**num_of_confirmations** | **float** | | [optional] + +## Example + +```python +from fireblocks_client.models.set_confirmations_threshold_request import SetConfirmationsThresholdRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of SetConfirmationsThresholdRequest from a JSON string +set_confirmations_threshold_request_instance = SetConfirmationsThresholdRequest.from_json(json) +# print the JSON string representation of the object +print SetConfirmationsThresholdRequest.to_json() + +# convert the object into a dict +set_confirmations_threshold_request_dict = set_confirmations_threshold_request_instance.to_dict() +# create an instance of SetConfirmationsThresholdRequest from a dict +set_confirmations_threshold_request_form_dict = set_confirmations_threshold_request.from_dict(set_confirmations_threshold_request_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/docs/SetConfirmationsThresholdResponse.md b/docs/SetConfirmationsThresholdResponse.md new file mode 100644 index 00000000..5241679c --- /dev/null +++ b/docs/SetConfirmationsThresholdResponse.md @@ -0,0 +1,30 @@ +# SetConfirmationsThresholdResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | | [optional] +**transactions** | **List[str]** | | [optional] + +## Example + +```python +from fireblocks_client.models.set_confirmations_threshold_response import SetConfirmationsThresholdResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of SetConfirmationsThresholdResponse from a JSON string +set_confirmations_threshold_response_instance = SetConfirmationsThresholdResponse.from_json(json) +# print the JSON string representation of the object +print SetConfirmationsThresholdResponse.to_json() + +# convert the object into a dict +set_confirmations_threshold_response_dict = set_confirmations_threshold_response_instance.to_dict() +# create an instance of SetConfirmationsThresholdResponse from a dict +set_confirmations_threshold_response_form_dict = set_confirmations_threshold_response.from_dict(set_confirmations_threshold_response_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/docs/SetCustomerRefIdForAddressRequest.md b/docs/SetCustomerRefIdForAddressRequest.md new file mode 100644 index 00000000..0e73756a --- /dev/null +++ b/docs/SetCustomerRefIdForAddressRequest.md @@ -0,0 +1,29 @@ +# SetCustomerRefIdForAddressRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**customer_ref_id** | **str** | Customer reference ID | [optional] + +## Example + +```python +from fireblocks_client.models.set_customer_ref_id_for_address_request import SetCustomerRefIdForAddressRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of SetCustomerRefIdForAddressRequest from a JSON string +set_customer_ref_id_for_address_request_instance = SetCustomerRefIdForAddressRequest.from_json(json) +# print the JSON string representation of the object +print SetCustomerRefIdForAddressRequest.to_json() + +# convert the object into a dict +set_customer_ref_id_for_address_request_dict = set_customer_ref_id_for_address_request_instance.to_dict() +# create an instance of SetCustomerRefIdForAddressRequest from a dict +set_customer_ref_id_for_address_request_form_dict = set_customer_ref_id_for_address_request.from_dict(set_customer_ref_id_for_address_request_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/docs/SetCustomerRefIdRequest.md b/docs/SetCustomerRefIdRequest.md new file mode 100644 index 00000000..b2bae94d --- /dev/null +++ b/docs/SetCustomerRefIdRequest.md @@ -0,0 +1,29 @@ +# SetCustomerRefIdRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**customer_ref_id** | **str** | Customer reference ID | [optional] + +## Example + +```python +from fireblocks_client.models.set_customer_ref_id_request import SetCustomerRefIdRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of SetCustomerRefIdRequest from a JSON string +set_customer_ref_id_request_instance = SetCustomerRefIdRequest.from_json(json) +# print the JSON string representation of the object +print SetCustomerRefIdRequest.to_json() + +# convert the object into a dict +set_customer_ref_id_request_dict = set_customer_ref_id_request_instance.to_dict() +# create an instance of SetCustomerRefIdRequest from a dict +set_customer_ref_id_request_form_dict = set_customer_ref_id_request.from_dict(set_customer_ref_id_request_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/docs/SetNetworkIdDiscoverabilityRequest.md b/docs/SetNetworkIdDiscoverabilityRequest.md new file mode 100644 index 00000000..b330f089 --- /dev/null +++ b/docs/SetNetworkIdDiscoverabilityRequest.md @@ -0,0 +1,29 @@ +# SetNetworkIdDiscoverabilityRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**is_discoverable** | **bool** | | + +## Example + +```python +from fireblocks_client.models.set_network_id_discoverability_request import SetNetworkIdDiscoverabilityRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of SetNetworkIdDiscoverabilityRequest from a JSON string +set_network_id_discoverability_request_instance = SetNetworkIdDiscoverabilityRequest.from_json(json) +# print the JSON string representation of the object +print SetNetworkIdDiscoverabilityRequest.to_json() + +# convert the object into a dict +set_network_id_discoverability_request_dict = set_network_id_discoverability_request_instance.to_dict() +# create an instance of SetNetworkIdDiscoverabilityRequest from a dict +set_network_id_discoverability_request_form_dict = set_network_id_discoverability_request.from_dict(set_network_id_discoverability_request_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/docs/SetNetworkIdNameRequest.md b/docs/SetNetworkIdNameRequest.md new file mode 100644 index 00000000..423a4b7e --- /dev/null +++ b/docs/SetNetworkIdNameRequest.md @@ -0,0 +1,29 @@ +# SetNetworkIdNameRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | | + +## Example + +```python +from fireblocks_client.models.set_network_id_name_request import SetNetworkIdNameRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of SetNetworkIdNameRequest from a JSON string +set_network_id_name_request_instance = SetNetworkIdNameRequest.from_json(json) +# print the JSON string representation of the object +print SetNetworkIdNameRequest.to_json() + +# convert the object into a dict +set_network_id_name_request_dict = set_network_id_name_request_instance.to_dict() +# create an instance of SetNetworkIdNameRequest from a dict +set_network_id_name_request_form_dict = set_network_id_name_request.from_dict(set_network_id_name_request_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/docs/SetNetworkIdResponse.md b/docs/SetNetworkIdResponse.md new file mode 100644 index 00000000..ea7bbb3f --- /dev/null +++ b/docs/SetNetworkIdResponse.md @@ -0,0 +1,29 @@ +# SetNetworkIdResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | | + +## Example + +```python +from fireblocks_client.models.set_network_id_response import SetNetworkIdResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of SetNetworkIdResponse from a JSON string +set_network_id_response_instance = SetNetworkIdResponse.from_json(json) +# print the JSON string representation of the object +print SetNetworkIdResponse.to_json() + +# convert the object into a dict +set_network_id_response_dict = set_network_id_response_instance.to_dict() +# create an instance of SetNetworkIdResponse from a dict +set_network_id_response_form_dict = set_network_id_response.from_dict(set_network_id_response_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/docs/SetNetworkIdRoutingPolicyRequest.md b/docs/SetNetworkIdRoutingPolicyRequest.md new file mode 100644 index 00000000..c07e8e1e --- /dev/null +++ b/docs/SetNetworkIdRoutingPolicyRequest.md @@ -0,0 +1,29 @@ +# SetNetworkIdRoutingPolicyRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**routing_policy** | [**Dict[str, NetworkIdRoutingPolicyValue]**](NetworkIdRoutingPolicyValue.md) | | + +## Example + +```python +from fireblocks_client.models.set_network_id_routing_policy_request import SetNetworkIdRoutingPolicyRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of SetNetworkIdRoutingPolicyRequest from a JSON string +set_network_id_routing_policy_request_instance = SetNetworkIdRoutingPolicyRequest.from_json(json) +# print the JSON string representation of the object +print SetNetworkIdRoutingPolicyRequest.to_json() + +# convert the object into a dict +set_network_id_routing_policy_request_dict = set_network_id_routing_policy_request_instance.to_dict() +# create an instance of SetNetworkIdRoutingPolicyRequest from a dict +set_network_id_routing_policy_request_form_dict = set_network_id_routing_policy_request.from_dict(set_network_id_routing_policy_request_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/docs/SetOtaStatusRequest.md b/docs/SetOtaStatusRequest.md new file mode 100644 index 00000000..e3df4691 --- /dev/null +++ b/docs/SetOtaStatusRequest.md @@ -0,0 +1,29 @@ +# SetOtaStatusRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**enabled** | **bool** | Set true or false to enable or disable OTA transactions | [optional] + +## Example + +```python +from fireblocks_client.models.set_ota_status_request import SetOtaStatusRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of SetOtaStatusRequest from a JSON string +set_ota_status_request_instance = SetOtaStatusRequest.from_json(json) +# print the JSON string representation of the object +print SetOtaStatusRequest.to_json() + +# convert the object into a dict +set_ota_status_request_dict = set_ota_status_request_instance.to_dict() +# create an instance of SetOtaStatusRequest from a dict +set_ota_status_request_form_dict = set_ota_status_request.from_dict(set_ota_status_request_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/docs/SetOtaStatusResponse.md b/docs/SetOtaStatusResponse.md new file mode 100644 index 00000000..8c05b3c9 --- /dev/null +++ b/docs/SetOtaStatusResponse.md @@ -0,0 +1,29 @@ +# SetOtaStatusResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message** | **str** | Message indicating the result of the operation for example when no config change is needed | [optional] + +## Example + +```python +from fireblocks_client.models.set_ota_status_response import SetOtaStatusResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of SetOtaStatusResponse from a JSON string +set_ota_status_response_instance = SetOtaStatusResponse.from_json(json) +# print the JSON string representation of the object +print SetOtaStatusResponse.to_json() + +# convert the object into a dict +set_ota_status_response_dict = set_ota_status_response_instance.to_dict() +# create an instance of SetOtaStatusResponse from a dict +set_ota_status_response_form_dict = set_ota_status_response.from_dict(set_ota_status_response_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/docs/SetOtaStatusResponseOneOf.md b/docs/SetOtaStatusResponseOneOf.md new file mode 100644 index 00000000..9822052d --- /dev/null +++ b/docs/SetOtaStatusResponseOneOf.md @@ -0,0 +1,29 @@ +# SetOtaStatusResponseOneOf + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message** | **str** | Message indicating the result of the operation for example when no config change is needed | [optional] + +## Example + +```python +from fireblocks_client.models.set_ota_status_response_one_of import SetOtaStatusResponseOneOf + +# TODO update the JSON string below +json = "{}" +# create an instance of SetOtaStatusResponseOneOf from a JSON string +set_ota_status_response_one_of_instance = SetOtaStatusResponseOneOf.from_json(json) +# print the JSON string representation of the object +print SetOtaStatusResponseOneOf.to_json() + +# convert the object into a dict +set_ota_status_response_one_of_dict = set_ota_status_response_one_of_instance.to_dict() +# create an instance of SetOtaStatusResponseOneOf from a dict +set_ota_status_response_one_of_form_dict = set_ota_status_response_one_of.from_dict(set_ota_status_response_one_of_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/docs/SetRoutingPolicyRequest.md b/docs/SetRoutingPolicyRequest.md new file mode 100644 index 00000000..df85cb4d --- /dev/null +++ b/docs/SetRoutingPolicyRequest.md @@ -0,0 +1,29 @@ +# SetRoutingPolicyRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**routing_policy** | [**Dict[str, NetworkConnectionRoutingPolicyValue]**](NetworkConnectionRoutingPolicyValue.md) | | + +## Example + +```python +from fireblocks_client.models.set_routing_policy_request import SetRoutingPolicyRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of SetRoutingPolicyRequest from a JSON string +set_routing_policy_request_instance = SetRoutingPolicyRequest.from_json(json) +# print the JSON string representation of the object +print SetRoutingPolicyRequest.to_json() + +# convert the object into a dict +set_routing_policy_request_dict = set_routing_policy_request_instance.to_dict() +# create an instance of SetRoutingPolicyRequest from a dict +set_routing_policy_request_form_dict = set_routing_policy_request.from_dict(set_routing_policy_request_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/docs/SetRoutingPolicyResponse.md b/docs/SetRoutingPolicyResponse.md new file mode 100644 index 00000000..423b08fb --- /dev/null +++ b/docs/SetRoutingPolicyResponse.md @@ -0,0 +1,29 @@ +# SetRoutingPolicyResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | | + +## Example + +```python +from fireblocks_client.models.set_routing_policy_response import SetRoutingPolicyResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of SetRoutingPolicyResponse from a JSON string +set_routing_policy_response_instance = SetRoutingPolicyResponse.from_json(json) +# print the JSON string representation of the object +print SetRoutingPolicyResponse.to_json() + +# convert the object into a dict +set_routing_policy_response_dict = set_routing_policy_response_instance.to_dict() +# create an instance of SetRoutingPolicyResponse from a dict +set_routing_policy_response_form_dict = set_routing_policy_response.from_dict(set_routing_policy_response_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/docs/SettlementRequestBody.md b/docs/SettlementRequestBody.md new file mode 100644 index 00000000..5bfc5d16 --- /dev/null +++ b/docs/SettlementRequestBody.md @@ -0,0 +1,29 @@ +# SettlementRequestBody + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**main_exchange_account_id** | **str** | | [optional] + +## Example + +```python +from fireblocks_client.models.settlement_request_body import SettlementRequestBody + +# TODO update the JSON string below +json = "{}" +# create an instance of SettlementRequestBody from a JSON string +settlement_request_body_instance = SettlementRequestBody.from_json(json) +# print the JSON string representation of the object +print SettlementRequestBody.to_json() + +# convert the object into a dict +settlement_request_body_dict = settlement_request_body_instance.to_dict() +# create an instance of SettlementRequestBody from a dict +settlement_request_body_form_dict = settlement_request_body.from_dict(settlement_request_body_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/docs/SettlementResponse.md b/docs/SettlementResponse.md new file mode 100644 index 00000000..582431dd --- /dev/null +++ b/docs/SettlementResponse.md @@ -0,0 +1,33 @@ +# SettlementResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**initiator** | **str** | | [optional] +**exchange_reply** | **str** | | [optional] +**fireblocks_initiated_transactions** | **object** | | [optional] +**exchange_requested_transactions** | [**ExchangeSettlementTransactionsResponse**](ExchangeSettlementTransactionsResponse.md) | | [optional] + +## Example + +```python +from fireblocks_client.models.settlement_response import SettlementResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of SettlementResponse from a JSON string +settlement_response_instance = SettlementResponse.from_json(json) +# print the JSON string representation of the object +print SettlementResponse.to_json() + +# convert the object into a dict +settlement_response_dict = settlement_response_instance.to_dict() +# create an instance of SettlementResponse from a dict +settlement_response_form_dict = settlement_response.from_dict(settlement_response_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/docs/SignedMessage.md b/docs/SignedMessage.md new file mode 100644 index 00000000..3b4bec45 --- /dev/null +++ b/docs/SignedMessage.md @@ -0,0 +1,34 @@ +# SignedMessage + +A list of signed messages returned for raw signing. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**content** | **str** | | [optional] +**algorithm** | **str** | | [optional] +**derivation_path** | **List[float]** | | [optional] +**signature** | [**SignedMessageSignature**](SignedMessageSignature.md) | | [optional] +**public_key** | **str** | | [optional] + +## Example + +```python +from fireblocks_client.models.signed_message import SignedMessage + +# TODO update the JSON string below +json = "{}" +# create an instance of SignedMessage from a JSON string +signed_message_instance = SignedMessage.from_json(json) +# print the JSON string representation of the object +print SignedMessage.to_json() + +# convert the object into a dict +signed_message_dict = signed_message_instance.to_dict() +# create an instance of SignedMessage from a dict +signed_message_form_dict = signed_message.from_dict(signed_message_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/docs/SignedMessageSignature.md b/docs/SignedMessageSignature.md new file mode 100644 index 00000000..b23cb59a --- /dev/null +++ b/docs/SignedMessageSignature.md @@ -0,0 +1,32 @@ +# SignedMessageSignature + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**full_sig** | **str** | | [optional] +**r** | **str** | | [optional] +**s** | **str** | | [optional] +**v** | **float** | | [optional] + +## Example + +```python +from fireblocks_client.models.signed_message_signature import SignedMessageSignature + +# TODO update the JSON string below +json = "{}" +# create an instance of SignedMessageSignature from a JSON string +signed_message_signature_instance = SignedMessageSignature.from_json(json) +# print the JSON string representation of the object +print SignedMessageSignature.to_json() + +# convert the object into a dict +signed_message_signature_dict = signed_message_signature_instance.to_dict() +# create an instance of SignedMessageSignature from a dict +signed_message_signature_form_dict = signed_message_signature.from_dict(signed_message_signature_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/docs/SmartTransferApi.md b/docs/SmartTransferApi.md new file mode 100644 index 00000000..8a9c2912 --- /dev/null +++ b/docs/SmartTransferApi.md @@ -0,0 +1,1216 @@ +# fireblocks_client.SmartTransferApi + +All URIs are relative to *https://api.fireblocks.io/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**cancel_ticket**](SmartTransferApi.md#cancel_ticket) | **PUT** /smart-transfers/{ticketId}/cancel | Cancel Ticket +[**create_ticket**](SmartTransferApi.md#create_ticket) | **POST** /smart-transfers | Create Ticket +[**create_ticket_term**](SmartTransferApi.md#create_ticket_term) | **POST** /smart-transfers/{ticketId}/terms | Create leg (term) +[**find_ticket_by_id**](SmartTransferApi.md#find_ticket_by_id) | **GET** /smart-transfers/{ticketId} | Search Tickets by ID +[**find_ticket_term_by_id**](SmartTransferApi.md#find_ticket_term_by_id) | **GET** /smart-transfers/{ticketId}/terms/{termId} | Search ticket by leg (term) ID +[**fulfill_ticket**](SmartTransferApi.md#fulfill_ticket) | **PUT** /smart-transfers/{ticketId}/fulfill | Fund ticket manually +[**fund_ticket_term**](SmartTransferApi.md#fund_ticket_term) | **PUT** /smart-transfers/{ticketId}/terms/{termId}/fund | Define funding source +[**get_smart_transfer_user_groups**](SmartTransferApi.md#get_smart_transfer_user_groups) | **GET** /smart-transfers/settings/user-groups | Get user group +[**manually_fund_ticket_term**](SmartTransferApi.md#manually_fund_ticket_term) | **PUT** /smart-transfers/{ticketId}/terms/{termId}/manually-fund | Manually add term transaction +[**remove_ticket_term**](SmartTransferApi.md#remove_ticket_term) | **DELETE** /smart-transfers/{ticketId}/terms/{termId} | Delete ticket leg (term) +[**search_tickets**](SmartTransferApi.md#search_tickets) | **GET** /smart-transfers | Find Ticket +[**set_external_ref_id**](SmartTransferApi.md#set_external_ref_id) | **PUT** /smart-transfers/{ticketId}/external-id | Add external ref. ID +[**set_ticket_expiration**](SmartTransferApi.md#set_ticket_expiration) | **PUT** /smart-transfers/{ticketId}/expires-in | Set expiration +[**set_user_groups**](SmartTransferApi.md#set_user_groups) | **POST** /smart-transfers/settings/user-groups | Set user group +[**submit_ticket**](SmartTransferApi.md#submit_ticket) | **PUT** /smart-transfers/{ticketId}/submit | Submit ticket +[**update_ticket_term**](SmartTransferApi.md#update_ticket_term) | **PUT** /smart-transfers/{ticketId}/terms/{termId} | Update ticket leg (term) + + +# **cancel_ticket** +> SmartTransferTicketResponse cancel_ticket(ticket_id, idempotency_key=idempotency_key) + +Cancel Ticket + +Cancel Smart Transfer ticket + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.smart_transfer_ticket_response import SmartTransferTicketResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.SmartTransferApi(api_client) + ticket_id = 'ticket_id_example' # str | + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + + try: + # Cancel Ticket + api_response = api_instance.cancel_ticket(ticket_id, idempotency_key=idempotency_key) + print("The response of SmartTransferApi->cancel_ticket:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SmartTransferApi->cancel_ticket: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ticket_id** | **str**| | + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + +### Return type + +[**SmartTransferTicketResponse**](SmartTransferTicketResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Smart Transfer ticket successfully canceled | - | +**403** | Unauthorized | - | +**404** | Not found | - | +**422** | Bad Request | - | + +[[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) + +# **create_ticket** +> SmartTransferTicketResponse create_ticket(smart_transfer_create_ticket, idempotency_key=idempotency_key) + +Create Ticket + +Creates new Smart Transfer ticket + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.smart_transfer_create_ticket import SmartTransferCreateTicket +from fireblocks_client.models.smart_transfer_ticket_response import SmartTransferTicketResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.SmartTransferApi(api_client) + smart_transfer_create_ticket = fireblocks_client.SmartTransferCreateTicket() # SmartTransferCreateTicket | + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + + try: + # Create Ticket + api_response = api_instance.create_ticket(smart_transfer_create_ticket, idempotency_key=idempotency_key) + print("The response of SmartTransferApi->create_ticket:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SmartTransferApi->create_ticket: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **smart_transfer_create_ticket** | [**SmartTransferCreateTicket**](SmartTransferCreateTicket.md)| | + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + +### Return type + +[**SmartTransferTicketResponse**](SmartTransferTicketResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | Smart Transfer ticket was created successfully | - | +**403** | Unauthorized | - | +**422** | Bad Request | - | + +[[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) + +# **create_ticket_term** +> SmartTransferTicketTermResponse create_ticket_term(ticket_id, smart_transfer_create_ticket_term, idempotency_key=idempotency_key) + +Create leg (term) + +Creates new smart transfer ticket term (when the ticket status is DRAFT) + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.smart_transfer_create_ticket_term import SmartTransferCreateTicketTerm +from fireblocks_client.models.smart_transfer_ticket_term_response import SmartTransferTicketTermResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.SmartTransferApi(api_client) + ticket_id = 'ticket_id_example' # str | + smart_transfer_create_ticket_term = fireblocks_client.SmartTransferCreateTicketTerm() # SmartTransferCreateTicketTerm | + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + + try: + # Create leg (term) + api_response = api_instance.create_ticket_term(ticket_id, smart_transfer_create_ticket_term, idempotency_key=idempotency_key) + print("The response of SmartTransferApi->create_ticket_term:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SmartTransferApi->create_ticket_term: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ticket_id** | **str**| | + **smart_transfer_create_ticket_term** | [**SmartTransferCreateTicketTerm**](SmartTransferCreateTicketTerm.md)| | + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + +### Return type + +[**SmartTransferTicketTermResponse**](SmartTransferTicketTermResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | Smart Transfer ticket term was created successfully | - | +**403** | Unauthorized | - | +**422** | Bad Request | - | + +[[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) + +# **find_ticket_by_id** +> SmartTransferTicketResponse find_ticket_by_id(ticket_id) + +Search Tickets by ID + +Find Smart Transfer ticket by id + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.smart_transfer_ticket_response import SmartTransferTicketResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.SmartTransferApi(api_client) + ticket_id = 'ticket_id_example' # str | + + try: + # Search Tickets by ID + api_response = api_instance.find_ticket_by_id(ticket_id) + print("The response of SmartTransferApi->find_ticket_by_id:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SmartTransferApi->find_ticket_by_id: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ticket_id** | **str**| | + +### Return type + +[**SmartTransferTicketResponse**](SmartTransferTicketResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Smart Transfer ticket returned successfully | - | +**403** | Unauthorized | - | +**404** | Not found | - | + +[[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) + +# **find_ticket_term_by_id** +> SmartTransferTicketTermResponse find_ticket_term_by_id(ticket_id, term_id) + +Search ticket by leg (term) ID + +Find Smart Transfer ticket term by id + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.smart_transfer_ticket_term_response import SmartTransferTicketTermResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.SmartTransferApi(api_client) + ticket_id = 'ticket_id_example' # str | + term_id = 'term_id_example' # str | + + try: + # Search ticket by leg (term) ID + api_response = api_instance.find_ticket_term_by_id(ticket_id, term_id) + print("The response of SmartTransferApi->find_ticket_term_by_id:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SmartTransferApi->find_ticket_term_by_id: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ticket_id** | **str**| | + **term_id** | **str**| | + +### Return type + +[**SmartTransferTicketTermResponse**](SmartTransferTicketTermResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Smart Transfer ticket term returned successfully | - | +**403** | Unauthorized | - | +**404** | Not found | - | + +[[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) + +# **fulfill_ticket** +> SmartTransferTicketResponse fulfill_ticket(ticket_id, idempotency_key=idempotency_key) + +Fund ticket manually + +Manually fulfill ticket, in case when all terms (legs) are funded manually + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.smart_transfer_ticket_response import SmartTransferTicketResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.SmartTransferApi(api_client) + ticket_id = 'ticket_id_example' # str | + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + + try: + # Fund ticket manually + api_response = api_instance.fulfill_ticket(ticket_id, idempotency_key=idempotency_key) + print("The response of SmartTransferApi->fulfill_ticket:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SmartTransferApi->fulfill_ticket: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ticket_id** | **str**| | + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + +### Return type + +[**SmartTransferTicketResponse**](SmartTransferTicketResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successfully fulfilled on Smart Transfer ticket | - | +**403** | Unauthorized | - | +**404** | Not found | - | +**422** | Bad Request | - | + +[[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) + +# **fund_ticket_term** +> SmartTransferTicketTermResponse fund_ticket_term(ticket_id, term_id, smart_transfer_fund_term, idempotency_key=idempotency_key) + +Define funding source + +Set funding source for ticket term (in case of ASYNC tickets, this will execute transfer immediately) + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.smart_transfer_fund_term import SmartTransferFundTerm +from fireblocks_client.models.smart_transfer_ticket_term_response import SmartTransferTicketTermResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.SmartTransferApi(api_client) + ticket_id = 'ticket_id_example' # str | + term_id = 'term_id_example' # str | + smart_transfer_fund_term = fireblocks_client.SmartTransferFundTerm() # SmartTransferFundTerm | + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + + try: + # Define funding source + api_response = api_instance.fund_ticket_term(ticket_id, term_id, smart_transfer_fund_term, idempotency_key=idempotency_key) + print("The response of SmartTransferApi->fund_ticket_term:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SmartTransferApi->fund_ticket_term: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ticket_id** | **str**| | + **term_id** | **str**| | + **smart_transfer_fund_term** | [**SmartTransferFundTerm**](SmartTransferFundTerm.md)| | + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + +### Return type + +[**SmartTransferTicketTermResponse**](SmartTransferTicketTermResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | Funding source for ticket term successfully done | - | +**403** | Unauthorized | - | +**404** | Not found | - | +**422** | Bad Request | - | + +[[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_smart_transfer_user_groups** +> SmartTransferUserGroupsResponse get_smart_transfer_user_groups() + +Get user group + +Get Smart Transfer user groups + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.smart_transfer_user_groups_response import SmartTransferUserGroupsResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.SmartTransferApi(api_client) + + try: + # Get user group + api_response = api_instance.get_smart_transfer_user_groups() + print("The response of SmartTransferApi->get_smart_transfer_user_groups:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SmartTransferApi->get_smart_transfer_user_groups: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**SmartTransferUserGroupsResponse**](SmartTransferUserGroupsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | User group settings were returned successfully | - | +**403** | Unauthorized | - | +**422** | Bad Request | - | + +[[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) + +# **manually_fund_ticket_term** +> SmartTransferTicketTermResponse manually_fund_ticket_term(ticket_id, term_id, smart_transfer_manually_fund_term, idempotency_key=idempotency_key) + +Manually add term transaction + +Manually set ticket term transaction + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.smart_transfer_manually_fund_term import SmartTransferManuallyFundTerm +from fireblocks_client.models.smart_transfer_ticket_term_response import SmartTransferTicketTermResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.SmartTransferApi(api_client) + ticket_id = 'ticket_id_example' # str | + term_id = 'term_id_example' # str | + smart_transfer_manually_fund_term = fireblocks_client.SmartTransferManuallyFundTerm() # SmartTransferManuallyFundTerm | + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + + try: + # Manually add term transaction + api_response = api_instance.manually_fund_ticket_term(ticket_id, term_id, smart_transfer_manually_fund_term, idempotency_key=idempotency_key) + print("The response of SmartTransferApi->manually_fund_ticket_term:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SmartTransferApi->manually_fund_ticket_term: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ticket_id** | **str**| | + **term_id** | **str**| | + **smart_transfer_manually_fund_term** | [**SmartTransferManuallyFundTerm**](SmartTransferManuallyFundTerm.md)| | + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + +### Return type + +[**SmartTransferTicketTermResponse**](SmartTransferTicketTermResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | Successfully manually set ticket term transaction | - | +**403** | Unauthorized | - | +**404** | Not found | - | +**422** | Bad Request | - | + +[[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) + +# **remove_ticket_term** +> remove_ticket_term(ticket_id, term_id) + +Delete ticket leg (term) + +Delete ticket term when ticket is in DRAFT status + +### Example + + +```python +import fireblocks_client +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.SmartTransferApi(api_client) + ticket_id = 'ticket_id_example' # str | + term_id = 'term_id_example' # str | + + try: + # Delete ticket leg (term) + api_instance.remove_ticket_term(ticket_id, term_id) + except Exception as e: + print("Exception when calling SmartTransferApi->remove_ticket_term: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ticket_id** | **str**| | + **term_id** | **str**| | + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**204** | Smart Transfer ticket term successfully removed | - | +**403** | Unauthorized | - | +**404** | Not found | - | + +[[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) + +# **search_tickets** +> SmartTransferTicketFilteredResponse search_tickets(q=q, statuses=statuses, network_id=network_id, created_by_me=created_by_me, expires_after=expires_after, expires_before=expires_before, type=type, external_ref_id=external_ref_id, after=after, limit=limit) + +Find Ticket + +Finds Smart Transfer tickets that match the submitted criteria + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.smart_transfer_ticket_filtered_response import SmartTransferTicketFilteredResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.SmartTransferApi(api_client) + q = 'q_example' # str | Search string - counterparty name or asset or ticketId. Optional (optional) + statuses = [] # List[str] | Ticket statuses for Smart Transfer tickets. Optional (optional) (default to []) + network_id = 'network_id_example' # str | NetworkId that is used in the ticket . Optional (optional) + created_by_me = True # bool | Filter created tickets by created by self or by others. Optional (optional) + expires_after = '2013-10-20T19:20:30+01:00' # datetime | Lower bound of search range. Optional (optional) + expires_before = '2013-10-20T19:20:30+01:00' # datetime | Upper bound of search range. Optional (optional) + type = 'type_example' # str | Type of transfer. ASYNC executes transfers as they are funded, ATOMIC executes all terms (legs) as one atomic transfer (optional) + external_ref_id = 'external_ref_id_example' # str | External ref. ID that workspace can use to identify ticket outside of Fireblocks system. (optional) + after = 'after_example' # str | ID of the record after which to fetch $limit records (optional) + limit = 3.4 # float | Number of records to fetch. By default, it is 100 (optional) + + try: + # Find Ticket + api_response = api_instance.search_tickets(q=q, statuses=statuses, network_id=network_id, created_by_me=created_by_me, expires_after=expires_after, expires_before=expires_before, type=type, external_ref_id=external_ref_id, after=after, limit=limit) + print("The response of SmartTransferApi->search_tickets:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SmartTransferApi->search_tickets: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **q** | **str**| Search string - counterparty name or asset or ticketId. Optional | [optional] + **statuses** | [**List[str]**](str.md)| Ticket statuses for Smart Transfer tickets. Optional | [optional] [default to []] + **network_id** | **str**| NetworkId that is used in the ticket . Optional | [optional] + **created_by_me** | **bool**| Filter created tickets by created by self or by others. Optional | [optional] + **expires_after** | **datetime**| Lower bound of search range. Optional | [optional] + **expires_before** | **datetime**| Upper bound of search range. Optional | [optional] + **type** | **str**| Type of transfer. ASYNC executes transfers as they are funded, ATOMIC executes all terms (legs) as one atomic transfer | [optional] + **external_ref_id** | **str**| External ref. ID that workspace can use to identify ticket outside of Fireblocks system. | [optional] + **after** | **str**| ID of the record after which to fetch $limit records | [optional] + **limit** | **float**| Number of records to fetch. By default, it is 100 | [optional] + +### Return type + +[**SmartTransferTicketFilteredResponse**](SmartTransferTicketFilteredResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Smart Transfer tickets were returned successfully | - | +**403** | Unauthorized | - | + +[[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) + +# **set_external_ref_id** +> SmartTransferTicketResponse set_external_ref_id(ticket_id, smart_transfer_set_ticket_external_id, idempotency_key=idempotency_key) + +Add external ref. ID + +Set external id Smart Transfer ticket + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.smart_transfer_set_ticket_external_id import SmartTransferSetTicketExternalId +from fireblocks_client.models.smart_transfer_ticket_response import SmartTransferTicketResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.SmartTransferApi(api_client) + ticket_id = 'ticket_id_example' # str | + smart_transfer_set_ticket_external_id = fireblocks_client.SmartTransferSetTicketExternalId() # SmartTransferSetTicketExternalId | + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + + try: + # Add external ref. ID + api_response = api_instance.set_external_ref_id(ticket_id, smart_transfer_set_ticket_external_id, idempotency_key=idempotency_key) + print("The response of SmartTransferApi->set_external_ref_id:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SmartTransferApi->set_external_ref_id: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ticket_id** | **str**| | + **smart_transfer_set_ticket_external_id** | [**SmartTransferSetTicketExternalId**](SmartTransferSetTicketExternalId.md)| | + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + +### Return type + +[**SmartTransferTicketResponse**](SmartTransferTicketResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successfully set external id on Smart Transfer ticket | - | +**403** | Unauthorized | - | +**404** | Not found | - | +**422** | Bad Request | - | + +[[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) + +# **set_ticket_expiration** +> SmartTransferTicketResponse set_ticket_expiration(ticket_id, smart_transfer_set_ticket_expiration, idempotency_key=idempotency_key) + +Set expiration + +Set expiration date on Smart Transfer ticket + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.smart_transfer_set_ticket_expiration import SmartTransferSetTicketExpiration +from fireblocks_client.models.smart_transfer_ticket_response import SmartTransferTicketResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.SmartTransferApi(api_client) + ticket_id = 'ticket_id_example' # str | + smart_transfer_set_ticket_expiration = fireblocks_client.SmartTransferSetTicketExpiration() # SmartTransferSetTicketExpiration | + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + + try: + # Set expiration + api_response = api_instance.set_ticket_expiration(ticket_id, smart_transfer_set_ticket_expiration, idempotency_key=idempotency_key) + print("The response of SmartTransferApi->set_ticket_expiration:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SmartTransferApi->set_ticket_expiration: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ticket_id** | **str**| | + **smart_transfer_set_ticket_expiration** | [**SmartTransferSetTicketExpiration**](SmartTransferSetTicketExpiration.md)| | + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + +### Return type + +[**SmartTransferTicketResponse**](SmartTransferTicketResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successfully set expiration date on Smart Transfer ticket | - | +**403** | Unauthorized | - | +**404** | Not found | - | +**422** | Bad Request | - | + +[[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) + +# **set_user_groups** +> SmartTransferUserGroupsResponse set_user_groups(smart_transfer_set_user_groups, idempotency_key=idempotency_key) + +Set user group + +Set Smart Transfer user group + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.smart_transfer_set_user_groups import SmartTransferSetUserGroups +from fireblocks_client.models.smart_transfer_user_groups_response import SmartTransferUserGroupsResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.SmartTransferApi(api_client) + smart_transfer_set_user_groups = fireblocks_client.SmartTransferSetUserGroups() # SmartTransferSetUserGroups | + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + + try: + # Set user group + api_response = api_instance.set_user_groups(smart_transfer_set_user_groups, idempotency_key=idempotency_key) + print("The response of SmartTransferApi->set_user_groups:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SmartTransferApi->set_user_groups: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **smart_transfer_set_user_groups** | [**SmartTransferSetUserGroups**](SmartTransferSetUserGroups.md)| | + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + +### Return type + +[**SmartTransferUserGroupsResponse**](SmartTransferUserGroupsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | User group settings were set successfully | - | +**403** | Unauthorized | - | +**422** | Bad Request | - | + +[[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) + +# **submit_ticket** +> SmartTransferTicketResponse submit_ticket(ticket_id, smart_transfer_submit_ticket, idempotency_key=idempotency_key) + +Submit ticket + +Submit Smart Transfer ticket - change status into ready for approval if auto approval is not turned on, or OPEN if auto approval is on + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.smart_transfer_submit_ticket import SmartTransferSubmitTicket +from fireblocks_client.models.smart_transfer_ticket_response import SmartTransferTicketResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.SmartTransferApi(api_client) + ticket_id = 'ticket_id_example' # str | + smart_transfer_submit_ticket = fireblocks_client.SmartTransferSubmitTicket() # SmartTransferSubmitTicket | + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + + try: + # Submit ticket + api_response = api_instance.submit_ticket(ticket_id, smart_transfer_submit_ticket, idempotency_key=idempotency_key) + print("The response of SmartTransferApi->submit_ticket:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SmartTransferApi->submit_ticket: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ticket_id** | **str**| | + **smart_transfer_submit_ticket** | [**SmartTransferSubmitTicket**](SmartTransferSubmitTicket.md)| | + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + +### Return type + +[**SmartTransferTicketResponse**](SmartTransferTicketResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successfully submitted Smart Transfer ticket | - | +**403** | Unauthorized | - | +**404** | Not found | - | +**422** | Bad Request | - | + +[[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) + +# **update_ticket_term** +> SmartTransferTicketTermResponse update_ticket_term(ticket_id, term_id, smart_transfer_update_ticket_term, idempotency_key=idempotency_key) + +Update ticket leg (term) + +Update ticket term (when ticket status is DRAFT) + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.smart_transfer_ticket_term_response import SmartTransferTicketTermResponse +from fireblocks_client.models.smart_transfer_update_ticket_term import SmartTransferUpdateTicketTerm +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.SmartTransferApi(api_client) + ticket_id = 'ticket_id_example' # str | + term_id = 'term_id_example' # str | + smart_transfer_update_ticket_term = fireblocks_client.SmartTransferUpdateTicketTerm() # SmartTransferUpdateTicketTerm | + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + + try: + # Update ticket leg (term) + api_response = api_instance.update_ticket_term(ticket_id, term_id, smart_transfer_update_ticket_term, idempotency_key=idempotency_key) + print("The response of SmartTransferApi->update_ticket_term:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SmartTransferApi->update_ticket_term: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ticket_id** | **str**| | + **term_id** | **str**| | + **smart_transfer_update_ticket_term** | [**SmartTransferUpdateTicketTerm**](SmartTransferUpdateTicketTerm.md)| | + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + +### Return type + +[**SmartTransferTicketTermResponse**](SmartTransferTicketTermResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Smart Transfer ticket term updated successfully | - | +**403** | Unauthorized | - | +**404** | Not found | - | + +[[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) + diff --git a/docs/SmartTransferBadRequestResponse.md b/docs/SmartTransferBadRequestResponse.md new file mode 100644 index 00000000..7f1ec664 --- /dev/null +++ b/docs/SmartTransferBadRequestResponse.md @@ -0,0 +1,30 @@ +# SmartTransferBadRequestResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message** | **str** | Bad request error message | +**code** | **str** | Bad request error code | + +## Example + +```python +from fireblocks_client.models.smart_transfer_bad_request_response import SmartTransferBadRequestResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of SmartTransferBadRequestResponse from a JSON string +smart_transfer_bad_request_response_instance = SmartTransferBadRequestResponse.from_json(json) +# print the JSON string representation of the object +print SmartTransferBadRequestResponse.to_json() + +# convert the object into a dict +smart_transfer_bad_request_response_dict = smart_transfer_bad_request_response_instance.to_dict() +# create an instance of SmartTransferBadRequestResponse from a dict +smart_transfer_bad_request_response_form_dict = smart_transfer_bad_request_response.from_dict(smart_transfer_bad_request_response_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/docs/SmartTransferCreateTicket.md b/docs/SmartTransferCreateTicket.md new file mode 100644 index 00000000..e308e72d --- /dev/null +++ b/docs/SmartTransferCreateTicket.md @@ -0,0 +1,35 @@ +# SmartTransferCreateTicket + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**created_by_network_id** | **str** | | +**type** | **str** | | +**expires_in** | **float** | Number of hours after which an OPEN ticket will expire if no term is funded. | [optional] +**terms** | [**List[SmartTransferCreateTicketTerm]**](SmartTransferCreateTicketTerm.md) | | [optional] +**external_ref_id** | **str** | | [optional] +**note** | **str** | | [optional] +**submit** | **bool** | | [optional] + +## Example + +```python +from fireblocks_client.models.smart_transfer_create_ticket import SmartTransferCreateTicket + +# TODO update the JSON string below +json = "{}" +# create an instance of SmartTransferCreateTicket from a JSON string +smart_transfer_create_ticket_instance = SmartTransferCreateTicket.from_json(json) +# print the JSON string representation of the object +print SmartTransferCreateTicket.to_json() + +# convert the object into a dict +smart_transfer_create_ticket_dict = smart_transfer_create_ticket_instance.to_dict() +# create an instance of SmartTransferCreateTicket from a dict +smart_transfer_create_ticket_form_dict = smart_transfer_create_ticket.from_dict(smart_transfer_create_ticket_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/docs/SmartTransferCreateTicketTerm.md b/docs/SmartTransferCreateTicketTerm.md new file mode 100644 index 00000000..42b43aad --- /dev/null +++ b/docs/SmartTransferCreateTicketTerm.md @@ -0,0 +1,32 @@ +# SmartTransferCreateTicketTerm + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**asset** | **str** | Asset name | +**amount** | **float** | Amount | +**from_network_id** | **str** | Identifier of the origination Network Profile | +**to_network_id** | **str** | Identifier of the destination Network Profile | + +## Example + +```python +from fireblocks_client.models.smart_transfer_create_ticket_term import SmartTransferCreateTicketTerm + +# TODO update the JSON string below +json = "{}" +# create an instance of SmartTransferCreateTicketTerm from a JSON string +smart_transfer_create_ticket_term_instance = SmartTransferCreateTicketTerm.from_json(json) +# print the JSON string representation of the object +print SmartTransferCreateTicketTerm.to_json() + +# convert the object into a dict +smart_transfer_create_ticket_term_dict = smart_transfer_create_ticket_term_instance.to_dict() +# create an instance of SmartTransferCreateTicketTerm from a dict +smart_transfer_create_ticket_term_form_dict = smart_transfer_create_ticket_term.from_dict(smart_transfer_create_ticket_term_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/docs/SmartTransferForbiddenResponse.md b/docs/SmartTransferForbiddenResponse.md new file mode 100644 index 00000000..8da26684 --- /dev/null +++ b/docs/SmartTransferForbiddenResponse.md @@ -0,0 +1,30 @@ +# SmartTransferForbiddenResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message** | **str** | Forbidden error code | +**code** | **str** | Error code | + +## Example + +```python +from fireblocks_client.models.smart_transfer_forbidden_response import SmartTransferForbiddenResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of SmartTransferForbiddenResponse from a JSON string +smart_transfer_forbidden_response_instance = SmartTransferForbiddenResponse.from_json(json) +# print the JSON string representation of the object +print SmartTransferForbiddenResponse.to_json() + +# convert the object into a dict +smart_transfer_forbidden_response_dict = smart_transfer_forbidden_response_instance.to_dict() +# create an instance of SmartTransferForbiddenResponse from a dict +smart_transfer_forbidden_response_form_dict = smart_transfer_forbidden_response.from_dict(smart_transfer_forbidden_response_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/docs/SmartTransferFundTerm.md b/docs/SmartTransferFundTerm.md new file mode 100644 index 00000000..d8d739fa --- /dev/null +++ b/docs/SmartTransferFundTerm.md @@ -0,0 +1,36 @@ +# SmartTransferFundTerm + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**asset** | **str** | Asset name | +**amount** | **str** | Amount | +**network_connection_id** | **str** | Id of the network connection used. | +**src_id** | **str** | Id of the vault that is used as the source of the asset. | +**src_type** | **str** | Source of the asset. | +**fee** | **str** | Transaction fee | [optional] +**fee_level** | **str** | Transaction fee level. | [optional] +**note** | **str** | Transaction note | [optional] + +## Example + +```python +from fireblocks_client.models.smart_transfer_fund_term import SmartTransferFundTerm + +# TODO update the JSON string below +json = "{}" +# create an instance of SmartTransferFundTerm from a JSON string +smart_transfer_fund_term_instance = SmartTransferFundTerm.from_json(json) +# print the JSON string representation of the object +print SmartTransferFundTerm.to_json() + +# convert the object into a dict +smart_transfer_fund_term_dict = smart_transfer_fund_term_instance.to_dict() +# create an instance of SmartTransferFundTerm from a dict +smart_transfer_fund_term_form_dict = smart_transfer_fund_term.from_dict(smart_transfer_fund_term_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/docs/SmartTransferManuallyFundTerm.md b/docs/SmartTransferManuallyFundTerm.md new file mode 100644 index 00000000..809e91d1 --- /dev/null +++ b/docs/SmartTransferManuallyFundTerm.md @@ -0,0 +1,29 @@ +# SmartTransferManuallyFundTerm + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**tx_hash** | **str** | | + +## Example + +```python +from fireblocks_client.models.smart_transfer_manually_fund_term import SmartTransferManuallyFundTerm + +# TODO update the JSON string below +json = "{}" +# create an instance of SmartTransferManuallyFundTerm from a JSON string +smart_transfer_manually_fund_term_instance = SmartTransferManuallyFundTerm.from_json(json) +# print the JSON string representation of the object +print SmartTransferManuallyFundTerm.to_json() + +# convert the object into a dict +smart_transfer_manually_fund_term_dict = smart_transfer_manually_fund_term_instance.to_dict() +# create an instance of SmartTransferManuallyFundTerm from a dict +smart_transfer_manually_fund_term_form_dict = smart_transfer_manually_fund_term.from_dict(smart_transfer_manually_fund_term_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/docs/SmartTransferNotFoundResponse.md b/docs/SmartTransferNotFoundResponse.md new file mode 100644 index 00000000..4e48c83a --- /dev/null +++ b/docs/SmartTransferNotFoundResponse.md @@ -0,0 +1,30 @@ +# SmartTransferNotFoundResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message** | **str** | Not found error message | +**code** | **str** | Error code | + +## Example + +```python +from fireblocks_client.models.smart_transfer_not_found_response import SmartTransferNotFoundResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of SmartTransferNotFoundResponse from a JSON string +smart_transfer_not_found_response_instance = SmartTransferNotFoundResponse.from_json(json) +# print the JSON string representation of the object +print SmartTransferNotFoundResponse.to_json() + +# convert the object into a dict +smart_transfer_not_found_response_dict = smart_transfer_not_found_response_instance.to_dict() +# create an instance of SmartTransferNotFoundResponse from a dict +smart_transfer_not_found_response_form_dict = smart_transfer_not_found_response.from_dict(smart_transfer_not_found_response_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/docs/SmartTransferSetTicketExpiration.md b/docs/SmartTransferSetTicketExpiration.md new file mode 100644 index 00000000..ddccb193 --- /dev/null +++ b/docs/SmartTransferSetTicketExpiration.md @@ -0,0 +1,29 @@ +# SmartTransferSetTicketExpiration + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**expires_in** | **float** | Sets ticket expiration time (in hours) after a ticket is submitted. If no funding source is set to any term, the ticket will automatically expire after given time. | + +## Example + +```python +from fireblocks_client.models.smart_transfer_set_ticket_expiration import SmartTransferSetTicketExpiration + +# TODO update the JSON string below +json = "{}" +# create an instance of SmartTransferSetTicketExpiration from a JSON string +smart_transfer_set_ticket_expiration_instance = SmartTransferSetTicketExpiration.from_json(json) +# print the JSON string representation of the object +print SmartTransferSetTicketExpiration.to_json() + +# convert the object into a dict +smart_transfer_set_ticket_expiration_dict = smart_transfer_set_ticket_expiration_instance.to_dict() +# create an instance of SmartTransferSetTicketExpiration from a dict +smart_transfer_set_ticket_expiration_form_dict = smart_transfer_set_ticket_expiration.from_dict(smart_transfer_set_ticket_expiration_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/docs/SmartTransferSetTicketExternalId.md b/docs/SmartTransferSetTicketExternalId.md new file mode 100644 index 00000000..3e0a993c --- /dev/null +++ b/docs/SmartTransferSetTicketExternalId.md @@ -0,0 +1,29 @@ +# SmartTransferSetTicketExternalId + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**external_ref_id** | **str** | Each workspace can set their own external id they want to refer to this Ticket | + +## Example + +```python +from fireblocks_client.models.smart_transfer_set_ticket_external_id import SmartTransferSetTicketExternalId + +# TODO update the JSON string below +json = "{}" +# create an instance of SmartTransferSetTicketExternalId from a JSON string +smart_transfer_set_ticket_external_id_instance = SmartTransferSetTicketExternalId.from_json(json) +# print the JSON string representation of the object +print SmartTransferSetTicketExternalId.to_json() + +# convert the object into a dict +smart_transfer_set_ticket_external_id_dict = smart_transfer_set_ticket_external_id_instance.to_dict() +# create an instance of SmartTransferSetTicketExternalId from a dict +smart_transfer_set_ticket_external_id_form_dict = smart_transfer_set_ticket_external_id.from_dict(smart_transfer_set_ticket_external_id_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/docs/SmartTransferSetUserGroups.md b/docs/SmartTransferSetUserGroups.md new file mode 100644 index 00000000..364d815c --- /dev/null +++ b/docs/SmartTransferSetUserGroups.md @@ -0,0 +1,29 @@ +# SmartTransferSetUserGroups + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**user_group_ids** | **List[str]** | | + +## Example + +```python +from fireblocks_client.models.smart_transfer_set_user_groups import SmartTransferSetUserGroups + +# TODO update the JSON string below +json = "{}" +# create an instance of SmartTransferSetUserGroups from a JSON string +smart_transfer_set_user_groups_instance = SmartTransferSetUserGroups.from_json(json) +# print the JSON string representation of the object +print SmartTransferSetUserGroups.to_json() + +# convert the object into a dict +smart_transfer_set_user_groups_dict = smart_transfer_set_user_groups_instance.to_dict() +# create an instance of SmartTransferSetUserGroups from a dict +smart_transfer_set_user_groups_form_dict = smart_transfer_set_user_groups.from_dict(smart_transfer_set_user_groups_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/docs/SmartTransferSubmitTicket.md b/docs/SmartTransferSubmitTicket.md new file mode 100644 index 00000000..52d99377 --- /dev/null +++ b/docs/SmartTransferSubmitTicket.md @@ -0,0 +1,29 @@ +# SmartTransferSubmitTicket + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**expires_in** | **float** | Sets the ticket expiration time (in hours) after the ticket is submitted. If no funding source is set for any term, the ticket will automatically expire after given time. If expiresIn is not sent ticket will not expire. | [optional] + +## Example + +```python +from fireblocks_client.models.smart_transfer_submit_ticket import SmartTransferSubmitTicket + +# TODO update the JSON string below +json = "{}" +# create an instance of SmartTransferSubmitTicket from a JSON string +smart_transfer_submit_ticket_instance = SmartTransferSubmitTicket.from_json(json) +# print the JSON string representation of the object +print SmartTransferSubmitTicket.to_json() + +# convert the object into a dict +smart_transfer_submit_ticket_dict = smart_transfer_submit_ticket_instance.to_dict() +# create an instance of SmartTransferSubmitTicket from a dict +smart_transfer_submit_ticket_form_dict = smart_transfer_submit_ticket.from_dict(smart_transfer_submit_ticket_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/docs/SmartTransferTicket.md b/docs/SmartTransferTicket.md new file mode 100644 index 00000000..4cd7295b --- /dev/null +++ b/docs/SmartTransferTicket.md @@ -0,0 +1,49 @@ +# SmartTransferTicket + +Data object with result data + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | Unique id of Smart Transfer ticket | +**type** | **str** | Kind of Smart Transfer. Can be either `ASYNC` or `ATOMIC` | +**direction** | **str** | Direction of Smart Transfer. | [optional] +**status** | **str** | Current status of Smart Transfer ticket | +**terms** | [**List[SmartTransferTicketTerm]**](SmartTransferTicketTerm.md) | Ticket terms (legs) | [optional] +**expires_in** | **float** | Number of hours for expiration.This data is valid only it ticket not in DRAFT state and it will be used to calculate expiresAt value | [optional] +**expires_at** | **datetime** | Date and time at which the ticket will expire if no funding is performed. | [optional] +**submitted_at** | **datetime** | Date and time when ticket is submitted. | [optional] +**expired_at** | **datetime** | Date and time when ticket is expired. | [optional] +**canceled_at** | **datetime** | Date and time when ticket is canceled. | [optional] +**fulfilled_at** | **datetime** | Date and time when ticket is fulfilled. | [optional] +**external_ref_id** | **str** | External Ref ID for Smart Transfer ticket. | [optional] +**note** | **str** | Note | [optional] +**created_by_network_id** | **str** | ID of network profile that created ticket | +**created_by_network_id_name** | **str** | Name of network profile that created ticket | +**canceled_by_network_id_name** | **str** | Name of network profile that canceled ticket | [optional] +**created_at** | **datetime** | Date and time at which the ticket is created. | +**updated_at** | **datetime** | Date and time of last ticket update. | +**canceled_by_me** | **bool** | | [optional] +**created_by_me** | **bool** | | [optional] + +## Example + +```python +from fireblocks_client.models.smart_transfer_ticket import SmartTransferTicket + +# TODO update the JSON string below +json = "{}" +# create an instance of SmartTransferTicket from a JSON string +smart_transfer_ticket_instance = SmartTransferTicket.from_json(json) +# print the JSON string representation of the object +print SmartTransferTicket.to_json() + +# convert the object into a dict +smart_transfer_ticket_dict = smart_transfer_ticket_instance.to_dict() +# create an instance of SmartTransferTicket from a dict +smart_transfer_ticket_form_dict = smart_transfer_ticket.from_dict(smart_transfer_ticket_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/docs/SmartTransferTicketFilteredResponse.md b/docs/SmartTransferTicketFilteredResponse.md new file mode 100644 index 00000000..80b2e14d --- /dev/null +++ b/docs/SmartTransferTicketFilteredResponse.md @@ -0,0 +1,31 @@ +# SmartTransferTicketFilteredResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message** | **str** | Result message | +**after** | **str** | Unique id of next filtered result | +**data** | [**List[SmartTransferTicket]**](SmartTransferTicket.md) | Result that match given query criteria | + +## Example + +```python +from fireblocks_client.models.smart_transfer_ticket_filtered_response import SmartTransferTicketFilteredResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of SmartTransferTicketFilteredResponse from a JSON string +smart_transfer_ticket_filtered_response_instance = SmartTransferTicketFilteredResponse.from_json(json) +# print the JSON string representation of the object +print SmartTransferTicketFilteredResponse.to_json() + +# convert the object into a dict +smart_transfer_ticket_filtered_response_dict = smart_transfer_ticket_filtered_response_instance.to_dict() +# create an instance of SmartTransferTicketFilteredResponse from a dict +smart_transfer_ticket_filtered_response_form_dict = smart_transfer_ticket_filtered_response.from_dict(smart_transfer_ticket_filtered_response_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/docs/SmartTransferTicketResponse.md b/docs/SmartTransferTicketResponse.md new file mode 100644 index 00000000..6db9479f --- /dev/null +++ b/docs/SmartTransferTicketResponse.md @@ -0,0 +1,30 @@ +# SmartTransferTicketResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message** | **str** | Result message | +**data** | [**SmartTransferTicket**](SmartTransferTicket.md) | | [optional] + +## Example + +```python +from fireblocks_client.models.smart_transfer_ticket_response import SmartTransferTicketResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of SmartTransferTicketResponse from a JSON string +smart_transfer_ticket_response_instance = SmartTransferTicketResponse.from_json(json) +# print the JSON string representation of the object +print SmartTransferTicketResponse.to_json() + +# convert the object into a dict +smart_transfer_ticket_response_dict = smart_transfer_ticket_response_instance.to_dict() +# create an instance of SmartTransferTicketResponse from a dict +smart_transfer_ticket_response_form_dict = smart_transfer_ticket_response.from_dict(smart_transfer_ticket_response_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/docs/SmartTransferTicketTerm.md b/docs/SmartTransferTicketTerm.md new file mode 100644 index 00000000..21692b81 --- /dev/null +++ b/docs/SmartTransferTicketTerm.md @@ -0,0 +1,44 @@ +# SmartTransferTicketTerm + +Data object with result data + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | Unique id of Smart Transfer ticket term | +**ticket_id** | **str** | Unique id of Smart Transfer ticket | +**asset** | **str** | Asset name | +**amount** | **str** | Amount | +**amount_usd** | **str** | Amount USD | [optional] +**from_network_id** | **str** | Identifier of the origination Network Profile | +**from_network_id_name** | **str** | Source network name | +**to_network_id** | **str** | Identifier of the destination Network Profile | +**to_network_id_name** | **str** | Destination network name | +**tx_hash** | **str** | Blockchain TX hash | +**fb_tx_id** | **str** | Fireblocks transaction ID. It is set when the funding transaction is created. | +**tx_status** | **str** | Ticket term transaction status | +**status** | **str** | Ticket term status | +**created_at** | **datetime** | Date and time when the term is created. | +**updated_at** | **datetime** | Date and time of last term update. | + +## Example + +```python +from fireblocks_client.models.smart_transfer_ticket_term import SmartTransferTicketTerm + +# TODO update the JSON string below +json = "{}" +# create an instance of SmartTransferTicketTerm from a JSON string +smart_transfer_ticket_term_instance = SmartTransferTicketTerm.from_json(json) +# print the JSON string representation of the object +print SmartTransferTicketTerm.to_json() + +# convert the object into a dict +smart_transfer_ticket_term_dict = smart_transfer_ticket_term_instance.to_dict() +# create an instance of SmartTransferTicketTerm from a dict +smart_transfer_ticket_term_form_dict = smart_transfer_ticket_term.from_dict(smart_transfer_ticket_term_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/docs/SmartTransferTicketTermResponse.md b/docs/SmartTransferTicketTermResponse.md new file mode 100644 index 00000000..b52212ee --- /dev/null +++ b/docs/SmartTransferTicketTermResponse.md @@ -0,0 +1,30 @@ +# SmartTransferTicketTermResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message** | **str** | Result message | +**data** | [**SmartTransferTicketTerm**](SmartTransferTicketTerm.md) | | [optional] + +## Example + +```python +from fireblocks_client.models.smart_transfer_ticket_term_response import SmartTransferTicketTermResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of SmartTransferTicketTermResponse from a JSON string +smart_transfer_ticket_term_response_instance = SmartTransferTicketTermResponse.from_json(json) +# print the JSON string representation of the object +print SmartTransferTicketTermResponse.to_json() + +# convert the object into a dict +smart_transfer_ticket_term_response_dict = smart_transfer_ticket_term_response_instance.to_dict() +# create an instance of SmartTransferTicketTermResponse from a dict +smart_transfer_ticket_term_response_form_dict = smart_transfer_ticket_term_response.from_dict(smart_transfer_ticket_term_response_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/docs/SmartTransferUpdateTicketTerm.md b/docs/SmartTransferUpdateTicketTerm.md new file mode 100644 index 00000000..16b56b78 --- /dev/null +++ b/docs/SmartTransferUpdateTicketTerm.md @@ -0,0 +1,32 @@ +# SmartTransferUpdateTicketTerm + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**asset** | **str** | Asset name | +**amount** | **float** | Amount | +**from_network_id** | **str** | Identifier of the origination Network Profile | +**to_network_id** | **str** | Identifier of the destination Network Profile | + +## Example + +```python +from fireblocks_client.models.smart_transfer_update_ticket_term import SmartTransferUpdateTicketTerm + +# TODO update the JSON string below +json = "{}" +# create an instance of SmartTransferUpdateTicketTerm from a JSON string +smart_transfer_update_ticket_term_instance = SmartTransferUpdateTicketTerm.from_json(json) +# print the JSON string representation of the object +print SmartTransferUpdateTicketTerm.to_json() + +# convert the object into a dict +smart_transfer_update_ticket_term_dict = smart_transfer_update_ticket_term_instance.to_dict() +# create an instance of SmartTransferUpdateTicketTerm from a dict +smart_transfer_update_ticket_term_form_dict = smart_transfer_update_ticket_term.from_dict(smart_transfer_update_ticket_term_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/docs/SmartTransferUserGroups.md b/docs/SmartTransferUserGroups.md new file mode 100644 index 00000000..247d3bec --- /dev/null +++ b/docs/SmartTransferUserGroups.md @@ -0,0 +1,30 @@ +# SmartTransferUserGroups + +Data object with result data + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**user_group_ids** | **List[str]** | Data object with result data | + +## Example + +```python +from fireblocks_client.models.smart_transfer_user_groups import SmartTransferUserGroups + +# TODO update the JSON string below +json = "{}" +# create an instance of SmartTransferUserGroups from a JSON string +smart_transfer_user_groups_instance = SmartTransferUserGroups.from_json(json) +# print the JSON string representation of the object +print SmartTransferUserGroups.to_json() + +# convert the object into a dict +smart_transfer_user_groups_dict = smart_transfer_user_groups_instance.to_dict() +# create an instance of SmartTransferUserGroups from a dict +smart_transfer_user_groups_form_dict = smart_transfer_user_groups.from_dict(smart_transfer_user_groups_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/docs/SmartTransferUserGroupsResponse.md b/docs/SmartTransferUserGroupsResponse.md new file mode 100644 index 00000000..5467f67f --- /dev/null +++ b/docs/SmartTransferUserGroupsResponse.md @@ -0,0 +1,30 @@ +# SmartTransferUserGroupsResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message** | **str** | Result message | +**data** | [**SmartTransferUserGroups**](SmartTransferUserGroups.md) | | [optional] + +## Example + +```python +from fireblocks_client.models.smart_transfer_user_groups_response import SmartTransferUserGroupsResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of SmartTransferUserGroupsResponse from a JSON string +smart_transfer_user_groups_response_instance = SmartTransferUserGroupsResponse.from_json(json) +# print the JSON string representation of the object +print SmartTransferUserGroupsResponse.to_json() + +# convert the object into a dict +smart_transfer_user_groups_response_dict = smart_transfer_user_groups_response_instance.to_dict() +# create an instance of SmartTransferUserGroupsResponse from a dict +smart_transfer_user_groups_response_form_dict = smart_transfer_user_groups_response.from_dict(smart_transfer_user_groups_response_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/docs/SolanaBlockchainDataDto.md b/docs/SolanaBlockchainDataDto.md new file mode 100644 index 00000000..cf9fe8cb --- /dev/null +++ b/docs/SolanaBlockchainDataDto.md @@ -0,0 +1,29 @@ +# SolanaBlockchainDataDto + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**stake_account_address** | **str** | The stake account address matching the stakeAccountId. | + +## Example + +```python +from fireblocks_client.models.solana_blockchain_data_dto import SolanaBlockchainDataDto + +# TODO update the JSON string below +json = "{}" +# create an instance of SolanaBlockchainDataDto from a JSON string +solana_blockchain_data_dto_instance = SolanaBlockchainDataDto.from_json(json) +# print the JSON string representation of the object +print SolanaBlockchainDataDto.to_json() + +# convert the object into a dict +solana_blockchain_data_dto_dict = solana_blockchain_data_dto_instance.to_dict() +# create an instance of SolanaBlockchainDataDto from a dict +solana_blockchain_data_dto_form_dict = solana_blockchain_data_dto.from_dict(solana_blockchain_data_dto_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/docs/SourceTransferPeerPath.md b/docs/SourceTransferPeerPath.md new file mode 100644 index 00000000..38ea79da --- /dev/null +++ b/docs/SourceTransferPeerPath.md @@ -0,0 +1,34 @@ +# SourceTransferPeerPath + +The source of the transaction. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | [**TransferPeerPathType**](TransferPeerPathType.md) | | +**sub_type** | [**TransferPeerPathSubType**](TransferPeerPathSubType.md) | | [optional] +**id** | **str** | | [optional] +**name** | **str** | | [optional] +**wallet_id** | **str** | | [optional] + +## Example + +```python +from fireblocks_client.models.source_transfer_peer_path import SourceTransferPeerPath + +# TODO update the JSON string below +json = "{}" +# create an instance of SourceTransferPeerPath from a JSON string +source_transfer_peer_path_instance = SourceTransferPeerPath.from_json(json) +# print the JSON string representation of the object +print SourceTransferPeerPath.to_json() + +# convert the object into a dict +source_transfer_peer_path_dict = source_transfer_peer_path_instance.to_dict() +# create an instance of SourceTransferPeerPath from a dict +source_transfer_peer_path_form_dict = source_transfer_peer_path.from_dict(source_transfer_peer_path_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/docs/SourceTransferPeerPathResponse.md b/docs/SourceTransferPeerPathResponse.md new file mode 100644 index 00000000..f1bffd5a --- /dev/null +++ b/docs/SourceTransferPeerPathResponse.md @@ -0,0 +1,34 @@ +# SourceTransferPeerPathResponse + +Source of the transaction. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | [**TransferPeerPathType**](TransferPeerPathType.md) | | +**sub_type** | **str** | In case the type is set to `EXCHANGE_ACCOUNT` or `FIAT_ACCOUNT`, the specific exchange vendor name or fiat vendor name. In case the type is set to `INTERNAL_WALLET` or `EXTERNAL_WALLET`, the subType is set to `Internal` or `External`. | [optional] +**id** | **str** | The ID of the peer. You can retrieve the ID of each venue object using the endpoints for [listing vault accounts](https://developers.fireblocks.com/reference/get_vault-accounts-paged), [listing exchange account](https://developers.fireblocks.com/reference/get_exchange-accounts), [listing fiat accounts](https://developers.fireblocks.com/reference/get_fiat-accounts), [listing internal wallets](https://developers.fireblocks.com/reference/get_internal-wallets), [listing external wallets](https://developers.fireblocks.com/reference/get_external-wallets), [listing network connections](https://developers.fireblocks.com/reference/get_network-connections). For the other types, this parameter is not needed. | [optional] +**name** | **str** | The name of the peer. | [optional] +**wallet_id** | **str** | | [optional] + +## Example + +```python +from fireblocks_client.models.source_transfer_peer_path_response import SourceTransferPeerPathResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of SourceTransferPeerPathResponse from a JSON string +source_transfer_peer_path_response_instance = SourceTransferPeerPathResponse.from_json(json) +# print the JSON string representation of the object +print SourceTransferPeerPathResponse.to_json() + +# convert the object into a dict +source_transfer_peer_path_response_dict = source_transfer_peer_path_response_instance.to_dict() +# create an instance of SourceTransferPeerPathResponse from a dict +source_transfer_peer_path_response_form_dict = source_transfer_peer_path_response.from_dict(source_transfer_peer_path_response_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/docs/SpamOwnershipResponse.md b/docs/SpamOwnershipResponse.md new file mode 100644 index 00000000..16868ed5 --- /dev/null +++ b/docs/SpamOwnershipResponse.md @@ -0,0 +1,30 @@ +# SpamOwnershipResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**result** | **bool** | Token spam result | +**source** | **str** | Source of Token's Spam status value | + +## Example + +```python +from fireblocks_client.models.spam_ownership_response import SpamOwnershipResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of SpamOwnershipResponse from a JSON string +spam_ownership_response_instance = SpamOwnershipResponse.from_json(json) +# print the JSON string representation of the object +print SpamOwnershipResponse.to_json() + +# convert the object into a dict +spam_ownership_response_dict = spam_ownership_response_instance.to_dict() +# create an instance of SpamOwnershipResponse from a dict +spam_ownership_response_form_dict = spam_ownership_response.from_dict(spam_ownership_response_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/docs/SpamTokenResponse.md b/docs/SpamTokenResponse.md new file mode 100644 index 00000000..d417168e --- /dev/null +++ b/docs/SpamTokenResponse.md @@ -0,0 +1,29 @@ +# SpamTokenResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**result** | **bool** | Token spam result | + +## Example + +```python +from fireblocks_client.models.spam_token_response import SpamTokenResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of SpamTokenResponse from a JSON string +spam_token_response_instance = SpamTokenResponse.from_json(json) +# print the JSON string representation of the object +print SpamTokenResponse.to_json() + +# convert the object into a dict +spam_token_response_dict = spam_token_response_instance.to_dict() +# create an instance of SpamTokenResponse from a dict +spam_token_response_form_dict = spam_token_response.from_dict(spam_token_response_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/docs/SrcOrDestAttributesInner.md b/docs/SrcOrDestAttributesInner.md new file mode 100644 index 00000000..6c592edf --- /dev/null +++ b/docs/SrcOrDestAttributesInner.md @@ -0,0 +1,28 @@ +# SrcOrDestAttributesInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Example + +```python +from fireblocks_client.models.src_or_dest_attributes_inner import SrcOrDestAttributesInner + +# TODO update the JSON string below +json = "{}" +# create an instance of SrcOrDestAttributesInner from a JSON string +src_or_dest_attributes_inner_instance = SrcOrDestAttributesInner.from_json(json) +# print the JSON string representation of the object +print SrcOrDestAttributesInner.to_json() + +# convert the object into a dict +src_or_dest_attributes_inner_dict = src_or_dest_attributes_inner_instance.to_dict() +# create an instance of SrcOrDestAttributesInner from a dict +src_or_dest_attributes_inner_form_dict = src_or_dest_attributes_inner.from_dict(src_or_dest_attributes_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/docs/StakeRequestDto.md b/docs/StakeRequestDto.md new file mode 100644 index 00000000..f6e704ce --- /dev/null +++ b/docs/StakeRequestDto.md @@ -0,0 +1,34 @@ +# StakeRequestDto + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**vault_account_id** | **str** | The source vault account to stake from | +**provider_id** | **str** | The ID of the provider | +**stake_amount** | **str** | Amount of tokens to stake | +**tx_note** | **str** | The note to associate with the stake transactions. | [optional] +**fee** | **str** | Represents the fee for a transaction, which can be specified as a percentage value. Only one of fee/feeLevel is required. | [optional] +**fee_level** | **str** | Represents the fee level for a transaction, which can be set as slow, medium, or fast. Only one of fee/feeLevel is required. | [optional] + +## Example + +```python +from fireblocks_client.models.stake_request_dto import StakeRequestDto + +# TODO update the JSON string below +json = "{}" +# create an instance of StakeRequestDto from a JSON string +stake_request_dto_instance = StakeRequestDto.from_json(json) +# print the JSON string representation of the object +print StakeRequestDto.to_json() + +# convert the object into a dict +stake_request_dto_dict = stake_request_dto_instance.to_dict() +# create an instance of StakeRequestDto from a dict +stake_request_dto_form_dict = stake_request_dto.from_dict(stake_request_dto_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/docs/StakeResponseDto.md b/docs/StakeResponseDto.md new file mode 100644 index 00000000..32b4b225 --- /dev/null +++ b/docs/StakeResponseDto.md @@ -0,0 +1,29 @@ +# StakeResponseDto + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | The unique identifier of the staking position | + +## Example + +```python +from fireblocks_client.models.stake_response_dto import StakeResponseDto + +# TODO update the JSON string below +json = "{}" +# create an instance of StakeResponseDto from a JSON string +stake_response_dto_instance = StakeResponseDto.from_json(json) +# print the JSON string representation of the object +print StakeResponseDto.to_json() + +# convert the object into a dict +stake_response_dto_dict = stake_response_dto_instance.to_dict() +# create an instance of StakeResponseDto from a dict +stake_response_dto_form_dict = stake_response_dto.from_dict(stake_response_dto_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/docs/StakingBetaApi.md b/docs/StakingBetaApi.md new file mode 100644 index 00000000..aafb4d58 --- /dev/null +++ b/docs/StakingBetaApi.md @@ -0,0 +1,620 @@ +# fireblocks_client.StakingBetaApi + +All URIs are relative to *https://api.fireblocks.io/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**approve_terms_of_service_by_provider_id**](StakingBetaApi.md#approve_terms_of_service_by_provider_id) | **POST** /staking/providers/{providerId}/approveTermsOfService | +[**execute_action**](StakingBetaApi.md#execute_action) | **POST** /staking/chains/{chainDescriptor}/{actionId} | +[**get_all_delegations**](StakingBetaApi.md#get_all_delegations) | **GET** /staking/positions | +[**get_chain_info**](StakingBetaApi.md#get_chain_info) | **GET** /staking/chains/{chainDescriptor}/chainInfo | +[**get_chains**](StakingBetaApi.md#get_chains) | **GET** /staking/chains | +[**get_delegation_by_id**](StakingBetaApi.md#get_delegation_by_id) | **GET** /staking/positions/{id} | +[**get_providers**](StakingBetaApi.md#get_providers) | **GET** /staking/providers | +[**get_summary**](StakingBetaApi.md#get_summary) | **GET** /staking/positions/summary | +[**get_summary_by_vault**](StakingBetaApi.md#get_summary_by_vault) | **GET** /staking/positions/summary/vaults | + + +# **approve_terms_of_service_by_provider_id** +> object approve_terms_of_service_by_provider_id(provider_id, idempotency_key=idempotency_key) + + + +Approve the terms of service of the staking provider. This must be called before performing a staking action for the first time with this provider. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.StakingBetaApi(api_client) + provider_id = 'provider_id_example' # str | The unique identifier of the staking provider + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + + try: + # + api_response = api_instance.approve_terms_of_service_by_provider_id(provider_id, idempotency_key=idempotency_key) + print("The response of StakingBetaApi->approve_terms_of_service_by_provider_id:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling StakingBetaApi->approve_terms_of_service_by_provider_id: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **provider_id** | **str**| The unique identifier of the staking provider | + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + +### Return type + +**object** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | The terms of service have been successfully approved and is associated with 201 status code. | - | + +[[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) + +# **execute_action** +> ExecuteActionResponse execute_action(chain_descriptor, action_id, execute_action_request, idempotency_key=idempotency_key) + + + +Perform a chain-specific staking action (e.g. stake, unstake, withdraw). + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.execute_action_request import ExecuteActionRequest +from fireblocks_client.models.execute_action_response import ExecuteActionResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.StakingBetaApi(api_client) + chain_descriptor = 'chain_descriptor_example' # str | The protocol identifier (e.g. \"ETH\"/\"SOL\") to use + action_id = 'action_id_example' # str | The operation that can be executed on a vault/position + execute_action_request = {"vaultAccountId":"22","providerId":"kiln","stakeAmount":"32","chainDescriptor":"ETH","txNote":"stake request id CcaHc2L43ZWjwCHART3oZoJvHLAe9hzT2DJNUpBzoTN1 of 32ETH created on 02.04.23","feeLevel":"MEDIUM"} # ExecuteActionRequest | + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + + try: + # + api_response = api_instance.execute_action(chain_descriptor, action_id, execute_action_request, idempotency_key=idempotency_key) + print("The response of StakingBetaApi->execute_action:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling StakingBetaApi->execute_action: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **chain_descriptor** | **str**| The protocol identifier (e.g. \"ETH\"/\"SOL\") to use | + **action_id** | **str**| The operation that can be executed on a vault/position | + **execute_action_request** | [**ExecuteActionRequest**](ExecuteActionRequest.md)| | + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + +### Return type + +[**ExecuteActionResponse**](ExecuteActionResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | A chain-specific action has been executed successfully on vault/position and is associated with 201 status code. | - | + +[[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_all_delegations** +> List[DelegationDto] get_all_delegations(chain_descriptor=chain_descriptor) + + + +Return detailed information on all staking positions, including the staked amount, rewards, status and more. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.delegation_dto import DelegationDto +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.StakingBetaApi(api_client) + chain_descriptor = 'chain_descriptor_example' # str | Use \"ETH\" / \"SOL\" in order to obtain information related to the specific blockchain network or retrieve information about all chains that have data available by providing no argument. (optional) + + try: + # + api_response = api_instance.get_all_delegations(chain_descriptor=chain_descriptor) + print("The response of StakingBetaApi->get_all_delegations:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling StakingBetaApi->get_all_delegations: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **chain_descriptor** | **str**| Use \"ETH\" / \"SOL\" in order to obtain information related to the specific blockchain network or retrieve information about all chains that have data available by providing no argument. | [optional] + +### Return type + +[**List[DelegationDto]**](DelegationDto.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | An array of position data was returned successfully | - | + +[[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_chain_info** +> ChainInfoResponseDto get_chain_info(chain_descriptor) + + + +Return chain-specific, staking-related information summary (e.g. epoch details, lockup durations, estimated rewards, etc.) + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.chain_info_response_dto import ChainInfoResponseDto +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.StakingBetaApi(api_client) + chain_descriptor = 'chain_descriptor_example' # str | The protocol identifier (e.g. \"ETH\"/\"SOL\") to use + + try: + # + api_response = api_instance.get_chain_info(chain_descriptor) + print("The response of StakingBetaApi->get_chain_info:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling StakingBetaApi->get_chain_info: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **chain_descriptor** | **str**| The protocol identifier (e.g. \"ETH\"/\"SOL\") to use | + +### Return type + +[**ChainInfoResponseDto**](ChainInfoResponseDto.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Chain specific info summary was returned successfully | - | + +[[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_chains** +> List[str] get_chains() + + + +Return an alphabetical list of supported chains. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.StakingBetaApi(api_client) + + try: + # + api_response = api_instance.get_chains() + print("The response of StakingBetaApi->get_chains:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling StakingBetaApi->get_chains: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +**List[str]** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | | - | + +[[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_delegation_by_id** +> DelegationDto get_delegation_by_id(id) + + + +Return detailed information on a staking position, including the staked amount, rewards, status and more. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.delegation_dto import DelegationDto +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.StakingBetaApi(api_client) + id = 'id_example' # str | The unique identifier of the staking position + + try: + # + api_response = api_instance.get_delegation_by_id(id) + print("The response of StakingBetaApi->get_delegation_by_id:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling StakingBetaApi->get_delegation_by_id: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| The unique identifier of the staking position | + +### Return type + +[**DelegationDto**](DelegationDto.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Position data was returned successfully | - | + +[[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_providers** +> List[ProviderDto] get_providers() + + + +Return information on all the available staking providers. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.provider_dto import ProviderDto +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.StakingBetaApi(api_client) + + try: + # + api_response = api_instance.get_providers() + print("The response of StakingBetaApi->get_providers:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling StakingBetaApi->get_providers: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**List[ProviderDto]**](ProviderDto.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | An array of supported providers was returned successfully | - | + +[[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_summary** +> DelegationSummaryDto get_summary() + + + +Return a summary of all vaults, categorized by their status (active, inactive), the total amounts staked and total rewards per-chain. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.delegation_summary_dto import DelegationSummaryDto +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.StakingBetaApi(api_client) + + try: + # + api_response = api_instance.get_summary() + print("The response of StakingBetaApi->get_summary:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling StakingBetaApi->get_summary: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**DelegationSummaryDto**](DelegationSummaryDto.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A summary for all vaults were returned successfully | - | + +[[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_summary_by_vault** +> Dict[str, DelegationSummaryDto] get_summary_by_vault() + + + +Return a summary for each vault, categorized by their status (active, inactive), the total amounts staked and total rewards per-chain. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.delegation_summary_dto import DelegationSummaryDto +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.StakingBetaApi(api_client) + + try: + # + api_response = api_instance.get_summary_by_vault() + print("The response of StakingBetaApi->get_summary_by_vault:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling StakingBetaApi->get_summary_by_vault: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**Dict[str, DelegationSummaryDto]**](DelegationSummaryDto.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A summary for each vault were returned successfully | - | + +[[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) + diff --git a/docs/StellarRippleCreateParamsDto.md b/docs/StellarRippleCreateParamsDto.md new file mode 100644 index 00000000..3f55f987 --- /dev/null +++ b/docs/StellarRippleCreateParamsDto.md @@ -0,0 +1,31 @@ +# StellarRippleCreateParamsDto + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**symbol** | **str** | The symbol of the token | +**name** | **str** | The name of the token | +**issuer_address** | **str** | The address of the issuer of this token. Will be part of the identifier of this token on chain. | + +## Example + +```python +from fireblocks_client.models.stellar_ripple_create_params_dto import StellarRippleCreateParamsDto + +# TODO update the JSON string below +json = "{}" +# create an instance of StellarRippleCreateParamsDto from a JSON string +stellar_ripple_create_params_dto_instance = StellarRippleCreateParamsDto.from_json(json) +# print the JSON string representation of the object +print StellarRippleCreateParamsDto.to_json() + +# convert the object into a dict +stellar_ripple_create_params_dto_dict = stellar_ripple_create_params_dto_instance.to_dict() +# create an instance of StellarRippleCreateParamsDto from a dict +stellar_ripple_create_params_dto_form_dict = stellar_ripple_create_params_dto.from_dict(stellar_ripple_create_params_dto_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/docs/SystemMessageInfo.md b/docs/SystemMessageInfo.md new file mode 100644 index 00000000..3cfeae9e --- /dev/null +++ b/docs/SystemMessageInfo.md @@ -0,0 +1,30 @@ +# SystemMessageInfo + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | | [optional] +**message** | **str** | A response from Fireblocks that communicates a message about the health of the process being performed. If this object is returned with data, you should expect potential delays or incomplete transaction statuses. | [optional] + +## Example + +```python +from fireblocks_client.models.system_message_info import SystemMessageInfo + +# TODO update the JSON string below +json = "{}" +# create an instance of SystemMessageInfo from a JSON string +system_message_info_instance = SystemMessageInfo.from_json(json) +# print the JSON string representation of the object +print SystemMessageInfo.to_json() + +# convert the object into a dict +system_message_info_dict = system_message_info_instance.to_dict() +# create an instance of SystemMessageInfo from a dict +system_message_info_form_dict = system_message_info.from_dict(system_message_info_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/docs/Task.md b/docs/Task.md new file mode 100644 index 00000000..e1791ba1 --- /dev/null +++ b/docs/Task.md @@ -0,0 +1,35 @@ +# Task + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**job_id** | **str** | | [optional] +**type** | **str** | | [optional] +**tenant_id** | **str** | | [optional] +**created** | **float** | | [optional] +**updated** | **float** | | [optional] +**state** | **str** | | [optional] + +## Example + +```python +from fireblocks_client.models.task import Task + +# TODO update the JSON string below +json = "{}" +# create an instance of Task from a JSON string +task_instance = Task.from_json(json) +# print the JSON string representation of the object +print Task.to_json() + +# convert the object into a dict +task_dict = task_instance.to_dict() +# create an instance of Task from a dict +task_form_dict = task.from_dict(task_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/docs/TemplatesPaginatedResponse.md b/docs/TemplatesPaginatedResponse.md new file mode 100644 index 00000000..46768bd4 --- /dev/null +++ b/docs/TemplatesPaginatedResponse.md @@ -0,0 +1,30 @@ +# TemplatesPaginatedResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**List[LeanContractDto]**](LeanContractDto.md) | The data of the current page | +**next** | **str** | The ID of the next page | [optional] + +## Example + +```python +from fireblocks_client.models.templates_paginated_response import TemplatesPaginatedResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of TemplatesPaginatedResponse from a JSON string +templates_paginated_response_instance = TemplatesPaginatedResponse.from_json(json) +# print the JSON string representation of the object +print TemplatesPaginatedResponse.to_json() + +# convert the object into a dict +templates_paginated_response_dict = templates_paginated_response_instance.to_dict() +# create an instance of TemplatesPaginatedResponse from a dict +templates_paginated_response_form_dict = templates_paginated_response.from_dict(templates_paginated_response_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/docs/ThirdPartyRouting.md b/docs/ThirdPartyRouting.md new file mode 100644 index 00000000..9104d1bd --- /dev/null +++ b/docs/ThirdPartyRouting.md @@ -0,0 +1,30 @@ +# ThirdPartyRouting + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**is_third_party_routing** | **bool** | | [optional] +**description** | **str** | | [optional] + +## Example + +```python +from fireblocks_client.models.third_party_routing import ThirdPartyRouting + +# TODO update the JSON string below +json = "{}" +# create an instance of ThirdPartyRouting from a JSON string +third_party_routing_instance = ThirdPartyRouting.from_json(json) +# print the JSON string representation of the object +print ThirdPartyRouting.to_json() + +# convert the object into a dict +third_party_routing_dict = third_party_routing_instance.to_dict() +# create an instance of ThirdPartyRouting from a dict +third_party_routing_form_dict = third_party_routing.from_dict(third_party_routing_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/docs/ToCollateralTransaction.md b/docs/ToCollateralTransaction.md new file mode 100644 index 00000000..abde5753 --- /dev/null +++ b/docs/ToCollateralTransaction.md @@ -0,0 +1,33 @@ +# ToCollateralTransaction + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**asset** | **str** | | [optional] +**amount** | **str** | | [optional] +**src_address** | **str** | | [optional] +**src_tag** | **str** | optional | [optional] +**fee** | **str** | optional | [optional] + +## Example + +```python +from fireblocks_client.models.to_collateral_transaction import ToCollateralTransaction + +# TODO update the JSON string below +json = "{}" +# create an instance of ToCollateralTransaction from a JSON string +to_collateral_transaction_instance = ToCollateralTransaction.from_json(json) +# print the JSON string representation of the object +print ToCollateralTransaction.to_json() + +# convert the object into a dict +to_collateral_transaction_dict = to_collateral_transaction_instance.to_dict() +# create an instance of ToCollateralTransaction from a dict +to_collateral_transaction_form_dict = to_collateral_transaction.from_dict(to_collateral_transaction_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/docs/ToExchangeTransaction.md b/docs/ToExchangeTransaction.md new file mode 100644 index 00000000..c64d0457 --- /dev/null +++ b/docs/ToExchangeTransaction.md @@ -0,0 +1,32 @@ +# ToExchangeTransaction + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**asset_id** | **str** | | [optional] +**amount** | **str** | | [optional] +**dst_address** | **str** | | [optional] +**dst_tag** | **str** | optional | [optional] + +## Example + +```python +from fireblocks_client.models.to_exchange_transaction import ToExchangeTransaction + +# TODO update the JSON string below +json = "{}" +# create an instance of ToExchangeTransaction from a JSON string +to_exchange_transaction_instance = ToExchangeTransaction.from_json(json) +# print the JSON string representation of the object +print ToExchangeTransaction.to_json() + +# convert the object into a dict +to_exchange_transaction_dict = to_exchange_transaction_instance.to_dict() +# create an instance of ToExchangeTransaction from a dict +to_exchange_transaction_form_dict = to_exchange_transaction.from_dict(to_exchange_transaction_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/docs/TokenCollectionResponse.md b/docs/TokenCollectionResponse.md new file mode 100644 index 00000000..d050954d --- /dev/null +++ b/docs/TokenCollectionResponse.md @@ -0,0 +1,31 @@ +# TokenCollectionResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | +**name** | **str** | | [optional] +**symbol** | **str** | | [optional] + +## Example + +```python +from fireblocks_client.models.token_collection_response import TokenCollectionResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of TokenCollectionResponse from a JSON string +token_collection_response_instance = TokenCollectionResponse.from_json(json) +# print the JSON string representation of the object +print TokenCollectionResponse.to_json() + +# convert the object into a dict +token_collection_response_dict = token_collection_response_instance.to_dict() +# create an instance of TokenCollectionResponse from a dict +token_collection_response_form_dict = token_collection_response.from_dict(token_collection_response_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/docs/TokenLinkDto.md b/docs/TokenLinkDto.md new file mode 100644 index 00000000..eab5695f --- /dev/null +++ b/docs/TokenLinkDto.md @@ -0,0 +1,34 @@ +# TokenLinkDto + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | The token link id | +**status** | **str** | The token status | +**type** | **str** | The type of token | [optional] +**ref_id** | **str** | The Fireblocks' reference id. Can be a Fireblocks' supported asset, collectionId or contractId | [optional] +**display_name** | **str** | The token display name. If was not provided, would be taken from the contract template name | [optional] +**token_metadata** | [**TokenLinkDtoTokenMetadata**](TokenLinkDtoTokenMetadata.md) | | [optional] + +## Example + +```python +from fireblocks_client.models.token_link_dto import TokenLinkDto + +# TODO update the JSON string below +json = "{}" +# create an instance of TokenLinkDto from a JSON string +token_link_dto_instance = TokenLinkDto.from_json(json) +# print the JSON string representation of the object +print TokenLinkDto.to_json() + +# convert the object into a dict +token_link_dto_dict = token_link_dto_instance.to_dict() +# create an instance of TokenLinkDto from a dict +token_link_dto_form_dict = token_link_dto.from_dict(token_link_dto_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/docs/TokenLinkDtoTokenMetadata.md b/docs/TokenLinkDtoTokenMetadata.md new file mode 100644 index 00000000..1fbb1cdd --- /dev/null +++ b/docs/TokenLinkDtoTokenMetadata.md @@ -0,0 +1,48 @@ +# TokenLinkDtoTokenMetadata + +The token's metadata + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**asset_id** | **str** | The Fireblocks` asset id | +**name** | **str** | Collection name | [optional] +**symbol** | **str** | Collection symbol | [optional] +**network_protocol** | **str** | The network protocol of the token | [optional] +**total_supply** | **str** | The total supply of the token | [optional] +**holders_count** | **float** | The number of holders of the token | [optional] +**type** | **str** | The type of the token | [optional] +**contract_address** | **str** | The address of the token contract | +**issuer_address** | **str** | In case of Stellar or Ripple, the address of the issuer of the token | [optional] +**testnet** | **bool** | Is it deployed on testnet or to mainnet | [optional] +**blockchain** | **str** | The blockchain native asset id which the token is deployed on | [optional] +**decimals** | **float** | The number of decimals of the token | [optional] +**vault_account_id** | **str** | The vault account ID that initiated the request to issue the token | [optional] +**fb_collection_id** | **str** | Fireblocks collection id | +**standard** | **str** | Collection contract standard | [optional] +**blockchain_descriptor** | **str** | Collection's blockchain | +**id** | **str** | The deployed contract ID | +**blockchain_id** | **str** | The blockchain ID | +**contract_template_id** | **str** | The contract template ID | + +## Example + +```python +from fireblocks_client.models.token_link_dto_token_metadata import TokenLinkDtoTokenMetadata + +# TODO update the JSON string below +json = "{}" +# create an instance of TokenLinkDtoTokenMetadata from a JSON string +token_link_dto_token_metadata_instance = TokenLinkDtoTokenMetadata.from_json(json) +# print the JSON string representation of the object +print TokenLinkDtoTokenMetadata.to_json() + +# convert the object into a dict +token_link_dto_token_metadata_dict = token_link_dto_token_metadata_instance.to_dict() +# create an instance of TokenLinkDtoTokenMetadata from a dict +token_link_dto_token_metadata_form_dict = token_link_dto_token_metadata.from_dict(token_link_dto_token_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/docs/TokenLinkExistsHttpError.md b/docs/TokenLinkExistsHttpError.md new file mode 100644 index 00000000..a91347d6 --- /dev/null +++ b/docs/TokenLinkExistsHttpError.md @@ -0,0 +1,31 @@ +# TokenLinkExistsHttpError + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status_code** | **int** | HTTP status code | [optional] +**message** | **str** | Error message | [optional] +**error** | **str** | Short description of the HTTP error | [optional] + +## Example + +```python +from fireblocks_client.models.token_link_exists_http_error import TokenLinkExistsHttpError + +# TODO update the JSON string below +json = "{}" +# create an instance of TokenLinkExistsHttpError from a JSON string +token_link_exists_http_error_instance = TokenLinkExistsHttpError.from_json(json) +# print the JSON string representation of the object +print TokenLinkExistsHttpError.to_json() + +# convert the object into a dict +token_link_exists_http_error_dict = token_link_exists_http_error_instance.to_dict() +# create an instance of TokenLinkExistsHttpError from a dict +token_link_exists_http_error_form_dict = token_link_exists_http_error.from_dict(token_link_exists_http_error_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/docs/TokenLinkRequestDto.md b/docs/TokenLinkRequestDto.md new file mode 100644 index 00000000..49f4fc18 --- /dev/null +++ b/docs/TokenLinkRequestDto.md @@ -0,0 +1,31 @@ +# TokenLinkRequestDto + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | The type of token being linked | +**ref_id** | **str** | The Fireblocks' token link reference id. For example, 'BQ5R_BDESC_ABC' if it's a fungible asset | +**display_name** | **str** | The token display name | [optional] + +## Example + +```python +from fireblocks_client.models.token_link_request_dto import TokenLinkRequestDto + +# TODO update the JSON string below +json = "{}" +# create an instance of TokenLinkRequestDto from a JSON string +token_link_request_dto_instance = TokenLinkRequestDto.from_json(json) +# print the JSON string representation of the object +print TokenLinkRequestDto.to_json() + +# convert the object into a dict +token_link_request_dto_dict = token_link_request_dto_instance.to_dict() +# create an instance of TokenLinkRequestDto from a dict +token_link_request_dto_form_dict = token_link_request_dto.from_dict(token_link_request_dto_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/docs/TokenOwnershipResponse.md b/docs/TokenOwnershipResponse.md new file mode 100644 index 00000000..cb27d590 --- /dev/null +++ b/docs/TokenOwnershipResponse.md @@ -0,0 +1,46 @@ +# TokenOwnershipResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | The Fireblocks NFT asset id | +**token_id** | **str** | Token id within the contract/collection | +**standard** | **str** | ERC721 / ERC1155 | +**metadata_uri** | **str** | URL of the original token JSON metadata | [optional] +**cached_metadata_uri** | **str** | URL of the cached token JSON metadata | [optional] +**media** | [**List[MediaEntityResponse]**](MediaEntityResponse.md) | Media items extracted from metadata JSON | [optional] +**spam** | [**SpamOwnershipResponse**](SpamOwnershipResponse.md) | Owned Token's Spam status | [optional] +**collection** | [**TokenCollectionResponse**](TokenCollectionResponse.md) | Parent collection information | [optional] +**balance** | **str** | | +**vault_account_id** | **str** | | [optional] +**ownership_start_time** | **float** | | +**ownership_last_update_time** | **float** | | +**blockchain_descriptor** | **str** | | +**description** | **str** | | [optional] +**name** | **str** | | [optional] +**ncw_id** | **str** | Ownership Non-Custodial Wallet ID | [optional] +**ncw_account_id** | **str** | Ownership Non-Custodial Wallet's account ID | [optional] +**status** | **str** | Owned Token's status | + +## Example + +```python +from fireblocks_client.models.token_ownership_response import TokenOwnershipResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of TokenOwnershipResponse from a JSON string +token_ownership_response_instance = TokenOwnershipResponse.from_json(json) +# print the JSON string representation of the object +print TokenOwnershipResponse.to_json() + +# convert the object into a dict +token_ownership_response_dict = token_ownership_response_instance.to_dict() +# create an instance of TokenOwnershipResponse from a dict +token_ownership_response_form_dict = token_ownership_response.from_dict(token_ownership_response_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/docs/TokenOwnershipSpamUpdatePayload.md b/docs/TokenOwnershipSpamUpdatePayload.md new file mode 100644 index 00000000..f3306445 --- /dev/null +++ b/docs/TokenOwnershipSpamUpdatePayload.md @@ -0,0 +1,30 @@ +# TokenOwnershipSpamUpdatePayload + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**asset_id** | **str** | Token's asset id | +**spam** | **bool** | Token's ownership new spam value | + +## Example + +```python +from fireblocks_client.models.token_ownership_spam_update_payload import TokenOwnershipSpamUpdatePayload + +# TODO update the JSON string below +json = "{}" +# create an instance of TokenOwnershipSpamUpdatePayload from a JSON string +token_ownership_spam_update_payload_instance = TokenOwnershipSpamUpdatePayload.from_json(json) +# print the JSON string representation of the object +print TokenOwnershipSpamUpdatePayload.to_json() + +# convert the object into a dict +token_ownership_spam_update_payload_dict = token_ownership_spam_update_payload_instance.to_dict() +# create an instance of TokenOwnershipSpamUpdatePayload from a dict +token_ownership_spam_update_payload_form_dict = token_ownership_spam_update_payload.from_dict(token_ownership_spam_update_payload_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/docs/TokenOwnershipStatusUpdatePayload.md b/docs/TokenOwnershipStatusUpdatePayload.md new file mode 100644 index 00000000..3d7dd3c3 --- /dev/null +++ b/docs/TokenOwnershipStatusUpdatePayload.md @@ -0,0 +1,30 @@ +# TokenOwnershipStatusUpdatePayload + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**asset_id** | **str** | Token's asset id | +**status** | **str** | Token's ownership new status | + +## Example + +```python +from fireblocks_client.models.token_ownership_status_update_payload import TokenOwnershipStatusUpdatePayload + +# TODO update the JSON string below +json = "{}" +# create an instance of TokenOwnershipStatusUpdatePayload from a JSON string +token_ownership_status_update_payload_instance = TokenOwnershipStatusUpdatePayload.from_json(json) +# print the JSON string representation of the object +print TokenOwnershipStatusUpdatePayload.to_json() + +# convert the object into a dict +token_ownership_status_update_payload_dict = token_ownership_status_update_payload_instance.to_dict() +# create an instance of TokenOwnershipStatusUpdatePayload from a dict +token_ownership_status_update_payload_form_dict = token_ownership_status_update_payload.from_dict(token_ownership_status_update_payload_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/docs/TokenResponse.md b/docs/TokenResponse.md new file mode 100644 index 00000000..d39aa229 --- /dev/null +++ b/docs/TokenResponse.md @@ -0,0 +1,39 @@ +# TokenResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | The Fireblocks NFT asset id | +**token_id** | **str** | Token id within the contract/collection | +**standard** | **str** | ERC721 / ERC1155 | +**metadata_uri** | **str** | URL of the original token JSON metadata | [optional] +**cached_metadata_uri** | **str** | URL of the cached token JSON metadata | [optional] +**media** | [**List[MediaEntityResponse]**](MediaEntityResponse.md) | Media items extracted from metadata JSON | [optional] +**spam** | [**SpamTokenResponse**](SpamTokenResponse.md) | Token spam status | [optional] +**collection** | [**TokenCollectionResponse**](TokenCollectionResponse.md) | Parent collection information | [optional] +**blockchain_descriptor** | **str** | | +**description** | **str** | | [optional] +**name** | **str** | | [optional] + +## Example + +```python +from fireblocks_client.models.token_response import TokenResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of TokenResponse from a JSON string +token_response_instance = TokenResponse.from_json(json) +# print the JSON string representation of the object +print TokenResponse.to_json() + +# convert the object into a dict +token_response_dict = token_response_instance.to_dict() +# create an instance of TokenResponse from a dict +token_response_form_dict = token_response.from_dict(token_response_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/docs/TokenizationApi.md b/docs/TokenizationApi.md new file mode 100644 index 00000000..6d6f967f --- /dev/null +++ b/docs/TokenizationApi.md @@ -0,0 +1,370 @@ +# fireblocks_client.TokenizationApi + +All URIs are relative to *https://api.fireblocks.io/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_linked_token**](TokenizationApi.md#get_linked_token) | **GET** /tokenization/tokens/{id} | Return a linked token +[**get_linked_tokens**](TokenizationApi.md#get_linked_tokens) | **GET** /tokenization/tokens | List all linked tokens +[**issue_new_token**](TokenizationApi.md#issue_new_token) | **POST** /tokenization/tokens | Issue a new token +[**link**](TokenizationApi.md#link) | **POST** /tokenization/tokens/link | Link a token +[**unlink**](TokenizationApi.md#unlink) | **DELETE** /tokenization/tokens/{id} | Unlink a token + + +# **get_linked_token** +> TokenLinkDto get_linked_token(id) + +Return a linked token + +Return a linked token, with its status and metadata. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.token_link_dto import TokenLinkDto +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.TokenizationApi(api_client) + id = 'fbfbfbfb-fbfb-fbfb-fbfb-fbfbfbfbfbfb' # str | The token link id + + try: + # Return a linked token + api_response = api_instance.get_linked_token(id) + print("The response of TokenizationApi->get_linked_token:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling TokenizationApi->get_linked_token: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| The token link id | + +### Return type + +[**TokenLinkDto**](TokenLinkDto.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Token fetched successfully | - | +**0** | Error Response | * X-Request-ID -
| + +[[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_linked_tokens** +> TokensPaginatedResponse get_linked_tokens(page_cursor=page_cursor, page_size=page_size, status=status) + +List all linked tokens + +Return all linked tokens (paginated) + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.tokens_paginated_response import TokensPaginatedResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.TokenizationApi(api_client) + page_cursor = 'MjAyMy0xMi0xMyAyMDozNjowOC4zMDI=:MTEwMA==' # str | Page cursor to get the next page (optional) + page_size = 10 # float | Number of items per page, requesting more then max will return max items (optional) + status = COMPLETED # object | A comma separated list of statuses to filter. Default is \"COMPLETED\" (optional) + + try: + # List all linked tokens + api_response = api_instance.get_linked_tokens(page_cursor=page_cursor, page_size=page_size, status=status) + print("The response of TokenizationApi->get_linked_tokens:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling TokenizationApi->get_linked_tokens: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **page_cursor** | **str**| Page cursor to get the next page | [optional] + **page_size** | **float**| Number of items per page, requesting more then max will return max items | [optional] + **status** | [**object**](.md)| A comma separated list of statuses to filter. Default is \"COMPLETED\" | [optional] + +### Return type + +[**TokensPaginatedResponse**](TokensPaginatedResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | | - | +**0** | Error Response | * X-Request-ID -
| + +[[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) + +# **issue_new_token** +> TokenLinkDto issue_new_token(create_token_request_dto, idempotency_key=idempotency_key) + +Issue a new token + +Facilitates the creation of a new token, supporting both EVM-based and Stellar/Ripple platforms. For EVM, it deploys the corresponding contract template to the blockchain and links the token to the workspace. For Stellar/Ripple, it links a newly created token directly to the workspace without deploying a contract. Returns the token link with status \"PENDING\" until the token is deployed or \"SUCCESS\" if no deployment is needed. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.create_token_request_dto import CreateTokenRequestDto +from fireblocks_client.models.token_link_dto import TokenLinkDto +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.TokenizationApi(api_client) + create_token_request_dto = fireblocks_client.CreateTokenRequestDto() # CreateTokenRequestDto | + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + + try: + # Issue a new token + api_response = api_instance.issue_new_token(create_token_request_dto, idempotency_key=idempotency_key) + print("The response of TokenizationApi->issue_new_token:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling TokenizationApi->issue_new_token: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **create_token_request_dto** | [**CreateTokenRequestDto**](CreateTokenRequestDto.md)| | + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + +### Return type + +[**TokenLinkDto**](TokenLinkDto.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | Token was created successfully | - | +**409** | Asset already exists | - | + +[[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) + +# **link** +> TokenLinkDto link(token_link_request_dto, idempotency_key=idempotency_key) + +Link a token + +Link an already existing token (by assetId, collectionId or contractId as refId) to a workspace across EVM, Stellar, or Ripple platforms. The token will be linked to the workspace if it does not already exist. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.token_link_dto import TokenLinkDto +from fireblocks_client.models.token_link_request_dto import TokenLinkRequestDto +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.TokenizationApi(api_client) + token_link_request_dto = fireblocks_client.TokenLinkRequestDto() # TokenLinkRequestDto | + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + + try: + # Link a token + api_response = api_instance.link(token_link_request_dto, idempotency_key=idempotency_key) + print("The response of TokenizationApi->link:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling TokenizationApi->link: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **token_link_request_dto** | [**TokenLinkRequestDto**](TokenLinkRequestDto.md)| | + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + +### Return type + +[**TokenLinkDto**](TokenLinkDto.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Token linked successfully | - | +**201** | | - | +**404** | Could not find the underlying token identifier (refId) to link the token to | - | +**409** | Token link for {refId} already exists | - | +**0** | Error Response | * X-Request-ID -
| + +[[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) + +# **unlink** +> unlink(id) + +Unlink a token + +Unlink a token. The token will be unlinked from the workspace. The token will not be deleted on chain nor the refId, only the link to the workspace will be removed. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.TokenizationApi(api_client) + id = 'fbfbfbfb-fbfb-fbfb-fbfb-fbfbfbfbfbfb' # str | The token link id + + try: + # Unlink a token + api_instance.unlink(id) + except Exception as e: + print("Exception when calling TokenizationApi->unlink: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| The token link id | + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Token unlinked successfully | - | +**204** | | - | +**404** | Link did not exist | - | +**0** | Error Response | * X-Request-ID -
| + +[[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) + diff --git a/docs/TokensPaginatedResponse.md b/docs/TokensPaginatedResponse.md new file mode 100644 index 00000000..1cb83d5d --- /dev/null +++ b/docs/TokensPaginatedResponse.md @@ -0,0 +1,30 @@ +# TokensPaginatedResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**List[TokenLinkDto]**](TokenLinkDto.md) | The data of the current page | +**next** | **str** | The ID of the next page | [optional] + +## Example + +```python +from fireblocks_client.models.tokens_paginated_response import TokensPaginatedResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of TokensPaginatedResponse from a JSON string +tokens_paginated_response_instance = TokensPaginatedResponse.from_json(json) +# print the JSON string representation of the object +print TokensPaginatedResponse.to_json() + +# convert the object into a dict +tokens_paginated_response_dict = tokens_paginated_response_instance.to_dict() +# create an instance of TokensPaginatedResponse from a dict +tokens_paginated_response_form_dict = tokens_paginated_response.from_dict(tokens_paginated_response_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/docs/TradingAccountType.md b/docs/TradingAccountType.md new file mode 100644 index 00000000..089e7a15 --- /dev/null +++ b/docs/TradingAccountType.md @@ -0,0 +1,11 @@ +# TradingAccountType + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[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/Transaction.md b/docs/Transaction.md new file mode 100644 index 00000000..21a7d729 --- /dev/null +++ b/docs/Transaction.md @@ -0,0 +1,32 @@ +# Transaction + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | +**state** | **str** | | +**timestamp** | **float** | | [optional] +**instruction_id** | **str** | | [optional] + +## Example + +```python +from fireblocks_client.models.transaction import Transaction + +# TODO update the JSON string below +json = "{}" +# create an instance of Transaction from a JSON string +transaction_instance = Transaction.from_json(json) +# print the JSON string representation of the object +print Transaction.to_json() + +# convert the object into a dict +transaction_dict = transaction_instance.to_dict() +# create an instance of Transaction from a dict +transaction_form_dict = transaction.from_dict(transaction_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/docs/TransactionFee.md b/docs/TransactionFee.md new file mode 100644 index 00000000..a5470d7e --- /dev/null +++ b/docs/TransactionFee.md @@ -0,0 +1,36 @@ +# TransactionFee + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**fee_per_byte** | **str** | | [optional] +**gas_price** | **float** | | [optional] +**gas_limit** | **str** | | [optional] +**network_fee** | **str** | | [optional] +**base_fee** | **float** | (optional) Base Fee according to EIP-1559 (ETH assets) | [optional] +**priority_fee** | **float** | (optional) Priority Fee according to EIP-1559 (ETH assets) | [optional] +**max_fee_per_gas_delta** | **str** | Max Fee Per Gas Delta added only for EIP-1559 (ETH assets) | [optional] +**l1_fee** | **str** | Layer 1 fee for Layer 2 chains | [optional] + +## Example + +```python +from fireblocks_client.models.transaction_fee import TransactionFee + +# TODO update the JSON string below +json = "{}" +# create an instance of TransactionFee from a JSON string +transaction_fee_instance = TransactionFee.from_json(json) +# print the JSON string representation of the object +print TransactionFee.to_json() + +# convert the object into a dict +transaction_fee_dict = transaction_fee_instance.to_dict() +# create an instance of TransactionFee from a dict +transaction_fee_form_dict = transaction_fee.from_dict(transaction_fee_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/docs/TransactionOperation.md b/docs/TransactionOperation.md new file mode 100644 index 00000000..13f8f807 --- /dev/null +++ b/docs/TransactionOperation.md @@ -0,0 +1,12 @@ +# TransactionOperation + +* `TRANSFER` - The default value for an operation. Transfers funds from one account to another. UTXO blockchains allow multi-input and multi-output transfers. All other blockchains allow transfers with one source address and one destination address. * `MINT` - Mints new tokens. Supported for Stellar, Ripple and EVM-based blockchains. * `BURN` - Burns tokens. Supported for Stellar, Ripple and EVM-based blockchains. * `CONTRACT_CALL` - Calls a smart contract method for web3 operations on any EVM blockchain. The Fireblocks [development libraries](https://developers.fireblocks.com/docs/ethereum-development#convenience-libraries) are recommended for building contract call transactions. * `TYPED_MESSAGE` - An off-chain message in either Ethereum Personal Message or EIP712 format. Use it to sign specific readable messages that are not actual transactions. [Learn more about typed messages](https://developers.fireblocks.com/docs/typed-message-signing). * `RAW` - An off-chain message with no predefined format. Use it to sign any message with your private key, including protocols such as blockchains and custom transaction types that are not natively supported by Fireblocks. [Learn more about raw signing transactions.](https://developers.fireblocks.com/docs/raw-message-signing) + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[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/TransactionRequest.md b/docs/TransactionRequest.md new file mode 100644 index 00000000..3f923c01 --- /dev/null +++ b/docs/TransactionRequest.md @@ -0,0 +1,53 @@ +# TransactionRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**operation** | [**TransactionOperation**](TransactionOperation.md) | | [optional] +**note** | **str** | Custom note, not sent to the blockchain, to describe the transaction at your Fireblocks workspace. | [optional] +**external_tx_id** | **str** | An optional but highly recommended parameter. Fireblocks will reject future transactions with same ID. You should set this to a unique ID representing the transaction, to avoid submitting the same transaction twice. This helps with cases where submitting the transaction responds with an error code due to Internet interruptions, but the transaction was actually sent and processed. To validate whether a transaction has been processed, [Find a specific transaction by external transaction ID](https://developers.fireblocks.com/reference/get_transactions-external-tx-id-externaltxid). There is no specific format required for this parameter. | [optional] +**asset_id** | **str** | The ID of the asset to transfer, for `TRANSFER`, `MINT` or `BURN` operations. [See the list of supported assets and their IDs on Fireblocks.](https://developers.fireblocks.com/reference/get_supported-assets) | [optional] +**source** | [**SourceTransferPeerPath**](SourceTransferPeerPath.md) | | [optional] +**destination** | [**DestinationTransferPeerPath**](DestinationTransferPeerPath.md) | | [optional] +**destinations** | [**List[TransactionRequestDestination]**](TransactionRequestDestination.md) | For UTXO based blockchains, you can send a single transaction to multiple destinations. | [optional] +**amount** | [**TransactionRequestAmount**](TransactionRequestAmount.md) | | [optional] +**treat_as_gross_amount** | **bool** | \"When set to `true`, the fee will be deducted from the requested amount.\" **Note**: This parameter can only be considered if a transaction’s asset is a base asset, such as ETH or MATIC. If the asset can’t be used for transaction fees, like USDC, this parameter is ignored and the fee is deducted from the relevant base asset wallet in the source account. | [optional] +**force_sweep** | **bool** | For Polkadot, Kusama and Westend transactions only. When set to true, Fireblocks will empty the asset wallet. **Note:** If set to true when the source account is exactly 1 DOT, the transaction will fail. Any amount more or less than 1 DOT succeeds. This is a Polkadot blockchain limitation. | [optional] +**fee_level** | **str** | For UTXO or EVM-based blockchains only. Defines the blockchain fee level which will be payed for the transaction. Alternatively, specific fee estimation parameters exist below. | [optional] +**fee** | [**TransactionRequestFee**](TransactionRequestFee.md) | | [optional] +**priority_fee** | [**TransactionRequestPriorityFee**](TransactionRequestPriorityFee.md) | | [optional] +**fail_on_low_fee** | **bool** | When set to `true`, in case the current `MEDIUM` fee level is higher than the one specified in the transaction, the transaction will fail to avoid getting stuck with no confirmations. | [optional] +**max_fee** | **str** | The maximum fee (gas price or fee per byte) that should be payed for the transaction. In case the current value of the requested `feeLevel` is higher than this requested maximum fee. Represented by a numeric string for accurate precision. | [optional] +**gas_limit** | [**TransactionRequestGasLimit**](TransactionRequestGasLimit.md) | | [optional] +**gas_price** | [**TransactionRequestGasPrice**](TransactionRequestGasPrice.md) | | [optional] +**network_fee** | [**TransactionRequestNetworkFee**](TransactionRequestNetworkFee.md) | | [optional] +**replace_tx_by_hash** | **str** | For EVM-based blockchains only. In case a transaction is stuck, specify the hash of the stuck transaction to replace it by this transaction with a higher fee, or to replace it with this transaction with a zero fee and drop it from the blockchain. | [optional] +**extra_parameters** | **object** | Additional protocol / operation specific key-value parameters: For UTXO-based blockchain input selection, add the key `inputsSelection` with the value set the [input selection structure.](https://developers.fireblocks.com/reference/transaction-objects#inputsselection) The inputs can be retrieved from the [Retrieve Unspent Inputs endpoint.](https://developers.fireblocks.com/reference/get_vault-accounts-vaultaccountid-assetid-unspent-inputs) For `RAW` operations, add the key `rawMessageData` with the value set to the [raw message data structure.](https://developers.fireblocks.com/reference/raw-signing-objects#rawmessagedata) For `CONTRACT_CALL` operations, add the key `contractCallData` with the value set to the Ethereum smart contract Application Binary Interface (ABI) payload. The Fireblocks [development libraries](https://developers.fireblocks.com/docs/ethereum-development#convenience-libraries) are recommended for building contract call transactions. | [optional] +**customer_ref_id** | **str** | The ID for AML providers to associate the owner of funds with transactions. | [optional] +**travel_rule_message** | [**TravelRuleCreateTransactionRequest**](TravelRuleCreateTransactionRequest.md) | | [optional] +**auto_staking** | **bool** | This feature is no longer supported. | [optional] +**network_staking** | [**TransactionRequestNetworkStaking**](TransactionRequestNetworkStaking.md) | | [optional] +**cpu_staking** | [**TransactionRequestNetworkStaking**](TransactionRequestNetworkStaking.md) | | [optional] + +## Example + +```python +from fireblocks_client.models.transaction_request import TransactionRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of TransactionRequest from a JSON string +transaction_request_instance = TransactionRequest.from_json(json) +# print the JSON string representation of the object +print TransactionRequest.to_json() + +# convert the object into a dict +transaction_request_dict = transaction_request_instance.to_dict() +# create an instance of TransactionRequest from a dict +transaction_request_form_dict = transaction_request.from_dict(transaction_request_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/docs/TransactionRequestAmount.md b/docs/TransactionRequestAmount.md new file mode 100644 index 00000000..b5da2fef --- /dev/null +++ b/docs/TransactionRequestAmount.md @@ -0,0 +1,29 @@ +# TransactionRequestAmount + +For `TRANSFER` operations, the requested amount to transfer, in the asset’s unit. Fireblocks recommends using a numeric string for accurate precision. Although a number input exists, it is deprecated. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Example + +```python +from fireblocks_client.models.transaction_request_amount import TransactionRequestAmount + +# TODO update the JSON string below +json = "{}" +# create an instance of TransactionRequestAmount from a JSON string +transaction_request_amount_instance = TransactionRequestAmount.from_json(json) +# print the JSON string representation of the object +print TransactionRequestAmount.to_json() + +# convert the object into a dict +transaction_request_amount_dict = transaction_request_amount_instance.to_dict() +# create an instance of TransactionRequestAmount from a dict +transaction_request_amount_form_dict = transaction_request_amount.from_dict(transaction_request_amount_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/docs/TransactionRequestDestination.md b/docs/TransactionRequestDestination.md new file mode 100644 index 00000000..9df4ed85 --- /dev/null +++ b/docs/TransactionRequestDestination.md @@ -0,0 +1,30 @@ +# TransactionRequestDestination + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**amount** | **str** | | [optional] +**destination** | [**DestinationTransferPeerPath**](DestinationTransferPeerPath.md) | | [optional] + +## Example + +```python +from fireblocks_client.models.transaction_request_destination import TransactionRequestDestination + +# TODO update the JSON string below +json = "{}" +# create an instance of TransactionRequestDestination from a JSON string +transaction_request_destination_instance = TransactionRequestDestination.from_json(json) +# print the JSON string representation of the object +print TransactionRequestDestination.to_json() + +# convert the object into a dict +transaction_request_destination_dict = transaction_request_destination_instance.to_dict() +# create an instance of TransactionRequestDestination from a dict +transaction_request_destination_form_dict = transaction_request_destination.from_dict(transaction_request_destination_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/docs/TransactionRequestFee.md b/docs/TransactionRequestFee.md new file mode 100644 index 00000000..da70fdbc --- /dev/null +++ b/docs/TransactionRequestFee.md @@ -0,0 +1,29 @@ +# TransactionRequestFee + +For UTXO-based blockchains, the fee per bytes in the asset’s smallest unit (Satoshi, Latoshi, etc.). For Ripple, the fee for the transaction. Fireblocks recommends using a numeric string for accurate precision. Although a number input exists, it is deprecated. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Example + +```python +from fireblocks_client.models.transaction_request_fee import TransactionRequestFee + +# TODO update the JSON string below +json = "{}" +# create an instance of TransactionRequestFee from a JSON string +transaction_request_fee_instance = TransactionRequestFee.from_json(json) +# print the JSON string representation of the object +print TransactionRequestFee.to_json() + +# convert the object into a dict +transaction_request_fee_dict = transaction_request_fee_instance.to_dict() +# create an instance of TransactionRequestFee from a dict +transaction_request_fee_form_dict = transaction_request_fee.from_dict(transaction_request_fee_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/docs/TransactionRequestGasLimit.md b/docs/TransactionRequestGasLimit.md new file mode 100644 index 00000000..5f60459a --- /dev/null +++ b/docs/TransactionRequestGasLimit.md @@ -0,0 +1,29 @@ +# TransactionRequestGasLimit + +For EVM-based blockchains only. Units of gas required to process the transaction. Note: Only two of the three arguments can be specified in a single transaction: `gasLimit`, `gasPrice` and `networkFee`. Fireblocks recommends using a numeric string for accurate precision. Although a number input exists, it is deprecated. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Example + +```python +from fireblocks_client.models.transaction_request_gas_limit import TransactionRequestGasLimit + +# TODO update the JSON string below +json = "{}" +# create an instance of TransactionRequestGasLimit from a JSON string +transaction_request_gas_limit_instance = TransactionRequestGasLimit.from_json(json) +# print the JSON string representation of the object +print TransactionRequestGasLimit.to_json() + +# convert the object into a dict +transaction_request_gas_limit_dict = transaction_request_gas_limit_instance.to_dict() +# create an instance of TransactionRequestGasLimit from a dict +transaction_request_gas_limit_form_dict = transaction_request_gas_limit.from_dict(transaction_request_gas_limit_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/docs/TransactionRequestGasPrice.md b/docs/TransactionRequestGasPrice.md new file mode 100644 index 00000000..37c6228e --- /dev/null +++ b/docs/TransactionRequestGasPrice.md @@ -0,0 +1,29 @@ +# TransactionRequestGasPrice + +For non-EIP-1559, EVM-based transactions. Price per gas unit (in Ethereum this is specified in Gwei). Note: Only two of the three arguments can be specified in a single transaction: `gasLimit`, `gasPrice` and `networkFee`. Fireblocks recommends using a numeric string for accurate precision. Although a number input exists, it is deprecated. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Example + +```python +from fireblocks_client.models.transaction_request_gas_price import TransactionRequestGasPrice + +# TODO update the JSON string below +json = "{}" +# create an instance of TransactionRequestGasPrice from a JSON string +transaction_request_gas_price_instance = TransactionRequestGasPrice.from_json(json) +# print the JSON string representation of the object +print TransactionRequestGasPrice.to_json() + +# convert the object into a dict +transaction_request_gas_price_dict = transaction_request_gas_price_instance.to_dict() +# create an instance of TransactionRequestGasPrice from a dict +transaction_request_gas_price_form_dict = transaction_request_gas_price.from_dict(transaction_request_gas_price_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/docs/TransactionRequestNetworkFee.md b/docs/TransactionRequestNetworkFee.md new file mode 100644 index 00000000..19671470 --- /dev/null +++ b/docs/TransactionRequestNetworkFee.md @@ -0,0 +1,29 @@ +# TransactionRequestNetworkFee + +For EVM-based blockchains only. The total transaction fee in the blockchain’s largest unit. Note: Only two of the three arguments can be specified in a single transaction: `gasLimit`, `gasPrice` and `networkFee`. Fireblocks recommends using a numeric string for accurate precision. Although a number input exists, it is deprecated. - The transaction blockchain fee. - For Ethereum, you can't pass gasPrice, gasLimit and networkFee all together. - A numeric value representation is required. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Example + +```python +from fireblocks_client.models.transaction_request_network_fee import TransactionRequestNetworkFee + +# TODO update the JSON string below +json = "{}" +# create an instance of TransactionRequestNetworkFee from a JSON string +transaction_request_network_fee_instance = TransactionRequestNetworkFee.from_json(json) +# print the JSON string representation of the object +print TransactionRequestNetworkFee.to_json() + +# convert the object into a dict +transaction_request_network_fee_dict = transaction_request_network_fee_instance.to_dict() +# create an instance of TransactionRequestNetworkFee from a dict +transaction_request_network_fee_form_dict = transaction_request_network_fee.from_dict(transaction_request_network_fee_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/docs/TransactionRequestNetworkStaking.md b/docs/TransactionRequestNetworkStaking.md new file mode 100644 index 00000000..4e379988 --- /dev/null +++ b/docs/TransactionRequestNetworkStaking.md @@ -0,0 +1,29 @@ +# TransactionRequestNetworkStaking + +This feature is no longer supported. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Example + +```python +from fireblocks_client.models.transaction_request_network_staking import TransactionRequestNetworkStaking + +# TODO update the JSON string below +json = "{}" +# create an instance of TransactionRequestNetworkStaking from a JSON string +transaction_request_network_staking_instance = TransactionRequestNetworkStaking.from_json(json) +# print the JSON string representation of the object +print TransactionRequestNetworkStaking.to_json() + +# convert the object into a dict +transaction_request_network_staking_dict = transaction_request_network_staking_instance.to_dict() +# create an instance of TransactionRequestNetworkStaking from a dict +transaction_request_network_staking_form_dict = transaction_request_network_staking.from_dict(transaction_request_network_staking_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/docs/TransactionRequestPriorityFee.md b/docs/TransactionRequestPriorityFee.md new file mode 100644 index 00000000..74446e18 --- /dev/null +++ b/docs/TransactionRequestPriorityFee.md @@ -0,0 +1,29 @@ +# TransactionRequestPriorityFee + +For Ethereum-based blockchains only, the fee for EIP-1559 transaction pricing mechanism. Value is in Gwei. Fireblocks recommends using a numeric string for accurate precision. Although a number input exists, it is deprecated. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Example + +```python +from fireblocks_client.models.transaction_request_priority_fee import TransactionRequestPriorityFee + +# TODO update the JSON string below +json = "{}" +# create an instance of TransactionRequestPriorityFee from a JSON string +transaction_request_priority_fee_instance = TransactionRequestPriorityFee.from_json(json) +# print the JSON string representation of the object +print TransactionRequestPriorityFee.to_json() + +# convert the object into a dict +transaction_request_priority_fee_dict = transaction_request_priority_fee_instance.to_dict() +# create an instance of TransactionRequestPriorityFee from a dict +transaction_request_priority_fee_form_dict = transaction_request_priority_fee.from_dict(transaction_request_priority_fee_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/docs/TransactionResponse.md b/docs/TransactionResponse.md new file mode 100644 index 00000000..f4591fa0 --- /dev/null +++ b/docs/TransactionResponse.md @@ -0,0 +1,76 @@ +# TransactionResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | ID of the transaction. | [optional] +**external_tx_id** | **str** | Unique transaction ID provided by the user. Fireblocks highly recommends setting an `externalTxId` for every transaction created, to avoid submitting the same transaction twice. | [optional] +**status** | **str** | The primary status of the transaction. For details, see [Primary transaction statuses](https://developers.fireblocks.com/reference/primary-transaction-statuses). | [optional] +**sub_status** | **str** | See [Transaction substatuses](https://developers.fireblocks.com/reference/transaction-substatuses) for the list of transaction sub statuses. | [optional] +**tx_hash** | **str** | The hash of the transaction on the blockchain. * This parameter exists if at least one of the following conditions is met: 1. The transaction’s source type is `UNKNOWN`, `WHITELISTED_ADDRESS`, `NETWORK_CONNECTION`, `ONE_TIME_ADDRESS`, `FIAT_ACCOUNT` or `GAS_STATION`. 2. The transaction’s source type is `VAULT` and the status is either: `CONFIRMING`, `COMPLETED`, or was in any of these statuses prior to changing to `FAILED` or `REJECTED`. In some instances, transactions in status `BROADCASTING` will include the txHash as well. 3. The transaction’s source type is `EXCHANGE_ACCOUNT` and the transaction’s destination type is `VAULT`, and the status is either: `CONFIRMING`, `COMPLETED`, or was in any of these status prior to changing to `FAILED`. * In addition, the following conditions must be met: 1. The asset is a crypto asset (not fiat). 2. The transaction operation is not RAW or `TYPED_MESSAGE`. | [optional] +**operation** | [**GetTransactionOperation**](GetTransactionOperation.md) | | [optional] +**note** | **str** | Custom note, not sent to the blockchain, that describes the transaction at your Fireblocks workspace. | [optional] +**asset_id** | **str** | The ID of the asset to transfer, for `TRANSFER`, `MINT`, `BURN`, `ENABLE_ASSET`,`STAKE` ,`UNSTAKE` or `WITHDRAW` operations. [See the list of supported assets and their IDs on Fireblocks.](https://developers.fireblocks.com/reference/get_supported-assets) | [optional] +**source** | [**SourceTransferPeerPathResponse**](SourceTransferPeerPathResponse.md) | | [optional] +**source_address** | **str** | For account based assets only, the source address of the transaction. **Note:** If the status is `CONFIRMING`, `COMPLETED`, or has been `CONFIRMING`; then moved forward to `FAILED` or `REJECTED`, then this parameter will contain the source address. In any other case, this parameter will be empty. | [optional] +**tag** | **str** | Source address tag for XRP, used as memo for EOS/XLM, or Bank Transfer Description for the fiat provider BLINC (by BCB Group). | [optional] +**destination** | [**DestinationTransferPeerPathResponse**](DestinationTransferPeerPathResponse.md) | | [optional] +**destinations** | [**List[TransactionResponseDestination]**](TransactionResponseDestination.md) | The transaction’s destinations. **Note:** In case the transaction is sent to a single destination, the `destination` parameter is used instead of this. | [optional] +**destination_address** | **str** | Address where the asset were transferred. Notes: - For [Multi destination transactions](https://support.fireblocks.io/hc/en-us/articles/360018447980-Multi-destination-transactions), this parameter will be empty. In this case, you should refer to the destinations field. - If the status is `CONFIRMING`, `COMPLETED`, or has been `CONFIRMING`; then moved forward to `FAILED` or `REJECTED`, then this parameter will contain the destination address. In any other case, this parameter will be empty. | [optional] +**destination_address_description** | **str** | Description of the address. | [optional] +**destination_tag** | **str** | Destination address tag for XRP, used as memo for EOS/XLM, or Bank Transfer Description for the fiat provider BLINC (by BCB Group). | [optional] +**contract_call_decoded_data** | [**TransactionResponseContractCallDecodedData**](TransactionResponseContractCallDecodedData.md) | | [optional] +**amount_info** | [**AmountInfo**](AmountInfo.md) | | [optional] +**treat_as_gross_amount** | **bool** | For transactions initiated via this Fireblocks workspace, when set to `true`, the fee is deducted from the requested amount. **Note**: This parameter can only be considered if a transaction's asset is a base asset, such as ETH or MATIC. If the asset can't be used for transaction fees, like USDC, this parameter is ignored and the fee is deducted from the relevant base asset wallet in the source account. | [optional] +**fee_info** | [**FeeInfo**](FeeInfo.md) | | [optional] +**fee_currency** | **str** | The asset which was withdrawn to pay the transaction fee, for example ETH for EVM-based blockchains, BTC for Tether Omni. | [optional] +**network_records** | [**List[NetworkRecord]**](NetworkRecord.md) | In case a single transaction resulted with multiple transfers, for example a result of a contract call, then this parameter specifies each transfer that took place on the blockchain. In case of a single transfer transaction, this parameter is empty. | [optional] +**created_at** | **float** | The transaction’s creation date and time, in unix timestamp. | [optional] +**last_updated** | **float** | The transaction’s last update date and time, in unix timestamp. | [optional] +**created_by** | **str** | User ID of the initiator of the transaction. | [optional] +**signed_by** | **List[str]** | User ID’s of the signers of the transaction. | [optional] +**rejected_by** | **str** | User ID of the user that rejected the transaction (in case it was rejected). | [optional] +**authorization_info** | [**AuthorizationInfo**](AuthorizationInfo.md) | | [optional] +**exchange_tx_id** | **str** | If the transaction originated from an exchange, this is the ID of this transaction at the exchange. | [optional] +**customer_ref_id** | **str** | The ID for AML providers to associate the owner of funds with transactions. | [optional] +**aml_screening_result** | [**AmlScreeningResult**](AmlScreeningResult.md) | | [optional] +**compliance_result** | [**ComplianceResult**](ComplianceResult.md) | | [optional] +**extra_parameters** | **object** | Additional protocol / operation specific key-value parameters: For UTXO-based blockchain input selection, add the key `inputsSelection` with the value set the [input selection structure.](https://developers.fireblocks.com/reference/transaction-objects#inputsselection) The inputs can be retrieved from the [Retrieve Unspent Inputs endpoint.](https://developers.fireblocks.com/reference/get_vault-accounts-vaultaccountid-assetid-unspent-inputs) For `RAW` operations, add the key `rawMessageData` with the value set to the [raw message data structure.](https://developers.fireblocks.com/reference/raw-signing-objects#rawmessagedata) For `CONTRACT_CALL` operations, add the key `contractCallData` with the value set to the Ethereum smart contract Application Binary Interface (ABI) payload. The Fireblocks [development libraries](https://developers.fireblocks.com/docs/ethereum-development#convenience-libraries) are recommended for building contract call transactions. | [optional] +**signed_messages** | [**List[SignedMessage]**](SignedMessage.md) | | [optional] +**num_of_confirmations** | **float** | The number of confirmations of the transaction. The number will increase until the transaction will be considered completed according to the confirmation policy. | [optional] +**block_info** | [**BlockInfo**](BlockInfo.md) | | [optional] +**index** | **float** | For UTXO based assets this is the vOut, for Ethereum based, this is the index of the event of the contract call. **Note:** This field is not returned if a transaction uses the `destinations` object with more than one value. | [optional] +**reward_info** | [**RewardInfo**](RewardInfo.md) | | [optional] +**system_messages** | [**SystemMessageInfo**](SystemMessageInfo.md) | | [optional] +**address_type** | **str** | | [optional] +**requested_amount** | **float** | The amount requested by the user. Deprecated - please use the `amountInfo` field for accuracy. | [optional] +**amount** | **float** | If the transfer is a withdrawal from an exchange, the actual amount that was requested to be transferred. Otherwise, the requested amount. Deprecated - please use the `amountInfo` field for accuracy. | [optional] +**net_amount** | **float** | The net amount of the transaction, after fee deduction. Deprecated - please use the `amountInfo` field for accuracy. | [optional] +**amount_usd** | **float** | The USD value of the requested amount. Deprecated - please use the `amountInfo` field for accuracy. | [optional] +**service_fee** | **float** | The total fee deducted by the exchange from the actual requested amount (`serviceFee` = `amount` - `netAmount`). Deprecated - please use the `feeInfo` field for accuracy. | [optional] +**fee** | **float** | Deprecated - please use the `feeInfo` field for accuracy. | [optional] +**network_fee** | **float** | The fee paid to the network. Deprecated - please use the `feeInfo` field for accuracy. | [optional] +**error_description** | **str** | The transaction's revert reason. This field will be returned when `subStatus` = 'SMART_CONTRACT_EXECUTION_FAILED'. | [optional] + +## Example + +```python +from fireblocks_client.models.transaction_response import TransactionResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of TransactionResponse from a JSON string +transaction_response_instance = TransactionResponse.from_json(json) +# print the JSON string representation of the object +print TransactionResponse.to_json() + +# convert the object into a dict +transaction_response_dict = transaction_response_instance.to_dict() +# create an instance of TransactionResponse from a dict +transaction_response_form_dict = transaction_response.from_dict(transaction_response_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/docs/TransactionResponseContractCallDecodedData.md b/docs/TransactionResponseContractCallDecodedData.md new file mode 100644 index 00000000..e5ce94ff --- /dev/null +++ b/docs/TransactionResponseContractCallDecodedData.md @@ -0,0 +1,31 @@ +# TransactionResponseContractCallDecodedData + +Decoded data for `CONTRACT_CALL` operations. The Fireblocks [development libraries](https://developers.fireblocks.com/docs/ethereum-development#convenience-libraries) are recommended for setting this parameter's value. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**contract_name** | **str** | | [optional] +**function_calls** | **List[object]** | | [optional] + +## Example + +```python +from fireblocks_client.models.transaction_response_contract_call_decoded_data import TransactionResponseContractCallDecodedData + +# TODO update the JSON string below +json = "{}" +# create an instance of TransactionResponseContractCallDecodedData from a JSON string +transaction_response_contract_call_decoded_data_instance = TransactionResponseContractCallDecodedData.from_json(json) +# print the JSON string representation of the object +print TransactionResponseContractCallDecodedData.to_json() + +# convert the object into a dict +transaction_response_contract_call_decoded_data_dict = transaction_response_contract_call_decoded_data_instance.to_dict() +# create an instance of TransactionResponseContractCallDecodedData from a dict +transaction_response_contract_call_decoded_data_form_dict = transaction_response_contract_call_decoded_data.from_dict(transaction_response_contract_call_decoded_data_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/docs/TransactionResponseDestination.md b/docs/TransactionResponseDestination.md new file mode 100644 index 00000000..3be62ce3 --- /dev/null +++ b/docs/TransactionResponseDestination.md @@ -0,0 +1,35 @@ +# TransactionResponseDestination + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**destination_address** | **object** | Address where the asset was transferred. | [optional] +**destination_address_description** | **object** | Description of the address. | [optional] +**amount** | **str** | The amount to be sent to this destination. | [optional] +**amount_usd** | **str** | The USD value of the requested amount. | [optional] +**aml_screening_result** | [**AmlScreeningResult**](AmlScreeningResult.md) | | [optional] +**destination** | [**DestinationTransferPeerPathResponse**](DestinationTransferPeerPathResponse.md) | | [optional] +**authorization_info** | [**AuthorizationInfo**](AuthorizationInfo.md) | | [optional] + +## Example + +```python +from fireblocks_client.models.transaction_response_destination import TransactionResponseDestination + +# TODO update the JSON string below +json = "{}" +# create an instance of TransactionResponseDestination from a JSON string +transaction_response_destination_instance = TransactionResponseDestination.from_json(json) +# print the JSON string representation of the object +print TransactionResponseDestination.to_json() + +# convert the object into a dict +transaction_response_destination_dict = transaction_response_destination_instance.to_dict() +# create an instance of TransactionResponseDestination from a dict +transaction_response_destination_form_dict = transaction_response_destination.from_dict(transaction_response_destination_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/docs/TransactionsApi.md b/docs/TransactionsApi.md new file mode 100644 index 00000000..27cab7fe --- /dev/null +++ b/docs/TransactionsApi.md @@ -0,0 +1,982 @@ +# fireblocks_client.TransactionsApi + +All URIs are relative to *https://api.fireblocks.io/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**cancel_transaction**](TransactionsApi.md#cancel_transaction) | **POST** /transactions/{txId}/cancel | Cancel a transaction +[**create_transaction**](TransactionsApi.md#create_transaction) | **POST** /transactions | Create a new transaction +[**drop_transaction**](TransactionsApi.md#drop_transaction) | **POST** /transactions/{txId}/drop | Drop ETH transaction by ID +[**estimate_network_fee**](TransactionsApi.md#estimate_network_fee) | **GET** /estimate_network_fee | Estimate the required fee for an asset +[**estimate_transaction_fee**](TransactionsApi.md#estimate_transaction_fee) | **POST** /transactions/estimate_fee | Estimate transaction fee +[**freeze_transaction**](TransactionsApi.md#freeze_transaction) | **POST** /transactions/{txId}/freeze | Freeze a transaction +[**get_transaction**](TransactionsApi.md#get_transaction) | **GET** /transactions/{txId} | Find a specific transaction by Fireblocks transaction ID +[**get_transaction_by_external_id**](TransactionsApi.md#get_transaction_by_external_id) | **GET** /transactions/external_tx_id/{externalTxId} | Find a specific transaction by external transaction ID +[**get_transactions**](TransactionsApi.md#get_transactions) | **GET** /transactions | List transaction history +[**set_confirmation_threshold_by_transaction_hash**](TransactionsApi.md#set_confirmation_threshold_by_transaction_hash) | **POST** /txHash/{txHash}/set_confirmation_threshold | Set confirmation threshold by transaction hash +[**set_transaction_confirmation_threshold**](TransactionsApi.md#set_transaction_confirmation_threshold) | **POST** /transactions/{txId}/set_confirmation_threshold | Set confirmation threshold by transaction ID +[**unfreeze_transaction**](TransactionsApi.md#unfreeze_transaction) | **POST** /transactions/{txId}/unfreeze | Unfreeze a transaction +[**validate_address**](TransactionsApi.md#validate_address) | **GET** /transactions/validate_address/{assetId}/{address} | Validate destination address + + +# **cancel_transaction** +> CancelTransactionResponse cancel_transaction(tx_id, x_end_user_wallet_id=x_end_user_wallet_id, idempotency_key=idempotency_key) + +Cancel a transaction + +Cancels a transaction by ID. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.cancel_transaction_response import CancelTransactionResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.TransactionsApi(api_client) + tx_id = 'tx_id_example' # str | The ID of the transaction to cancel + x_end_user_wallet_id = 'x_end_user_wallet_id_example' # str | Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. (optional) + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + + try: + # Cancel a transaction + api_response = api_instance.cancel_transaction(tx_id, x_end_user_wallet_id=x_end_user_wallet_id, idempotency_key=idempotency_key) + print("The response of TransactionsApi->cancel_transaction:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling TransactionsApi->cancel_transaction: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **tx_id** | **str**| The ID of the transaction to cancel | + **x_end_user_wallet_id** | **str**| Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. | [optional] + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + +### Return type + +[**CancelTransactionResponse**](CancelTransactionResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | An Transaction object | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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) + +# **create_transaction** +> CreateTransactionResponse create_transaction(x_end_user_wallet_id=x_end_user_wallet_id, idempotency_key=idempotency_key, transaction_request=transaction_request) + +Create a new transaction + +Creates a new transaction. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.create_transaction_response import CreateTransactionResponse +from fireblocks_client.models.transaction_request import TransactionRequest +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.TransactionsApi(api_client) + x_end_user_wallet_id = 'x_end_user_wallet_id_example' # str | Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. (optional) + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + transaction_request = fireblocks_client.TransactionRequest() # TransactionRequest | (optional) + + try: + # Create a new transaction + api_response = api_instance.create_transaction(x_end_user_wallet_id=x_end_user_wallet_id, idempotency_key=idempotency_key, transaction_request=transaction_request) + print("The response of TransactionsApi->create_transaction:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling TransactionsApi->create_transaction: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **x_end_user_wallet_id** | **str**| Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. | [optional] + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + **transaction_request** | [**TransactionRequest**](TransactionRequest.md)| | [optional] + +### Return type + +[**CreateTransactionResponse**](CreateTransactionResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A transaction object | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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) + +# **drop_transaction** +> DropTransactionResponse drop_transaction(tx_id, x_end_user_wallet_id=x_end_user_wallet_id, idempotency_key=idempotency_key, drop_transaction_request=drop_transaction_request) + +Drop ETH transaction by ID + +Drops a stuck ETH transaction and creates a replacement transaction. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.drop_transaction_request import DropTransactionRequest +from fireblocks_client.models.drop_transaction_response import DropTransactionResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.TransactionsApi(api_client) + tx_id = 'tx_id_example' # str | The ID of the transaction + x_end_user_wallet_id = 'x_end_user_wallet_id_example' # str | Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. (optional) + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + drop_transaction_request = fireblocks_client.DropTransactionRequest() # DropTransactionRequest | (optional) + + try: + # Drop ETH transaction by ID + api_response = api_instance.drop_transaction(tx_id, x_end_user_wallet_id=x_end_user_wallet_id, idempotency_key=idempotency_key, drop_transaction_request=drop_transaction_request) + print("The response of TransactionsApi->drop_transaction:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling TransactionsApi->drop_transaction: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **tx_id** | **str**| The ID of the transaction | + **x_end_user_wallet_id** | **str**| Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. | [optional] + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + **drop_transaction_request** | [**DropTransactionRequest**](DropTransactionRequest.md)| | [optional] + +### Return type + +[**DropTransactionResponse**](DropTransactionResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Operation completed successfully | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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) + +# **estimate_network_fee** +> EstimatedNetworkFeeResponse estimate_network_fee(asset_id) + +Estimate the required fee for an asset + +Gets the estimated required fee for an asset. For UTXO based assets, the response will contain the suggested fee per byte, for ETH/ETC based assets, the suggested gas price, and for XRP/XLM, the transaction fee. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.estimated_network_fee_response import EstimatedNetworkFeeResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.TransactionsApi(api_client) + asset_id = 'asset_id_example' # str | The asset for which to estimate the fee + + try: + # Estimate the required fee for an asset + api_response = api_instance.estimate_network_fee(asset_id) + print("The response of TransactionsApi->estimate_network_fee:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling TransactionsApi->estimate_network_fee: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **asset_id** | **str**| The asset for which to estimate the fee | + +### Return type + +[**EstimatedNetworkFeeResponse**](EstimatedNetworkFeeResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Estimated fees response | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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) + +# **estimate_transaction_fee** +> EstimatedTransactionFeeResponse estimate_transaction_fee(idempotency_key=idempotency_key, transaction_request=transaction_request) + +Estimate transaction fee + +Estimates the transaction fee for a transaction request. * Note: Supports all Fireblocks assets except ZCash (ZEC). + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.estimated_transaction_fee_response import EstimatedTransactionFeeResponse +from fireblocks_client.models.transaction_request import TransactionRequest +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.TransactionsApi(api_client) + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + transaction_request = fireblocks_client.TransactionRequest() # TransactionRequest | (optional) + + try: + # Estimate transaction fee + api_response = api_instance.estimate_transaction_fee(idempotency_key=idempotency_key, transaction_request=transaction_request) + print("The response of TransactionsApi->estimate_transaction_fee:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling TransactionsApi->estimate_transaction_fee: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + **transaction_request** | [**TransactionRequest**](TransactionRequest.md)| | [optional] + +### Return type + +[**EstimatedTransactionFeeResponse**](EstimatedTransactionFeeResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Estimated fees response | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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) + +# **freeze_transaction** +> FreezeTransactionResponse freeze_transaction(tx_id, x_end_user_wallet_id=x_end_user_wallet_id, idempotency_key=idempotency_key) + +Freeze a transaction + +Freezes a transaction by ID. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.freeze_transaction_response import FreezeTransactionResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.TransactionsApi(api_client) + tx_id = 'tx_id_example' # str | The ID of the transaction to freeze + x_end_user_wallet_id = 'x_end_user_wallet_id_example' # str | Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. (optional) + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + + try: + # Freeze a transaction + api_response = api_instance.freeze_transaction(tx_id, x_end_user_wallet_id=x_end_user_wallet_id, idempotency_key=idempotency_key) + print("The response of TransactionsApi->freeze_transaction:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling TransactionsApi->freeze_transaction: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **tx_id** | **str**| The ID of the transaction to freeze | + **x_end_user_wallet_id** | **str**| Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. | [optional] + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + +### Return type + +[**FreezeTransactionResponse**](FreezeTransactionResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | freeze response | * X-Request-ID -
| + +[[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_transaction** +> TransactionResponse get_transaction(tx_id) + +Find a specific transaction by Fireblocks transaction ID + +Returns a transaction by ID. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.transaction_response import TransactionResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.TransactionsApi(api_client) + tx_id = '00000000-0000-0000-0000-000000000000' # str | The ID of the transaction to return + + try: + # Find a specific transaction by Fireblocks transaction ID + api_response = api_instance.get_transaction(tx_id) + print("The response of TransactionsApi->get_transaction:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling TransactionsApi->get_transaction: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **tx_id** | **str**| The ID of the transaction to return | + +### Return type + +[**TransactionResponse**](TransactionResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | An Transaction object | * X-Request-ID -
| +**400** | Error Response | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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_transaction_by_external_id** +> TransactionResponse get_transaction_by_external_id(external_tx_id) + +Find a specific transaction by external transaction ID + +Returns transaction by external transaction ID. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.transaction_response import TransactionResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.TransactionsApi(api_client) + external_tx_id = '00000000-0000-0000-0000-000000000000' # str | The external ID of the transaction to return + + try: + # Find a specific transaction by external transaction ID + api_response = api_instance.get_transaction_by_external_id(external_tx_id) + print("The response of TransactionsApi->get_transaction_by_external_id:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling TransactionsApi->get_transaction_by_external_id: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **external_tx_id** | **str**| The external ID of the transaction to return | + +### Return type + +[**TransactionResponse**](TransactionResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | An Transaction object | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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_transactions** +> List[TransactionResponse] get_transactions(before=before, after=after, status=status, order_by=order_by, sort=sort, limit=limit, source_type=source_type, source_id=source_id, dest_type=dest_type, dest_id=dest_id, assets=assets, tx_hash=tx_hash, source_wallet_id=source_wallet_id, dest_wallet_id=dest_wallet_id) + +List transaction history + +Lists the transaction history for your workspace. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.transaction_response import TransactionResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.TransactionsApi(api_client) + before = 'before_example' # str | Unix timestamp in milliseconds. Returns only transactions created before the specified date (optional) + after = 'after_example' # str | Unix timestamp in milliseconds. Returns only transactions created after the specified date (optional) + status = 'status_example' # str | You can filter by one of the statuses. (optional) + order_by = 'order_by_example' # str | The field to order the results by **Note**: Ordering by a field that is not createdAt may result with transactions that receive updates as you request the next or previous pages of results, resulting with missing those transactions. (optional) + sort = 'sort_example' # str | The direction to order the results by (optional) + limit = 200 # int | Limits the number of results. If not provided, a limit of 200 will be used. The maximum allowed limit is 500 (optional) (default to 200) + source_type = 'source_type_example' # str | The source type of the transaction (optional) + source_id = 'source_id_example' # str | The source ID of the transaction (optional) + dest_type = 'dest_type_example' # str | The destination type of the transaction (optional) + dest_id = 'dest_id_example' # str | The destination ID of the transaction (optional) + assets = 'assets_example' # str | A list of assets to filter by, seperated by commas (optional) + tx_hash = 'tx_hash_example' # str | Returns only results with a specified txHash (optional) + source_wallet_id = 'source_wallet_id_example' # str | Returns only results where the source is a specific end user wallet (optional) + dest_wallet_id = 'dest_wallet_id_example' # str | Returns only results where the destination is a specific end user wallet (optional) + + try: + # List transaction history + api_response = api_instance.get_transactions(before=before, after=after, status=status, order_by=order_by, sort=sort, limit=limit, source_type=source_type, source_id=source_id, dest_type=dest_type, dest_id=dest_id, assets=assets, tx_hash=tx_hash, source_wallet_id=source_wallet_id, dest_wallet_id=dest_wallet_id) + print("The response of TransactionsApi->get_transactions:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling TransactionsApi->get_transactions: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **before** | **str**| Unix timestamp in milliseconds. Returns only transactions created before the specified date | [optional] + **after** | **str**| Unix timestamp in milliseconds. Returns only transactions created after the specified date | [optional] + **status** | **str**| You can filter by one of the statuses. | [optional] + **order_by** | **str**| The field to order the results by **Note**: Ordering by a field that is not createdAt may result with transactions that receive updates as you request the next or previous pages of results, resulting with missing those transactions. | [optional] + **sort** | **str**| The direction to order the results by | [optional] + **limit** | **int**| Limits the number of results. If not provided, a limit of 200 will be used. The maximum allowed limit is 500 | [optional] [default to 200] + **source_type** | **str**| The source type of the transaction | [optional] + **source_id** | **str**| The source ID of the transaction | [optional] + **dest_type** | **str**| The destination type of the transaction | [optional] + **dest_id** | **str**| The destination ID of the transaction | [optional] + **assets** | **str**| A list of assets to filter by, seperated by commas | [optional] + **tx_hash** | **str**| Returns only results with a specified txHash | [optional] + **source_wallet_id** | **str**| Returns only results where the source is a specific end user wallet | [optional] + **dest_wallet_id** | **str**| Returns only results where the destination is a specific end user wallet | [optional] + +### Return type + +[**List[TransactionResponse]**](TransactionResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A list of transactions | * X-Request-ID -
* next-page -
* prev-page -
| +**0** | Error Response | * X-Request-ID -
| + +[[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) + +# **set_confirmation_threshold_by_transaction_hash** +> SetConfirmationsThresholdResponse set_confirmation_threshold_by_transaction_hash(tx_hash, idempotency_key=idempotency_key, set_confirmations_threshold_request=set_confirmations_threshold_request) + +Set confirmation threshold by transaction hash + +Overrides the required number of confirmations for transaction completion by transaction hash. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.set_confirmations_threshold_request import SetConfirmationsThresholdRequest +from fireblocks_client.models.set_confirmations_threshold_response import SetConfirmationsThresholdResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.TransactionsApi(api_client) + tx_hash = 'tx_hash_example' # str | The TxHash + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + set_confirmations_threshold_request = fireblocks_client.SetConfirmationsThresholdRequest() # SetConfirmationsThresholdRequest | (optional) + + try: + # Set confirmation threshold by transaction hash + api_response = api_instance.set_confirmation_threshold_by_transaction_hash(tx_hash, idempotency_key=idempotency_key, set_confirmations_threshold_request=set_confirmations_threshold_request) + print("The response of TransactionsApi->set_confirmation_threshold_by_transaction_hash:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling TransactionsApi->set_confirmation_threshold_by_transaction_hash: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **tx_hash** | **str**| The TxHash | + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + **set_confirmations_threshold_request** | [**SetConfirmationsThresholdRequest**](SetConfirmationsThresholdRequest.md)| | [optional] + +### Return type + +[**SetConfirmationsThresholdResponse**](SetConfirmationsThresholdResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A list of transactions affected by the change | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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) + +# **set_transaction_confirmation_threshold** +> SetConfirmationsThresholdResponse set_transaction_confirmation_threshold(tx_id, idempotency_key=idempotency_key, set_confirmations_threshold_request=set_confirmations_threshold_request) + +Set confirmation threshold by transaction ID + +Overrides the required number of confirmations for transaction completion by transaction ID. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.set_confirmations_threshold_request import SetConfirmationsThresholdRequest +from fireblocks_client.models.set_confirmations_threshold_response import SetConfirmationsThresholdResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.TransactionsApi(api_client) + tx_id = 'tx_id_example' # str | The ID of the transaction + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + set_confirmations_threshold_request = fireblocks_client.SetConfirmationsThresholdRequest() # SetConfirmationsThresholdRequest | (optional) + + try: + # Set confirmation threshold by transaction ID + api_response = api_instance.set_transaction_confirmation_threshold(tx_id, idempotency_key=idempotency_key, set_confirmations_threshold_request=set_confirmations_threshold_request) + print("The response of TransactionsApi->set_transaction_confirmation_threshold:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling TransactionsApi->set_transaction_confirmation_threshold: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **tx_id** | **str**| The ID of the transaction | + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + **set_confirmations_threshold_request** | [**SetConfirmationsThresholdRequest**](SetConfirmationsThresholdRequest.md)| | [optional] + +### Return type + +[**SetConfirmationsThresholdResponse**](SetConfirmationsThresholdResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Set successfully | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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) + +# **unfreeze_transaction** +> UnfreezeTransactionResponse unfreeze_transaction(tx_id, x_end_user_wallet_id=x_end_user_wallet_id, idempotency_key=idempotency_key) + +Unfreeze a transaction + +Unfreezes a transaction by ID and makes the transaction available again. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.unfreeze_transaction_response import UnfreezeTransactionResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.TransactionsApi(api_client) + tx_id = 'tx_id_example' # str | The ID of the transaction to unfreeze + x_end_user_wallet_id = 'x_end_user_wallet_id_example' # str | Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. (optional) + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + + try: + # Unfreeze a transaction + api_response = api_instance.unfreeze_transaction(tx_id, x_end_user_wallet_id=x_end_user_wallet_id, idempotency_key=idempotency_key) + print("The response of TransactionsApi->unfreeze_transaction:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling TransactionsApi->unfreeze_transaction: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **tx_id** | **str**| The ID of the transaction to unfreeze | + **x_end_user_wallet_id** | **str**| Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. | [optional] + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + +### Return type + +[**UnfreezeTransactionResponse**](UnfreezeTransactionResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Unfreeze response | * X-Request-ID -
| + +[[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) + +# **validate_address** +> ValidateAddressResponse validate_address(asset_id, address) + +Validate destination address + +Checks if an address is valid (for XRP, DOT, XLM, and EOS). + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.validate_address_response import ValidateAddressResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.TransactionsApi(api_client) + asset_id = 'asset_id_example' # str | The asset of the address + address = 'address_example' # str | The address to validate + + try: + # Validate destination address + api_response = api_instance.validate_address(asset_id, address) + print("The response of TransactionsApi->validate_address:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling TransactionsApi->validate_address: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **asset_id** | **str**| The asset of the address | + **address** | **str**| The address to validate | + +### Return type + +[**ValidateAddressResponse**](ValidateAddressResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | An Transaction object | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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) + diff --git a/docs/TransferConfigOperation.md b/docs/TransferConfigOperation.md new file mode 100644 index 00000000..d6614168 --- /dev/null +++ b/docs/TransferConfigOperation.md @@ -0,0 +1,33 @@ +# TransferConfigOperation + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**operation_id** | **str** | | +**type** | [**TransferOperationType**](TransferOperationType.md) | | +**params** | [**TransferOperationConfigParams**](TransferOperationConfigParams.md) | | +**status** | [**ConfigOperationStatus**](ConfigOperationStatus.md) | | +**validation_failure** | [**TransferValidationFailure**](TransferValidationFailure.md) | | [optional] + +## Example + +```python +from fireblocks_client.models.transfer_config_operation import TransferConfigOperation + +# TODO update the JSON string below +json = "{}" +# create an instance of TransferConfigOperation from a JSON string +transfer_config_operation_instance = TransferConfigOperation.from_json(json) +# print the JSON string representation of the object +print TransferConfigOperation.to_json() + +# convert the object into a dict +transfer_config_operation_dict = transfer_config_operation_instance.to_dict() +# create an instance of TransferConfigOperation from a dict +transfer_config_operation_form_dict = transfer_config_operation.from_dict(transfer_config_operation_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/docs/TransferOperationConfigParams.md b/docs/TransferOperationConfigParams.md new file mode 100644 index 00000000..4087982e --- /dev/null +++ b/docs/TransferOperationConfigParams.md @@ -0,0 +1,32 @@ +# TransferOperationConfigParams + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**amount** | **str** | | [optional] +**asset_id** | **str** | | [optional] +**source** | [**Account**](Account.md) | | [optional] +**destination** | [**Destination**](Destination.md) | | + +## Example + +```python +from fireblocks_client.models.transfer_operation_config_params import TransferOperationConfigParams + +# TODO update the JSON string below +json = "{}" +# create an instance of TransferOperationConfigParams from a JSON string +transfer_operation_config_params_instance = TransferOperationConfigParams.from_json(json) +# print the JSON string representation of the object +print TransferOperationConfigParams.to_json() + +# convert the object into a dict +transfer_operation_config_params_dict = transfer_operation_config_params_instance.to_dict() +# create an instance of TransferOperationConfigParams from a dict +transfer_operation_config_params_form_dict = transfer_operation_config_params.from_dict(transfer_operation_config_params_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/docs/TransferOperationExecution.md b/docs/TransferOperationExecution.md new file mode 100644 index 00000000..d55d474e --- /dev/null +++ b/docs/TransferOperationExecution.md @@ -0,0 +1,34 @@ +# TransferOperationExecution + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**input** | [**TransferOperationConfigParams**](TransferOperationConfigParams.md) | | +**output** | [**TransferOperationExecutionOutput**](TransferOperationExecutionOutput.md) | | [optional] +**tx_id** | **str** | | [optional] +**started_at** | **float** | | +**finished_at** | **float** | | [optional] +**failure** | [**TransferOperationFailure**](TransferOperationFailure.md) | | [optional] + +## Example + +```python +from fireblocks_client.models.transfer_operation_execution import TransferOperationExecution + +# TODO update the JSON string below +json = "{}" +# create an instance of TransferOperationExecution from a JSON string +transfer_operation_execution_instance = TransferOperationExecution.from_json(json) +# print the JSON string representation of the object +print TransferOperationExecution.to_json() + +# convert the object into a dict +transfer_operation_execution_dict = transfer_operation_execution_instance.to_dict() +# create an instance of TransferOperationExecution from a dict +transfer_operation_execution_form_dict = transfer_operation_execution.from_dict(transfer_operation_execution_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/docs/TransferOperationExecutionOutput.md b/docs/TransferOperationExecutionOutput.md new file mode 100644 index 00000000..fff6a033 --- /dev/null +++ b/docs/TransferOperationExecutionOutput.md @@ -0,0 +1,30 @@ +# TransferOperationExecutionOutput + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**amount** | [**AssetAmount**](AssetAmount.md) | | +**fee** | [**AssetAmount**](AssetAmount.md) | | + +## Example + +```python +from fireblocks_client.models.transfer_operation_execution_output import TransferOperationExecutionOutput + +# TODO update the JSON string below +json = "{}" +# create an instance of TransferOperationExecutionOutput from a JSON string +transfer_operation_execution_output_instance = TransferOperationExecutionOutput.from_json(json) +# print the JSON string representation of the object +print TransferOperationExecutionOutput.to_json() + +# convert the object into a dict +transfer_operation_execution_output_dict = transfer_operation_execution_output_instance.to_dict() +# create an instance of TransferOperationExecutionOutput from a dict +transfer_operation_execution_output_form_dict = transfer_operation_execution_output.from_dict(transfer_operation_execution_output_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/docs/TransferOperationExecutionParams.md b/docs/TransferOperationExecutionParams.md new file mode 100644 index 00000000..694a7fb2 --- /dev/null +++ b/docs/TransferOperationExecutionParams.md @@ -0,0 +1,30 @@ +# TransferOperationExecutionParams + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**config_operation_id** | **str** | | +**execution_params** | [**TransferOperationExecutionParamsExecutionParams**](TransferOperationExecutionParamsExecutionParams.md) | | [optional] + +## Example + +```python +from fireblocks_client.models.transfer_operation_execution_params import TransferOperationExecutionParams + +# TODO update the JSON string below +json = "{}" +# create an instance of TransferOperationExecutionParams from a JSON string +transfer_operation_execution_params_instance = TransferOperationExecutionParams.from_json(json) +# print the JSON string representation of the object +print TransferOperationExecutionParams.to_json() + +# convert the object into a dict +transfer_operation_execution_params_dict = transfer_operation_execution_params_instance.to_dict() +# create an instance of TransferOperationExecutionParams from a dict +transfer_operation_execution_params_form_dict = transfer_operation_execution_params.from_dict(transfer_operation_execution_params_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/docs/TransferOperationExecutionParamsExecutionParams.md b/docs/TransferOperationExecutionParamsExecutionParams.md new file mode 100644 index 00000000..c18e3672 --- /dev/null +++ b/docs/TransferOperationExecutionParamsExecutionParams.md @@ -0,0 +1,32 @@ +# TransferOperationExecutionParamsExecutionParams + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**amount** | **str** | | [optional] +**asset_id** | **str** | | [optional] +**source** | [**Account**](Account.md) | | [optional] +**destination** | [**Destination**](Destination.md) | | [optional] + +## Example + +```python +from fireblocks_client.models.transfer_operation_execution_params_execution_params import TransferOperationExecutionParamsExecutionParams + +# TODO update the JSON string below +json = "{}" +# create an instance of TransferOperationExecutionParamsExecutionParams from a JSON string +transfer_operation_execution_params_execution_params_instance = TransferOperationExecutionParamsExecutionParams.from_json(json) +# print the JSON string representation of the object +print TransferOperationExecutionParamsExecutionParams.to_json() + +# convert the object into a dict +transfer_operation_execution_params_execution_params_dict = transfer_operation_execution_params_execution_params_instance.to_dict() +# create an instance of TransferOperationExecutionParamsExecutionParams from a dict +transfer_operation_execution_params_execution_params_form_dict = transfer_operation_execution_params_execution_params.from_dict(transfer_operation_execution_params_execution_params_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/docs/TransferOperationFailure.md b/docs/TransferOperationFailure.md new file mode 100644 index 00000000..78f9ea4b --- /dev/null +++ b/docs/TransferOperationFailure.md @@ -0,0 +1,30 @@ +# TransferOperationFailure + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**reason** | **str** | | +**data** | [**TransferOperationFailureData**](TransferOperationFailureData.md) | | [optional] + +## Example + +```python +from fireblocks_client.models.transfer_operation_failure import TransferOperationFailure + +# TODO update the JSON string below +json = "{}" +# create an instance of TransferOperationFailure from a JSON string +transfer_operation_failure_instance = TransferOperationFailure.from_json(json) +# print the JSON string representation of the object +print TransferOperationFailure.to_json() + +# convert the object into a dict +transfer_operation_failure_dict = transfer_operation_failure_instance.to_dict() +# create an instance of TransferOperationFailure from a dict +transfer_operation_failure_form_dict = transfer_operation_failure.from_dict(transfer_operation_failure_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/docs/TransferOperationFailureData.md b/docs/TransferOperationFailureData.md new file mode 100644 index 00000000..9b387acf --- /dev/null +++ b/docs/TransferOperationFailureData.md @@ -0,0 +1,31 @@ +# TransferOperationFailureData + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**tx_id** | **str** | | +**tx_status** | **str** | | +**tx_sub_status** | **str** | | [optional] + +## Example + +```python +from fireblocks_client.models.transfer_operation_failure_data import TransferOperationFailureData + +# TODO update the JSON string below +json = "{}" +# create an instance of TransferOperationFailureData from a JSON string +transfer_operation_failure_data_instance = TransferOperationFailureData.from_json(json) +# print the JSON string representation of the object +print TransferOperationFailureData.to_json() + +# convert the object into a dict +transfer_operation_failure_data_dict = transfer_operation_failure_data_instance.to_dict() +# create an instance of TransferOperationFailureData from a dict +transfer_operation_failure_data_form_dict = transfer_operation_failure_data.from_dict(transfer_operation_failure_data_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/docs/TransferOperationPreview.md b/docs/TransferOperationPreview.md new file mode 100644 index 00000000..c4275636 --- /dev/null +++ b/docs/TransferOperationPreview.md @@ -0,0 +1,31 @@ +# TransferOperationPreview + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**input** | [**TransferOperationConfigParams**](TransferOperationConfigParams.md) | | +**output** | [**TransferOperationPreviewOutput**](TransferOperationPreviewOutput.md) | | [optional] +**failure** | [**TransferOperationFailure**](TransferOperationFailure.md) | | [optional] + +## Example + +```python +from fireblocks_client.models.transfer_operation_preview import TransferOperationPreview + +# TODO update the JSON string below +json = "{}" +# create an instance of TransferOperationPreview from a JSON string +transfer_operation_preview_instance = TransferOperationPreview.from_json(json) +# print the JSON string representation of the object +print TransferOperationPreview.to_json() + +# convert the object into a dict +transfer_operation_preview_dict = transfer_operation_preview_instance.to_dict() +# create an instance of TransferOperationPreview from a dict +transfer_operation_preview_form_dict = transfer_operation_preview.from_dict(transfer_operation_preview_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/docs/TransferOperationPreviewOutput.md b/docs/TransferOperationPreviewOutput.md new file mode 100644 index 00000000..731f79ce --- /dev/null +++ b/docs/TransferOperationPreviewOutput.md @@ -0,0 +1,32 @@ +# TransferOperationPreviewOutput + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**amount** | [**AssetAmount**](AssetAmount.md) | | +**fee** | [**AssetAmount**](AssetAmount.md) | | +**is_sign_required** | **bool** | | +**time_seconds** | **float** | | + +## Example + +```python +from fireblocks_client.models.transfer_operation_preview_output import TransferOperationPreviewOutput + +# TODO update the JSON string below +json = "{}" +# create an instance of TransferOperationPreviewOutput from a JSON string +transfer_operation_preview_output_instance = TransferOperationPreviewOutput.from_json(json) +# print the JSON string representation of the object +print TransferOperationPreviewOutput.to_json() + +# convert the object into a dict +transfer_operation_preview_output_dict = transfer_operation_preview_output_instance.to_dict() +# create an instance of TransferOperationPreviewOutput from a dict +transfer_operation_preview_output_form_dict = transfer_operation_preview_output.from_dict(transfer_operation_preview_output_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/docs/TransferOperationType.md b/docs/TransferOperationType.md new file mode 100644 index 00000000..5b39e9b3 --- /dev/null +++ b/docs/TransferOperationType.md @@ -0,0 +1,11 @@ +# TransferOperationType + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[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/TransferPeerPathSubType.md b/docs/TransferPeerPathSubType.md new file mode 100644 index 00000000..18284c61 --- /dev/null +++ b/docs/TransferPeerPathSubType.md @@ -0,0 +1,11 @@ +# TransferPeerPathSubType + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[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/TransferPeerPathType.md b/docs/TransferPeerPathType.md new file mode 100644 index 00000000..8d0a67c1 --- /dev/null +++ b/docs/TransferPeerPathType.md @@ -0,0 +1,11 @@ +# TransferPeerPathType + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[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/TransferValidationFailure.md b/docs/TransferValidationFailure.md new file mode 100644 index 00000000..6050c63c --- /dev/null +++ b/docs/TransferValidationFailure.md @@ -0,0 +1,30 @@ +# TransferValidationFailure + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**reason** | **str** | | +**data** | **Dict[str, object]** | | [optional] + +## Example + +```python +from fireblocks_client.models.transfer_validation_failure import TransferValidationFailure + +# TODO update the JSON string below +json = "{}" +# create an instance of TransferValidationFailure from a JSON string +transfer_validation_failure_instance = TransferValidationFailure.from_json(json) +# print the JSON string representation of the object +print TransferValidationFailure.to_json() + +# convert the object into a dict +transfer_validation_failure_dict = transfer_validation_failure_instance.to_dict() +# create an instance of TransferValidationFailure from a dict +transfer_validation_failure_form_dict = transfer_validation_failure.from_dict(transfer_validation_failure_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/docs/TravelRuleAddress.md b/docs/TravelRuleAddress.md new file mode 100644 index 00000000..8272ad9f --- /dev/null +++ b/docs/TravelRuleAddress.md @@ -0,0 +1,32 @@ +# TravelRuleAddress + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**street** | **str** | Street address | +**city** | **str** | City | +**state** | **str** | State or province | +**postal_code** | **str** | Postal or ZIP code | + +## Example + +```python +from fireblocks_client.models.travel_rule_address import TravelRuleAddress + +# TODO update the JSON string below +json = "{}" +# create an instance of TravelRuleAddress from a JSON string +travel_rule_address_instance = TravelRuleAddress.from_json(json) +# print the JSON string representation of the object +print TravelRuleAddress.to_json() + +# convert the object into a dict +travel_rule_address_dict = travel_rule_address_instance.to_dict() +# create an instance of TravelRuleAddress from a dict +travel_rule_address_form_dict = travel_rule_address.from_dict(travel_rule_address_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/docs/TravelRuleBetaApi.md b/docs/TravelRuleBetaApi.md new file mode 100644 index 00000000..d7d51555 --- /dev/null +++ b/docs/TravelRuleBetaApi.md @@ -0,0 +1,377 @@ +# fireblocks_client.TravelRuleBetaApi + +All URIs are relative to *https://api.fireblocks.io/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_vaspby_did**](TravelRuleBetaApi.md#get_vaspby_did) | **GET** /screening/travel_rule/vasp/{did} | Get VASP details +[**get_vasps**](TravelRuleBetaApi.md#get_vasps) | **GET** /screening/travel_rule/vasp | Get All VASPs +[**update_vasp**](TravelRuleBetaApi.md#update_vasp) | **PUT** /screening/travel_rule/vasp/update | Add jsonDidKey to VASP details +[**validate_full_travel_rule_transaction**](TravelRuleBetaApi.md#validate_full_travel_rule_transaction) | **POST** /screening/travel_rule/transaction/validate/full | Validate Full Travel Rule Transaction +[**validate_travel_rule_transaction**](TravelRuleBetaApi.md#validate_travel_rule_transaction) | **POST** /screening/travel_rule/transaction/validate | Validate Travel Rule Transaction + + +# **get_vaspby_did** +> TravelRuleVASP get_vaspby_did(did, fields=fields) + +Get VASP details + +Get VASP Details. Returns information about a VASP that has the specified DID. **Note:** The reference content in this section documents the Travel Rule beta endpoint. The beta endpoint includes APIs that are currently in preview and aren't yet generally available. To enroll in the beta and enable this endpoint, contact your Fireblocks Customer Success Manager or send an email to [CSM@fireblocks.com](mailto:CSM@fireblocks.com). + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.travel_rule_vasp import TravelRuleVASP +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.TravelRuleBetaApi(api_client) + did = 'did_example' # str | + fields = 'fields_example' # str | CSV of fields to return (all, \"blank\" or see list of all field names below) (optional) + + try: + # Get VASP details + api_response = api_instance.get_vaspby_did(did, fields=fields) + print("The response of TravelRuleBetaApi->get_vaspby_did:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling TravelRuleBetaApi->get_vaspby_did: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **did** | **str**| | + **fields** | **str**| CSV of fields to return (all, \"blank\" or see list of all field names below) | [optional] + +### Return type + +[**TravelRuleVASP**](TravelRuleVASP.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Transaction validated successfully | - | +**400** | Invalid request body | - | +**500** | Internal server error | - | + +[[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_vasps** +> TravelRuleGetAllVASPsResponse get_vasps(order=order, per_page=per_page, page=page, fields=fields) + +Get All VASPs + +Get All VASPs. Returns a list of VASPs. VASPs can be searched and sorted and results are paginated. **Note:** The reference content in this section documents the Travel Rule beta endpoint. The beta endpoint includes APIs that are currently in preview and aren't yet generally available. To enroll in the beta and enable this endpoint, contact your Fireblocks Customer Success Manager or send an email to [CSM@fireblocks.com](mailto:CSM@fireblocks.com). + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.travel_rule_get_all_vasps_response import TravelRuleGetAllVASPsResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.TravelRuleBetaApi(api_client) + order = 'order_example' # str | Field to order by (optional) + per_page = 3.4 # float | Records per page (optional) + page = 3.4 # float | Page number (optional) + fields = 'fields_example' # str | CSV of fields to return (all, \"blank\" or see list of all field names below) (optional) + + try: + # Get All VASPs + api_response = api_instance.get_vasps(order=order, per_page=per_page, page=page, fields=fields) + print("The response of TravelRuleBetaApi->get_vasps:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling TravelRuleBetaApi->get_vasps: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **order** | **str**| Field to order by | [optional] + **per_page** | **float**| Records per page | [optional] + **page** | **float**| Page number | [optional] + **fields** | **str**| CSV of fields to return (all, \"blank\" or see list of all field names below) | [optional] + +### Return type + +[**TravelRuleGetAllVASPsResponse**](TravelRuleGetAllVASPsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Get all VASPs | - | + +[[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) + +# **update_vasp** +> TravelRuleUpdateVASPDetails update_vasp(travel_rule_update_vasp_details, idempotency_key=idempotency_key) + +Add jsonDidKey to VASP details + +Update VASP Details. Updates a VASP with the provided parameters. Use this endpoint to add your public jsonDIDkey generated by Notabene. **Note:** The reference content in this section documents the Travel Rule beta endpoint. The beta endpoint includes APIs that are currently in preview and aren't yet generally available. To enroll in the beta and enable this endpoint, contact your Fireblocks Customer Success Manager or send an email to [CSM@fireblocks.com](mailto:CSM@fireblocks.com). + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.travel_rule_update_vasp_details import TravelRuleUpdateVASPDetails +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.TravelRuleBetaApi(api_client) + travel_rule_update_vasp_details = fireblocks_client.TravelRuleUpdateVASPDetails() # TravelRuleUpdateVASPDetails | + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + + try: + # Add jsonDidKey to VASP details + api_response = api_instance.update_vasp(travel_rule_update_vasp_details, idempotency_key=idempotency_key) + print("The response of TravelRuleBetaApi->update_vasp:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling TravelRuleBetaApi->update_vasp: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **travel_rule_update_vasp_details** | [**TravelRuleUpdateVASPDetails**](TravelRuleUpdateVASPDetails.md)| | + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + +### Return type + +[**TravelRuleUpdateVASPDetails**](TravelRuleUpdateVASPDetails.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | VASP updated successfully | - | +**400** | Invalid request body | - | +**500** | Internal server error | - | + +[[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) + +# **validate_full_travel_rule_transaction** +> TravelRuleValidateTransactionResponse validate_full_travel_rule_transaction(travel_rule_validate_full_transaction_request, idempotency_key=idempotency_key) + +Validate Full Travel Rule Transaction + +Validate Full Travel Rule transactions. Checks for all required information on the originator and beneficiary VASPs. **Note:** The reference content in this section documents the Travel Rule beta endpoint. The beta endpoint includes APIs that are currently in preview and aren't yet generally available. To enroll in the beta and enable this endpoint, contact your Fireblocks Customer Success Manager or send an email to [CSM@fireblocks.com](mailto:CSM@fireblocks.com). + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.travel_rule_validate_full_transaction_request import TravelRuleValidateFullTransactionRequest +from fireblocks_client.models.travel_rule_validate_transaction_response import TravelRuleValidateTransactionResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.TravelRuleBetaApi(api_client) + travel_rule_validate_full_transaction_request = fireblocks_client.TravelRuleValidateFullTransactionRequest() # TravelRuleValidateFullTransactionRequest | + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + + try: + # Validate Full Travel Rule Transaction + api_response = api_instance.validate_full_travel_rule_transaction(travel_rule_validate_full_transaction_request, idempotency_key=idempotency_key) + print("The response of TravelRuleBetaApi->validate_full_travel_rule_transaction:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling TravelRuleBetaApi->validate_full_travel_rule_transaction: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **travel_rule_validate_full_transaction_request** | [**TravelRuleValidateFullTransactionRequest**](TravelRuleValidateFullTransactionRequest.md)| | + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + +### Return type + +[**TravelRuleValidateTransactionResponse**](TravelRuleValidateTransactionResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Transaction validated successfully | - | +**400** | Invalid request body | - | +**500** | Internal server error | - | + +[[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) + +# **validate_travel_rule_transaction** +> TravelRuleValidateTransactionResponse validate_travel_rule_transaction(travel_rule_validate_transaction_request, idempotency_key=idempotency_key) + +Validate Travel Rule Transaction + +Validate Travel Rule transactions. Checks what beneficiary VASP details are required by your jurisdiction and the beneficiary's jurisdiction. **Note:** The reference content in this section documents the Travel Rule beta endpoint. The beta endpoint includes APIs that are currently in preview and aren't yet generally available. To enroll in the beta and enable this endpoint, contact your Fireblocks Customer Success Manager or send an email to [CSM@fireblocks.com](mailto:CSM@fireblocks.com). + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.travel_rule_validate_transaction_request import TravelRuleValidateTransactionRequest +from fireblocks_client.models.travel_rule_validate_transaction_response import TravelRuleValidateTransactionResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.TravelRuleBetaApi(api_client) + travel_rule_validate_transaction_request = fireblocks_client.TravelRuleValidateTransactionRequest() # TravelRuleValidateTransactionRequest | + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + + try: + # Validate Travel Rule Transaction + api_response = api_instance.validate_travel_rule_transaction(travel_rule_validate_transaction_request, idempotency_key=idempotency_key) + print("The response of TravelRuleBetaApi->validate_travel_rule_transaction:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling TravelRuleBetaApi->validate_travel_rule_transaction: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **travel_rule_validate_transaction_request** | [**TravelRuleValidateTransactionRequest**](TravelRuleValidateTransactionRequest.md)| | + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + +### Return type + +[**TravelRuleValidateTransactionResponse**](TravelRuleValidateTransactionResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Transaction validated successfully | - | +**400** | Invalid request body | - | +**500** | Internal server error | - | + +[[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) + diff --git a/docs/TravelRuleCreateTransactionRequest.md b/docs/TravelRuleCreateTransactionRequest.md new file mode 100644 index 00000000..20e312ac --- /dev/null +++ b/docs/TravelRuleCreateTransactionRequest.md @@ -0,0 +1,41 @@ +# TravelRuleCreateTransactionRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**originator_vas_pdid** | **str** | The VASP ID of the transaction originator | [optional] +**beneficiary_vas_pdid** | **str** | The VASP ID of the transaction beneficiary | [optional] +**beneficiary_vas_pname** | **str** | The name of the VASP acting as the beneficiary | [optional] +**transaction_blockchain_info** | [**TravelRuleTransactionBlockchainInfo**](TravelRuleTransactionBlockchainInfo.md) | Information about the blockchain transaction | [optional] +**originator** | [**TravelRulePiiIVMS**](TravelRulePiiIVMS.md) | Information about the originator of the transaction | +**beneficiary** | [**TravelRulePiiIVMS**](TravelRulePiiIVMS.md) | Information about the beneficiary of the transaction | +**encrypted** | **str** | Encrypted data related to the transaction | [optional] +**protocol** | **str** | The protocol used to perform the travel rule | [optional] +**skip_beneficiary_data_validation** | **bool** | Whether to skip validation of beneficiary data | [optional] +**travel_rule_behavior** | **bool** | Whether to check if the transaction is a TRAVEL_RULE in the beneficiary VASP's jurisdiction | [optional] +**originator_proof** | [**TravelRuleOwnershipProof**](TravelRuleOwnershipProof.md) | Ownership proof related to the originator of the transaction | [optional] +**beneficiary_proof** | [**TravelRuleOwnershipProof**](TravelRuleOwnershipProof.md) | Ownership proof related to the beneficiary of the transaction | [optional] +**pii** | [**TravelRulePiiIVMS**](TravelRulePiiIVMS.md) | Personal identifiable information related to the transaction | [optional] + +## Example + +```python +from fireblocks_client.models.travel_rule_create_transaction_request import TravelRuleCreateTransactionRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of TravelRuleCreateTransactionRequest from a JSON string +travel_rule_create_transaction_request_instance = TravelRuleCreateTransactionRequest.from_json(json) +# print the JSON string representation of the object +print TravelRuleCreateTransactionRequest.to_json() + +# convert the object into a dict +travel_rule_create_transaction_request_dict = travel_rule_create_transaction_request_instance.to_dict() +# create an instance of TravelRuleCreateTransactionRequest from a dict +travel_rule_create_transaction_request_form_dict = travel_rule_create_transaction_request.from_dict(travel_rule_create_transaction_request_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/docs/TravelRuleGetAllVASPsResponse.md b/docs/TravelRuleGetAllVASPsResponse.md new file mode 100644 index 00000000..1f961010 --- /dev/null +++ b/docs/TravelRuleGetAllVASPsResponse.md @@ -0,0 +1,29 @@ +# TravelRuleGetAllVASPsResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**vasps** | [**List[TravelRuleVASP]**](TravelRuleVASP.md) | | + +## Example + +```python +from fireblocks_client.models.travel_rule_get_all_vasps_response import TravelRuleGetAllVASPsResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of TravelRuleGetAllVASPsResponse from a JSON string +travel_rule_get_all_vasps_response_instance = TravelRuleGetAllVASPsResponse.from_json(json) +# print the JSON string representation of the object +print TravelRuleGetAllVASPsResponse.to_json() + +# convert the object into a dict +travel_rule_get_all_vasps_response_dict = travel_rule_get_all_vasps_response_instance.to_dict() +# create an instance of TravelRuleGetAllVASPsResponse from a dict +travel_rule_get_all_vasps_response_form_dict = travel_rule_get_all_vasps_response.from_dict(travel_rule_get_all_vasps_response_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/docs/TravelRuleIssuer.md b/docs/TravelRuleIssuer.md new file mode 100644 index 00000000..8c78e8ed --- /dev/null +++ b/docs/TravelRuleIssuer.md @@ -0,0 +1,29 @@ +# TravelRuleIssuer + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**issuer_did** | **str** | | + +## Example + +```python +from fireblocks_client.models.travel_rule_issuer import TravelRuleIssuer + +# TODO update the JSON string below +json = "{}" +# create an instance of TravelRuleIssuer from a JSON string +travel_rule_issuer_instance = TravelRuleIssuer.from_json(json) +# print the JSON string representation of the object +print TravelRuleIssuer.to_json() + +# convert the object into a dict +travel_rule_issuer_dict = travel_rule_issuer_instance.to_dict() +# create an instance of TravelRuleIssuer from a dict +travel_rule_issuer_form_dict = travel_rule_issuer.from_dict(travel_rule_issuer_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/docs/TravelRuleIssuers.md b/docs/TravelRuleIssuers.md new file mode 100644 index 00000000..5a0f7afc --- /dev/null +++ b/docs/TravelRuleIssuers.md @@ -0,0 +1,42 @@ +# TravelRuleIssuers + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**year_founded** | [**TravelRuleIssuer**](TravelRuleIssuer.md) | | +**is_regulated** | [**TravelRuleIssuer**](TravelRuleIssuer.md) | | +**regulatory_authorities** | [**TravelRuleIssuer**](TravelRuleIssuer.md) | | +**name** | [**TravelRuleIssuer**](TravelRuleIssuer.md) | | +**logo** | [**TravelRuleIssuer**](TravelRuleIssuer.md) | | +**website** | [**TravelRuleIssuer**](TravelRuleIssuer.md) | | +**legal_name** | [**TravelRuleIssuer**](TravelRuleIssuer.md) | | +**legal_structure** | [**TravelRuleIssuer**](TravelRuleIssuer.md) | | +**incorporation_country** | [**TravelRuleIssuer**](TravelRuleIssuer.md) | | +**business_number** | [**TravelRuleIssuer**](TravelRuleIssuer.md) | | +**address_line1** | [**TravelRuleIssuer**](TravelRuleIssuer.md) | | +**city** | [**TravelRuleIssuer**](TravelRuleIssuer.md) | | +**country** | [**TravelRuleIssuer**](TravelRuleIssuer.md) | | +**description** | [**TravelRuleIssuer**](TravelRuleIssuer.md) | | + +## Example + +```python +from fireblocks_client.models.travel_rule_issuers import TravelRuleIssuers + +# TODO update the JSON string below +json = "{}" +# create an instance of TravelRuleIssuers from a JSON string +travel_rule_issuers_instance = TravelRuleIssuers.from_json(json) +# print the JSON string representation of the object +print TravelRuleIssuers.to_json() + +# convert the object into a dict +travel_rule_issuers_dict = travel_rule_issuers_instance.to_dict() +# create an instance of TravelRuleIssuers from a dict +travel_rule_issuers_form_dict = travel_rule_issuers.from_dict(travel_rule_issuers_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/docs/TravelRuleOwnershipProof.md b/docs/TravelRuleOwnershipProof.md new file mode 100644 index 00000000..ff11ef2b --- /dev/null +++ b/docs/TravelRuleOwnershipProof.md @@ -0,0 +1,30 @@ +# TravelRuleOwnershipProof + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | Type of ownership proof | [optional] +**proof** | **str** | Identification number | [optional] + +## Example + +```python +from fireblocks_client.models.travel_rule_ownership_proof import TravelRuleOwnershipProof + +# TODO update the JSON string below +json = "{}" +# create an instance of TravelRuleOwnershipProof from a JSON string +travel_rule_ownership_proof_instance = TravelRuleOwnershipProof.from_json(json) +# print the JSON string representation of the object +print TravelRuleOwnershipProof.to_json() + +# convert the object into a dict +travel_rule_ownership_proof_dict = travel_rule_ownership_proof_instance.to_dict() +# create an instance of TravelRuleOwnershipProof from a dict +travel_rule_ownership_proof_form_dict = travel_rule_ownership_proof.from_dict(travel_rule_ownership_proof_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/docs/TravelRulePiiIVMS.md b/docs/TravelRulePiiIVMS.md new file mode 100644 index 00000000..fd568748 --- /dev/null +++ b/docs/TravelRulePiiIVMS.md @@ -0,0 +1,37 @@ +# TravelRulePiiIVMS + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**full_name** | **str** | | [optional] +**date_of_birth** | **str** | | [optional] +**place_of_birth** | **str** | | [optional] +**address** | **str** | | [optional] +**identification_number** | **str** | | [optional] +**nationality** | **str** | | [optional] +**country_of_residence** | **str** | | [optional] +**tax_identification_number** | **str** | | [optional] +**customer_number** | **str** | | [optional] + +## Example + +```python +from fireblocks_client.models.travel_rule_pii_ivms import TravelRulePiiIVMS + +# TODO update the JSON string below +json = "{}" +# create an instance of TravelRulePiiIVMS from a JSON string +travel_rule_pii_ivms_instance = TravelRulePiiIVMS.from_json(json) +# print the JSON string representation of the object +print TravelRulePiiIVMS.to_json() + +# convert the object into a dict +travel_rule_pii_ivms_dict = travel_rule_pii_ivms_instance.to_dict() +# create an instance of TravelRulePiiIVMS from a dict +travel_rule_pii_ivms_form_dict = travel_rule_pii_ivms.from_dict(travel_rule_pii_ivms_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/docs/TravelRulePolicyRuleResponse.md b/docs/TravelRulePolicyRuleResponse.md new file mode 100644 index 00000000..32830518 --- /dev/null +++ b/docs/TravelRulePolicyRuleResponse.md @@ -0,0 +1,42 @@ +# TravelRulePolicyRuleResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**source_type** | **str** | | [optional] +**source_sub_type** | **str** | | [optional] +**dest_type** | **str** | | [optional] +**dest_sub_type** | **str** | | [optional] +**dest_address** | **str** | | [optional] +**source_id** | **str** | | [optional] +**dest_id** | **str** | | [optional] +**asset** | **str** | | [optional] +**base_asset** | **str** | | [optional] +**amount** | **float** | | [optional] +**amount_usd** | **float** | | [optional] +**network_protocol** | **str** | | [optional] +**operation** | **str** | | [optional] +**action** | **str** | | + +## Example + +```python +from fireblocks_client.models.travel_rule_policy_rule_response import TravelRulePolicyRuleResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of TravelRulePolicyRuleResponse from a JSON string +travel_rule_policy_rule_response_instance = TravelRulePolicyRuleResponse.from_json(json) +# print the JSON string representation of the object +print TravelRulePolicyRuleResponse.to_json() + +# convert the object into a dict +travel_rule_policy_rule_response_dict = travel_rule_policy_rule_response_instance.to_dict() +# create an instance of TravelRulePolicyRuleResponse from a dict +travel_rule_policy_rule_response_form_dict = travel_rule_policy_rule_response.from_dict(travel_rule_policy_rule_response_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/docs/TravelRuleTransactionBlockchainInfo.md b/docs/TravelRuleTransactionBlockchainInfo.md new file mode 100644 index 00000000..2bfd5ce6 --- /dev/null +++ b/docs/TravelRuleTransactionBlockchainInfo.md @@ -0,0 +1,31 @@ +# TravelRuleTransactionBlockchainInfo + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**tx_hash** | **str** | | [optional] +**origin** | **str** | | [optional] +**destination** | **str** | | [optional] + +## Example + +```python +from fireblocks_client.models.travel_rule_transaction_blockchain_info import TravelRuleTransactionBlockchainInfo + +# TODO update the JSON string below +json = "{}" +# create an instance of TravelRuleTransactionBlockchainInfo from a JSON string +travel_rule_transaction_blockchain_info_instance = TravelRuleTransactionBlockchainInfo.from_json(json) +# print the JSON string representation of the object +print TravelRuleTransactionBlockchainInfo.to_json() + +# convert the object into a dict +travel_rule_transaction_blockchain_info_dict = travel_rule_transaction_blockchain_info_instance.to_dict() +# create an instance of TravelRuleTransactionBlockchainInfo from a dict +travel_rule_transaction_blockchain_info_form_dict = travel_rule_transaction_blockchain_info.from_dict(travel_rule_transaction_blockchain_info_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/docs/TravelRuleUpdateVASPDetails.md b/docs/TravelRuleUpdateVASPDetails.md new file mode 100644 index 00000000..d764a316 --- /dev/null +++ b/docs/TravelRuleUpdateVASPDetails.md @@ -0,0 +1,30 @@ +# TravelRuleUpdateVASPDetails + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**did** | **str** | The decentralized identifier of the VASP | +**pii_didkey** | **str** | The PII DID key of the VASP | + +## Example + +```python +from fireblocks_client.models.travel_rule_update_vasp_details import TravelRuleUpdateVASPDetails + +# TODO update the JSON string below +json = "{}" +# create an instance of TravelRuleUpdateVASPDetails from a JSON string +travel_rule_update_vasp_details_instance = TravelRuleUpdateVASPDetails.from_json(json) +# print the JSON string representation of the object +print TravelRuleUpdateVASPDetails.to_json() + +# convert the object into a dict +travel_rule_update_vasp_details_dict = travel_rule_update_vasp_details_instance.to_dict() +# create an instance of TravelRuleUpdateVASPDetails from a dict +travel_rule_update_vasp_details_form_dict = travel_rule_update_vasp_details.from_dict(travel_rule_update_vasp_details_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/docs/TravelRuleVASP.md b/docs/TravelRuleVASP.md new file mode 100644 index 00000000..a9a9eb73 --- /dev/null +++ b/docs/TravelRuleVASP.md @@ -0,0 +1,74 @@ +# TravelRuleVASP + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**did** | **str** | | +**name** | **str** | | +**verification_status** | **str** | | +**address_line1** | **str** | | +**address_line2** | **str** | | +**city** | **str** | | +**country** | **str** | | +**email_domains** | **str** | | +**website** | **str** | | +**logo** | **str** | | +**legal_structure** | **str** | | +**legal_name** | **str** | | +**year_founded** | **str** | | +**incorporation_country** | **str** | | +**is_regulated** | **str** | | +**other_names** | **str** | | +**identification_type** | **str** | | +**identification_country** | **str** | | +**business_number** | **str** | | +**regulatory_authorities** | **str** | | +**jurisdictions** | **str** | | +**street** | **str** | | +**number** | **str** | | +**unit** | **str** | | +**post_code** | **str** | | +**state** | **str** | | +**certificates** | **str** | | +**description** | **str** | | +**travel_rule_openvasp** | **str** | | +**travel_rule_sygna** | **str** | | +**travel_rule_trisa** | **str** | | +**travel_rule_trlight** | **str** | | +**travel_rule_email** | **str** | | +**travel_rule_trp** | **str** | | +**travel_rule_shyft** | **str** | | +**travel_rule_ustravelrulewg** | **str** | | +**created_at** | **str** | | +**created_by** | **str** | | +**updated_at** | **str** | | +**updated_by** | **str** | | +**last_sent_date** | **str** | | +**last_received_date** | **str** | | +**documents** | **str** | | +**has_admin** | **bool** | | +**is_notifiable** | **bool** | | +**issuers** | [**TravelRuleIssuers**](TravelRuleIssuers.md) | | + +## Example + +```python +from fireblocks_client.models.travel_rule_vasp import TravelRuleVASP + +# TODO update the JSON string below +json = "{}" +# create an instance of TravelRuleVASP from a JSON string +travel_rule_vasp_instance = TravelRuleVASP.from_json(json) +# print the JSON string representation of the object +print TravelRuleVASP.to_json() + +# convert the object into a dict +travel_rule_vasp_dict = travel_rule_vasp_instance.to_dict() +# create an instance of TravelRuleVASP from a dict +travel_rule_vasp_form_dict = travel_rule_vasp.from_dict(travel_rule_vasp_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/docs/TravelRuleValidateFullTransactionRequest.md b/docs/TravelRuleValidateFullTransactionRequest.md new file mode 100644 index 00000000..6f0b9429 --- /dev/null +++ b/docs/TravelRuleValidateFullTransactionRequest.md @@ -0,0 +1,46 @@ +# TravelRuleValidateFullTransactionRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**transaction_asset** | **str** | The asset involved in the transaction | [optional] +**transaction_amount** | **str** | The amount of the transaction | [optional] +**originator_did** | **str** | The DID of the transaction originator | [optional] +**beneficiary_did** | **str** | The DID of the transaction beneficiary | [optional] +**originator_vas_pdid** | **str** | The VASP ID of the transaction originator | [optional] +**beneficiary_vas_pdid** | **str** | The VASP ID of the transaction beneficiary | [optional] +**beneficiary_vas_pname** | **str** | The name of the VASP acting as the beneficiary | [optional] +**transaction_blockchain_info** | [**TravelRuleTransactionBlockchainInfo**](TravelRuleTransactionBlockchainInfo.md) | Information about the blockchain transaction | [optional] +**originator** | [**TravelRulePiiIVMS**](TravelRulePiiIVMS.md) | Information about the originator of the transaction | +**beneficiary** | [**TravelRulePiiIVMS**](TravelRulePiiIVMS.md) | Information about the beneficiary of the transaction | +**encrypted** | **str** | Encrypted data related to the transaction | [optional] +**protocol** | **str** | The protocol used to perform the travel rule | [optional] +**notification_email** | **str** | The email address where a notification should be sent upon completion of the travel rule | [optional] +**skip_beneficiary_data_validation** | **bool** | Whether to skip validation of beneficiary data | [optional] +**travel_rule_behavior** | **bool** | Whether to check if the transaction is a TRAVEL_RULE in the beneficiary VASP's jurisdiction | [optional] +**originator_proof** | [**TravelRuleOwnershipProof**](TravelRuleOwnershipProof.md) | Ownership proof related to the originator of the transaction | [optional] +**beneficiary_proof** | [**TravelRuleOwnershipProof**](TravelRuleOwnershipProof.md) | Ownership proof related to the beneficiary of the transaction | [optional] +**pii** | [**TravelRulePiiIVMS**](TravelRulePiiIVMS.md) | Personal identifiable information related to the transaction | [optional] + +## Example + +```python +from fireblocks_client.models.travel_rule_validate_full_transaction_request import TravelRuleValidateFullTransactionRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of TravelRuleValidateFullTransactionRequest from a JSON string +travel_rule_validate_full_transaction_request_instance = TravelRuleValidateFullTransactionRequest.from_json(json) +# print the JSON string representation of the object +print TravelRuleValidateFullTransactionRequest.to_json() + +# convert the object into a dict +travel_rule_validate_full_transaction_request_dict = travel_rule_validate_full_transaction_request_instance.to_dict() +# create an instance of TravelRuleValidateFullTransactionRequest from a dict +travel_rule_validate_full_transaction_request_form_dict = travel_rule_validate_full_transaction_request.from_dict(travel_rule_validate_full_transaction_request_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/docs/TravelRuleValidateTransactionRequest.md b/docs/TravelRuleValidateTransactionRequest.md new file mode 100644 index 00000000..4ac76f87 --- /dev/null +++ b/docs/TravelRuleValidateTransactionRequest.md @@ -0,0 +1,39 @@ +# TravelRuleValidateTransactionRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**transaction_asset** | **str** | Transaction asset symbol BTC,ETH) | +**destination** | **str** | Transaction destination address | +**transaction_amount** | **str** | Transaction amount in the transaction asset | +**originator_vas_pdid** | **str** | This is the identifier assigned to your VASP | +**originator_equals_beneficiary** | **bool** | \"True\" if the originator and beneficiary is the same person and you therefore do not need to collect any information. \"False\" if it is a third-party transfer. | +**travel_rule_behavior** | **bool** | This will also check if the transaction is a TRAVEL_RULE in the beneficiary VASP's jurisdiction | [optional] +**beneficiary_vas_pdid** | **str** | This is the identifier assigned to the VASP the funds are being sent to | [optional] +**beneficiary_vas_pname** | **str** | Beneficiary VASP name | [optional] +**beneficiary_name** | **str** | Beneficiary name | [optional] +**beneficiary_account_number** | **str** | Beneficiary name | [optional] +**beneficiary_address** | [**TravelRuleAddress**](TravelRuleAddress.md) | Beneficiary name | [optional] + +## Example + +```python +from fireblocks_client.models.travel_rule_validate_transaction_request import TravelRuleValidateTransactionRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of TravelRuleValidateTransactionRequest from a JSON string +travel_rule_validate_transaction_request_instance = TravelRuleValidateTransactionRequest.from_json(json) +# print the JSON string representation of the object +print TravelRuleValidateTransactionRequest.to_json() + +# convert the object into a dict +travel_rule_validate_transaction_request_dict = travel_rule_validate_transaction_request_instance.to_dict() +# create an instance of TravelRuleValidateTransactionRequest from a dict +travel_rule_validate_transaction_request_form_dict = travel_rule_validate_transaction_request.from_dict(travel_rule_validate_transaction_request_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/docs/TravelRuleValidateTransactionResponse.md b/docs/TravelRuleValidateTransactionResponse.md new file mode 100644 index 00000000..77aee515 --- /dev/null +++ b/docs/TravelRuleValidateTransactionResponse.md @@ -0,0 +1,35 @@ +# TravelRuleValidateTransactionResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**is_valid** | **bool** | \"isValid\" will tell you if you have collected all the information needed for the travel rule data transfer. Once this field = \"true\", you can move on to the next step which is to transfer the front-end information to your back-end and perform Travel Rule Transaction create | +**type** | **str** | \"type\" will tell you if the virtual asset value converted to FIAT value of the withdrawal request is above (=TRAVELRULE) or below (=BELOW_THRESHOLD) the threshold in your jurisdiction. If it is to an unhosted wallet which does not require travel rule information to be sent and only collected, it will say NON_CUSTODIAL. | +**beneficiary_address_type** | **str** | \"beneficiaryAddressType\" will tell you if your blockchain analytics provider or internal address book has been able to identify the wallet address. | +**address_source** | **str** | \"addressSource\" will tell you if the address was found in your internal address book or identified by the blockchain analytics provider. | +**beneficiary_vas_pdid** | **str** | The VASP DID of the beneficiary VASP | +**beneficiary_vas_pname** | **str** | \"beneficiaryVASPname\" will tell you the name of the VASP that has been identified as the owner of the wallet address. This name is used in a subsequent call to get its DID. | +**warnings** | **List[str]** | \"errors/warnings\" will tell you what information about the beneficiary you need to collect from the sender. | + +## Example + +```python +from fireblocks_client.models.travel_rule_validate_transaction_response import TravelRuleValidateTransactionResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of TravelRuleValidateTransactionResponse from a JSON string +travel_rule_validate_transaction_response_instance = TravelRuleValidateTransactionResponse.from_json(json) +# print the JSON string representation of the object +print TravelRuleValidateTransactionResponse.to_json() + +# convert the object into a dict +travel_rule_validate_transaction_response_dict = travel_rule_validate_transaction_response_instance.to_dict() +# create an instance of TravelRuleValidateTransactionResponse from a dict +travel_rule_validate_transaction_response_form_dict = travel_rule_validate_transaction_response.from_dict(travel_rule_validate_transaction_response_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/docs/UnfreezeTransactionResponse.md b/docs/UnfreezeTransactionResponse.md new file mode 100644 index 00000000..c08924d8 --- /dev/null +++ b/docs/UnfreezeTransactionResponse.md @@ -0,0 +1,29 @@ +# UnfreezeTransactionResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | | [optional] + +## Example + +```python +from fireblocks_client.models.unfreeze_transaction_response import UnfreezeTransactionResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of UnfreezeTransactionResponse from a JSON string +unfreeze_transaction_response_instance = UnfreezeTransactionResponse.from_json(json) +# print the JSON string representation of the object +print UnfreezeTransactionResponse.to_json() + +# convert the object into a dict +unfreeze_transaction_response_dict = unfreeze_transaction_response_instance.to_dict() +# create an instance of UnfreezeTransactionResponse from a dict +unfreeze_transaction_response_form_dict = unfreeze_transaction_response.from_dict(unfreeze_transaction_response_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/docs/UnmanagedWallet.md b/docs/UnmanagedWallet.md new file mode 100644 index 00000000..f1945469 --- /dev/null +++ b/docs/UnmanagedWallet.md @@ -0,0 +1,32 @@ +# UnmanagedWallet + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | +**name** | **str** | | +**customer_ref_id** | **str** | | [optional] +**assets** | [**List[WalletAsset]**](WalletAsset.md) | | + +## Example + +```python +from fireblocks_client.models.unmanaged_wallet import UnmanagedWallet + +# TODO update the JSON string below +json = "{}" +# create an instance of UnmanagedWallet from a JSON string +unmanaged_wallet_instance = UnmanagedWallet.from_json(json) +# print the JSON string representation of the object +print UnmanagedWallet.to_json() + +# convert the object into a dict +unmanaged_wallet_dict = unmanaged_wallet_instance.to_dict() +# create an instance of UnmanagedWallet from a dict +unmanaged_wallet_form_dict = unmanaged_wallet.from_dict(unmanaged_wallet_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/docs/UnspentInput.md b/docs/UnspentInput.md new file mode 100644 index 00000000..b31bf641 --- /dev/null +++ b/docs/UnspentInput.md @@ -0,0 +1,30 @@ +# UnspentInput + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**tx_hash** | **str** | | [optional] +**index** | **float** | | [optional] + +## Example + +```python +from fireblocks_client.models.unspent_input import UnspentInput + +# TODO update the JSON string below +json = "{}" +# create an instance of UnspentInput from a JSON string +unspent_input_instance = UnspentInput.from_json(json) +# print the JSON string representation of the object +print UnspentInput.to_json() + +# convert the object into a dict +unspent_input_dict = unspent_input_instance.to_dict() +# create an instance of UnspentInput from a dict +unspent_input_form_dict = unspent_input.from_dict(unspent_input_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/docs/UnspentInputsResponse.md b/docs/UnspentInputsResponse.md new file mode 100644 index 00000000..025301a7 --- /dev/null +++ b/docs/UnspentInputsResponse.md @@ -0,0 +1,33 @@ +# UnspentInputsResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**input** | [**UnspentInput**](UnspentInput.md) | | [optional] +**address** | **str** | | [optional] +**amount** | **str** | | [optional] +**confirmations** | **float** | | [optional] +**status** | **str** | | [optional] + +## Example + +```python +from fireblocks_client.models.unspent_inputs_response import UnspentInputsResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of UnspentInputsResponse from a JSON string +unspent_inputs_response_instance = UnspentInputsResponse.from_json(json) +# print the JSON string representation of the object +print UnspentInputsResponse.to_json() + +# convert the object into a dict +unspent_inputs_response_dict = unspent_inputs_response_instance.to_dict() +# create an instance of UnspentInputsResponse from a dict +unspent_inputs_response_form_dict = unspent_inputs_response.from_dict(unspent_inputs_response_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/docs/UnstakeRequestDto.md b/docs/UnstakeRequestDto.md new file mode 100644 index 00000000..7ab9b83a --- /dev/null +++ b/docs/UnstakeRequestDto.md @@ -0,0 +1,32 @@ +# UnstakeRequestDto + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | id of position to unstake | +**fee** | **str** | Represents the fee for a transaction, which can be specified as a percentage value. Only one of fee/feeLevel is required. | [optional] +**fee_level** | **str** | Represents the fee level for a transaction, which can be set as slow, medium, or fast. Only one of fee/feeLevel is required. | [optional] +**tx_note** | **str** | The note to associate with the transactions. | [optional] + +## Example + +```python +from fireblocks_client.models.unstake_request_dto import UnstakeRequestDto + +# TODO update the JSON string below +json = "{}" +# create an instance of UnstakeRequestDto from a JSON string +unstake_request_dto_instance = UnstakeRequestDto.from_json(json) +# print the JSON string representation of the object +print UnstakeRequestDto.to_json() + +# convert the object into a dict +unstake_request_dto_dict = unstake_request_dto_instance.to_dict() +# create an instance of UnstakeRequestDto from a dict +unstake_request_dto_form_dict = unstake_request_dto.from_dict(unstake_request_dto_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/docs/UpdateTokenOwnershipStatusDto.md b/docs/UpdateTokenOwnershipStatusDto.md new file mode 100644 index 00000000..edf521de --- /dev/null +++ b/docs/UpdateTokenOwnershipStatusDto.md @@ -0,0 +1,29 @@ +# UpdateTokenOwnershipStatusDto + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **str** | | + +## Example + +```python +from fireblocks_client.models.update_token_ownership_status_dto import UpdateTokenOwnershipStatusDto + +# TODO update the JSON string below +json = "{}" +# create an instance of UpdateTokenOwnershipStatusDto from a JSON string +update_token_ownership_status_dto_instance = UpdateTokenOwnershipStatusDto.from_json(json) +# print the JSON string representation of the object +print UpdateTokenOwnershipStatusDto.to_json() + +# convert the object into a dict +update_token_ownership_status_dto_dict = update_token_ownership_status_dto_instance.to_dict() +# create an instance of UpdateTokenOwnershipStatusDto from a dict +update_token_ownership_status_dto_form_dict = update_token_ownership_status_dto.from_dict(update_token_ownership_status_dto_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/docs/UpdateVaultAccountAssetAddressRequest.md b/docs/UpdateVaultAccountAssetAddressRequest.md new file mode 100644 index 00000000..090121be --- /dev/null +++ b/docs/UpdateVaultAccountAssetAddressRequest.md @@ -0,0 +1,29 @@ +# UpdateVaultAccountAssetAddressRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **str** | The address description | [optional] + +## Example + +```python +from fireblocks_client.models.update_vault_account_asset_address_request import UpdateVaultAccountAssetAddressRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of UpdateVaultAccountAssetAddressRequest from a JSON string +update_vault_account_asset_address_request_instance = UpdateVaultAccountAssetAddressRequest.from_json(json) +# print the JSON string representation of the object +print UpdateVaultAccountAssetAddressRequest.to_json() + +# convert the object into a dict +update_vault_account_asset_address_request_dict = update_vault_account_asset_address_request_instance.to_dict() +# create an instance of UpdateVaultAccountAssetAddressRequest from a dict +update_vault_account_asset_address_request_form_dict = update_vault_account_asset_address_request.from_dict(update_vault_account_asset_address_request_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/docs/UpdateVaultAccountRequest.md b/docs/UpdateVaultAccountRequest.md new file mode 100644 index 00000000..c3e44d91 --- /dev/null +++ b/docs/UpdateVaultAccountRequest.md @@ -0,0 +1,29 @@ +# UpdateVaultAccountRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | Account Name | [optional] + +## Example + +```python +from fireblocks_client.models.update_vault_account_request import UpdateVaultAccountRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of UpdateVaultAccountRequest from a JSON string +update_vault_account_request_instance = UpdateVaultAccountRequest.from_json(json) +# print the JSON string representation of the object +print UpdateVaultAccountRequest.to_json() + +# convert the object into a dict +update_vault_account_request_dict = update_vault_account_request_instance.to_dict() +# create an instance of UpdateVaultAccountRequest from a dict +update_vault_account_request_form_dict = update_vault_account_request.from_dict(update_vault_account_request_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/docs/UserGroupCreateRequest.md b/docs/UserGroupCreateRequest.md new file mode 100644 index 00000000..4d6b8250 --- /dev/null +++ b/docs/UserGroupCreateRequest.md @@ -0,0 +1,30 @@ +# UserGroupCreateRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**group_name** | **str** | | [optional] +**member_ids** | **List[str]** | | [optional] + +## Example + +```python +from fireblocks_client.models.user_group_create_request import UserGroupCreateRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of UserGroupCreateRequest from a JSON string +user_group_create_request_instance = UserGroupCreateRequest.from_json(json) +# print the JSON string representation of the object +print UserGroupCreateRequest.to_json() + +# convert the object into a dict +user_group_create_request_dict = user_group_create_request_instance.to_dict() +# create an instance of UserGroupCreateRequest from a dict +user_group_create_request_form_dict = user_group_create_request.from_dict(user_group_create_request_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/docs/UserGroupCreateResponse.md b/docs/UserGroupCreateResponse.md new file mode 100644 index 00000000..eee3bb6b --- /dev/null +++ b/docs/UserGroupCreateResponse.md @@ -0,0 +1,32 @@ +# UserGroupCreateResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | | [optional] +**id** | **str** | | [optional] +**member_ids** | **List[str]** | | [optional] +**status** | **str** | | [optional] + +## Example + +```python +from fireblocks_client.models.user_group_create_response import UserGroupCreateResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of UserGroupCreateResponse from a JSON string +user_group_create_response_instance = UserGroupCreateResponse.from_json(json) +# print the JSON string representation of the object +print UserGroupCreateResponse.to_json() + +# convert the object into a dict +user_group_create_response_dict = user_group_create_response_instance.to_dict() +# create an instance of UserGroupCreateResponse from a dict +user_group_create_response_form_dict = user_group_create_response.from_dict(user_group_create_response_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/docs/UserGroupResponse.md b/docs/UserGroupResponse.md new file mode 100644 index 00000000..a4deb1e1 --- /dev/null +++ b/docs/UserGroupResponse.md @@ -0,0 +1,32 @@ +# UserGroupResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**name** | **str** | | [optional] +**status** | **str** | | [optional] +**member_ids** | **List[str]** | | [optional] + +## Example + +```python +from fireblocks_client.models.user_group_response import UserGroupResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of UserGroupResponse from a JSON string +user_group_response_instance = UserGroupResponse.from_json(json) +# print the JSON string representation of the object +print UserGroupResponse.to_json() + +# convert the object into a dict +user_group_response_dict = user_group_response_instance.to_dict() +# create an instance of UserGroupResponse from a dict +user_group_response_form_dict = user_group_response.from_dict(user_group_response_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/docs/UserGroupUpdateRequest.md b/docs/UserGroupUpdateRequest.md new file mode 100644 index 00000000..15412dd7 --- /dev/null +++ b/docs/UserGroupUpdateRequest.md @@ -0,0 +1,30 @@ +# UserGroupUpdateRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**group_name** | **str** | | [optional] +**member_ids** | **List[str]** | | [optional] + +## Example + +```python +from fireblocks_client.models.user_group_update_request import UserGroupUpdateRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of UserGroupUpdateRequest from a JSON string +user_group_update_request_instance = UserGroupUpdateRequest.from_json(json) +# print the JSON string representation of the object +print UserGroupUpdateRequest.to_json() + +# convert the object into a dict +user_group_update_request_dict = user_group_update_request_instance.to_dict() +# create an instance of UserGroupUpdateRequest from a dict +user_group_update_request_form_dict = user_group_update_request.from_dict(user_group_update_request_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/docs/UserGroupsBetaApi.md b/docs/UserGroupsBetaApi.md new file mode 100644 index 00000000..2c979f0f --- /dev/null +++ b/docs/UserGroupsBetaApi.md @@ -0,0 +1,359 @@ +# fireblocks_client.UserGroupsBetaApi + +All URIs are relative to *https://api.fireblocks.io/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_user_group**](UserGroupsBetaApi.md#create_user_group) | **POST** /management/user_groups | Create user group +[**delete_user_group**](UserGroupsBetaApi.md#delete_user_group) | **DELETE** /management/user_groups/{groupId} | Delete user group +[**get_user_group**](UserGroupsBetaApi.md#get_user_group) | **GET** /management/user_groups/{groupId} | Get user group +[**get_user_groups**](UserGroupsBetaApi.md#get_user_groups) | **GET** /management/user_groups | List user groups +[**update_user_group**](UserGroupsBetaApi.md#update_user_group) | **PUT** /management/user_groups/{groupId} | Update user group + + +# **create_user_group** +> CreateUserGroupResponse create_user_group(user_group_create_request, idempotency_key=idempotency_key) + +Create user group + +Create a new user group.
**Note**: - This endpoint is now in Beta, disabled for general availability at this time. - Please note that this endpoint is available only for API keys with Admin permissions. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.create_user_group_response import CreateUserGroupResponse +from fireblocks_client.models.user_group_create_request import UserGroupCreateRequest +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.UserGroupsBetaApi(api_client) + user_group_create_request = fireblocks_client.UserGroupCreateRequest() # UserGroupCreateRequest | + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + + try: + # Create user group + api_response = api_instance.create_user_group(user_group_create_request, idempotency_key=idempotency_key) + print("The response of UserGroupsBetaApi->create_user_group:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling UserGroupsBetaApi->create_user_group: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **user_group_create_request** | [**UserGroupCreateRequest**](UserGroupCreateRequest.md)| | + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + +### Return type + +[**CreateUserGroupResponse**](CreateUserGroupResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | User group created and pending approval | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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) + +# **delete_user_group** +> delete_user_group(group_id) + +Delete user group + +Delete a user group by ID.
**Note**: - This endpoint is now in Beta, disabled for general availability at this time. - Please note that this endpoint is available only for API keys with Admin permissions. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.UserGroupsBetaApi(api_client) + group_id = 'group_id_example' # str | The ID of the user group + + try: + # Delete user group + api_instance.delete_user_group(group_id) + except Exception as e: + print("Exception when calling UserGroupsBetaApi->delete_user_group: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **group_id** | **str**| The ID of the user group | + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**204** | Request to delete user group submitted for approval | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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_user_group** +> UserGroupResponse get_user_group(group_id) + +Get user group + +Get a user group by ID.
**Note**: - This endpoint is now in Beta, disabled for general availability at this time. - Please note that this endpoint is available only for API keys with Admin permissions. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.user_group_response import UserGroupResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.UserGroupsBetaApi(api_client) + group_id = 'group_id_example' # str | The ID of the user group + + try: + # Get user group + api_response = api_instance.get_user_group(group_id) + print("The response of UserGroupsBetaApi->get_user_group:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling UserGroupsBetaApi->get_user_group: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **group_id** | **str**| The ID of the user group | + +### Return type + +[**UserGroupResponse**](UserGroupResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | User group | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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_user_groups** +> List[UserGroupResponse] get_user_groups() + +List user groups + +Get all user groups in your workspace.
**Note**: - This endpoint is now in Beta, disabled for general availability at this time. - Please note that this endpoint is available only for API keys with Admin permissions. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.user_group_response import UserGroupResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.UserGroupsBetaApi(api_client) + + try: + # List user groups + api_response = api_instance.get_user_groups() + print("The response of UserGroupsBetaApi->get_user_groups:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling UserGroupsBetaApi->get_user_groups: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**List[UserGroupResponse]**](UserGroupResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | List of the user groups in your workspace | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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) + +# **update_user_group** +> UserGroupCreateResponse update_user_group(group_id, user_group_update_request, idempotency_key=idempotency_key) + +Update user group + +Update a user group by ID.
**Note**: - This endpoint is now in Beta, disabled for general availability at this time. - Please note that this endpoint is available only for API keys with Admin permissions. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.user_group_create_response import UserGroupCreateResponse +from fireblocks_client.models.user_group_update_request import UserGroupUpdateRequest +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.UserGroupsBetaApi(api_client) + group_id = 'group_id_example' # str | The ID of the user group + user_group_update_request = fireblocks_client.UserGroupUpdateRequest() # UserGroupUpdateRequest | + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + + try: + # Update user group + api_response = api_instance.update_user_group(group_id, user_group_update_request, idempotency_key=idempotency_key) + print("The response of UserGroupsBetaApi->update_user_group:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling UserGroupsBetaApi->update_user_group: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **group_id** | **str**| The ID of the user group | + **user_group_update_request** | [**UserGroupUpdateRequest**](UserGroupUpdateRequest.md)| | + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + +### Return type + +[**UserGroupCreateResponse**](UserGroupCreateResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | User group updated and the changes are pending approval | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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) + diff --git a/docs/UserResponse.md b/docs/UserResponse.md new file mode 100644 index 00000000..430271ea --- /dev/null +++ b/docs/UserResponse.md @@ -0,0 +1,34 @@ +# UserResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**first_name** | **str** | | [optional] +**last_name** | **str** | | [optional] +**role** | **str** | | [optional] +**email** | **str** | | [optional] +**enabled** | **bool** | | [optional] + +## Example + +```python +from fireblocks_client.models.user_response import UserResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of UserResponse from a JSON string +user_response_instance = UserResponse.from_json(json) +# print the JSON string representation of the object +print UserResponse.to_json() + +# convert the object into a dict +user_response_dict = user_response_instance.to_dict() +# create an instance of UserResponse from a dict +user_response_form_dict = user_response.from_dict(user_response_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/docs/UserRole.md b/docs/UserRole.md new file mode 100644 index 00000000..7bab33ad --- /dev/null +++ b/docs/UserRole.md @@ -0,0 +1,12 @@ +# UserRole + +The role of the user + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[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/UserStatus.md b/docs/UserStatus.md new file mode 100644 index 00000000..603c6a4f --- /dev/null +++ b/docs/UserStatus.md @@ -0,0 +1,12 @@ +# UserStatus + +The status of the user + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[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/UserType.md b/docs/UserType.md new file mode 100644 index 00000000..09a6ca85 --- /dev/null +++ b/docs/UserType.md @@ -0,0 +1,12 @@ +# UserType + +The type of the user + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[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/UsersApi.md b/docs/UsersApi.md new file mode 100644 index 00000000..c53c150b --- /dev/null +++ b/docs/UsersApi.md @@ -0,0 +1,74 @@ +# fireblocks_client.UsersApi + +All URIs are relative to *https://api.fireblocks.io/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_users**](UsersApi.md#get_users) | **GET** /users | List users + + +# **get_users** +> List[UserResponse] get_users() + +List users + +List all users for the workspace. Please note that this endpoint is available only for API keys with Admin permissions. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.user_response import UserResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.UsersApi(api_client) + + try: + # List users + api_response = api_instance.get_users() + print("The response of UsersApi->get_users:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling UsersApi->get_users: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**List[UserResponse]**](UserResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | List of users | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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) + diff --git a/docs/ValidateAddressResponse.md b/docs/ValidateAddressResponse.md new file mode 100644 index 00000000..cbf500cf --- /dev/null +++ b/docs/ValidateAddressResponse.md @@ -0,0 +1,31 @@ +# ValidateAddressResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**is_valid** | **bool** | | [optional] +**is_active** | **bool** | | [optional] +**requires_tag** | **bool** | | [optional] + +## Example + +```python +from fireblocks_client.models.validate_address_response import ValidateAddressResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of ValidateAddressResponse from a JSON string +validate_address_response_instance = ValidateAddressResponse.from_json(json) +# print the JSON string representation of the object +print ValidateAddressResponse.to_json() + +# convert the object into a dict +validate_address_response_dict = validate_address_response_instance.to_dict() +# create an instance of ValidateAddressResponse from a dict +validate_address_response_form_dict = validate_address_response.from_dict(validate_address_response_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/docs/ValidatorDto.md b/docs/ValidatorDto.md new file mode 100644 index 00000000..d5a886d4 --- /dev/null +++ b/docs/ValidatorDto.md @@ -0,0 +1,30 @@ +# ValidatorDto + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**chain_descriptor** | **str** | The protocol identifier (e.g. \"ETH\"/\"SOL\") of the validator | +**fee_percent** | **float** | The service fee as a percentage out of the earned rewards | + +## Example + +```python +from fireblocks_client.models.validator_dto import ValidatorDto + +# TODO update the JSON string below +json = "{}" +# create an instance of ValidatorDto from a JSON string +validator_dto_instance = ValidatorDto.from_json(json) +# print the JSON string representation of the object +print ValidatorDto.to_json() + +# convert the object into a dict +validator_dto_dict = validator_dto_instance.to_dict() +# create an instance of ValidatorDto from a dict +validator_dto_form_dict = validator_dto.from_dict(validator_dto_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/docs/VaultAccount.md b/docs/VaultAccount.md new file mode 100644 index 00000000..d323edd1 --- /dev/null +++ b/docs/VaultAccount.md @@ -0,0 +1,34 @@ +# VaultAccount + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**name** | **str** | | [optional] +**assets** | [**List[VaultAsset]**](VaultAsset.md) | | [optional] +**hidden_on_ui** | **bool** | | [optional] +**customer_ref_id** | **str** | | [optional] +**auto_fuel** | **bool** | | [optional] + +## Example + +```python +from fireblocks_client.models.vault_account import VaultAccount + +# TODO update the JSON string below +json = "{}" +# create an instance of VaultAccount from a JSON string +vault_account_instance = VaultAccount.from_json(json) +# print the JSON string representation of the object +print VaultAccount.to_json() + +# convert the object into a dict +vault_account_dict = vault_account_instance.to_dict() +# create an instance of VaultAccount from a dict +vault_account_form_dict = vault_account.from_dict(vault_account_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/docs/VaultAccountsPagedResponse.md b/docs/VaultAccountsPagedResponse.md new file mode 100644 index 00000000..5feabd5c --- /dev/null +++ b/docs/VaultAccountsPagedResponse.md @@ -0,0 +1,32 @@ +# VaultAccountsPagedResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**accounts** | [**List[VaultAccount]**](VaultAccount.md) | | [optional] +**paging** | [**VaultAccountsPagedResponsePaging**](VaultAccountsPagedResponsePaging.md) | | [optional] +**previous_url** | **str** | | [optional] +**next_url** | **str** | | [optional] + +## Example + +```python +from fireblocks_client.models.vault_accounts_paged_response import VaultAccountsPagedResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of VaultAccountsPagedResponse from a JSON string +vault_accounts_paged_response_instance = VaultAccountsPagedResponse.from_json(json) +# print the JSON string representation of the object +print VaultAccountsPagedResponse.to_json() + +# convert the object into a dict +vault_accounts_paged_response_dict = vault_accounts_paged_response_instance.to_dict() +# create an instance of VaultAccountsPagedResponse from a dict +vault_accounts_paged_response_form_dict = vault_accounts_paged_response.from_dict(vault_accounts_paged_response_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/docs/VaultAccountsPagedResponsePaging.md b/docs/VaultAccountsPagedResponsePaging.md new file mode 100644 index 00000000..02468da1 --- /dev/null +++ b/docs/VaultAccountsPagedResponsePaging.md @@ -0,0 +1,30 @@ +# VaultAccountsPagedResponsePaging + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**before** | **str** | | [optional] +**after** | **str** | | [optional] + +## Example + +```python +from fireblocks_client.models.vault_accounts_paged_response_paging import VaultAccountsPagedResponsePaging + +# TODO update the JSON string below +json = "{}" +# create an instance of VaultAccountsPagedResponsePaging from a JSON string +vault_accounts_paged_response_paging_instance = VaultAccountsPagedResponsePaging.from_json(json) +# print the JSON string representation of the object +print VaultAccountsPagedResponsePaging.to_json() + +# convert the object into a dict +vault_accounts_paged_response_paging_dict = vault_accounts_paged_response_paging_instance.to_dict() +# create an instance of VaultAccountsPagedResponsePaging from a dict +vault_accounts_paged_response_paging_form_dict = vault_accounts_paged_response_paging.from_dict(vault_accounts_paged_response_paging_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/docs/VaultActionStatus.md b/docs/VaultActionStatus.md new file mode 100644 index 00000000..d8359afb --- /dev/null +++ b/docs/VaultActionStatus.md @@ -0,0 +1,29 @@ +# VaultActionStatus + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | | [optional] + +## Example + +```python +from fireblocks_client.models.vault_action_status import VaultActionStatus + +# TODO update the JSON string below +json = "{}" +# create an instance of VaultActionStatus from a JSON string +vault_action_status_instance = VaultActionStatus.from_json(json) +# print the JSON string representation of the object +print VaultActionStatus.to_json() + +# convert the object into a dict +vault_action_status_dict = vault_action_status_instance.to_dict() +# create an instance of VaultActionStatus from a dict +vault_action_status_form_dict = vault_action_status.from_dict(vault_action_status_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/docs/VaultAsset.md b/docs/VaultAsset.md new file mode 100644 index 00000000..48d52195 --- /dev/null +++ b/docs/VaultAsset.md @@ -0,0 +1,45 @@ +# VaultAsset + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**total** | **str** | The total wallet balance. In EOS this value includes the network balance, self staking and pending refund. For all other coins it is the balance as it appears on the blockchain. | [optional] +**balance** | **str** | Deprecated - replaced by \"total\" | [optional] +**available** | **str** | Funds available for transfer. Equals the blockchain balance minus any locked amounts | [optional] +**pending** | **str** | The cumulative balance of all transactions pending to be cleared | [optional] +**frozen** | **str** | The cumulative frozen balance | [optional] +**locked_amount** | **str** | Funds in outgoing transactions that are not yet published to the network | [optional] +**staked** | **str** | Staked balance | [optional] +**total_staked_cpu** | **float** | Deprecated | [optional] +**total_staked_network** | **str** | Deprecated | [optional] +**self_staked_cpu** | **str** | Deprecated | [optional] +**self_staked_network** | **str** | Deprecated | [optional] +**pending_refund_cpu** | **str** | Deprecated | [optional] +**pending_refund_network** | **str** | Deprecated | [optional] +**block_height** | **str** | | [optional] +**block_hash** | **str** | | [optional] +**rewards_info** | [**RewardsInfo**](RewardsInfo.md) | | [optional] + +## Example + +```python +from fireblocks_client.models.vault_asset import VaultAsset + +# TODO update the JSON string below +json = "{}" +# create an instance of VaultAsset from a JSON string +vault_asset_instance = VaultAsset.from_json(json) +# print the JSON string representation of the object +print VaultAsset.to_json() + +# convert the object into a dict +vault_asset_dict = vault_asset_instance.to_dict() +# create an instance of VaultAsset from a dict +vault_asset_form_dict = vault_asset.from_dict(vault_asset_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/docs/VaultWalletAddress.md b/docs/VaultWalletAddress.md new file mode 100644 index 00000000..a285962b --- /dev/null +++ b/docs/VaultWalletAddress.md @@ -0,0 +1,39 @@ +# VaultWalletAddress + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**asset_id** | **str** | | [optional] +**address** | **str** | | [optional] +**description** | **str** | | [optional] +**tag** | **str** | | [optional] +**type** | **str** | | [optional] +**customer_ref_id** | **str** | | [optional] +**address_format** | **str** | | [optional] +**legacy_address** | **str** | | [optional] +**enterprise_address** | **str** | | [optional] +**bip44_address_index** | **int** | | [optional] +**user_defined** | **bool** | | [optional] + +## Example + +```python +from fireblocks_client.models.vault_wallet_address import VaultWalletAddress + +# TODO update the JSON string below +json = "{}" +# create an instance of VaultWalletAddress from a JSON string +vault_wallet_address_instance = VaultWalletAddress.from_json(json) +# print the JSON string representation of the object +print VaultWalletAddress.to_json() + +# convert the object into a dict +vault_wallet_address_dict = vault_wallet_address_instance.to_dict() +# create an instance of VaultWalletAddress from a dict +vault_wallet_address_form_dict = vault_wallet_address.from_dict(vault_wallet_address_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/docs/VaultsApi.md b/docs/VaultsApi.md new file mode 100644 index 00000000..c9c18fcd --- /dev/null +++ b/docs/VaultsApi.md @@ -0,0 +1,1881 @@ +# fireblocks_client.VaultsApi + +All URIs are relative to *https://api.fireblocks.io/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**activate_asset_for_vault_account**](VaultsApi.md#activate_asset_for_vault_account) | **POST** /vault/accounts/{vaultAccountId}/{assetId}/activate | Activate a wallet in a vault account +[**create_legacy_address**](VaultsApi.md#create_legacy_address) | **POST** /vault/accounts/{vaultAccountId}/{assetId}/addresses/{addressId}/create_legacy | Convert a segwit address to legacy format +[**create_multiple_accounts**](VaultsApi.md#create_multiple_accounts) | **POST** /vault/accounts/bulk | Bulk creation of new vault accounts +[**create_vault_account**](VaultsApi.md#create_vault_account) | **POST** /vault/accounts | Create a new vault account +[**create_vault_account_asset**](VaultsApi.md#create_vault_account_asset) | **POST** /vault/accounts/{vaultAccountId}/{assetId} | Create a new wallet +[**create_vault_account_asset_address**](VaultsApi.md#create_vault_account_asset_address) | **POST** /vault/accounts/{vaultAccountId}/{assetId}/addresses | Create new asset deposit address +[**get_asset_wallets**](VaultsApi.md#get_asset_wallets) | **GET** /vault/asset_wallets | List asset wallets (Paginated) +[**get_max_spendable_amount**](VaultsApi.md#get_max_spendable_amount) | **GET** /vault/accounts/{vaultAccountId}/{assetId}/max_spendable_amount | Get the maximum spendable amount in a single transaction. +[**get_paged_vault_accounts**](VaultsApi.md#get_paged_vault_accounts) | **GET** /vault/accounts_paged | List vault accounts (Paginated) +[**get_public_key_info**](VaultsApi.md#get_public_key_info) | **GET** /vault/public_key_info | Get the public key information +[**get_public_key_info_for_address**](VaultsApi.md#get_public_key_info_for_address) | **GET** /vault/accounts/{vaultAccountId}/{assetId}/{change}/{addressIndex}/public_key_info | Get the public key for a vault account +[**get_unspent_inputs**](VaultsApi.md#get_unspent_inputs) | **GET** /vault/accounts/{vaultAccountId}/{assetId}/unspent_inputs | Get UTXO unspent inputs information +[**get_vault_account**](VaultsApi.md#get_vault_account) | **GET** /vault/accounts/{vaultAccountId} | Find a vault account by ID +[**get_vault_account_asset**](VaultsApi.md#get_vault_account_asset) | **GET** /vault/accounts/{vaultAccountId}/{assetId} | Get the asset balance for a vault account +[**get_vault_account_asset_addresses_paginated**](VaultsApi.md#get_vault_account_asset_addresses_paginated) | **GET** /vault/accounts/{vaultAccountId}/{assetId}/addresses_paginated | List addresses (Paginated) +[**get_vault_assets**](VaultsApi.md#get_vault_assets) | **GET** /vault/assets | Get asset balance for chosen assets +[**get_vault_balance_by_asset**](VaultsApi.md#get_vault_balance_by_asset) | **GET** /vault/assets/{assetId} | Get vault balance by asset +[**hide_vault_account**](VaultsApi.md#hide_vault_account) | **POST** /vault/accounts/{vaultAccountId}/hide | Hide a vault account in the console +[**set_customer_ref_id_for_address**](VaultsApi.md#set_customer_ref_id_for_address) | **POST** /vault/accounts/{vaultAccountId}/{assetId}/addresses/{addressId}/set_customer_ref_id | Assign AML customer reference ID +[**set_vault_account_auto_fuel**](VaultsApi.md#set_vault_account_auto_fuel) | **POST** /vault/accounts/{vaultAccountId}/set_auto_fuel | Turn autofueling on or off +[**set_vault_account_customer_ref_id**](VaultsApi.md#set_vault_account_customer_ref_id) | **POST** /vault/accounts/{vaultAccountId}/set_customer_ref_id | Set an AML/KYT customer reference ID for a vault account +[**unhide_vault_account**](VaultsApi.md#unhide_vault_account) | **POST** /vault/accounts/{vaultAccountId}/unhide | Unhide a vault account in the console +[**update_vault_account**](VaultsApi.md#update_vault_account) | **PUT** /vault/accounts/{vaultAccountId} | Rename a vault account +[**update_vault_account_asset_address**](VaultsApi.md#update_vault_account_asset_address) | **PUT** /vault/accounts/{vaultAccountId}/{assetId}/addresses/{addressId} | Update address description +[**update_vault_account_asset_balance**](VaultsApi.md#update_vault_account_asset_balance) | **POST** /vault/accounts/{vaultAccountId}/{assetId}/balance | Refresh asset balance data + + +# **activate_asset_for_vault_account** +> CreateVaultAssetResponse activate_asset_for_vault_account(vault_account_id, asset_id, idempotency_key=idempotency_key) + +Activate a wallet in a vault account + +Initiates activation for a wallet in a vault account. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.create_vault_asset_response import CreateVaultAssetResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.VaultsApi(api_client) + vault_account_id = 'vault_account_id_example' # str | The ID of the vault account to return, or 'default' for the default vault account + asset_id = 'asset_id_example' # str | The ID of the asset + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + + try: + # Activate a wallet in a vault account + api_response = api_instance.activate_asset_for_vault_account(vault_account_id, asset_id, idempotency_key=idempotency_key) + print("The response of VaultsApi->activate_asset_for_vault_account:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling VaultsApi->activate_asset_for_vault_account: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **vault_account_id** | **str**| The ID of the vault account to return, or 'default' for the default vault account | + **asset_id** | **str**| The ID of the asset | + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + +### Return type + +[**CreateVaultAssetResponse**](CreateVaultAssetResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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) + +# **create_legacy_address** +> CreateAddressResponse create_legacy_address(vault_account_id, asset_id, address_id, idempotency_key=idempotency_key) + +Convert a segwit address to legacy format + +Converts an existing segwit address to the legacy format. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.create_address_response import CreateAddressResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.VaultsApi(api_client) + vault_account_id = 'vault_account_id_example' # str | The ID of the vault account + asset_id = 'asset_id_example' # str | The ID of the asset + address_id = 'address_id_example' # str | The segwit address to translate + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + + try: + # Convert a segwit address to legacy format + api_response = api_instance.create_legacy_address(vault_account_id, asset_id, address_id, idempotency_key=idempotency_key) + print("The response of VaultsApi->create_legacy_address:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling VaultsApi->create_legacy_address: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **vault_account_id** | **str**| The ID of the vault account | + **asset_id** | **str**| The ID of the asset | + **address_id** | **str**| The segwit address to translate | + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + +### Return type + +[**CreateAddressResponse**](CreateAddressResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | The created address | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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) + +# **create_multiple_accounts** +> JobCreated create_multiple_accounts(create_multiple_accounts_request, idempotency_key=idempotency_key) + +Bulk creation of new vault accounts + +Create multiple vault accounts by running an async job.
**Note**: - These endpoints are currently in beta and might be subject to changes. - We limit accounts to 10k per operation and 200k per customer during beta testing. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.create_multiple_accounts_request import CreateMultipleAccountsRequest +from fireblocks_client.models.job_created import JobCreated +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.VaultsApi(api_client) + create_multiple_accounts_request = fireblocks_client.CreateMultipleAccountsRequest() # CreateMultipleAccountsRequest | + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + + try: + # Bulk creation of new vault accounts + api_response = api_instance.create_multiple_accounts(create_multiple_accounts_request, idempotency_key=idempotency_key) + print("The response of VaultsApi->create_multiple_accounts:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling VaultsApi->create_multiple_accounts: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **create_multiple_accounts_request** | [**CreateMultipleAccountsRequest**](CreateMultipleAccountsRequest.md)| | + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + +### Return type + +[**JobCreated**](JobCreated.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A JobCreated object | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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) + +# **create_vault_account** +> VaultAccount create_vault_account(create_vault_account_request, idempotency_key=idempotency_key) + +Create a new vault account + +Creates a new vault account with the requested name. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.create_vault_account_request import CreateVaultAccountRequest +from fireblocks_client.models.vault_account import VaultAccount +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.VaultsApi(api_client) + create_vault_account_request = fireblocks_client.CreateVaultAccountRequest() # CreateVaultAccountRequest | + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + + try: + # Create a new vault account + api_response = api_instance.create_vault_account(create_vault_account_request, idempotency_key=idempotency_key) + print("The response of VaultsApi->create_vault_account:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling VaultsApi->create_vault_account: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **create_vault_account_request** | [**CreateVaultAccountRequest**](CreateVaultAccountRequest.md)| | + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + +### Return type + +[**VaultAccount**](VaultAccount.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A Vault Account object | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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) + +# **create_vault_account_asset** +> CreateVaultAssetResponse create_vault_account_asset(vault_account_id, asset_id, idempotency_key=idempotency_key, create_assets_request=create_assets_request) + +Create a new wallet + +Creates a wallet for a specific asset in a vault account. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.create_assets_request import CreateAssetsRequest +from fireblocks_client.models.create_vault_asset_response import CreateVaultAssetResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.VaultsApi(api_client) + vault_account_id = 'vault_account_id_example' # str | The ID of the vault account to return, or 'default' for the default vault account + asset_id = 'asset_id_example' # str | The ID of the asset + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + create_assets_request = fireblocks_client.CreateAssetsRequest() # CreateAssetsRequest | (optional) + + try: + # Create a new wallet + api_response = api_instance.create_vault_account_asset(vault_account_id, asset_id, idempotency_key=idempotency_key, create_assets_request=create_assets_request) + print("The response of VaultsApi->create_vault_account_asset:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling VaultsApi->create_vault_account_asset: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **vault_account_id** | **str**| The ID of the vault account to return, or 'default' for the default vault account | + **asset_id** | **str**| The ID of the asset | + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + **create_assets_request** | [**CreateAssetsRequest**](CreateAssetsRequest.md)| | [optional] + +### Return type + +[**CreateVaultAssetResponse**](CreateVaultAssetResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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) + +# **create_vault_account_asset_address** +> CreateAddressResponse create_vault_account_asset_address(vault_account_id, asset_id, idempotency_key=idempotency_key, create_address_request=create_address_request) + +Create new asset deposit address + +Creates a new deposit address for an asset of a vault account. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.create_address_request import CreateAddressRequest +from fireblocks_client.models.create_address_response import CreateAddressResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.VaultsApi(api_client) + vault_account_id = 'vault_account_id_example' # str | The ID of the vault account to return + asset_id = 'asset_id_example' # str | The ID of the asset + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + create_address_request = fireblocks_client.CreateAddressRequest() # CreateAddressRequest | (optional) + + try: + # Create new asset deposit address + api_response = api_instance.create_vault_account_asset_address(vault_account_id, asset_id, idempotency_key=idempotency_key, create_address_request=create_address_request) + print("The response of VaultsApi->create_vault_account_asset_address:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling VaultsApi->create_vault_account_asset_address: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **vault_account_id** | **str**| The ID of the vault account to return | + **asset_id** | **str**| The ID of the asset | + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + **create_address_request** | [**CreateAddressRequest**](CreateAddressRequest.md)| | [optional] + +### Return type + +[**CreateAddressResponse**](CreateAddressResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | The created address | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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_asset_wallets** +> PaginatedAssetWalletResponse get_asset_wallets(total_amount_larger_than=total_amount_larger_than, asset_id=asset_id, order_by=order_by, before=before, after=after, limit=limit) + +List asset wallets (Paginated) + +Gets all asset wallets at all of the vault accounts in your workspace. An asset wallet is an asset at a vault account. This method allows fast traversal of all account balances. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.paginated_asset_wallet_response import PaginatedAssetWalletResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.VaultsApi(api_client) + total_amount_larger_than = 3.4 # float | When specified, only asset wallets with total balance larger than this amount are returned. (optional) + asset_id = 'asset_id_example' # str | When specified, only asset wallets cross vault accounts that have this asset ID are returned. (optional) + order_by = 'DESC' # str | (optional) (default to 'DESC') + before = 'before_example' # str | Fetches the next paginated response before this element. This element is a cursor and is returned at the response of the previous page. (optional) + after = 'after_example' # str | Fetches the next paginated response after this element. This element is a cursor and is returned at the response of the previous page. (optional) + limit = 200 # float | The maximum number of asset wallets in a single response. The default is 200 and the maximum is 1000. (optional) (default to 200) + + try: + # List asset wallets (Paginated) + api_response = api_instance.get_asset_wallets(total_amount_larger_than=total_amount_larger_than, asset_id=asset_id, order_by=order_by, before=before, after=after, limit=limit) + print("The response of VaultsApi->get_asset_wallets:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling VaultsApi->get_asset_wallets: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **total_amount_larger_than** | **float**| When specified, only asset wallets with total balance larger than this amount are returned. | [optional] + **asset_id** | **str**| When specified, only asset wallets cross vault accounts that have this asset ID are returned. | [optional] + **order_by** | **str**| | [optional] [default to 'DESC'] + **before** | **str**| Fetches the next paginated response before this element. This element is a cursor and is returned at the response of the previous page. | [optional] + **after** | **str**| Fetches the next paginated response after this element. This element is a cursor and is returned at the response of the previous page. | [optional] + **limit** | **float**| The maximum number of asset wallets in a single response. The default is 200 and the maximum is 1000. | [optional] [default to 200] + +### Return type + +[**PaginatedAssetWalletResponse**](PaginatedAssetWalletResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A PaginatedAssetWalletResponse object | * X-Request-ID -
| + +[[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_max_spendable_amount** +> GetMaxSpendableAmountResponse get_max_spendable_amount(vault_account_id, asset_id, manual_signging=manual_signging) + +Get the maximum spendable amount in a single transaction. + +Get the maximum amount of a particular asset that can be spent in a single transaction from a specified vault account (UTXO assets only, with a limitation on number of inputs embedded). Send several transactions if you want to spend more than the maximum spendable amount. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.get_max_spendable_amount_response import GetMaxSpendableAmountResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.VaultsApi(api_client) + vault_account_id = 'vault_account_id_example' # str | The ID of the vault account, or 'default' for the default vault account + asset_id = 'asset_id_example' # str | The ID of the asset + manual_signging = True # bool | False by default. The maximum number of inputs depends if the transaction will be signed by an automated co-signer server or on a mobile device. (optional) + + try: + # Get the maximum spendable amount in a single transaction. + api_response = api_instance.get_max_spendable_amount(vault_account_id, asset_id, manual_signging=manual_signging) + print("The response of VaultsApi->get_max_spendable_amount:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling VaultsApi->get_max_spendable_amount: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **vault_account_id** | **str**| The ID of the vault account, or 'default' for the default vault account | + **asset_id** | **str**| The ID of the asset | + **manual_signging** | **bool**| False by default. The maximum number of inputs depends if the transaction will be signed by an automated co-signer server or on a mobile device. | [optional] + +### Return type + +[**GetMaxSpendableAmountResponse**](GetMaxSpendableAmountResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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_paged_vault_accounts** +> VaultAccountsPagedResponse get_paged_vault_accounts(name_prefix=name_prefix, name_suffix=name_suffix, min_amount_threshold=min_amount_threshold, asset_id=asset_id, order_by=order_by, before=before, after=after, limit=limit) + +List vault accounts (Paginated) + +Gets all vault accounts in your workspace. This endpoint returns a limited amount of results with a quick response time. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.vault_accounts_paged_response import VaultAccountsPagedResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.VaultsApi(api_client) + name_prefix = 'name_prefix_example' # str | (optional) + name_suffix = 'name_suffix_example' # str | (optional) + min_amount_threshold = 3.4 # float | Specifying minAmountThreshold will filter accounts with balances greater than this value, otherwise, it will return all accounts. (optional) + asset_id = 'asset_id_example' # str | (optional) + order_by = 'DESC' # str | (optional) (default to 'DESC') + before = 'before_example' # str | (optional) + after = 'after_example' # str | (optional) + limit = 200 # float | (optional) (default to 200) + + try: + # List vault accounts (Paginated) + api_response = api_instance.get_paged_vault_accounts(name_prefix=name_prefix, name_suffix=name_suffix, min_amount_threshold=min_amount_threshold, asset_id=asset_id, order_by=order_by, before=before, after=after, limit=limit) + print("The response of VaultsApi->get_paged_vault_accounts:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling VaultsApi->get_paged_vault_accounts: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name_prefix** | **str**| | [optional] + **name_suffix** | **str**| | [optional] + **min_amount_threshold** | **float**| Specifying minAmountThreshold will filter accounts with balances greater than this value, otherwise, it will return all accounts. | [optional] + **asset_id** | **str**| | [optional] + **order_by** | **str**| | [optional] [default to 'DESC'] + **before** | **str**| | [optional] + **after** | **str**| | [optional] + **limit** | **float**| | [optional] [default to 200] + +### Return type + +[**VaultAccountsPagedResponse**](VaultAccountsPagedResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A VaultAccountsPagedResponse object | * X-Request-ID -
| + +[[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_public_key_info** +> PublicKeyInformation get_public_key_info(derivation_path, algorithm, compressed=compressed) + +Get the public key information + +Gets the public key information based on derivation path and signing algorithm. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.public_key_information import PublicKeyInformation +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.VaultsApi(api_client) + derivation_path = 'derivation_path_example' # str | + algorithm = 'algorithm_example' # str | + compressed = True # bool | (optional) + + try: + # Get the public key information + api_response = api_instance.get_public_key_info(derivation_path, algorithm, compressed=compressed) + print("The response of VaultsApi->get_public_key_info:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling VaultsApi->get_public_key_info: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **derivation_path** | **str**| | + **algorithm** | **str**| | + **compressed** | **bool**| | [optional] + +### Return type + +[**PublicKeyInformation**](PublicKeyInformation.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Public key information | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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_public_key_info_for_address** +> PublicKeyInformation get_public_key_info_for_address(vault_account_id, asset_id, change, address_index, compressed=compressed) + +Get the public key for a vault account + +Gets the public key information for the vault account. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.public_key_information import PublicKeyInformation +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.VaultsApi(api_client) + vault_account_id = 'vault_account_id_example' # str | + asset_id = 'asset_id_example' # str | + change = 3.4 # float | + address_index = 3.4 # float | + compressed = True # bool | (optional) + + try: + # Get the public key for a vault account + api_response = api_instance.get_public_key_info_for_address(vault_account_id, asset_id, change, address_index, compressed=compressed) + print("The response of VaultsApi->get_public_key_info_for_address:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling VaultsApi->get_public_key_info_for_address: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **vault_account_id** | **str**| | + **asset_id** | **str**| | + **change** | **float**| | + **address_index** | **float**| | + **compressed** | **bool**| | [optional] + +### Return type + +[**PublicKeyInformation**](PublicKeyInformation.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Public Key Information | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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_unspent_inputs** +> List[UnspentInputsResponse] get_unspent_inputs(vault_account_id, asset_id) + +Get UTXO unspent inputs information + +Returns unspent inputs information of an asset in a vault account. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.unspent_inputs_response import UnspentInputsResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.VaultsApi(api_client) + vault_account_id = 'vault_account_id_example' # str | The ID of the vault account + asset_id = 'asset_id_example' # str | The ID of the asset + + try: + # Get UTXO unspent inputs information + api_response = api_instance.get_unspent_inputs(vault_account_id, asset_id) + print("The response of VaultsApi->get_unspent_inputs:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling VaultsApi->get_unspent_inputs: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **vault_account_id** | **str**| The ID of the vault account | + **asset_id** | **str**| The ID of the asset | + +### Return type + +[**List[UnspentInputsResponse]**](UnspentInputsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | List of Unspent information per input | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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_vault_account** +> VaultAccount get_vault_account(vault_account_id) + +Find a vault account by ID + +Returns the requested vault account. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.vault_account import VaultAccount +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.VaultsApi(api_client) + vault_account_id = 'vault_account_id_example' # str | The ID of the vault account to return type: string + + try: + # Find a vault account by ID + api_response = api_instance.get_vault_account(vault_account_id) + print("The response of VaultsApi->get_vault_account:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling VaultsApi->get_vault_account: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **vault_account_id** | **str**| The ID of the vault account to return type: string | + +### Return type + +[**VaultAccount**](VaultAccount.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A Vault Account object | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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_vault_account_asset** +> VaultAsset get_vault_account_asset(vault_account_id, asset_id) + +Get the asset balance for a vault account + +Returns a wallet for a specific asset of a vault account. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.vault_asset import VaultAsset +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.VaultsApi(api_client) + vault_account_id = 'vault_account_id_example' # str | The ID of the vault account to return + asset_id = 'asset_id_example' # str | The ID of the asset + + try: + # Get the asset balance for a vault account + api_response = api_instance.get_vault_account_asset(vault_account_id, asset_id) + print("The response of VaultsApi->get_vault_account_asset:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling VaultsApi->get_vault_account_asset: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **vault_account_id** | **str**| The ID of the vault account to return | + **asset_id** | **str**| The ID of the asset | + +### Return type + +[**VaultAsset**](VaultAsset.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A VaultAsset object | - | +**0** | Error Response | * X-Request-ID -
| + +[[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_vault_account_asset_addresses_paginated** +> PaginatedAddressResponse get_vault_account_asset_addresses_paginated(vault_account_id, asset_id, limit=limit, before=before, after=after) + +List addresses (Paginated) + +Returns a paginated response of the addresses for a given vault account and asset. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.paginated_address_response import PaginatedAddressResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.VaultsApi(api_client) + vault_account_id = 'vault_account_id_example' # str | The ID of the vault account to return + asset_id = 'asset_id_example' # str | The ID of the asset + limit = 3.4 # float | (optional) + before = 'before_example' # str | (optional) + after = 'after_example' # str | (optional) + + try: + # List addresses (Paginated) + api_response = api_instance.get_vault_account_asset_addresses_paginated(vault_account_id, asset_id, limit=limit, before=before, after=after) + print("The response of VaultsApi->get_vault_account_asset_addresses_paginated:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling VaultsApi->get_vault_account_asset_addresses_paginated: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **vault_account_id** | **str**| The ID of the vault account to return | + **asset_id** | **str**| The ID of the asset | + **limit** | **float**| | [optional] + **before** | **str**| | [optional] + **after** | **str**| | [optional] + +### Return type + +[**PaginatedAddressResponse**](PaginatedAddressResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A paginated list of addresses, and pagination info. | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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_vault_assets** +> List[VaultAsset] get_vault_assets(account_name_prefix=account_name_prefix, account_name_suffix=account_name_suffix) + +Get asset balance for chosen assets + +Gets the assets amount summary for all accounts or filtered accounts. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.vault_asset import VaultAsset +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.VaultsApi(api_client) + account_name_prefix = 'account_name_prefix_example' # str | (optional) + account_name_suffix = 'account_name_suffix_example' # str | (optional) + + try: + # Get asset balance for chosen assets + api_response = api_instance.get_vault_assets(account_name_prefix=account_name_prefix, account_name_suffix=account_name_suffix) + print("The response of VaultsApi->get_vault_assets:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling VaultsApi->get_vault_assets: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **account_name_prefix** | **str**| | [optional] + **account_name_suffix** | **str**| | [optional] + +### Return type + +[**List[VaultAsset]**](VaultAsset.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Amount by asset | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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_vault_balance_by_asset** +> VaultAsset get_vault_balance_by_asset(asset_id) + +Get vault balance by asset + +Gets the vault balance summary for an asset. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.vault_asset import VaultAsset +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.VaultsApi(api_client) + asset_id = 'asset_id_example' # str | + + try: + # Get vault balance by asset + api_response = api_instance.get_vault_balance_by_asset(asset_id) + print("The response of VaultsApi->get_vault_balance_by_asset:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling VaultsApi->get_vault_balance_by_asset: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **asset_id** | **str**| | + +### Return type + +[**VaultAsset**](VaultAsset.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Vault amount by asset | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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) + +# **hide_vault_account** +> VaultActionStatus hide_vault_account(vault_account_id, idempotency_key=idempotency_key) + +Hide a vault account in the console + +Hides the requested vault account from the web console view. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.vault_action_status import VaultActionStatus +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.VaultsApi(api_client) + vault_account_id = 'vault_account_id_example' # str | The vault account to hide + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + + try: + # Hide a vault account in the console + api_response = api_instance.hide_vault_account(vault_account_id, idempotency_key=idempotency_key) + print("The response of VaultsApi->hide_vault_account:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling VaultsApi->hide_vault_account: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **vault_account_id** | **str**| The vault account to hide | + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + +### Return type + +[**VaultActionStatus**](VaultActionStatus.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | OK | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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) + +# **set_customer_ref_id_for_address** +> VaultActionStatus set_customer_ref_id_for_address(vault_account_id, asset_id, address_id, set_customer_ref_id_for_address_request, idempotency_key=idempotency_key) + +Assign AML customer reference ID + +Sets an AML/KYT customer reference ID for a specific address. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.set_customer_ref_id_for_address_request import SetCustomerRefIdForAddressRequest +from fireblocks_client.models.vault_action_status import VaultActionStatus +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.VaultsApi(api_client) + vault_account_id = 'vault_account_id_example' # str | The ID of the vault account + asset_id = 'asset_id_example' # str | The ID of the asset + address_id = 'address_id_example' # str | The address for which to add a description. For XRP, use
:, for all other assets, use only the address + set_customer_ref_id_for_address_request = fireblocks_client.SetCustomerRefIdForAddressRequest() # SetCustomerRefIdForAddressRequest | + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + + try: + # Assign AML customer reference ID + api_response = api_instance.set_customer_ref_id_for_address(vault_account_id, asset_id, address_id, set_customer_ref_id_for_address_request, idempotency_key=idempotency_key) + print("The response of VaultsApi->set_customer_ref_id_for_address:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling VaultsApi->set_customer_ref_id_for_address: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **vault_account_id** | **str**| The ID of the vault account | + **asset_id** | **str**| The ID of the asset | + **address_id** | **str**| The address for which to add a description. For XRP, use <address>:<tag>, for all other assets, use only the address | + **set_customer_ref_id_for_address_request** | [**SetCustomerRefIdForAddressRequest**](SetCustomerRefIdForAddressRequest.md)| | + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + +### Return type + +[**VaultActionStatus**](VaultActionStatus.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | OK | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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) + +# **set_vault_account_auto_fuel** +> VaultActionStatus set_vault_account_auto_fuel(vault_account_id, set_auto_fuel_request, idempotency_key=idempotency_key) + +Turn autofueling on or off + +Sets the autofueling property of the vault account to enabled or disabled. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.set_auto_fuel_request import SetAutoFuelRequest +from fireblocks_client.models.vault_action_status import VaultActionStatus +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.VaultsApi(api_client) + vault_account_id = 'vault_account_id_example' # str | The vault account ID + set_auto_fuel_request = fireblocks_client.SetAutoFuelRequest() # SetAutoFuelRequest | + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + + try: + # Turn autofueling on or off + api_response = api_instance.set_vault_account_auto_fuel(vault_account_id, set_auto_fuel_request, idempotency_key=idempotency_key) + print("The response of VaultsApi->set_vault_account_auto_fuel:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling VaultsApi->set_vault_account_auto_fuel: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **vault_account_id** | **str**| The vault account ID | + **set_auto_fuel_request** | [**SetAutoFuelRequest**](SetAutoFuelRequest.md)| | + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + +### Return type + +[**VaultActionStatus**](VaultActionStatus.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | OK | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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) + +# **set_vault_account_customer_ref_id** +> VaultActionStatus set_vault_account_customer_ref_id(vault_account_id, set_customer_ref_id_request, idempotency_key=idempotency_key) + +Set an AML/KYT customer reference ID for a vault account + +Assigns an AML/KYT customer reference ID for the vault account. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.set_customer_ref_id_request import SetCustomerRefIdRequest +from fireblocks_client.models.vault_action_status import VaultActionStatus +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.VaultsApi(api_client) + vault_account_id = 'vault_account_id_example' # str | The vault account ID + set_customer_ref_id_request = fireblocks_client.SetCustomerRefIdRequest() # SetCustomerRefIdRequest | + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + + try: + # Set an AML/KYT customer reference ID for a vault account + api_response = api_instance.set_vault_account_customer_ref_id(vault_account_id, set_customer_ref_id_request, idempotency_key=idempotency_key) + print("The response of VaultsApi->set_vault_account_customer_ref_id:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling VaultsApi->set_vault_account_customer_ref_id: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **vault_account_id** | **str**| The vault account ID | + **set_customer_ref_id_request** | [**SetCustomerRefIdRequest**](SetCustomerRefIdRequest.md)| | + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + +### Return type + +[**VaultActionStatus**](VaultActionStatus.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | OK | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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) + +# **unhide_vault_account** +> VaultActionStatus unhide_vault_account(vault_account_id, idempotency_key=idempotency_key) + +Unhide a vault account in the console + +Makes a hidden vault account visible in web console view. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.vault_action_status import VaultActionStatus +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.VaultsApi(api_client) + vault_account_id = 'vault_account_id_example' # str | The vault account to unhide + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + + try: + # Unhide a vault account in the console + api_response = api_instance.unhide_vault_account(vault_account_id, idempotency_key=idempotency_key) + print("The response of VaultsApi->unhide_vault_account:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling VaultsApi->unhide_vault_account: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **vault_account_id** | **str**| The vault account to unhide | + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + +### Return type + +[**VaultActionStatus**](VaultActionStatus.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | OK | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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) + +# **update_vault_account** +> RenameVaultAccountResponse update_vault_account(vault_account_id, update_vault_account_request, idempotency_key=idempotency_key) + +Rename a vault account + +Renames the requested vault account. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.rename_vault_account_response import RenameVaultAccountResponse +from fireblocks_client.models.update_vault_account_request import UpdateVaultAccountRequest +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.VaultsApi(api_client) + vault_account_id = 'vault_account_id_example' # str | The ID of the vault account to edit + update_vault_account_request = fireblocks_client.UpdateVaultAccountRequest() # UpdateVaultAccountRequest | + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + + try: + # Rename a vault account + api_response = api_instance.update_vault_account(vault_account_id, update_vault_account_request, idempotency_key=idempotency_key) + print("The response of VaultsApi->update_vault_account:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling VaultsApi->update_vault_account: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **vault_account_id** | **str**| The ID of the vault account to edit | + **update_vault_account_request** | [**UpdateVaultAccountRequest**](UpdateVaultAccountRequest.md)| | + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + +### Return type + +[**RenameVaultAccountResponse**](RenameVaultAccountResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | OK | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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) + +# **update_vault_account_asset_address** +> VaultActionStatus update_vault_account_asset_address(vault_account_id, asset_id, address_id, idempotency_key=idempotency_key, update_vault_account_asset_address_request=update_vault_account_asset_address_request) + +Update address description + +Updates the description of an existing address of an asset in a vault account. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.update_vault_account_asset_address_request import UpdateVaultAccountAssetAddressRequest +from fireblocks_client.models.vault_action_status import VaultActionStatus +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.VaultsApi(api_client) + vault_account_id = 'vault_account_id_example' # str | The ID of the vault account + asset_id = 'asset_id_example' # str | The ID of the asset + address_id = 'address_id_example' # str | The address for which to add a description. For XRP, use
:, for all other assets, use only the address + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + update_vault_account_asset_address_request = fireblocks_client.UpdateVaultAccountAssetAddressRequest() # UpdateVaultAccountAssetAddressRequest | (optional) + + try: + # Update address description + api_response = api_instance.update_vault_account_asset_address(vault_account_id, asset_id, address_id, idempotency_key=idempotency_key, update_vault_account_asset_address_request=update_vault_account_asset_address_request) + print("The response of VaultsApi->update_vault_account_asset_address:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling VaultsApi->update_vault_account_asset_address: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **vault_account_id** | **str**| The ID of the vault account | + **asset_id** | **str**| The ID of the asset | + **address_id** | **str**| The address for which to add a description. For XRP, use <address>:<tag>, for all other assets, use only the address | + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + **update_vault_account_asset_address_request** | [**UpdateVaultAccountAssetAddressRequest**](UpdateVaultAccountAssetAddressRequest.md)| | [optional] + +### Return type + +[**VaultActionStatus**](VaultActionStatus.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | OK | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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) + +# **update_vault_account_asset_balance** +> VaultAsset update_vault_account_asset_balance(vault_account_id, asset_id, idempotency_key=idempotency_key) + +Refresh asset balance data + +Updates the balance of a specific asset in a vault account. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.vault_asset import VaultAsset +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.VaultsApi(api_client) + vault_account_id = 'vault_account_id_example' # str | The ID of the vault account to return + asset_id = 'asset_id_example' # str | The ID of the asset + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + + try: + # Refresh asset balance data + api_response = api_instance.update_vault_account_asset_balance(vault_account_id, asset_id, idempotency_key=idempotency_key) + print("The response of VaultsApi->update_vault_account_asset_balance:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling VaultsApi->update_vault_account_asset_balance: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **vault_account_id** | **str**| The ID of the vault account to return | + **asset_id** | **str**| The ID of the asset | + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + +### Return type + +[**VaultAsset**](VaultAsset.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A VaultAsset object | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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) + diff --git a/docs/VendorDto.md b/docs/VendorDto.md new file mode 100644 index 00000000..7995f840 --- /dev/null +++ b/docs/VendorDto.md @@ -0,0 +1,30 @@ +# VendorDto + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | The unique identifier of the vendor of this contract template | +**name** | **str** | The name of the vendor of this contract template | + +## Example + +```python +from fireblocks_client.models.vendor_dto import VendorDto + +# TODO update the JSON string below +json = "{}" +# create an instance of VendorDto from a JSON string +vendor_dto_instance = VendorDto.from_json(json) +# print the JSON string representation of the object +print VendorDto.to_json() + +# convert the object into a dict +vendor_dto_dict = vendor_dto_instance.to_dict() +# create an instance of VendorDto from a dict +vendor_dto_form_dict = vendor_dto.from_dict(vendor_dto_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/docs/WalletAsset.md b/docs/WalletAsset.md new file mode 100644 index 00000000..cf310063 --- /dev/null +++ b/docs/WalletAsset.md @@ -0,0 +1,35 @@ +# WalletAsset + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**balance** | **str** | | [optional] +**locked_amount** | **str** | | [optional] +**status** | [**ConfigChangeRequestStatus**](ConfigChangeRequestStatus.md) | | [optional] +**address** | **str** | | [optional] +**tag** | **str** | | [optional] +**activation_time** | **str** | | [optional] + +## Example + +```python +from fireblocks_client.models.wallet_asset import WalletAsset + +# TODO update the JSON string below +json = "{}" +# create an instance of WalletAsset from a JSON string +wallet_asset_instance = WalletAsset.from_json(json) +# print the JSON string representation of the object +print WalletAsset.to_json() + +# convert the object into a dict +wallet_asset_dict = wallet_asset_instance.to_dict() +# create an instance of WalletAsset from a dict +wallet_asset_form_dict = wallet_asset.from_dict(wallet_asset_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/docs/WalletAssetAdditionalInfo.md b/docs/WalletAssetAdditionalInfo.md new file mode 100644 index 00000000..2cc88e06 --- /dev/null +++ b/docs/WalletAssetAdditionalInfo.md @@ -0,0 +1,44 @@ +# WalletAssetAdditionalInfo + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_holder_given_name** | **str** | | [optional] +**account_holder_surname** | **str** | | [optional] +**account_holder_city** | **str** | | [optional] +**account_holder_country** | **str** | | [optional] +**account_holder_address1** | **str** | | [optional] +**account_holder_address2** | **str** | | [optional] +**account_holder_district** | **str** | | [optional] +**account_holder_postal_code** | **str** | | [optional] +**aba_routing_number** | **str** | | [optional] +**aba_account_number** | **str** | | [optional] +**aba_country** | **str** | | [optional] +**iban** | **str** | | [optional] +**iban_city** | **str** | | [optional] +**iban_country** | **str** | | [optional] +**spei_clabe** | **str** | | [optional] +**spei_name** | **str** | | [optional] + +## Example + +```python +from fireblocks_client.models.wallet_asset_additional_info import WalletAssetAdditionalInfo + +# TODO update the JSON string below +json = "{}" +# create an instance of WalletAssetAdditionalInfo from a JSON string +wallet_asset_additional_info_instance = WalletAssetAdditionalInfo.from_json(json) +# print the JSON string representation of the object +print WalletAssetAdditionalInfo.to_json() + +# convert the object into a dict +wallet_asset_additional_info_dict = wallet_asset_additional_info_instance.to_dict() +# create an instance of WalletAssetAdditionalInfo from a dict +wallet_asset_additional_info_form_dict = wallet_asset_additional_info.from_dict(wallet_asset_additional_info_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/docs/Web3ConnectionsApi.md b/docs/Web3ConnectionsApi.md new file mode 100644 index 00000000..963dbbcf --- /dev/null +++ b/docs/Web3ConnectionsApi.md @@ -0,0 +1,304 @@ +# fireblocks_client.Web3ConnectionsApi + +All URIs are relative to *https://api.fireblocks.io/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create**](Web3ConnectionsApi.md#create) | **POST** /connections/wc | Create a new Web3 connection. +[**get**](Web3ConnectionsApi.md#get) | **GET** /connections | List all open Web3 connections. +[**remove**](Web3ConnectionsApi.md#remove) | **DELETE** /connections/wc/{id} | Remove an existing Web3 connection. +[**submit**](Web3ConnectionsApi.md#submit) | **PUT** /connections/wc/{id} | Respond to a pending Web3 connection request. + + +# **create** +> CreateConnectionResponse create(create_connection_request, idempotency_key=idempotency_key) + +Create a new Web3 connection. + +Initiate a new Web3 connection. * Note: After this succeeds, make a request to `PUT /v1/connections/wc/{id}` (below) to approve or reject the new Web3 connection. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.create_connection_request import CreateConnectionRequest +from fireblocks_client.models.create_connection_response import CreateConnectionResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.Web3ConnectionsApi(api_client) + create_connection_request = fireblocks_client.CreateConnectionRequest() # CreateConnectionRequest | + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + + try: + # Create a new Web3 connection. + api_response = api_instance.create(create_connection_request, idempotency_key=idempotency_key) + print("The response of Web3ConnectionsApi->create:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling Web3ConnectionsApi->create: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **create_connection_request** | [**CreateConnectionRequest**](CreateConnectionRequest.md)| | + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + +### Return type + +[**CreateConnectionResponse**](CreateConnectionResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | Web3 connection initiated successfully | * X-Request-ID -
| +**400** | Invalid data sent | * X-Request-ID -
| +**500** | Something went wrong | * X-Request-ID -
| + +[[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** +> GetConnectionsResponse get(order=order, filter=filter, sort=sort, page_size=page_size, next=next) + +List all open Web3 connections. + +Get open Web3 connections. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.get_connections_response import GetConnectionsResponse +from fireblocks_client.models.get_filter_parameter import GetFilterParameter +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.Web3ConnectionsApi(api_client) + order = 'ASC' # str | List order; ascending or descending. (optional) (default to 'ASC') + filter = fireblocks_client.GetFilterParameter() # GetFilterParameter | Parsed filter object (optional) + sort = 'createdAt' # str | Property to sort Web3 connections by. (optional) (default to 'createdAt') + page_size = 10 # float | Amount of results to return in the next page. (optional) (default to 10) + next = 'next_example' # str | Cursor to the next page (optional) + + try: + # List all open Web3 connections. + api_response = api_instance.get(order=order, filter=filter, sort=sort, page_size=page_size, next=next) + print("The response of Web3ConnectionsApi->get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling Web3ConnectionsApi->get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **order** | **str**| List order; ascending or descending. | [optional] [default to 'ASC'] + **filter** | [**GetFilterParameter**](.md)| Parsed filter object | [optional] + **sort** | **str**| Property to sort Web3 connections by. | [optional] [default to 'createdAt'] + **page_size** | **float**| Amount of results to return in the next page. | [optional] [default to 10] + **next** | **str**| Cursor to the next page | [optional] + +### Return type + +[**GetConnectionsResponse**](GetConnectionsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | | * X-Request-ID -
| +**400** | Query parameters were invalid | * X-Request-ID -
| +**500** | Something went wrong | * X-Request-ID -
| + +[[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) + +# **remove** +> remove(id) + +Remove an existing Web3 connection. + +Remove a Web3 connection + +### Example + + +```python +import fireblocks_client +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.Web3ConnectionsApi(api_client) + id = 'id_example' # str | The ID of the existing Web3 connection to remove. + + try: + # Remove an existing Web3 connection. + api_instance.remove(id) + except Exception as e: + print("Exception when calling Web3ConnectionsApi->remove: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| The ID of the existing Web3 connection to remove. | + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Connection removed successfully | * X-Request-ID -
| +**404** | Connection not found | * X-Request-ID -
| +**500** | Something went wrong | * X-Request-ID -
| + +[[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) + +# **submit** +> submit(id, respond_to_connection_request, idempotency_key=idempotency_key) + +Respond to a pending Web3 connection request. + +Submit a response to *approve* or *reject* an initiated Web3 connection. * Note: This call is used to complete your `POST /v1/connections/wc/` request. After this succeeds, your new Web3 connection is created and functioning. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.respond_to_connection_request import RespondToConnectionRequest +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.Web3ConnectionsApi(api_client) + id = 'id_example' # str | The ID of the initiated Web3 connection to approve. + respond_to_connection_request = fireblocks_client.RespondToConnectionRequest() # RespondToConnectionRequest | + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + + try: + # Respond to a pending Web3 connection request. + api_instance.submit(id, respond_to_connection_request, idempotency_key=idempotency_key) + except Exception as e: + print("Exception when calling Web3ConnectionsApi->submit: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| The ID of the initiated Web3 connection to approve. | + **respond_to_connection_request** | [**RespondToConnectionRequest**](RespondToConnectionRequest.md)| | + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: Not defined + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Connection submitted successfully | * X-Request-ID -
| +**400** | Invalid data sent | * X-Request-ID -
| +**404** | Connection not found | * X-Request-ID -
| +**500** | Something went wrong | * X-Request-ID -
| + +[[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) + diff --git a/docs/WebhooksApi.md b/docs/WebhooksApi.md new file mode 100644 index 00000000..dc9b3d42 --- /dev/null +++ b/docs/WebhooksApi.md @@ -0,0 +1,153 @@ +# fireblocks_client.WebhooksApi + +All URIs are relative to *https://api.fireblocks.io/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**resend_transaction_webhooks**](WebhooksApi.md#resend_transaction_webhooks) | **POST** /webhooks/resend/{txId} | Resend failed webhooks for a transaction by ID +[**resend_webhooks**](WebhooksApi.md#resend_webhooks) | **POST** /webhooks/resend | Resend failed webhooks + + +# **resend_transaction_webhooks** +> ResendWebhooksByTransactionIdResponse resend_transaction_webhooks(tx_id, resend_transaction_webhooks_request, idempotency_key=idempotency_key) + +Resend failed webhooks for a transaction by ID + +Resends failed webhook notifications for a transaction by ID. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.resend_transaction_webhooks_request import ResendTransactionWebhooksRequest +from fireblocks_client.models.resend_webhooks_by_transaction_id_response import ResendWebhooksByTransactionIdResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.WebhooksApi(api_client) + tx_id = 'tx_id_example' # str | The ID of the transaction for webhooks + resend_transaction_webhooks_request = fireblocks_client.ResendTransactionWebhooksRequest() # ResendTransactionWebhooksRequest | + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + + try: + # Resend failed webhooks for a transaction by ID + api_response = api_instance.resend_transaction_webhooks(tx_id, resend_transaction_webhooks_request, idempotency_key=idempotency_key) + print("The response of WebhooksApi->resend_transaction_webhooks:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling WebhooksApi->resend_transaction_webhooks: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **tx_id** | **str**| The ID of the transaction for webhooks | + **resend_transaction_webhooks_request** | [**ResendTransactionWebhooksRequest**](ResendTransactionWebhooksRequest.md)| | + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + +### Return type + +[**ResendWebhooksByTransactionIdResponse**](ResendWebhooksByTransactionIdResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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) + +# **resend_webhooks** +> ResendWebhooksResponse resend_webhooks(idempotency_key=idempotency_key) + +Resend failed webhooks + +Resends all failed webhook notifications. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.resend_webhooks_response import ResendWebhooksResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.WebhooksApi(api_client) + idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional) + + try: + # Resend failed webhooks + api_response = api_instance.resend_webhooks(idempotency_key=idempotency_key) + print("The response of WebhooksApi->resend_webhooks:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling WebhooksApi->resend_webhooks: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **idempotency_key** | **str**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] + +### Return type + +[**ResendWebhooksResponse**](ResendWebhooksResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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) + diff --git a/docs/WhitelistIpAddressesApi.md b/docs/WhitelistIpAddressesApi.md new file mode 100644 index 00000000..0345cf0d --- /dev/null +++ b/docs/WhitelistIpAddressesApi.md @@ -0,0 +1,81 @@ +# fireblocks_client.WhitelistIpAddressesApi + +All URIs are relative to *https://api.fireblocks.io/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_whitelist_ip_addresses**](WhitelistIpAddressesApi.md#get_whitelist_ip_addresses) | **GET** /management/api_users/{userId}/whitelist_ip_addresses | Gets whitelisted ip addresses + + +# **get_whitelist_ip_addresses** +> GetWhitelistIpAddressesResponse get_whitelist_ip_addresses(user_id) + +Gets whitelisted ip addresses + +Gets whitelisted ip addresses for given Api user. + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.get_whitelist_ip_addresses_response import GetWhitelistIpAddressesResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.WhitelistIpAddressesApi(api_client) + user_id = 'user_id_example' # str | The ID of the api user + + try: + # Gets whitelisted ip addresses + api_response = api_instance.get_whitelist_ip_addresses(user_id) + print("The response of WhitelistIpAddressesApi->get_whitelist_ip_addresses:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling WhitelistIpAddressesApi->get_whitelist_ip_addresses: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **user_id** | **str**| The ID of the api user | + +### Return type + +[**GetWhitelistIpAddressesResponse**](GetWhitelistIpAddressesResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | successfully got whitelisted ip addresses | * X-Request-ID -
| +**401** | Unauthorized. Missing / invalid JWT token in Authorization header. | * X-Request-ID -
| +**403** | Lacking permissions. | * X-Request-ID -
| +**5XX** | Internal error. | * X-Request-ID -
| +**0** | Error Response | * X-Request-ID -
| + +[[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) + diff --git a/docs/WithdrawRequestDto.md b/docs/WithdrawRequestDto.md new file mode 100644 index 00000000..bd1f21f5 --- /dev/null +++ b/docs/WithdrawRequestDto.md @@ -0,0 +1,32 @@ +# WithdrawRequestDto + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | id of position to withdraw | +**fee** | **str** | Represents the fee for a transaction, which can be specified as a percentage value. Only one of fee/feeLevel is required. | [optional] +**fee_level** | **str** | Represents the fee level for a transaction, which can be set as slow, medium, or fast. Only one of fee/feeLevel is required. | [optional] +**tx_note** | **str** | The note to associate with the transactions. | [optional] + +## Example + +```python +from fireblocks_client.models.withdraw_request_dto import WithdrawRequestDto + +# TODO update the JSON string below +json = "{}" +# create an instance of WithdrawRequestDto from a JSON string +withdraw_request_dto_instance = WithdrawRequestDto.from_json(json) +# print the JSON string representation of the object +print WithdrawRequestDto.to_json() + +# convert the object into a dict +withdraw_request_dto_dict = withdraw_request_dto_instance.to_dict() +# create an instance of WithdrawRequestDto from a dict +withdraw_request_dto_form_dict = withdraw_request_dto.from_dict(withdraw_request_dto_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/docs/WorkflowConfigStatus.md b/docs/WorkflowConfigStatus.md new file mode 100644 index 00000000..6e71553f --- /dev/null +++ b/docs/WorkflowConfigStatus.md @@ -0,0 +1,11 @@ +# WorkflowConfigStatus + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[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/WorkflowConfigurationId.md b/docs/WorkflowConfigurationId.md new file mode 100644 index 00000000..e26fb865 --- /dev/null +++ b/docs/WorkflowConfigurationId.md @@ -0,0 +1,29 @@ +# WorkflowConfigurationId + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**config_id** | **str** | | + +## Example + +```python +from fireblocks_client.models.workflow_configuration_id import WorkflowConfigurationId + +# TODO update the JSON string below +json = "{}" +# create an instance of WorkflowConfigurationId from a JSON string +workflow_configuration_id_instance = WorkflowConfigurationId.from_json(json) +# print the JSON string representation of the object +print WorkflowConfigurationId.to_json() + +# convert the object into a dict +workflow_configuration_id_dict = workflow_configuration_id_instance.to_dict() +# create an instance of WorkflowConfigurationId from a dict +workflow_configuration_id_form_dict = workflow_configuration_id.from_dict(workflow_configuration_id_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/docs/WorkflowExecutionOperation.md b/docs/WorkflowExecutionOperation.md new file mode 100644 index 00000000..815097d5 --- /dev/null +++ b/docs/WorkflowExecutionOperation.md @@ -0,0 +1,34 @@ +# WorkflowExecutionOperation + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**operation_id** | **str** | | +**status** | [**ExecutionOperationStatus**](ExecutionOperationStatus.md) | | +**operation_type** | [**DisbursementOperationType**](DisbursementOperationType.md) | | +**validation_failure** | [**DisbursementValidationFailure**](DisbursementValidationFailure.md) | | [optional] +**execution** | [**DisbursementOperationExecution**](DisbursementOperationExecution.md) | | [optional] +**preview** | [**DisbursementOperationPreview**](DisbursementOperationPreview.md) | | [optional] + +## Example + +```python +from fireblocks_client.models.workflow_execution_operation import WorkflowExecutionOperation + +# TODO update the JSON string below +json = "{}" +# create an instance of WorkflowExecutionOperation from a JSON string +workflow_execution_operation_instance = WorkflowExecutionOperation.from_json(json) +# print the JSON string representation of the object +print WorkflowExecutionOperation.to_json() + +# convert the object into a dict +workflow_execution_operation_dict = workflow_execution_operation_instance.to_dict() +# create an instance of WorkflowExecutionOperation from a dict +workflow_execution_operation_form_dict = workflow_execution_operation.from_dict(workflow_execution_operation_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/docs/WorkspaceStatusBetaApi.md b/docs/WorkspaceStatusBetaApi.md new file mode 100644 index 00000000..cf18ea71 --- /dev/null +++ b/docs/WorkspaceStatusBetaApi.md @@ -0,0 +1,74 @@ +# fireblocks_client.WorkspaceStatusBetaApi + +All URIs are relative to *https://api.fireblocks.io/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_workspace_status**](WorkspaceStatusBetaApi.md#get_workspace_status) | **GET** /management/workspace_status | Returns current workspace status + + +# **get_workspace_status** +> GetWorkspaceStatusResponse get_workspace_status() + +Returns current workspace status + +Returns current workspace status + +### Example + + +```python +import fireblocks_client +from fireblocks_client.models.get_workspace_status_response import GetWorkspaceStatusResponse +from fireblocks_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.fireblocks.io/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = fireblocks_client.Configuration( + host = "https://api.fireblocks.io/v1" +) + + +# Enter a context with an instance of the API client +with fireblocks_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = fireblocks_client.WorkspaceStatusBetaApi(api_client) + + try: + # Returns current workspace status + api_response = api_instance.get_workspace_status() + print("The response of WorkspaceStatusBetaApi->get_workspace_status:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling WorkspaceStatusBetaApi->get_workspace_status: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**GetWorkspaceStatusResponse**](GetWorkspaceStatusResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Current workspace status | - | +**404** | Workspace not found | - | + +[[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) + diff --git a/docs/WriteAbiFunction.md b/docs/WriteAbiFunction.md new file mode 100644 index 00000000..a0845574 --- /dev/null +++ b/docs/WriteAbiFunction.md @@ -0,0 +1,34 @@ +# WriteAbiFunction + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**state_mutability** | **str** | | +**outputs** | [**List[Parameter]**](Parameter.md) | | [optional] +**type** | **str** | | +**name** | **str** | | [optional] +**inputs** | [**List[ParameterWithValue]**](ParameterWithValue.md) | | +**description** | **str** | | [optional] + +## Example + +```python +from fireblocks_client.models.write_abi_function import WriteAbiFunction + +# TODO update the JSON string below +json = "{}" +# create an instance of WriteAbiFunction from a JSON string +write_abi_function_instance = WriteAbiFunction.from_json(json) +# print the JSON string representation of the object +print WriteAbiFunction.to_json() + +# convert the object into a dict +write_abi_function_dict = write_abi_function_instance.to_dict() +# create an instance of WriteAbiFunction from a dict +write_abi_function_form_dict = write_abi_function.from_dict(write_abi_function_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/docs/WriteCallFunctionDto.md b/docs/WriteCallFunctionDto.md new file mode 100644 index 00000000..a08e683d --- /dev/null +++ b/docs/WriteCallFunctionDto.md @@ -0,0 +1,34 @@ +# WriteCallFunctionDto + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**vault_account_id** | **str** | The vault account id this contract was deploy from | +**abi_function** | [**List[WriteAbiFunction]**](WriteAbiFunction.md) | The abi of the read function you wish to call | +**amount** | **str** | Amount in base asset. Being used in payable functions | [optional] +**fee_level** | **str** | Fee level for the write function transaction. interchangeable with the 'fee' field | [optional] +**fee** | **str** | Max fee amount for the write function transaction. interchangeable with the 'feeLevel' field | [optional] +**note** | **str** | Custom note, not sent to the blockchain, that describes the transaction at your Fireblocks workspace | [optional] + +## Example + +```python +from fireblocks_client.models.write_call_function_dto import WriteCallFunctionDto + +# TODO update the JSON string below +json = "{}" +# create an instance of WriteCallFunctionDto from a JSON string +write_call_function_dto_instance = WriteCallFunctionDto.from_json(json) +# print the JSON string representation of the object +print WriteCallFunctionDto.to_json() + +# convert the object into a dict +write_call_function_dto_dict = write_call_function_dto_instance.to_dict() +# create an instance of WriteCallFunctionDto from a dict +write_call_function_dto_form_dict = write_call_function_dto.from_dict(write_call_function_dto_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/docs/WriteCallFunctionResponseDto.md b/docs/WriteCallFunctionResponseDto.md new file mode 100644 index 00000000..5d1de553 --- /dev/null +++ b/docs/WriteCallFunctionResponseDto.md @@ -0,0 +1,29 @@ +# WriteCallFunctionResponseDto + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**tx_id** | **str** | | + +## Example + +```python +from fireblocks_client.models.write_call_function_response_dto import WriteCallFunctionResponseDto + +# TODO update the JSON string below +json = "{}" +# create an instance of WriteCallFunctionResponseDto from a JSON string +write_call_function_response_dto_instance = WriteCallFunctionResponseDto.from_json(json) +# print the JSON string representation of the object +print WriteCallFunctionResponseDto.to_json() + +# convert the object into a dict +write_call_function_response_dto_dict = write_call_function_response_dto_instance.to_dict() +# create an instance of WriteCallFunctionResponseDto from a dict +write_call_function_response_dto_form_dict = write_call_function_response_dto.from_dict(write_call_function_response_dto_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/docs/apis/tags/AuditLogsApi.md b/docs/apis/tags/AuditLogsApi.md deleted file mode 100644 index b85e33bc..00000000 --- a/docs/apis/tags/AuditLogsApi.md +++ /dev/null @@ -1,129 +0,0 @@ - -# fireblocks_client.apis.tags.audit_logs_api.AuditLogsApi - -All URIs are relative to *https://api.fireblocks.io/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**get_audits**](#get_audits) | **get** /audits | Get audit logs - -# **get_audits** - -> get_audits(time_period) - -Get audit logs - -Get all audits - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import audit_logs_api -from fireblocks_client.model.error import Error -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = audit_logs_api.AuditLogsApi() -# example passing only required values which don't have defaults set -params = { - 'timePeriod': "DAY", -} -try: - # Get audit logs - api_response = api_instance.get_audits(params) -except fireblocks_client.ApiException as e: - print("Exception when calling AuditLogsApi->get_audits: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### query_params -#### RequestQueryParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -timePeriod | TimePeriodSchema | | - - -# TimePeriodSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | must be one of ["DAY", "WEEK", ] - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#get_audits.ApiResponseFor200) | Audit logs from requested time period -default | [ApiResponseForDefault](#get_audits.ApiResponseForDefault) | Error Response - -#### get_audits.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | Unset | body was not defined | -headers | ResponseHeadersFor200 | | -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### get_audits.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - diff --git a/docs/apis/tags/BlockchainsAssetsApi.md b/docs/apis/tags/BlockchainsAssetsApi.md deleted file mode 100644 index 84103953..00000000 --- a/docs/apis/tags/BlockchainsAssetsApi.md +++ /dev/null @@ -1,112 +0,0 @@ - -# fireblocks_client.apis.tags.blockchains_assets_api.BlockchainsAssetsApi - -All URIs are relative to *https://api.fireblocks.io/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**get_supported_assets**](#get_supported_assets) | **get** /supported_assets | List all asset types supported by Fireblocks - -# **get_supported_assets** - -> [AssetTypeResponse] get_supported_assets() - -List all asset types supported by Fireblocks - -Returns all asset types supported by Fireblocks. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import blockchains_assets_api -from fireblocks_client.model.asset_type_response import AssetTypeResponse -from fireblocks_client.model.error import Error -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = blockchains_assets_api.BlockchainsAssetsApi() - -``` -### Parameters - -This endpoint does not need any parameter. - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#get_supported_assets.ApiResponseFor200) | A Transaction object -default | [ApiResponseForDefault](#get_supported_assets.ApiResponseForDefault) | Error Response - -#### get_supported_assets.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBody, ] | | -headers | ResponseHeadersFor200 | | - -# SchemaFor200ResponseBody - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**AssetTypeResponse**]({{complexTypePrefix}}AssetTypeResponse.md) | [**AssetTypeResponse**]({{complexTypePrefix}}AssetTypeResponse.md) | [**AssetTypeResponse**]({{complexTypePrefix}}AssetTypeResponse.md) | | -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### get_supported_assets.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - diff --git a/docs/apis/tags/ContractsApi.md b/docs/apis/tags/ContractsApi.md deleted file mode 100644 index c6c56335..00000000 --- a/docs/apis/tags/ContractsApi.md +++ /dev/null @@ -1,903 +0,0 @@ - -# fireblocks_client.apis.tags.contracts_api.ContractsApi - -All URIs are relative to *https://api.fireblocks.io/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**add_asset_to_contract**](#add_asset_to_contract) | **post** /contracts/{contractId}/{assetId} | Add an asset to a contract -[**create_contract**](#create_contract) | **post** /contracts | Create a contract -[**delete_contract**](#delete_contract) | **delete** /contracts/{contractId} | Delete a contract -[**get_asset_in_contract**](#get_asset_in_contract) | **get** /contracts/{contractId}/{assetId} | Find a contract asset -[**get_contract_by_id**](#get_contract_by_id) | **get** /contracts/{contractId} | Find a specific contract -[**get_contracts**](#get_contracts) | **get** /contracts | List contracts -[**remove_asset_from_contract**](#remove_asset_from_contract) | **delete** /contracts/{contractId}/{assetId} | Delete a contract asset - -# **add_asset_to_contract** - -> ExternalWalletAsset add_asset_to_contract(contract_idasset_id) - -Add an asset to a contract - -Adds an asset to an existing contract. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import contracts_api -from fireblocks_client.model.external_wallet_asset import ExternalWalletAsset -from fireblocks_client.model.error import Error -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = contracts_api.ContractsApi() -# example passing only required values which don't have defaults set -params = { - 'contractId': "contractId_example", - 'assetId': "assetId_example", - 'any_type': None -} -try: - # Add an asset to a contract - api_response = api_instance.add_asset_to_contract(params) - pprint(api_response) -except fireblocks_client.ApiException as e: - print("Exception when calling ContractsApi->add_asset_to_contract: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson, Unset] | optional, default is unset | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('*/*', 'application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**address** | str, | str, | The contract's address (or xpub) of the wallet | -**tag** | str, | str, | The destination tag, for XRP wallets | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -contractId | ContractIdSchema | | -assetId | AssetIdSchema | | - -# ContractIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# AssetIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#add_asset_to_contract.ApiResponseFor200) | A Wallet Asset object -default | [ApiResponseForDefault](#add_asset_to_contract.ApiResponseForDefault) | Error Response - -#### add_asset_to_contract.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBody, ] | | -headers | ResponseHeadersFor200 | | - -# SchemaFor200ResponseBody -Type | Description | Notes -------------- | ------------- | ------------- -[**ExternalWalletAsset**](../../models/ExternalWalletAsset.md) | | - -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### add_asset_to_contract.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **create_contract** - -> UnmanagedWallet create_contract() - -Create a contract - -Creates a new contract. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import contracts_api -from fireblocks_client.model.unmanaged_wallet import UnmanagedWallet -from fireblocks_client.model.error import Error -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = contracts_api.ContractsApi() - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson, Unset] | optional, default is unset | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('*/*', 'application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**name** | str, | str, | the contract's display name | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#create_contract.ApiResponseFor200) | A Wallet object -default | [ApiResponseForDefault](#create_contract.ApiResponseForDefault) | Error Response - -#### create_contract.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBody, ] | | -headers | ResponseHeadersFor200 | | - -# SchemaFor200ResponseBody -Type | Description | Notes -------------- | ------------- | ------------- -[**UnmanagedWallet**](../../models/UnmanagedWallet.md) | | - -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### create_contract.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **delete_contract** - -> delete_contract(contract_id) - -Delete a contract - -Deletes a contract by ID. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import contracts_api -from fireblocks_client.model.error import Error -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = contracts_api.ContractsApi() -# example passing only required values which don't have defaults set -params = { - 'contractId': "contractId_example", -} -try: - # Delete a contract - api_response = api_instance.delete_contract(params) -except fireblocks_client.ApiException as e: - print("Exception when calling ContractsApi->delete_contract: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -contractId | ContractIdSchema | | - -# ContractIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -201 | [ApiResponseFor201](#delete_contract.ApiResponseFor201) | OK -default | [ApiResponseForDefault](#delete_contract.ApiResponseForDefault) | Error Response - -#### delete_contract.ApiResponseFor201 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | Unset | body was not defined | -headers | ResponseHeadersFor201 | | -#### ResponseHeadersFor201 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### delete_contract.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[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_asset_in_contract** - -> ExternalWalletAsset get_asset_in_contract(contract_idasset_id) - -Find a contract asset - -Returns a contract asset by ID. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import contracts_api -from fireblocks_client.model.external_wallet_asset import ExternalWalletAsset -from fireblocks_client.model.error import Error -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = contracts_api.ContractsApi() -# example passing only required values which don't have defaults set -params = { - 'contractId': "contractId_example", - 'assetId': "assetId_example", -} -try: - # Find a contract asset - api_response = api_instance.get_asset_in_contract(params) - pprint(api_response) -except fireblocks_client.ApiException as e: - print("Exception when calling ContractsApi->get_asset_in_contract: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -accept_content_types | typing.Tuple[str] | default is ('*/*', 'application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -contractId | ContractIdSchema | | -assetId | AssetIdSchema | | - -# ContractIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# AssetIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#get_asset_in_contract.ApiResponseFor200) | A Wallet Asset object -default | [ApiResponseForDefault](#get_asset_in_contract.ApiResponseForDefault) | Error Response - -#### get_asset_in_contract.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBody, ] | | -headers | ResponseHeadersFor200 | | - -# SchemaFor200ResponseBody -Type | Description | Notes -------------- | ------------- | ------------- -[**ExternalWalletAsset**](../../models/ExternalWalletAsset.md) | | - -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### get_asset_in_contract.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[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_contract_by_id** - -> UnmanagedWallet get_contract_by_id(contract_id) - -Find a specific contract - -Returns a contract by ID. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import contracts_api -from fireblocks_client.model.unmanaged_wallet import UnmanagedWallet -from fireblocks_client.model.error import Error -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = contracts_api.ContractsApi() -# example passing only required values which don't have defaults set -params = { - 'contractId': "contractId_example", -} -try: - # Find a specific contract - api_response = api_instance.get_contract_by_id(params) - pprint(api_response) -except fireblocks_client.ApiException as e: - print("Exception when calling ContractsApi->get_contract_by_id: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -accept_content_types | typing.Tuple[str] | default is ('*/*', 'application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -contractId | ContractIdSchema | | - -# ContractIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#get_contract_by_id.ApiResponseFor200) | A Wallet object -default | [ApiResponseForDefault](#get_contract_by_id.ApiResponseForDefault) | Error Response - -#### get_contract_by_id.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBody, ] | | -headers | ResponseHeadersFor200 | | - -# SchemaFor200ResponseBody -Type | Description | Notes -------------- | ------------- | ------------- -[**UnmanagedWallet**](../../models/UnmanagedWallet.md) | | - -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### get_contract_by_id.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[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_contracts** - -> [UnmanagedWallet] get_contracts() - -List contracts - -Gets a list of contracts. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import contracts_api -from fireblocks_client.model.unmanaged_wallet import UnmanagedWallet -from fireblocks_client.model.error import Error -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = contracts_api.ContractsApi() - -``` -### Parameters - -This endpoint does not need any parameter. - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#get_contracts.ApiResponseFor200) | A list of contracts -default | [ApiResponseForDefault](#get_contracts.ApiResponseForDefault) | Error Response - -#### get_contracts.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBody, ] | | -headers | ResponseHeadersFor200 | | - -# SchemaFor200ResponseBody - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**UnmanagedWallet**]({{complexTypePrefix}}UnmanagedWallet.md) | [**UnmanagedWallet**]({{complexTypePrefix}}UnmanagedWallet.md) | [**UnmanagedWallet**]({{complexTypePrefix}}UnmanagedWallet.md) | | -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### get_contracts.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **remove_asset_from_contract** - -> remove_asset_from_contract(contract_idasset_id) - -Delete a contract asset - -Deletes a contract asset by ID. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import contracts_api -from fireblocks_client.model.error import Error -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = contracts_api.ContractsApi() -# example passing only required values which don't have defaults set -params = { - 'contractId': "contractId_example", - 'assetId': "assetId_example", -} -try: - # Delete a contract asset - api_response = api_instance.remove_asset_from_contract(params) -except fireblocks_client.ApiException as e: - print("Exception when calling ContractsApi->remove_asset_from_contract: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -contractId | ContractIdSchema | | -assetId | AssetIdSchema | | - -# ContractIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# AssetIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -201 | [ApiResponseFor201](#remove_asset_from_contract.ApiResponseFor201) | OK -default | [ApiResponseForDefault](#remove_asset_from_contract.ApiResponseForDefault) | Error Response - -#### remove_asset_from_contract.ApiResponseFor201 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | Unset | body was not defined | -headers | ResponseHeadersFor201 | | -#### ResponseHeadersFor201 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### remove_asset_from_contract.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - diff --git a/docs/apis/tags/ExchangeAccountsApi.md b/docs/apis/tags/ExchangeAccountsApi.md deleted file mode 100644 index 738c8d66..00000000 --- a/docs/apis/tags/ExchangeAccountsApi.md +++ /dev/null @@ -1,652 +0,0 @@ - -# fireblocks_client.apis.tags.exchange_accounts_api.ExchangeAccountsApi - -All URIs are relative to *https://api.fireblocks.io/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**convert_assets**](#convert_assets) | **post** /exchange_accounts/{exchangeAccountId}/convert | Convert exchange account funds from the source asset to the destination asset. Coinbase (USD to USDC, USDC to USD) and Bitso (MXN to USD) are supported conversions. -[**get_exchange_account_asset**](#get_exchange_account_asset) | **get** /exchange_accounts/{exchangeAccountId}/{assetId} | Find an asset for an exchange account -[**get_exchange_account_by_id**](#get_exchange_account_by_id) | **get** /exchange_accounts/{exchangeAccountId} | Find a specific exchange account -[**get_exchange_accounts**](#get_exchange_accounts) | **get** /exchange_accounts | List exchange accounts -[**internal_transfer**](#internal_transfer) | **post** /exchange_accounts/{exchangeAccountId}/internal_transfer | Internal tranfer for exchange accounts - -# **convert_assets** - -> convert_assets(exchange_account_id) - -Convert exchange account funds from the source asset to the destination asset. Coinbase (USD to USDC, USDC to USD) and Bitso (MXN to USD) are supported conversions. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import exchange_accounts_api -from fireblocks_client.model.error import Error -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = exchange_accounts_api.ExchangeAccountsApi() -# example passing only required values which don't have defaults set -params = { - 'exchangeAccountId': "exchangeAccountId_example", - 'any_type': None -} -try: - # Convert exchange account funds from the source asset to the destination asset. Coinbase (USD to USDC, USDC to USD) and Bitso (MXN to USD) are supported conversions. - api_response = api_instance.convert_assets(params) -except fireblocks_client.ApiException as e: - print("Exception when calling ExchangeAccountsApi->convert_assets: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson, Unset] | optional, default is unset | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**amount** | decimal.Decimal, int, float, | decimal.Decimal, | The amount to transfer (in the currency of the source asset) | -**destAsset** | str, | str, | Name of the destination asset (must be in a currency that is supported for conversions in the selected exchange type that corresponds to your exchange ID) | -**srcAsset** | str, | str, | Name of the source asset (must be in a currency that is supported for conversions in the selected exchange type that corresponds to your exchange ID) | -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -exchangeAccountId | ExchangeAccountIdSchema | | - -# ExchangeAccountIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#convert_assets.ApiResponseFor200) | Conversion successful -default | [ApiResponseForDefault](#convert_assets.ApiResponseForDefault) | Error Response - -#### convert_assets.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | Unset | body was not defined | -headers | ResponseHeadersFor200 | | -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### convert_assets.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[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_exchange_account_asset** - -> ExchangeAsset get_exchange_account_asset(exchange_account_idasset_id) - -Find an asset for an exchange account - -Returns an asset for an exchange account. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import exchange_accounts_api -from fireblocks_client.model.exchange_asset import ExchangeAsset -from fireblocks_client.model.error import Error -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = exchange_accounts_api.ExchangeAccountsApi() -# example passing only required values which don't have defaults set -params = { - 'exchangeAccountId': "exchangeAccountId_example", - 'assetId': "assetId_example", -} -try: - # Find an asset for an exchange account - api_response = api_instance.get_exchange_account_asset(params) - pprint(api_response) -except fireblocks_client.ApiException as e: - print("Exception when calling ExchangeAccountsApi->get_exchange_account_asset: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -accept_content_types | typing.Tuple[str] | default is ('*/*', 'application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -exchangeAccountId | ExchangeAccountIdSchema | | -assetId | AssetIdSchema | | - -# ExchangeAccountIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# AssetIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#get_exchange_account_asset.ApiResponseFor200) | An ExchangeAccountAsset object -default | [ApiResponseForDefault](#get_exchange_account_asset.ApiResponseForDefault) | Error Response - -#### get_exchange_account_asset.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBody, ] | | -headers | ResponseHeadersFor200 | | - -# SchemaFor200ResponseBody -Type | Description | Notes -------------- | ------------- | ------------- -[**ExchangeAsset**](../../models/ExchangeAsset.md) | | - -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### get_exchange_account_asset.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[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_exchange_account_by_id** - -> ExchangeAccount get_exchange_account_by_id(exchange_account_id) - -Find a specific exchange account - -Returns an exchange account by ID. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import exchange_accounts_api -from fireblocks_client.model.exchange_account import ExchangeAccount -from fireblocks_client.model.error import Error -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = exchange_accounts_api.ExchangeAccountsApi() -# example passing only required values which don't have defaults set -params = { - 'exchangeAccountId': "exchangeAccountId_example", -} -try: - # Find a specific exchange account - api_response = api_instance.get_exchange_account_by_id(params) - pprint(api_response) -except fireblocks_client.ApiException as e: - print("Exception when calling ExchangeAccountsApi->get_exchange_account_by_id: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -accept_content_types | typing.Tuple[str] | default is ('*/*', 'application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -exchangeAccountId | ExchangeAccountIdSchema | | - -# ExchangeAccountIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#get_exchange_account_by_id.ApiResponseFor200) | An ExchangeAccount object -default | [ApiResponseForDefault](#get_exchange_account_by_id.ApiResponseForDefault) | Error Response - -#### get_exchange_account_by_id.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBody, ] | | -headers | ResponseHeadersFor200 | | - -# SchemaFor200ResponseBody -Type | Description | Notes -------------- | ------------- | ------------- -[**ExchangeAccount**](../../models/ExchangeAccount.md) | | - -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### get_exchange_account_by_id.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[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_exchange_accounts** - -> [ExchangeAccount] get_exchange_accounts() - -List exchange accounts - -Returns all exchange accounts. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import exchange_accounts_api -from fireblocks_client.model.exchange_account import ExchangeAccount -from fireblocks_client.model.error import Error -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = exchange_accounts_api.ExchangeAccountsApi() - -``` -### Parameters - -This endpoint does not need any parameter. - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#get_exchange_accounts.ApiResponseFor200) | An ExchangeAccount object -default | [ApiResponseForDefault](#get_exchange_accounts.ApiResponseForDefault) | Error Response - -#### get_exchange_accounts.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBody, ] | | -headers | ResponseHeadersFor200 | | - -# SchemaFor200ResponseBody - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**ExchangeAccount**]({{complexTypePrefix}}ExchangeAccount.md) | [**ExchangeAccount**]({{complexTypePrefix}}ExchangeAccount.md) | [**ExchangeAccount**]({{complexTypePrefix}}ExchangeAccount.md) | | -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### get_exchange_accounts.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **internal_transfer** - -> internal_transfer(exchange_account_id) - -Internal tranfer for exchange accounts - -Transfers funds between trading accounts under the same exchange account. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import exchange_accounts_api -from fireblocks_client.model.create_internal_transfer_request import CreateInternalTransferRequest -from fireblocks_client.model.error import Error -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = exchange_accounts_api.ExchangeAccountsApi() -# example passing only required values which don't have defaults set -params = { - 'exchangeAccountId': "exchangeAccountId_example", - 'create_internal_transfer_request': CreateInternalTransferRequest( - asset="asset_example", - amount="amount_example", - source_type=TradingAccountType("COIN_FUTURES"), - dest_type=TradingAccountType("COIN_FUTURES"), - ) -} -try: - # Internal tranfer for exchange accounts - api_response = api_instance.internal_transfer(params) -except fireblocks_client.ApiException as e: - print("Exception when calling ExchangeAccountsApi->internal_transfer: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson, Unset] | optional, default is unset | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**CreateInternalTransferRequest**](../../models/CreateInternalTransferRequest.md) | | - - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -exchangeAccountId | ExchangeAccountIdSchema | | - -# ExchangeAccountIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -201 | [ApiResponseFor201](#internal_transfer.ApiResponseFor201) | Transfer succeeded -default | [ApiResponseForDefault](#internal_transfer.ApiResponseForDefault) | Error Response - -#### internal_transfer.ApiResponseFor201 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | Unset | body was not defined | -headers | ResponseHeadersFor201 | | -#### ResponseHeadersFor201 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### internal_transfer.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - diff --git a/docs/apis/tags/ExternalWalletsApi.md b/docs/apis/tags/ExternalWalletsApi.md deleted file mode 100644 index 8c506fe2..00000000 --- a/docs/apis/tags/ExternalWalletsApi.md +++ /dev/null @@ -1,1144 +0,0 @@ - -# fireblocks_client.apis.tags.external_wallets_api.ExternalWalletsApi - -All URIs are relative to *https://api.fireblocks.io/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**add_asset_to_external_wallet**](#add_asset_to_external_wallet) | **post** /external_wallets/{walletId}/{assetId} | Add an asset to an external wallet. -[**create_external_wallet**](#create_external_wallet) | **post** /external_wallets | Create an external wallet -[**delete_external_wallet**](#delete_external_wallet) | **delete** /external_wallets/{walletId} | Delete an external wallet -[**get_asset_in_external_wallet**](#get_asset_in_external_wallet) | **get** /external_wallets/{walletId}/{assetId} | Get an asset from an external wallet -[**get_external_wallet_by_id**](#get_external_wallet_by_id) | **get** /external_wallets/{walletId} | Find an external wallet -[**get_external_wallets**](#get_external_wallets) | **get** /external_wallets | List external wallets -[**remove_asset_from_external_wallet**](#remove_asset_from_external_wallet) | **delete** /external_wallets/{walletId}/{assetId} | Delete an asset from an external wallet -[**set_customer_ref_id_for_external_wallet**](#set_customer_ref_id_for_external_wallet) | **post** /external_wallets/{walletId}/set_customer_ref_id | Set an AML customer reference ID for an external wallet - -# **add_asset_to_external_wallet** - -> ExternalWalletAsset add_asset_to_external_wallet(wallet_idasset_id) - -Add an asset to an external wallet. - -Adds an asset to an existing external wallet. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import external_wallets_api -from fireblocks_client.model.external_wallet_asset import ExternalWalletAsset -from fireblocks_client.model.error import Error -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = external_wallets_api.ExternalWalletsApi() -# example passing only required values which don't have defaults set -params = { - 'walletId': "walletId_example", - 'assetId': "assetId_example", - 'any_type': None -} -try: - # Add an asset to an external wallet. - api_response = api_instance.add_asset_to_external_wallet(params) - pprint(api_response) -except fireblocks_client.ApiException as e: - print("Exception when calling ExternalWalletsApi->add_asset_to_external_wallet: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson, Unset] | optional, default is unset | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('*/*', 'application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | - -### Composed Schemas (allOf/anyOf/oneOf/not) -#### oneOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[one_of_0](#one_of_0) | dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | -[one_of_1](#one_of_1) | dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | - -# one_of_0 - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**address** | str, | str, | The wallet's address (or xpub) of the wallet | -**tag** | str, | str, | For XRP wallets, the destination tag; for EOS/XLM, the memo; for the fiat providers (BLINC by BCB Group), the Bank Transfer Description | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# one_of_1 - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[additionalInfo](#additionalInfo)** | dict, frozendict.frozendict, | frozendict.frozendict, | | -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# additionalInfo - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Composed Schemas (allOf/anyOf/oneOf/not) -#### oneOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[one_of_0](#one_of_0) | dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | -[one_of_1](#one_of_1) | dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | -[one_of_2](#one_of_2) | dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | - -# one_of_0 - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**accountHolderCity** | str, | str, | | -**ibanCity** | str, | str, | | -**accountHolderPostalCode** | str, | str, | | -**accountHolderCountry** | str, | str, | | -**iban** | str, | str, | | -**accountHolderGivenName** | str, | str, | | -**ibanCountry** | str, | str, | | -**accountHolderAddress1** | str, | str, | | -**accountHolderSurname** | str, | str, | | [optional] -**accountHolderAddress2** | str, | str, | | [optional] -**accountHolderDistrict** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# one_of_1 - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**abaAccountNumber** | str, | str, | | -**accountHolderCity** | str, | str, | | -**abaRoutingNumber** | str, | str, | | -**accountHolderPostalCode** | str, | str, | | -**accountHolderCountry** | str, | str, | | -**accountHolderGivenName** | str, | str, | | -**accountHolderAddress1** | str, | str, | | -**abaCountry** | str, | str, | | -**accountHolderSurname** | str, | str, | | [optional] -**accountHolderAddress2** | str, | str, | | [optional] -**accountHolderDistrict** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# one_of_2 - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**speiClabe** | str, | str, | | -**speiName** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -walletId | WalletIdSchema | | -assetId | AssetIdSchema | | - -# WalletIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# AssetIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#add_asset_to_external_wallet.ApiResponseFor200) | A Wallet Asset object -default | [ApiResponseForDefault](#add_asset_to_external_wallet.ApiResponseForDefault) | Error Response - -#### add_asset_to_external_wallet.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBody, ] | | -headers | ResponseHeadersFor200 | | - -# SchemaFor200ResponseBody -Type | Description | Notes -------------- | ------------- | ------------- -[**ExternalWalletAsset**](../../models/ExternalWalletAsset.md) | | - -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### add_asset_to_external_wallet.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **create_external_wallet** - -> UnmanagedWallet create_external_wallet() - -Create an external wallet - -Creates a new external wallet with the requested name. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import external_wallets_api -from fireblocks_client.model.unmanaged_wallet import UnmanagedWallet -from fireblocks_client.model.error import Error -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = external_wallets_api.ExternalWalletsApi() - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson, Unset] | optional, default is unset | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('*/*', 'application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**name** | str, | str, | the wallet's display name | [optional] -**customerRefId** | str, | str, | Optional - Sets a customer reference ID | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#create_external_wallet.ApiResponseFor200) | A Wallet object -default | [ApiResponseForDefault](#create_external_wallet.ApiResponseForDefault) | Error Response - -#### create_external_wallet.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBody, ] | | -headers | ResponseHeadersFor200 | | - -# SchemaFor200ResponseBody -Type | Description | Notes -------------- | ------------- | ------------- -[**UnmanagedWallet**](../../models/UnmanagedWallet.md) | | - -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### create_external_wallet.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **delete_external_wallet** - -> delete_external_wallet(wallet_id) - -Delete an external wallet - -Deletes an external wallet by ID. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import external_wallets_api -from fireblocks_client.model.error import Error -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = external_wallets_api.ExternalWalletsApi() -# example passing only required values which don't have defaults set -params = { - 'walletId': "walletId_example", -} -try: - # Delete an external wallet - api_response = api_instance.delete_external_wallet(params) -except fireblocks_client.ApiException as e: - print("Exception when calling ExternalWalletsApi->delete_external_wallet: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -walletId | WalletIdSchema | | - -# WalletIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -201 | [ApiResponseFor201](#delete_external_wallet.ApiResponseFor201) | OK -default | [ApiResponseForDefault](#delete_external_wallet.ApiResponseForDefault) | Error Response - -#### delete_external_wallet.ApiResponseFor201 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | Unset | body was not defined | -headers | ResponseHeadersFor201 | | -#### ResponseHeadersFor201 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### delete_external_wallet.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[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_asset_in_external_wallet** - -> ExternalWalletAsset get_asset_in_external_wallet(wallet_idasset_id) - -Get an asset from an external wallet - -Returns an external wallet by wallet ID and asset ID. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import external_wallets_api -from fireblocks_client.model.external_wallet_asset import ExternalWalletAsset -from fireblocks_client.model.error import Error -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = external_wallets_api.ExternalWalletsApi() -# example passing only required values which don't have defaults set -params = { - 'walletId': "walletId_example", - 'assetId': "assetId_example", -} -try: - # Get an asset from an external wallet - api_response = api_instance.get_asset_in_external_wallet(params) - pprint(api_response) -except fireblocks_client.ApiException as e: - print("Exception when calling ExternalWalletsApi->get_asset_in_external_wallet: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -accept_content_types | typing.Tuple[str] | default is ('*/*', 'application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -walletId | WalletIdSchema | | -assetId | AssetIdSchema | | - -# WalletIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# AssetIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#get_asset_in_external_wallet.ApiResponseFor200) | A Wallet Asset object -default | [ApiResponseForDefault](#get_asset_in_external_wallet.ApiResponseForDefault) | Error Response - -#### get_asset_in_external_wallet.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBody, ] | | -headers | ResponseHeadersFor200 | | - -# SchemaFor200ResponseBody -Type | Description | Notes -------------- | ------------- | ------------- -[**ExternalWalletAsset**](../../models/ExternalWalletAsset.md) | | - -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### get_asset_in_external_wallet.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[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_external_wallet_by_id** - -> UnmanagedWallet get_external_wallet_by_id(wallet_id) - -Find an external wallet - -Returns an external wallet by ID. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import external_wallets_api -from fireblocks_client.model.unmanaged_wallet import UnmanagedWallet -from fireblocks_client.model.error import Error -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = external_wallets_api.ExternalWalletsApi() -# example passing only required values which don't have defaults set -params = { - 'walletId': "walletId_example", -} -try: - # Find an external wallet - api_response = api_instance.get_external_wallet_by_id(params) - pprint(api_response) -except fireblocks_client.ApiException as e: - print("Exception when calling ExternalWalletsApi->get_external_wallet_by_id: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -accept_content_types | typing.Tuple[str] | default is ('*/*', 'application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -walletId | WalletIdSchema | | - -# WalletIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#get_external_wallet_by_id.ApiResponseFor200) | A Wallet object -default | [ApiResponseForDefault](#get_external_wallet_by_id.ApiResponseForDefault) | Error Response - -#### get_external_wallet_by_id.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBody, ] | | -headers | ResponseHeadersFor200 | | - -# SchemaFor200ResponseBody -Type | Description | Notes -------------- | ------------- | ------------- -[**UnmanagedWallet**](../../models/UnmanagedWallet.md) | | - -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### get_external_wallet_by_id.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[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_external_wallets** - -> [UnmanagedWallet] get_external_wallets() - -List external wallets - -Gets a list of external wallets under the workspace. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import external_wallets_api -from fireblocks_client.model.unmanaged_wallet import UnmanagedWallet -from fireblocks_client.model.error import Error -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = external_wallets_api.ExternalWalletsApi() - -``` -### Parameters - -This endpoint does not need any parameter. - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#get_external_wallets.ApiResponseFor200) | A list of external wallets -default | [ApiResponseForDefault](#get_external_wallets.ApiResponseForDefault) | Error Response - -#### get_external_wallets.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBody, ] | | -headers | ResponseHeadersFor200 | | - -# SchemaFor200ResponseBody - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**UnmanagedWallet**]({{complexTypePrefix}}UnmanagedWallet.md) | [**UnmanagedWallet**]({{complexTypePrefix}}UnmanagedWallet.md) | [**UnmanagedWallet**]({{complexTypePrefix}}UnmanagedWallet.md) | | -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### get_external_wallets.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **remove_asset_from_external_wallet** - -> remove_asset_from_external_wallet(wallet_idasset_id) - -Delete an asset from an external wallet - -Deletes an external wallet asset by ID. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import external_wallets_api -from fireblocks_client.model.error import Error -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = external_wallets_api.ExternalWalletsApi() -# example passing only required values which don't have defaults set -params = { - 'walletId': "walletId_example", - 'assetId': "assetId_example", -} -try: - # Delete an asset from an external wallet - api_response = api_instance.remove_asset_from_external_wallet(params) -except fireblocks_client.ApiException as e: - print("Exception when calling ExternalWalletsApi->remove_asset_from_external_wallet: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -walletId | WalletIdSchema | | -assetId | AssetIdSchema | | - -# WalletIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# AssetIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -201 | [ApiResponseFor201](#remove_asset_from_external_wallet.ApiResponseFor201) | OK -default | [ApiResponseForDefault](#remove_asset_from_external_wallet.ApiResponseForDefault) | Error Response - -#### remove_asset_from_external_wallet.ApiResponseFor201 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | Unset | body was not defined | -headers | ResponseHeadersFor201 | | -#### ResponseHeadersFor201 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### remove_asset_from_external_wallet.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **set_customer_ref_id_for_external_wallet** - -> set_customer_ref_id_for_external_wallet(wallet_idany_type) - -Set an AML customer reference ID for an external wallet - -Sets an AML/KYT customer reference ID for the specific external wallet. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import external_wallets_api -from fireblocks_client.model.error import Error -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = external_wallets_api.ExternalWalletsApi() -# example passing only required values which don't have defaults set -params = { - 'walletId': "walletId_example", - 'any_type': None -} -try: - # Set an AML customer reference ID for an external wallet - api_response = api_instance.set_customer_ref_id_for_external_wallet(params) -except fireblocks_client.ApiException as e: - print("Exception when calling ExternalWalletsApi->set_customer_ref_id_for_external_wallet: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**customerRefId** | str, | str, | Customer reference ID | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -walletId | WalletIdSchema | | - -# WalletIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -201 | [ApiResponseFor201](#set_customer_ref_id_for_external_wallet.ApiResponseFor201) | OK -default | [ApiResponseForDefault](#set_customer_ref_id_for_external_wallet.ApiResponseForDefault) | Error Response - -#### set_customer_ref_id_for_external_wallet.ApiResponseFor201 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | Unset | body was not defined | -headers | ResponseHeadersFor201 | | -#### ResponseHeadersFor201 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### set_customer_ref_id_for_external_wallet.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - diff --git a/docs/apis/tags/FiatAccountsApi.md b/docs/apis/tags/FiatAccountsApi.md deleted file mode 100644 index d90770db..00000000 --- a/docs/apis/tags/FiatAccountsApi.md +++ /dev/null @@ -1,516 +0,0 @@ - -# fireblocks_client.apis.tags.fiat_accounts_api.FiatAccountsApi - -All URIs are relative to *https://api.fireblocks.io/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**deposit_funds_from_linked_dda**](#deposit_funds_from_linked_dda) | **post** /fiat_accounts/{accountId}/deposit_from_linked_dda | Deposit funds from DDA -[**get_fiat_account_by_id**](#get_fiat_account_by_id) | **get** /fiat_accounts/{accountId} | Find a specific fiat account -[**get_fiat_accounts**](#get_fiat_accounts) | **get** /fiat_accounts | List fiat accounts -[**redeem_funds_to_linked_dda**](#redeem_funds_to_linked_dda) | **post** /fiat_accounts/{accountId}/redeem_to_linked_dda | Redeem funds to DDA - -# **deposit_funds_from_linked_dda** - -> deposit_funds_from_linked_dda(account_id) - -Deposit funds from DDA - -Deposits funds from the linked DDA. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import fiat_accounts_api -from fireblocks_client.model.error import Error -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = fiat_accounts_api.FiatAccountsApi() -# example passing only required values which don't have defaults set -params = { - 'accountId': "accountId_example", - 'any_type': None -} -try: - # Deposit funds from DDA - api_response = api_instance.deposit_funds_from_linked_dda(params) -except fireblocks_client.ApiException as e: - print("Exception when calling FiatAccountsApi->deposit_funds_from_linked_dda: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson, Unset] | optional, default is unset | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**amount** | decimal.Decimal, int, float, | decimal.Decimal, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -accountId | AccountIdSchema | | - -# AccountIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -201 | [ApiResponseFor201](#deposit_funds_from_linked_dda.ApiResponseFor201) | Transfer succeeded -default | [ApiResponseForDefault](#deposit_funds_from_linked_dda.ApiResponseForDefault) | Error Response - -#### deposit_funds_from_linked_dda.ApiResponseFor201 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | Unset | body was not defined | -headers | ResponseHeadersFor201 | | -#### ResponseHeadersFor201 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### deposit_funds_from_linked_dda.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[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_fiat_account_by_id** - -> FiatAccount get_fiat_account_by_id(account_id) - -Find a specific fiat account - -Returns a fiat account by ID. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import fiat_accounts_api -from fireblocks_client.model.fiat_account import FiatAccount -from fireblocks_client.model.error import Error -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = fiat_accounts_api.FiatAccountsApi() -# example passing only required values which don't have defaults set -params = { - 'accountId': "accountId_example", -} -try: - # Find a specific fiat account - api_response = api_instance.get_fiat_account_by_id(params) - pprint(api_response) -except fireblocks_client.ApiException as e: - print("Exception when calling FiatAccountsApi->get_fiat_account_by_id: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -accept_content_types | typing.Tuple[str] | default is ('*/*', 'application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -accountId | AccountIdSchema | | - -# AccountIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#get_fiat_account_by_id.ApiResponseFor200) | A fiat account object -default | [ApiResponseForDefault](#get_fiat_account_by_id.ApiResponseForDefault) | Error Response - -#### get_fiat_account_by_id.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBody, ] | | -headers | ResponseHeadersFor200 | | - -# SchemaFor200ResponseBody -Type | Description | Notes -------------- | ------------- | ------------- -[**FiatAccount**](../../models/FiatAccount.md) | | - -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### get_fiat_account_by_id.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[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_fiat_accounts** - -> [FiatAccount] get_fiat_accounts() - -List fiat accounts - -Returns all fiat accounts. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import fiat_accounts_api -from fireblocks_client.model.fiat_account import FiatAccount -from fireblocks_client.model.error import Error -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = fiat_accounts_api.FiatAccountsApi() - -``` -### Parameters - -This endpoint does not need any parameter. - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#get_fiat_accounts.ApiResponseFor200) | A fiat account object -default | [ApiResponseForDefault](#get_fiat_accounts.ApiResponseForDefault) | Error Response - -#### get_fiat_accounts.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBody, ] | | -headers | ResponseHeadersFor200 | | - -# SchemaFor200ResponseBody - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**FiatAccount**]({{complexTypePrefix}}FiatAccount.md) | [**FiatAccount**]({{complexTypePrefix}}FiatAccount.md) | [**FiatAccount**]({{complexTypePrefix}}FiatAccount.md) | | -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### get_fiat_accounts.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **redeem_funds_to_linked_dda** - -> redeem_funds_to_linked_dda(account_id) - -Redeem funds to DDA - -Redeems funds to the linked DDA. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import fiat_accounts_api -from fireblocks_client.model.error import Error -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = fiat_accounts_api.FiatAccountsApi() -# example passing only required values which don't have defaults set -params = { - 'accountId': "accountId_example", - 'any_type': None -} -try: - # Redeem funds to DDA - api_response = api_instance.redeem_funds_to_linked_dda(params) -except fireblocks_client.ApiException as e: - print("Exception when calling FiatAccountsApi->redeem_funds_to_linked_dda: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson, Unset] | optional, default is unset | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**amount** | decimal.Decimal, int, float, | decimal.Decimal, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -accountId | AccountIdSchema | | - -# AccountIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -201 | [ApiResponseFor201](#redeem_funds_to_linked_dda.ApiResponseFor201) | Transfer succeeded -default | [ApiResponseForDefault](#redeem_funds_to_linked_dda.ApiResponseForDefault) | Error Response - -#### redeem_funds_to_linked_dda.ApiResponseFor201 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | Unset | body was not defined | -headers | ResponseHeadersFor201 | | -#### ResponseHeadersFor201 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### redeem_funds_to_linked_dda.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - diff --git a/docs/apis/tags/GasStationsApi.md b/docs/apis/tags/GasStationsApi.md deleted file mode 100644 index ef382cb9..00000000 --- a/docs/apis/tags/GasStationsApi.md +++ /dev/null @@ -1,491 +0,0 @@ - -# fireblocks_client.apis.tags.gas_stations_api.GasStationsApi - -All URIs are relative to *https://api.fireblocks.io/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**get_gas_station**](#get_gas_station) | **get** /gas_station | Get gas station settings -[**get_gas_station_by_asset_id**](#get_gas_station_by_asset_id) | **get** /gas_station/{assetId} | Get gas station settings by asset -[**update_gas_station_configuration**](#update_gas_station_configuration) | **put** /gas_station/configuration | Edit gas station settings -[**update_gas_station_configuration_by_asset_id**](#update_gas_station_configuration_by_asset_id) | **put** /gas_station/configuration/{assetId} | Edit gas station settings for an asset - -# **get_gas_station** - -> GasStationPropertiesResponse get_gas_station() - -Get gas station settings - -Returns gas station settings and ETH balance. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import gas_stations_api -from fireblocks_client.model.gas_station_properties_response import GasStationPropertiesResponse -from fireblocks_client.model.error import Error -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = gas_stations_api.GasStationsApi() - -``` -### Parameters - -This endpoint does not need any parameter. - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#get_gas_station.ApiResponseFor200) | Gas Station properties -default | [ApiResponseForDefault](#get_gas_station.ApiResponseForDefault) | Error Response - -#### get_gas_station.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBody, ] | | -headers | ResponseHeadersFor200 | | - -# SchemaFor200ResponseBody -Type | Description | Notes -------------- | ------------- | ------------- -[**GasStationPropertiesResponse**](../../models/GasStationPropertiesResponse.md) | | - -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### get_gas_station.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[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_gas_station_by_asset_id** - -> GasStationPropertiesResponse get_gas_station_by_asset_id(asset_id) - -Get gas station settings by asset - -Returns gas station settings and balances for a requested asset. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import gas_stations_api -from fireblocks_client.model.gas_station_properties_response import GasStationPropertiesResponse -from fireblocks_client.model.error import Error -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = gas_stations_api.GasStationsApi() -# example passing only required values which don't have defaults set -params = { - 'assetId': "assetId_example", -} -try: - # Get gas station settings by asset - api_response = api_instance.get_gas_station_by_asset_id(params) - pprint(api_response) -except fireblocks_client.ApiException as e: - print("Exception when calling GasStationsApi->get_gas_station_by_asset_id: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -accept_content_types | typing.Tuple[str] | default is ('*/*', 'application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -assetId | AssetIdSchema | | - -# AssetIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#get_gas_station_by_asset_id.ApiResponseFor200) | Gas Station properties -default | [ApiResponseForDefault](#get_gas_station_by_asset_id.ApiResponseForDefault) | Error Response - -#### get_gas_station_by_asset_id.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBody, ] | | -headers | ResponseHeadersFor200 | | - -# SchemaFor200ResponseBody -Type | Description | Notes -------------- | ------------- | ------------- -[**GasStationPropertiesResponse**](../../models/GasStationPropertiesResponse.md) | | - -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### get_gas_station_by_asset_id.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **update_gas_station_configuration** - -> update_gas_station_configuration(gas_station_configuration) - -Edit gas station settings - -Configures gas station settings for ETH. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import gas_stations_api -from fireblocks_client.model.gas_station_configuration import GasStationConfiguration -from fireblocks_client.model.error import Error -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = gas_stations_api.GasStationsApi() -# example passing only required values which don't have defaults set -params = { - 'gas_station_configuration': GasStationConfiguration( - gas_threshold="gas_threshold_example", - gas_cap="gas_cap_example", - max_gas_price="max_gas_price_example", - ) -} -try: - # Edit gas station settings - api_response = api_instance.update_gas_station_configuration(params) -except fireblocks_client.ApiException as e: - print("Exception when calling GasStationsApi->update_gas_station_configuration: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**GasStationConfiguration**](../../models/GasStationConfiguration.md) | | - - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -201 | [ApiResponseFor201](#update_gas_station_configuration.ApiResponseFor201) | OK -default | [ApiResponseForDefault](#update_gas_station_configuration.ApiResponseForDefault) | Error Response - -#### update_gas_station_configuration.ApiResponseFor201 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | Unset | body was not defined | -headers | ResponseHeadersFor201 | | -#### ResponseHeadersFor201 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### update_gas_station_configuration.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **update_gas_station_configuration_by_asset_id** - -> update_gas_station_configuration_by_asset_id(asset_idgas_station_configuration) - -Edit gas station settings for an asset - -Configures gas station settings for a requested asset. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import gas_stations_api -from fireblocks_client.model.gas_station_configuration import GasStationConfiguration -from fireblocks_client.model.error import Error -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = gas_stations_api.GasStationsApi() -# example passing only required values which don't have defaults set -params = { - 'assetId': "assetId_example", - 'gas_station_configuration': GasStationConfiguration( - gas_threshold="gas_threshold_example", - gas_cap="gas_cap_example", - max_gas_price="max_gas_price_example", - ) -} -try: - # Edit gas station settings for an asset - api_response = api_instance.update_gas_station_configuration_by_asset_id(params) -except fireblocks_client.ApiException as e: - print("Exception when calling GasStationsApi->update_gas_station_configuration_by_asset_id: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**GasStationConfiguration**](../../models/GasStationConfiguration.md) | | - - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -assetId | AssetIdSchema | | - -# AssetIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -201 | [ApiResponseFor201](#update_gas_station_configuration_by_asset_id.ApiResponseFor201) | OK -default | [ApiResponseForDefault](#update_gas_station_configuration_by_asset_id.ApiResponseForDefault) | Error Response - -#### update_gas_station_configuration_by_asset_id.ApiResponseFor201 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | Unset | body was not defined | -headers | ResponseHeadersFor201 | | -#### ResponseHeadersFor201 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### update_gas_station_configuration_by_asset_id.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - diff --git a/docs/apis/tags/InternalWalletsApi.md b/docs/apis/tags/InternalWalletsApi.md deleted file mode 100644 index 023c208b..00000000 --- a/docs/apis/tags/InternalWalletsApi.md +++ /dev/null @@ -1,1042 +0,0 @@ - -# fireblocks_client.apis.tags.internal_wallets_api.InternalWalletsApi - -All URIs are relative to *https://api.fireblocks.io/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**create_internal_wallet**](#create_internal_wallet) | **post** /internal_wallets | Create an internal wallet -[**create_internal_wallet_asset**](#create_internal_wallet_asset) | **post** /internal_wallets/{walletId}/{assetId} | Add an asset to an internal wallet -[**delete_internal_wallet**](#delete_internal_wallet) | **delete** /internal_wallets/{walletId} | Delete an internal wallet -[**delete_internal_wallet_asset**](#delete_internal_wallet_asset) | **delete** /internal_wallets/{walletId}/{assetId} | Delete a whitelisted address from an internal wallet -[**get_internal_wallet_asset**](#get_internal_wallet_asset) | **get** /internal_wallets/{walletId}/{assetId} | Get an asset from an internal wallet -[**get_internal_wallet_by_id**](#get_internal_wallet_by_id) | **get** /internal_wallets/{walletId} | Get assets for internal wallet -[**get_internal_wallets**](#get_internal_wallets) | **get** /internal_wallets | List internal wallets -[**set_customer_ref_id_for_internal_wallet**](#set_customer_ref_id_for_internal_wallet) | **post** /internal_wallets/{walletId}/set_customer_ref_id | Set an AML/KYT customer reference ID for an internal wallet - -# **create_internal_wallet** - -> UnmanagedWallet create_internal_wallet() - -Create an internal wallet - -Creates a new internal wallet with the requested name. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import internal_wallets_api -from fireblocks_client.model.unmanaged_wallet import UnmanagedWallet -from fireblocks_client.model.error import Error -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = internal_wallets_api.InternalWalletsApi() - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson, Unset] | optional, default is unset | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('*/*', 'application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**name** | str, | str, | the wallet's display name | [optional] -**customerRefId** | str, | str, | Optional - Sets a customer reference ID | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#create_internal_wallet.ApiResponseFor200) | A new wallet object -default | [ApiResponseForDefault](#create_internal_wallet.ApiResponseForDefault) | Error Response - -#### create_internal_wallet.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBody, ] | | -headers | ResponseHeadersFor200 | | - -# SchemaFor200ResponseBody -Type | Description | Notes -------------- | ------------- | ------------- -[**UnmanagedWallet**](../../models/UnmanagedWallet.md) | | - -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### create_internal_wallet.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **create_internal_wallet_asset** - -> WalletAsset create_internal_wallet_asset(wallet_idasset_id) - -Add an asset to an internal wallet - -Adds an asset to an existing internal wallet. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import internal_wallets_api -from fireblocks_client.model.error import Error -from fireblocks_client.model.wallet_asset import WalletAsset -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = internal_wallets_api.InternalWalletsApi() -# example passing only required values which don't have defaults set -params = { - 'walletId': "walletId_example", - 'assetId': "assetId_example", - 'any_type': None -} -try: - # Add an asset to an internal wallet - api_response = api_instance.create_internal_wallet_asset(params) - pprint(api_response) -except fireblocks_client.ApiException as e: - print("Exception when calling InternalWalletsApi->create_internal_wallet_asset: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson, Unset] | optional, default is unset | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('*/*', 'application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**address** | str, | str, | The wallet's address or, for EOS wallets, the account name | -**tag** | str, | str, | for XRP wallets, the destination tag; for EOS, the memo; for the fiat providers (BLINC by BCB Group), the Bank Transfer Description | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -walletId | WalletIdSchema | | -assetId | AssetIdSchema | | - -# WalletIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# AssetIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#create_internal_wallet_asset.ApiResponseFor200) | A Wallet Asset object -default | [ApiResponseForDefault](#create_internal_wallet_asset.ApiResponseForDefault) | Error Response - -#### create_internal_wallet_asset.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBody, ] | | -headers | ResponseHeadersFor200 | | - -# SchemaFor200ResponseBody -Type | Description | Notes -------------- | ------------- | ------------- -[**WalletAsset**](../../models/WalletAsset.md) | | - -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### create_internal_wallet_asset.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **delete_internal_wallet** - -> delete_internal_wallet(wallet_id) - -Delete an internal wallet - -Deletes an internal wallet by ID. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import internal_wallets_api -from fireblocks_client.model.error import Error -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = internal_wallets_api.InternalWalletsApi() -# example passing only required values which don't have defaults set -params = { - 'walletId': "walletId_example", -} -try: - # Delete an internal wallet - api_response = api_instance.delete_internal_wallet(params) -except fireblocks_client.ApiException as e: - print("Exception when calling InternalWalletsApi->delete_internal_wallet: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -walletId | WalletIdSchema | | - -# WalletIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -201 | [ApiResponseFor201](#delete_internal_wallet.ApiResponseFor201) | OK -default | [ApiResponseForDefault](#delete_internal_wallet.ApiResponseForDefault) | Error Response - -#### delete_internal_wallet.ApiResponseFor201 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | Unset | body was not defined | -headers | ResponseHeadersFor201 | | -#### ResponseHeadersFor201 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### delete_internal_wallet.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **delete_internal_wallet_asset** - -> delete_internal_wallet_asset(wallet_idasset_id) - -Delete a whitelisted address from an internal wallet - -Deletes a whitelisted address (for an asset) from an internal wallet. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import internal_wallets_api -from fireblocks_client.model.error import Error -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = internal_wallets_api.InternalWalletsApi() -# example passing only required values which don't have defaults set -params = { - 'walletId': "walletId_example", - 'assetId': "assetId_example", -} -try: - # Delete a whitelisted address from an internal wallet - api_response = api_instance.delete_internal_wallet_asset(params) -except fireblocks_client.ApiException as e: - print("Exception when calling InternalWalletsApi->delete_internal_wallet_asset: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -walletId | WalletIdSchema | | -assetId | AssetIdSchema | | - -# WalletIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# AssetIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -201 | [ApiResponseFor201](#delete_internal_wallet_asset.ApiResponseFor201) | OK -default | [ApiResponseForDefault](#delete_internal_wallet_asset.ApiResponseForDefault) | Error Response - -#### delete_internal_wallet_asset.ApiResponseFor201 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | Unset | body was not defined | -headers | ResponseHeadersFor201 | | -#### ResponseHeadersFor201 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### delete_internal_wallet_asset.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[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_internal_wallet_asset** - -> WalletAsset get_internal_wallet_asset(wallet_idasset_id) - -Get an asset from an internal wallet - -Returns information for an asset in an internal wallet. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import internal_wallets_api -from fireblocks_client.model.error import Error -from fireblocks_client.model.wallet_asset import WalletAsset -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = internal_wallets_api.InternalWalletsApi() -# example passing only required values which don't have defaults set -params = { - 'walletId': "walletId_example", - 'assetId': "assetId_example", -} -try: - # Get an asset from an internal wallet - api_response = api_instance.get_internal_wallet_asset(params) - pprint(api_response) -except fireblocks_client.ApiException as e: - print("Exception when calling InternalWalletsApi->get_internal_wallet_asset: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -accept_content_types | typing.Tuple[str] | default is ('*/*', 'application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -walletId | WalletIdSchema | | -assetId | AssetIdSchema | | - -# WalletIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# AssetIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#get_internal_wallet_asset.ApiResponseFor200) | A Wallet Asset object -default | [ApiResponseForDefault](#get_internal_wallet_asset.ApiResponseForDefault) | Error Response - -#### get_internal_wallet_asset.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBody, ] | | -headers | ResponseHeadersFor200 | | - -# SchemaFor200ResponseBody -Type | Description | Notes -------------- | ------------- | ------------- -[**WalletAsset**](../../models/WalletAsset.md) | | - -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### get_internal_wallet_asset.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[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_internal_wallet_by_id** - -> UnmanagedWallet get_internal_wallet_by_id(wallet_id) - -Get assets for internal wallet - -Returns all assets in an internal wallet by ID. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import internal_wallets_api -from fireblocks_client.model.unmanaged_wallet import UnmanagedWallet -from fireblocks_client.model.error import Error -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = internal_wallets_api.InternalWalletsApi() -# example passing only required values which don't have defaults set -params = { - 'walletId': "walletId_example", -} -try: - # Get assets for internal wallet - api_response = api_instance.get_internal_wallet_by_id(params) - pprint(api_response) -except fireblocks_client.ApiException as e: - print("Exception when calling InternalWalletsApi->get_internal_wallet_by_id: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -accept_content_types | typing.Tuple[str] | default is ('*/*', 'application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -walletId | WalletIdSchema | | - -# WalletIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#get_internal_wallet_by_id.ApiResponseFor200) | A Wallet object -default | [ApiResponseForDefault](#get_internal_wallet_by_id.ApiResponseForDefault) | Error Response - -#### get_internal_wallet_by_id.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBody, ] | | -headers | ResponseHeadersFor200 | | - -# SchemaFor200ResponseBody -Type | Description | Notes -------------- | ------------- | ------------- -[**UnmanagedWallet**](../../models/UnmanagedWallet.md) | | - -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### get_internal_wallet_by_id.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[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_internal_wallets** - -> [UnmanagedWallet] get_internal_wallets() - -List internal wallets - -Gets a list of internal wallets. **Note**: BTC-based assets belonging to whitelisted addresses cannot be retrieved between 00:00 UTC and 00:01 UTC daily due to third-party provider, Blockchair, being unavailable for this 60 second period. Please wait until the next minute to retrieve BTC-based assets. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import internal_wallets_api -from fireblocks_client.model.unmanaged_wallet import UnmanagedWallet -from fireblocks_client.model.error import Error -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = internal_wallets_api.InternalWalletsApi() - -``` -### Parameters - -This endpoint does not need any parameter. - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#get_internal_wallets.ApiResponseFor200) | A list of internal wallets -default | [ApiResponseForDefault](#get_internal_wallets.ApiResponseForDefault) | Error Response - -#### get_internal_wallets.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBody, ] | | -headers | ResponseHeadersFor200 | | - -# SchemaFor200ResponseBody - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**UnmanagedWallet**]({{complexTypePrefix}}UnmanagedWallet.md) | [**UnmanagedWallet**]({{complexTypePrefix}}UnmanagedWallet.md) | [**UnmanagedWallet**]({{complexTypePrefix}}UnmanagedWallet.md) | | -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### get_internal_wallets.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **set_customer_ref_id_for_internal_wallet** - -> set_customer_ref_id_for_internal_wallet(wallet_idany_type) - -Set an AML/KYT customer reference ID for an internal wallet - -Sets an AML/KYT customer reference ID for the specific internal wallet. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import internal_wallets_api -from fireblocks_client.model.error import Error -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = internal_wallets_api.InternalWalletsApi() -# example passing only required values which don't have defaults set -params = { - 'walletId': "walletId_example", - 'any_type': None -} -try: - # Set an AML/KYT customer reference ID for an internal wallet - api_response = api_instance.set_customer_ref_id_for_internal_wallet(params) -except fireblocks_client.ApiException as e: - print("Exception when calling InternalWalletsApi->set_customer_ref_id_for_internal_wallet: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**customerRefId** | str, | str, | Customer reference ID | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -walletId | WalletIdSchema | | - -# WalletIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -201 | [ApiResponseFor201](#set_customer_ref_id_for_internal_wallet.ApiResponseFor201) | OK -default | [ApiResponseForDefault](#set_customer_ref_id_for_internal_wallet.ApiResponseForDefault) | Error Response - -#### set_customer_ref_id_for_internal_wallet.ApiResponseFor201 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | Unset | body was not defined | -headers | ResponseHeadersFor201 | | -#### ResponseHeadersFor201 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### set_customer_ref_id_for_internal_wallet.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - diff --git a/docs/apis/tags/NFTsApi.md b/docs/apis/tags/NFTsApi.md deleted file mode 100644 index 9f94acb6..00000000 --- a/docs/apis/tags/NFTsApi.md +++ /dev/null @@ -1,902 +0,0 @@ - -# fireblocks_client.apis.tags.nfts_api.NFTsApi - -All URIs are relative to *https://api.fireblocks.io/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**get_nft**](#get_nft) | **get** /nfts/tokens/{id} | List token data by ID -[**get_nfts**](#get_nfts) | **get** /nfts/tokens | List tokens by IDs -[**get_ownership_tokens**](#get_ownership_tokens) | **get** /nfts/ownership/tokens | List all owned tokens (paginated) -[**list_owned_collections**](#list_owned_collections) | **get** /nfts/ownership/collections | List owned collections (paginated) -[**refresh_nft_metadata**](#refresh_nft_metadata) | **put** /nfts/tokens/{id} | Refresh token metadata -[**update_ownership_tokens**](#update_ownership_tokens) | **put** /nfts/ownership/tokens | Refresh vault account tokens -[**update_token_ownership_status**](#update_token_ownership_status) | **put** /nfts/ownership/tokens/{id}/status | Update token ownership status - -# **get_nft** - -> TokenResponse get_nft(id) - -List token data by ID - -Returns the requested token data. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import nfts_api -from fireblocks_client.model.token_response import TokenResponse -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = nfts_api.NFTsApi() -# example passing only required values which don't have defaults set -params = { - 'id': "NFT-abcdefabcdefabcdefabcdefabcdefabcdefabcd", -} -try: - # List token data by ID - api_response = api_instance.get_nft(params) - pprint(api_response) -except fireblocks_client.ApiException as e: - print("Exception when calling NFTsApi->get_nft: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -id | IdSchema | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#get_nft.ApiResponseFor200) | - -#### get_nft.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor200 | | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**TokenResponse**](../../models/TokenResponse.md) | | - -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[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_nfts** - -> bool, date, datetime, dict, float, int, list, str, none_type get_nfts(ids) - -List tokens by IDs - -Returns the requested tokens data. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import nfts_api -from fireblocks_client.model.token_response import TokenResponse -from fireblocks_client.model.paging import Paging -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = nfts_api.NFTsApi() -# example passing only required values which don't have defaults set -params = { - 'ids': "ids_example", -} -try: - # List tokens by IDs - api_response = api_instance.get_nfts(params) - pprint(api_response) -except fireblocks_client.ApiException as e: - print("Exception when calling NFTsApi->get_nfts: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### query_params -#### RequestQueryParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -ids | IdsSchema | | -pageCursor | PageCursorSchema | | optional -pageSize | PageSizeSchema | | optional -sort | SortSchema | | optional -order | OrderSchema | | optional - - -# IdsSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# PageCursorSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# PageSizeSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -decimal.Decimal, int, float, | decimal.Decimal, | | - -# SortSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -items | str, | str, | | must be one of ["collection.name", "name", "blockchainDescriptor", ] - -# OrderSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | must be one of ["DESC", "ASC", ] if omitted the server will use the default value of "ASC" - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#get_nfts.ApiResponseFor200) | - -#### get_nfts.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor200 | | - -# SchemaFor200ResponseBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**paging** | [**Paging**]({{complexTypePrefix}}Paging.md) | [**Paging**]({{complexTypePrefix}}Paging.md) | | [optional] -**[data](#data)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# data - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**TokenResponse**]({{complexTypePrefix}}TokenResponse.md) | [**TokenResponse**]({{complexTypePrefix}}TokenResponse.md) | [**TokenResponse**]({{complexTypePrefix}}TokenResponse.md) | | -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[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_ownership_tokens** - -> bool, date, datetime, dict, float, int, list, str, none_type get_ownership_tokens() - -List all owned tokens (paginated) - -Returns all tokens and their data in your workspace. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import nfts_api -from fireblocks_client.model.paging import Paging -from fireblocks_client.model.token_ownership_response import TokenOwnershipResponse -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = nfts_api.NFTsApi() - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### query_params -#### RequestQueryParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -blockchainDescriptor | BlockchainDescriptorSchema | | optional -vaultAccountIds | VaultAccountIdsSchema | | optional -ids | IdsSchema | | optional -collectionIds | CollectionIdsSchema | | optional -pageCursor | PageCursorSchema | | optional -pageSize | PageSizeSchema | | optional -sort | SortSchema | | optional -order | OrderSchema | | optional -status | StatusSchema | | optional -search | SearchSchema | | optional - - -# BlockchainDescriptorSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | must be one of ["ETH", "ETH_TEST3", "POLYGON", "POLYGON_TEST_MUMBAI", ] - -# VaultAccountIdsSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# IdsSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# CollectionIdsSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# PageCursorSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# PageSizeSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -decimal.Decimal, int, float, | decimal.Decimal, | | - -# SortSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -items | str, | str, | | must be one of ["ownershipLastUpdateTime", "name", "collection.name", "blockchainDescriptor", ] - -# OrderSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | must be one of ["DESC", "ASC", ] if omitted the server will use the default value of "ASC" - -# StatusSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | must be one of ["LISTED", "ARCHIVED", ] if omitted the server will use the default value of "LISTED" - -# SearchSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#get_ownership_tokens.ApiResponseFor200) | - -#### get_ownership_tokens.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor200 | | - -# SchemaFor200ResponseBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**paging** | [**Paging**]({{complexTypePrefix}}Paging.md) | [**Paging**]({{complexTypePrefix}}Paging.md) | | [optional] -**[data](#data)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# data - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**TokenOwnershipResponse**]({{complexTypePrefix}}TokenOwnershipResponse.md) | [**TokenOwnershipResponse**]({{complexTypePrefix}}TokenOwnershipResponse.md) | [**TokenOwnershipResponse**]({{complexTypePrefix}}TokenOwnershipResponse.md) | | -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **list_owned_collections** - -> bool, date, datetime, dict, float, int, list, str, none_type list_owned_collections() - -List owned collections (paginated) - -Returns all collections in your workspace - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import nfts_api -from fireblocks_client.model.paging import Paging -from fireblocks_client.model.collection_ownership_response import CollectionOwnershipResponse -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = nfts_api.NFTsApi() - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### query_params -#### RequestQueryParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -search | SearchSchema | | optional -pageCursor | PageCursorSchema | | optional -pageSize | PageSizeSchema | | optional -sort | SortSchema | | optional -order | OrderSchema | | optional - - -# SearchSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# PageCursorSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# PageSizeSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -decimal.Decimal, int, float, | decimal.Decimal, | | - -# SortSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -items | str, | str, | | must be one of ["name", ] - -# OrderSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | must be one of ["DESC", "ASC", ] if omitted the server will use the default value of "ASC" - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#list_owned_collections.ApiResponseFor200) | - -#### list_owned_collections.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor200 | | - -# SchemaFor200ResponseBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**paging** | [**Paging**]({{complexTypePrefix}}Paging.md) | [**Paging**]({{complexTypePrefix}}Paging.md) | | [optional] -**[data](#data)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# data - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**CollectionOwnershipResponse**]({{complexTypePrefix}}CollectionOwnershipResponse.md) | [**CollectionOwnershipResponse**]({{complexTypePrefix}}CollectionOwnershipResponse.md) | [**CollectionOwnershipResponse**]({{complexTypePrefix}}CollectionOwnershipResponse.md) | | -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **refresh_nft_metadata** - -> refresh_nft_metadata(id) - -Refresh token metadata - -Updates the latest token metadata. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import nfts_api -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = nfts_api.NFTsApi() -# example passing only required values which don't have defaults set -params = { - 'id': "NFT-abcdefabcdefabcdefabcdefabcdefabcdefabcd", -} -try: - # Refresh token metadata - api_response = api_instance.refresh_nft_metadata(params) -except fireblocks_client.ApiException as e: - print("Exception when calling NFTsApi->refresh_nft_metadata: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -id | IdSchema | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -202 | [ApiResponseFor202](#refresh_nft_metadata.ApiResponseFor202) | - -#### refresh_nft_metadata.ApiResponseFor202 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | Unset | body was not defined | -headers | ResponseHeadersFor202 | | -#### ResponseHeadersFor202 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **update_ownership_tokens** - -> update_ownership_tokens(blockchain_descriptorvault_account_id) - -Refresh vault account tokens - -Updates all tokens and balances per blockchain and vault account. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import nfts_api -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = nfts_api.NFTsApi() -# example passing only required values which don't have defaults set -params = { - 'blockchainDescriptor': "ETH", - 'vaultAccountId': "vaultAccountId_example", -} -try: - # Refresh vault account tokens - api_response = api_instance.update_ownership_tokens(params) -except fireblocks_client.ApiException as e: - print("Exception when calling NFTsApi->update_ownership_tokens: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### query_params -#### RequestQueryParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -blockchainDescriptor | BlockchainDescriptorSchema | | -vaultAccountId | VaultAccountIdSchema | | - - -# BlockchainDescriptorSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | must be one of ["ETH", "ETH_TEST3", "POLYGON", "POLYGON_TEST_MUMBAI", ] - -# VaultAccountIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -202 | [ApiResponseFor202](#update_ownership_tokens.ApiResponseFor202) | - -#### update_ownership_tokens.ApiResponseFor202 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | Unset | body was not defined | -headers | ResponseHeadersFor202 | | -#### ResponseHeadersFor202 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **update_token_ownership_status** - -> update_token_ownership_status(idupdate_token_ownership_status_dto) - -Update token ownership status - -Updates token ownership status for a tenant, in all tenant vaults. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import nfts_api -from fireblocks_client.model.update_token_ownership_status_dto import UpdateTokenOwnershipStatusDto -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = nfts_api.NFTsApi() -# example passing only required values which don't have defaults set -params = { - 'id': "NFT-abcdefabcdefabcdefabcdefabcdefabcdefabcd", - 'update_token_ownership_status_dto': UpdateTokenOwnershipStatusDto( - status="LISTED", - ) -} -try: - # Update token ownership status - api_response = api_instance.update_token_ownership_status(params) -except fireblocks_client.ApiException as e: - print("Exception when calling NFTsApi->update_token_ownership_status: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**UpdateTokenOwnershipStatusDto**](../../models/UpdateTokenOwnershipStatusDto.md) | | - - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -id | IdSchema | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#update_token_ownership_status.ApiResponseFor200) | - -#### update_token_ownership_status.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | Unset | body was not defined | -headers | ResponseHeadersFor200 | | -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - diff --git a/docs/apis/tags/NFTsBetaApi.md b/docs/apis/tags/NFTsBetaApi.md deleted file mode 100644 index 25b06805..00000000 --- a/docs/apis/tags/NFTsBetaApi.md +++ /dev/null @@ -1,982 +0,0 @@ - -# fireblocks_client.apis.tags.nfts_beta_api.NFTsBetaApi - -All URIs are relative to *https://api.fireblocks.io/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**get_nft**](#get_nft) | **get** /nfts/tokens/{id} | List token data by ID -[**get_nfts**](#get_nfts) | **get** /nfts/tokens | List tokens by IDs -[**get_ownership_tokens**](#get_ownership_tokens) | **get** /nfts/ownership/tokens | List all owned tokens (paginated) -[**list_owned_collections**](#list_owned_collections) | **get** /nfts/ownership/collections | List owned collections (paginated) -[**refresh_nft_metadata**](#refresh_nft_metadata) | **put** /nfts/tokens/{id} | Refresh token metadata -[**update_ownership_tokens**](#update_ownership_tokens) | **put** /nfts/ownership/tokens | Refresh vault account tokens -[**update_token_ownership_status**](#update_token_ownership_status) | **put** /nfts/ownership/tokens/{id}/status | Update token ownership status - -# **get_nft** - -> TokenResponse get_nft(id) - -List token data by ID - -Returns the requested token data. **Note**: This endpoint is now in Beta, disabled for general availability at this time. To enroll in beta & enable this endpoint, contact your Fireblocks Customer Success Manager or reach out to [CSM@fireblocks.com](mailto:CSM@fireblocks.com). - -### Example - -```python -import fireblocks_client -from fireblocks_client.apis.tags import nfts_beta_api -from fireblocks_client.model.token_response import TokenResponse -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open( - "./fireblocks_secret.key", - "r", -).read() - - # Create an instance of the API class - api_instance = nfts_beta_api.NFTsBetaApi() - # example passing only required values which don't have defaults set - path_params = { - 'id': "NFT-abcdefabcdefabcdefabcdefabcdefabcdefabcd", - } - try: - # List token data by ID - api_response = api_instance.get_nft( - path_params=path_params, - ) - pprint(api_response) - except fireblocks_client.ApiException as e: - print("Exception when calling NFTsBetaApi->get_nft: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -path_params | RequestPathParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -id | IdSchema | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#get_nft.ApiResponseFor200) | - -#### get_nft.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor200 | | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**TokenResponse**](../../models/TokenResponse.md) | | - -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[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_nfts** - -> bool, date, datetime, dict, float, int, list, str, none_type get_nfts(ids) - -List tokens by IDs - -Returns the requested tokens data **Note**: This endpoint is now in Beta, disabled for general availability at this time. To enroll in beta & enable this endpoint, contact your Fireblocks Customer Success Manager or reach out to [CSM@fireblocks.com](mailto:CSM@fireblocks.com). - -### Example - -```python -import fireblocks_client -from fireblocks_client.apis.tags import nfts_beta_api -from fireblocks_client.model.token_response import TokenResponse -from fireblocks_client.model.paging import Paging -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open( - "./fireblocks_secret.key", - "r", -).read() - - # Create an instance of the API class - api_instance = nfts_beta_api.NFTsBetaApi() - # example passing only required values which don't have defaults set - query_params = { - 'ids': "ids_example", - } - try: - # List tokens by IDs - api_response = api_instance.get_nfts( - query_params=query_params, - ) - pprint(api_response) - except fireblocks_client.ApiException as e: - print("Exception when calling NFTsBetaApi->get_nfts: %s\n" % e) - - # example passing only optional values - query_params = { - 'ids': "ids_example", - 'pageCursor': "pageCursor_example", - 'pageSize': 1, - 'sort': [ - "collection.name" - ], - 'order': "ASC", - } - try: - # List tokens by IDs - api_response = api_instance.get_nfts( - query_params=query_params, - ) - pprint(api_response) - except fireblocks_client.ApiException as e: - print("Exception when calling NFTsBetaApi->get_nfts: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -query_params | RequestQueryParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### query_params -#### RequestQueryParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -ids | IdsSchema | | -pageCursor | PageCursorSchema | | optional -pageSize | PageSizeSchema | | optional -sort | SortSchema | | optional -order | OrderSchema | | optional - - -# IdsSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# PageCursorSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# PageSizeSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -decimal.Decimal, int, float, | decimal.Decimal, | | - -# SortSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -items | str, | str, | | must be one of ["collection.name", "name", "blockchainDescriptor", ] - -# OrderSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | must be one of ["DESC", "ASC", ] if omitted the server will use the default value of "ASC" - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#get_nfts.ApiResponseFor200) | - -#### get_nfts.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor200 | | - -# SchemaFor200ResponseBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**paging** | [**Paging**]({{complexTypePrefix}}Paging.md) | [**Paging**]({{complexTypePrefix}}Paging.md) | | [optional] -**[data](#data)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# data - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**TokenResponse**]({{complexTypePrefix}}TokenResponse.md) | [**TokenResponse**]({{complexTypePrefix}}TokenResponse.md) | [**TokenResponse**]({{complexTypePrefix}}TokenResponse.md) | | -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[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_ownership_tokens** - -> bool, date, datetime, dict, float, int, list, str, none_type get_ownership_tokens() - -List all owned tokens (paginated) - -Returns all tokens and their data in your workspace. **Note**: This endpoint is now in Beta, disabled for general availability at this time. To enroll in beta & enable this endpoint, contact your Fireblocks Customer Success Manager or reach out to [CSM@fireblocks.com](mailto:CSM@fireblocks.com). - -### Example - -```python -import fireblocks_client -from fireblocks_client.apis.tags import nfts_beta_api -from fireblocks_client.model.paging import Paging -from fireblocks_client.model.token_ownership_response import TokenOwnershipResponse -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open( - "./fireblocks_secret.key", - "r", -).read() - - # Create an instance of the API class - api_instance = nfts_beta_api.NFTsBetaApi() - - # example passing only optional values - query_params = { - 'blockchainDescriptor': "ETH", - 'vaultAccountIds': "vaultAccountIds_example", - 'ids': "ids_example", - 'collectionIds': "collectionIds_example", - 'pageCursor': "pageCursor_example", - 'pageSize': 1, - 'sort': [ - "ownershipLastUpdateTime" - ], - 'order': "ASC", - 'status': "LISTED", - 'search': "search_example", - } - try: - # List all owned tokens (paginated) - api_response = api_instance.get_ownership_tokens( - query_params=query_params, - ) - pprint(api_response) - except fireblocks_client.ApiException as e: - print("Exception when calling NFTsBetaApi->get_ownership_tokens: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -query_params | RequestQueryParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### query_params -#### RequestQueryParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -blockchainDescriptor | BlockchainDescriptorSchema | | optional -vaultAccountIds | VaultAccountIdsSchema | | optional -ids | IdsSchema | | optional -collectionIds | CollectionIdsSchema | | optional -pageCursor | PageCursorSchema | | optional -pageSize | PageSizeSchema | | optional -sort | SortSchema | | optional -order | OrderSchema | | optional -status | StatusSchema | | optional -search | SearchSchema | | optional - - -# BlockchainDescriptorSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | must be one of ["ETH", "ETH_TEST3", "POLYGON", "POLYGON_TEST_MUMBAI", ] - -# VaultAccountIdsSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# IdsSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# CollectionIdsSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# PageCursorSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# PageSizeSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -decimal.Decimal, int, float, | decimal.Decimal, | | - -# SortSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -items | str, | str, | | must be one of ["ownershipLastUpdateTime", "name", "collection.name", "blockchainDescriptor", ] - -# OrderSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | must be one of ["DESC", "ASC", ] if omitted the server will use the default value of "ASC" - -# StatusSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | must be one of ["LISTED", "ARCHIVED", ] if omitted the server will use the default value of "LISTED" - -# SearchSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#get_ownership_tokens.ApiResponseFor200) | - -#### get_ownership_tokens.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor200 | | - -# SchemaFor200ResponseBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**paging** | [**Paging**]({{complexTypePrefix}}Paging.md) | [**Paging**]({{complexTypePrefix}}Paging.md) | | [optional] -**[data](#data)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# data - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**TokenOwnershipResponse**]({{complexTypePrefix}}TokenOwnershipResponse.md) | [**TokenOwnershipResponse**]({{complexTypePrefix}}TokenOwnershipResponse.md) | [**TokenOwnershipResponse**]({{complexTypePrefix}}TokenOwnershipResponse.md) | | -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **list_owned_collections** - -> bool, date, datetime, dict, float, int, list, str, none_type list_owned_collections() - -List owned collections (paginated) - -Returns all collections in your workspace **Note**: This endpoint is now in Beta, disabled for general availability at this time. To enroll in beta & enable this endpoint, contact your Fireblocks Customer Success Manager or reach out to [CSM@fireblocks.com](mailto:CSM@fireblocks.com). - -### Example - -```python -import fireblocks_client -from fireblocks_client.apis.tags import nfts_beta_api -from fireblocks_client.model.paging import Paging -from fireblocks_client.model.collection_ownership_response import CollectionOwnershipResponse -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open( - "./fireblocks_secret.key", - "r", -).read() - - # Create an instance of the API class - api_instance = nfts_beta_api.NFTsBetaApi() - - # example passing only optional values - query_params = { - 'search': "search_example", - 'pageCursor': "pageCursor_example", - 'pageSize': 1, - 'sort': [ - "name" - ], - 'order': "ASC", - } - try: - # List owned collections (paginated) - api_response = api_instance.list_owned_collections( - query_params=query_params, - ) - pprint(api_response) - except fireblocks_client.ApiException as e: - print("Exception when calling NFTsBetaApi->list_owned_collections: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -query_params | RequestQueryParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### query_params -#### RequestQueryParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -search | SearchSchema | | optional -pageCursor | PageCursorSchema | | optional -pageSize | PageSizeSchema | | optional -sort | SortSchema | | optional -order | OrderSchema | | optional - - -# SearchSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# PageCursorSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# PageSizeSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -decimal.Decimal, int, float, | decimal.Decimal, | | - -# SortSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -items | str, | str, | | must be one of ["name", ] - -# OrderSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | must be one of ["DESC", "ASC", ] if omitted the server will use the default value of "ASC" - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#list_owned_collections.ApiResponseFor200) | - -#### list_owned_collections.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor200 | | - -# SchemaFor200ResponseBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**paging** | [**Paging**]({{complexTypePrefix}}Paging.md) | [**Paging**]({{complexTypePrefix}}Paging.md) | | [optional] -**[data](#data)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# data - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**CollectionOwnershipResponse**]({{complexTypePrefix}}CollectionOwnershipResponse.md) | [**CollectionOwnershipResponse**]({{complexTypePrefix}}CollectionOwnershipResponse.md) | [**CollectionOwnershipResponse**]({{complexTypePrefix}}CollectionOwnershipResponse.md) | | -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **refresh_nft_metadata** - -> refresh_nft_metadata(id) - -Refresh token metadata - -Updates the latest token metadata. **Note**: This endpoint is now in Beta, disabled for general availability at this time. To enroll in beta & enable this endpoint, contact your Fireblocks Customer Success Manager or reach out to [CSM@fireblocks.com](mailto:CSM@fireblocks.com). - -### Example - -```python -import fireblocks_client -from fireblocks_client.apis.tags import nfts_beta_api -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open( - "./fireblocks_secret.key", - "r", -).read() - - # Create an instance of the API class - api_instance = nfts_beta_api.NFTsBetaApi() - # example passing only required values which don't have defaults set - path_params = { - 'id': "NFT-abcdefabcdefabcdefabcdefabcdefabcdefabcd", - } - try: - # Refresh token metadata - api_response = api_instance.refresh_nft_metadata( - path_params=path_params, - ) - except fireblocks_client.ApiException as e: - print("Exception when calling NFTsBetaApi->refresh_nft_metadata: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -path_params | RequestPathParams | | -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -id | IdSchema | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -202 | [ApiResponseFor202](#refresh_nft_metadata.ApiResponseFor202) | - -#### refresh_nft_metadata.ApiResponseFor202 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | Unset | body was not defined | -headers | ResponseHeadersFor202 | | -#### ResponseHeadersFor202 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **update_ownership_tokens** - -> update_ownership_tokens(blockchain_descriptorvault_account_id) - -Refresh vault account tokens - -Updates all tokens and balances per blockchain and vault account. **Note**: This endpoint is now in Beta, disabled for general availability at this time. To enroll in beta & enable this endpoint, contact your Fireblocks Customer Success Manager or reach out to [CSM@fireblocks.com](mailto:CSM@fireblocks.com). - -### Example - -```python -import fireblocks_client -from fireblocks_client.apis.tags import nfts_beta_api -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open( - "./fireblocks_secret.key", - "r", -).read() - - # Create an instance of the API class - api_instance = nfts_beta_api.NFTsBetaApi() - # example passing only required values which don't have defaults set - query_params = { - 'blockchainDescriptor': "ETH", - 'vaultAccountId': "vaultAccountId_example", - } - try: - # Refresh vault account tokens - api_response = api_instance.update_ownership_tokens( - query_params=query_params, - ) - except fireblocks_client.ApiException as e: - print("Exception when calling NFTsBetaApi->update_ownership_tokens: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -query_params | RequestQueryParams | | -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### query_params -#### RequestQueryParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -blockchainDescriptor | BlockchainDescriptorSchema | | -vaultAccountId | VaultAccountIdSchema | | - - -# BlockchainDescriptorSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | must be one of ["ETH", "ETH_TEST3", "POLYGON", "POLYGON_TEST_MUMBAI", ] - -# VaultAccountIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -202 | [ApiResponseFor202](#update_ownership_tokens.ApiResponseFor202) | - -#### update_ownership_tokens.ApiResponseFor202 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | Unset | body was not defined | -headers | ResponseHeadersFor202 | | -#### ResponseHeadersFor202 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **update_token_ownership_status** - -> update_token_ownership_status(idupdate_token_ownership_status_dto) - -Update token ownership status - -Updates token ownership status for a tenant, in all tenant vaults. **Note**: This endpoint is now in Beta, disabled for general availability at this time. To enroll in beta & enable this endpoint, contact your Fireblocks Customer Success Manager or reach out to [CSM@fireblocks.com](mailto:CSM@fireblocks.com). - -### Example - -```python -import fireblocks_client -from fireblocks_client.apis.tags import nfts_beta_api -from fireblocks_client.model.update_token_ownership_status_dto import UpdateTokenOwnershipStatusDto -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open( - "./fireblocks_secret.key", - "r", -).read() - - # Create an instance of the API class - api_instance = nfts_beta_api.NFTsBetaApi() - # example passing only required values which don't have defaults set - path_params = { - 'id': "NFT-abcdefabcdefabcdefabcdefabcdefabcdefabcd", - } - body = UpdateTokenOwnershipStatusDto( - status="LISTED", - ) - try: - # Update token ownership status - api_response = api_instance.update_token_ownership_status( - path_params=path_params, - body=body, - ) - except fireblocks_client.ApiException as e: - print("Exception when calling NFTsBetaApi->update_token_ownership_status: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -path_params | RequestPathParams | | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**UpdateTokenOwnershipStatusDto**](../../models/UpdateTokenOwnershipStatusDto.md) | | - - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -id | IdSchema | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#update_token_ownership_status.ApiResponseFor200) | - -#### update_token_ownership_status.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | Unset | body was not defined | -headers | ResponseHeadersFor200 | | -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - diff --git a/docs/apis/tags/NetworkConnectionsApi.md b/docs/apis/tags/NetworkConnectionsApi.md deleted file mode 100644 index d7a25d1e..00000000 --- a/docs/apis/tags/NetworkConnectionsApi.md +++ /dev/null @@ -1,1732 +0,0 @@ - -# fireblocks_client.apis.tags.network_connections_api.NetworkConnectionsApi - -All URIs are relative to *https://api.fireblocks.io/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**check_third_party_routing_for_network_connection**](#check_third_party_routing_for_network_connection) | **get** /network_connections/{connectionId}/is_third_party_routing/{assetType} | Retrieve third-party network routing validation by asset type. -[**create_network_connection**](#create_network_connection) | **post** /network_connections | Creates a new network connection -[**create_network_id**](#create_network_id) | **post** /network_ids | Creates a new Network ID -[**delete_network_connection**](#delete_network_connection) | **delete** /network_connections/{connectionId} | Deletes a network connection by ID -[**delete_network_id**](#delete_network_id) | **delete** /network_ids/{networkId} | Deletes specific network ID. -[**get_network_connection_by_id**](#get_network_connection_by_id) | **get** /network_connections/{connectionId} | Get a network connection -[**get_network_connections**](#get_network_connections) | **get** /network_connections | List network connections -[**get_network_id_by_id**](#get_network_id_by_id) | **get** /network_ids/{networkId} | Returns specific network ID. -[**get_network_ids**](#get_network_ids) | **get** /network_ids | Returns all network IDs, both local IDs and discoverable remote IDs -[**set_discoverability_for_network_id**](#set_discoverability_for_network_id) | **patch** /network_ids/{networkId}/set_discoverability | Update network ID's discoverability. -[**set_network_id_name**](#set_network_id_name) | **patch** /network_ids/{networkId}/set_name | Update network ID's name. -[**set_routing_policy_for_network_connection**](#set_routing_policy_for_network_connection) | **patch** /network_connections/{connectionId}/set_routing_policy | Update network connection routing policy. -[**set_routing_policy_for_network_id**](#set_routing_policy_for_network_id) | **patch** /network_ids/{networkId}/set_routing_policy | Update network id routing policy. - -# **check_third_party_routing_for_network_connection** - -> bool, date, datetime, dict, float, int, list, str, none_type check_third_party_routing_for_network_connection(connection_idasset_type) - -Retrieve third-party network routing validation by asset type. - -The Fireblocks Network allows for flexibility around incoming deposits. A receiver can receive network deposits to locations other than Fireblocks. This endpoint validates whether future transactions are routed to the displayed recipient or to a 3rd party. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import network_connections_api -from fireblocks_client.model.error import Error -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = network_connections_api.NetworkConnectionsApi() -# example passing only required values which don't have defaults set -params = { - 'connectionId': "connectionId_example", - 'assetType': "CRYPTO", -} -try: - # Retrieve third-party network routing validation by asset type. - api_response = api_instance.check_third_party_routing_for_network_connection(params) - pprint(api_response) -except fireblocks_client.ApiException as e: - print("Exception when calling NetworkConnectionsApi->check_third_party_routing_for_network_connection: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -accept_content_types | typing.Tuple[str] | default is ('*/*', 'application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -connectionId | ConnectionIdSchema | | -assetType | AssetTypeSchema | | - -# ConnectionIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# AssetTypeSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | must be one of ["CRYPTO", "SIGNET", "SEN", "SIGNET_TEST", "SEN_TEST", ] - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#check_third_party_routing_for_network_connection.ApiResponseFor200) | result for the validation -default | [ApiResponseForDefault](#check_third_party_routing_for_network_connection.ApiResponseForDefault) | Error Response - -#### check_third_party_routing_for_network_connection.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBody, ] | | -headers | ResponseHeadersFor200 | | - -# SchemaFor200ResponseBody - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**isThirdPartyRouting** | bool, | BoolClass, | | [optional] -**description** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### check_third_party_routing_for_network_connection.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **create_network_connection** - -> NetworkConnectionResponse create_network_connection() - -Creates a new network connection - -Initiates a new network connection. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import network_connections_api -from fireblocks_client.model.error import Error -from fireblocks_client.model.network_connection import NetworkConnection -from fireblocks_client.model.network_connection_response import NetworkConnectionResponse -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = network_connections_api.NetworkConnectionsApi() - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson, Unset] | optional, default is unset | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('*/*', 'application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**NetworkConnection**](../../models/NetworkConnection.md) | | - - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -201 | [ApiResponseFor201](#create_network_connection.ApiResponseFor201) | A Network Connection object -default | [ApiResponseForDefault](#create_network_connection.ApiResponseForDefault) | Error Response - -#### create_network_connection.ApiResponseFor201 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor201ResponseBody, ] | | -headers | ResponseHeadersFor201 | | - -# SchemaFor201ResponseBody -Type | Description | Notes -------------- | ------------- | ------------- -[**NetworkConnectionResponse**](../../models/NetworkConnectionResponse.md) | | - -#### ResponseHeadersFor201 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### create_network_connection.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **create_network_id** - -> NetworkIdResponse create_network_id() - -Creates a new Network ID - -Creates a new Network ID. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import network_connections_api -from fireblocks_client.model.network_id_response import NetworkIdResponse -from fireblocks_client.model.network_id_routing_policy import NetworkIdRoutingPolicy -from fireblocks_client.model.error import Error -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = network_connections_api.NetworkConnectionsApi() - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson, Unset] | optional, default is unset | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('*/*', 'application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**name** | str, | str, | | -**routingPolicy** | [**NetworkIdRoutingPolicy**]({{complexTypePrefix}}NetworkIdRoutingPolicy.md) | [**NetworkIdRoutingPolicy**]({{complexTypePrefix}}NetworkIdRoutingPolicy.md) | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -201 | [ApiResponseFor201](#create_network_id.ApiResponseFor201) | Returns the new network ID in your workspace -default | [ApiResponseForDefault](#create_network_id.ApiResponseForDefault) | Error Response - -#### create_network_id.ApiResponseFor201 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor201ResponseBody, ] | | -headers | ResponseHeadersFor201 | | - -# SchemaFor201ResponseBody -Type | Description | Notes -------------- | ------------- | ------------- -[**NetworkIdResponse**](../../models/NetworkIdResponse.md) | | - -#### ResponseHeadersFor201 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### create_network_id.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **delete_network_connection** - -> bool, date, datetime, dict, float, int, list, str, none_type delete_network_connection(connection_id) - -Deletes a network connection by ID - -Deletes an existing network connection specified by its connection ID. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import network_connections_api -from fireblocks_client.model.error import Error -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = network_connections_api.NetworkConnectionsApi() -# example passing only required values which don't have defaults set -params = { - 'connectionId': "connectionId_example", -} -try: - # Deletes a network connection by ID - api_response = api_instance.delete_network_connection(params) - pprint(api_response) -except fireblocks_client.ApiException as e: - print("Exception when calling NetworkConnectionsApi->delete_network_connection: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -accept_content_types | typing.Tuple[str] | default is ('*/*', 'application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -connectionId | ConnectionIdSchema | | - -# ConnectionIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#delete_network_connection.ApiResponseFor200) | Network ID -default | [ApiResponseForDefault](#delete_network_connection.ApiResponseForDefault) | Error Response - -#### delete_network_connection.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBody, ] | | -headers | ResponseHeadersFor200 | | - -# SchemaFor200ResponseBody - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**success** | bool, | BoolClass, | | -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### delete_network_connection.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **delete_network_id** - -> bool, date, datetime, dict, float, int, list, str, none_type delete_network_id(network_id) - -Deletes specific network ID. - -Deletes a network by its ID. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import network_connections_api -from fireblocks_client.model.error import Error -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = network_connections_api.NetworkConnectionsApi() -# example passing only required values which don't have defaults set -params = { - 'networkId': "networkId_example", -} -try: - # Deletes specific network ID. - api_response = api_instance.delete_network_id(params) - pprint(api_response) -except fireblocks_client.ApiException as e: - print("Exception when calling NetworkConnectionsApi->delete_network_id: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -accept_content_types | typing.Tuple[str] | default is ('*/*', 'application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -networkId | NetworkIdSchema | | - -# NetworkIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#delete_network_id.ApiResponseFor200) | Network ID -default | [ApiResponseForDefault](#delete_network_id.ApiResponseForDefault) | Error Response - -#### delete_network_id.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBody, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBody - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**success** | bool, | BoolClass, | | -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -#### delete_network_id.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[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_network_connection_by_id** - -> NetworkConnectionResponse get_network_connection_by_id(connection_id) - -Get a network connection - -Gets a network connection by ID. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import network_connections_api -from fireblocks_client.model.error import Error -from fireblocks_client.model.network_connection_response import NetworkConnectionResponse -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = network_connections_api.NetworkConnectionsApi() -# example passing only required values which don't have defaults set -params = { - 'connectionId': "connectionId_example", -} -try: - # Get a network connection - api_response = api_instance.get_network_connection_by_id(params) - pprint(api_response) -except fireblocks_client.ApiException as e: - print("Exception when calling NetworkConnectionsApi->get_network_connection_by_id: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -accept_content_types | typing.Tuple[str] | default is ('*/*', 'application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -connectionId | ConnectionIdSchema | | - -# ConnectionIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#get_network_connection_by_id.ApiResponseFor200) | A network connection -default | [ApiResponseForDefault](#get_network_connection_by_id.ApiResponseForDefault) | Error Response - -#### get_network_connection_by_id.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBody, ] | | -headers | ResponseHeadersFor200 | | - -# SchemaFor200ResponseBody -Type | Description | Notes -------------- | ------------- | ------------- -[**NetworkConnectionResponse**](../../models/NetworkConnectionResponse.md) | | - -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### get_network_connection_by_id.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[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_network_connections** - -> [NetworkConnectionResponse] get_network_connections() - -List network connections - -Returns all network connections. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import network_connections_api -from fireblocks_client.model.error import Error -from fireblocks_client.model.network_connection_response import NetworkConnectionResponse -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = network_connections_api.NetworkConnectionsApi() - -``` -### Parameters - -This endpoint does not need any parameter. - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#get_network_connections.ApiResponseFor200) | A list of network connections -default | [ApiResponseForDefault](#get_network_connections.ApiResponseForDefault) | Error Response - -#### get_network_connections.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBody, ] | | -headers | ResponseHeadersFor200 | | - -# SchemaFor200ResponseBody - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**NetworkConnectionResponse**]({{complexTypePrefix}}NetworkConnectionResponse.md) | [**NetworkConnectionResponse**]({{complexTypePrefix}}NetworkConnectionResponse.md) | [**NetworkConnectionResponse**]({{complexTypePrefix}}NetworkConnectionResponse.md) | | -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### get_network_connections.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[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_network_id_by_id** - -> NetworkIdResponse get_network_id_by_id(network_id) - -Returns specific network ID. - -Retrieves a network by its ID. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import network_connections_api -from fireblocks_client.model.network_id_response import NetworkIdResponse -from fireblocks_client.model.error import Error -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = network_connections_api.NetworkConnectionsApi() -# example passing only required values which don't have defaults set -params = { - 'networkId': "networkId_example", -} -try: - # Returns specific network ID. - api_response = api_instance.get_network_id_by_id(params) - pprint(api_response) -except fireblocks_client.ApiException as e: - print("Exception when calling NetworkConnectionsApi->get_network_id_by_id: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -accept_content_types | typing.Tuple[str] | default is ('*/*', 'application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -networkId | NetworkIdSchema | | - -# NetworkIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#get_network_id_by_id.ApiResponseFor200) | Network ID -default | [ApiResponseForDefault](#get_network_id_by_id.ApiResponseForDefault) | Error Response - -#### get_network_id_by_id.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBody, ] | | -headers | ResponseHeadersFor200 | | - -# SchemaFor200ResponseBody -Type | Description | Notes -------------- | ------------- | ------------- -[**NetworkIdResponse**](../../models/NetworkIdResponse.md) | | - -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### get_network_id_by_id.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[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_network_ids** - -> [bool, date, datetime, dict, float, int, list, str, none_type] get_network_ids() - -Returns all network IDs, both local IDs and discoverable remote IDs - -Retrieves a list of all local and discoverable remote network IDs. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import network_connections_api -from fireblocks_client.model.network_id_response import NetworkIdResponse -from fireblocks_client.model.error import Error -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = network_connections_api.NetworkConnectionsApi() - -``` -### Parameters - -This endpoint does not need any parameter. - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#get_network_ids.ApiResponseFor200) | A list of network IDs -default | [ApiResponseForDefault](#get_network_ids.ApiResponseForDefault) | Error Response - -#### get_network_ids.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBody, ] | | -headers | ResponseHeadersFor200 | | - -# SchemaFor200ResponseBody - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[items](#items) | dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | - -# items - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | - -### Composed Schemas (allOf/anyOf/oneOf/not) -#### allOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[NetworkIdResponse]({{complexTypePrefix}}NetworkIdResponse.md) | [**NetworkIdResponse**]({{complexTypePrefix}}NetworkIdResponse.md) | [**NetworkIdResponse**]({{complexTypePrefix}}NetworkIdResponse.md) | | -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### get_network_ids.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **set_discoverability_for_network_id** - -> bool, date, datetime, dict, float, int, list, str, none_type set_discoverability_for_network_id(network_idany_type) - -Update network ID's discoverability. - -Update whether or not the network ID is discoverable by others. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import network_connections_api -from fireblocks_client.model.error import Error -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = network_connections_api.NetworkConnectionsApi() -# example passing only required values which don't have defaults set -params = { - 'networkId': "networkId_example", - 'any_type': None -} -try: - # Update network ID's discoverability. - api_response = api_instance.set_discoverability_for_network_id(params) - pprint(api_response) -except fireblocks_client.ApiException as e: - print("Exception when calling NetworkConnectionsApi->set_discoverability_for_network_id: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('*/*', 'application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**isDiscoverable** | bool, | BoolClass, | | -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -networkId | NetworkIdSchema | | - -# NetworkIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#set_discoverability_for_network_id.ApiResponseFor200) | Network ID -default | [ApiResponseForDefault](#set_discoverability_for_network_id.ApiResponseForDefault) | Error Response - -#### set_discoverability_for_network_id.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBody, ] | | -headers | ResponseHeadersFor200 | | - -# SchemaFor200ResponseBody - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**success** | bool, | BoolClass, | | -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### set_discoverability_for_network_id.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **set_network_id_name** - -> bool, date, datetime, dict, float, int, list, str, none_type set_network_id_name(network_idany_type) - -Update network ID's name. - -Updates name of a specified network ID. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import network_connections_api -from fireblocks_client.model.error import Error -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = network_connections_api.NetworkConnectionsApi() -# example passing only required values which don't have defaults set -params = { - 'networkId': "networkId_example", - 'any_type': None -} -try: - # Update network ID's name. - api_response = api_instance.set_network_id_name(params) - pprint(api_response) -except fireblocks_client.ApiException as e: - print("Exception when calling NetworkConnectionsApi->set_network_id_name: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('*/*', 'application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**name** | str, | str, | | -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -networkId | NetworkIdSchema | | - -# NetworkIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#set_network_id_name.ApiResponseFor200) | Network ID -default | [ApiResponseForDefault](#set_network_id_name.ApiResponseForDefault) | Error Response - -#### set_network_id_name.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBody, ] | | -headers | ResponseHeadersFor200 | | - -# SchemaFor200ResponseBody - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**success** | bool, | BoolClass, | | -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### set_network_id_name.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **set_routing_policy_for_network_connection** - -> bool, date, datetime, dict, float, int, list, str, none_type set_routing_policy_for_network_connection(connection_id) - -Update network connection routing policy. - -Updates an existing network connection's routing policy. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import network_connections_api -from fireblocks_client.model.network_connection_routing_policy import NetworkConnectionRoutingPolicy -from fireblocks_client.model.error import Error -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = network_connections_api.NetworkConnectionsApi() -# example passing only required values which don't have defaults set -params = { - 'connectionId': "connectionId_example", - 'any_type': None -} -try: - # Update network connection routing policy. - api_response = api_instance.set_routing_policy_for_network_connection(params) - pprint(api_response) -except fireblocks_client.ApiException as e: - print("Exception when calling NetworkConnectionsApi->set_routing_policy_for_network_connection: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson, Unset] | optional, default is unset | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('*/*', 'application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**routingPolicy** | [**NetworkConnectionRoutingPolicy**]({{complexTypePrefix}}NetworkConnectionRoutingPolicy.md) | [**NetworkConnectionRoutingPolicy**]({{complexTypePrefix}}NetworkConnectionRoutingPolicy.md) | | -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -connectionId | ConnectionIdSchema | | - -# ConnectionIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#set_routing_policy_for_network_connection.ApiResponseFor200) | Network ID -default | [ApiResponseForDefault](#set_routing_policy_for_network_connection.ApiResponseForDefault) | Error Response - -#### set_routing_policy_for_network_connection.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBody, ] | | -headers | ResponseHeadersFor200 | | - -# SchemaFor200ResponseBody - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**success** | bool, | BoolClass, | | -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### set_routing_policy_for_network_connection.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **set_routing_policy_for_network_id** - -> bool, date, datetime, dict, float, int, list, str, none_type set_routing_policy_for_network_id(network_id) - -Update network id routing policy. - -Updates the routing policy of a specified network ID. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import network_connections_api -from fireblocks_client.model.network_id_routing_policy import NetworkIdRoutingPolicy -from fireblocks_client.model.error import Error -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = network_connections_api.NetworkConnectionsApi() -# example passing only required values which don't have defaults set -params = { - 'networkId': "networkId_example", - 'any_type': None -} -try: - # Update network id routing policy. - api_response = api_instance.set_routing_policy_for_network_id(params) - pprint(api_response) -except fireblocks_client.ApiException as e: - print("Exception when calling NetworkConnectionsApi->set_routing_policy_for_network_id: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson, Unset] | optional, default is unset | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('*/*', 'application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**routingPolicy** | [**NetworkIdRoutingPolicy**]({{complexTypePrefix}}NetworkIdRoutingPolicy.md) | [**NetworkIdRoutingPolicy**]({{complexTypePrefix}}NetworkIdRoutingPolicy.md) | | -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -networkId | NetworkIdSchema | | - -# NetworkIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#set_routing_policy_for_network_id.ApiResponseFor200) | Network ID -default | [ApiResponseForDefault](#set_routing_policy_for_network_id.ApiResponseForDefault) | Error Response - -#### set_routing_policy_for_network_id.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBody, ] | | -headers | ResponseHeadersFor200 | | - -# SchemaFor200ResponseBody - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**success** | bool, | BoolClass, | | -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### set_routing_policy_for_network_id.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - diff --git a/docs/apis/tags/OTABetaApi.md b/docs/apis/tags/OTABetaApi.md deleted file mode 100644 index 39b211e2..00000000 --- a/docs/apis/tags/OTABetaApi.md +++ /dev/null @@ -1,184 +0,0 @@ - -# fireblocks_client.apis.tags.ota_beta_api.OTABetaApi - -All URIs are relative to *https://api.fireblocks.io/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**get_ota_status**](#get_ota_status) | **get** /management/ota | Returns current OTA status -[**set_ota_status**](#set_ota_status) | **post** /management/ota | Enable or disable transactions to OTA - -# **get_ota_status** - -> bool, date, datetime, dict, float, int, list, str, none_type get_ota_status() - -Returns current OTA status - -Returns current OTA status - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import ota_beta_api -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = ota_beta_api.OTABetaApi() - -``` -### Parameters - -This endpoint does not need any parameter. - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#get_ota_status.ApiResponseFor200) | Current OTA status -404 | [ApiResponseFor404](#get_ota_status.ApiResponseFor404) | Configuration not found for tenant - -#### get_ota_status.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**enabled** | bool, | BoolClass, | Current OTA status | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -#### get_ota_status.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | Unset | body was not defined | -headers | Unset | headers were not defined | - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **set_ota_status** - -> set_ota_status(any_type) - -Enable or disable transactions to OTA - -Enable or disable transactions to OTA - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import ota_beta_api -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = ota_beta_api.OTABetaApi() -# example passing only required values which don't have defaults set -params = { - 'any_type': None -} -try: - # Enable or disable transactions to OTA - api_response = api_instance.set_ota_status(params) -except fireblocks_client.ApiException as e: - print("Exception when calling OTABetaApi->set_ota_status: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**enable** | bool, | BoolClass, | Set true or false to enable or disable OTA transactions | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -202 | [ApiResponseFor202](#set_ota_status.ApiResponseFor202) | Successfully updated OTA status -400 | [ApiResponseFor400](#set_ota_status.ApiResponseFor400) | Bad request -409 | [ApiResponseFor409](#set_ota_status.ApiResponseFor409) | Similar request already pending -500 | [ApiResponseFor500](#set_ota_status.ApiResponseFor500) | Internal server error - -#### set_ota_status.ApiResponseFor202 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | Unset | body was not defined | -headers | Unset | headers were not defined | - -#### set_ota_status.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | Unset | body was not defined | -headers | Unset | headers were not defined | - -#### set_ota_status.ApiResponseFor409 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | Unset | body was not defined | -headers | Unset | headers were not defined | - -#### set_ota_status.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | Unset | body was not defined | -headers | Unset | headers were not defined | - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - diff --git a/docs/apis/tags/OffExchangesApi.md b/docs/apis/tags/OffExchangesApi.md deleted file mode 100644 index 57ef74f5..00000000 --- a/docs/apis/tags/OffExchangesApi.md +++ /dev/null @@ -1,558 +0,0 @@ - -# fireblocks_client.apis.tags.off_exchanges_api.OffExchangesApi - -All URIs are relative to *https://api.fireblocks.io/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**add_off_exchange**](#add_off_exchange) | **post** /off_exchange/add | add collateral -[**get_off_exchange_collateral_accounts**](#get_off_exchange_collateral_accounts) | **get** /off_exchange/collateral_accounts/{mainExchangeAccountId} | Find a specific collateral exchange account -[**get_off_exchange_settlement_transactions**](#get_off_exchange_settlement_transactions) | **get** /off_exchange/settlements/transactions | get settlements transactions from exchange -[**remove_off_exchange**](#remove_off_exchange) | **post** /off_exchange/remove | remove collateral -[**settle_off_exchange_trades**](#settle_off_exchange_trades) | **post** /off_exchange/settlements/trader | create settlement for a trader - -# **add_off_exchange** - -> CreateTransactionResponse add_off_exchange() - -add collateral - -add collateral, create deposit request - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import off_exchanges_api -from fireblocks_client.model.add_collateral_request_body import AddCollateralRequestBody -from fireblocks_client.model.error import Error -from fireblocks_client.model.create_transaction_response import CreateTransactionResponse -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = off_exchanges_api.OffExchangesApi() - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson, Unset] | optional, default is unset | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('*/*', 'application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**AddCollateralRequestBody**](../../models/AddCollateralRequestBody.md) | | - - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#add_off_exchange.ApiResponseFor200) | A transaction object -default | [ApiResponseForDefault](#add_off_exchange.ApiResponseForDefault) | Error Response - -#### add_off_exchange.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBody, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBody -Type | Description | Notes -------------- | ------------- | ------------- -[**CreateTransactionResponse**](../../models/CreateTransactionResponse.md) | | - - -#### add_off_exchange.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[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_off_exchange_collateral_accounts** - -> ExchangeAccount get_off_exchange_collateral_accounts(main_exchange_account_id) - -Find a specific collateral exchange account - -Returns a collateral account by mainExchangeAccountId. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import off_exchanges_api -from fireblocks_client.model.exchange_account import ExchangeAccount -from fireblocks_client.model.error import Error -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = off_exchanges_api.OffExchangesApi() -# example passing only required values which don't have defaults set -params = { - 'mainExchangeAccountId': "mainExchangeAccountId_example", -} -try: - # Find a specific collateral exchange account - api_response = api_instance.get_off_exchange_collateral_accounts(params) - pprint(api_response) -except fireblocks_client.ApiException as e: - print("Exception when calling OffExchangesApi->get_off_exchange_collateral_accounts: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -accept_content_types | typing.Tuple[str] | default is ('*/*', 'application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -mainExchangeAccountId | MainExchangeAccountIdSchema | | - -# MainExchangeAccountIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#get_off_exchange_collateral_accounts.ApiResponseFor200) | An ExchangeAccount object -default | [ApiResponseForDefault](#get_off_exchange_collateral_accounts.ApiResponseForDefault) | Error Response - -#### get_off_exchange_collateral_accounts.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBody, ] | | -headers | ResponseHeadersFor200 | | - -# SchemaFor200ResponseBody -Type | Description | Notes -------------- | ------------- | ------------- -[**ExchangeAccount**](../../models/ExchangeAccount.md) | | - -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### get_off_exchange_collateral_accounts.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[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_off_exchange_settlement_transactions** - -> SettlementResponse get_off_exchange_settlement_transactions(main_exchange_account_id) - -get settlements transactions from exchange - -get settlements transactions from exchange - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import off_exchanges_api -from fireblocks_client.model.error import Error -from fireblocks_client.model.settlement_response import SettlementResponse -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = off_exchanges_api.OffExchangesApi() -# example passing only required values which don't have defaults set -params = { - 'mainExchangeAccountId': "mainExchangeAccountId_example", -} -try: - # get settlements transactions from exchange - api_response = api_instance.get_off_exchange_settlement_transactions(params) - pprint(api_response) -except fireblocks_client.ApiException as e: - print("Exception when calling OffExchangesApi->get_off_exchange_settlement_transactions: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -accept_content_types | typing.Tuple[str] | default is ('*/*', 'application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### query_params -#### RequestQueryParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -mainExchangeAccountId | MainExchangeAccountIdSchema | | - - -# MainExchangeAccountIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#get_off_exchange_settlement_transactions.ApiResponseFor200) | A settlement transactions -default | [ApiResponseForDefault](#get_off_exchange_settlement_transactions.ApiResponseForDefault) | Error Response - -#### get_off_exchange_settlement_transactions.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBody, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBody -Type | Description | Notes -------------- | ------------- | ------------- -[**SettlementResponse**](../../models/SettlementResponse.md) | | - - -#### get_off_exchange_settlement_transactions.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **remove_off_exchange** - -> CreateTransactionResponse remove_off_exchange() - -remove collateral - -remove collateral, create withdraw request - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import off_exchanges_api -from fireblocks_client.model.remove_collateral_request_body import RemoveCollateralRequestBody -from fireblocks_client.model.error import Error -from fireblocks_client.model.create_transaction_response import CreateTransactionResponse -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = off_exchanges_api.OffExchangesApi() - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson, Unset] | optional, default is unset | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('*/*', 'application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RemoveCollateralRequestBody**](../../models/RemoveCollateralRequestBody.md) | | - - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#remove_off_exchange.ApiResponseFor200) | A transaction object -default | [ApiResponseForDefault](#remove_off_exchange.ApiResponseForDefault) | Error Response - -#### remove_off_exchange.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBody, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBody -Type | Description | Notes -------------- | ------------- | ------------- -[**CreateTransactionResponse**](../../models/CreateTransactionResponse.md) | | - - -#### remove_off_exchange.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **settle_off_exchange_trades** - -> SettlementResponse settle_off_exchange_trades() - -create settlement for a trader - -create settlement for a trader - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import off_exchanges_api -from fireblocks_client.model.settlement_request_body import SettlementRequestBody -from fireblocks_client.model.error import Error -from fireblocks_client.model.settlement_response import SettlementResponse -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = off_exchanges_api.OffExchangesApi() - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson, Unset] | optional, default is unset | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('*/*', 'application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**SettlementRequestBody**](../../models/SettlementRequestBody.md) | | - - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -201 | [ApiResponseFor201](#settle_off_exchange_trades.ApiResponseFor201) | A settlement object -default | [ApiResponseForDefault](#settle_off_exchange_trades.ApiResponseForDefault) | Error Response - -#### settle_off_exchange_trades.ApiResponseFor201 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor201ResponseBody, ] | | -headers | Unset | headers were not defined | - -# SchemaFor201ResponseBody -Type | Description | Notes -------------- | ------------- | ------------- -[**SettlementResponse**](../../models/SettlementResponse.md) | | - - -#### settle_off_exchange_trades.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - diff --git a/docs/apis/tags/PaymentsCrossBorderSettlementApi.md b/docs/apis/tags/PaymentsCrossBorderSettlementApi.md deleted file mode 100644 index 4b3989d9..00000000 --- a/docs/apis/tags/PaymentsCrossBorderSettlementApi.md +++ /dev/null @@ -1,1038 +0,0 @@ - -# fireblocks_client.apis.tags.payments_cross_border_settlement_api.PaymentsCrossBorderSettlementApi - -All URIs are relative to *https://api.fireblocks.io/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**create_xb_settlement_config**](#create_xb_settlement_config) | **post** /payments/xb-settlements/configs | Create a new cross-border settlement configuration -[**create_xb_settlement_flow**](#create_xb_settlement_flow) | **post** /payments/xb-settlements/flows | Create a new cross-border settlement flow -[**delete_xb_settlement_config**](#delete_xb_settlement_config) | **delete** /payments/xb-settlements/configs/{configId} | Delete a cross-border settlement configuration -[**execute_xb_settlement_flow_action**](#execute_xb_settlement_flow_action) | **post** /payments/xb-settlements/flows/{flowId}/actions/execute | Execute cross-border settlement flow -[**get_xb_settlement_config_by_id**](#get_xb_settlement_config_by_id) | **get** /payments/xb-settlements/configs/{configId} | Get a specific cross-border settlement configuration -[**get_xb_settlement_configs**](#get_xb_settlement_configs) | **get** /payments/xb-settlements/configs | Get all the cross-border settlement configurations -[**get_xb_settlement_flow_by_id**](#get_xb_settlement_flow_by_id) | **get** /payments/xb-settlements/flows/{flowId} | Get specific cross-border settlement flow details -[**update_xb_settlement_config**](#update_xb_settlement_config) | **put** /payments/xb-settlements/configs/{configId} | Edit a cross-border settlement configuration - -# **create_xb_settlement_config** - -> XBSettlementConfigModel create_xb_settlement_config() - -Create a new cross-border settlement configuration - -Create a new cross-border settlement configuration.
Configurations define the default assets, on-ramps, and off-ramps to use for the cross-border settlement.
A configuration must contain at least two steps - `ON_RAMP` and `VAULT_ACCOUNT`.
All other steps (e.g., `OFF_RAMP`, `FIAT_DESTINATION`, etc.) are optional.
Every step must include the `accountId` to be used, while `inputAssetId` and `outputAssetId` are optional. If those are not provided, a default value will be used from the Corridor Settings.
If the inputAssetId or the outputAssetId is provided for one of the objects, all assets in the objects must be consistent. For example, if the output asset of ON_RAMP is XLM_USDC_5F3T, then the input asset of the VAULT_ACCOUNT must also be XLM_USDC_5F3T..
You can set a slippage amount for your configuration. Slippage is defined by basis points (bps). This value can be overloaded on execution. If you do not configure a slippage amount, the default slippage of 10000 bps (10%) is used.
**Note:** The reference content in this section documents the Payments Engine endpoint. The Payments Engine endpoint includes APIs available only for customers with the Payments Engine enabled on their accounts. These endpoints are currently in beta and might be subject to changes. If you want to learn more about the Fireblocks Payments Engine, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import payments_cross_border_settlement_api -from fireblocks_client.model.error_response import ErrorResponse -from fireblocks_client.model.xb_settlement_config_model import XBSettlementConfigModel -from fireblocks_client.model.xb_settlement_config_creation_request_body import XBSettlementConfigCreationRequestBody -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = payments_cross_border_settlement_api.PaymentsCrossBorderSettlementApi() - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson, Unset] | optional, default is unset | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**XBSettlementConfigCreationRequestBody**](../../models/XBSettlementConfigCreationRequestBody.md) | | - - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#create_xb_settlement_config.ApiResponseFor200) | Cross-border settlement configuration created successfully -400 | [ApiResponseFor400](#create_xb_settlement_config.ApiResponseFor400) | Error creating cross-border request -401 | [ApiResponseFor401](#create_xb_settlement_config.ApiResponseFor401) | Unauthorized. Missing / invalid JWT token in Authorization header. -5XX | [ApiResponseFor5XX](#create_xb_settlement_config.ApiResponseFor5XX) | Internal error. - -#### create_xb_settlement_config.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**XBSettlementConfigModel**](../../models/XBSettlementConfigModel.md) | | - - -#### create_xb_settlement_config.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ErrorResponse**](../../models/ErrorResponse.md) | | - - -#### create_xb_settlement_config.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ErrorResponse**](../../models/ErrorResponse.md) | | - - -#### create_xb_settlement_config.ApiResponseFor5XX -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor5XXResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor5XXResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ErrorResponse**](../../models/ErrorResponse.md) | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **create_xb_settlement_flow** - -> XBSettlementFlowPreviewModel create_xb_settlement_flow() - -Create a new cross-border settlement flow - -Create a cross-border flow (based on a cross-border configuration) with an amount to transfer. The assetId is defined by the cross-border configuration. Creating a flow triggers a calculation of the flow estimations, including FX rates, times, and fees based on the amount provided. Creating a cross-border flow will not execute the flow. **Note:** The reference content in this section documents the Payments Engine endpoint. The Payments Engine endpoint includes APIs available only for customers with the Payments Engine enabled on their accounts. These endpoints are currently in beta and might be subject to changes. If you want to learn more about the Fireblocks Payments Engine, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import payments_cross_border_settlement_api -from fireblocks_client.model.xb_settlement_flow_preview_model import XBSettlementFlowPreviewModel -from fireblocks_client.model.error_response import ErrorResponse -from fireblocks_client.model.xb_settlement_create_flow_request_body import XBSettlementCreateFlowRequestBody -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = payments_cross_border_settlement_api.PaymentsCrossBorderSettlementApi() - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson, Unset] | optional, default is unset | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**XBSettlementCreateFlowRequestBody**](../../models/XBSettlementCreateFlowRequestBody.md) | | - - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#create_xb_settlement_flow.ApiResponseFor200) | Cross-border settlement flow created successfully -400 | [ApiResponseFor400](#create_xb_settlement_flow.ApiResponseFor400) | Unable to create cross-border flow, invalid configuration ID. -401 | [ApiResponseFor401](#create_xb_settlement_flow.ApiResponseFor401) | Unauthorized. Missing / invalid JWT token in Authorization header. -5XX | [ApiResponseFor5XX](#create_xb_settlement_flow.ApiResponseFor5XX) | Internal error. - -#### create_xb_settlement_flow.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**XBSettlementFlowPreviewModel**](../../models/XBSettlementFlowPreviewModel.md) | | - - -#### create_xb_settlement_flow.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ErrorResponse**](../../models/ErrorResponse.md) | | - - -#### create_xb_settlement_flow.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ErrorResponse**](../../models/ErrorResponse.md) | | - - -#### create_xb_settlement_flow.ApiResponseFor5XX -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor5XXResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor5XXResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ErrorResponse**](../../models/ErrorResponse.md) | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **delete_xb_settlement_config** - -> XBSettlementConfigModel delete_xb_settlement_config(config_id) - -Delete a cross-border settlement configuration - -Delete a cross-border settlement configuration. This does not delete or remove previously executed flows that used this configuration. **Note:** The reference content in this section documents the Payments Engine endpoint. The Payments Engine endpoint includes APIs available only for customers with the Payments Engine enabled on their accounts. These endpoints are currently in beta and might be subject to changes. If you want to learn more about the Fireblocks Payments Engine, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import payments_cross_border_settlement_api -from fireblocks_client.model.error_response import ErrorResponse -from fireblocks_client.model.xb_settlement_config_model import XBSettlementConfigModel -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = payments_cross_border_settlement_api.PaymentsCrossBorderSettlementApi() -# example passing only required values which don't have defaults set -params = { - 'configId': "074791cc-ef32-4920-8373-95efbeea66c5", -} -try: - # Delete a cross-border settlement configuration - api_response = api_instance.delete_xb_settlement_config(params) - pprint(api_response) -except fireblocks_client.ApiException as e: - print("Exception when calling PaymentsCrossBorderSettlementApi->delete_xb_settlement_config: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -configId | ConfigIdSchema | | - -# ConfigIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#delete_xb_settlement_config.ApiResponseFor200) | Cross-border settlement configuration deleted successfully. Returns the deleted configuration. -404 | [ApiResponseFor404](#delete_xb_settlement_config.ApiResponseFor404) | No cross-border settlement configuration exists with the provided ID. -401 | [ApiResponseFor401](#delete_xb_settlement_config.ApiResponseFor401) | Unauthorized. Missing / invalid JWT token in Authorization header. -5XX | [ApiResponseFor5XX](#delete_xb_settlement_config.ApiResponseFor5XX) | Internal error. - -#### delete_xb_settlement_config.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**XBSettlementConfigModel**](../../models/XBSettlementConfigModel.md) | | - - -#### delete_xb_settlement_config.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ErrorResponse**](../../models/ErrorResponse.md) | | - - -#### delete_xb_settlement_config.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ErrorResponse**](../../models/ErrorResponse.md) | | - - -#### delete_xb_settlement_config.ApiResponseFor5XX -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor5XXResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor5XXResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ErrorResponse**](../../models/ErrorResponse.md) | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **execute_xb_settlement_flow_action** - -> XBSettlementFlowExecutionModel execute_xb_settlement_flow_action(flow_id) - -Execute cross-border settlement flow - -Send a payment flow with 'flowId' for execution. If a differet slippage configuraion is needed for this execution than configured in the flow configuration, the request body must define the desired slippage configuration for this execution. **Note:** The reference content in this section documents the Payments Engine endpoint. The Payments Engine endpoint includes APIs available only for customers with the Payments Engine enabled on their accounts. These endpoints are currently in beta and might be subject to changes. If you want to learn more about the Fireblocks Payments Engine, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import payments_cross_border_settlement_api -from fireblocks_client.model.xb_settlement_flow_execution_request_body import XBSettlementFlowExecutionRequestBody -from fireblocks_client.model.error_response import ErrorResponse -from fireblocks_client.model.xb_settlement_flow_execution_model import XBSettlementFlowExecutionModel -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = payments_cross_border_settlement_api.PaymentsCrossBorderSettlementApi() -# example passing only required values which don't have defaults set -params = { - 'flowId': "98fb5a8b-65ff-4f15-b89c-80910aedbfb3", - 'xb_settlement_flow_execution_request_body': XBSettlementFlowExecutionRequestBody( - conversion_slippage_basis_points=XBSettlementConversionSlippageBasisPoints(10000), - ) -} -try: - # Execute cross-border settlement flow - api_response = api_instance.execute_xb_settlement_flow_action(params) - pprint(api_response) -except fireblocks_client.ApiException as e: - print("Exception when calling PaymentsCrossBorderSettlementApi->execute_xb_settlement_flow_action: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson, Unset] | optional, default is unset | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**XBSettlementFlowExecutionRequestBody**](../../models/XBSettlementFlowExecutionRequestBody.md) | | - - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -flowId | FlowIdSchema | | - -# FlowIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#execute_xb_settlement_flow_action.ApiResponseFor200) | Cross-border settlement flow started to execute successfully -400 | [ApiResponseFor400](#execute_xb_settlement_flow_action.ApiResponseFor400) | Error while trying to execute the cross-border flow -404 | [ApiResponseFor404](#execute_xb_settlement_flow_action.ApiResponseFor404) | Invalid flowId. -401 | [ApiResponseFor401](#execute_xb_settlement_flow_action.ApiResponseFor401) | Unauthorized. Missing / invalid JWT token in Authorization header. -5XX | [ApiResponseFor5XX](#execute_xb_settlement_flow_action.ApiResponseFor5XX) | Internal error. - -#### execute_xb_settlement_flow_action.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**XBSettlementFlowExecutionModel**](../../models/XBSettlementFlowExecutionModel.md) | | - - -#### execute_xb_settlement_flow_action.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ErrorResponse**](../../models/ErrorResponse.md) | | - - -#### execute_xb_settlement_flow_action.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ErrorResponse**](../../models/ErrorResponse.md) | | - - -#### execute_xb_settlement_flow_action.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ErrorResponse**](../../models/ErrorResponse.md) | | - - -#### execute_xb_settlement_flow_action.ApiResponseFor5XX -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor5XXResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor5XXResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ErrorResponse**](../../models/ErrorResponse.md) | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[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_xb_settlement_config_by_id** - -> XBSettlementConfigModel get_xb_settlement_config_by_id(config_id) - -Get a specific cross-border settlement configuration - -Get a specific cross-border settlement configuration.
**Note:** The reference content in this section documents the Payments Engine endpoint. The Payments Engine endpoint includes APIs available only for customers with the Payments Engine enabled on their accounts. These endpoints are currently in beta and might be subject to changes. If you want to learn more about the Fireblocks Payments Engine, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import payments_cross_border_settlement_api -from fireblocks_client.model.error_response import ErrorResponse -from fireblocks_client.model.xb_settlement_config_model import XBSettlementConfigModel -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = payments_cross_border_settlement_api.PaymentsCrossBorderSettlementApi() -# example passing only required values which don't have defaults set -params = { - 'configId': "074791cc-ef32-4920-8373-95efbeea66c5", -} -try: - # Get a specific cross-border settlement configuration - api_response = api_instance.get_xb_settlement_config_by_id(params) - pprint(api_response) -except fireblocks_client.ApiException as e: - print("Exception when calling PaymentsCrossBorderSettlementApi->get_xb_settlement_config_by_id: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -configId | ConfigIdSchema | | - -# ConfigIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#get_xb_settlement_config_by_id.ApiResponseFor200) | Returns the requested cross-border settlement configuration -404 | [ApiResponseFor404](#get_xb_settlement_config_by_id.ApiResponseFor404) | No cross-border settlement configuration exists with the provided ID. -401 | [ApiResponseFor401](#get_xb_settlement_config_by_id.ApiResponseFor401) | Unauthorized. Missing / invalid JWT token in Authorization header. -5XX | [ApiResponseFor5XX](#get_xb_settlement_config_by_id.ApiResponseFor5XX) | Internal error. - -#### get_xb_settlement_config_by_id.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**XBSettlementConfigModel**](../../models/XBSettlementConfigModel.md) | | - - -#### get_xb_settlement_config_by_id.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ErrorResponse**](../../models/ErrorResponse.md) | | - - -#### get_xb_settlement_config_by_id.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ErrorResponse**](../../models/ErrorResponse.md) | | - - -#### get_xb_settlement_config_by_id.ApiResponseFor5XX -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor5XXResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor5XXResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ErrorResponse**](../../models/ErrorResponse.md) | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[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_xb_settlement_configs** - -> XBSettlementGetAllConfigsResponse get_xb_settlement_configs() - -Get all the cross-border settlement configurations - -Get all the cross-border settlement configurations.
**Note:** The reference content in this section documents the Payments Engine endpoint. The Payments Engine endpoint includes APIs available only for customers with the Payments Engine enabled on their accounts. These endpoints are currently in beta and might be subject to changes. If you want to learn more about the Fireblocks Payments Engine, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import payments_cross_border_settlement_api -from fireblocks_client.model.error_response import ErrorResponse -from fireblocks_client.model.xb_settlement_get_all_configs_response import XBSettlementGetAllConfigsResponse -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = payments_cross_border_settlement_api.PaymentsCrossBorderSettlementApi() - -``` -### Parameters - -This endpoint does not need any parameter. - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#get_xb_settlement_configs.ApiResponseFor200) | Returns all the cross-border settlement configurations -401 | [ApiResponseFor401](#get_xb_settlement_configs.ApiResponseFor401) | Unauthorized. Missing / invalid JWT token in Authorization header. -5XX | [ApiResponseFor5XX](#get_xb_settlement_configs.ApiResponseFor5XX) | Internal error. - -#### get_xb_settlement_configs.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**XBSettlementGetAllConfigsResponse**](../../models/XBSettlementGetAllConfigsResponse.md) | | - - -#### get_xb_settlement_configs.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ErrorResponse**](../../models/ErrorResponse.md) | | - - -#### get_xb_settlement_configs.ApiResponseFor5XX -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor5XXResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor5XXResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ErrorResponse**](../../models/ErrorResponse.md) | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[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_xb_settlement_flow_by_id** - -> XBSettlementGetFlowResponse get_xb_settlement_flow_by_id(flow_id) - -Get specific cross-border settlement flow details - -Gets details for a specific cross-border settlement flow **Note:** The reference content in this section documents the Payments Engine endpoint. The Payments Engine endpoint includes APIs available only for customers with the Payments Engine enabled on their accounts. These endpoints are currently in beta and might be subject to changes. If you want to learn more about the Fireblocks Payments Engine, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import payments_cross_border_settlement_api -from fireblocks_client.model.xb_settlement_get_flow_response import XBSettlementGetFlowResponse -from fireblocks_client.model.error_response import ErrorResponse -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = payments_cross_border_settlement_api.PaymentsCrossBorderSettlementApi() -# example passing only required values which don't have defaults set -params = { - 'flowId': "98fb5a8b-65ff-4f15-b89c-80910aedbfb3", -} -try: - # Get specific cross-border settlement flow details - api_response = api_instance.get_xb_settlement_flow_by_id(params) - pprint(api_response) -except fireblocks_client.ApiException as e: - print("Exception when calling PaymentsCrossBorderSettlementApi->get_xb_settlement_flow_by_id: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -flowId | FlowIdSchema | | - -# FlowIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#get_xb_settlement_flow_by_id.ApiResponseFor200) | Returns cross-border settlement flow details. For unexecuted flows, a preview object will return, showing the estimated time, amounts, and fees. Note that this data structure updates as the flow progresses, including the total fees (accumulated), state, and steps. -404 | [ApiResponseFor404](#get_xb_settlement_flow_by_id.ApiResponseFor404) | Invalid flowId. -401 | [ApiResponseFor401](#get_xb_settlement_flow_by_id.ApiResponseFor401) | Unauthorized. Missing / invalid JWT token in Authorization header. -5XX | [ApiResponseFor5XX](#get_xb_settlement_flow_by_id.ApiResponseFor5XX) | Internal error. - -#### get_xb_settlement_flow_by_id.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**XBSettlementGetFlowResponse**](../../models/XBSettlementGetFlowResponse.md) | | - - -#### get_xb_settlement_flow_by_id.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ErrorResponse**](../../models/ErrorResponse.md) | | - - -#### get_xb_settlement_flow_by_id.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ErrorResponse**](../../models/ErrorResponse.md) | | - - -#### get_xb_settlement_flow_by_id.ApiResponseFor5XX -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor5XXResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor5XXResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ErrorResponse**](../../models/ErrorResponse.md) | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **update_xb_settlement_config** - -> XBSettlementConfigModel update_xb_settlement_config(config_id) - -Edit a cross-border settlement configuration - -Edit a cross-border settlement configuration. Editing a configuration does not affect previously executed flows that used the configuration. **Note:** The reference content in this section documents the Payments Engine endpoint. The Payments Engine endpoint includes APIs available only for customers with the Payments Engine enabled on their accounts. These endpoints are currently in beta and might be subject to changes. If you want to learn more about the Fireblocks Payments Engine, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import payments_cross_border_settlement_api -from fireblocks_client.model.error_response import ErrorResponse -from fireblocks_client.model.xb_settlement_config_model import XBSettlementConfigModel -from fireblocks_client.model.xb_settlement_config_edit_request_body import XBSettlementConfigEditRequestBody -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = payments_cross_border_settlement_api.PaymentsCrossBorderSettlementApi() -# example passing only required values which don't have defaults set -params = { - 'configId': "074791cc-ef32-4920-8373-95efbeea66c5", - 'xb_settlement_config_edit_request_body': XBSettlementConfigEditRequestBody( - name="name_example", - steps=XBSettlementConfigStepsRecord( - step_type=XBSettlementStepType("ON_RAMP"), - ), - conversion_slippage_basis_points=XBSettlementConversionSlippageBasisPoints(10000), - ) -} -try: - # Edit a cross-border settlement configuration - api_response = api_instance.update_xb_settlement_config(params) - pprint(api_response) -except fireblocks_client.ApiException as e: - print("Exception when calling PaymentsCrossBorderSettlementApi->update_xb_settlement_config: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson, Unset] | optional, default is unset | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**XBSettlementConfigEditRequestBody**](../../models/XBSettlementConfigEditRequestBody.md) | | - - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -configId | ConfigIdSchema | | - -# ConfigIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#update_xb_settlement_config.ApiResponseFor200) | Cross-border settlement configuration edited successfully -404 | [ApiResponseFor404](#update_xb_settlement_config.ApiResponseFor404) | No cross-border settlement configuration exists with the provided ID. -400 | [ApiResponseFor400](#update_xb_settlement_config.ApiResponseFor400) | Error creating the cross-border request. Configuration not modified. -401 | [ApiResponseFor401](#update_xb_settlement_config.ApiResponseFor401) | Unauthorized. Missing / invalid JWT token in Authorization header. -5XX | [ApiResponseFor5XX](#update_xb_settlement_config.ApiResponseFor5XX) | Internal error. - -#### update_xb_settlement_config.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**XBSettlementConfigModel**](../../models/XBSettlementConfigModel.md) | | - - -#### update_xb_settlement_config.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ErrorResponse**](../../models/ErrorResponse.md) | | - - -#### update_xb_settlement_config.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ErrorResponse**](../../models/ErrorResponse.md) | | - - -#### update_xb_settlement_config.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ErrorResponse**](../../models/ErrorResponse.md) | | - - -#### update_xb_settlement_config.ApiResponseFor5XX -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor5XXResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor5XXResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ErrorResponse**](../../models/ErrorResponse.md) | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - diff --git a/docs/apis/tags/PaymentsPayoutApi.md b/docs/apis/tags/PaymentsPayoutApi.md deleted file mode 100644 index 24211ac7..00000000 --- a/docs/apis/tags/PaymentsPayoutApi.md +++ /dev/null @@ -1,385 +0,0 @@ - -# fireblocks_client.apis.tags.payments_payout_api.PaymentsPayoutApi - -All URIs are relative to *https://api.fireblocks.io/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**create_payout**](#create_payout) | **post** /payments/payout | Create a payout instruction set -[**execute_payout_action**](#execute_payout_action) | **post** /payments/payout/{payoutId}/actions/execute | Execute a payout instruction set -[**get_payout_by_id**](#get_payout_by_id) | **get** /payments/payout/{payoutId} | Get the status of a payout instruction set - -# **create_payout** - -> PayoutResponse create_payout() - -Create a payout instruction set - -**Note:** The reference content in this section documents the Payments Engine endpoint. The Payments Engine endpoints include APIs available only for customers with Payments Engine enabled on their accounts.

These endpoints are currently in beta and might be subject to changes.

If you want to learn more about Fireblocks Payments Engine, please contact your Fireblocks Customer Success Manager or email CSM@fireblocks.com.

Create a payout instruction set.
A payout instruction set is a set of instructions for distributing payments from a single payment account to a list of payee accounts.
The instruction set defines:
  • the payment account and its account type (vault, exchange, or fiat).
  • the account type (vault account, exchange account, whitelisted address, network connection, fiat account, or merchant account), the amount, and the asset of payment for each payee account.
- -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import payments_payout_api -from fireblocks_client.model.payout_response import PayoutResponse -from fireblocks_client.model.error_response import ErrorResponse -from fireblocks_client.model.create_payout_request import CreatePayoutRequest -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = payments_payout_api.PaymentsPayoutApi() - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson, Unset] | optional, default is unset | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**CreatePayoutRequest**](../../models/CreatePayoutRequest.md) | | - - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#create_payout.ApiResponseFor200) | The payout instruction set creation succeeded and returns the generated instruction set with a unique payout IDThe payout ID will be used for executing the payout and checking the payout status. -400 | [ApiResponseFor400](#create_payout.ApiResponseFor400) | Bad request -401 | [ApiResponseFor401](#create_payout.ApiResponseFor401) | Unauthorized. Missing / invalid JWT token in Authorization header. -5XX | [ApiResponseFor5XX](#create_payout.ApiResponseFor5XX) | Internal error. - -#### create_payout.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**PayoutResponse**](../../models/PayoutResponse.md) | | - - -#### create_payout.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ErrorResponse**](../../models/ErrorResponse.md) | | - - -#### create_payout.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ErrorResponse**](../../models/ErrorResponse.md) | | - - -#### create_payout.ApiResponseFor5XX -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor5XXResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor5XXResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ErrorResponse**](../../models/ErrorResponse.md) | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **execute_payout_action** - -> DispatchPayoutResponse execute_payout_action(payout_id) - -Execute a payout instruction set - -**Note:** The reference content in this section documents the Payments Engine endpoint. The Payments Engine endpoints include APIs available only for customers with Payments Engine enabled on their accounts.

These endpoints are currently in beta and might be subject to changes.

If you want to learn more about Fireblocks Payments Engine, please contact your Fireblocks Customer Success Manager or email CSM@fireblocks.com.

Execute a payout instruction set.

The instruction set will be verified and executed.
Source locking
If you are executing a payout instruction set from a payment account with an already active payout the active payout will complete before the new payout instruction set can be executed.
You cannot execute the same payout instruction set more than once. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import payments_payout_api -from fireblocks_client.model.error_response import ErrorResponse -from fireblocks_client.model.dispatch_payout_response import DispatchPayoutResponse -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = payments_payout_api.PaymentsPayoutApi() -# example passing only required values which don't have defaults set -params = { - 'payoutId': "1fe3b61f-7e1f-4a19-aff0-4f0a524d44d7", -} -try: - # Execute a payout instruction set - api_response = api_instance.execute_payout_action(params) - pprint(api_response) -except fireblocks_client.ApiException as e: - print("Exception when calling PaymentsPayoutApi->execute_payout_action: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -payoutId | PayoutIdSchema | | - -# PayoutIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#execute_payout_action.ApiResponseFor200) | Executed the payout instruction set -400 | [ApiResponseFor400](#execute_payout_action.ApiResponseFor400) | Bad request -401 | [ApiResponseFor401](#execute_payout_action.ApiResponseFor401) | Unauthorized. Missing / invalid JWT token in Authorization header. -5XX | [ApiResponseFor5XX](#execute_payout_action.ApiResponseFor5XX) | Internal error. - -#### execute_payout_action.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**DispatchPayoutResponse**](../../models/DispatchPayoutResponse.md) | | - - -#### execute_payout_action.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ErrorResponse**](../../models/ErrorResponse.md) | | - - -#### execute_payout_action.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ErrorResponse**](../../models/ErrorResponse.md) | | - - -#### execute_payout_action.ApiResponseFor5XX -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor5XXResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor5XXResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ErrorResponse**](../../models/ErrorResponse.md) | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[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_payout_by_id** - -> PayoutResponse get_payout_by_id(payout_id) - -Get the status of a payout instruction set - -**Note:** The reference content in this section documents the Payments Engine endpoint. The Payments Engine endpoints include APIs available only for customers with Payments Engine enabled on their accounts.

These endpoints are currently in beta and might be subject to changes.

If you want to learn more about Fireblocks Payments Engine, please contact your Fireblocks Customer Success Manager or email CSM@fireblocks.com.
- -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import payments_payout_api -from fireblocks_client.model.payout_response import PayoutResponse -from fireblocks_client.model.error_response import ErrorResponse -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = payments_payout_api.PaymentsPayoutApi() -# example passing only required values which don't have defaults set -params = { - 'payoutId': "1fe3b61f-7e1f-4a19-aff0-4f0a524d44d7", -} -try: - # Get the status of a payout instruction set - api_response = api_instance.get_payout_by_id(params) - pprint(api_response) -except fireblocks_client.ApiException as e: - print("Exception when calling PaymentsPayoutApi->get_payout_by_id: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -payoutId | PayoutIdSchema | | - -# PayoutIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#get_payout_by_id.ApiResponseFor200) | Returns the current status of the payout instruction set, including the status of each payout instruction and the transactions created in the process. -404 | [ApiResponseFor404](#get_payout_by_id.ApiResponseFor404) | No payout with the given payout ID exists. -401 | [ApiResponseFor401](#get_payout_by_id.ApiResponseFor401) | Unauthorized. Missing / invalid JWT token in Authorization header. -5XX | [ApiResponseFor5XX](#get_payout_by_id.ApiResponseFor5XX) | Internal error. - -#### get_payout_by_id.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**PayoutResponse**](../../models/PayoutResponse.md) | | - - -#### get_payout_by_id.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ErrorResponse**](../../models/ErrorResponse.md) | | - - -#### get_payout_by_id.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ErrorResponse**](../../models/ErrorResponse.md) | | - - -#### get_payout_by_id.ApiResponseFor5XX -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor5XXResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor5XXResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**ErrorResponse**](../../models/ErrorResponse.md) | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - diff --git a/docs/apis/tags/PolicyEditorBetaApi.md b/docs/apis/tags/PolicyEditorBetaApi.md deleted file mode 100644 index 1cc6e81b..00000000 --- a/docs/apis/tags/PolicyEditorBetaApi.md +++ /dev/null @@ -1,627 +0,0 @@ - -# fireblocks_client.apis.tags.policy_editor_beta_api.PolicyEditorBetaApi - -All URIs are relative to *https://api.fireblocks.io/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**get_active_policy**](#get_active_policy) | **get** /tap/active_policy | Get the active policy and its validation -[**get_draft**](#get_draft) | **get** /tap/draft | Get the active draft -[**publish_draft**](#publish_draft) | **post** /tap/draft | Send publish request for a certain draft id -[**publish_policy_rules**](#publish_policy_rules) | **post** /tap/publish | Send publish request for a set of policy rules -[**update_draft**](#update_draft) | **put** /tap/draft | Update the draft with a new set of rules - -# **get_active_policy** - -> PolicyAndValidationResponse get_active_policy() - -Get the active policy and its validation - -Returns the active policy and its validation.
**Note:** These endpoints are currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks TAP, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import policy_editor_beta_api -from fireblocks_client.model.error import Error -from fireblocks_client.model.policy_and_validation_response import PolicyAndValidationResponse -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = policy_editor_beta_api.PolicyEditorBetaApi() - -``` -### Parameters - -This endpoint does not need any parameter. - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#get_active_policy.ApiResponseFor200) | A policy object -default | [ApiResponseForDefault](#get_active_policy.ApiResponseForDefault) | Error Response - -#### get_active_policy.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBody, ] | | -headers | ResponseHeadersFor200 | | - -# SchemaFor200ResponseBody -Type | Description | Notes -------------- | ------------- | ------------- -[**PolicyAndValidationResponse**](../../models/PolicyAndValidationResponse.md) | | - -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### get_active_policy.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[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_draft** - -> DraftReviewAndValidationResponse get_draft() - -Get the active draft - -Returns the active draft and its validation.
**Note:** These endpoints are currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks TAP, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import policy_editor_beta_api -from fireblocks_client.model.draft_review_and_validation_response import DraftReviewAndValidationResponse -from fireblocks_client.model.error import Error -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = policy_editor_beta_api.PolicyEditorBetaApi() - -``` -### Parameters - -This endpoint does not need any parameter. - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#get_draft.ApiResponseFor200) | A draft validation response object -default | [ApiResponseForDefault](#get_draft.ApiResponseForDefault) | Error Response - -#### get_draft.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBody, ] | | -headers | ResponseHeadersFor200 | | - -# SchemaFor200ResponseBody -Type | Description | Notes -------------- | ------------- | ------------- -[**DraftReviewAndValidationResponse**](../../models/DraftReviewAndValidationResponse.md) | | - -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### get_draft.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **publish_draft** - -> PublishResult publish_draft(any_type) - -Send publish request for a certain draft id - -Send publish request of certain draft id and returns the response.
**Note:** These endpoints are currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks TAP, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import policy_editor_beta_api -from fireblocks_client.model.publish_result import PublishResult -from fireblocks_client.model.error import Error -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = policy_editor_beta_api.PolicyEditorBetaApi() -# example passing only required values which don't have defaults set -params = { - 'any_type': None -} -try: - # Send publish request for a certain draft id - api_response = api_instance.publish_draft(params) - pprint(api_response) -except fireblocks_client.ApiException as e: - print("Exception when calling PolicyEditorBetaApi->publish_draft: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('*/*', 'application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**draftId** | str, | str, | draft unique identifier | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -201 | [ApiResponseFor201](#publish_draft.ApiResponseFor201) | A policy publish result object -default | [ApiResponseForDefault](#publish_draft.ApiResponseForDefault) | Error Response - -#### publish_draft.ApiResponseFor201 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor201ResponseBody, ] | | -headers | ResponseHeadersFor201 | | - -# SchemaFor201ResponseBody -Type | Description | Notes -------------- | ------------- | ------------- -[**PublishResult**](../../models/PublishResult.md) | | - -#### ResponseHeadersFor201 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### publish_draft.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **publish_policy_rules** - -> PublishResult publish_policy_rules(any_type) - -Send publish request for a set of policy rules - -Send publish request of set of policy rules and returns the response.
**Note:** These endpoints are currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks TAP, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import policy_editor_beta_api -from fireblocks_client.model.policy_rule import PolicyRule -from fireblocks_client.model.publish_result import PublishResult -from fireblocks_client.model.error import Error -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = policy_editor_beta_api.PolicyEditorBetaApi() -# example passing only required values which don't have defaults set -params = { - 'any_type': None -} -try: - # Send publish request for a set of policy rules - api_response = api_instance.publish_policy_rules(params) - pprint(api_response) -except fireblocks_client.ApiException as e: - print("Exception when calling PolicyEditorBetaApi->publish_policy_rules: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('*/*', 'application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[rules](#rules)** | list, tuple, | tuple, | Policy rules to publish | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# rules - -Policy rules to publish - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | Policy rules to publish | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**PolicyRule**]({{complexTypePrefix}}PolicyRule.md) | [**PolicyRule**]({{complexTypePrefix}}PolicyRule.md) | [**PolicyRule**]({{complexTypePrefix}}PolicyRule.md) | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -201 | [ApiResponseFor201](#publish_policy_rules.ApiResponseFor201) | A policy publish result object -default | [ApiResponseForDefault](#publish_policy_rules.ApiResponseForDefault) | Error Response - -#### publish_policy_rules.ApiResponseFor201 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor201ResponseBody, ] | | -headers | ResponseHeadersFor201 | | - -# SchemaFor201ResponseBody -Type | Description | Notes -------------- | ------------- | ------------- -[**PublishResult**](../../models/PublishResult.md) | | - -#### ResponseHeadersFor201 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### publish_policy_rules.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **update_draft** - -> DraftReviewAndValidationResponse update_draft(any_type) - -Update the draft with a new set of rules - -Update the draft and return its validation.
**Note:** These endpoints are currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks TAP, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import policy_editor_beta_api -from fireblocks_client.model.policy_rule import PolicyRule -from fireblocks_client.model.draft_review_and_validation_response import DraftReviewAndValidationResponse -from fireblocks_client.model.error import Error -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = policy_editor_beta_api.PolicyEditorBetaApi() -# example passing only required values which don't have defaults set -params = { - 'any_type': None -} -try: - # Update the draft with a new set of rules - api_response = api_instance.update_draft(params) - pprint(api_response) -except fireblocks_client.ApiException as e: - print("Exception when calling PolicyEditorBetaApi->update_draft: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('*/*', 'application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[rules](#rules)** | list, tuple, | tuple, | rules to update the draft with | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# rules - -rules to update the draft with - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | rules to update the draft with | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**PolicyRule**]({{complexTypePrefix}}PolicyRule.md) | [**PolicyRule**]({{complexTypePrefix}}PolicyRule.md) | [**PolicyRule**]({{complexTypePrefix}}PolicyRule.md) | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#update_draft.ApiResponseFor200) | A draft validation response object -default | [ApiResponseForDefault](#update_draft.ApiResponseForDefault) | Error Response - -#### update_draft.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBody, ] | | -headers | ResponseHeadersFor200 | | - -# SchemaFor200ResponseBody -Type | Description | Notes -------------- | ------------- | ------------- -[**DraftReviewAndValidationResponse**](../../models/DraftReviewAndValidationResponse.md) | | - -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### update_draft.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - diff --git a/docs/apis/tags/TransactionsApi.md b/docs/apis/tags/TransactionsApi.md deleted file mode 100644 index 76a00a43..00000000 --- a/docs/apis/tags/TransactionsApi.md +++ /dev/null @@ -1,1788 +0,0 @@ - -# fireblocks_client.apis.tags.transactions_api.TransactionsApi - -All URIs are relative to *https://api.fireblocks.io/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**cancel_transaction**](#cancel_transaction) | **post** /transactions/{txId}/cancel | Cancel a transaction -[**create_transaction**](#create_transaction) | **post** /transactions | Create a new transaction -[**drop_transaction**](#drop_transaction) | **post** /transactions/{txId}/drop | Drop ETH transaction by ID -[**estimate_network_fee**](#estimate_network_fee) | **get** /estimate_network_fee | Estimate the required fee for an asset -[**estimate_transaction_fee**](#estimate_transaction_fee) | **post** /transactions/estimate_fee | Estimate transaction fee -[**freeze_transaction**](#freeze_transaction) | **post** /transactions/{txId}/freeze | Freeze a transaction -[**get_transaction_by_external_id**](#get_transaction_by_external_id) | **get** /transactions/external_tx_id/{externalTxId}/ | Find a specific transaction by external transaction ID -[**get_transaction_by_id**](#get_transaction_by_id) | **get** /transactions/{txId} | Find a specific transaction by Fireblocks transaction ID -[**get_transactions**](#get_transactions) | **get** /transactions | List transaction history -[**set_confirmation_threshold_for_transaction**](#set_confirmation_threshold_for_transaction) | **post** /transactions/{txId}/set_confirmation_threshold | Set confirmation threshold by transaction ID -[**set_confirmation_threshold_for_transaction_by_hash**](#set_confirmation_threshold_for_transaction_by_hash) | **post** /txHash/{txHash}/set_confirmation_threshold | Set confirmation threshold by transaction hash -[**unfreeze_transaction**](#unfreeze_transaction) | **post** /transactions/{txId}/unfreeze | Unfreeze a transaction -[**validate_address**](#validate_address) | **get** /transactions/validate_address/{assetId}/{address} | Validate destination address - -# **cancel_transaction** - -> CancelTransactionResponse cancel_transaction(tx_id) - -Cancel a transaction - -Cancels a transaction by ID. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import transactions_api -from fireblocks_client.model.error import Error -from fireblocks_client.model.cancel_transaction_response import CancelTransactionResponse -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = transactions_api.TransactionsApi() -# example passing only required values which don't have defaults set -params = { - 'txId': "txId_example", -} -try: - # Cancel a transaction - api_response = api_instance.cancel_transaction(params) - pprint(api_response) -except fireblocks_client.ApiException as e: - print("Exception when calling TransactionsApi->cancel_transaction: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -accept_content_types | typing.Tuple[str] | default is ('*/*', 'application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -txId | TxIdSchema | | - -# TxIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#cancel_transaction.ApiResponseFor200) | An Transaction object -default | [ApiResponseForDefault](#cancel_transaction.ApiResponseForDefault) | Error Response - -#### cancel_transaction.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBody, ] | | -headers | ResponseHeadersFor200 | | - -# SchemaFor200ResponseBody -Type | Description | Notes -------------- | ------------- | ------------- -[**CancelTransactionResponse**](../../models/CancelTransactionResponse.md) | | - -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### cancel_transaction.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **create_transaction** - -> CreateTransactionResponse create_transaction() - -Create a new transaction - -Creates a new transaction. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import transactions_api -from fireblocks_client.model.transaction_request import TransactionRequest -from fireblocks_client.model.error import Error -from fireblocks_client.model.create_transaction_response import CreateTransactionResponse -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = transactions_api.TransactionsApi() - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson, Unset] | optional, default is unset | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('*/*', 'application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**TransactionRequest**](../../models/TransactionRequest.md) | | - - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#create_transaction.ApiResponseFor200) | A transaction object -default | [ApiResponseForDefault](#create_transaction.ApiResponseForDefault) | Error Response - -#### create_transaction.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBody, ] | | -headers | ResponseHeadersFor200 | | - -# SchemaFor200ResponseBody -Type | Description | Notes -------------- | ------------- | ------------- -[**CreateTransactionResponse**](../../models/CreateTransactionResponse.md) | | - -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### create_transaction.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **drop_transaction** - -> DropTransactionResponse drop_transaction(tx_id) - -Drop ETH transaction by ID - -Drops a stuck ETH transaction and creates a replacement transaction. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import transactions_api -from fireblocks_client.model.drop_transaction_response import DropTransactionResponse -from fireblocks_client.model.drop_transaction_request import DropTransactionRequest -from fireblocks_client.model.error import Error -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = transactions_api.TransactionsApi() -# example passing only required values which don't have defaults set -params = { - 'txId': "txId_example", - 'drop_transaction_request': DropTransactionRequest( - tx_id="tx_id_example", - fee_level="fee_level_example", - gas_price="gas_price_example", - ) -} -try: - # Drop ETH transaction by ID - api_response = api_instance.drop_transaction(params) - pprint(api_response) -except fireblocks_client.ApiException as e: - print("Exception when calling TransactionsApi->drop_transaction: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson, Unset] | optional, default is unset | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('*/*', 'application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**DropTransactionRequest**](../../models/DropTransactionRequest.md) | | - - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -txId | TxIdSchema | | - -# TxIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#drop_transaction.ApiResponseFor200) | Created successfully -default | [ApiResponseForDefault](#drop_transaction.ApiResponseForDefault) | Error Response - -#### drop_transaction.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBody, ] | | -headers | ResponseHeadersFor200 | | - -# SchemaFor200ResponseBody -Type | Description | Notes -------------- | ------------- | ------------- -[**DropTransactionResponse**](../../models/DropTransactionResponse.md) | | - -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### drop_transaction.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **estimate_network_fee** - -> EstimatedNetworkFeeResponse estimate_network_fee(asset_id) - -Estimate the required fee for an asset - -Gets the estimated required fee for an asset. For UTXO based assets, the response will contain the suggested fee per byte, for ETH/ETC based assets, the suggested gas price, and for XRP/XLM, the transaction fee. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import transactions_api -from fireblocks_client.model.estimated_network_fee_response import EstimatedNetworkFeeResponse -from fireblocks_client.model.error import Error -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = transactions_api.TransactionsApi() -# example passing only required values which don't have defaults set -params = { - 'assetId': "assetId_example", -} -try: - # Estimate the required fee for an asset - api_response = api_instance.estimate_network_fee(params) - pprint(api_response) -except fireblocks_client.ApiException as e: - print("Exception when calling TransactionsApi->estimate_network_fee: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -accept_content_types | typing.Tuple[str] | default is ('*/*', 'application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### query_params -#### RequestQueryParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -assetId | AssetIdSchema | | - - -# AssetIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#estimate_network_fee.ApiResponseFor200) | Estimated fees response -default | [ApiResponseForDefault](#estimate_network_fee.ApiResponseForDefault) | Error Response - -#### estimate_network_fee.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBody, ] | | -headers | ResponseHeadersFor200 | | - -# SchemaFor200ResponseBody -Type | Description | Notes -------------- | ------------- | ------------- -[**EstimatedNetworkFeeResponse**](../../models/EstimatedNetworkFeeResponse.md) | | - -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### estimate_network_fee.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **estimate_transaction_fee** - -> EstimatedTransactionFeeResponse estimate_transaction_fee() - -Estimate transaction fee - -Estimates the transaction fee for a transaction request. * Note: Supports all Fireblocks assets except ZCash (ZEC). - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import transactions_api -from fireblocks_client.model.transaction_request import TransactionRequest -from fireblocks_client.model.error import Error -from fireblocks_client.model.estimated_transaction_fee_response import EstimatedTransactionFeeResponse -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = transactions_api.TransactionsApi() - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson, Unset] | optional, default is unset | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('*/*', 'application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**TransactionRequest**](../../models/TransactionRequest.md) | | - - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#estimate_transaction_fee.ApiResponseFor200) | Estimated fees response -default | [ApiResponseForDefault](#estimate_transaction_fee.ApiResponseForDefault) | Error Response - -#### estimate_transaction_fee.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBody, ] | | -headers | ResponseHeadersFor200 | | - -# SchemaFor200ResponseBody -Type | Description | Notes -------------- | ------------- | ------------- -[**EstimatedTransactionFeeResponse**](../../models/EstimatedTransactionFeeResponse.md) | | - -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### estimate_transaction_fee.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **freeze_transaction** - -> FreezeTransactionResponse freeze_transaction(tx_id) - -Freeze a transaction - -Freezes a transaction by ID. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import transactions_api -from fireblocks_client.model.freeze_transaction_response import FreezeTransactionResponse -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = transactions_api.TransactionsApi() -# example passing only required values which don't have defaults set -params = { - 'txId': "txId_example", -} -try: - # Freeze a transaction - api_response = api_instance.freeze_transaction(params) - pprint(api_response) -except fireblocks_client.ApiException as e: - print("Exception when calling TransactionsApi->freeze_transaction: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -accept_content_types | typing.Tuple[str] | default is ('*/*', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -txId | TxIdSchema | | - -# TxIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#freeze_transaction.ApiResponseFor200) | freeze response - -#### freeze_transaction.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBody, ] | | -headers | ResponseHeadersFor200 | | - -# SchemaFor200ResponseBody -Type | Description | Notes -------------- | ------------- | ------------- -[**FreezeTransactionResponse**](../../models/FreezeTransactionResponse.md) | | - -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[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_transaction_by_external_id** - -> TransactionResponse get_transaction_by_external_id(external_tx_id) - -Find a specific transaction by external transaction ID - -Returns transaction by external transaction ID. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import transactions_api -from fireblocks_client.model.error import Error -from fireblocks_client.model.transaction_response import TransactionResponse -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = transactions_api.TransactionsApi() -# example passing only required values which don't have defaults set -params = { - 'externalTxId': "00000000-0000-0000-0000-000000000000", -} -try: - # Find a specific transaction by external transaction ID - api_response = api_instance.get_transaction_by_external_id(params) - pprint(api_response) -except fireblocks_client.ApiException as e: - print("Exception when calling TransactionsApi->get_transaction_by_external_id: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -accept_content_types | typing.Tuple[str] | default is ('*/*', 'application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -externalTxId | ExternalTxIdSchema | | - -# ExternalTxIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#get_transaction_by_external_id.ApiResponseFor200) | An Transaction object -default | [ApiResponseForDefault](#get_transaction_by_external_id.ApiResponseForDefault) | Error Response - -#### get_transaction_by_external_id.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBody, ] | | -headers | ResponseHeadersFor200 | | - -# SchemaFor200ResponseBody -Type | Description | Notes -------------- | ------------- | ------------- -[**TransactionResponse**](../../models/TransactionResponse.md) | | - -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### get_transaction_by_external_id.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[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_transaction_by_id** - -> TransactionResponse get_transaction_by_id(tx_id) - -Find a specific transaction by Fireblocks transaction ID - -Returns a transaction by ID. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import transactions_api -from fireblocks_client.model.error import Error -from fireblocks_client.model.transaction_response import TransactionResponse -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = transactions_api.TransactionsApi() -# example passing only required values which don't have defaults set -params = { - 'txId': "00000000-0000-0000-0000-000000000000", -} -try: - # Find a specific transaction by Fireblocks transaction ID - api_response = api_instance.get_transaction_by_id(params) - pprint(api_response) -except fireblocks_client.ApiException as e: - print("Exception when calling TransactionsApi->get_transaction_by_id: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -accept_content_types | typing.Tuple[str] | default is ('*/*', 'application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -txId | TxIdSchema | | - -# TxIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#get_transaction_by_id.ApiResponseFor200) | An Transaction object -400 | [ApiResponseFor400](#get_transaction_by_id.ApiResponseFor400) | Error Response -default | [ApiResponseForDefault](#get_transaction_by_id.ApiResponseForDefault) | Error Response - -#### get_transaction_by_id.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBody, ] | | -headers | ResponseHeadersFor200 | | - -# SchemaFor200ResponseBody -Type | Description | Notes -------------- | ------------- | ------------- -[**TransactionResponse**](../../models/TransactionResponse.md) | | - -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### get_transaction_by_id.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor400 | | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor400 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### get_transaction_by_id.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[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_transactions** - -> [TransactionResponse] get_transactions() - -List transaction history - -Lists the transaction history for your workspace. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import transactions_api -from fireblocks_client.model.error import Error -from fireblocks_client.model.transaction_response import TransactionResponse -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = transactions_api.TransactionsApi() - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -accept_content_types | typing.Tuple[str] | default is ('*/*', 'application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### query_params -#### RequestQueryParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -before | BeforeSchema | | optional -after | AfterSchema | | optional -status | StatusSchema | | optional -orderBy | OrderBySchema | | optional -sort | SortSchema | | optional -limit | LimitSchema | | optional -sourceType | SourceTypeSchema | | optional -sourceId | SourceIdSchema | | optional -destType | DestTypeSchema | | optional -destId | DestIdSchema | | optional -assets | AssetsSchema | | optional -txHash | TxHashSchema | | optional -sourceWalletId | SourceWalletIdSchema | | optional -destWalletId | DestWalletIdSchema | | optional - - -# BeforeSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# AfterSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# StatusSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# OrderBySchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | must be one of ["createdAt", "lastUpdated", ] - -# SortSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | must be one of ["ASC", "DESC", ] - -# LimitSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -decimal.Decimal, int, | decimal.Decimal, | | if omitted the server will use the default value of 200 - -# SourceTypeSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | must be one of ["VAULT_ACCOUNT", "EXCHANGE_ACCOUNT", "INTERNAL_WALLET", "EXTERNAL_WALLET", "FIAT_ACCOUNT", "NETWORK_CONNECTION", "COMPOUND", "UNKNOWN", "GAS_STATION", "END_USER_WALLET", ] - -# SourceIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# DestTypeSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | must be one of ["VAULT_ACCOUNT", "EXCHANGE_ACCOUNT", "INTERNAL_WALLET", "EXTERNAL_WALLET", "FIAT_ACCOUNT", "NETWORK_CONNECTION", "COMPOUND", "ONE_TIME_ADDRESS", "END_USER_WALLET", ] - -# DestIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# AssetsSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# TxHashSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# SourceWalletIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# DestWalletIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#get_transactions.ApiResponseFor200) | A list of transactions -default | [ApiResponseForDefault](#get_transactions.ApiResponseForDefault) | Error Response - -#### get_transactions.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBody, ] | | -headers | ResponseHeadersFor200 | | - -# SchemaFor200ResponseBody - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**TransactionResponse**]({{complexTypePrefix}}TransactionResponse.md) | [**TransactionResponse**]({{complexTypePrefix}}TransactionResponse.md) | [**TransactionResponse**]({{complexTypePrefix}}TransactionResponse.md) | | -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional -next-page | NextPageSchema | | optional -prev-page | PrevPageSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# NextPageSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# PrevPageSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### get_transactions.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **set_confirmation_threshold_for_transaction** - -> SetConfirmationsThresholdResponse set_confirmation_threshold_for_transaction(tx_id) - -Set confirmation threshold by transaction ID - -Overrides the required number of confirmations for transaction completion by transaction ID. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import transactions_api -from fireblocks_client.model.set_confirmations_threshold_response import SetConfirmationsThresholdResponse -from fireblocks_client.model.error import Error -from fireblocks_client.model.set_confirmations_threshold_request import SetConfirmationsThresholdRequest -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = transactions_api.TransactionsApi() -# example passing only required values which don't have defaults set -params = { - 'txId': "txId_example", - 'set_confirmations_threshold_request': SetConfirmationsThresholdRequest( - num_of_confirmations=3.14, - ) -} -try: - # Set confirmation threshold by transaction ID - api_response = api_instance.set_confirmation_threshold_for_transaction(params) - pprint(api_response) -except fireblocks_client.ApiException as e: - print("Exception when calling TransactionsApi->set_confirmation_threshold_for_transaction: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson, Unset] | optional, default is unset | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('*/*', 'application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**SetConfirmationsThresholdRequest**](../../models/SetConfirmationsThresholdRequest.md) | | - - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -txId | TxIdSchema | | - -# TxIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#set_confirmation_threshold_for_transaction.ApiResponseFor200) | Set successfully -default | [ApiResponseForDefault](#set_confirmation_threshold_for_transaction.ApiResponseForDefault) | Error Response - -#### set_confirmation_threshold_for_transaction.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBody, ] | | -headers | ResponseHeadersFor200 | | - -# SchemaFor200ResponseBody -Type | Description | Notes -------------- | ------------- | ------------- -[**SetConfirmationsThresholdResponse**](../../models/SetConfirmationsThresholdResponse.md) | | - -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### set_confirmation_threshold_for_transaction.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **set_confirmation_threshold_for_transaction_by_hash** - -> SetConfirmationsThresholdResponse set_confirmation_threshold_for_transaction_by_hash(tx_hash) - -Set confirmation threshold by transaction hash - -Overrides the required number of confirmations for transaction completion by transaction hash. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import transactions_api -from fireblocks_client.model.set_confirmations_threshold_response import SetConfirmationsThresholdResponse -from fireblocks_client.model.error import Error -from fireblocks_client.model.set_confirmations_threshold_request import SetConfirmationsThresholdRequest -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = transactions_api.TransactionsApi() -# example passing only required values which don't have defaults set -params = { - 'txHash': "txHash_example", - 'set_confirmations_threshold_request': SetConfirmationsThresholdRequest( - num_of_confirmations=3.14, - ) -} -try: - # Set confirmation threshold by transaction hash - api_response = api_instance.set_confirmation_threshold_for_transaction_by_hash(params) - pprint(api_response) -except fireblocks_client.ApiException as e: - print("Exception when calling TransactionsApi->set_confirmation_threshold_for_transaction_by_hash: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson, Unset] | optional, default is unset | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('*/*', 'application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**SetConfirmationsThresholdRequest**](../../models/SetConfirmationsThresholdRequest.md) | | - - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -txHash | TxHashSchema | | - -# TxHashSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#set_confirmation_threshold_for_transaction_by_hash.ApiResponseFor200) | A list of transactions affected by the change -default | [ApiResponseForDefault](#set_confirmation_threshold_for_transaction_by_hash.ApiResponseForDefault) | Error Response - -#### set_confirmation_threshold_for_transaction_by_hash.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBody, ] | | -headers | ResponseHeadersFor200 | | - -# SchemaFor200ResponseBody -Type | Description | Notes -------------- | ------------- | ------------- -[**SetConfirmationsThresholdResponse**](../../models/SetConfirmationsThresholdResponse.md) | | - -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### set_confirmation_threshold_for_transaction_by_hash.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **unfreeze_transaction** - -> UnfreezeTransactionResponse unfreeze_transaction(tx_id) - -Unfreeze a transaction - -Unfreezes a transaction by ID and makes the transaction available again. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import transactions_api -from fireblocks_client.model.unfreeze_transaction_response import UnfreezeTransactionResponse -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = transactions_api.TransactionsApi() -# example passing only required values which don't have defaults set -params = { - 'txId': "txId_example", -} -try: - # Unfreeze a transaction - api_response = api_instance.unfreeze_transaction(params) - pprint(api_response) -except fireblocks_client.ApiException as e: - print("Exception when calling TransactionsApi->unfreeze_transaction: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -accept_content_types | typing.Tuple[str] | default is ('*/*', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -txId | TxIdSchema | | - -# TxIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#unfreeze_transaction.ApiResponseFor200) | Unfreeze response - -#### unfreeze_transaction.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBody, ] | | -headers | ResponseHeadersFor200 | | - -# SchemaFor200ResponseBody -Type | Description | Notes -------------- | ------------- | ------------- -[**UnfreezeTransactionResponse**](../../models/UnfreezeTransactionResponse.md) | | - -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **validate_address** - -> ValidateAddressResponse validate_address(asset_idaddress) - -Validate destination address - -Checks if an address is valid (for XRP, DOT, XLM, and EOS). - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import transactions_api -from fireblocks_client.model.validate_address_response import ValidateAddressResponse -from fireblocks_client.model.error import Error -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = transactions_api.TransactionsApi() -# example passing only required values which don't have defaults set -params = { - 'assetId': "assetId_example", - 'address': "address_example", -} -try: - # Validate destination address - api_response = api_instance.validate_address(params) - pprint(api_response) -except fireblocks_client.ApiException as e: - print("Exception when calling TransactionsApi->validate_address: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -accept_content_types | typing.Tuple[str] | default is ('*/*', 'application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -assetId | AssetIdSchema | | -address | AddressSchema | | - -# AssetIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# AddressSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#validate_address.ApiResponseFor200) | An Transaction object -default | [ApiResponseForDefault](#validate_address.ApiResponseForDefault) | Error Response - -#### validate_address.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBody, ] | | -headers | ResponseHeadersFor200 | | - -# SchemaFor200ResponseBody -Type | Description | Notes -------------- | ------------- | ------------- -[**ValidateAddressResponse**](../../models/ValidateAddressResponse.md) | | - -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### validate_address.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - diff --git a/docs/apis/tags/TravelRuleBetaApi.md b/docs/apis/tags/TravelRuleBetaApi.md deleted file mode 100644 index 9012d0fc..00000000 --- a/docs/apis/tags/TravelRuleBetaApi.md +++ /dev/null @@ -1,561 +0,0 @@ - -# fireblocks_client.apis.tags.travel_rule_beta_api.TravelRuleBetaApi - -All URIs are relative to *https://api.fireblocks.io/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**get_vaspby_did**](#get_vaspby_did) | **get** /screening/travel_rule/vasp/{did} | Get VASP details -[**get_vasps**](#get_vasps) | **get** /screening/travel_rule/vasp | Get All VASPs -[**travel_rule_api_controller_update_vasp**](#travel_rule_api_controller_update_vasp) | **put** /screeening/travel_rule/vasp/update | Add jsonDidKey to VASP details -[**validate_full_travel_rule_transaction**](#validate_full_travel_rule_transaction) | **post** /screening/travel_rule/transaction/validate/full | Validate Full Travel Rule Transaction -[**validate_travel_rule_transaction**](#validate_travel_rule_transaction) | **post** /screening/travel_rule/transaction/validate | Validate Travel Rule Transaction - -# **get_vaspby_did** - -> TravelRuleVASP get_vaspby_did(did) - -Get VASP details - -Get VASP Details. Returns information about a VASP that has the specified DID. **Note:** The reference content in this section documents the Travel Rule beta endpoint. The beta endpoint includes APIs that are currently in preview and aren't yet generally available. To enroll in the beta and enable this endpoint, contact your Fireblocks Customer Success Manager or send an email to [CSM@fireblocks.com](mailto:CSM@fireblocks.com). - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import travel_rule_beta_api -from fireblocks_client.model.travel_rule_vasp import TravelRuleVASP -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = travel_rule_beta_api.TravelRuleBetaApi() -# example passing only required values which don't have defaults set -params = { - 'did': "did_example", -} -try: - # Get VASP details - api_response = api_instance.get_vaspby_did(params) - pprint(api_response) -except fireblocks_client.ApiException as e: - print("Exception when calling TravelRuleBetaApi->get_vaspby_did: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### query_params -#### RequestQueryParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -fields | FieldsSchema | | optional - - -# FieldsSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -did | DidSchema | | - -# DidSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#get_vaspby_did.ApiResponseFor200) | Transaction validated successfully -400 | [ApiResponseFor400](#get_vaspby_did.ApiResponseFor400) | Invalid request body -500 | [ApiResponseFor500](#get_vaspby_did.ApiResponseFor500) | Internal server error - -#### get_vaspby_did.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**TravelRuleVASP**](../../models/TravelRuleVASP.md) | | - - -#### get_vaspby_did.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | Unset | body was not defined | -headers | Unset | headers were not defined | - -#### get_vaspby_did.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | Unset | body was not defined | -headers | Unset | headers were not defined | - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[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_vasps** - -> TravelRuleGetAllVASPsResponse get_vasps() - -Get All VASPs - -Get All VASPs. Returns a list of VASPs. VASPs can be searched and sorted and results are paginated. **Note:** The reference content in this section documents the Travel Rule beta endpoint. The beta endpoint includes APIs that are currently in preview and aren't yet generally available. To enroll in the beta and enable this endpoint, contact your Fireblocks Customer Success Manager or send an email to [CSM@fireblocks.com](mailto:CSM@fireblocks.com). - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import travel_rule_beta_api -from fireblocks_client.model.travel_rule_get_all_vasps_response import TravelRuleGetAllVASPsResponse -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = travel_rule_beta_api.TravelRuleBetaApi() - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### query_params -#### RequestQueryParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -order | OrderSchema | | optional -per_page | PerPageSchema | | optional -page | PageSchema | | optional -fields | FieldsSchema | | optional - - -# OrderSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# PerPageSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -decimal.Decimal, int, float, | decimal.Decimal, | | - -# PageSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -decimal.Decimal, int, float, | decimal.Decimal, | | - -# FieldsSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#get_vasps.ApiResponseFor200) | Get all VASPs - -#### get_vasps.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**TravelRuleGetAllVASPsResponse**](../../models/TravelRuleGetAllVASPsResponse.md) | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **travel_rule_api_controller_update_vasp** - -> TravelRuleUpdateVASPDetails travel_rule_api_controller_update_vasp(travel_rule_update_vasp_details) - -Add jsonDidKey to VASP details - -Update VASP Details. Updates a VASP with the provided parameters. Use this endpoint to add your public jsonDIDkey generated by Notabene. **Note:** The reference content in this section documents the Travel Rule beta endpoint. The beta endpoint includes APIs that are currently in preview and aren't yet generally available. To enroll in the beta and enable this endpoint, contact your Fireblocks Customer Success Manager or send an email to [CSM@fireblocks.com](mailto:CSM@fireblocks.com). - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import travel_rule_beta_api -from fireblocks_client.model.travel_rule_update_vasp_details import TravelRuleUpdateVASPDetails -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = travel_rule_beta_api.TravelRuleBetaApi() -# example passing only required values which don't have defaults set -params = { - 'travel_rule_update_vasp_details': TravelRuleUpdateVASPDetails( - did="did:ethr:0x44957e75d6ce4a5bf37aae117da86422c848f7c2", - pii_didkey="did:key:z6Mks5CZRaiooKYhq5TwtXQC1gWhwiZnmiKfFrMnYY62MhYf", - ) -} -try: - # Add jsonDidKey to VASP details - api_response = api_instance.travel_rule_api_controller_update_vasp(params) - pprint(api_response) -except fireblocks_client.ApiException as e: - print("Exception when calling TravelRuleBetaApi->travel_rule_api_controller_update_vasp: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**TravelRuleUpdateVASPDetails**](../../models/TravelRuleUpdateVASPDetails.md) | | - - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#travel_rule_api_controller_update_vasp.ApiResponseFor200) | VASP updated successfully -400 | [ApiResponseFor400](#travel_rule_api_controller_update_vasp.ApiResponseFor400) | Invalid request body -500 | [ApiResponseFor500](#travel_rule_api_controller_update_vasp.ApiResponseFor500) | Internal server error - -#### travel_rule_api_controller_update_vasp.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**TravelRuleUpdateVASPDetails**](../../models/TravelRuleUpdateVASPDetails.md) | | - - -#### travel_rule_api_controller_update_vasp.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | Unset | body was not defined | -headers | Unset | headers were not defined | - -#### travel_rule_api_controller_update_vasp.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | Unset | body was not defined | -headers | Unset | headers were not defined | - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **validate_full_travel_rule_transaction** - -> TravelRuleValidateTransactionResponse validate_full_travel_rule_transaction(travel_rule_validate_full_transaction_request) - -Validate Full Travel Rule Transaction - -Validate Full Travel Rule transactions. Checks for all required information on the originator and beneficiary VASPs. **Note:** The reference content in this section documents the Travel Rule beta endpoint. The beta endpoint includes APIs that are currently in preview and aren't yet generally available. To enroll in the beta and enable this endpoint, contact your Fireblocks Customer Success Manager or send an email to [CSM@fireblocks.com](mailto:CSM@fireblocks.com). - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import travel_rule_beta_api -from fireblocks_client.model.travel_rule_validate_full_transaction_request import TravelRuleValidateFullTransactionRequest -from fireblocks_client.model.travel_rule_validate_transaction_response import TravelRuleValidateTransactionResponse -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = travel_rule_beta_api.TravelRuleBetaApi() -# example passing only required values which don't have defaults set -params = { - 'travel_rule_validate_full_transaction_request': TravelRuleValidateFullTransactionRequest( - transaction_asset="transaction_asset_example", - transaction_amount="transaction_amount_example", - originator_did="originator_did_example", - beneficiary_did="beneficiary_did_example", - originator_vas_pdid="originator_vas_pdid_example", - beneficiary_vas_pdid="beneficiary_vas_pdid_example", - beneficiary_vas_pname="beneficiary_vas_pname_example", - transaction_blockchain_info=None, - originator=None, - beneficiary=None, - encrypted="encrypted_example", - protocol="protocol_example", - notification_email="notification_email_example", - skip_beneficiary_data_validation=True, - travel_rule_behavior=True, - originator_proof=None, - beneficiary_proof=None, - pii=None, - ) -} -try: - # Validate Full Travel Rule Transaction - api_response = api_instance.validate_full_travel_rule_transaction(params) - pprint(api_response) -except fireblocks_client.ApiException as e: - print("Exception when calling TravelRuleBetaApi->validate_full_travel_rule_transaction: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**TravelRuleValidateFullTransactionRequest**](../../models/TravelRuleValidateFullTransactionRequest.md) | | - - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#validate_full_travel_rule_transaction.ApiResponseFor200) | Transaction validated successfully -400 | [ApiResponseFor400](#validate_full_travel_rule_transaction.ApiResponseFor400) | Invalid request body -500 | [ApiResponseFor500](#validate_full_travel_rule_transaction.ApiResponseFor500) | Internal server error - -#### validate_full_travel_rule_transaction.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**TravelRuleValidateTransactionResponse**](../../models/TravelRuleValidateTransactionResponse.md) | | - - -#### validate_full_travel_rule_transaction.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | Unset | body was not defined | -headers | Unset | headers were not defined | - -#### validate_full_travel_rule_transaction.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | Unset | body was not defined | -headers | Unset | headers were not defined | - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **validate_travel_rule_transaction** - -> TravelRuleValidateTransactionResponse validate_travel_rule_transaction(travel_rule_validate_transaction_request) - -Validate Travel Rule Transaction - -Validate Travel Rule transactions. Checks what beneficiary VASP details are required by your jurisdiction and the beneficiary's jurisdiction. **Note:** The reference content in this section documents the Travel Rule beta endpoint. The beta endpoint includes APIs that are currently in preview and aren't yet generally available. To enroll in the beta and enable this endpoint, contact your Fireblocks Customer Success Manager or send an email to [CSM@fireblocks.com](mailto:CSM@fireblocks.com). - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import travel_rule_beta_api -from fireblocks_client.model.travel_rule_validate_transaction_response import TravelRuleValidateTransactionResponse -from fireblocks_client.model.travel_rule_validate_transaction_request import TravelRuleValidateTransactionRequest -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = travel_rule_beta_api.TravelRuleBetaApi() -# example passing only required values which don't have defaults set -params = { - 'travel_rule_validate_transaction_request': TravelRuleValidateTransactionRequest( - transaction_asset="BTC", - destination="bc1qxy2kgdygjrsqtzq2n0yrf1234p83kkfjhx0wlh", - transaction_amount="10", - originator_vas_pdid="did:ethr:0x44957e75d6ce4a5bf37aae117da86422c848f7c2", - originator_equals_beneficiary=False, - travel_rule_behavior=True, - beneficiary_vas_pdid="did:ethr:0x46a7ed5813ce735387df2bfb245bd7722e0de992", - beneficiary_vas_pname="HelloCrypto", - beneficiary_name="John Doe", - beneficiary_account_number="1234-1234-1234-12234", - beneficiary_address=None, - ) -} -try: - # Validate Travel Rule Transaction - api_response = api_instance.validate_travel_rule_transaction(params) - pprint(api_response) -except fireblocks_client.ApiException as e: - print("Exception when calling TravelRuleBetaApi->validate_travel_rule_transaction: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**TravelRuleValidateTransactionRequest**](../../models/TravelRuleValidateTransactionRequest.md) | | - - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#validate_travel_rule_transaction.ApiResponseFor200) | Transaction validated successfully -400 | [ApiResponseFor400](#validate_travel_rule_transaction.ApiResponseFor400) | Invalid request body -500 | [ApiResponseFor500](#validate_travel_rule_transaction.ApiResponseFor500) | Internal server error - -#### validate_travel_rule_transaction.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**TravelRuleValidateTransactionResponse**](../../models/TravelRuleValidateTransactionResponse.md) | | - - -#### validate_travel_rule_transaction.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | Unset | body was not defined | -headers | Unset | headers were not defined | - -#### validate_travel_rule_transaction.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | Unset | body was not defined | -headers | Unset | headers were not defined | - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - diff --git a/docs/apis/tags/UsersApi.md b/docs/apis/tags/UsersApi.md deleted file mode 100644 index 83cdb470..00000000 --- a/docs/apis/tags/UsersApi.md +++ /dev/null @@ -1,106 +0,0 @@ - -# fireblocks_client.apis.tags.users_api.UsersApi - -All URIs are relative to *https://api.fireblocks.io/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**get_users**](#get_users) | **get** /users | List users - -# **get_users** - -> GetUsersResponse get_users() - -List users - -List all users for the workspace. Please note that this endpoint is available only for API keys with Admin permissions. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import users_api -from fireblocks_client.model.get_users_response import GetUsersResponse -from fireblocks_client.model.error import Error -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = users_api.UsersApi() - -``` -### Parameters - -This endpoint does not need any parameter. - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#get_users.ApiResponseFor200) | List of users -default | [ApiResponseForDefault](#get_users.ApiResponseForDefault) | Error Response - -#### get_users.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBody, ] | | -headers | ResponseHeadersFor200 | | - -# SchemaFor200ResponseBody -Type | Description | Notes -------------- | ------------- | ------------- -[**GetUsersResponse**](../../models/GetUsersResponse.md) | | - -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### get_users.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - diff --git a/docs/apis/tags/UsersGroupsBetaApi.md b/docs/apis/tags/UsersGroupsBetaApi.md deleted file mode 100644 index f8321bc6..00000000 --- a/docs/apis/tags/UsersGroupsBetaApi.md +++ /dev/null @@ -1,629 +0,0 @@ - -# fireblocks_client.apis.tags.users_groups_beta_api.UsersGroupsBetaApi - -All URIs are relative to *https://api.fireblocks.io/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**create_user_group**](#create_user_group) | **post** /users_groups | Create users group -[**delete_user_group**](#delete_user_group) | **delete** /users_groups/{groupId} | Delete users group -[**get_user_group**](#get_user_group) | **get** /users_groups/{groupId} | Get users group -[**get_user_groups**](#get_user_groups) | **get** /users_groups | List users groups -[**update_user_group**](#update_user_group) | **put** /users_groups/{groupId} | Update users group - -# **create_user_group** - -> CreateUsersGroupResponse create_user_group(user_group_create_request) - -Create users group - -Create a new users group.
**Note**: - This endpoint is now in Beta, disabled for general availability at this time. - Please note that this endpoint is available only for API keys with Admin permissions. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import users_groups_beta_api -from fireblocks_client.model.user_group_create_request import UserGroupCreateRequest -from fireblocks_client.model.create_users_group_response import CreateUsersGroupResponse -from fireblocks_client.model.error import Error -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = users_groups_beta_api.UsersGroupsBetaApi() -# example passing only required values which don't have defaults set -params = { - 'user_group_create_request': UserGroupCreateRequest( - group_name="group_name_example", - member_ids=[ - "member_ids_example" - ], - ) -} -try: - # Create users group - api_response = api_instance.create_user_group(params) - pprint(api_response) -except fireblocks_client.ApiException as e: - print("Exception when calling UsersGroupsBetaApi->create_user_group: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('*/*', 'application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**UserGroupCreateRequest**](../../models/UserGroupCreateRequest.md) | | - - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -201 | [ApiResponseFor201](#create_user_group.ApiResponseFor201) | Users group created and pending approval -default | [ApiResponseForDefault](#create_user_group.ApiResponseForDefault) | Error Response - -#### create_user_group.ApiResponseFor201 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor201ResponseBody, ] | | -headers | ResponseHeadersFor201 | | - -# SchemaFor201ResponseBody -Type | Description | Notes -------------- | ------------- | ------------- -[**CreateUsersGroupResponse**](../../models/CreateUsersGroupResponse.md) | | - -#### ResponseHeadersFor201 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### create_user_group.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **delete_user_group** - -> delete_user_group(group_id) - -Delete users group - -Delete a users group by ID.
**Note**: - This endpoint is now in Beta, disabled for general availability at this time. - Please note that this endpoint is available only for API keys with Admin permissions. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import users_groups_beta_api -from fireblocks_client.model.error import Error -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = users_groups_beta_api.UsersGroupsBetaApi() -# example passing only required values which don't have defaults set -params = { - 'groupId': "groupId_example", -} -try: - # Delete users group - api_response = api_instance.delete_user_group(params) -except fireblocks_client.ApiException as e: - print("Exception when calling UsersGroupsBetaApi->delete_user_group: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -groupId | GroupIdSchema | | - -# GroupIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -204 | [ApiResponseFor204](#delete_user_group.ApiResponseFor204) | Request to delete users group submitted for approval -default | [ApiResponseForDefault](#delete_user_group.ApiResponseForDefault) | Error Response - -#### delete_user_group.ApiResponseFor204 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | Unset | body was not defined | -headers | ResponseHeadersFor204 | | -#### ResponseHeadersFor204 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### delete_user_group.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[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_user_group** - -> UsersGroupResponse get_user_group(group_id) - -Get users group - -Get a users group by ID.
**Note**: - This endpoint is now in Beta, disabled for general availability at this time. - Please note that this endpoint is available only for API keys with Admin permissions. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import users_groups_beta_api -from fireblocks_client.model.users_group_response import UsersGroupResponse -from fireblocks_client.model.error import Error -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = users_groups_beta_api.UsersGroupsBetaApi() -# example passing only required values which don't have defaults set -params = { - 'groupId': "groupId_example", -} -try: - # Get users group - api_response = api_instance.get_user_group(params) - pprint(api_response) -except fireblocks_client.ApiException as e: - print("Exception when calling UsersGroupsBetaApi->get_user_group: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -accept_content_types | typing.Tuple[str] | default is ('*/*', 'application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -groupId | GroupIdSchema | | - -# GroupIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#get_user_group.ApiResponseFor200) | Users group -default | [ApiResponseForDefault](#get_user_group.ApiResponseForDefault) | Error Response - -#### get_user_group.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBody, ] | | -headers | ResponseHeadersFor200 | | - -# SchemaFor200ResponseBody -Type | Description | Notes -------------- | ------------- | ------------- -[**UsersGroupResponse**](../../models/UsersGroupResponse.md) | | - -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### get_user_group.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[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_user_groups** - -> UsersGroupsResponse get_user_groups() - -List users groups - -Get all user groups in your workspace.
**Note**: - This endpoint is now in Beta, disabled for general availability at this time. - Please note that this endpoint is available only for API keys with Admin permissions. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import users_groups_beta_api -from fireblocks_client.model.users_groups_response import UsersGroupsResponse -from fireblocks_client.model.error import Error -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = users_groups_beta_api.UsersGroupsBetaApi() - -``` -### Parameters - -This endpoint does not need any parameter. - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#get_user_groups.ApiResponseFor200) | List of the users groups in your workspace -default | [ApiResponseForDefault](#get_user_groups.ApiResponseForDefault) | Error Response - -#### get_user_groups.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBody, ] | | -headers | ResponseHeadersFor200 | | - -# SchemaFor200ResponseBody -Type | Description | Notes -------------- | ------------- | ------------- -[**UsersGroupsResponse**](../../models/UsersGroupsResponse.md) | | - -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### get_user_groups.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **update_user_group** - -> UserGroupCreateResponse update_user_group(group_iduser_group_update_request) - -Update users group - -Update a users group by ID.
**Note**: - This endpoint is now in Beta, disabled for general availability at this time. - Please note that this endpoint is available only for API keys with Admin permissions. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import users_groups_beta_api -from fireblocks_client.model.user_group_update_request import UserGroupUpdateRequest -from fireblocks_client.model.user_group_create_response import UserGroupCreateResponse -from fireblocks_client.model.error import Error -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = users_groups_beta_api.UsersGroupsBetaApi() -# example passing only required values which don't have defaults set -params = { - 'groupId': "groupId_example", - 'user_group_update_request': UserGroupUpdateRequest( - group_name="group_name_example", - member_ids=[ - "member_ids_example" - ], - ) -} -try: - # Update users group - api_response = api_instance.update_user_group(params) - pprint(api_response) -except fireblocks_client.ApiException as e: - print("Exception when calling UsersGroupsBetaApi->update_user_group: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('*/*', 'application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**UserGroupUpdateRequest**](../../models/UserGroupUpdateRequest.md) | | - - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -groupId | GroupIdSchema | | - -# GroupIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#update_user_group.ApiResponseFor200) | Users group updated and the changes are pending approval -default | [ApiResponseForDefault](#update_user_group.ApiResponseForDefault) | Error Response - -#### update_user_group.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBody, ] | | -headers | ResponseHeadersFor200 | | - -# SchemaFor200ResponseBody -Type | Description | Notes -------------- | ------------- | ------------- -[**UserGroupCreateResponse**](../../models/UserGroupCreateResponse.md) | | - -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### update_user_group.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - diff --git a/docs/apis/tags/VaultsApi.md b/docs/apis/tags/VaultsApi.md deleted file mode 100644 index b64812e5..00000000 --- a/docs/apis/tags/VaultsApi.md +++ /dev/null @@ -1,3529 +0,0 @@ - -# fireblocks_client.apis.tags.vaults_api.VaultsApi - -All URIs are relative to *https://api.fireblocks.io/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**activate_asset_for_vault_account**](#activate_asset_for_vault_account) | **post** /vault/accounts/{vaultAccountId}/{assetId}/activate | Activate a wallet in a vault account -[**create_legacy_address_for_vault_account_asset**](#create_legacy_address_for_vault_account_asset) | **post** /vault/accounts/{vaultAccountId}/{assetId}/addresses/{addressId}/create_legacy | Convert a segwit address to legacy format -[**create_vault_account**](#create_vault_account) | **post** /vault/accounts | Create a new vault account -[**create_vault_account_asset**](#create_vault_account_asset) | **post** /vault/accounts/{vaultAccountId}/{assetId} | Create a new wallet -[**create_vault_account_asset_address**](#create_vault_account_asset_address) | **post** /vault/accounts/{vaultAccountId}/{assetId}/addresses | Create new asset deposit address -[**get_asset_wallets**](#get_asset_wallets) | **get** /vault/asset_wallets | List asset wallets (Paginated) -[**get_max_spendable_amount**](#get_max_spendable_amount) | **get** /vault/accounts/{vaultAccountId}/{assetId}/max_spendable_amount | Get the maximum spendable amount in a single transaction. -[**get_paged_vault_accounts**](#get_paged_vault_accounts) | **get** /vault/accounts_paged | List vault acounts (Paginated) -[**get_public_key_info**](#get_public_key_info) | **get** /vault/public_key_info/ | Get the public key information -[**get_public_key_info_for_address**](#get_public_key_info_for_address) | **get** /vault/accounts/{vaultAccountId}/{assetId}/{change}/{addressIndex}/public_key_info | Get the public key for a vault account -[**get_vault_account_asset**](#get_vault_account_asset) | **get** /vault/accounts/{vaultAccountId}/{assetId} | Get the asset balance for a vault account -[**get_vault_account_asset_addresses**](#get_vault_account_asset_addresses) | **get** /vault/accounts/{vaultAccountId}/{assetId}/addresses | Get asset addresses -[**get_vault_account_asset_unspent_inputs**](#get_vault_account_asset_unspent_inputs) | **get** /vault/accounts/{vaultAccountId}/{assetId}/unspent_inputs | Get UTXO unspent inputs information -[**get_vault_account_by_id**](#get_vault_account_by_id) | **get** /vault/accounts/{vaultAccountId} | Find a vault account by ID -[**get_vault_accounts**](#get_vault_accounts) | **get** /vault/accounts | List vault accounts -[**get_vault_asset_by_id**](#get_vault_asset_by_id) | **get** /vault/assets/{assetId} | Get vault balance by asset -[**get_vault_assets**](#get_vault_assets) | **get** /vault/assets | Get asset balance for chosen assets -[**hide_vault_account**](#hide_vault_account) | **post** /vault/accounts/{vaultAccountId}/hide | Hide a vault account in the console -[**set_auto_fuel_for_vault_account**](#set_auto_fuel_for_vault_account) | **post** /vault/accounts/{vaultAccountId}/set_auto_fuel | Turn autofueling on or off -[**set_customer_ref_id_for_vault_account**](#set_customer_ref_id_for_vault_account) | **post** /vault/accounts/{vaultAccountId}/set_customer_ref_id | Set an AML/KYT customer reference ID for a vault account -[**set_customer_ref_id_for_vault_account_asset_address**](#set_customer_ref_id_for_vault_account_asset_address) | **post** /vault/accounts/{vaultAccountId}/{assetId}/addresses/{addressId}/set_customer_ref_id | Assign AML customer reference ID -[**unhide_vault_account**](#unhide_vault_account) | **post** /vault/accounts/{vaultAccountId}/unhide | Unhide a vault account in the console -[**update_vault_account**](#update_vault_account) | **put** /vault/accounts/{vaultAccountId} | Rename a vault account -[**update_vault_account_asset_address**](#update_vault_account_asset_address) | **put** /vault/accounts/{vaultAccountId}/{assetId}/addresses/{addressId} | Update address description -[**update_vault_account_asset_balance**](#update_vault_account_asset_balance) | **post** /vault/accounts/{vaultAccountId}/{assetId}/balance | Refresh asset balance data - -# **activate_asset_for_vault_account** - -> CreateVaultAssetResponse activate_asset_for_vault_account(vault_account_idasset_id) - -Activate a wallet in a vault account - -Initiates activation for a wallet in a vault account. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import vaults_api -from fireblocks_client.model.create_vault_asset_response import CreateVaultAssetResponse -from fireblocks_client.model.error import Error -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = vaults_api.VaultsApi() -# example passing only required values which don't have defaults set -params = { - 'vaultAccountId': "vaultAccountId_example", - 'assetId': "assetId_example", -} -try: - # Activate a wallet in a vault account - api_response = api_instance.activate_asset_for_vault_account(params) - pprint(api_response) -except fireblocks_client.ApiException as e: - print("Exception when calling VaultsApi->activate_asset_for_vault_account: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -accept_content_types | typing.Tuple[str] | default is ('*/*', 'application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -vaultAccountId | VaultAccountIdSchema | | -assetId | AssetIdSchema | | - -# VaultAccountIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# AssetIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#activate_asset_for_vault_account.ApiResponseFor200) | OK -default | [ApiResponseForDefault](#activate_asset_for_vault_account.ApiResponseForDefault) | Error Response - -#### activate_asset_for_vault_account.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBody, ] | | -headers | ResponseHeadersFor200 | | - -# SchemaFor200ResponseBody -Type | Description | Notes -------------- | ------------- | ------------- -[**CreateVaultAssetResponse**](../../models/CreateVaultAssetResponse.md) | | - -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### activate_asset_for_vault_account.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **create_legacy_address_for_vault_account_asset** - -> CreateAddressResponse create_legacy_address_for_vault_account_asset(vault_account_idasset_idaddress_id) - -Convert a segwit address to legacy format - -Converts an existing segwit address to the legacy format. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import vaults_api -from fireblocks_client.model.create_address_response import CreateAddressResponse -from fireblocks_client.model.error import Error -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = vaults_api.VaultsApi() -# example passing only required values which don't have defaults set -params = { - 'vaultAccountId': "vaultAccountId_example", - 'assetId': "assetId_example", - 'addressId': "addressId_example", -} -try: - # Convert a segwit address to legacy format - api_response = api_instance.create_legacy_address_for_vault_account_asset(params) - pprint(api_response) -except fireblocks_client.ApiException as e: - print("Exception when calling VaultsApi->create_legacy_address_for_vault_account_asset: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -accept_content_types | typing.Tuple[str] | default is ('*/*', 'application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -vaultAccountId | VaultAccountIdSchema | | -assetId | AssetIdSchema | | -addressId | AddressIdSchema | | - -# VaultAccountIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# AssetIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# AddressIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#create_legacy_address_for_vault_account_asset.ApiResponseFor200) | The created address -default | [ApiResponseForDefault](#create_legacy_address_for_vault_account_asset.ApiResponseForDefault) | Error Response - -#### create_legacy_address_for_vault_account_asset.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBody, ] | | -headers | ResponseHeadersFor200 | | - -# SchemaFor200ResponseBody -Type | Description | Notes -------------- | ------------- | ------------- -[**CreateAddressResponse**](../../models/CreateAddressResponse.md) | | - -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### create_legacy_address_for_vault_account_asset.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **create_vault_account** - -> VaultAccount create_vault_account(any_type) - -Create a new vault account - -Creates a new vault account with the requested name. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import vaults_api -from fireblocks_client.model.vault_account import VaultAccount -from fireblocks_client.model.error import Error -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = vaults_api.VaultsApi() -# example passing only required values which don't have defaults set -params = { - 'any_type': None -} -try: - # Create a new vault account - api_response = api_instance.create_vault_account(params) - pprint(api_response) -except fireblocks_client.ApiException as e: - print("Exception when calling VaultsApi->create_vault_account: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('*/*', 'application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**name** | str, | str, | Account Name | [optional] -**hiddenOnUI** | bool, | BoolClass, | Optional - if true, the created account and all related transactions will not be shown on Fireblocks console | [optional] -**customerRefId** | str, | str, | Optional - Sets a customer reference ID | [optional] -**autoFuel** | bool, | BoolClass, | Optional - Sets the autoFuel property of the vault account | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#create_vault_account.ApiResponseFor200) | A Vault Account object -default | [ApiResponseForDefault](#create_vault_account.ApiResponseForDefault) | Error Response - -#### create_vault_account.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBody, ] | | -headers | ResponseHeadersFor200 | | - -# SchemaFor200ResponseBody -Type | Description | Notes -------------- | ------------- | ------------- -[**VaultAccount**](../../models/VaultAccount.md) | | - -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### create_vault_account.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **create_vault_account_asset** - -> CreateVaultAssetResponse create_vault_account_asset(vault_account_idasset_id) - -Create a new wallet - -Creates a wallet for a specific asset in a vault account. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import vaults_api -from fireblocks_client.model.create_vault_asset_response import CreateVaultAssetResponse -from fireblocks_client.model.error import Error -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = vaults_api.VaultsApi() -# example passing only required values which don't have defaults set -params = { - 'vaultAccountId': "vaultAccountId_example", - 'assetId': "assetId_example", - 'any_type': None -} -try: - # Create a new wallet - api_response = api_instance.create_vault_account_asset(params) - pprint(api_response) -except fireblocks_client.ApiException as e: - print("Exception when calling VaultsApi->create_vault_account_asset: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson, Unset] | optional, default is unset | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('*/*', 'application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**eosAccountName** | str, | str, | Optional - when creating an EOS wallet, the account name. If not provided, a random name will be generated | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -vaultAccountId | VaultAccountIdSchema | | -assetId | AssetIdSchema | | - -# VaultAccountIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# AssetIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#create_vault_account_asset.ApiResponseFor200) | OK -default | [ApiResponseForDefault](#create_vault_account_asset.ApiResponseForDefault) | Error Response - -#### create_vault_account_asset.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBody, ] | | -headers | ResponseHeadersFor200 | | - -# SchemaFor200ResponseBody -Type | Description | Notes -------------- | ------------- | ------------- -[**CreateVaultAssetResponse**](../../models/CreateVaultAssetResponse.md) | | - -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### create_vault_account_asset.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **create_vault_account_asset_address** - -> CreateAddressResponse create_vault_account_asset_address(vault_account_idasset_id) - -Create new asset deposit address - -Creates a new deposit address for an asset of a vault account. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import vaults_api -from fireblocks_client.model.create_address_response import CreateAddressResponse -from fireblocks_client.model.error import Error -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = vaults_api.VaultsApi() -# example passing only required values which don't have defaults set -params = { - 'vaultAccountId': "vaultAccountId_example", - 'assetId': "assetId_example", - 'any_type': None -} -try: - # Create new asset deposit address - api_response = api_instance.create_vault_account_asset_address(params) - pprint(api_response) -except fireblocks_client.ApiException as e: - print("Exception when calling VaultsApi->create_vault_account_asset_address: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson, Unset] | optional, default is unset | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('*/*', 'application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**description** | str, | str, | (Optional) Attach a description to the new address | [optional] -**customerRefId** | str, | str, | Optional - Sets a customer reference ID | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -vaultAccountId | VaultAccountIdSchema | | -assetId | AssetIdSchema | | - -# VaultAccountIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# AssetIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#create_vault_account_asset_address.ApiResponseFor200) | The created address -default | [ApiResponseForDefault](#create_vault_account_asset_address.ApiResponseForDefault) | Error Response - -#### create_vault_account_asset_address.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBody, ] | | -headers | ResponseHeadersFor200 | | - -# SchemaFor200ResponseBody -Type | Description | Notes -------------- | ------------- | ------------- -[**CreateAddressResponse**](../../models/CreateAddressResponse.md) | | - -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### create_vault_account_asset_address.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[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_asset_wallets** - -> PaginatedAssetWalletResponse get_asset_wallets() - -List asset wallets (Paginated) - -Gets all asset wallets at all of the vault accounts in your workspace. An asset wallet is an asset at a vault account. This method allows fast traversal of all account balances. **Note:** - This API endpoint is in limited availability and available for selected customers. If you would like to get early access to this endpoint, please reach out to [Fireblocks Support](https://support.fireblocks.io/hc/en-us/requests/new?ticket_form_id=36000337220) - This API call is subject to [rate limits](https://developers.fireblocks.com/reference/rate-limiting). - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import vaults_api -from fireblocks_client.model.paginated_asset_wallet_response import PaginatedAssetWalletResponse -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = vaults_api.VaultsApi() - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -accept_content_types | typing.Tuple[str] | default is ('*/*', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### query_params -#### RequestQueryParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -totalAmountLargerThan | TotalAmountLargerThanSchema | | optional -assetId | AssetIdSchema | | optional -before | BeforeSchema | | optional -after | AfterSchema | | optional -limit | LimitSchema | | optional - - -# TotalAmountLargerThanSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -decimal.Decimal, int, float, | decimal.Decimal, | | - -# AssetIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# BeforeSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# AfterSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# LimitSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -decimal.Decimal, int, float, | decimal.Decimal, | | if omitted the server will use the default value of 200 - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#get_asset_wallets.ApiResponseFor200) | A PaginatedAssetWalletResponse object - -#### get_asset_wallets.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBody, ] | | -headers | ResponseHeadersFor200 | | - -# SchemaFor200ResponseBody -Type | Description | Notes -------------- | ------------- | ------------- -[**PaginatedAssetWalletResponse**](../../models/PaginatedAssetWalletResponse.md) | | - -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[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_max_spendable_amount** - -> get_max_spendable_amount(vault_account_idasset_id) - -Get the maximum spendable amount in a single transaction. - -Get the maximum amount of a particular asset that can be spent in a single transaction from a specified vault account (UTXO assets only, with a limitation on number of inputs embedded). Send several transactions if you want to spend more than the maximum spendable amount. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import vaults_api -from fireblocks_client.model.error import Error -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = vaults_api.VaultsApi() -# example passing only required values which don't have defaults set -params = { - 'vaultAccountId': "vaultAccountId_example", - 'assetId': "assetId_example", -} -try: - # Get the maximum spendable amount in a single transaction. - api_response = api_instance.get_max_spendable_amount(params) -except fireblocks_client.ApiException as e: - print("Exception when calling VaultsApi->get_max_spendable_amount: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### query_params -#### RequestQueryParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -manualSignging | ManualSigngingSchema | | optional - - -# ManualSigngingSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -bool, | BoolClass, | | - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -vaultAccountId | VaultAccountIdSchema | | -assetId | AssetIdSchema | | - -# VaultAccountIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# AssetIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#get_max_spendable_amount.ApiResponseFor200) | OK -default | [ApiResponseForDefault](#get_max_spendable_amount.ApiResponseForDefault) | Error Response - -#### get_max_spendable_amount.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | Unset | body was not defined | -headers | ResponseHeadersFor200 | | -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### get_max_spendable_amount.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[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_paged_vault_accounts** - -> VaultAccountsPagedResponse get_paged_vault_accounts() - -List vault acounts (Paginated) - -Gets all vault accounts in your workspace. This endpoint returns a limited amount of results with a quick response time. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import vaults_api -from fireblocks_client.model.vault_accounts_paged_response import VaultAccountsPagedResponse -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = vaults_api.VaultsApi() - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -accept_content_types | typing.Tuple[str] | default is ('*/*', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### query_params -#### RequestQueryParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -namePrefix | NamePrefixSchema | | optional -nameSuffix | NameSuffixSchema | | optional -minAmountThreshold | MinAmountThresholdSchema | | optional -assetId | AssetIdSchema | | optional -orderBy | OrderBySchema | | optional -before | BeforeSchema | | optional -after | AfterSchema | | optional -limit | LimitSchema | | optional - - -# NamePrefixSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# NameSuffixSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# MinAmountThresholdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -decimal.Decimal, int, float, | decimal.Decimal, | | - -# AssetIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# OrderBySchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | must be one of ["ASC", "DESC", ] if omitted the server will use the default value of "DESC" - -# BeforeSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# AfterSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# LimitSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -decimal.Decimal, int, float, | decimal.Decimal, | | if omitted the server will use the default value of 200 - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#get_paged_vault_accounts.ApiResponseFor200) | A VaultAccountsPagedResponse object - -#### get_paged_vault_accounts.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBody, ] | | -headers | ResponseHeadersFor200 | | - -# SchemaFor200ResponseBody -Type | Description | Notes -------------- | ------------- | ------------- -[**VaultAccountsPagedResponse**](../../models/VaultAccountsPagedResponse.md) | | - -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[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_public_key_info** - -> PublicKeyInformation get_public_key_info(derivation_pathalgorithm) - -Get the public key information - -Gets the public key information based on derivation path and signing algorithm. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import vaults_api -from fireblocks_client.model.public_key_information import PublicKeyInformation -from fireblocks_client.model.error import Error -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = vaults_api.VaultsApi() -# example passing only required values which don't have defaults set -params = { - 'derivationPath': "derivationPath_example", - 'algorithm': "algorithm_example", -} -try: - # Get the public key information - api_response = api_instance.get_public_key_info(params) - pprint(api_response) -except fireblocks_client.ApiException as e: - print("Exception when calling VaultsApi->get_public_key_info: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -accept_content_types | typing.Tuple[str] | default is ('*/*', 'application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### query_params -#### RequestQueryParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -derivationPath | DerivationPathSchema | | -algorithm | AlgorithmSchema | | -compressed | CompressedSchema | | optional - - -# DerivationPathSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# AlgorithmSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# CompressedSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -bool, | BoolClass, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#get_public_key_info.ApiResponseFor200) | Public key information -default | [ApiResponseForDefault](#get_public_key_info.ApiResponseForDefault) | Error Response - -#### get_public_key_info.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBody, ] | | -headers | ResponseHeadersFor200 | | - -# SchemaFor200ResponseBody -Type | Description | Notes -------------- | ------------- | ------------- -[**PublicKeyInformation**](../../models/PublicKeyInformation.md) | | - -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### get_public_key_info.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[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_public_key_info_for_address** - -> PublicKeyInformation get_public_key_info_for_address(vault_account_idasset_idchangeaddress_index) - -Get the public key for a vault account - -Gets the public key information for the vault account. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import vaults_api -from fireblocks_client.model.public_key_information import PublicKeyInformation -from fireblocks_client.model.error import Error -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = vaults_api.VaultsApi() -# example passing only required values which don't have defaults set -params = { - 'vaultAccountId': "vaultAccountId_example", - 'assetId': "assetId_example", - 'change': 3.14, - 'addressIndex': 3.14, -} -try: - # Get the public key for a vault account - api_response = api_instance.get_public_key_info_for_address(params) - pprint(api_response) -except fireblocks_client.ApiException as e: - print("Exception when calling VaultsApi->get_public_key_info_for_address: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -accept_content_types | typing.Tuple[str] | default is ('*/*', 'application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### query_params -#### RequestQueryParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -compressed | CompressedSchema | | optional - - -# CompressedSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -bool, | BoolClass, | | - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -vaultAccountId | VaultAccountIdSchema | | -assetId | AssetIdSchema | | -change | ChangeSchema | | -addressIndex | AddressIndexSchema | | - -# VaultAccountIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# AssetIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# ChangeSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -decimal.Decimal, int, float, | decimal.Decimal, | | - -# AddressIndexSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -decimal.Decimal, int, float, | decimal.Decimal, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#get_public_key_info_for_address.ApiResponseFor200) | Public Key Information -default | [ApiResponseForDefault](#get_public_key_info_for_address.ApiResponseForDefault) | Error Response - -#### get_public_key_info_for_address.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBody, ] | | -headers | ResponseHeadersFor200 | | - -# SchemaFor200ResponseBody -Type | Description | Notes -------------- | ------------- | ------------- -[**PublicKeyInformation**](../../models/PublicKeyInformation.md) | | - -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### get_public_key_info_for_address.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[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_vault_account_asset** - -> VaultAsset get_vault_account_asset(vault_account_idasset_id) - -Get the asset balance for a vault account - -Returns a wallet for a specific asset of a vault account. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import vaults_api -from fireblocks_client.model.vault_asset import VaultAsset -from fireblocks_client.model.error import Error -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = vaults_api.VaultsApi() -# example passing only required values which don't have defaults set -params = { - 'vaultAccountId': "vaultAccountId_example", - 'assetId': "assetId_example", -} -try: - # Get the asset balance for a vault account - api_response = api_instance.get_vault_account_asset(params) - pprint(api_response) -except fireblocks_client.ApiException as e: - print("Exception when calling VaultsApi->get_vault_account_asset: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -accept_content_types | typing.Tuple[str] | default is ('*/*', 'application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -vaultAccountId | VaultAccountIdSchema | | -assetId | AssetIdSchema | | - -# VaultAccountIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# AssetIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#get_vault_account_asset.ApiResponseFor200) | A VaultAsset object -default | [ApiResponseForDefault](#get_vault_account_asset.ApiResponseForDefault) | Error Response - -#### get_vault_account_asset.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBody, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBody -Type | Description | Notes -------------- | ------------- | ------------- -[**VaultAsset**](../../models/VaultAsset.md) | | - - -#### get_vault_account_asset.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[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_vault_account_asset_addresses** - -> [VaultWalletAddress] get_vault_account_asset_addresses(vault_account_idasset_id) - -Get asset addresses - -Lists all addresses for specific asset of vault account. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import vaults_api -from fireblocks_client.model.vault_wallet_address import VaultWalletAddress -from fireblocks_client.model.error import Error -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = vaults_api.VaultsApi() -# example passing only required values which don't have defaults set -params = { - 'vaultAccountId': "vaultAccountId_example", - 'assetId': "assetId_example", -} -try: - # Get asset addresses - api_response = api_instance.get_vault_account_asset_addresses(params) - pprint(api_response) -except fireblocks_client.ApiException as e: - print("Exception when calling VaultsApi->get_vault_account_asset_addresses: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -accept_content_types | typing.Tuple[str] | default is ('*/*', 'application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -vaultAccountId | VaultAccountIdSchema | | -assetId | AssetIdSchema | | - -# VaultAccountIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# AssetIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#get_vault_account_asset_addresses.ApiResponseFor200) | A list of deposit addresses -default | [ApiResponseForDefault](#get_vault_account_asset_addresses.ApiResponseForDefault) | Error Response - -#### get_vault_account_asset_addresses.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBody, ] | | -headers | ResponseHeadersFor200 | | - -# SchemaFor200ResponseBody - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**VaultWalletAddress**]({{complexTypePrefix}}VaultWalletAddress.md) | [**VaultWalletAddress**]({{complexTypePrefix}}VaultWalletAddress.md) | [**VaultWalletAddress**]({{complexTypePrefix}}VaultWalletAddress.md) | | -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### get_vault_account_asset_addresses.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[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_vault_account_asset_unspent_inputs** - -> [UnspentInputsResponse] get_vault_account_asset_unspent_inputs(vault_account_idasset_id) - -Get UTXO unspent inputs information - -Returns unspent inputs information of an asset in a vault account. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import vaults_api -from fireblocks_client.model.unspent_inputs_response import UnspentInputsResponse -from fireblocks_client.model.error import Error -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = vaults_api.VaultsApi() -# example passing only required values which don't have defaults set -params = { - 'vaultAccountId': "vaultAccountId_example", - 'assetId': "assetId_example", -} -try: - # Get UTXO unspent inputs information - api_response = api_instance.get_vault_account_asset_unspent_inputs(params) - pprint(api_response) -except fireblocks_client.ApiException as e: - print("Exception when calling VaultsApi->get_vault_account_asset_unspent_inputs: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -accept_content_types | typing.Tuple[str] | default is ('*/*', 'application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -vaultAccountId | VaultAccountIdSchema | | -assetId | AssetIdSchema | | - -# VaultAccountIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# AssetIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#get_vault_account_asset_unspent_inputs.ApiResponseFor200) | List of Unspent information per input -default | [ApiResponseForDefault](#get_vault_account_asset_unspent_inputs.ApiResponseForDefault) | Error Response - -#### get_vault_account_asset_unspent_inputs.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBody, ] | | -headers | ResponseHeadersFor200 | | - -# SchemaFor200ResponseBody - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**UnspentInputsResponse**]({{complexTypePrefix}}UnspentInputsResponse.md) | [**UnspentInputsResponse**]({{complexTypePrefix}}UnspentInputsResponse.md) | [**UnspentInputsResponse**]({{complexTypePrefix}}UnspentInputsResponse.md) | | -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### get_vault_account_asset_unspent_inputs.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[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_vault_account_by_id** - -> VaultAccount get_vault_account_by_id(vault_account_id) - -Find a vault account by ID - -Returns the requested vault account. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import vaults_api -from fireblocks_client.model.vault_account import VaultAccount -from fireblocks_client.model.error import Error -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = vaults_api.VaultsApi() -# example passing only required values which don't have defaults set -params = { - 'vaultAccountId': "vaultAccountId_example", -} -try: - # Find a vault account by ID - api_response = api_instance.get_vault_account_by_id(params) - pprint(api_response) -except fireblocks_client.ApiException as e: - print("Exception when calling VaultsApi->get_vault_account_by_id: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -accept_content_types | typing.Tuple[str] | default is ('*/*', 'application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -vaultAccountId | VaultAccountIdSchema | | - -# VaultAccountIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#get_vault_account_by_id.ApiResponseFor200) | A Vault Account object -default | [ApiResponseForDefault](#get_vault_account_by_id.ApiResponseForDefault) | Error Response - -#### get_vault_account_by_id.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBody, ] | | -headers | ResponseHeadersFor200 | | - -# SchemaFor200ResponseBody -Type | Description | Notes -------------- | ------------- | ------------- -[**VaultAccount**](../../models/VaultAccount.md) | | - -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### get_vault_account_by_id.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[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_vault_accounts** - -> [VaultAccount] get_vault_accounts() - -List vault accounts - -Gets all vault accounts in your workspace. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import vaults_api -from fireblocks_client.model.vault_account import VaultAccount -from fireblocks_client.model.error import Error -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = vaults_api.VaultsApi() - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -accept_content_types | typing.Tuple[str] | default is ('*/*', 'application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### query_params -#### RequestQueryParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -namePrefix | NamePrefixSchema | | optional -nameSuffix | NameSuffixSchema | | optional -minAmountThreshold | MinAmountThresholdSchema | | optional -assetId | AssetIdSchema | | optional - - -# NamePrefixSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# NameSuffixSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# MinAmountThresholdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -decimal.Decimal, int, float, | decimal.Decimal, | | - -# AssetIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#get_vault_accounts.ApiResponseFor200) | A list of vault accounts -default | [ApiResponseForDefault](#get_vault_accounts.ApiResponseForDefault) | Error Response - -#### get_vault_accounts.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBody, ] | | -headers | ResponseHeadersFor200 | | - -# SchemaFor200ResponseBody - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**VaultAccount**]({{complexTypePrefix}}VaultAccount.md) | [**VaultAccount**]({{complexTypePrefix}}VaultAccount.md) | [**VaultAccount**]({{complexTypePrefix}}VaultAccount.md) | | -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### get_vault_accounts.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[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_vault_asset_by_id** - -> VaultAsset get_vault_asset_by_id(asset_id) - -Get vault balance by asset - -Gets the vault balance summary for an asset. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import vaults_api -from fireblocks_client.model.vault_asset import VaultAsset -from fireblocks_client.model.error import Error -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = vaults_api.VaultsApi() -# example passing only required values which don't have defaults set -params = { - 'assetId': "assetId_example", -} -try: - # Get vault balance by asset - api_response = api_instance.get_vault_asset_by_id(params) - pprint(api_response) -except fireblocks_client.ApiException as e: - print("Exception when calling VaultsApi->get_vault_asset_by_id: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -accept_content_types | typing.Tuple[str] | default is ('*/*', 'application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -assetId | AssetIdSchema | | - -# AssetIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#get_vault_asset_by_id.ApiResponseFor200) | Vault amount by asset -default | [ApiResponseForDefault](#get_vault_asset_by_id.ApiResponseForDefault) | Error Response - -#### get_vault_asset_by_id.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBody, ] | | -headers | ResponseHeadersFor200 | | - -# SchemaFor200ResponseBody -Type | Description | Notes -------------- | ------------- | ------------- -[**VaultAsset**](../../models/VaultAsset.md) | | - -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### get_vault_asset_by_id.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[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_vault_assets** - -> [VaultAsset] get_vault_assets() - -Get asset balance for chosen assets - -Gets the assets amount summary for all accounts or filtered accounts. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import vaults_api -from fireblocks_client.model.vault_asset import VaultAsset -from fireblocks_client.model.error import Error -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = vaults_api.VaultsApi() - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -accept_content_types | typing.Tuple[str] | default is ('*/*', 'application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### query_params -#### RequestQueryParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -accountNamePrefix | AccountNamePrefixSchema | | optional -accountNameSuffix | AccountNameSuffixSchema | | optional - - -# AccountNamePrefixSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# AccountNameSuffixSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#get_vault_assets.ApiResponseFor200) | Amount by asset -default | [ApiResponseForDefault](#get_vault_assets.ApiResponseForDefault) | Error Response - -#### get_vault_assets.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBody, ] | | -headers | ResponseHeadersFor200 | | - -# SchemaFor200ResponseBody - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**VaultAsset**]({{complexTypePrefix}}VaultAsset.md) | [**VaultAsset**]({{complexTypePrefix}}VaultAsset.md) | [**VaultAsset**]({{complexTypePrefix}}VaultAsset.md) | | -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### get_vault_assets.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **hide_vault_account** - -> hide_vault_account(vault_account_id) - -Hide a vault account in the console - -Hides the requested vault account from the web console view. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import vaults_api -from fireblocks_client.model.error import Error -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = vaults_api.VaultsApi() -# example passing only required values which don't have defaults set -params = { - 'vaultAccountId': "vaultAccountId_example", -} -try: - # Hide a vault account in the console - api_response = api_instance.hide_vault_account(params) -except fireblocks_client.ApiException as e: - print("Exception when calling VaultsApi->hide_vault_account: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -vaultAccountId | VaultAccountIdSchema | | - -# VaultAccountIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -201 | [ApiResponseFor201](#hide_vault_account.ApiResponseFor201) | OK -default | [ApiResponseForDefault](#hide_vault_account.ApiResponseForDefault) | Error Response - -#### hide_vault_account.ApiResponseFor201 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | Unset | body was not defined | -headers | ResponseHeadersFor201 | | -#### ResponseHeadersFor201 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### hide_vault_account.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **set_auto_fuel_for_vault_account** - -> set_auto_fuel_for_vault_account(vault_account_idany_type) - -Turn autofueling on or off - -Sets the autofueling property of the vault account to enabled or disabled. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import vaults_api -from fireblocks_client.model.error import Error -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = vaults_api.VaultsApi() -# example passing only required values which don't have defaults set -params = { - 'vaultAccountId': "vaultAccountId_example", - 'any_type': None -} -try: - # Turn autofueling on or off - api_response = api_instance.set_auto_fuel_for_vault_account(params) -except fireblocks_client.ApiException as e: - print("Exception when calling VaultsApi->set_auto_fuel_for_vault_account: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**autoFuel** | bool, | BoolClass, | Auto Fuel | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -vaultAccountId | VaultAccountIdSchema | | - -# VaultAccountIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -201 | [ApiResponseFor201](#set_auto_fuel_for_vault_account.ApiResponseFor201) | OK -default | [ApiResponseForDefault](#set_auto_fuel_for_vault_account.ApiResponseForDefault) | Error Response - -#### set_auto_fuel_for_vault_account.ApiResponseFor201 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | Unset | body was not defined | -headers | ResponseHeadersFor201 | | -#### ResponseHeadersFor201 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### set_auto_fuel_for_vault_account.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **set_customer_ref_id_for_vault_account** - -> set_customer_ref_id_for_vault_account(vault_account_idany_type) - -Set an AML/KYT customer reference ID for a vault account - -Assigns an AML/KYT customer reference ID for the vault account. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import vaults_api -from fireblocks_client.model.error import Error -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = vaults_api.VaultsApi() -# example passing only required values which don't have defaults set -params = { - 'vaultAccountId': "vaultAccountId_example", - 'any_type': None -} -try: - # Set an AML/KYT customer reference ID for a vault account - api_response = api_instance.set_customer_ref_id_for_vault_account(params) -except fireblocks_client.ApiException as e: - print("Exception when calling VaultsApi->set_customer_ref_id_for_vault_account: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**customerRefId** | str, | str, | Customer reference ID | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -vaultAccountId | VaultAccountIdSchema | | - -# VaultAccountIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -201 | [ApiResponseFor201](#set_customer_ref_id_for_vault_account.ApiResponseFor201) | OK -default | [ApiResponseForDefault](#set_customer_ref_id_for_vault_account.ApiResponseForDefault) | Error Response - -#### set_customer_ref_id_for_vault_account.ApiResponseFor201 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | Unset | body was not defined | -headers | ResponseHeadersFor201 | | -#### ResponseHeadersFor201 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### set_customer_ref_id_for_vault_account.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **set_customer_ref_id_for_vault_account_asset_address** - -> set_customer_ref_id_for_vault_account_asset_address(vault_account_idasset_idaddress_idany_type) - -Assign AML customer reference ID - -Sets an AML/KYT customer reference ID for a specific address. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import vaults_api -from fireblocks_client.model.error import Error -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = vaults_api.VaultsApi() -# example passing only required values which don't have defaults set -params = { - 'vaultAccountId': "vaultAccountId_example", - 'assetId': "assetId_example", - 'addressId': "addressId_example", - 'any_type': None -} -try: - # Assign AML customer reference ID - api_response = api_instance.set_customer_ref_id_for_vault_account_asset_address(params) -except fireblocks_client.ApiException as e: - print("Exception when calling VaultsApi->set_customer_ref_id_for_vault_account_asset_address: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**customerRefId** | str, | str, | Customer reference ID | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -vaultAccountId | VaultAccountIdSchema | | -assetId | AssetIdSchema | | -addressId | AddressIdSchema | | - -# VaultAccountIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# AssetIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# AddressIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -201 | [ApiResponseFor201](#set_customer_ref_id_for_vault_account_asset_address.ApiResponseFor201) | OK -default | [ApiResponseForDefault](#set_customer_ref_id_for_vault_account_asset_address.ApiResponseForDefault) | Error Response - -#### set_customer_ref_id_for_vault_account_asset_address.ApiResponseFor201 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | Unset | body was not defined | -headers | ResponseHeadersFor201 | | -#### ResponseHeadersFor201 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### set_customer_ref_id_for_vault_account_asset_address.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **unhide_vault_account** - -> unhide_vault_account(vault_account_id) - -Unhide a vault account in the console - -Makes a hidden vault account visible in web console view. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import vaults_api -from fireblocks_client.model.error import Error -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = vaults_api.VaultsApi() -# example passing only required values which don't have defaults set -params = { - 'vaultAccountId': "vaultAccountId_example", -} -try: - # Unhide a vault account in the console - api_response = api_instance.unhide_vault_account(params) -except fireblocks_client.ApiException as e: - print("Exception when calling VaultsApi->unhide_vault_account: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -vaultAccountId | VaultAccountIdSchema | | - -# VaultAccountIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -201 | [ApiResponseFor201](#unhide_vault_account.ApiResponseFor201) | OK -default | [ApiResponseForDefault](#unhide_vault_account.ApiResponseForDefault) | Error Response - -#### unhide_vault_account.ApiResponseFor201 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | Unset | body was not defined | -headers | ResponseHeadersFor201 | | -#### ResponseHeadersFor201 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### unhide_vault_account.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **update_vault_account** - -> update_vault_account(vault_account_idany_type) - -Rename a vault account - -Renames the requested vault account. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import vaults_api -from fireblocks_client.model.error import Error -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = vaults_api.VaultsApi() -# example passing only required values which don't have defaults set -params = { - 'vaultAccountId': "vaultAccountId_example", - 'any_type': None -} -try: - # Rename a vault account - api_response = api_instance.update_vault_account(params) -except fireblocks_client.ApiException as e: - print("Exception when calling VaultsApi->update_vault_account: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**name** | str, | str, | Account Name | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -vaultAccountId | VaultAccountIdSchema | | - -# VaultAccountIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -201 | [ApiResponseFor201](#update_vault_account.ApiResponseFor201) | OK -default | [ApiResponseForDefault](#update_vault_account.ApiResponseForDefault) | Error Response - -#### update_vault_account.ApiResponseFor201 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | Unset | body was not defined | -headers | ResponseHeadersFor201 | | -#### ResponseHeadersFor201 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### update_vault_account.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **update_vault_account_asset_address** - -> update_vault_account_asset_address(vault_account_idasset_idaddress_id) - -Update address description - -Updates the description of an existing address of an asset in a vault account. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import vaults_api -from fireblocks_client.model.error import Error -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = vaults_api.VaultsApi() -# example passing only required values which don't have defaults set -params = { - 'vaultAccountId': "vaultAccountId_example", - 'assetId': "assetId_example", - 'addressId': "addressId_example", - 'any_type': None -} -try: - # Update address description - api_response = api_instance.update_vault_account_asset_address(params) -except fireblocks_client.ApiException as e: - print("Exception when calling VaultsApi->update_vault_account_asset_address: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson, Unset] | optional, default is unset | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**description** | str, | str, | The address description | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -vaultAccountId | VaultAccountIdSchema | | -assetId | AssetIdSchema | | -addressId | AddressIdSchema | | - -# VaultAccountIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# AssetIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# AddressIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -201 | [ApiResponseFor201](#update_vault_account_asset_address.ApiResponseFor201) | OK -default | [ApiResponseForDefault](#update_vault_account_asset_address.ApiResponseForDefault) | Error Response - -#### update_vault_account_asset_address.ApiResponseFor201 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | Unset | body was not defined | -headers | ResponseHeadersFor201 | | -#### ResponseHeadersFor201 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### update_vault_account_asset_address.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **update_vault_account_asset_balance** - -> VaultAsset update_vault_account_asset_balance(vault_account_idasset_id) - -Refresh asset balance data - -Updates the balance of a specific asset in a vault account. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import vaults_api -from fireblocks_client.model.vault_asset import VaultAsset -from fireblocks_client.model.error import Error -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = vaults_api.VaultsApi() -# example passing only required values which don't have defaults set -params = { - 'vaultAccountId': "vaultAccountId_example", - 'assetId': "assetId_example", - 'body': dict() -} -try: - # Refresh asset balance data - api_response = api_instance.update_vault_account_asset_balance(params) - pprint(api_response) -except fireblocks_client.ApiException as e: - print("Exception when calling VaultsApi->update_vault_account_asset_balance: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBody, Unset] | optional, default is unset | -content_type | str | optional, default is '*/*' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('*/*', 'application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBody - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -vaultAccountId | VaultAccountIdSchema | | -assetId | AssetIdSchema | | - -# VaultAccountIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# AssetIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#update_vault_account_asset_balance.ApiResponseFor200) | A VaultAsset object -default | [ApiResponseForDefault](#update_vault_account_asset_balance.ApiResponseForDefault) | Error Response - -#### update_vault_account_asset_balance.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBody, ] | | -headers | ResponseHeadersFor200 | | - -# SchemaFor200ResponseBody -Type | Description | Notes -------------- | ------------- | ------------- -[**VaultAsset**](../../models/VaultAsset.md) | | - -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### update_vault_account_asset_balance.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - diff --git a/docs/apis/tags/Web3ConnectionsApi.md b/docs/apis/tags/Web3ConnectionsApi.md deleted file mode 100644 index 2491362f..00000000 --- a/docs/apis/tags/Web3ConnectionsApi.md +++ /dev/null @@ -1,630 +0,0 @@ - -# fireblocks_client.apis.tags.web3_connections_api.Web3ConnectionsApi - -All URIs are relative to *https://api.fireblocks.io/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**create**](#create) | **post** /connections/wc | Create a new Web3 connection. -[**get**](#get) | **get** /connections | List all open Web3 connections. -[**remove**](#remove) | **delete** /connections/wc/{id} | Remove an existing Web3 connection. -[**submit**](#submit) | **put** /connections/wc/{id} | Respond to a pending Web3 connection request. - -# **create** - -> CreateConnectionResponse create(create_connection_request) - -Create a new Web3 connection. - -Initiate a new Web3 connection. * Note: After this succeeds, make a request to `PUT /v1/connections/wc/{id}` (below) to approve or reject the new Web3 connection. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import web3_connections_api -from fireblocks_client.model.create_connection_request import CreateConnectionRequest -from fireblocks_client.model.create_connection_response import CreateConnectionResponse -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = web3_connections_api.Web3ConnectionsApi() -# example passing only required values which don't have defaults set -params = { - 'create_connection_request': CreateConnectionRequest( - vault_account_id=1, - fee_level="MEDIUM", - uri="wc:77752975-906f-48f5-b59f-047826ee947e@1?bridge=https%3A%2F%2F0.bridge.walletconnect.org&key=64be99adc6086b7a729b0ec8c7e1f174927ab92e84f5c6f9527050225344a637", - chain_ids=["ETH","ETH_TEST"], - ) -} -try: - # Create a new Web3 connection. - api_response = api_instance.create(params) - pprint(api_response) -except fireblocks_client.ApiException as e: - print("Exception when calling Web3ConnectionsApi->create: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**CreateConnectionRequest**](../../models/CreateConnectionRequest.md) | | - - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -201 | [ApiResponseFor201](#create.ApiResponseFor201) | Web3 connection initiated successfully -400 | [ApiResponseFor400](#create.ApiResponseFor400) | Invalid data sent -500 | [ApiResponseFor500](#create.ApiResponseFor500) | Something went wrong - -#### create.ApiResponseFor201 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor201ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor201 | | - -# SchemaFor201ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**CreateConnectionResponse**](../../models/CreateConnectionResponse.md) | | - -#### ResponseHeadersFor201 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### create.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | Unset | body was not defined | -headers | ResponseHeadersFor400 | | -#### ResponseHeadersFor400 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### create.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | Unset | body was not defined | -headers | ResponseHeadersFor500 | | -#### ResponseHeadersFor500 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[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** - -> GetConnectionsResponse get() - -List all open Web3 connections. - -Get open Web3 connections. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import web3_connections_api -from fireblocks_client.model.get_connections_response import GetConnectionsResponse -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = web3_connections_api.Web3ConnectionsApi() - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### query_params -#### RequestQueryParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -order | OrderSchema | | optional -filter | FilterSchema | | optional -sort | SortSchema | | optional -pageSize | PageSizeSchema | | optional -next | NextSchema | | optional - - -# OrderSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | must be one of ["ASC", "DESC", ] if omitted the server will use the default value of "ASC" - -# FilterSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**id** | str, | str, | | [optional] -**userId** | str, | str, | | [optional] -**vaultAccountId** | decimal.Decimal, int, float, | decimal.Decimal, | | [optional] -**connectionMethod** | str, | str, | | [optional] -**feeLevel** | str, | str, | | [optional] -**appUrl** | str, | str, | | [optional] -**appName** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# SortSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | must be one of ["id", "userId", "vaultAccountId", "createdAt", "feeLevel", "appUrl", "appName", ] if omitted the server will use the default value of "createdAt" - -# PageSizeSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -decimal.Decimal, int, float, | decimal.Decimal, | | if omitted the server will use the default value of 10 - -# NextSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#get.ApiResponseFor200) | -400 | [ApiResponseFor400](#get.ApiResponseFor400) | Query parameters were invalid -500 | [ApiResponseFor500](#get.ApiResponseFor500) | Something went wrong - -#### get.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor200 | | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**GetConnectionsResponse**](../../models/GetConnectionsResponse.md) | | - -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### get.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | Unset | body was not defined | -headers | ResponseHeadersFor400 | | -#### ResponseHeadersFor400 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### get.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | Unset | body was not defined | -headers | ResponseHeadersFor500 | | -#### ResponseHeadersFor500 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **remove** - -> remove(id) - -Remove an existing Web3 connection. - -Remove a Web3 connection - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import web3_connections_api -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = web3_connections_api.Web3ConnectionsApi() -# example passing only required values which don't have defaults set -params = { - 'id': "id_example", -} -try: - # Remove an existing Web3 connection. - api_response = api_instance.remove(params) -except fireblocks_client.ApiException as e: - print("Exception when calling Web3ConnectionsApi->remove: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -id | IdSchema | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#remove.ApiResponseFor200) | Connection removed successfully -404 | [ApiResponseFor404](#remove.ApiResponseFor404) | Connection not found -500 | [ApiResponseFor500](#remove.ApiResponseFor500) | Something went wrong - -#### remove.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | Unset | body was not defined | -headers | ResponseHeadersFor200 | | -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### remove.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | Unset | body was not defined | -headers | ResponseHeadersFor404 | | -#### ResponseHeadersFor404 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### remove.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | Unset | body was not defined | -headers | ResponseHeadersFor500 | | -#### ResponseHeadersFor500 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **submit** - -> submit(idrespond_to_connection_request) - -Respond to a pending Web3 connection request. - -Submit a response to *approve* or *reject* an initiated Web3 connection. * Note: This call is used to complete your `POST /v1/connections/wc/` request. After this succeeds, your new Web3 connection is created and functioning. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import web3_connections_api -from fireblocks_client.model.respond_to_connection_request import RespondToConnectionRequest -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = web3_connections_api.Web3ConnectionsApi() -# example passing only required values which don't have defaults set -params = { - 'id': "id_example", - 'respond_to_connection_request': RespondToConnectionRequest( - approve=True, - ) -} -try: - # Respond to a pending Web3 connection request. - api_response = api_instance.submit(params) -except fireblocks_client.ApiException as e: - print("Exception when calling Web3ConnectionsApi->submit: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RespondToConnectionRequest**](../../models/RespondToConnectionRequest.md) | | - - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -id | IdSchema | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#submit.ApiResponseFor200) | Connection submitted successfully -400 | [ApiResponseFor400](#submit.ApiResponseFor400) | Invalid data sent -404 | [ApiResponseFor404](#submit.ApiResponseFor404) | Connection not found -500 | [ApiResponseFor500](#submit.ApiResponseFor500) | Something went wrong - -#### submit.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | Unset | body was not defined | -headers | ResponseHeadersFor200 | | -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### submit.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | Unset | body was not defined | -headers | ResponseHeadersFor400 | | -#### ResponseHeadersFor400 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### submit.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | Unset | body was not defined | -headers | ResponseHeadersFor404 | | -#### ResponseHeadersFor404 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### submit.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | Unset | body was not defined | -headers | ResponseHeadersFor500 | | -#### ResponseHeadersFor500 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - diff --git a/docs/apis/tags/WebhooksApi.md b/docs/apis/tags/WebhooksApi.md deleted file mode 100644 index b6c93dc8..00000000 --- a/docs/apis/tags/WebhooksApi.md +++ /dev/null @@ -1,245 +0,0 @@ - -# fireblocks_client.apis.tags.webhooks_api.WebhooksApi - -All URIs are relative to *https://api.fireblocks.io/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**resend_webhooks**](#resend_webhooks) | **post** /webhooks/resend | Resend failed webhooks -[**resend_webhooks_for_transaction**](#resend_webhooks_for_transaction) | **post** /webhooks/resend/{txId} | Resend failed webhooks for a transaction by ID - -# **resend_webhooks** - -> ResendWebhooksResponse resend_webhooks() - -Resend failed webhooks - -Resends all failed webhook notifications. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import webhooks_api -from fireblocks_client.model.error import Error -from fireblocks_client.model.resend_webhooks_response import ResendWebhooksResponse -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = webhooks_api.WebhooksApi() - -``` -### Parameters - -This endpoint does not need any parameter. - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#resend_webhooks.ApiResponseFor200) | OK -default | [ApiResponseForDefault](#resend_webhooks.ApiResponseForDefault) | Error Response - -#### resend_webhooks.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBody, ] | | -headers | ResponseHeadersFor200 | | - -# SchemaFor200ResponseBody -Type | Description | Notes -------------- | ------------- | ------------- -[**ResendWebhooksResponse**](../../models/ResendWebhooksResponse.md) | | - -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### resend_webhooks.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **resend_webhooks_for_transaction** - -> resend_webhooks_for_transaction(tx_idany_type) - -Resend failed webhooks for a transaction by ID - -Resends failed webhook notifications for a transaction by ID. - -### Example - - -```python -import fireblocks_client -from fireblocks_client.apis.tags import webhooks_api -from fireblocks_client.model.error import Error -from pprint import pprint - -# Set Fireblocks Parameters -os.environ["FIREBLOCKS_BASE_PATH"] = "https://sandbox-api.fireblocks.io/v1" # If left unset, default path is api.fireblocks.com -os.environ["FIREBLOCKS_API_KEY"] = "api-key" -os.environ["FIREBLOCKS_SECRET_KEY"] = open("./fireblocks_secret.key", "r").read() - -# Create an instance of the API class -api_instance = webhooks_api.WebhooksApi() -# example passing only required values which don't have defaults set -params = { - 'txId': "txId_example", - 'any_type': None -} -try: - # Resend failed webhooks for a transaction by ID - api_response = api_instance.resend_webhooks_for_transaction(params) -except fireblocks_client.ApiException as e: - print("Exception when calling WebhooksApi->resend_webhooks_for_transaction: %s\n" % e) - -``` -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**resendCreated** | bool, | BoolClass, | | [optional] -**resendStatusUpdated** | bool, | BoolClass, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -txId | TxIdSchema | | - -# TxIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#resend_webhooks_for_transaction.ApiResponseFor200) | OK -default | [ApiResponseForDefault](#resend_webhooks_for_transaction.ApiResponseForDefault) | Error Response - -#### resend_webhooks_for_transaction.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | Unset | body was not defined | -headers | ResponseHeadersFor200 | | -#### ResponseHeadersFor200 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -#### resend_webhooks_for_transaction.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | ResponseHeadersFor0 | | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**Error**](../../models/Error.md) | | - -#### ResponseHeadersFor0 - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -X-Request-ID | XRequestIDSchema | | optional - -# XRequestIDSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - - -### Authorization - -No authorization required - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - diff --git a/docs/models/AddCollateralRequestBody.md b/docs/models/AddCollateralRequestBody.md deleted file mode 100644 index 4b0c30df..00000000 --- a/docs/models/AddCollateralRequestBody.md +++ /dev/null @@ -1,16 +0,0 @@ -# fireblocks_client.model.add_collateral_request_body.AddCollateralRequestBody - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**transactionRequest** | [**TransactionRequest**](TransactionRequest.md) | [**TransactionRequest**](TransactionRequest.md) | | [optional] -**isSrcCollateral** | bool, | BoolClass, | optional | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/AmlScreeningResult.md b/docs/models/AmlScreeningResult.md deleted file mode 100644 index f9f1f076..00000000 --- a/docs/models/AmlScreeningResult.md +++ /dev/null @@ -1,25 +0,0 @@ -# fireblocks_client.model.aml_screening_result.AmlScreeningResult - -The result of the AML screening. - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | The result of the AML screening. | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**provider** | str, | str, | | [optional] -**[payload](#payload)** | dict, frozendict.frozendict, | frozendict.frozendict, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# payload - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -[[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/models/AmountAggregationTimePeriodMethod.md b/docs/models/AmountAggregationTimePeriodMethod.md deleted file mode 100644 index 9e378190..00000000 --- a/docs/models/AmountAggregationTimePeriodMethod.md +++ /dev/null @@ -1,11 +0,0 @@ -# fireblocks_client.model.amount_aggregation_time_period_method.AmountAggregationTimePeriodMethod - -* PER_SINGLE_MATCH - Apply the limit to each listed entity * ACROSS_ALL_MATCHES - Apply the limit to the sum of all listed entities - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | * PER_SINGLE_MATCH - Apply the limit to each listed entity * ACROSS_ALL_MATCHES - Apply the limit to the sum of all listed entities | must be one of ["PER_SINGLE_MATCH", "ACROSS_ALL_MATCHES", ] - -[[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/models/AmountInfo.md b/docs/models/AmountInfo.md deleted file mode 100644 index 51e78c0b..00000000 --- a/docs/models/AmountInfo.md +++ /dev/null @@ -1,20 +0,0 @@ -# fireblocks_client.model.amount_info.AmountInfo - -The details of the requested amount to transfer. - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | The details of the requested amount to transfer. | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**amount** | str, | str, | If the transfer is a withdrawal from an exchange, the actual amount that was requested to be transferred. Otherwise, the requested amount. | [optional] -**requestedAmount** | str, | str, | The amount requested by the user. | [optional] -**netAmount** | str, | str, | The net amount of the transaction, after fee deduction. | [optional] -**amountUSD** | str, | str, | The USD value of the requested amount. | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/AssetTypeResponse.md b/docs/models/AssetTypeResponse.md deleted file mode 100644 index 74af440c..00000000 --- a/docs/models/AssetTypeResponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# fireblocks_client.model.asset_type_response.AssetTypeResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**name** | str, | str, | | -**id** | str, | str, | | -**type** | str, | str, | | must be one of ["ALGO_ASSET", "BASE_ASSET", "BEP20", "COMPOUND", "ERC20", "FIAT", "SOL_ASSET", "TRON_TRC20", "XLM_ASSET", "XDB_ASSET", ] -**contractAddress** | str, | str, | | [optional] -**nativeAsset** | str, | str, | | [optional] -**decimals** | decimal.Decimal, int, float, | decimal.Decimal, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/AssetWallet.md b/docs/models/AssetWallet.md deleted file mode 100644 index 3557b697..00000000 --- a/docs/models/AssetWallet.md +++ /dev/null @@ -1,25 +0,0 @@ -# fireblocks_client.model.asset_wallet.AssetWallet - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**vaultId** | str, | str, | ID of the vault account. You can [get the vault account by this ID](https://developers.fireblocks.com/reference/get_vault-accounts-vaultaccountid) to retrieve vault properties such as its name, auto fueling, hidden on UI or customer reference ID. | [optional] -**assetId** | str, | str, | ID of the asset. You can get more information about this asset by using the [supported assets API](https://developers.fireblocks.com/reference/get_supported-assets) | [optional] -**available** | str, | str, | Available balance, available to use in a transaction. | [optional] -**total** | str, | str, | Total balance at the asset wallet, as seen at the blockchain explorers. This includes balance available, and any kind of unavailable balance such as locked, frozen, or others. | [optional] -**pending** | str, | str, | Pending balance. | [optional] -**staked** | str, | str, | Staked balance. | [optional] -**frozen** | str, | str, | Funds frozen due to the anti-money laundering policy at this workspace. | [optional] -**lockedAmount** | str, | str, | Locked balance. | [optional] -**blockHeight** | str, | str, | The height (number) of the block of the balance. Can by empty. | [optional] -**blockHash** | str, | str, | The hash of the block of the balance. Can by empty. | [optional] -**creationTimestamp** | str, | str, | Unix timestamp of the time the asset wallet was created. | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/AuthorizationGroups.md b/docs/models/AuthorizationGroups.md deleted file mode 100644 index d7c83947..00000000 --- a/docs/models/AuthorizationGroups.md +++ /dev/null @@ -1,28 +0,0 @@ -# fireblocks_client.model.authorization_groups.AuthorizationGroups - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**th** | decimal.Decimal, int, float, | decimal.Decimal, | | [optional] -**[users](#users)** | dict, frozendict.frozendict, | frozendict.frozendict, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# users - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**any_string_name** | str, | str, | any string name can be used but the value must be the correct type | [optional] must be one of ["PENDING_AUTHORIZATION", "APPROVED", "REJECTED", "NA", ] - -[[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/models/AuthorizationInfo.md b/docs/models/AuthorizationInfo.md deleted file mode 100644 index c69c4f04..00000000 --- a/docs/models/AuthorizationInfo.md +++ /dev/null @@ -1,31 +0,0 @@ -# fireblocks_client.model.authorization_info.AuthorizationInfo - -The information about your [Transaction Authorization Policy (TAP).](https://developers.fireblocks.com/docs/capabilities#transaction-authorization-policy-tap) - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | The information about your [Transaction Authorization Policy (TAP).](https://developers.fireblocks.com/docs/capabilities#transaction-authorization-policy-tap) | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**allowOperatorAsAuthorizer** | bool, | BoolClass, | | [optional] -**logic** | str, | str, | | [optional] must be one of ["AND", "OR", ] -**[groups](#groups)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# groups - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**AuthorizationGroups**](AuthorizationGroups.md) | [**AuthorizationGroups**](AuthorizationGroups.md) | [**AuthorizationGroups**](AuthorizationGroups.md) | | - -[[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/models/BlockInfo.md b/docs/models/BlockInfo.md deleted file mode 100644 index bcf77294..00000000 --- a/docs/models/BlockInfo.md +++ /dev/null @@ -1,18 +0,0 @@ -# fireblocks_client.model.block_info.BlockInfo - -The block hash and height of the block that this transaction was mined in. **Note**: If an outgoing transaction uses the destinations object with more than one value in the array, blockHash is set to null. - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | The block hash and height of the block that this transaction was mined in. **Note**: If an outgoing transaction uses the destinations object with more than one value in the array, blockHash is set to null. | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**blockHeight** | str, | str, | | [optional] -**blockHash** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/CancelTransactionResponse.md b/docs/models/CancelTransactionResponse.md deleted file mode 100644 index 163ffac2..00000000 --- a/docs/models/CancelTransactionResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# fireblocks_client.model.cancel_transaction_response.CancelTransactionResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**success** | bool, | BoolClass, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/CollectionOwnershipResponse.md b/docs/models/CollectionOwnershipResponse.md deleted file mode 100644 index 50b772db..00000000 --- a/docs/models/CollectionOwnershipResponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# fireblocks_client.model.collection_ownership_response.CollectionOwnershipResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**symbol** | str, | str, | Collection symbol | -**blockchainDescriptor** | str, | str, | Collection's blockchain | must be one of ["ETH", "ETH_TEST3", "POLYGON", "POLYGON_TEST_MUMBAI", ] -**name** | str, | str, | Collection name | -**id** | str, | str, | Fireblocks collection id | -**standard** | str, | str, | Collection contract standard | [optional] -**contractAddress** | str, | str, | Collection contract standard | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/ConfigChangeRequestStatus.md b/docs/models/ConfigChangeRequestStatus.md deleted file mode 100644 index fe88ff0e..00000000 --- a/docs/models/ConfigChangeRequestStatus.md +++ /dev/null @@ -1,9 +0,0 @@ -# fireblocks_client.model.config_change_request_status.ConfigChangeRequestStatus - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | must be one of ["WAITING_FOR_APPROVAL", "APPROVED", "CANCELLED", "REJECTED", "FAILED", ] - -[[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/models/CreateAddressResponse.md b/docs/models/CreateAddressResponse.md deleted file mode 100644 index 8c05d6b1..00000000 --- a/docs/models/CreateAddressResponse.md +++ /dev/null @@ -1,19 +0,0 @@ -# fireblocks_client.model.create_address_response.CreateAddressResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**address** | str, | str, | | [optional] -**legacyAddress** | str, | str, | | [optional] -**enterpriseAddress** | str, | str, | | [optional] -**tag** | str, | str, | | [optional] -**bip44AddressIndex** | decimal.Decimal, int, | decimal.Decimal, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/CreateConnectionRequest.md b/docs/models/CreateConnectionRequest.md deleted file mode 100644 index 8b3af4a3..00000000 --- a/docs/models/CreateConnectionRequest.md +++ /dev/null @@ -1,32 +0,0 @@ -# fireblocks_client.model.create_connection_request.CreateConnectionRequest - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**vaultAccountId** | decimal.Decimal, int, float, | decimal.Decimal, | The ID of the vault to connect to the Web3 connection. | -**[chainIds](#chainIds)** | list, tuple, | tuple, | The ID of the blockchain network used in the Web3 connection. | -**feeLevel** | str, | str, | The default fee level. Valid values are `MEDIUM` and `HIGH`. | must be one of ["MEDIUM", "HIGH", ] -**uri** | str, | str, | The WalletConnect uri provided by the dapp. | -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# chainIds - -The ID of the blockchain network used in the Web3 connection. - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | The ID of the blockchain network used in the Web3 connection. | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -items | str, | str, | | - -[[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/models/CreateConnectionResponse.md b/docs/models/CreateConnectionResponse.md deleted file mode 100644 index 4825992f..00000000 --- a/docs/models/CreateConnectionResponse.md +++ /dev/null @@ -1,31 +0,0 @@ -# fireblocks_client.model.create_connection_response.CreateConnectionResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[sessionMetadata](#sessionMetadata)** | dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | Metadata of the Web3 connection (provided by the DApp). | -**id** | str, | str, | The ID of the Web3 connection initiated. | -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# sessionMetadata - -Metadata of the Web3 connection (provided by the DApp). - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | Metadata of the Web3 connection (provided by the DApp). | - -### Composed Schemas (allOf/anyOf/oneOf/not) -#### allOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[SessionMetadata](SessionMetadata.md) | [**SessionMetadata**](SessionMetadata.md) | [**SessionMetadata**](SessionMetadata.md) | | - -[[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/models/CreateInternalTransferRequest.md b/docs/models/CreateInternalTransferRequest.md deleted file mode 100644 index ec770f14..00000000 --- a/docs/models/CreateInternalTransferRequest.md +++ /dev/null @@ -1,18 +0,0 @@ -# fireblocks_client.model.create_internal_transfer_request.CreateInternalTransferRequest - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**asset** | str, | str, | | [optional] -**amount** | str, | str, | | [optional] -**sourceType** | [**TradingAccountType**](TradingAccountType.md) | [**TradingAccountType**](TradingAccountType.md) | | [optional] -**destType** | [**TradingAccountType**](TradingAccountType.md) | [**TradingAccountType**](TradingAccountType.md) | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/CreatePayoutRequest.md b/docs/models/CreatePayoutRequest.md deleted file mode 100644 index fb6f5c61..00000000 --- a/docs/models/CreatePayoutRequest.md +++ /dev/null @@ -1,28 +0,0 @@ -# fireblocks_client.model.create_payout_request.CreatePayoutRequest - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[instructionSet](#instructionSet)** | list, tuple, | tuple, | | -**paymentAccount** | [**PaymentAccount**](PaymentAccount.md) | [**PaymentAccount**](PaymentAccount.md) | | -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# instructionSet - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**PayoutInstruction**](PayoutInstruction.md) | [**PayoutInstruction**](PayoutInstruction.md) | [**PayoutInstruction**](PayoutInstruction.md) | | - -[[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/models/CreateTransactionResponse.md b/docs/models/CreateTransactionResponse.md deleted file mode 100644 index a0984842..00000000 --- a/docs/models/CreateTransactionResponse.md +++ /dev/null @@ -1,17 +0,0 @@ -# fireblocks_client.model.create_transaction_response.CreateTransactionResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**id** | str, | str, | The ID of the transaction. | [optional] -**status** | str, | str, | The primary status of the transaction. For details, see [Primary transaction statuses.] (https://developers.fireblocks.com/reference/primary-transaction-statuses) | [optional] -**systemMessages** | [**SystemMessageInfo**](SystemMessageInfo.md) | [**SystemMessageInfo**](SystemMessageInfo.md) | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/CreateUsersGroupResponse.md b/docs/models/CreateUsersGroupResponse.md deleted file mode 100644 index eb51f1bc..00000000 --- a/docs/models/CreateUsersGroupResponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# fireblocks_client.model.create_users_group_response.CreateUsersGroupResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**id** | str, | str, | | [optional] -**name** | str, | str, | | [optional] -**[memberIds](#memberIds)** | list, tuple, | tuple, | | [optional] -**status** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# memberIds - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -items | str, | str, | | - -[[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/models/CreateVaultAssetResponse.md b/docs/models/CreateVaultAssetResponse.md deleted file mode 100644 index 071ad3e4..00000000 --- a/docs/models/CreateVaultAssetResponse.md +++ /dev/null @@ -1,22 +0,0 @@ -# fireblocks_client.model.create_vault_asset_response.CreateVaultAssetResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**id** | str, | str, | | [optional] -**address** | str, | str, | | [optional] -**legacyAddress** | str, | str, | | [optional] -**enterpriseAddress** | str, | str, | | [optional] -**tag** | str, | str, | | [optional] -**eosAccountName** | str, | str, | | [optional] -**status** | str, | str, | | [optional] -**activationTxId** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/CustomCryptoRoutingDest.md b/docs/models/CustomCryptoRoutingDest.md deleted file mode 100644 index c69e8626..00000000 --- a/docs/models/CustomCryptoRoutingDest.md +++ /dev/null @@ -1,17 +0,0 @@ -# fireblocks_client.model.custom_crypto_routing_dest.CustomCryptoRoutingDest - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**scheme** | str, | str, | The network routing logic. | must be one of ["CUSTOM", ] -**dstId** | str, | str, | The ID of the destination account the funds are being sent to. | -**dstType** | str, | str, | The type of destination account the funds are being sent to. | must be one of ["VAULT", "EXCHANGE", ] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/CustomFiatRoutingDest.md b/docs/models/CustomFiatRoutingDest.md deleted file mode 100644 index fee634de..00000000 --- a/docs/models/CustomFiatRoutingDest.md +++ /dev/null @@ -1,17 +0,0 @@ -# fireblocks_client.model.custom_fiat_routing_dest.CustomFiatRoutingDest - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**scheme** | str, | str, | The network routing logic. | must be one of ["CUSTOM", ] -**dstId** | str, | str, | The ID of the fiat account the funds are being sent to. | -**dstType** | str, | str, | The fiat account the funds are being sent to. | must be one of ["FIAT_ACCOUNT", ] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/DefaultNetworkRoutingDest.md b/docs/models/DefaultNetworkRoutingDest.md deleted file mode 100644 index 92a6fc61..00000000 --- a/docs/models/DefaultNetworkRoutingDest.md +++ /dev/null @@ -1,15 +0,0 @@ -# fireblocks_client.model.default_network_routing_dest.DefaultNetworkRoutingDest - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**scheme** | str, | str, | The network routing logic. | must be one of ["DEFAULT", ] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/DestinationTransferPeerPath.md b/docs/models/DestinationTransferPeerPath.md deleted file mode 100644 index 2f0ea630..00000000 --- a/docs/models/DestinationTransferPeerPath.md +++ /dev/null @@ -1,39 +0,0 @@ -# fireblocks_client.model.destination_transfer_peer_path.DestinationTransferPeerPath - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | - -### Composed Schemas (allOf/anyOf/oneOf/not) -#### allOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[TransferPeerPath](TransferPeerPath.md) | [**TransferPeerPath**](TransferPeerPath.md) | [**TransferPeerPath**](TransferPeerPath.md) | | -[all_of_1](#all_of_1) | dict, frozendict.frozendict, | frozendict.frozendict, | | -[all_of_2](#all_of_2) | dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | The destination of the transaction. | - -# all_of_1 - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -# all_of_2 - -The destination of the transaction. - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | The destination of the transaction. | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**oneTimeAddress** | [**OneTimeAddress**](OneTimeAddress.md) | [**OneTimeAddress**](OneTimeAddress.md) | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/DestinationTransferPeerPathResponse.md b/docs/models/DestinationTransferPeerPathResponse.md deleted file mode 100644 index 46a89540..00000000 --- a/docs/models/DestinationTransferPeerPathResponse.md +++ /dev/null @@ -1,34 +0,0 @@ -# fireblocks_client.model.destination_transfer_peer_path_response.DestinationTransferPeerPathResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | - -### Composed Schemas (allOf/anyOf/oneOf/not) -#### allOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[TransferPeerPath](TransferPeerPath.md) | [**TransferPeerPath**](TransferPeerPath.md) | [**TransferPeerPath**](TransferPeerPath.md) | | -[all_of_1](#all_of_1) | dict, frozendict.frozendict, | frozendict.frozendict, | Destination of the transaction. **Note:** In case the transaction is sent to multiple destinations, the `destinations` parameter is be used instead of this. | - -# all_of_1 - -Destination of the transaction. **Note:** In case the transaction is sent to multiple destinations, the `destinations` parameter is be used instead of this. - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | Destination of the transaction. **Note:** In case the transaction is sent to multiple destinations, the `destinations` parameter is be used instead of this. | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**type** | str, | str, | | [optional] -**subType** | str, | str, | In case the type is set to `EXCHANGE_ACCOUNT` or `FIAT_ACCOUNT`, the specific exchange vendor name or fiat vendor name.In case the type is set to `INTERNAL_WALLET` or `EXTERNAL_WALLET`, the subType is set to `Internal` or `External`. | [optional] -**id** | str, | str, | The ID of the peer. You can retrieve the ID of each venue object using the endpoints for [listing vault accounts](https://developers.fireblocks.com/reference/get_vault-accounts-paged), [listing exchange account](https://developers.fireblocks.com/reference/get_exchange-accounts), [listing fiat accounts](https://developers.fireblocks.com/reference/get_fiat-accounts), [listing internal wallets](https://developers.fireblocks.com/reference/get_internal-wallets), [listing external wallets](https://developers.fireblocks.com/reference/get_external-wallets), [listing network connections](https://developers.fireblocks.com/reference/get_network-connections). For the other types, this parameter is not needed. | [optional] -**name** | str, | str, | The name of the peer. | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/DispatchPayoutResponse.md b/docs/models/DispatchPayoutResponse.md deleted file mode 100644 index ba728dfb..00000000 --- a/docs/models/DispatchPayoutResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# fireblocks_client.model.dispatch_payout_response.DispatchPayoutResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**payoutId** | str, | str, | | -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/DraftResponse.md b/docs/models/DraftResponse.md deleted file mode 100644 index dc2317bc..00000000 --- a/docs/models/DraftResponse.md +++ /dev/null @@ -1,34 +0,0 @@ -# fireblocks_client.model.draft_response.DraftResponse - -Response object for draft operations - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | Response object for draft operations | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**draftId** | str, | str, | Draft unique id | -**metadata** | [**PolicyMetadata**](PolicyMetadata.md) | [**PolicyMetadata**](PolicyMetadata.md) | | -**[rules](#rules)** | list, tuple, | tuple, | Draft rules | -**status** | str, | str, | Operation status | -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# rules - -Draft rules - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | Draft rules | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**PolicyRule**](PolicyRule.md) | [**PolicyRule**](PolicyRule.md) | [**PolicyRule**](PolicyRule.md) | | - -[[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/models/DraftReviewAndValidationResponse.md b/docs/models/DraftReviewAndValidationResponse.md deleted file mode 100644 index 7c96f248..00000000 --- a/docs/models/DraftReviewAndValidationResponse.md +++ /dev/null @@ -1,18 +0,0 @@ -# fireblocks_client.model.draft_review_and_validation_response.DraftReviewAndValidationResponse - -Draft validation - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | Draft validation | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**draftResponse** | [**DraftResponse**](DraftResponse.md) | [**DraftResponse**](DraftResponse.md) | | -**validation** | [**PolicyValidation**](PolicyValidation.md) | [**PolicyValidation**](PolicyValidation.md) | | -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/DropTransactionRequest.md b/docs/models/DropTransactionRequest.md deleted file mode 100644 index f75c9ab1..00000000 --- a/docs/models/DropTransactionRequest.md +++ /dev/null @@ -1,17 +0,0 @@ -# fireblocks_client.model.drop_transaction_request.DropTransactionRequest - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**txId** | str, | str, | | [optional] -**feeLevel** | str, | str, | | [optional] -**gasPrice** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/DropTransactionResponse.md b/docs/models/DropTransactionResponse.md deleted file mode 100644 index 583599f2..00000000 --- a/docs/models/DropTransactionResponse.md +++ /dev/null @@ -1,28 +0,0 @@ -# fireblocks_client.model.drop_transaction_response.DropTransactionResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**success** | bool, | BoolClass, | | [optional] -**[transactions](#transactions)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# transactions - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -items | str, | str, | | - -[[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/models/Error.md b/docs/models/Error.md deleted file mode 100644 index bc8897ab..00000000 --- a/docs/models/Error.md +++ /dev/null @@ -1,16 +0,0 @@ -# fireblocks_client.model.error.Error - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**message** | str, | str, | | [optional] -**code** | decimal.Decimal, int, float, | decimal.Decimal, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/ErrorResponse.md b/docs/models/ErrorResponse.md deleted file mode 100644 index 44cfcb1c..00000000 --- a/docs/models/ErrorResponse.md +++ /dev/null @@ -1,29 +0,0 @@ -# fireblocks_client.model.error_response.ErrorResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[error](#error)** | dict, frozendict.frozendict, | frozendict.frozendict, | | -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# error - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**message** | str, | str, | | -**type** | str, | str, | | must be one of ["INTERNAL", "AUTHENTICATION", "AUTHORIZATION", "VALIDATION", "NOT_FOUND", "UNPROCESSABLE_ENTITY", "FORBIDDEN", ] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/EstimatedNetworkFeeResponse.md b/docs/models/EstimatedNetworkFeeResponse.md deleted file mode 100644 index 974e021d..00000000 --- a/docs/models/EstimatedNetworkFeeResponse.md +++ /dev/null @@ -1,17 +0,0 @@ -# fireblocks_client.model.estimated_network_fee_response.EstimatedNetworkFeeResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**high** | [**NetworkFee**](NetworkFee.md) | [**NetworkFee**](NetworkFee.md) | | -**low** | [**NetworkFee**](NetworkFee.md) | [**NetworkFee**](NetworkFee.md) | | -**medium** | [**NetworkFee**](NetworkFee.md) | [**NetworkFee**](NetworkFee.md) | | -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/EstimatedTransactionFeeResponse.md b/docs/models/EstimatedTransactionFeeResponse.md deleted file mode 100644 index b18dd93b..00000000 --- a/docs/models/EstimatedTransactionFeeResponse.md +++ /dev/null @@ -1,17 +0,0 @@ -# fireblocks_client.model.estimated_transaction_fee_response.EstimatedTransactionFeeResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**high** | [**TransactionFee**](TransactionFee.md) | [**TransactionFee**](TransactionFee.md) | | -**low** | [**TransactionFee**](TransactionFee.md) | [**TransactionFee**](TransactionFee.md) | | -**medium** | [**TransactionFee**](TransactionFee.md) | [**TransactionFee**](TransactionFee.md) | | -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/ExchangeAccount.md b/docs/models/ExchangeAccount.md deleted file mode 100644 index 049f64ca..00000000 --- a/docs/models/ExchangeAccount.md +++ /dev/null @@ -1,46 +0,0 @@ -# fireblocks_client.model.exchange_account.ExchangeAccount - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**id** | str, | str, | | [optional] -**type** | [**ExchangeType**](ExchangeType.md) | [**ExchangeType**](ExchangeType.md) | | [optional] -**name** | str, | str, | Display name of the exchange account | [optional] -**status** | str, | str, | | [optional] -**[assets](#assets)** | list, tuple, | tuple, | | [optional] -**[tradingAccounts](#tradingAccounts)** | list, tuple, | tuple, | | [optional] -**isSubaccount** | bool, | BoolClass, | True if the account is a subaccount in an exchange | [optional] -**mainAccountId** | str, | str, | if the account is a sub-account, the ID of the main account | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# assets - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**ExchangeAsset**](ExchangeAsset.md) | [**ExchangeAsset**](ExchangeAsset.md) | [**ExchangeAsset**](ExchangeAsset.md) | | - -# tradingAccounts - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**ExchangeTradingAccount**](ExchangeTradingAccount.md) | [**ExchangeTradingAccount**](ExchangeTradingAccount.md) | [**ExchangeTradingAccount**](ExchangeTradingAccount.md) | | - -[[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/models/ExchangeAsset.md b/docs/models/ExchangeAsset.md deleted file mode 100644 index a2fbc705..00000000 --- a/docs/models/ExchangeAsset.md +++ /dev/null @@ -1,19 +0,0 @@ -# fireblocks_client.model.exchange_asset.ExchangeAsset - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**id** | str, | str, | | [optional] -**balance** | str, | str, | | [optional] -**lockedAmount** | str, | str, | | [optional] -**total** | str, | str, | | [optional] -**available** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/ExchangeTradingAccount.md b/docs/models/ExchangeTradingAccount.md deleted file mode 100644 index f36662a1..00000000 --- a/docs/models/ExchangeTradingAccount.md +++ /dev/null @@ -1,29 +0,0 @@ -# fireblocks_client.model.exchange_trading_account.ExchangeTradingAccount - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**type** | str, | str, | | [optional] -**name** | str, | str, | | [optional] -**[assets](#assets)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# assets - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**ExchangeAsset**](ExchangeAsset.md) | [**ExchangeAsset**](ExchangeAsset.md) | [**ExchangeAsset**](ExchangeAsset.md) | | - -[[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/models/ExchangeType.md b/docs/models/ExchangeType.md deleted file mode 100644 index c0cc4828..00000000 --- a/docs/models/ExchangeType.md +++ /dev/null @@ -1,9 +0,0 @@ -# fireblocks_client.model.exchange_type.ExchangeType - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | must be one of ["BINANCE", "BINANCEUS", "BITFINEX", "BITHUMB", "BITMEX", "BITSO", "BITSTAMP", "BITTREX", "CIRCLE", "COINBASEPRO", "COINMETRO", "COINSPRO", "CRYPTOCOM", "DERIBIT", "FTX", "FIXUS", "GEMINI", "HITBTC", "HUOBI", "KORBIT", "KRAKEN", "LIQUID", "POLONIEX", "OKCOIN", "OKEX", "SEEDCX", ] - -[[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/models/ExternalWalletAsset.md b/docs/models/ExternalWalletAsset.md deleted file mode 100644 index fd022e5e..00000000 --- a/docs/models/ExternalWalletAsset.md +++ /dev/null @@ -1,34 +0,0 @@ -# fireblocks_client.model.external_wallet_asset.ExternalWalletAsset - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**id** | str, | str, | | [optional] -**status** | [**ConfigChangeRequestStatus**](ConfigChangeRequestStatus.md) | [**ConfigChangeRequestStatus**](ConfigChangeRequestStatus.md) | | [optional] -**address** | str, | str, | | [optional] -**balance** | str, | str, | | [optional] -**lockedAmount** | str, | str, | | [optional] -**tag** | str, | str, | | [optional] -**activationTime** | str, | str, | | [optional] -**[additionalInfo](#additionalInfo)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# additionalInfo - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**WalletAssetAdditionalInfo**](WalletAssetAdditionalInfo.md) | [**WalletAssetAdditionalInfo**](WalletAssetAdditionalInfo.md) | [**WalletAssetAdditionalInfo**](WalletAssetAdditionalInfo.md) | | - -[[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/models/FeeInfo.md b/docs/models/FeeInfo.md deleted file mode 100644 index 5e6c1cba..00000000 --- a/docs/models/FeeInfo.md +++ /dev/null @@ -1,19 +0,0 @@ -# fireblocks_client.model.fee_info.FeeInfo - -Details of the transaction's fee. - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | Details of the transaction's fee. | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**networkFee** | str, | str, | The fee paid to the network | [optional] -**serviceFee** | str, | str, | The total fee deducted by the exchange from the actual requested amount (serviceFee = amount - netAmount) | [optional] -**gasPrice** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/FiatAccount.md b/docs/models/FiatAccount.md deleted file mode 100644 index f3bb4092..00000000 --- a/docs/models/FiatAccount.md +++ /dev/null @@ -1,31 +0,0 @@ -# fireblocks_client.model.fiat_account.FiatAccount - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**id** | str, | str, | | [optional] -**type** | [**FiatAccountType**](FiatAccountType.md) | [**FiatAccountType**](FiatAccountType.md) | | [optional] -**name** | str, | str, | Display name of the fiat account | [optional] -**address** | str, | str, | | [optional] -**[assets](#assets)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# assets - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**FiatAsset**](FiatAsset.md) | [**FiatAsset**](FiatAsset.md) | [**FiatAsset**](FiatAsset.md) | | - -[[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/models/FiatAccountType.md b/docs/models/FiatAccountType.md deleted file mode 100644 index d1632620..00000000 --- a/docs/models/FiatAccountType.md +++ /dev/null @@ -1,9 +0,0 @@ -# fireblocks_client.model.fiat_account_type.FiatAccountType - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | must be one of ["BLINC", ] - -[[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/models/FiatAsset.md b/docs/models/FiatAsset.md deleted file mode 100644 index 643bde38..00000000 --- a/docs/models/FiatAsset.md +++ /dev/null @@ -1,16 +0,0 @@ -# fireblocks_client.model.fiat_asset.FiatAsset - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**id** | str, | str, | | [optional] -**balance** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/FreezeTransactionResponse.md b/docs/models/FreezeTransactionResponse.md deleted file mode 100644 index 4fefa267..00000000 --- a/docs/models/FreezeTransactionResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# fireblocks_client.model.freeze_transaction_response.FreezeTransactionResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**success** | bool, | BoolClass, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/GasStationConfiguration.md b/docs/models/GasStationConfiguration.md deleted file mode 100644 index 7f1364b9..00000000 --- a/docs/models/GasStationConfiguration.md +++ /dev/null @@ -1,17 +0,0 @@ -# fireblocks_client.model.gas_station_configuration.GasStationConfiguration - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**gasThreshold** | str, | str, | | [optional] -**gasCap** | str, | str, | | [optional] -**maxGasPrice** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/GasStationPropertiesResponse.md b/docs/models/GasStationPropertiesResponse.md deleted file mode 100644 index 364ab814..00000000 --- a/docs/models/GasStationPropertiesResponse.md +++ /dev/null @@ -1,26 +0,0 @@ -# fireblocks_client.model.gas_station_properties_response.GasStationPropertiesResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**high** | dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | -**low** | dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | -**medium** | dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | -**[balance](#balance)** | dict, frozendict.frozendict, | frozendict.frozendict, | | [optional] -**configuration** | [**GasStationConfiguration**](GasStationConfiguration.md) | [**GasStationConfiguration**](GasStationConfiguration.md) | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# balance - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -[[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/models/GetConnectionsResponse.md b/docs/models/GetConnectionsResponse.md deleted file mode 100644 index 648b194e..00000000 --- a/docs/models/GetConnectionsResponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# fireblocks_client.model.get_connections_response.GetConnectionsResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[data](#data)** | list, tuple, | tuple, | Array with the requested Web3 connection's data | -**paging** | [**Paging**](Paging.md) | [**Paging**](Paging.md) | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# data - -Array with the requested Web3 connection's data - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | Array with the requested Web3 connection's data | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**SessionDTO**](SessionDTO.md) | [**SessionDTO**](SessionDTO.md) | [**SessionDTO**](SessionDTO.md) | | - -[[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/models/GetSettlementResponse.md b/docs/models/GetSettlementResponse.md deleted file mode 100644 index a67a8e18..00000000 --- a/docs/models/GetSettlementResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# fireblocks_client.model.get_settlement_response.GetSettlementResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- - | | | - -[[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/models/GetTransactionOperation.md b/docs/models/GetTransactionOperation.md deleted file mode 100644 index 29cccf78..00000000 --- a/docs/models/GetTransactionOperation.md +++ /dev/null @@ -1,11 +0,0 @@ -# fireblocks_client.model.get_transaction_operation.GetTransactionOperation - -* `TRANSFER` - Transfers funds from one account to another. UTXO blockchains allow multi-input and multi-output transfers. All other blockchains allow transfers with one source address and one destination address. * `MINT` - Mints new tokens. Supported for Stellar, Ripple and EVM-based blockchains. * `BURN` - Burns tokens. Supported for Stellar, Ripple and EVM-based blockchains. * `CONTRACT_CALL` - Calls a smart contract method for web3 operations on any EVM blockchain. The Fireblocks [development libraries](https://developers.fireblocks.com/docs/ethereum-development#convenience-libraries) are recommended for building contract call transactions. * `TYPED_MESSAGE` - An off-chain message in either Ethereum Personal Message or EIP712 format. Use it to sign specific readable messages that are not actual transactions. [Learn more about typed messages](https://developers.fireblocks.com/docs/typed-message-signing). * `RAW` - An off-chain message with no predefined format. Use it to sign any message with your private key, including protocols such as blockchains and custom transaction types that are not natively supported by Fireblocks. [Learn more about raw signing transactions.](https://developers.fireblocks.com/docs/raw-message-signing) * `ENABLE_ASSET` - Algorand, DigitalBits, Solana, and Stellar require an on-chain transaction to create an asset wallet and enable the deposit address. This transaction is automatically created when adding assets on these blockchains at a vault account. * `STAKE` - Assign assets to a staking pool managed by a staking validator. Supported for Stellar and EVM-based blockchains. This transaction is automatically created when performing staking operations. * `UNSTAKE` - Remove assets from a staking pool managed by a staking validator. Supported for Stellar and EVM-based blockchains. This transaction is automatically created when performing staking operations. * `WITHDRAW` - Transfer assets from a dedicated staking vault account to another address. Supported for Stellar and EVM-based blockchains. This transaction is automatically created when performing staking operations. **Note:** Fireblocks will rename this type from `WITHDRAW` to a different type name soon. There will be a 7-day notice regarding the new type name. * `SUPPLY_TO_COMPOUND` - Deprecated since April 1st, 2023. Older transactions may have this as their operation, in case users in the workspace have used the direct integration between Fireblocks and the Compound DeFI protocol. * `REDEEM_FROM_COMPOUND` - Deprecated since April 1st, 2023. Older transactions may have this as their operation, in case users in the workspace have used the direct integration between Fireblocks and the Compound DeFI protocol. - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | * `TRANSFER` - Transfers funds from one account to another. UTXO blockchains allow multi-input and multi-output transfers. All other blockchains allow transfers with one source address and one destination address. * `MINT` - Mints new tokens. Supported for Stellar, Ripple and EVM-based blockchains. * `BURN` - Burns tokens. Supported for Stellar, Ripple and EVM-based blockchains. * `CONTRACT_CALL` - Calls a smart contract method for web3 operations on any EVM blockchain. The Fireblocks [development libraries](https://developers.fireblocks.com/docs/ethereum-development#convenience-libraries) are recommended for building contract call transactions. * `TYPED_MESSAGE` - An off-chain message in either Ethereum Personal Message or EIP712 format. Use it to sign specific readable messages that are not actual transactions. [Learn more about typed messages](https://developers.fireblocks.com/docs/typed-message-signing). * `RAW` - An off-chain message with no predefined format. Use it to sign any message with your private key, including protocols such as blockchains and custom transaction types that are not natively supported by Fireblocks. [Learn more about raw signing transactions.](https://developers.fireblocks.com/docs/raw-message-signing) * `ENABLE_ASSET` - Algorand, DigitalBits, Solana, and Stellar require an on-chain transaction to create an asset wallet and enable the deposit address. This transaction is automatically created when adding assets on these blockchains at a vault account. * `STAKE` - Assign assets to a staking pool managed by a staking validator. Supported for Stellar and EVM-based blockchains. This transaction is automatically created when performing staking operations. * `UNSTAKE` - Remove assets from a staking pool managed by a staking validator. Supported for Stellar and EVM-based blockchains. This transaction is automatically created when performing staking operations. * `WITHDRAW` - Transfer assets from a dedicated staking vault account to another address. Supported for Stellar and EVM-based blockchains. This transaction is automatically created when performing staking operations. **Note:** Fireblocks will rename this type from `WITHDRAW` to a different type name soon. There will be a 7-day notice regarding the new type name. * `SUPPLY_TO_COMPOUND` - Deprecated since April 1st, 2023. Older transactions may have this as their operation, in case users in the workspace have used the direct integration between Fireblocks and the Compound DeFI protocol. * `REDEEM_FROM_COMPOUND` - Deprecated since April 1st, 2023. Older transactions may have this as their operation, in case users in the workspace have used the direct integration between Fireblocks and the Compound DeFI protocol. | must be one of ["TRANSFER", "BURN", "CONTRACT_CALL", "MINT", "RAW", "TYPED_MESSAGE", "ENABLE_ASSET", "STAKE", "UNSTAKE", "WITHDRAW", "REDEEM_FROM_COMPOUND", "SUPPLY_TO_COMPOUND", ] - -[[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/models/GetUsersResponse.md b/docs/models/GetUsersResponse.md deleted file mode 100644 index 0fefdc37..00000000 --- a/docs/models/GetUsersResponse.md +++ /dev/null @@ -1,27 +0,0 @@ -# fireblocks_client.model.get_users_response.GetUsersResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[users](#users)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# users - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**UserResponse**](UserResponse.md) | [**UserResponse**](UserResponse.md) | [**UserResponse**](UserResponse.md) | | - -[[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/models/InstructionAmount.md b/docs/models/InstructionAmount.md deleted file mode 100644 index fb98b7ab..00000000 --- a/docs/models/InstructionAmount.md +++ /dev/null @@ -1,16 +0,0 @@ -# fireblocks_client.model.instruction_amount.InstructionAmount - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**amount** | str, | str, | | -**assetId** | str, | str, | | -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/MediaEntityResponse.md b/docs/models/MediaEntityResponse.md deleted file mode 100644 index 5f25eda6..00000000 --- a/docs/models/MediaEntityResponse.md +++ /dev/null @@ -1,16 +0,0 @@ -# fireblocks_client.model.media_entity_response.MediaEntityResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**contentType** | str, | str, | Media type | must be one of ["IMAGE", "VIDEO", "ANIMATION", "THREE_D", "TEXT", "GIF", "UNKNOWN_TYPE", "SVG", "AUDIO", ] -**url** | str, | str, | Cached accessible URL | -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/Ncw.md b/docs/models/Ncw.md deleted file mode 100644 index c3e69113..00000000 --- a/docs/models/Ncw.md +++ /dev/null @@ -1,15 +0,0 @@ -# fireblocks_client.model.ncw.Ncw - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**walletId** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/NetworkChannel.md b/docs/models/NetworkChannel.md deleted file mode 100644 index 587a2cba..00000000 --- a/docs/models/NetworkChannel.md +++ /dev/null @@ -1,18 +0,0 @@ -# fireblocks_client.model.network_channel.NetworkChannel - -Deprecated in the only used reference - NetworkConnectionResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | Deprecated in the only used reference - NetworkConnectionResponse | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**networkId** | str, | str, | | [optional] -**name** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/NetworkConnection.md b/docs/models/NetworkConnection.md deleted file mode 100644 index f9286ad9..00000000 --- a/docs/models/NetworkConnection.md +++ /dev/null @@ -1,17 +0,0 @@ -# fireblocks_client.model.network_connection.NetworkConnection - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**localNetworkId** | str, | str, | The network ID of the profile trying to create the connection. | -**remoteNetworkId** | str, | str, | The network ID the profile is attempting to connect to. | -**routingPolicy** | [**NetworkConnectionRoutingPolicy**](NetworkConnectionRoutingPolicy.md) | [**NetworkConnectionRoutingPolicy**](NetworkConnectionRoutingPolicy.md) | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/NetworkConnectionResponse.md b/docs/models/NetworkConnectionResponse.md deleted file mode 100644 index 9e6ed3e1..00000000 --- a/docs/models/NetworkConnectionResponse.md +++ /dev/null @@ -1,51 +0,0 @@ -# fireblocks_client.model.network_connection_response.NetworkConnectionResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**localNetworkId** | [**NetworkId**](NetworkId.md) | [**NetworkId**](NetworkId.md) | | -**remoteNetworkId** | [**NetworkId**](NetworkId.md) | [**NetworkId**](NetworkId.md) | | -**id** | str, | str, | | -**routingPolicy** | [**NetworkConnectionRoutingPolicy**](NetworkConnectionRoutingPolicy.md) | [**NetworkConnectionRoutingPolicy**](NetworkConnectionRoutingPolicy.md) | | -**status** | [**ConfigChangeRequestStatus**](ConfigChangeRequestStatus.md) | [**ConfigChangeRequestStatus**](ConfigChangeRequestStatus.md) | | -**[localChannel](#localChannel)** | dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | Deprecated - Replaced by `localNetworkId` | [optional] -**[remoteChannel](#remoteChannel)** | dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | Deprecated - Replaced by `remoteNetworkId` | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# localChannel - -Deprecated - Replaced by `localNetworkId` - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | Deprecated - Replaced by `localNetworkId` | - -### Composed Schemas (allOf/anyOf/oneOf/not) -#### allOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[NetworkChannel](NetworkChannel.md) | [**NetworkChannel**](NetworkChannel.md) | [**NetworkChannel**](NetworkChannel.md) | | - -# remoteChannel - -Deprecated - Replaced by `remoteNetworkId` - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | Deprecated - Replaced by `remoteNetworkId` | - -### Composed Schemas (allOf/anyOf/oneOf/not) -#### allOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[NetworkChannel](NetworkChannel.md) | [**NetworkChannel**](NetworkChannel.md) | [**NetworkChannel**](NetworkChannel.md) | | - -[[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/models/NetworkConnectionRoutingPolicy.md b/docs/models/NetworkConnectionRoutingPolicy.md deleted file mode 100644 index 5fe676dd..00000000 --- a/docs/models/NetworkConnectionRoutingPolicy.md +++ /dev/null @@ -1,94 +0,0 @@ -# fireblocks_client.model.network_connection_routing_policy.NetworkConnectionRoutingPolicy - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[crypto](#crypto)** | dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | [optional] -**[sen](#sen)** | dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | [optional] -**[signet](#signet)** | dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | [optional] -**[sen_test](#sen_test)** | dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | [optional] -**[signet_test](#signet_test)** | dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# crypto - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | - -### Composed Schemas (allOf/anyOf/oneOf/not) -#### oneOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[CustomCryptoRoutingDest](CustomCryptoRoutingDest.md) | [**CustomCryptoRoutingDest**](CustomCryptoRoutingDest.md) | [**CustomCryptoRoutingDest**](CustomCryptoRoutingDest.md) | | -[DefaultNetworkRoutingDest](DefaultNetworkRoutingDest.md) | [**DefaultNetworkRoutingDest**](DefaultNetworkRoutingDest.md) | [**DefaultNetworkRoutingDest**](DefaultNetworkRoutingDest.md) | | -[NoneNetworkRoutingDest](NoneNetworkRoutingDest.md) | [**NoneNetworkRoutingDest**](NoneNetworkRoutingDest.md) | [**NoneNetworkRoutingDest**](NoneNetworkRoutingDest.md) | | - -# sen - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | - -### Composed Schemas (allOf/anyOf/oneOf/not) -#### oneOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[CustomFiatRoutingDest](CustomFiatRoutingDest.md) | [**CustomFiatRoutingDest**](CustomFiatRoutingDest.md) | [**CustomFiatRoutingDest**](CustomFiatRoutingDest.md) | | -[DefaultNetworkRoutingDest](DefaultNetworkRoutingDest.md) | [**DefaultNetworkRoutingDest**](DefaultNetworkRoutingDest.md) | [**DefaultNetworkRoutingDest**](DefaultNetworkRoutingDest.md) | | -[NoneNetworkRoutingDest](NoneNetworkRoutingDest.md) | [**NoneNetworkRoutingDest**](NoneNetworkRoutingDest.md) | [**NoneNetworkRoutingDest**](NoneNetworkRoutingDest.md) | | - -# signet - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | - -### Composed Schemas (allOf/anyOf/oneOf/not) -#### oneOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[DefaultNetworkRoutingDest](DefaultNetworkRoutingDest.md) | [**DefaultNetworkRoutingDest**](DefaultNetworkRoutingDest.md) | [**DefaultNetworkRoutingDest**](DefaultNetworkRoutingDest.md) | | -[CustomFiatRoutingDest](CustomFiatRoutingDest.md) | [**CustomFiatRoutingDest**](CustomFiatRoutingDest.md) | [**CustomFiatRoutingDest**](CustomFiatRoutingDest.md) | | -[NoneNetworkRoutingDest](NoneNetworkRoutingDest.md) | [**NoneNetworkRoutingDest**](NoneNetworkRoutingDest.md) | [**NoneNetworkRoutingDest**](NoneNetworkRoutingDest.md) | | - -# sen_test - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | - -### Composed Schemas (allOf/anyOf/oneOf/not) -#### oneOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[DefaultNetworkRoutingDest](DefaultNetworkRoutingDest.md) | [**DefaultNetworkRoutingDest**](DefaultNetworkRoutingDest.md) | [**DefaultNetworkRoutingDest**](DefaultNetworkRoutingDest.md) | | -[NoneNetworkRoutingDest](NoneNetworkRoutingDest.md) | [**NoneNetworkRoutingDest**](NoneNetworkRoutingDest.md) | [**NoneNetworkRoutingDest**](NoneNetworkRoutingDest.md) | | -[CustomFiatRoutingDest](CustomFiatRoutingDest.md) | [**CustomFiatRoutingDest**](CustomFiatRoutingDest.md) | [**CustomFiatRoutingDest**](CustomFiatRoutingDest.md) | | - -# signet_test - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | - -### Composed Schemas (allOf/anyOf/oneOf/not) -#### oneOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[NoneNetworkRoutingDest](NoneNetworkRoutingDest.md) | [**NoneNetworkRoutingDest**](NoneNetworkRoutingDest.md) | [**NoneNetworkRoutingDest**](NoneNetworkRoutingDest.md) | | -[CustomFiatRoutingDest](CustomFiatRoutingDest.md) | [**CustomFiatRoutingDest**](CustomFiatRoutingDest.md) | [**CustomFiatRoutingDest**](CustomFiatRoutingDest.md) | | -[DefaultNetworkRoutingDest](DefaultNetworkRoutingDest.md) | [**DefaultNetworkRoutingDest**](DefaultNetworkRoutingDest.md) | [**DefaultNetworkRoutingDest**](DefaultNetworkRoutingDest.md) | | - -[[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/models/NetworkFee.md b/docs/models/NetworkFee.md deleted file mode 100644 index c2f86a1f..00000000 --- a/docs/models/NetworkFee.md +++ /dev/null @@ -1,19 +0,0 @@ -# fireblocks_client.model.network_fee.NetworkFee - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**feePerByte** | str, | str, | | [optional] -**gasPrice** | str, | str, | | [optional] -**networkFee** | str, | str, | | [optional] -**baseFee** | str, | str, | (optional) Base Fee according to EIP-1559 (ETH assets) | [optional] -**priorityFee** | str, | str, | (optional) Priority Fee according to EIP-1559 (ETH assets) | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/NetworkId.md b/docs/models/NetworkId.md deleted file mode 100644 index 9eaf256a..00000000 --- a/docs/models/NetworkId.md +++ /dev/null @@ -1,16 +0,0 @@ -# fireblocks_client.model.network_id.NetworkId - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**name** | str, | str, | | -**id** | str, | str, | | -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/NetworkIdResponse.md b/docs/models/NetworkIdResponse.md deleted file mode 100644 index 190f99b2..00000000 --- a/docs/models/NetworkIdResponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# fireblocks_client.model.network_id_response.NetworkIdResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | - -### Composed Schemas (allOf/anyOf/oneOf/not) -#### allOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[NetworkId](NetworkId.md) | [**NetworkId**](NetworkId.md) | [**NetworkId**](NetworkId.md) | | -[all_of_1](#all_of_1) | dict, frozendict.frozendict, | frozendict.frozendict, | | - -# all_of_1 - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**routingPolicy** | [**NetworkIdRoutingPolicy**](NetworkIdRoutingPolicy.md) | [**NetworkIdRoutingPolicy**](NetworkIdRoutingPolicy.md) | | [optional] -**isDiscoverable** | bool, | BoolClass, | The specific network is discoverable. | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/NetworkIdRoutingPolicy.md b/docs/models/NetworkIdRoutingPolicy.md deleted file mode 100644 index 86988087..00000000 --- a/docs/models/NetworkIdRoutingPolicy.md +++ /dev/null @@ -1,89 +0,0 @@ -# fireblocks_client.model.network_id_routing_policy.NetworkIdRoutingPolicy - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[crypto](#crypto)** | dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | [optional] -**[sen](#sen)** | dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | [optional] -**[signet](#signet)** | dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | [optional] -**[sen_test](#sen_test)** | dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | [optional] -**[signet_test](#signet_test)** | dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# crypto - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | - -### Composed Schemas (allOf/anyOf/oneOf/not) -#### oneOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[CustomCryptoRoutingDest](CustomCryptoRoutingDest.md) | [**CustomCryptoRoutingDest**](CustomCryptoRoutingDest.md) | [**CustomCryptoRoutingDest**](CustomCryptoRoutingDest.md) | | -[NoneNetworkRoutingDest](NoneNetworkRoutingDest.md) | [**NoneNetworkRoutingDest**](NoneNetworkRoutingDest.md) | [**NoneNetworkRoutingDest**](NoneNetworkRoutingDest.md) | | - -# sen - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | - -### Composed Schemas (allOf/anyOf/oneOf/not) -#### oneOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[CustomFiatRoutingDest](CustomFiatRoutingDest.md) | [**CustomFiatRoutingDest**](CustomFiatRoutingDest.md) | [**CustomFiatRoutingDest**](CustomFiatRoutingDest.md) | | -[NoneNetworkRoutingDest](NoneNetworkRoutingDest.md) | [**NoneNetworkRoutingDest**](NoneNetworkRoutingDest.md) | [**NoneNetworkRoutingDest**](NoneNetworkRoutingDest.md) | | - -# signet - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | - -### Composed Schemas (allOf/anyOf/oneOf/not) -#### oneOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[CustomFiatRoutingDest](CustomFiatRoutingDest.md) | [**CustomFiatRoutingDest**](CustomFiatRoutingDest.md) | [**CustomFiatRoutingDest**](CustomFiatRoutingDest.md) | | -[NoneNetworkRoutingDest](NoneNetworkRoutingDest.md) | [**NoneNetworkRoutingDest**](NoneNetworkRoutingDest.md) | [**NoneNetworkRoutingDest**](NoneNetworkRoutingDest.md) | | - -# sen_test - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | - -### Composed Schemas (allOf/anyOf/oneOf/not) -#### oneOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[NoneNetworkRoutingDest](NoneNetworkRoutingDest.md) | [**NoneNetworkRoutingDest**](NoneNetworkRoutingDest.md) | [**NoneNetworkRoutingDest**](NoneNetworkRoutingDest.md) | | -[CustomFiatRoutingDest](CustomFiatRoutingDest.md) | [**CustomFiatRoutingDest**](CustomFiatRoutingDest.md) | [**CustomFiatRoutingDest**](CustomFiatRoutingDest.md) | | - -# signet_test - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | - -### Composed Schemas (allOf/anyOf/oneOf/not) -#### oneOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[NoneNetworkRoutingDest](NoneNetworkRoutingDest.md) | [**NoneNetworkRoutingDest**](NoneNetworkRoutingDest.md) | [**NoneNetworkRoutingDest**](NoneNetworkRoutingDest.md) | | -[CustomFiatRoutingDest](CustomFiatRoutingDest.md) | [**CustomFiatRoutingDest**](CustomFiatRoutingDest.md) | [**CustomFiatRoutingDest**](CustomFiatRoutingDest.md) | | - -[[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/models/NetworkRecord.md b/docs/models/NetworkRecord.md deleted file mode 100644 index 37e7ac31..00000000 --- a/docs/models/NetworkRecord.md +++ /dev/null @@ -1,27 +0,0 @@ -# fireblocks_client.model.network_record.NetworkRecord - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**source** | [**SourceTransferPeerPathResponse**](SourceTransferPeerPathResponse.md) | [**SourceTransferPeerPathResponse**](SourceTransferPeerPathResponse.md) | | [optional] -**destination** | [**DestinationTransferPeerPathResponse**](DestinationTransferPeerPathResponse.md) | [**DestinationTransferPeerPathResponse**](DestinationTransferPeerPathResponse.md) | | [optional] -**txHash** | str, | str, | | [optional] -**networkFee** | str, | str, | | [optional] -**assetId** | str, | str, | | [optional] -**netAmount** | str, | str, | The net amount of the transaction, after fee deduction | [optional] -**isDropped** | bool, | BoolClass, | | [optional] -**type** | str, | str, | | [optional] -**destinationAddress** | str, | str, | | [optional] -**sourceAddress** | str, | str, | | [optional] -**amountUSD** | str, | str, | | [optional] -**index** | decimal.Decimal, int, float, | decimal.Decimal, | | [optional] -**rewardInfo** | [**RewardInfo**](RewardInfo.md) | [**RewardInfo**](RewardInfo.md) | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/NoneNetworkRoutingDest.md b/docs/models/NoneNetworkRoutingDest.md deleted file mode 100644 index 2c2c46d0..00000000 --- a/docs/models/NoneNetworkRoutingDest.md +++ /dev/null @@ -1,15 +0,0 @@ -# fireblocks_client.model.none_network_routing_dest.NoneNetworkRoutingDest - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**scheme** | str, | str, | No network routing logic. | must be one of ["NONE", ] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/OneTimeAddress.md b/docs/models/OneTimeAddress.md deleted file mode 100644 index a3ecb3bd..00000000 --- a/docs/models/OneTimeAddress.md +++ /dev/null @@ -1,16 +0,0 @@ -# fireblocks_client.model.one_time_address.OneTimeAddress - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**address** | str, | str, | | -**tag** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/PaginatedAssetWalletResponse.md b/docs/models/PaginatedAssetWalletResponse.md deleted file mode 100644 index aed2e37a..00000000 --- a/docs/models/PaginatedAssetWalletResponse.md +++ /dev/null @@ -1,42 +0,0 @@ -# fireblocks_client.model.paginated_asset_wallet_response.PaginatedAssetWalletResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[assetWallets](#assetWallets)** | list, tuple, | tuple, | | [optional] -**[paging](#paging)** | dict, frozendict.frozendict, | frozendict.frozendict, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# assetWallets - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**AssetWallet**](AssetWallet.md) | [**AssetWallet**](AssetWallet.md) | [**AssetWallet**](AssetWallet.md) | | - -# paging - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**before** | str, | str, | A string representing a cursor. Users can use this with a new request to this API endpoint as the “before” request parameter to fetch the previous page of results. | [optional] -**after** | str, | str, | A string representing a cursor. Users can use this with a new request to this API endpoint as the “before” request parameter to fetch the next page of results. | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/Paging.md b/docs/models/Paging.md deleted file mode 100644 index 61aa746c..00000000 --- a/docs/models/Paging.md +++ /dev/null @@ -1,15 +0,0 @@ -# fireblocks_client.model.paging.Paging - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**next** | str, | str, | Cursor to the next page | -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/PayeeAccount.md b/docs/models/PayeeAccount.md deleted file mode 100644 index e1dee81f..00000000 --- a/docs/models/PayeeAccount.md +++ /dev/null @@ -1,16 +0,0 @@ -# fireblocks_client.model.payee_account.PayeeAccount - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**id** | str, | str, | | -**type** | [**PayeeAccountType**](PayeeAccountType.md) | [**PayeeAccountType**](PayeeAccountType.md) | | -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/PayeeAccountResponse.md b/docs/models/PayeeAccountResponse.md deleted file mode 100644 index 8ee67dfa..00000000 --- a/docs/models/PayeeAccountResponse.md +++ /dev/null @@ -1,16 +0,0 @@ -# fireblocks_client.model.payee_account_response.PayeeAccountResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**id** | str, | str, | | [optional] -**type** | [**PayeeAccountType**](PayeeAccountType.md) | [**PayeeAccountType**](PayeeAccountType.md) | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/PayeeAccountType.md b/docs/models/PayeeAccountType.md deleted file mode 100644 index c77cbcea..00000000 --- a/docs/models/PayeeAccountType.md +++ /dev/null @@ -1,11 +0,0 @@ -# fireblocks_client.model.payee_account_type.PayeeAccountType - -- VAULT_ACCOUNT a native Fireblocks vault account - EXCHANGE_ACCOUNT a third-party exchange account - INTERNAL_WALLET a whitelisted address marked as internal to the workspace/organization - EXTERNAL_WALLET a whitelisted address marked as external - NETWORK_CONNECTION a member of the Fireblocks network - FIAT_ACCOUNT a third-party account of a fiat bank (Signature, BCB, etc) - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | - VAULT_ACCOUNT a native Fireblocks vault account - EXCHANGE_ACCOUNT a third-party exchange account - INTERNAL_WALLET a whitelisted address marked as internal to the workspace/organization - EXTERNAL_WALLET a whitelisted address marked as external - NETWORK_CONNECTION a member of the Fireblocks network - FIAT_ACCOUNT a third-party account of a fiat bank (Signature, BCB, etc) | must be one of ["VAULT_ACCOUNT", "EXCHANGE_ACCOUNT", "INTERNAL_WALLET", "EXTERNAL_WALLET", "NETWORK_CONNECTION", "FIAT_ACCOUNT", ] - -[[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/models/PaymentAccount.md b/docs/models/PaymentAccount.md deleted file mode 100644 index 524894ef..00000000 --- a/docs/models/PaymentAccount.md +++ /dev/null @@ -1,16 +0,0 @@ -# fireblocks_client.model.payment_account.PaymentAccount - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**id** | str, | str, | | -**type** | [**PaymentAccountType**](PaymentAccountType.md) | [**PaymentAccountType**](PaymentAccountType.md) | | -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/PaymentAccountResponse.md b/docs/models/PaymentAccountResponse.md deleted file mode 100644 index 4c61a523..00000000 --- a/docs/models/PaymentAccountResponse.md +++ /dev/null @@ -1,16 +0,0 @@ -# fireblocks_client.model.payment_account_response.PaymentAccountResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**id** | str, | str, | | [optional] -**type** | [**PaymentAccountType**](PaymentAccountType.md) | [**PaymentAccountType**](PaymentAccountType.md) | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/PaymentAccountType.md b/docs/models/PaymentAccountType.md deleted file mode 100644 index 98a315e0..00000000 --- a/docs/models/PaymentAccountType.md +++ /dev/null @@ -1,9 +0,0 @@ -# fireblocks_client.model.payment_account_type.PaymentAccountType - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | must be one of ["VAULT_ACCOUNT", "EXCHANGE_ACCOUNT", "FIAT_ACCOUNT", ] - -[[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/models/PayoutInitMethod.md b/docs/models/PayoutInitMethod.md deleted file mode 100644 index ad89a959..00000000 --- a/docs/models/PayoutInitMethod.md +++ /dev/null @@ -1,9 +0,0 @@ -# fireblocks_client.model.payout_init_method.PayoutInitMethod - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | must be one of ["FILE", "API", ] - -[[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/models/PayoutInstruction.md b/docs/models/PayoutInstruction.md deleted file mode 100644 index 31c18617..00000000 --- a/docs/models/PayoutInstruction.md +++ /dev/null @@ -1,17 +0,0 @@ -# fireblocks_client.model.payout_instruction.PayoutInstruction - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**amount** | [**InstructionAmount**](InstructionAmount.md) | [**InstructionAmount**](InstructionAmount.md) | | -**payeeAccount** | [**PayeeAccount**](PayeeAccount.md) | [**PayeeAccount**](PayeeAccount.md) | | -**id** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/PayoutInstructionResponse.md b/docs/models/PayoutInstructionResponse.md deleted file mode 100644 index 4c61a204..00000000 --- a/docs/models/PayoutInstructionResponse.md +++ /dev/null @@ -1,31 +0,0 @@ -# fireblocks_client.model.payout_instruction_response.PayoutInstructionResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**amount** | [**InstructionAmount**](InstructionAmount.md) | [**InstructionAmount**](InstructionAmount.md) | | -**state** | [**PayoutInstructionState**](PayoutInstructionState.md) | [**PayoutInstructionState**](PayoutInstructionState.md) | | -**payeeAccount** | [**PayeeAccountResponse**](PayeeAccountResponse.md) | [**PayeeAccountResponse**](PayeeAccountResponse.md) | | -**[transactions](#transactions)** | list, tuple, | tuple, | | -**id** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# transactions - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**Transaction**](Transaction.md) | [**Transaction**](Transaction.md) | [**Transaction**](Transaction.md) | | - -[[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/models/PayoutInstructionState.md b/docs/models/PayoutInstructionState.md deleted file mode 100644 index 71827460..00000000 --- a/docs/models/PayoutInstructionState.md +++ /dev/null @@ -1,11 +0,0 @@ -# fireblocks_client.model.payout_instruction_state.PayoutInstructionState - -- NOT_STARTED - waiting to start - TRANSACTION_SENT - an underlying transaction was sent - COMPLETED - completed successfully - FAILED - failed - TRANSLATION_ERROR -lookup of the destination failed (due to changes in the underlying whitelisted external wallet or similar) - SKIPPED- no transaction(s) created for this instruction - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | - NOT_STARTED - waiting to start - TRANSACTION_SENT - an underlying transaction was sent - COMPLETED - completed successfully - FAILED - failed - TRANSLATION_ERROR -lookup of the destination failed (due to changes in the underlying whitelisted external wallet or similar) - SKIPPED- no transaction(s) created for this instruction | must be one of ["NOT_STARTED", "TRANSACTION_SENT", "COMPLETED", "FAILED", "TRANSLATION_ERROR", "SKIPPED", ] - -[[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/models/PayoutResponse.md b/docs/models/PayoutResponse.md deleted file mode 100644 index c4dc1d4e..00000000 --- a/docs/models/PayoutResponse.md +++ /dev/null @@ -1,35 +0,0 @@ -# fireblocks_client.model.payout_response.PayoutResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**createdAt** | decimal.Decimal, int, float, | decimal.Decimal, | | -**[instructionSet](#instructionSet)** | list, tuple, | tuple, | | -**state** | [**PayoutState**](PayoutState.md) | [**PayoutState**](PayoutState.md) | | -**payoutId** | str, | str, | | -**paymentAccount** | [**PaymentAccountResponse**](PaymentAccountResponse.md) | [**PaymentAccountResponse**](PaymentAccountResponse.md) | | -**status** | [**PayoutStatus**](PayoutStatus.md) | [**PayoutStatus**](PayoutStatus.md) | | -**reasonOfFailure** | str, | str, | <ul> <li> INSUFFICIENT_BALANCE</li> <li> SOURCE_TRANSLATION</li> <li> SOURCE_NOT_UNIQUE</li> <li> SOURCE_NOT_FOUND</li> <li> SOURCE_TYPE_NOT_SUPPORTED</li> <li> EMPTY_SOURCE</li> <li> DESTINATION_TRANSLATION</li> <li> DESTINATION_NOT_UNIQUE</li> <li> DESTINATION_NOT_FOUND</li> <li> EMPTY_DESTINATION</li> <li> PARSING </li> <li> UNKNOWN</li> <li> FIREBLOCKS_CLIENT</li> <li> TRANSACTION_SUBMISSION</li> </ul> | [optional] -**initMethod** | [**PayoutInitMethod**](PayoutInitMethod.md) | [**PayoutInitMethod**](PayoutInitMethod.md) | | [optional] -**reportUrl** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# instructionSet - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**PayoutInstructionResponse**](PayoutInstructionResponse.md) | [**PayoutInstructionResponse**](PayoutInstructionResponse.md) | [**PayoutInstructionResponse**](PayoutInstructionResponse.md) | | - -[[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/models/PayoutState.md b/docs/models/PayoutState.md deleted file mode 100644 index c0fc5d78..00000000 --- a/docs/models/PayoutState.md +++ /dev/null @@ -1,11 +0,0 @@ -# fireblocks_client.model.payout_state.PayoutState - -- CREATED - payout instruction set created with all its details - FILE_FOUND - new file found in the FTP - REQUESTED - payout requested with all its details - TRANSLATED - payout instruction account IDs identified and translated - PROCESSING - payout instruction set executed and is processing - SUBMITTED - transactions submitted for payout instructions - FINALIZED - payout finished processing, all transactions processed successfully - INSUFFICIENT_BALANCE - insufficient balance in the payment account (can be a temporary state) - FAILED - one or more of the payout instructions failed - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | - CREATED - payout instruction set created with all its details - FILE_FOUND - new file found in the FTP - REQUESTED - payout requested with all its details - TRANSLATED - payout instruction account IDs identified and translated - PROCESSING - payout instruction set executed and is processing - SUBMITTED - transactions submitted for payout instructions - FINALIZED - payout finished processing, all transactions processed successfully - INSUFFICIENT_BALANCE - insufficient balance in the payment account (can be a temporary state) - FAILED - one or more of the payout instructions failed | must be one of ["CREATED", "FILE_FOUND", "REQUESTED", "TRANSLATED", "PROCESSING", "SUBMITTED", "FINALIZED", "INSUFFICIENT_BALANCE", "FAILED", ] - -[[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/models/PayoutStatus.md b/docs/models/PayoutStatus.md deleted file mode 100644 index 16cadd05..00000000 --- a/docs/models/PayoutStatus.md +++ /dev/null @@ -1,11 +0,0 @@ -# fireblocks_client.model.payout_status.PayoutStatus - -- REQUESTED payout requested with all its details - VERIFIED payout instruction set details were verified - PROCESSING payout instruction set executed and is processing - FINALIZED payout done (all payout instructions completed successfully) - INSUFFICIENT_BALANCE insufficient balance in the payment account (can be a temporary state) - FAILED one or more of the payout instructions failed - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | - REQUESTED payout requested with all its details - VERIFIED payout instruction set details were verified - PROCESSING payout instruction set executed and is processing - FINALIZED payout done (all payout instructions completed successfully) - INSUFFICIENT_BALANCE insufficient balance in the payment account (can be a temporary state) - FAILED one or more of the payout instructions failed | must be one of ["REGISTERED", "VERIFYING", "IN_PROGRESS", "DONE", "INSUFFICIENT_BALANCE", "FAILED", ] - -[[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/models/PolicyAndValidationResponse.md b/docs/models/PolicyAndValidationResponse.md deleted file mode 100644 index 362af87f..00000000 --- a/docs/models/PolicyAndValidationResponse.md +++ /dev/null @@ -1,18 +0,0 @@ -# fireblocks_client.model.policy_and_validation_response.PolicyAndValidationResponse - -Policy validation - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | Policy validation | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**validation** | [**PolicyValidation**](PolicyValidation.md) | [**PolicyValidation**](PolicyValidation.md) | | -**policy** | [**PolicyResponse**](PolicyResponse.md) | [**PolicyResponse**](PolicyResponse.md) | | -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/PolicyCheckResult.md b/docs/models/PolicyCheckResult.md deleted file mode 100644 index 7ae3fcf1..00000000 --- a/docs/models/PolicyCheckResult.md +++ /dev/null @@ -1,32 +0,0 @@ -# fireblocks_client.model.policy_check_result.PolicyCheckResult - -Policy rules validation result - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | Policy rules validation result | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[result](#result)** | list, tuple, | tuple, | A set of validation results | -**errors** | decimal.Decimal, int, float, | decimal.Decimal, | Number of errors | -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# result - -A set of validation results - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | A set of validation results | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**PolicyRuleCheckResult**](PolicyRuleCheckResult.md) | [**PolicyRuleCheckResult**](PolicyRuleCheckResult.md) | [**PolicyRuleCheckResult**](PolicyRuleCheckResult.md) | | - -[[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/models/PolicyMetadata.md b/docs/models/PolicyMetadata.md deleted file mode 100644 index 9f396423..00000000 --- a/docs/models/PolicyMetadata.md +++ /dev/null @@ -1,20 +0,0 @@ -# fireblocks_client.model.policy_metadata.PolicyMetadata - -Policy related metadata - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | Policy related metadata | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**editedBy** | str, | str, | The user id of the user who last edited the policy | [optional] -**editedAt** | str, | str, | The timestamp of the last edit of the policy | [optional] -**publishedBy** | str, | str, | The user id of the user who last published the policy | [optional] -**publishedAt** | str, | str, | The timestamp of the last publish of the policy | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/PolicyResponse.md b/docs/models/PolicyResponse.md deleted file mode 100644 index a3663d14..00000000 --- a/docs/models/PolicyResponse.md +++ /dev/null @@ -1,32 +0,0 @@ -# fireblocks_client.model.policy_response.PolicyResponse - -Response object for policy operations - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | Response object for policy operations | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**metadata** | [**PolicyMetadata**](PolicyMetadata.md) | [**PolicyMetadata**](PolicyMetadata.md) | | -**[rules](#rules)** | list, tuple, | tuple, | A set of policy rules | -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# rules - -A set of policy rules - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | A set of policy rules | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**PolicyRule**](PolicyRule.md) | [**PolicyRule**](PolicyRule.md) | [**PolicyRule**](PolicyRule.md) | | - -[[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/models/PolicyRule.md b/docs/models/PolicyRule.md deleted file mode 100644 index 691b5115..00000000 --- a/docs/models/PolicyRule.md +++ /dev/null @@ -1,537 +0,0 @@ -# fireblocks_client.model.policy_rule.PolicyRule - -Policy rule which is enforced on transactions - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | Policy rule which is enforced on transactions | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**externalDescriptor** | str, | str, | A unique id identifying the rule | -**amount** | decimal.Decimal, int, float, | decimal.Decimal, | Defines the value a transaction must exceed for the rule to apply to it (according to the amountCurrency field) | -**periodSec** | decimal.Decimal, int, float, | decimal.Decimal, | Time period in seconds applied by the amountScope field to accumulate transferred amounts in transactions that match the rule, until the total exceeds the value you specify under Minimum. When the specified amount is reached within that period, whether by one or many transactions, further transactions in that period either fail or require more approvals. | -**action** | str, | str, | Defines what occurs when a transaction meets the rule's criteria * ALLOW - The transaction goes through and can be signed without requiring additional approvals * BLOCK - The transaction is automatically blocked * 2-TIER - Only these users or user groups can approve If any of them reject the transaction before the required approval threshold is met, the transaction doesn't go through The list of entities are set is \"authorizationGroups\" field | must be one of ["ALLOW", "BLOCK", "2-TIER", ] -**asset** | str, | str, | Defines the type of asset being transacted, options are * \"*\" - All assets * Specific asset | -**type** | str, | str, | Policy rule type | must be one of ["TRANSFER", ] -**amountScope** | str, | str, | * SINGLE_TX - limit applies to a single transaction * TIMEFRAME - limit applies to all transactions within the defined time period | must be one of ["SINGLE_TX", "TIMEFRAME", ] -**amountCurrency** | str, | str, | * USD - Limits the amount of any asset users can transfer based on the USD equivalent of the asset. * EUR - Limits the amount of any asset users can transfer based on the EURO equivalent of the asset. * NATIVE - Limits the amount of an asset a user can transfer when using a specific asset. | must be one of ["USD", "EUR", "NATIVE", ] -**operator** | str, | str, | (deprecated - replaced by \"operators\") | Defines users who can initiate the type of transaction to which the rule applies. options are * \"*\" - All users are allowed * Specific User id | [optional] -**[operators](#operators)** | dict, frozendict.frozendict, | frozendict.frozendict, | Defines users/groups who can initiate the type of transaction to which the rule applies. | [optional] -**transactionType** | str, | str, | Defines the type of transaction to which the rule applies. * TRANSFER - Default. Transfers funds from one account to another * CONTRACT_CALL - Calls a smart contract, mainly for DeFi operations. * APPROVE - Allows a smart contract to withdraw from a designated wallet. * MINT - Perform a mint operation (increase supply) on a supported token * BURN - Perform a burn operation (reduce supply) on a supported token * SUPPLY - Use for DeFi to lend assets * REDEEM - Use for DeFi to get lending back * STAKE - Allows you to allocate and lock certain assets for earning staking rewards. * RAW - An off-chain message with no predefined format, use it to sign any message with your private key. * TYPED_MESSAGE - An off-chain message type that follows a predefined format, used to sign specific messages that are not actual transactions. | [optional] must be one of ["TRANSFER", "CONTRACT_CALL", "APPROVE", "MINT", "BURN", "SUPPLY", "REDEEM", "STAKE", "RAW", "TYPED_MESSAGE", ] -**designatedSigner** | str, | str, | (deprecated - replaced by \"designatedSigners\") Id representing the user who signs transactions that match a specific rule | [optional] -**[designatedSigners](#designatedSigners)** | dict, frozendict.frozendict, | frozendict.frozendict, | Set of ids representing the users who signs transactions that match a specific rule | [optional] -**[srcType](#srcType)** | dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | (deprecated - replaced by \"src\") source account type | [optional] -**[srcSubType](#srcSubType)** | dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | (deprecated - replaced by \"src\") source sub account type | [optional] -**[srcId](#srcId)** | dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | (deprecated - replaced by \"src\") source account id | [optional] -**[src](#src)** | dict, frozendict.frozendict, | frozendict.frozendict, | Defines source accounts the rule allows transfers to originate from | [optional] -**[dstType](#dstType)** | dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | (deprecated - replaced by \"dst\") destination account type | [optional] -**[dstSubType](#dstSubType)** | dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | (deprecated - replaced by \"dst\") destination sub account type | [optional] -**[dstId](#dstId)** | dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | (deprecated - replaced by \"dst\") destination account id | [optional] -**[dst](#dst)** | dict, frozendict.frozendict, | frozendict.frozendict, | Defines the destination accounts the rule allows transfers to | [optional] -**dstAddressType** | str, | str, | Defines whether the destination to which you are sending funds must be whitelisted, to allow one-time transfers to non-whitelisted external addresses, or both. By default, you can only transfer to an external address after it’s whitelisted. * WHITELISTED - Can only be sent to whitelisted addresses. * ONE_TIME - Can only be sent to non-whitelisted external addresses. * \"*\" - can be sent to whitelisted addresses or non-whitelisted external | [optional] must be one of ["WHITELISTED", "ONE_TIME", "*", ] -**[authorizers](#authorizers)** | list, tuple, | tuple, | (deprecated - replaced by \"authorizationGroups\") Allowed entities which can approves a transaction | [optional] -**authorizersCount** | decimal.Decimal, int, float, | decimal.Decimal, | (deprecated - replaced by \"authorizationGroups\") Min amount of entities which are needed to approve a transaction | [optional] -**[authorizationGroups](#authorizationGroups)** | dict, frozendict.frozendict, | frozendict.frozendict, | Defines the transaction approval terms | [optional] -**[amountAggregation](#amountAggregation)** | dict, frozendict.frozendict, | frozendict.frozendict, | Defines the method by which the Policy Engine calculates accumulation. It uses the Initiator, Source, and Destination to calculate accumulation toward the value under Minimum, for the time under Time Period. | [optional] -**[rawMessageSigning](#rawMessageSigning)** | dict, frozendict.frozendict, | frozendict.frozendict, | Raw message signing configuration | [optional] -**applyForApprove** | bool, | BoolClass, | Applying this rule over APPROVE type transactions (can only be enabled when rule's transaction type is TRANSFER) | [optional] -**applyForTypedMessage** | bool, | BoolClass, | Applying this rule over TYPED_MESSAGE type transactions (can only be enabled when rule's transaction type is CONTRACT_CALL) | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# operators - -Defines users/groups who can initiate the type of transaction to which the rule applies. - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | Defines users/groups who can initiate the type of transaction to which the rule applies. | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**wildcard** | str, | str, | If used then this property should appear as the only child property * \"*\" - All users are allowed | [optional] must be one of ["*", ] -**[users](#users)** | list, tuple, | tuple, | Set of users ids | [optional] -**[usersGroups](#usersGroups)** | list, tuple, | tuple, | Set of group ids | [optional] -**[services](#services)** | list, tuple, | tuple, | set of services to initiate transactions | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# users - -Set of users ids - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | Set of users ids | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -items | str, | str, | | - -# usersGroups - -Set of group ids - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | Set of group ids | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -items | str, | str, | | - -# services - -set of services to initiate transactions - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | set of services to initiate transactions | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -items | str, | str, | | - -# designatedSigners - -Set of ids representing the users who signs transactions that match a specific rule - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | Set of ids representing the users who signs transactions that match a specific rule | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[users](#users)** | list, tuple, | tuple, | Set of users ids | [optional] -**[usersGroups](#usersGroups)** | list, tuple, | tuple, | Set of group ids | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# users - -Set of users ids - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | Set of users ids | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -items | str, | str, | | - -# usersGroups - -Set of group ids - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | Set of group ids | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -items | str, | str, | | - -# srcType - -(deprecated - replaced by \"src\") source account type - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | (deprecated - replaced by \"src\") source account type | - -### Composed Schemas (allOf/anyOf/oneOf/not) -#### allOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[PolicySrcOrDestType](PolicySrcOrDestType.md) | [**PolicySrcOrDestType**](PolicySrcOrDestType.md) | [**PolicySrcOrDestType**](PolicySrcOrDestType.md) | | - -# srcSubType - -(deprecated - replaced by \"src\") source sub account type - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | (deprecated - replaced by \"src\") source sub account type | - -### Composed Schemas (allOf/anyOf/oneOf/not) -#### allOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[PolicySrcOrDestSubType](PolicySrcOrDestSubType.md) | [**PolicySrcOrDestSubType**](PolicySrcOrDestSubType.md) | [**PolicySrcOrDestSubType**](PolicySrcOrDestSubType.md) | | - -# srcId - -(deprecated - replaced by \"src\") source account id - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | (deprecated - replaced by \"src\") source account id | - -### Composed Schemas (allOf/anyOf/oneOf/not) -#### allOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[all_of_0](#all_of_0) | str, | str, | Defines the account id, options are * \"*\" - All accounts * Specific account id | - -# all_of_0 - -Defines the account id, options are * \"*\" - All accounts * Specific account id - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | Defines the account id, options are * \"*\" - All accounts * Specific account id | - -# src - -Defines source accounts the rule allows transfers to originate from - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | Defines source accounts the rule allows transfers to originate from | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[ids](#ids)** | list, tuple, | tuple, | A set of ids | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# ids - -A set of ids - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | A set of ids | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[items](#items) | list, tuple, | tuple, | A set of ids in a tuple format | - -# items - -A set of ids in a tuple format - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | A set of ids in a tuple format | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[items](#items) | dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | - -# items - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | - -### Composed Schemas (allOf/anyOf/oneOf/not) -#### oneOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[one_of_0](#one_of_0) | str, | str, | Defines the account id, options are * \"*\" - All accounts * Specific account id | -[PolicySrcOrDestType](PolicySrcOrDestType.md) | [**PolicySrcOrDestType**](PolicySrcOrDestType.md) | [**PolicySrcOrDestType**](PolicySrcOrDestType.md) | | -[PolicySrcOrDestSubType](PolicySrcOrDestSubType.md) | [**PolicySrcOrDestSubType**](PolicySrcOrDestSubType.md) | [**PolicySrcOrDestSubType**](PolicySrcOrDestSubType.md) | | - -# one_of_0 - -Defines the account id, options are * \"*\" - All accounts * Specific account id - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | Defines the account id, options are * \"*\" - All accounts * Specific account id | - -# dstType - -(deprecated - replaced by \"dst\") destination account type - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | (deprecated - replaced by \"dst\") destination account type | - -### Composed Schemas (allOf/anyOf/oneOf/not) -#### allOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[PolicySrcOrDestType](PolicySrcOrDestType.md) | [**PolicySrcOrDestType**](PolicySrcOrDestType.md) | [**PolicySrcOrDestType**](PolicySrcOrDestType.md) | | - -# dstSubType - -(deprecated - replaced by \"dst\") destination sub account type - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | (deprecated - replaced by \"dst\") destination sub account type | - -### Composed Schemas (allOf/anyOf/oneOf/not) -#### allOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[PolicySrcOrDestSubType](PolicySrcOrDestSubType.md) | [**PolicySrcOrDestSubType**](PolicySrcOrDestSubType.md) | [**PolicySrcOrDestSubType**](PolicySrcOrDestSubType.md) | | - -# dstId - -(deprecated - replaced by \"dst\") destination account id - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | (deprecated - replaced by \"dst\") destination account id | - -### Composed Schemas (allOf/anyOf/oneOf/not) -#### allOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[all_of_0](#all_of_0) | str, | str, | Defines the account id, options are * \"*\" - All accounts * Specific account id | - -# all_of_0 - -Defines the account id, options are * \"*\" - All accounts * Specific account id - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | Defines the account id, options are * \"*\" - All accounts * Specific account id | - -# dst - -Defines the destination accounts the rule allows transfers to - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | Defines the destination accounts the rule allows transfers to | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[ids](#ids)** | list, tuple, | tuple, | A set of ids | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# ids - -A set of ids - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | A set of ids | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[items](#items) | list, tuple, | tuple, | A set of ids in a tuple format | - -# items - -A set of ids in a tuple format - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | A set of ids in a tuple format | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[items](#items) | dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | - -# items - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | - -### Composed Schemas (allOf/anyOf/oneOf/not) -#### oneOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[one_of_0](#one_of_0) | str, | str, | Defines the account id, options are * \"*\" - All accounts * Specific account id | -[PolicySrcOrDestType](PolicySrcOrDestType.md) | [**PolicySrcOrDestType**](PolicySrcOrDestType.md) | [**PolicySrcOrDestType**](PolicySrcOrDestType.md) | | -[PolicySrcOrDestSubType](PolicySrcOrDestSubType.md) | [**PolicySrcOrDestSubType**](PolicySrcOrDestSubType.md) | [**PolicySrcOrDestSubType**](PolicySrcOrDestSubType.md) | | - -# one_of_0 - -Defines the account id, options are * \"*\" - All accounts * Specific account id - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | Defines the account id, options are * \"*\" - All accounts * Specific account id | - -# authorizers - -(deprecated - replaced by \"authorizationGroups\") Allowed entities which can approves a transaction - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | (deprecated - replaced by \"authorizationGroups\") Allowed entities which can approves a transaction | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -items | str, | str, | | - -# authorizationGroups - -Defines the transaction approval terms - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | Defines the transaction approval terms | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**logic** | str, | str, | * AND - requires approval of all authorization groups * OR - requires approval of at least one of the authorization groups | [optional] must be one of ["AND", "OR", ] -**allowOperatorAsAuthorizer** | bool, | BoolClass, | Defines whether the user who initiates a transaction can approve their own transaction and count toward the approval threshold for their transaction | [optional] -**[groups](#groups)** | list, tuple, | tuple, | Groups of entities which can approve the transaction | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# groups - -Groups of entities which can approve the transaction - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | Groups of entities which can approve the transaction | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[items](#items) | dict, frozendict.frozendict, | frozendict.frozendict, | | - -# items - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[users](#users)** | list, tuple, | tuple, | User ids | [optional] -**[usersGroups](#usersGroups)** | list, tuple, | tuple, | Group ids | [optional] -**th** | decimal.Decimal, int, float, | decimal.Decimal, | Represents the min amount of entities which are required to approve the transaction, default is 1. | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# users - -User ids - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | User ids | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -items | str, | str, | | - -# usersGroups - -Group ids - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | Group ids | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -items | str, | str, | | - -# amountAggregation - -Defines the method by which the Policy Engine calculates accumulation. It uses the Initiator, Source, and Destination to calculate accumulation toward the value under Minimum, for the time under Time Period. - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | Defines the method by which the Policy Engine calculates accumulation. It uses the Initiator, Source, and Destination to calculate accumulation toward the value under Minimum, for the time under Time Period. | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**operators** | [**AmountAggregationTimePeriodMethod**](AmountAggregationTimePeriodMethod.md) | [**AmountAggregationTimePeriodMethod**](AmountAggregationTimePeriodMethod.md) | | [optional] -**srcTransferPeers** | [**AmountAggregationTimePeriodMethod**](AmountAggregationTimePeriodMethod.md) | [**AmountAggregationTimePeriodMethod**](AmountAggregationTimePeriodMethod.md) | | [optional] -**dstTransferPeers** | [**AmountAggregationTimePeriodMethod**](AmountAggregationTimePeriodMethod.md) | [**AmountAggregationTimePeriodMethod**](AmountAggregationTimePeriodMethod.md) | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# rawMessageSigning - -Raw message signing configuration - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | Raw message signing configuration | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**algorithm** | str, | str, | | [optional] -**[derivationPath](#derivationPath)** | dict, frozendict.frozendict, | frozendict.frozendict, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# derivationPath - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[path](#path)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# path - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -items | decimal.Decimal, int, float, | decimal.Decimal, | | - -[[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/models/PolicyRuleCheckResult.md b/docs/models/PolicyRuleCheckResult.md deleted file mode 100644 index 6a8bdcff..00000000 --- a/docs/models/PolicyRuleCheckResult.md +++ /dev/null @@ -1,33 +0,0 @@ -# fireblocks_client.model.policy_rule_check_result.PolicyRuleCheckResult - -The rule validation result - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | The rule validation result | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**index** | decimal.Decimal, int, float, | decimal.Decimal, | Rule index number in the policy | -**[errors](#errors)** | list, tuple, | tuple, | A set of rule validation error objects | -**status** | str, | str, | Validation status | must be one of ["ok", "failure", ] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# errors - -A set of rule validation error objects - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | A set of rule validation error objects | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**PolicyRuleError**](PolicyRuleError.md) | [**PolicyRuleError**](PolicyRuleError.md) | [**PolicyRuleError**](PolicyRuleError.md) | | - -[[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/models/PolicyRuleError.md b/docs/models/PolicyRuleError.md deleted file mode 100644 index 9a13a409..00000000 --- a/docs/models/PolicyRuleError.md +++ /dev/null @@ -1,20 +0,0 @@ -# fireblocks_client.model.policy_rule_error.PolicyRuleError - -Rule validation result error - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | Rule validation result error | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**errorCodeName** | str, | str, | error code name | -**errorField** | str, | str, | The field which the error relates to * operator - transaction initiator * operators - transaction initiators * authorizationGroups - transaction authorizer groups * designatedSigner - transaction signer * designatedSigners - transaction signers * contractMethods - contract methods * amountAggregation - transaction amount aggregation configuration * src - transaction source asset configuration * dst - transaction destination asset configuration | must be one of ["operator", "operators", "authorizationGroups", "designatedSigner", "designatedSigners", "contractMethods", "amountAggregation", "src", "dst", ] -**errorMessage** | str, | str, | Error message | -**errorCode** | decimal.Decimal, int, float, | decimal.Decimal, | error code | -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/PolicySrcOrDestId.md b/docs/models/PolicySrcOrDestId.md deleted file mode 100644 index cdc620be..00000000 --- a/docs/models/PolicySrcOrDestId.md +++ /dev/null @@ -1,11 +0,0 @@ -# fireblocks_client.model.policy_src_or_dest_id.PolicySrcOrDestId - -Defines the account id, options are * \"*\" - All accounts * Specific account id - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | Defines the account id, options are * \"*\" - All accounts * Specific account id | - -[[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/models/PolicySrcOrDestSubType.md b/docs/models/PolicySrcOrDestSubType.md deleted file mode 100644 index 9a3ac24a..00000000 --- a/docs/models/PolicySrcOrDestSubType.md +++ /dev/null @@ -1,11 +0,0 @@ -# fireblocks_client.model.policy_src_or_dest_sub_type.PolicySrcOrDestSubType - -* EXTERNAL - A whitelisted wallet assigned as external is typically used for addresses managed by your clients and counterparties * INTERNAL - A whitelisted wallet assigned as internal, is typically used for addresses that you control outside of your Fireblocks workspace * CONTRACT - A whitelisted wallet assigned as contract is for identifying and managing external smart contracts * EXCHANGETEST - Exchanges which operate only on testnet assets * \"*\" - All subtypes - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | * EXTERNAL - A whitelisted wallet assigned as external is typically used for addresses managed by your clients and counterparties * INTERNAL - A whitelisted wallet assigned as internal, is typically used for addresses that you control outside of your Fireblocks workspace * CONTRACT - A whitelisted wallet assigned as contract is for identifying and managing external smart contracts * EXCHANGETEST - Exchanges which operate only on testnet assets * \"*\" - All subtypes | must be one of ["EXTERNAL", "INTERNAL", "CONTRACT", "EXCHANGETEST", "*", ] - -[[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/models/PolicySrcOrDestType.md b/docs/models/PolicySrcOrDestType.md deleted file mode 100644 index 32a2e30b..00000000 --- a/docs/models/PolicySrcOrDestType.md +++ /dev/null @@ -1,11 +0,0 @@ -# fireblocks_client.model.policy_src_or_dest_type.PolicySrcOrDestType - -* EXCHANGE - A third-party exchange account connected to your workspace * UNMANAGED - A unmanaged wallet outside of Fireblocks workspace * VAULT - An account in your Fireblocks Vault * NETWORK_CONNECTION - A connection in your Fireblocks network * COMPOUND - (deprecated) An asset retrieved by using the Compound DeFI protocol * FIAT_ACCOUNT - A third-party fiat account connected to your workspace * ONE_TIME_ADDRESS - A non-whitelisted asset from your Fireblocks Workspace * \"*\" - All types - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | * EXCHANGE - A third-party exchange account connected to your workspace * UNMANAGED - A unmanaged wallet outside of Fireblocks workspace * VAULT - An account in your Fireblocks Vault * NETWORK_CONNECTION - A connection in your Fireblocks network * COMPOUND - (deprecated) An asset retrieved by using the Compound DeFI protocol * FIAT_ACCOUNT - A third-party fiat account connected to your workspace * ONE_TIME_ADDRESS - A non-whitelisted asset from your Fireblocks Workspace * \"*\" - All types | must be one of ["EXCHANGE", "UNMANAGED", "VAULT", "NETWORK_CONNECTION", "COMPOUND", "FIAT_ACCOUNT", "ONE_TIME_ADDRESS", "*", ] - -[[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/models/PolicyStatus.md b/docs/models/PolicyStatus.md deleted file mode 100644 index da02a077..00000000 --- a/docs/models/PolicyStatus.md +++ /dev/null @@ -1,11 +0,0 @@ -# fireblocks_client.model.policy_status.PolicyStatus - -* SUCCESS - success * UNVALIDATED - not validated yet * INVALID_CONFIGURATION - at least one rule is invalid * PENDING - pending approval * PENDING_CONSOLE_APPROVAL - pending approval from the console app * AWAITING_QUORUM - pending quorum approval * UNHANDLED_ERROR - unhandled error - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | * SUCCESS - success * UNVALIDATED - not validated yet * INVALID_CONFIGURATION - at least one rule is invalid * PENDING - pending approval * PENDING_CONSOLE_APPROVAL - pending approval from the console app * AWAITING_QUORUM - pending quorum approval * UNHANDLED_ERROR - unhandled error | must be one of ["SUCCESS", "UNVALIDATED", "INVALID_CONFIGURATION", "PENDING", "PENDING_CONSOLE_APPROVAL", "AWAITING_QUORUM", "UNHANDLED_ERROR", ] - -[[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/models/PolicyValidation.md b/docs/models/PolicyValidation.md deleted file mode 100644 index 2206e87f..00000000 --- a/docs/models/PolicyValidation.md +++ /dev/null @@ -1,18 +0,0 @@ -# fireblocks_client.model.policy_validation.PolicyValidation - -Policy validation object - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | Policy validation object | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**checkResult** | [**PolicyCheckResult**](PolicyCheckResult.md) | [**PolicyCheckResult**](PolicyCheckResult.md) | | -**status** | str, | str, | Validation status | -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/PublicKeyInformation.md b/docs/models/PublicKeyInformation.md deleted file mode 100644 index f937a960..00000000 --- a/docs/models/PublicKeyInformation.md +++ /dev/null @@ -1,29 +0,0 @@ -# fireblocks_client.model.public_key_information.PublicKeyInformation - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**algorithm** | str, | str, | | [optional] -**[derivationPath](#derivationPath)** | list, tuple, | tuple, | | [optional] -**publicKey** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# derivationPath - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -items | decimal.Decimal, int, float, | decimal.Decimal, | | - -[[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/models/PublishResult.md b/docs/models/PublishResult.md deleted file mode 100644 index b2373b4c..00000000 --- a/docs/models/PublishResult.md +++ /dev/null @@ -1,32 +0,0 @@ -# fireblocks_client.model.publish_result.PublishResult - -Response object of the publish policy operation - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | Response object of the publish policy operation | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**metadata** | [**PolicyMetadata**](PolicyMetadata.md) | [**PolicyMetadata**](PolicyMetadata.md) | | -**[rules](#rules)** | list, tuple, | tuple, | | -**checkResult** | [**PolicyCheckResult**](PolicyCheckResult.md) | [**PolicyCheckResult**](PolicyCheckResult.md) | | -**status** | [**PolicyStatus**](PolicyStatus.md) | [**PolicyStatus**](PolicyStatus.md) | | -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# rules - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**PolicyRule**](PolicyRule.md) | [**PolicyRule**](PolicyRule.md) | [**PolicyRule**](PolicyRule.md) | | - -[[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/models/RemoveCollateralRequestBody.md b/docs/models/RemoveCollateralRequestBody.md deleted file mode 100644 index e1900612..00000000 --- a/docs/models/RemoveCollateralRequestBody.md +++ /dev/null @@ -1,16 +0,0 @@ -# fireblocks_client.model.remove_collateral_request_body.RemoveCollateralRequestBody - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**transactionRequest** | [**TransactionRequest**](TransactionRequest.md) | [**TransactionRequest**](TransactionRequest.md) | | [optional] -**isDstCollateral** | bool, | BoolClass, | optional | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/RequestOptions.md b/docs/models/RequestOptions.md deleted file mode 100644 index 24ca298f..00000000 --- a/docs/models/RequestOptions.md +++ /dev/null @@ -1,16 +0,0 @@ -# fireblocks_client.model.request_options.RequestOptions - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**idempotencyKey** | str, | str, | | [optional] -**ncw** | [**Ncw**](Ncw.md) | [**Ncw**](Ncw.md) | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/ResendWebhooksResponse.md b/docs/models/ResendWebhooksResponse.md deleted file mode 100644 index c6152ce8..00000000 --- a/docs/models/ResendWebhooksResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# fireblocks_client.model.resend_webhooks_response.ResendWebhooksResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**messagesCount** | decimal.Decimal, int, float, | decimal.Decimal, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/RespondToConnectionRequest.md b/docs/models/RespondToConnectionRequest.md deleted file mode 100644 index f9c9afe6..00000000 --- a/docs/models/RespondToConnectionRequest.md +++ /dev/null @@ -1,15 +0,0 @@ -# fireblocks_client.model.respond_to_connection_request.RespondToConnectionRequest - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**approve** | bool, | BoolClass, | Approval of the initiated Web3 connection. | -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/RewardInfo.md b/docs/models/RewardInfo.md deleted file mode 100644 index 9dcdbd02..00000000 --- a/docs/models/RewardInfo.md +++ /dev/null @@ -1,18 +0,0 @@ -# fireblocks_client.model.reward_info.RewardInfo - -This field is relevant only for Algorand transactions. Both `srcRewards` and `destRewards` will appear only for Vault to Vault transactions, otherwise you will receive only the Fireblocks’ side of the transaction. - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | This field is relevant only for Algorand transactions. Both `srcRewards` and `destRewards` will appear only for Vault to Vault transactions, otherwise you will receive only the Fireblocks’ side of the transaction. | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**srcRewards** | str, | str, | | [optional] -**destRewards** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/RewardsInfo.md b/docs/models/RewardsInfo.md deleted file mode 100644 index 19ae00fb..00000000 --- a/docs/models/RewardsInfo.md +++ /dev/null @@ -1,15 +0,0 @@ -# fireblocks_client.model.rewards_info.RewardsInfo - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**pendingRewards** | str, | str, | Amount that is pending for rewards | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/SessionDTO.md b/docs/models/SessionDTO.md deleted file mode 100644 index 48ac3c09..00000000 --- a/docs/models/SessionDTO.md +++ /dev/null @@ -1,52 +0,0 @@ -# fireblocks_client.model.session_dto.SessionDTO - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**vaultAccountId** | decimal.Decimal, int, float, | decimal.Decimal, | The vault to connect | -**[chainIds](#chainIds)** | list, tuple, | tuple, | The chains approved for the connection | -**[sessionMetadata](#sessionMetadata)** | dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | Metadata of the connection (provided by the dapp) | -**feeLevel** | str, | str, | The default fee level | must be one of ["MEDIUM", "HIGH", ] -**id** | str, | str, | Id of the connection | -**creationDate** | str, datetime, | str, | Timestamp of the session's creation | value must conform to RFC-3339 date-time -**connectionType** | str, | str, | The connection's type | must be one of ["WalletConnect", ] -**userId** | str, | str, | Id of the user that created the connection | -**connectionMethod** | str, | str, | The method through which the connection was established | must be one of ["DESKTOP", "MOBILE", "API", ] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# sessionMetadata - -Metadata of the connection (provided by the dapp) - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | Metadata of the connection (provided by the dapp) | - -### Composed Schemas (allOf/anyOf/oneOf/not) -#### allOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[SessionMetadata](SessionMetadata.md) | [**SessionMetadata**](SessionMetadata.md) | [**SessionMetadata**](SessionMetadata.md) | | - -# chainIds - -The chains approved for the connection - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | The chains approved for the connection | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -items | str, | str, | | - -[[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/models/SessionMetadata.md b/docs/models/SessionMetadata.md deleted file mode 100644 index 375c15d0..00000000 --- a/docs/models/SessionMetadata.md +++ /dev/null @@ -1,18 +0,0 @@ -# fireblocks_client.model.session_metadata.SessionMetadata - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**appUrl** | str, | str, | | -**appName** | str, | str, | | [optional] -**appDescription** | str, | str, | | [optional] -**appIcon** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/SetConfirmationsThresholdRequest.md b/docs/models/SetConfirmationsThresholdRequest.md deleted file mode 100644 index 07555ba6..00000000 --- a/docs/models/SetConfirmationsThresholdRequest.md +++ /dev/null @@ -1,15 +0,0 @@ -# fireblocks_client.model.set_confirmations_threshold_request.SetConfirmationsThresholdRequest - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**numOfConfirmations** | decimal.Decimal, int, float, | decimal.Decimal, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/SetConfirmationsThresholdResponse.md b/docs/models/SetConfirmationsThresholdResponse.md deleted file mode 100644 index f3d4f1c6..00000000 --- a/docs/models/SetConfirmationsThresholdResponse.md +++ /dev/null @@ -1,28 +0,0 @@ -# fireblocks_client.model.set_confirmations_threshold_response.SetConfirmationsThresholdResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**success** | bool, | BoolClass, | | [optional] -**[transactions](#transactions)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# transactions - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -items | str, | str, | | - -[[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/models/SettlementRequestBody.md b/docs/models/SettlementRequestBody.md deleted file mode 100644 index e66a0568..00000000 --- a/docs/models/SettlementRequestBody.md +++ /dev/null @@ -1,15 +0,0 @@ -# fireblocks_client.model.settlement_request_body.SettlementRequestBody - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**mainExchangeAccountId** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/SettlementResponse.md b/docs/models/SettlementResponse.md deleted file mode 100644 index 30004473..00000000 --- a/docs/models/SettlementResponse.md +++ /dev/null @@ -1,26 +0,0 @@ -# fireblocks_client.model.settlement_response.SettlementResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**id** | str, | str, | | [optional] -**initiator** | str, | str, | | [optional] -**exchangeReply** | str, | str, | | [optional] -**[fireblocksInitiatedTransactions](#fireblocksInitiatedTransactions)** | dict, frozendict.frozendict, | frozendict.frozendict, | | [optional] -**exchangeRequestedTransactions** | [**SettlementResponse**](SettlementResponse.md) | [**SettlementResponse**](SettlementResponse.md) | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# fireblocksInitiatedTransactions - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -[[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/models/SignedMessage.md b/docs/models/SignedMessage.md deleted file mode 100644 index 29f5b25b..00000000 --- a/docs/models/SignedMessage.md +++ /dev/null @@ -1,49 +0,0 @@ -# fireblocks_client.model.signed_message.SignedMessage - -A list of signed messages returned for raw signing. - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | A list of signed messages returned for raw signing. | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**content** | str, | str, | | [optional] -**algorithm** | str, | str, | | [optional] must be one of ["MPC_ECDSA_SECP256K1", "MPC_EDDSA_ED25519", ] -**[derivationPath](#derivationPath)** | list, tuple, | tuple, | | [optional] -**[signature](#signature)** | dict, frozendict.frozendict, | frozendict.frozendict, | | [optional] -**publicKey** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# derivationPath - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -items | decimal.Decimal, int, float, | decimal.Decimal, | | - -# signature - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**fullSig** | str, | str, | | [optional] -**r** | str, | str, | | [optional] -**s** | str, | str, | | [optional] -**v** | decimal.Decimal, int, float, | decimal.Decimal, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/SourceTransferPeerPathResponse.md b/docs/models/SourceTransferPeerPathResponse.md deleted file mode 100644 index f99d42c1..00000000 --- a/docs/models/SourceTransferPeerPathResponse.md +++ /dev/null @@ -1,34 +0,0 @@ -# fireblocks_client.model.source_transfer_peer_path_response.SourceTransferPeerPathResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | - -### Composed Schemas (allOf/anyOf/oneOf/not) -#### allOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[TransferPeerPath](TransferPeerPath.md) | [**TransferPeerPath**](TransferPeerPath.md) | [**TransferPeerPath**](TransferPeerPath.md) | | -[all_of_1](#all_of_1) | dict, frozendict.frozendict, | frozendict.frozendict, | The transaction’s source. | - -# all_of_1 - -The transaction’s source. - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | The transaction’s source. | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**type** | str, | str, | | [optional] -**subType** | str, | str, | In case the type is set to `EXCHANGE_ACCOUNT` or `FIAT_ACCOUNT`, the specific exchange vendor name or fiat vendor name. In case the type is set to `INTERNAL_WALLET` or `EXTERNAL_WALLET`, the subType is set to `Internal` or `External`. | [optional] -**id** | str, | str, | The ID of the peer. You can retrieve the ID of each venue object using the endpoints for [listing vault accounts](https://developers.fireblocks.com/reference/get_vault-accounts-paged), [listing exchange account](https://developers.fireblocks.com/reference/get_exchange-accounts), [listing fiat accounts](https://developers.fireblocks.com/reference/get_fiat-accounts), [listing internal wallets](https://developers.fireblocks.com/reference/get_internal-wallets), [listing external wallets](https://developers.fireblocks.com/reference/get_external-wallets), [listing network connections](https://developers.fireblocks.com/reference/get_network-connections). For the other types, this parameter is not needed. | [optional] -**name** | str, | str, | The name of the peer. | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/SystemMessageInfo.md b/docs/models/SystemMessageInfo.md deleted file mode 100644 index 22419a69..00000000 --- a/docs/models/SystemMessageInfo.md +++ /dev/null @@ -1,16 +0,0 @@ -# fireblocks_client.model.system_message_info.SystemMessageInfo - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**type** | str, | str, | | [optional] must be one of ["WARN", "BLOCK", ] -**message** | str, | str, | A response from Fireblocks that communicates a message about the health of the process being performed. If this object is returned with data, you should expect potential delays or incomplete transaction statuses. | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/Term.md b/docs/models/Term.md deleted file mode 100644 index 7f5e3bf9..00000000 --- a/docs/models/Term.md +++ /dev/null @@ -1,20 +0,0 @@ -# fireblocks_client.model.term.Term - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**networkConnectionId** | str, | str, | | [optional] -**outgoing** | bool, | BoolClass, | | [optional] -**asset** | str, | str, | | [optional] -**amount** | str, | str, | | [optional] -**note** | str, | str, | | [optional] -**operation** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/ToCollateralTransaction.md b/docs/models/ToCollateralTransaction.md deleted file mode 100644 index 1392c594..00000000 --- a/docs/models/ToCollateralTransaction.md +++ /dev/null @@ -1,19 +0,0 @@ -# fireblocks_client.model.to_collateral_transaction.ToCollateralTransaction - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**asset** | str, | str, | | [optional] -**amount** | str, | str, | | [optional] -**srcAddress** | str, | str, | | [optional] -**srcTag** | str, | str, | optional | [optional] -**fee** | str, | str, | optional | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/ToExchangeTransaction.md b/docs/models/ToExchangeTransaction.md deleted file mode 100644 index 368c9675..00000000 --- a/docs/models/ToExchangeTransaction.md +++ /dev/null @@ -1,18 +0,0 @@ -# fireblocks_client.model.to_exchange_transaction.ToExchangeTransaction - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**assetId** | str, | str, | | [optional] -**amount** | str, | str, | | [optional] -**dstAddress** | str, | str, | | [optional] -**dstTag** | str, | str, | optional | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/TokenCollectionResponse.md b/docs/models/TokenCollectionResponse.md deleted file mode 100644 index e7a40368..00000000 --- a/docs/models/TokenCollectionResponse.md +++ /dev/null @@ -1,17 +0,0 @@ -# fireblocks_client.model.token_collection_response.TokenCollectionResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**symbol** | str, | str, | | -**name** | str, | str, | | -**id** | str, | str, | | -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/TokenOwnershipResponse.md b/docs/models/TokenOwnershipResponse.md deleted file mode 100644 index 9426e607..00000000 --- a/docs/models/TokenOwnershipResponse.md +++ /dev/null @@ -1,57 +0,0 @@ -# fireblocks_client.model.token_ownership_response.TokenOwnershipResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**standard** | str, | str, | ERC721 / ERC1155 | -**blockchainDescriptor** | str, | str, | | must be one of ["ETH", "ETH_TEST3", "POLYGON", "POLYGON_TEST_MUMBAI", ] -**balance** | str, | str, | | -**tokenId** | str, | str, | Token id within the contract/collection | -**ownershipStartTime** | decimal.Decimal, int, float, | decimal.Decimal, | | -**name** | str, | str, | | -**description** | str, | str, | | -**vaultAccountId** | str, | str, | | -**id** | str, | str, | The Fireblocks NFT asset id | -**[media](#media)** | list, tuple, | tuple, | Media items extracted from metadata JSON | -**ownershipLastUpdateTime** | decimal.Decimal, int, float, | decimal.Decimal, | | -**metadataURI** | str, | str, | URL of the original token JSON metadata | [optional] -**cachedMetadataURI** | str, | str, | URL of the cached token JSON metadata | [optional] -**[collection](#collection)** | dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | Parent collection information | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# media - -Media items extracted from metadata JSON - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | Media items extracted from metadata JSON | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**MediaEntityResponse**](MediaEntityResponse.md) | [**MediaEntityResponse**](MediaEntityResponse.md) | [**MediaEntityResponse**](MediaEntityResponse.md) | | - -# collection - -Parent collection information - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | Parent collection information | - -### Composed Schemas (allOf/anyOf/oneOf/not) -#### allOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[TokenCollectionResponse](TokenCollectionResponse.md) | [**TokenCollectionResponse**](TokenCollectionResponse.md) | [**TokenCollectionResponse**](TokenCollectionResponse.md) | | - -[[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/models/TokenResponse.md b/docs/models/TokenResponse.md deleted file mode 100644 index 569d8ebd..00000000 --- a/docs/models/TokenResponse.md +++ /dev/null @@ -1,53 +0,0 @@ -# fireblocks_client.model.token_response.TokenResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**standard** | str, | str, | ERC721 / ERC1155 | -**blockchainDescriptor** | str, | str, | | must be one of ["ETH", "ETH_TEST3", "POLYGON", "POLYGON_TEST_MUMBAI", ] -**tokenId** | str, | str, | Token id within the contract/collection | -**name** | str, | str, | | -**description** | str, | str, | | -**id** | str, | str, | The Fireblocks NFT asset id | -**[media](#media)** | list, tuple, | tuple, | Media items extracted from metadata JSON | -**metadataURI** | str, | str, | URL of the original token JSON metadata | [optional] -**cachedMetadataURI** | str, | str, | URL of the cached token JSON metadata | [optional] -**[collection](#collection)** | dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | Parent collection information | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# media - -Media items extracted from metadata JSON - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | Media items extracted from metadata JSON | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**MediaEntityResponse**](MediaEntityResponse.md) | [**MediaEntityResponse**](MediaEntityResponse.md) | [**MediaEntityResponse**](MediaEntityResponse.md) | | - -# collection - -Parent collection information - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | Parent collection information | - -### Composed Schemas (allOf/anyOf/oneOf/not) -#### allOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[TokenCollectionResponse](TokenCollectionResponse.md) | [**TokenCollectionResponse**](TokenCollectionResponse.md) | [**TokenCollectionResponse**](TokenCollectionResponse.md) | | - -[[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/models/TradingAccountType.md b/docs/models/TradingAccountType.md deleted file mode 100644 index 1e05515b..00000000 --- a/docs/models/TradingAccountType.md +++ /dev/null @@ -1,9 +0,0 @@ -# fireblocks_client.model.trading_account_type.TradingAccountType - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | must be one of ["COIN_FUTURES", "COIN_MARGINED_SWAP", "EXCHANGE", "FUNDING", "FUNDABLE", "FUTURES", "FUTURES_CROSS", "MARGIN", "MARGIN_CROSS", "OPTIONS", "SPOT", "USDT_MARGINED_SWAP_CROSS", "USDT_FUTURES", "UNIFIED", ] - -[[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/models/Transaction.md b/docs/models/Transaction.md deleted file mode 100644 index 920cf817..00000000 --- a/docs/models/Transaction.md +++ /dev/null @@ -1,18 +0,0 @@ -# fireblocks_client.model.transaction.Transaction - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**id** | str, | str, | | -**state** | str, | str, | | must be one of ["SUBMITTED", "QUEUED", "PENDING_AUTHORIZATION", "PENDING_SIGNATURE", "BROADCASTING", "PENDING_3RD_PARTY_MANUAL_APPROVAL", "PENDING_3RD_PARTY", "PENDING", "CONFIRMING", "CONFIRMED", "COMPLETED", "PARTIALLY_COMPLETED", "PENDING_AML_SCREENING", "CANCELLING", "CANCELLED", "REJECTED", "BLOCKED", "FAILED", "TIMEOUT", ] -**timestamp** | decimal.Decimal, int, float, | decimal.Decimal, | | [optional] value must conform to RFC-3339 date-time -**instructionId** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/TransactionFee.md b/docs/models/TransactionFee.md deleted file mode 100644 index 255389ea..00000000 --- a/docs/models/TransactionFee.md +++ /dev/null @@ -1,20 +0,0 @@ -# fireblocks_client.model.transaction_fee.TransactionFee - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**feePerByte** | str, | str, | | [optional] -**gasPrice** | str, | str, | | [optional] -**gasLimit** | str, | str, | | [optional] -**networkFee** | str, | str, | | [optional] -**baseFee** | str, | str, | (optional) Base Fee according to EIP-1559 (ETH assets) | [optional] -**priorityFee** | str, | str, | (optional) Priority Fee according to EIP-1559 (ETH assets) | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/TransactionOperation.md b/docs/models/TransactionOperation.md deleted file mode 100644 index e36696c9..00000000 --- a/docs/models/TransactionOperation.md +++ /dev/null @@ -1,11 +0,0 @@ -# fireblocks_client.model.transaction_operation.TransactionOperation - -* `TRANSFER` - The default value for an operation. Transfers funds from one account to another. UTXO blockchains allow multi-input and multi-output transfers. All other blockchains allow transfers with one source address and one destination address. * `MINT` - Mints new tokens. Supported for Stellar, Ripple and EVM-based blockchains. * `BURN` - Burns tokens. Supported for Stellar, Ripple and EVM-based blockchains. * `CONTRACT_CALL` - Calls a smart contract method for web3 operations on any EVM blockchain. The Fireblocks [development libraries](https://developers.fireblocks.com/docs/ethereum-development#convenience-libraries) are recommended for building contract call transactions. * `TYPED_MESSAGE` - An off-chain message in either Ethereum Personal Message or EIP712 format. Use it to sign specific readable messages that are not actual transactions. [Learn more about typed messages](https://developers.fireblocks.com/docs/typed-message-signing). * `RAW` - An off-chain message with no predefined format. Use it to sign any message with your private key, including protocols such as blockchains and custom transaction types that are not natively supported by Fireblocks. [Learn more about raw signing transactions.](https://developers.fireblocks.com/docs/raw-message-signing) - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | * `TRANSFER` - The default value for an operation. Transfers funds from one account to another. UTXO blockchains allow multi-input and multi-output transfers. All other blockchains allow transfers with one source address and one destination address. * `MINT` - Mints new tokens. Supported for Stellar, Ripple and EVM-based blockchains. * `BURN` - Burns tokens. Supported for Stellar, Ripple and EVM-based blockchains. * `CONTRACT_CALL` - Calls a smart contract method for web3 operations on any EVM blockchain. The Fireblocks [development libraries](https://developers.fireblocks.com/docs/ethereum-development#convenience-libraries) are recommended for building contract call transactions. * `TYPED_MESSAGE` - An off-chain message in either Ethereum Personal Message or EIP712 format. Use it to sign specific readable messages that are not actual transactions. [Learn more about typed messages](https://developers.fireblocks.com/docs/typed-message-signing). * `RAW` - An off-chain message with no predefined format. Use it to sign any message with your private key, including protocols such as blockchains and custom transaction types that are not natively supported by Fireblocks. [Learn more about raw signing transactions.](https://developers.fireblocks.com/docs/raw-message-signing) | must be one of ["TRANSFER", "BURN", "CONTRACT_CALL", "MINT", "RAW", "TYPED_MESSAGE", ] if omitted the server will use the default value of "TRANSFER" - -[[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/models/TransactionRequest.md b/docs/models/TransactionRequest.md deleted file mode 100644 index 84f025c0..00000000 --- a/docs/models/TransactionRequest.md +++ /dev/null @@ -1,333 +0,0 @@ -# fireblocks_client.model.transaction_request.TransactionRequest - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**operation** | [**TransactionOperation**](TransactionOperation.md) | [**TransactionOperation**](TransactionOperation.md) | | [optional] -**note** | str, | str, | Custom note, not sent to the blockchain, to describe the transaction at your Fireblocks workspace. | [optional] -**externalTxId** | str, | str, | An optional but highly recommended parameter. Fireblocks will reject future transactions with same ID. You should set this to a unique ID representing the transaction, to avoid submitting the same transaction twice. This helps with cases where submitting the transaction responds with an error code due to Internet interruptions, but the transaction was actually sent and processed. To validate whether a transaction has been processed, [Find a specific transaction by external transaction ID](https://developers.fireblocks.com/reference/get_transactions-external-tx-id-externaltxid). There is no specific format required for this parameter. | [optional] -**assetId** | str, | str, | The ID of the asset to transfer, for `TRANSFER`, `MINT` or `BURN` operations. [See the list of supported assets and their IDs on Fireblocks.](https://developers.fireblocks.com/reference/get_supported-assets) | [optional] -**source** | [**TransferPeerPath**](TransferPeerPath.md) | [**TransferPeerPath**](TransferPeerPath.md) | | [optional] -**destination** | [**DestinationTransferPeerPath**](DestinationTransferPeerPath.md) | [**DestinationTransferPeerPath**](DestinationTransferPeerPath.md) | | [optional] -**[destinations](#destinations)** | list, tuple, | tuple, | For UTXO based blockchains, you can send a single transaction to multiple destinations. | [optional] -**[amount](#amount)** | dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | For `TRANSFER` operations, the requested amount to transfer, in the asset’s unit. Fireblocks recommends using a numeric string for accurate precision. Although a number input exists, it is deprecated. | [optional] -**treatAsGrossAmount** | bool, | BoolClass, | \"When set to `true`, the fee will be deducted from the requested amount.\" **Note**: This parameter can only be considered if a transaction’s asset is a base asset, such as ETH or MATIC. If the asset can’t be used for transaction fees, like USDC, this parameter is ignored and the fee is deducted from the relevant base asset wallet in the source account. | [optional] -**forceSweep** | bool, | BoolClass, | For Polkadot, Kusama and Westend transactions only. When set to true, Fireblocks will empty the asset wallet. **Note:** If set to true when the source account is exactly 1 DOT, the transaction will fail. Any amount more or less than 1 DOT succeeds. This is a Polkadot blockchain limitation. | [optional] -**feeLevel** | str, | str, | For UTXO or EVM-based blockchains only. Defines the blockchain fee level which will be payed for the transaction. Alternatively, specific fee estimation parameters exist below. | [optional] must be one of ["LOW", "MEDIUM", "HIGH", ] -**[fee](#fee)** | dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | For UTXO-based blockchains, the fee per bytes in the asset’s smallest unit (Satoshi, Latoshi, etc.). For Ripple, the fee for the transaction. Fireblocks recommends using a numeric string for accurate precision. Although a number input exists, it is deprecated. | [optional] -**[priorityFee](#priorityFee)** | dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | For Ethereum-based blockchains only, the fee for EIP-1559 transaction pricing mechanism. Value is in Gwei. Fireblocks recommends using a numeric string for accurate precision. Although a number input exists, it is deprecated. | [optional] -**failOnLowFee** | bool, | BoolClass, | When set to `true`, in case the current `MEDIUM` fee level is higher than the one specified in the transaction, the transaction will fail to avoid getting stuck with no confirmations. | [optional] -**maxFee** | str, | str, | The maximum fee (gas price or fee per byte) that should be payed for the transaction. In case the current value of the requested `feeLevel` is higher than this requested maximum fee. Represented by a numeric string for accurate precision. | [optional] -**[gasLimit](#gasLimit)** | dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | For EVM-based blockchains only. Units of gas required to process the transaction. Note: Only two of the three arguments can be specified in a single transaction: `gasLimit`, `gasPrice` and `networkFee`. Fireblocks recommends using a numeric string for accurate precision. Although a number input exists, it is deprecated. | [optional] -**[gasPrice](#gasPrice)** | dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | For non-EIP-1559, EVM-based transactions. Price per gas unit (in Ethereum this is specified in Gwei). Note: Only two of the three arguments can be specified in a single transaction: `gasLimit`, `gasPrice` and `networkFee`. Fireblocks recommends using a numeric string for accurate precision. Although a number input exists, it is deprecated. | [optional] -**[networkFee](#networkFee)** | dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | For EVM-based blockchains only. The total transaction fee in the blockchain’s largest unit. Note: Only two of the three arguments can be specified in a single transaction: `gasLimit`, `gasPrice` and `networkFee`. Fireblocks recommends using a numeric string for accurate precision. Although a number input exists, it is deprecated. - The transaction blockchain fee. - For Ethereum, you can't pass gasPrice, gasLimit and networkFee all together. - A numeric value representation is required. | [optional] -**replaceTxByHash** | str, | str, | For EVM-based blockchains only. In case a transaction is stuck, specify the hash of the stuck transaction to replace it by this transaction with a higher fee, or to replace it with this transaction with a zero fee and drop it from the blockchain. | [optional] -**[extraParameters](#extraParameters)** | dict, frozendict.frozendict, | frozendict.frozendict, | Additional protocol / operation specific key-value parameters: For UTXO-based blockchain input selection, add the key `inputsSelection` with the value set the [input selection structure.](https://developers.fireblocks.com/reference/transaction-objects#inputsselection) The inputs can be retrieved from the [Retrieve Unspent Inputs endpoint.](https://developers.fireblocks.com/reference/get_vault-accounts-vaultaccountid-assetid-unspent-inputs) For `RAW` operations, add the key `rawMessageData` with the value set to the [raw message data structure.](https://developers.fireblocks.com/reference/raw-signing-objects#rawmessagedata) For `CONTRACT_CALL` operations, add the key `contractCallData` with the value set to the Ethereum smart contract Application Binary Interface (ABI) payload. The Fireblocks [development libraries](https://developers.fireblocks.com/docs/ethereum-development#convenience-libraries) are recommended for building contract call transactions. | [optional] -**customerRefId** | str, | str, | The ID for AML providers to associate the owner of funds with transactions. | [optional] -**autoStaking** | bool, | BoolClass, | This feature is no longer supported. | [optional] -**[networkStaking](#networkStaking)** | dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | This feature is no longer supported. | [optional] -**[cpuStaking](#cpuStaking)** | dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | This feature is no longer supported. | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# destinations - -For UTXO based blockchains, you can send a single transaction to multiple destinations. - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | For UTXO based blockchains, you can send a single transaction to multiple destinations. | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**TransactionRequestDestination**](TransactionRequestDestination.md) | [**TransactionRequestDestination**](TransactionRequestDestination.md) | [**TransactionRequestDestination**](TransactionRequestDestination.md) | | - -# amount - -For `TRANSFER` operations, the requested amount to transfer, in the asset’s unit. Fireblocks recommends using a numeric string for accurate precision. Although a number input exists, it is deprecated. - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | For `TRANSFER` operations, the requested amount to transfer, in the asset’s unit. Fireblocks recommends using a numeric string for accurate precision. Although a number input exists, it is deprecated. | - -### Composed Schemas (allOf/anyOf/oneOf/not) -#### oneOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[one_of_0](#one_of_0) | str, | str, | Numeric string (recommended) | -[one_of_1](#one_of_1) | decimal.Decimal, int, float, | decimal.Decimal, | Number (deprecated) | - -# one_of_0 - -Numeric string (recommended) - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | Numeric string (recommended) | - -# one_of_1 - -Number (deprecated) - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -decimal.Decimal, int, float, | decimal.Decimal, | Number (deprecated) | - -# fee - -For UTXO-based blockchains, the fee per bytes in the asset’s smallest unit (Satoshi, Latoshi, etc.). For Ripple, the fee for the transaction. Fireblocks recommends using a numeric string for accurate precision. Although a number input exists, it is deprecated. - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | For UTXO-based blockchains, the fee per bytes in the asset’s smallest unit (Satoshi, Latoshi, etc.). For Ripple, the fee for the transaction. Fireblocks recommends using a numeric string for accurate precision. Although a number input exists, it is deprecated. | - -### Composed Schemas (allOf/anyOf/oneOf/not) -#### oneOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[one_of_0](#one_of_0) | str, | str, | Numeric string (recommended) | -[one_of_1](#one_of_1) | decimal.Decimal, int, float, | decimal.Decimal, | Number (deprecated) | - -# one_of_0 - -Numeric string (recommended) - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | Numeric string (recommended) | - -# one_of_1 - -Number (deprecated) - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -decimal.Decimal, int, float, | decimal.Decimal, | Number (deprecated) | - -# priorityFee - -For Ethereum-based blockchains only, the fee for EIP-1559 transaction pricing mechanism. Value is in Gwei. Fireblocks recommends using a numeric string for accurate precision. Although a number input exists, it is deprecated. - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | For Ethereum-based blockchains only, the fee for EIP-1559 transaction pricing mechanism. Value is in Gwei. Fireblocks recommends using a numeric string for accurate precision. Although a number input exists, it is deprecated. | - -### Composed Schemas (allOf/anyOf/oneOf/not) -#### oneOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[one_of_0](#one_of_0) | str, | str, | Numeric string (recommended) | -[one_of_1](#one_of_1) | decimal.Decimal, int, float, | decimal.Decimal, | Number (deprecated) | - -# one_of_0 - -Numeric string (recommended) - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | Numeric string (recommended) | - -# one_of_1 - -Number (deprecated) - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -decimal.Decimal, int, float, | decimal.Decimal, | Number (deprecated) | - -# gasLimit - -For EVM-based blockchains only. Units of gas required to process the transaction. Note: Only two of the three arguments can be specified in a single transaction: `gasLimit`, `gasPrice` and `networkFee`. Fireblocks recommends using a numeric string for accurate precision. Although a number input exists, it is deprecated. - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | For EVM-based blockchains only. Units of gas required to process the transaction. Note: Only two of the three arguments can be specified in a single transaction: `gasLimit`, `gasPrice` and `networkFee`. Fireblocks recommends using a numeric string for accurate precision. Although a number input exists, it is deprecated. | - -### Composed Schemas (allOf/anyOf/oneOf/not) -#### oneOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[one_of_0](#one_of_0) | str, | str, | Numeric string (recommended) | -[one_of_1](#one_of_1) | decimal.Decimal, int, float, | decimal.Decimal, | Number (deprecated) | - -# one_of_0 - -Numeric string (recommended) - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | Numeric string (recommended) | - -# one_of_1 - -Number (deprecated) - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -decimal.Decimal, int, float, | decimal.Decimal, | Number (deprecated) | - -# gasPrice - -For non-EIP-1559, EVM-based transactions. Price per gas unit (in Ethereum this is specified in Gwei). Note: Only two of the three arguments can be specified in a single transaction: `gasLimit`, `gasPrice` and `networkFee`. Fireblocks recommends using a numeric string for accurate precision. Although a number input exists, it is deprecated. - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | For non-EIP-1559, EVM-based transactions. Price per gas unit (in Ethereum this is specified in Gwei). Note: Only two of the three arguments can be specified in a single transaction: `gasLimit`, `gasPrice` and `networkFee`. Fireblocks recommends using a numeric string for accurate precision. Although a number input exists, it is deprecated. | - -### Composed Schemas (allOf/anyOf/oneOf/not) -#### oneOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[one_of_0](#one_of_0) | str, | str, | Numeric string (recommended) | -[one_of_1](#one_of_1) | decimal.Decimal, int, float, | decimal.Decimal, | Number (deprecated) | - -# one_of_0 - -Numeric string (recommended) - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | Numeric string (recommended) | - -# one_of_1 - -Number (deprecated) - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -decimal.Decimal, int, float, | decimal.Decimal, | Number (deprecated) | - -# networkFee - -For EVM-based blockchains only. The total transaction fee in the blockchain’s largest unit. Note: Only two of the three arguments can be specified in a single transaction: `gasLimit`, `gasPrice` and `networkFee`. Fireblocks recommends using a numeric string for accurate precision. Although a number input exists, it is deprecated. - The transaction blockchain fee. - For Ethereum, you can't pass gasPrice, gasLimit and networkFee all together. - A numeric value representation is required. - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | For EVM-based blockchains only. The total transaction fee in the blockchain’s largest unit. Note: Only two of the three arguments can be specified in a single transaction: `gasLimit`, `gasPrice` and `networkFee`. Fireblocks recommends using a numeric string for accurate precision. Although a number input exists, it is deprecated. - The transaction blockchain fee. - For Ethereum, you can't pass gasPrice, gasLimit and networkFee all together. - A numeric value representation is required. | - -### Composed Schemas (allOf/anyOf/oneOf/not) -#### oneOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[one_of_0](#one_of_0) | str, | str, | Numeric string (recommended) | -[one_of_1](#one_of_1) | decimal.Decimal, int, float, | decimal.Decimal, | Number (deprecated) | - -# one_of_0 - -Numeric string (recommended) - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | Numeric string (recommended) | - -# one_of_1 - -Number (deprecated) - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -decimal.Decimal, int, float, | decimal.Decimal, | Number (deprecated) | - -# extraParameters - -Additional protocol / operation specific key-value parameters: For UTXO-based blockchain input selection, add the key `inputsSelection` with the value set the [input selection structure.](https://developers.fireblocks.com/reference/transaction-objects#inputsselection) The inputs can be retrieved from the [Retrieve Unspent Inputs endpoint.](https://developers.fireblocks.com/reference/get_vault-accounts-vaultaccountid-assetid-unspent-inputs) For `RAW` operations, add the key `rawMessageData` with the value set to the [raw message data structure.](https://developers.fireblocks.com/reference/raw-signing-objects#rawmessagedata) For `CONTRACT_CALL` operations, add the key `contractCallData` with the value set to the Ethereum smart contract Application Binary Interface (ABI) payload. The Fireblocks [development libraries](https://developers.fireblocks.com/docs/ethereum-development#convenience-libraries) are recommended for building contract call transactions. - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | Additional protocol / operation specific key-value parameters: For UTXO-based blockchain input selection, add the key `inputsSelection` with the value set the [input selection structure.](https://developers.fireblocks.com/reference/transaction-objects#inputsselection) The inputs can be retrieved from the [Retrieve Unspent Inputs endpoint.](https://developers.fireblocks.com/reference/get_vault-accounts-vaultaccountid-assetid-unspent-inputs) For `RAW` operations, add the key `rawMessageData` with the value set to the [raw message data structure.](https://developers.fireblocks.com/reference/raw-signing-objects#rawmessagedata) For `CONTRACT_CALL` operations, add the key `contractCallData` with the value set to the Ethereum smart contract Application Binary Interface (ABI) payload. The Fireblocks [development libraries](https://developers.fireblocks.com/docs/ethereum-development#convenience-libraries) are recommended for building contract call transactions. | - -# networkStaking - -This feature is no longer supported. - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | This feature is no longer supported. | - -### Composed Schemas (allOf/anyOf/oneOf/not) -#### oneOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[one_of_0](#one_of_0) | str, | str, | Numeric string (recommended) | -[one_of_1](#one_of_1) | decimal.Decimal, int, float, | decimal.Decimal, | Number (deprecated) | - -# one_of_0 - -Numeric string (recommended) - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | Numeric string (recommended) | - -# one_of_1 - -Number (deprecated) - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -decimal.Decimal, int, float, | decimal.Decimal, | Number (deprecated) | - -# cpuStaking - -This feature is no longer supported. - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | This feature is no longer supported. | - -### Composed Schemas (allOf/anyOf/oneOf/not) -#### oneOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[one_of_0](#one_of_0) | str, | str, | Numeric string (recommended) | -[one_of_1](#one_of_1) | decimal.Decimal, int, float, | decimal.Decimal, | Number (deprecated) | - -# one_of_0 - -Numeric string (recommended) - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | Numeric string (recommended) | - -# one_of_1 - -Number (deprecated) - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -decimal.Decimal, int, float, | decimal.Decimal, | Number (deprecated) | - -[[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/models/TransactionRequestDestination.md b/docs/models/TransactionRequestDestination.md deleted file mode 100644 index a7aee9b6..00000000 --- a/docs/models/TransactionRequestDestination.md +++ /dev/null @@ -1,16 +0,0 @@ -# fireblocks_client.model.transaction_request_destination.TransactionRequestDestination - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**amount** | str, | str, | | [optional] -**destination** | [**DestinationTransferPeerPath**](DestinationTransferPeerPath.md) | [**DestinationTransferPeerPath**](DestinationTransferPeerPath.md) | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/TransactionResponse.md b/docs/models/TransactionResponse.md deleted file mode 100644 index 3691d8fe..00000000 --- a/docs/models/TransactionResponse.md +++ /dev/null @@ -1,146 +0,0 @@ -# fireblocks_client.model.transaction_response.TransactionResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**id** | str, | str, | ID of the transaction. | [optional] -**externalTxId** | str, | str, | Unique transaction ID provided by the user. Fireblocks highly recommends setting an `externalTxId` for every transaction created, to avoid submitting the same transaction twice. | [optional] -**status** | str, | str, | The primary status of the transaction. For details, see [Primary transaction statuses](https://developers.fireblocks.com/reference/primary-transaction-statuses). | [optional] -**subStatus** | str, | str, | See [Transaction substatuses](https://developers.fireblocks.com/reference/transaction-substatuses) for the list of transaction sub statuses. | [optional] -**txHash** | str, | str, | The hash of the transaction on the blockchain. * This parameter exists if at least one of the following conditions is met: 1. The transaction’s source type is `UNKNOWN`, `WHITELISTED_ADDRESS`, `NETWORK_CONNECTION`, `ONE_TIME_ADDRESS`, `FIAT_ACCOUNT` or `GAS_STATION`. 2. The transaction’s source type is `VAULT` and the status is either: `CONFIRMING`, `COMPLETED`, or was in any of these statuses prior to changing to `FAILED` or `REJECTED`. In some instances, transactions in status `BROADCASTING` will include the txHash as well. 3. The transaction’s source type is `EXCHANGE_ACCOUNT` and the transaction’s destination type is `VAULT`, and the status is either: `CONFIRMING`, `COMPLETED`, or was in any of these status prior to changing to `FAILED`. * In addition, the following conditions must be met: 1. The asset is a crypto asset (not fiat). 2. The transaction operation is not RAW or `TYPED_MESSAGE`. | [optional] -**operation** | [**GetTransactionOperation**](GetTransactionOperation.md) | [**GetTransactionOperation**](GetTransactionOperation.md) | | [optional] -**note** | str, | str, | Custom note, not sent to the blockchain, that describes the transaction at your Fireblocks workspace. | [optional] -**assetId** | str, | str, | The ID of the asset to transfer, for `TRANSFER`, `MINT`, `BURN`, `ENABLE_ASSET`,`STAKE` ,`UNSTAKE` or `WITHDRAW` operations. [See the list of supported assets and their IDs on Fireblocks.](https://developers.fireblocks.com/reference/get_supported-assets) | [optional] -**source** | [**SourceTransferPeerPathResponse**](SourceTransferPeerPathResponse.md) | [**SourceTransferPeerPathResponse**](SourceTransferPeerPathResponse.md) | | [optional] -**sourceAddress** | str, | str, | For account based assets only, the source address of the transaction. **Note:** If the status is `CONFIRMING`, `COMPLETED`, or has been `CONFIRMING`; then moved forward to `FAILED` or `REJECTED`, then this parameter will contain the source address. In any other case, this parameter will be empty. | [optional] -**tag** | str, | str, | Source address tag for XRP, used as memo for EOS/XLM, or Bank Transfer Description for the fiat provider BLINC (by BCB Group). | [optional] -**destination** | [**DestinationTransferPeerPathResponse**](DestinationTransferPeerPathResponse.md) | [**DestinationTransferPeerPathResponse**](DestinationTransferPeerPathResponse.md) | | [optional] -**[destinations](#destinations)** | list, tuple, | tuple, | The transaction’s destinations. **Note:** In case the transaction is sent to a single destination, the `destination` parameter is used instead of this. | [optional] -**destinationAddress** | str, | str, | Address where the asset were transferred. Notes: - For [Multi destination transactions](https://support.fireblocks.io/hc/en-us/articles/360018447980-Multi-destination-transactions), this parameter will be empty. In this case, you should refer to the destinations field. - If the status is `CONFIRMING`, `COMPLETED`, or has been `CONFIRMING`; then moved forward to `FAILED` or `REJECTED`, then this parameter will contain the destination address. In any other case, this parameter will be empty. | [optional] -**destinationAddressDescription** | str, | str, | Description of the address. | [optional] -**destinationTag** | str, | str, | Destination address tag for XRP, used as memo for EOS/XLM, or Bank Transfer Description for the fiat provider BLINC (by BCB Group). | [optional] -**[contractCallDecodedData](#contractCallDecodedData)** | dict, frozendict.frozendict, | frozendict.frozendict, | Decoded data for `CONTRACT_CALL` operations. The Fireblocks [development libraries](https://developers.fireblocks.com/docs/ethereum-development#convenience-libraries) are recommended for setting this parameter's value. | [optional] -**amountInfo** | [**AmountInfo**](AmountInfo.md) | [**AmountInfo**](AmountInfo.md) | | [optional] -**treatAsGrossAmount** | bool, | BoolClass, | For transactions initiated via this Fireblocks workspace, when set to `true`, the fee is deducted from the requested amount. **Note**: This parameter can only be considered if a transaction's asset is a base asset, such as ETH or MATIC. If the asset can't be used for transaction fees, like USDC, this parameter is ignored and the fee is deducted from the relevant base asset wallet in the source account. | [optional] -**feeInfo** | [**FeeInfo**](FeeInfo.md) | [**FeeInfo**](FeeInfo.md) | | [optional] -**feeCurrency** | str, | str, | The asset which was withdrawn to pay the transaction fee, for example ETH for EVM-based blockchains, BTC for Tether Omni. | [optional] -**[networkRecords](#networkRecords)** | list, tuple, | tuple, | In case a single transaction resulted with multiple transfers, for example a result of a contract call, then this parameter specifies each transfer that took place on the blockchain. In case of a single transfer transaction, this parameter is empty. | [optional] -**createdAt** | decimal.Decimal, int, float, | decimal.Decimal, | The transaction’s creation date and time, in unix timestamp. | [optional] -**lastUpdated** | decimal.Decimal, int, float, | decimal.Decimal, | The transaction’s last update date and time, in unix timestamp. | [optional] -**createdBy** | str, | str, | User ID of the initiator of the transaction. | [optional] -**[signedBy](#signedBy)** | list, tuple, | tuple, | User ID’s of the signers of the transaction. | [optional] -**rejectedBy** | str, | str, | User ID of the user that rejected the transaction (in case it was rejected). | [optional] -**authorizationInfo** | [**AuthorizationInfo**](AuthorizationInfo.md) | [**AuthorizationInfo**](AuthorizationInfo.md) | | [optional] -**exchangeTxId** | str, | str, | If the transaction originated from an exchange, this is the ID of this transaction at the exchange. | [optional] -**customerRefId** | str, | str, | The ID for AML providers to associate the owner of funds with transactions. | [optional] -**amlScreeningResult** | [**AmlScreeningResult**](AmlScreeningResult.md) | [**AmlScreeningResult**](AmlScreeningResult.md) | | [optional] -**[extraParameters](#extraParameters)** | dict, frozendict.frozendict, | frozendict.frozendict, | Additional protocol / operation specific key-value parameters: For UTXO-based blockchain input selection, add the key `inputsSelection` with the value set the [input selection structure.](https://developers.fireblocks.com/reference/transaction-objects#inputsselection) The inputs can be retrieved from the [Retrieve Unspent Inputs endpoint.](https://developers.fireblocks.com/reference/get_vault-accounts-vaultaccountid-assetid-unspent-inputs) For `RAW` operations, add the key `rawMessageData` with the value set to the [raw message data structure.](https://developers.fireblocks.com/reference/raw-signing-objects#rawmessagedata) For `CONTRACT_CALL` operations, add the key `contractCallData` with the value set to the Ethereum smart contract Application Binary Interface (ABI) payload. The Fireblocks [development libraries](https://developers.fireblocks.com/docs/ethereum-development#convenience-libraries) are recommended for building contract call transactions. | [optional] -**signedMessages** | [**SignedMessage**](SignedMessage.md) | [**SignedMessage**](SignedMessage.md) | | [optional] -**numOfConfirmations** | decimal.Decimal, int, float, | decimal.Decimal, | The number of confirmations of the transaction. The number will increase until the transaction will be considered completed according to the confirmation policy. | [optional] -**blockInfo** | [**BlockInfo**](BlockInfo.md) | [**BlockInfo**](BlockInfo.md) | | [optional] -**index** | decimal.Decimal, int, float, | decimal.Decimal, | For UTXO based assets this is the vOut, for Ethereum based, this is the index of the event of the contract call. **Note:** This field is not returned if a transaction uses the `destinations` object with more than one value. | [optional] -**rewardInfo** | [**RewardInfo**](RewardInfo.md) | [**RewardInfo**](RewardInfo.md) | | [optional] -**systemMessages** | [**SystemMessageInfo**](SystemMessageInfo.md) | [**SystemMessageInfo**](SystemMessageInfo.md) | | [optional] -**addressType** | str, | str, | | [optional] must be one of ["WHITELISTED", "ONE_TIME", ] -**requestedAmount** | decimal.Decimal, int, float, | decimal.Decimal, | The amount requested by the user. Deprecated - please use the `amountInfo` field for accuracy. | [optional] -**amount** | decimal.Decimal, int, float, | decimal.Decimal, | If the transfer is a withdrawal from an exchange, the actual amount that was requested to be transferred. Otherwise, the requested amount. Deprecated - please use the `amountInfo` field for accuracy. | [optional] -**netAmount** | decimal.Decimal, int, float, | decimal.Decimal, | The net amount of the transaction, after fee deduction. Deprecated - please use the `amountInfo` field for accuracy. | [optional] -**amountUSD** | None, decimal.Decimal, int, float, | NoneClass, decimal.Decimal, | The USD value of the requested amount. Deprecated - please use the `amountInfo` field for accuracy. | [optional] -**serviceFee** | decimal.Decimal, int, float, | decimal.Decimal, | The total fee deducted by the exchange from the actual requested amount (`serviceFee` = `amount` - `netAmount`). Deprecated - please use the `feeInfo` field for accuracy. | [optional] -**fee** | decimal.Decimal, int, float, | decimal.Decimal, | Deprecated - please use the `feeInfo` field for accuracy. | [optional] -**networkFee** | decimal.Decimal, int, float, | decimal.Decimal, | The fee paid to the network. Deprecated - please use the `feeInfo` field for accuracy. | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# destinations - -The transaction’s destinations. **Note:** In case the transaction is sent to a single destination, the `destination` parameter is used instead of this. - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | The transaction’s destinations. **Note:** In case the transaction is sent to a single destination, the `destination` parameter is used instead of this. | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**TransactionResponseDestination**](TransactionResponseDestination.md) | [**TransactionResponseDestination**](TransactionResponseDestination.md) | [**TransactionResponseDestination**](TransactionResponseDestination.md) | | - -# contractCallDecodedData - -Decoded data for `CONTRACT_CALL` operations. The Fireblocks [development libraries](https://developers.fireblocks.com/docs/ethereum-development#convenience-libraries) are recommended for setting this parameter's value. - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | Decoded data for `CONTRACT_CALL` operations. The Fireblocks [development libraries](https://developers.fireblocks.com/docs/ethereum-development#convenience-libraries) are recommended for setting this parameter's value. | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**contractName** | str, | str, | | [optional] -**[functionCalls](#functionCalls)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# functionCalls - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[items](#items) | dict, frozendict.frozendict, | frozendict.frozendict, | | - -# items - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -# networkRecords - -In case a single transaction resulted with multiple transfers, for example a result of a contract call, then this parameter specifies each transfer that took place on the blockchain. In case of a single transfer transaction, this parameter is empty. - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | In case a single transaction resulted with multiple transfers, for example a result of a contract call, then this parameter specifies each transfer that took place on the blockchain. In case of a single transfer transaction, this parameter is empty. | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**NetworkRecord**](NetworkRecord.md) | [**NetworkRecord**](NetworkRecord.md) | [**NetworkRecord**](NetworkRecord.md) | | - -# signedBy - -User ID’s of the signers of the transaction. - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | User ID’s of the signers of the transaction. | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -items | str, | str, | | - -# extraParameters - -Additional protocol / operation specific key-value parameters: For UTXO-based blockchain input selection, add the key `inputsSelection` with the value set the [input selection structure.](https://developers.fireblocks.com/reference/transaction-objects#inputsselection) The inputs can be retrieved from the [Retrieve Unspent Inputs endpoint.](https://developers.fireblocks.com/reference/get_vault-accounts-vaultaccountid-assetid-unspent-inputs) For `RAW` operations, add the key `rawMessageData` with the value set to the [raw message data structure.](https://developers.fireblocks.com/reference/raw-signing-objects#rawmessagedata) For `CONTRACT_CALL` operations, add the key `contractCallData` with the value set to the Ethereum smart contract Application Binary Interface (ABI) payload. The Fireblocks [development libraries](https://developers.fireblocks.com/docs/ethereum-development#convenience-libraries) are recommended for building contract call transactions. - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | Additional protocol / operation specific key-value parameters: For UTXO-based blockchain input selection, add the key `inputsSelection` with the value set the [input selection structure.](https://developers.fireblocks.com/reference/transaction-objects#inputsselection) The inputs can be retrieved from the [Retrieve Unspent Inputs endpoint.](https://developers.fireblocks.com/reference/get_vault-accounts-vaultaccountid-assetid-unspent-inputs) For `RAW` operations, add the key `rawMessageData` with the value set to the [raw message data structure.](https://developers.fireblocks.com/reference/raw-signing-objects#rawmessagedata) For `CONTRACT_CALL` operations, add the key `contractCallData` with the value set to the Ethereum smart contract Application Binary Interface (ABI) payload. The Fireblocks [development libraries](https://developers.fireblocks.com/docs/ethereum-development#convenience-libraries) are recommended for building contract call transactions. | - -[[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/models/TransactionResponseDestination.md b/docs/models/TransactionResponseDestination.md deleted file mode 100644 index 9aa35957..00000000 --- a/docs/models/TransactionResponseDestination.md +++ /dev/null @@ -1,21 +0,0 @@ -# fireblocks_client.model.transaction_response_destination.TransactionResponseDestination - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**destinationAddress** | dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | Address where the asset was transferred. | [optional] -**destinationAddressDescription** | dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | Description of the address. | [optional] -**amount** | str, | str, | The amount to be sent to this destination. | [optional] -**amountUSD** | str, | str, | The USD value of the requested amount. | [optional] -**amlScreeningResult** | [**AmlScreeningResult**](AmlScreeningResult.md) | [**AmlScreeningResult**](AmlScreeningResult.md) | | [optional] -**destination** | [**DestinationTransferPeerPathResponse**](DestinationTransferPeerPathResponse.md) | [**DestinationTransferPeerPathResponse**](DestinationTransferPeerPathResponse.md) | | [optional] -**authorizationInfo** | [**AuthorizationInfo**](AuthorizationInfo.md) | [**AuthorizationInfo**](AuthorizationInfo.md) | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/TransferPeerPath.md b/docs/models/TransferPeerPath.md deleted file mode 100644 index aff3db87..00000000 --- a/docs/models/TransferPeerPath.md +++ /dev/null @@ -1,19 +0,0 @@ -# fireblocks_client.model.transfer_peer_path.TransferPeerPath - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**type** | str, | str, | | must be one of ["VAULT_ACCOUNT", "EXCHANGE_ACCOUNT", "INTERNAL_WALLET", "EXTERNAL_WALLET", "NETWORK_CONNECTION", "FIAT_ACCOUNT", "COMPOUND", "GAS_STATION", "ONE_TIME_ADDRESS", "UNKNOWN", "END_USER_WALLET", ] -**subType** | str, | str, | | [optional] must be one of ["BINANCE", "BINANCEUS", "BITFINEX", "BITHUMB", "BITMEX", "BITSO", "BITSTAMP", "BITTREX", "BLINC", "BYBIT", "CIRCLE", "COINBASEEXCHANGE", "COINBASEPRO", "COINMETRO", "COINSPRO", "CRYPTOCOM", "DERIBIT", "GEMINI", "HITBTC", "HUOBI", "INDEPENDENTRESERVE", "KORBIT", "KRAKEN", "KRAKENINTL", "KUCOIN", "LIQUID", "OKCOIN", "OKEX", "PAXOS", "POLONIEX", "External", "Internal", ] -**id** | str, | str, | | [optional] -**name** | str, | str, | | [optional] -**walletId** | str, uuid.UUID, | str, | | [optional] value must be a uuid -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/TravelRuleAddress.md b/docs/models/TravelRuleAddress.md deleted file mode 100644 index 381f2a11..00000000 --- a/docs/models/TravelRuleAddress.md +++ /dev/null @@ -1,18 +0,0 @@ -# fireblocks_client.model.travel_rule_address.TravelRuleAddress - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**city** | str, | str, | City | -**street** | str, | str, | Street address | -**postalCode** | str, | str, | Postal or ZIP code | -**state** | str, | str, | State or province | -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/TravelRuleGetAllVASPsResponse.md b/docs/models/TravelRuleGetAllVASPsResponse.md deleted file mode 100644 index 92edf520..00000000 --- a/docs/models/TravelRuleGetAllVASPsResponse.md +++ /dev/null @@ -1,27 +0,0 @@ -# fireblocks_client.model.travel_rule_get_all_vasps_response.TravelRuleGetAllVASPsResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[vasps](#vasps)** | list, tuple, | tuple, | | -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# vasps - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**TravelRuleVASP**](TravelRuleVASP.md) | [**TravelRuleVASP**](TravelRuleVASP.md) | [**TravelRuleVASP**](TravelRuleVASP.md) | | - -[[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/models/TravelRuleIssuer.md b/docs/models/TravelRuleIssuer.md deleted file mode 100644 index 425e95c5..00000000 --- a/docs/models/TravelRuleIssuer.md +++ /dev/null @@ -1,15 +0,0 @@ -# fireblocks_client.model.travel_rule_issuer.TravelRuleIssuer - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**issuerDid** | str, | str, | | -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/TravelRuleIssuers.md b/docs/models/TravelRuleIssuers.md deleted file mode 100644 index 9adfefe5..00000000 --- a/docs/models/TravelRuleIssuers.md +++ /dev/null @@ -1,28 +0,0 @@ -# fireblocks_client.model.travel_rule_issuers.TravelRuleIssuers - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**country** | [**TravelRuleIssuer**](TravelRuleIssuer.md) | [**TravelRuleIssuer**](TravelRuleIssuer.md) | | -**website** | [**TravelRuleIssuer**](TravelRuleIssuer.md) | [**TravelRuleIssuer**](TravelRuleIssuer.md) | | -**city** | [**TravelRuleIssuer**](TravelRuleIssuer.md) | [**TravelRuleIssuer**](TravelRuleIssuer.md) | | -**isRegulated** | [**TravelRuleIssuer**](TravelRuleIssuer.md) | [**TravelRuleIssuer**](TravelRuleIssuer.md) | | -**description** | [**TravelRuleIssuer**](TravelRuleIssuer.md) | [**TravelRuleIssuer**](TravelRuleIssuer.md) | | -**businessNumber** | [**TravelRuleIssuer**](TravelRuleIssuer.md) | [**TravelRuleIssuer**](TravelRuleIssuer.md) | | -**yearFounded** | [**TravelRuleIssuer**](TravelRuleIssuer.md) | [**TravelRuleIssuer**](TravelRuleIssuer.md) | | -**legalName** | [**TravelRuleIssuer**](TravelRuleIssuer.md) | [**TravelRuleIssuer**](TravelRuleIssuer.md) | | -**legalStructure** | [**TravelRuleIssuer**](TravelRuleIssuer.md) | [**TravelRuleIssuer**](TravelRuleIssuer.md) | | -**regulatoryAuthorities** | [**TravelRuleIssuer**](TravelRuleIssuer.md) | [**TravelRuleIssuer**](TravelRuleIssuer.md) | | -**name** | [**TravelRuleIssuer**](TravelRuleIssuer.md) | [**TravelRuleIssuer**](TravelRuleIssuer.md) | | -**addressLine1** | [**TravelRuleIssuer**](TravelRuleIssuer.md) | [**TravelRuleIssuer**](TravelRuleIssuer.md) | | -**logo** | [**TravelRuleIssuer**](TravelRuleIssuer.md) | [**TravelRuleIssuer**](TravelRuleIssuer.md) | | -**incorporationCountry** | [**TravelRuleIssuer**](TravelRuleIssuer.md) | [**TravelRuleIssuer**](TravelRuleIssuer.md) | | -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/TravelRuleOwnershipProof.md b/docs/models/TravelRuleOwnershipProof.md deleted file mode 100644 index 4a85ad49..00000000 --- a/docs/models/TravelRuleOwnershipProof.md +++ /dev/null @@ -1,20 +0,0 @@ -# fireblocks_client.model.travel_rule_ownership_proof.TravelRuleOwnershipProof - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**country** | str, | str, | Country of issuance | -**name** | str, | str, | Name of owner | -**id** | str, | str, | Identification number | -**issueDate** | str, | str, | Date of issuance | -**type** | str, | str, | Type of ownership proof | -**issuer** | str, | str, | Name of issuing entity | -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/TravelRulePiiIVMS.md b/docs/models/TravelRulePiiIVMS.md deleted file mode 100644 index b8df322b..00000000 --- a/docs/models/TravelRulePiiIVMS.md +++ /dev/null @@ -1,23 +0,0 @@ -# fireblocks_client.model.travel_rule_pii_ivms.TravelRulePiiIVMS - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**placeOfBirth** | str, | str, | | -**address** | str, | str, | | -**nationality** | str, | str, | | -**fullName** | str, | str, | | -**identificationNumber** | str, | str, | | -**dateOfBirth** | str, | str, | | -**countryOfResidence** | str, | str, | | -**customerNumber** | str, | str, | | -**taxIdentificationNumber** | str, | str, | | -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/TravelRuleTransactionBlockchainInfo.md b/docs/models/TravelRuleTransactionBlockchainInfo.md deleted file mode 100644 index fa5694cb..00000000 --- a/docs/models/TravelRuleTransactionBlockchainInfo.md +++ /dev/null @@ -1,17 +0,0 @@ -# fireblocks_client.model.travel_rule_transaction_blockchain_info.TravelRuleTransactionBlockchainInfo - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**origin** | str, | str, | | -**destination** | str, | str, | | -**txHash** | str, | str, | | -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/TravelRuleUpdateVASPDetails.md b/docs/models/TravelRuleUpdateVASPDetails.md deleted file mode 100644 index b031352b..00000000 --- a/docs/models/TravelRuleUpdateVASPDetails.md +++ /dev/null @@ -1,16 +0,0 @@ -# fireblocks_client.model.travel_rule_update_vasp_details.TravelRuleUpdateVASPDetails - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**pii_didkey** | str, | str, | The PII DID key of the VASP | -**did** | str, | str, | The decentralized identifier of the VASP | -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/TravelRuleVASP.md b/docs/models/TravelRuleVASP.md deleted file mode 100644 index 31b6d592..00000000 --- a/docs/models/TravelRuleVASP.md +++ /dev/null @@ -1,60 +0,0 @@ -# fireblocks_client.model.travel_rule_vasp.TravelRuleVASP - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**country** | str, | str, | | -**travelRule_TRISA** | str, | str, | | -**isNotifiable** | bool, | BoolClass, | | -**travelRule_TRP** | str, | str, | | -**city** | str, | str, | | -**documents** | str, | str, | | -**isRegulated** | str, | str, | | -**travelRule_EMAIL** | str, | str, | | -**description** | str, | str, | | -**identificationType** | str, | str, | | -**identificationCountry** | str, | str, | | -**travelRule_SYGNA** | str, | str, | | -**lastReceivedDate** | str, | str, | | -**legalName** | str, | str, | | -**createdAt** | str, | str, | | -**number** | str, | str, | | -**legalStructure** | str, | str, | | -**street** | str, | str, | | -**travelRule_SHYFT** | str, | str, | | -**regulatoryAuthorities** | str, | str, | | -**addressLine1** | str, | str, | | -**logo** | str, | str, | | -**addressLine2** | str, | str, | | -**state** | str, | str, | | -**jurisdictions** | str, | str, | | -**travelRule_TRLIGHT** | str, | str, | | -**updatedAt** | str, | str, | | -**hasAdmin** | bool, | BoolClass, | | -**website** | str, | str, | | -**updatedBy** | str, | str, | | -**verificationStatus** | str, | str, | | -**emailDomains** | str, | str, | | -**businessNumber** | str, | str, | | -**issuers** | [**TravelRuleIssuers**](TravelRuleIssuers.md) | [**TravelRuleIssuers**](TravelRuleIssuers.md) | | -**yearFounded** | str, | str, | | -**travelRule_OPENVASP** | str, | str, | | -**travelRule_USTRAVELRULEWG** | str, | str, | | -**unit** | str, | str, | | -**otherNames** | str, | str, | | -**certificates** | str, | str, | | -**lastSentDate** | str, | str, | | -**createdBy** | str, | str, | | -**name** | str, | str, | | -**postCode** | str, | str, | | -**did** | str, | str, | | -**incorporationCountry** | str, | str, | | -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/TravelRuleValidateFullTransactionRequest.md b/docs/models/TravelRuleValidateFullTransactionRequest.md deleted file mode 100644 index 85b5be56..00000000 --- a/docs/models/TravelRuleValidateFullTransactionRequest.md +++ /dev/null @@ -1,122 +0,0 @@ -# fireblocks_client.model.travel_rule_validate_full_transaction_request.TravelRuleValidateFullTransactionRequest - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[originatorProof](#originatorProof)** | dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | Ownership proof related to the originator of the transaction | -**transactionAsset** | str, | str, | The asset involved in the transaction | -**[originator](#originator)** | dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | Information about the originator of the transaction | -**notificationEmail** | str, | str, | The email address where a notification should be sent upon completion of the travel rule | -**beneficiaryVASPname** | str, | str, | The name of the VASP acting as the beneficiary | -**[pii](#pii)** | dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | Personal identifiable information related to the transaction | -**protocol** | str, | str, | The protocol used to perform the travel rule | -**skipBeneficiaryDataValidation** | bool, | BoolClass, | Whether to skip validation of beneficiary data | -**[beneficiary](#beneficiary)** | dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | Information about the beneficiary of the transaction | -**encrypted** | str, | str, | Encrypted data related to the transaction | -**originatorDid** | str, | str, | The DID of the transaction originator | -**transactionAmount** | str, | str, | The amount of the transaction | -**travelRuleBehavior** | bool, | BoolClass, | Whether to check if the transaction is a TRAVEL_RULE in the beneficiary VASP's jurisdiction | -**[transactionBlockchainInfo](#transactionBlockchainInfo)** | dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | Information about the blockchain transaction | -**[beneficiaryProof](#beneficiaryProof)** | dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | Ownership proof related to the beneficiary of the transaction | -**beneficiaryDid** | str, | str, | The DID of the transaction beneficiary | -**originatorVASPdid** | str, | str, | The VASP ID of the transaction originator | -**beneficiaryVASPdid** | str, | str, | The VASP ID of the transaction beneficiary | -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# transactionBlockchainInfo - -Information about the blockchain transaction - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | Information about the blockchain transaction | - -### Composed Schemas (allOf/anyOf/oneOf/not) -#### allOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[TravelRuleTransactionBlockchainInfo](TravelRuleTransactionBlockchainInfo.md) | [**TravelRuleTransactionBlockchainInfo**](TravelRuleTransactionBlockchainInfo.md) | [**TravelRuleTransactionBlockchainInfo**](TravelRuleTransactionBlockchainInfo.md) | | - -# originator - -Information about the originator of the transaction - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | Information about the originator of the transaction | - -### Composed Schemas (allOf/anyOf/oneOf/not) -#### allOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[TravelRulePiiIVMS](TravelRulePiiIVMS.md) | [**TravelRulePiiIVMS**](TravelRulePiiIVMS.md) | [**TravelRulePiiIVMS**](TravelRulePiiIVMS.md) | | - -# beneficiary - -Information about the beneficiary of the transaction - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | Information about the beneficiary of the transaction | - -### Composed Schemas (allOf/anyOf/oneOf/not) -#### allOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[TravelRulePiiIVMS](TravelRulePiiIVMS.md) | [**TravelRulePiiIVMS**](TravelRulePiiIVMS.md) | [**TravelRulePiiIVMS**](TravelRulePiiIVMS.md) | | - -# originatorProof - -Ownership proof related to the originator of the transaction - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | Ownership proof related to the originator of the transaction | - -### Composed Schemas (allOf/anyOf/oneOf/not) -#### allOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[TravelRuleOwnershipProof](TravelRuleOwnershipProof.md) | [**TravelRuleOwnershipProof**](TravelRuleOwnershipProof.md) | [**TravelRuleOwnershipProof**](TravelRuleOwnershipProof.md) | | - -# beneficiaryProof - -Ownership proof related to the beneficiary of the transaction - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | Ownership proof related to the beneficiary of the transaction | - -### Composed Schemas (allOf/anyOf/oneOf/not) -#### allOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[TravelRuleOwnershipProof](TravelRuleOwnershipProof.md) | [**TravelRuleOwnershipProof**](TravelRuleOwnershipProof.md) | [**TravelRuleOwnershipProof**](TravelRuleOwnershipProof.md) | | - -# pii - -Personal identifiable information related to the transaction - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | Personal identifiable information related to the transaction | - -### Composed Schemas (allOf/anyOf/oneOf/not) -#### allOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[TravelRulePiiIVMS](TravelRulePiiIVMS.md) | [**TravelRulePiiIVMS**](TravelRulePiiIVMS.md) | [**TravelRulePiiIVMS**](TravelRulePiiIVMS.md) | | - -[[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/models/TravelRuleValidateTransactionRequest.md b/docs/models/TravelRuleValidateTransactionRequest.md deleted file mode 100644 index 5d608910..00000000 --- a/docs/models/TravelRuleValidateTransactionRequest.md +++ /dev/null @@ -1,40 +0,0 @@ -# fireblocks_client.model.travel_rule_validate_transaction_request.TravelRuleValidateTransactionRequest - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**beneficiaryVASPname** | str, | str, | Beneficiary VASP name | -**originatorEqualsBeneficiary** | bool, | BoolClass, | \"True\" if the originator and beneficiary is the same person and you therefore do not need to collect any information. \"False\" if it is a third-party transfer. | -**transactionAsset** | str, | str, | Transaction asset symbol BTC,ETH) | -**beneficiaryAccountNumber** | str, | str, | Beneficiary name | -**beneficiaryName** | str, | str, | Beneficiary name | -**transactionAmount** | str, | str, | Transaction amount in the transaction asset | -**travelRuleBehavior** | bool, | BoolClass, | This will also check if the transaction is a TRAVEL_RULE in the beneficiary VASP's jurisdiction | -**destination** | str, | str, | Transaction destination address | -**[beneficiaryAddress](#beneficiaryAddress)** | dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | Beneficiary name | -**originatorVASPdid** | str, | str, | This is the identifier assigned to your VASP | -**beneficiaryVASPdid** | str, | str, | This is the identifier assigned to the VASP the funds are being sent to | -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# beneficiaryAddress - -Beneficiary name - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | Beneficiary name | - -### Composed Schemas (allOf/anyOf/oneOf/not) -#### allOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[TravelRuleAddress](TravelRuleAddress.md) | [**TravelRuleAddress**](TravelRuleAddress.md) | [**TravelRuleAddress**](TravelRuleAddress.md) | | - -[[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/models/TravelRuleValidateTransactionResponse.md b/docs/models/TravelRuleValidateTransactionResponse.md deleted file mode 100644 index 819f7039..00000000 --- a/docs/models/TravelRuleValidateTransactionResponse.md +++ /dev/null @@ -1,35 +0,0 @@ -# fireblocks_client.model.travel_rule_validate_transaction_response.TravelRuleValidateTransactionResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**beneficiaryVASPname** | str, | str, | \"beneficiaryVASPname\" will tell you the name of the VASP that has been identified as the owner of the wallet address. This name is used in a subsequent call to get its DID. | -**addressSource** | str, | str, | \"addressSource\" will tell you if the address was found in your internal address book or identified by the blockchain analytics provider. | -**beneficiaryAddressType** | str, | str, | \"beneficiaryAddressType\" will tell you if your blockchain analytics provider or internal address book has been able to identify the wallet address. | -**isValid** | bool, | BoolClass, | \"isValid\" will tell you if you have collected all the information needed for the travel rule data transfer. Once this field = \"true\", you can move on to the next step which is to transfer the front-end information to your back-end and perform Travel Rule Transaction create | -**[warnings](#warnings)** | list, tuple, | tuple, | \"errors/warnings\" will tell you what information about the beneficiary you need to collect from the sender. | -**type** | str, | str, | \"type\" will tell you if the virtual asset value converted to FIAT value of the withdrawal request is above (=TRAVELRULE) or below (=BELOW_THRESHOLD) the threshold in your jurisdiction. If it is to an unhosted wallet which does not require travel rule information to be sent and only collected, it will say NON_CUSTODIAL. | -**beneficiaryVASPdid** | str, | str, | The VASP DID of the beneficiary VASP | -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# warnings - -\"errors/warnings\" will tell you what information about the beneficiary you need to collect from the sender. - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | \"errors/warnings\" will tell you what information about the beneficiary you need to collect from the sender. | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -items | str, | str, | | - -[[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/models/UnfreezeTransactionResponse.md b/docs/models/UnfreezeTransactionResponse.md deleted file mode 100644 index 16d2aed1..00000000 --- a/docs/models/UnfreezeTransactionResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# fireblocks_client.model.unfreeze_transaction_response.UnfreezeTransactionResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**success** | bool, | BoolClass, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/UnmanagedWallet.md b/docs/models/UnmanagedWallet.md deleted file mode 100644 index b14ace3e..00000000 --- a/docs/models/UnmanagedWallet.md +++ /dev/null @@ -1,31 +0,0 @@ -# fireblocks_client.model.unmanaged_wallet.UnmanagedWallet - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**name** | str, | str, | | -**id** | str, | str, | | -**status** | dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | -**customerRefId** | str, | str, | | [optional] -**[assets](#assets)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# assets - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**WalletAsset**](WalletAsset.md) | [**WalletAsset**](WalletAsset.md) | [**WalletAsset**](WalletAsset.md) | | - -[[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/models/UnsignedMessage.md b/docs/models/UnsignedMessage.md deleted file mode 100644 index ace88537..00000000 --- a/docs/models/UnsignedMessage.md +++ /dev/null @@ -1,30 +0,0 @@ -# fireblocks_client.model.unsigned_message.UnsignedMessage - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**content** | str, | str, | | -**bip44addressIndex** | decimal.Decimal, int, | decimal.Decimal, | | [optional] -**bip44change** | decimal.Decimal, int, float, | decimal.Decimal, | | [optional] -**[derivationPath](#derivationPath)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# derivationPath - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -items | decimal.Decimal, int, float, | decimal.Decimal, | | - -[[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/models/UnspentInput.md b/docs/models/UnspentInput.md deleted file mode 100644 index 26e3ee1b..00000000 --- a/docs/models/UnspentInput.md +++ /dev/null @@ -1,16 +0,0 @@ -# fireblocks_client.model.unspent_input.UnspentInput - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**txHash** | str, | str, | | [optional] -**index** | decimal.Decimal, int, float, | decimal.Decimal, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/UnspentInputsResponse.md b/docs/models/UnspentInputsResponse.md deleted file mode 100644 index 642ce2d1..00000000 --- a/docs/models/UnspentInputsResponse.md +++ /dev/null @@ -1,19 +0,0 @@ -# fireblocks_client.model.unspent_inputs_response.UnspentInputsResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**input** | [**UnspentInput**](UnspentInput.md) | [**UnspentInput**](UnspentInput.md) | | [optional] -**address** | str, | str, | | [optional] -**amount** | str, | str, | | [optional] -**confirmations** | decimal.Decimal, int, float, | decimal.Decimal, | | [optional] -**status** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/UpdateTokenOwnershipStatusDto.md b/docs/models/UpdateTokenOwnershipStatusDto.md deleted file mode 100644 index 61e290e3..00000000 --- a/docs/models/UpdateTokenOwnershipStatusDto.md +++ /dev/null @@ -1,15 +0,0 @@ -# fireblocks_client.model.update_token_ownership_status_dto.UpdateTokenOwnershipStatusDto - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**status** | str, | str, | | must be one of ["LISTED", "ARCHIVED", ] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/UserGroupCreateRequest.md b/docs/models/UserGroupCreateRequest.md deleted file mode 100644 index 84faedc8..00000000 --- a/docs/models/UserGroupCreateRequest.md +++ /dev/null @@ -1,28 +0,0 @@ -# fireblocks_client.model.user_group_create_request.UserGroupCreateRequest - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**groupName** | str, | str, | | [optional] -**[memberIds](#memberIds)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# memberIds - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -items | str, | str, | | - -[[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/models/UserGroupCreateResponse.md b/docs/models/UserGroupCreateResponse.md deleted file mode 100644 index 599e2be6..00000000 --- a/docs/models/UserGroupCreateResponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# fireblocks_client.model.user_group_create_response.UserGroupCreateResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**name** | str, | str, | | [optional] -**id** | str, | str, | | [optional] -**[memberIds](#memberIds)** | list, tuple, | tuple, | | [optional] -**status** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# memberIds - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -items | str, | str, | | - -[[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/models/UserGroupUpdateRequest.md b/docs/models/UserGroupUpdateRequest.md deleted file mode 100644 index f0a70b09..00000000 --- a/docs/models/UserGroupUpdateRequest.md +++ /dev/null @@ -1,28 +0,0 @@ -# fireblocks_client.model.user_group_update_request.UserGroupUpdateRequest - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**groupName** | str, | str, | | [optional] -**[memberIds](#memberIds)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# memberIds - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -items | str, | str, | | - -[[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/models/UserResponse.md b/docs/models/UserResponse.md deleted file mode 100644 index 1aedb285..00000000 --- a/docs/models/UserResponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# fireblocks_client.model.user_response.UserResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**id** | str, | str, | | [optional] -**firstName** | str, | str, | | [optional] -**lastName** | str, | str, | | [optional] -**role** | str, | str, | | [optional] -**email** | str, | str, | | [optional] -**enabled** | bool, | BoolClass, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/UsersGroupResponse.md b/docs/models/UsersGroupResponse.md deleted file mode 100644 index 3eaf2043..00000000 --- a/docs/models/UsersGroupResponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# fireblocks_client.model.users_group_response.UsersGroupResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**id** | str, | str, | | [optional] -**name** | str, | str, | | [optional] -**status** | str, | str, | | [optional] -**[memberIds](#memberIds)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# memberIds - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -items | str, | str, | | - -[[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/models/UsersGroupsResponse.md b/docs/models/UsersGroupsResponse.md deleted file mode 100644 index e036f6f1..00000000 --- a/docs/models/UsersGroupsResponse.md +++ /dev/null @@ -1,14 +0,0 @@ -# fireblocks_client.model.users_groups_response.UsersGroupsResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**UsersGroupResponse**](UsersGroupResponse.md) | [**UsersGroupResponse**](UsersGroupResponse.md) | [**UsersGroupResponse**](UsersGroupResponse.md) | | - -[[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/models/ValidateAddressResponse.md b/docs/models/ValidateAddressResponse.md deleted file mode 100644 index dc91f1f3..00000000 --- a/docs/models/ValidateAddressResponse.md +++ /dev/null @@ -1,17 +0,0 @@ -# fireblocks_client.model.validate_address_response.ValidateAddressResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**isValid** | bool, | BoolClass, | | [optional] -**isActive** | bool, | BoolClass, | | [optional] -**requiresTag** | bool, | BoolClass, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/VaultAccount.md b/docs/models/VaultAccount.md deleted file mode 100644 index 1ef10443..00000000 --- a/docs/models/VaultAccount.md +++ /dev/null @@ -1,32 +0,0 @@ -# fireblocks_client.model.vault_account.VaultAccount - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**id** | str, | str, | | [optional] -**name** | str, | str, | | [optional] -**[assets](#assets)** | list, tuple, | tuple, | | [optional] -**hiddenOnUI** | bool, | BoolClass, | | [optional] -**customerRefId** | str, | str, | | [optional] -**autoFuel** | bool, | BoolClass, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# assets - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**VaultAsset**](VaultAsset.md) | [**VaultAsset**](VaultAsset.md) | [**VaultAsset**](VaultAsset.md) | | - -[[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/models/VaultAccountsPagedResponse.md b/docs/models/VaultAccountsPagedResponse.md deleted file mode 100644 index 16f88a63..00000000 --- a/docs/models/VaultAccountsPagedResponse.md +++ /dev/null @@ -1,44 +0,0 @@ -# fireblocks_client.model.vault_accounts_paged_response.VaultAccountsPagedResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[accounts](#accounts)** | list, tuple, | tuple, | | [optional] -**[paging](#paging)** | dict, frozendict.frozendict, | frozendict.frozendict, | | [optional] -**previousUrl** | str, | str, | | [optional] -**nextUrl** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# accounts - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**VaultAccount**](VaultAccount.md) | [**VaultAccount**](VaultAccount.md) | [**VaultAccount**](VaultAccount.md) | | - -# paging - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**before** | str, | str, | | [optional] -**after** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/VaultAsset.md b/docs/models/VaultAsset.md deleted file mode 100644 index 97363e8d..00000000 --- a/docs/models/VaultAsset.md +++ /dev/null @@ -1,31 +0,0 @@ -# fireblocks_client.model.vault_asset.VaultAsset - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**id** | str, | str, | | [optional] -**total** | str, | str, | The total wallet balance. In EOS this value includes the network balance, self staking and pending refund. For all other coins it is the balance as it appears on the blockchain. | [optional] -**balance** | str, | str, | Deprecated - replaced by \"total\" | [optional] -**available** | str, | str, | Funds available for transfer. Equals the blockchain balance minus any locked amounts | [optional] -**pending** | str, | str, | The cumulative balance of all transactions pending to be cleared | [optional] -**frozen** | str, | str, | The cumulative frozen balance | [optional] -**lockedAmount** | str, | str, | Funds in outgoing transactions that are not yet published to the network | [optional] -**staked** | str, | str, | Staked balance | [optional] -**totalStakedCPU** | decimal.Decimal, int, float, | decimal.Decimal, | Deprecated | [optional] -**totalStakedNetwork** | str, | str, | Deprecated | [optional] -**selfStakedCPU** | str, | str, | Deprecated | [optional] -**selfStakedNetwork** | str, | str, | Deprecated | [optional] -**pendingRefundCPU** | str, | str, | Deprecated | [optional] -**pendingRefundNetwork** | str, | str, | Deprecated | [optional] -**blockHeight** | str, | str, | | [optional] -**blockHash** | str, | str, | | [optional] -**rewardsInfo** | [**RewardsInfo**](RewardsInfo.md) | [**RewardsInfo**](RewardsInfo.md) | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/VaultWalletAddress.md b/docs/models/VaultWalletAddress.md deleted file mode 100644 index eb8dd415..00000000 --- a/docs/models/VaultWalletAddress.md +++ /dev/null @@ -1,25 +0,0 @@ -# fireblocks_client.model.vault_wallet_address.VaultWalletAddress - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**assetId** | str, | str, | | [optional] -**address** | str, | str, | | [optional] -**description** | str, | str, | | [optional] -**tag** | str, | str, | | [optional] -**type** | str, | str, | | [optional] -**customerRefId** | str, | str, | | [optional] -**addressFormat** | str, | str, | | [optional] must be one of ["SEGWIT", "LEGACY", ] -**legacyAddress** | str, | str, | | [optional] -**enterpriseAddress** | str, | str, | | [optional] -**bip44AddressIndex** | decimal.Decimal, int, | decimal.Decimal, | | [optional] -**userDefined** | bool, | BoolClass, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/WalletAsset.md b/docs/models/WalletAsset.md deleted file mode 100644 index bf6ba0eb..00000000 --- a/docs/models/WalletAsset.md +++ /dev/null @@ -1,21 +0,0 @@ -# fireblocks_client.model.wallet_asset.WalletAsset - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**id** | str, | str, | | [optional] -**balance** | str, | str, | | [optional] -**lockedAmount** | str, | str, | | [optional] -**status** | [**ConfigChangeRequestStatus**](ConfigChangeRequestStatus.md) | [**ConfigChangeRequestStatus**](ConfigChangeRequestStatus.md) | | [optional] -**address** | str, | str, | | [optional] -**tag** | str, | str, | | [optional] -**activationTime** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/WalletAssetAdditionalInfo.md b/docs/models/WalletAssetAdditionalInfo.md deleted file mode 100644 index 19ca12dc..00000000 --- a/docs/models/WalletAssetAdditionalInfo.md +++ /dev/null @@ -1,30 +0,0 @@ -# fireblocks_client.model.wallet_asset_additional_info.WalletAssetAdditionalInfo - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**accountHolderGivenName** | str, | str, | | [optional] -**accountHolderSurname** | str, | str, | | [optional] -**accountHolderCity** | str, | str, | | [optional] -**accountHolderCountry** | str, | str, | | [optional] -**accountHolderAddress1** | str, | str, | | [optional] -**accountHolderAddress2** | str, | str, | | [optional] -**accountHolderDistrict** | str, | str, | | [optional] -**accountHolderPostalCode** | str, | str, | | [optional] -**abaRoutingNumber** | str, | str, | | [optional] -**abaAccountNumber** | str, | str, | | [optional] -**abaCountry** | str, | str, | | [optional] -**iban** | str, | str, | | [optional] -**ibanCity** | str, | str, | | [optional] -**ibanCountry** | str, | str, | | [optional] -**speiClabe** | str, | str, | | [optional] -**speiName** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/XBSettlementAsset.md b/docs/models/XBSettlementAsset.md deleted file mode 100644 index ec0067cf..00000000 --- a/docs/models/XBSettlementAsset.md +++ /dev/null @@ -1,16 +0,0 @@ -# fireblocks_client.model.xb_settlement_asset.XBSettlementAsset - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**amount** | str, | str, | | -**assetId** | [**XBSettlementAssetID**](XBSettlementAssetID.md) | [**XBSettlementAssetID**](XBSettlementAssetID.md) | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/XBSettlementAssetID.md b/docs/models/XBSettlementAssetID.md deleted file mode 100644 index 0373b942..00000000 --- a/docs/models/XBSettlementAssetID.md +++ /dev/null @@ -1,16 +0,0 @@ -# fireblocks_client.model.xb_settlement_asset_id.XBSettlementAssetID - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | - -### Composed Schemas (allOf/anyOf/oneOf/not) -#### oneOf -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[XBSettlementFiatAsset](XBSettlementFiatAsset.md) | [**XBSettlementFiatAsset**](XBSettlementFiatAsset.md) | [**XBSettlementFiatAsset**](XBSettlementFiatAsset.md) | | -[XBSettlementCryptoAsset](XBSettlementCryptoAsset.md) | [**XBSettlementCryptoAsset**](XBSettlementCryptoAsset.md) | [**XBSettlementCryptoAsset**](XBSettlementCryptoAsset.md) | | - -[[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/models/XBSettlementConfigCreationRequestBody.md b/docs/models/XBSettlementConfigCreationRequestBody.md deleted file mode 100644 index 6cec909a..00000000 --- a/docs/models/XBSettlementConfigCreationRequestBody.md +++ /dev/null @@ -1,18 +0,0 @@ -# fireblocks_client.model.xb_settlement_config_creation_request_body.XBSettlementConfigCreationRequestBody - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**corridorId** | [**XBSettlementCorridorId**](XBSettlementCorridorId.md) | [**XBSettlementCorridorId**](XBSettlementCorridorId.md) | | -**name** | str, | str, | The name for the cross-border settlement configuration | -**steps** | [**XBSettlementConfigStepsRecord**](XBSettlementConfigStepsRecord.md) | [**XBSettlementConfigStepsRecord**](XBSettlementConfigStepsRecord.md) | | -**conversionSlippageBasisPoints** | [**XBSettlementConversionSlippageBasisPoints**](XBSettlementConversionSlippageBasisPoints.md) | [**XBSettlementConversionSlippageBasisPoints**](XBSettlementConversionSlippageBasisPoints.md) | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/XBSettlementConfigCreationResponse.md b/docs/models/XBSettlementConfigCreationResponse.md deleted file mode 100644 index d7d4549e..00000000 --- a/docs/models/XBSettlementConfigCreationResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# fireblocks_client.model.xb_settlement_config_creation_response.XBSettlementConfigCreationResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- - | | | - -[[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/models/XBSettlementConfigDeletionResponse.md b/docs/models/XBSettlementConfigDeletionResponse.md deleted file mode 100644 index 9cc47358..00000000 --- a/docs/models/XBSettlementConfigDeletionResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# fireblocks_client.model.xb_settlement_config_deletion_response.XBSettlementConfigDeletionResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- - | | | - -[[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/models/XBSettlementConfigEditRequestBody.md b/docs/models/XBSettlementConfigEditRequestBody.md deleted file mode 100644 index 749a35ac..00000000 --- a/docs/models/XBSettlementConfigEditRequestBody.md +++ /dev/null @@ -1,17 +0,0 @@ -# fireblocks_client.model.xb_settlement_config_edit_request_body.XBSettlementConfigEditRequestBody - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**name** | str, | str, | The name for the cross-border settlement configuration | -**steps** | [**XBSettlementConfigStepsRecord**](XBSettlementConfigStepsRecord.md) | [**XBSettlementConfigStepsRecord**](XBSettlementConfigStepsRecord.md) | | -**conversionSlippageBasisPoints** | [**XBSettlementConversionSlippageBasisPoints**](XBSettlementConversionSlippageBasisPoints.md) | [**XBSettlementConversionSlippageBasisPoints**](XBSettlementConversionSlippageBasisPoints.md) | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/XBSettlementConfigEditResponse.md b/docs/models/XBSettlementConfigEditResponse.md deleted file mode 100644 index cf709a87..00000000 --- a/docs/models/XBSettlementConfigEditResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# fireblocks_client.model.xb_settlement_config_edit_response.XBSettlementConfigEditResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- - | | | - -[[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/models/XBSettlementConfigId.md b/docs/models/XBSettlementConfigId.md deleted file mode 100644 index e94ae41c..00000000 --- a/docs/models/XBSettlementConfigId.md +++ /dev/null @@ -1,11 +0,0 @@ -# fireblocks_client.model.xb_settlement_config_id.XBSettlementConfigId - -Cross Bodrder configuraion unique id - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, uuid.UUID, | str, | Cross Bodrder configuraion unique id | value must be a uuid - -[[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/models/XBSettlementConfigModel.md b/docs/models/XBSettlementConfigModel.md deleted file mode 100644 index 4077dd09..00000000 --- a/docs/models/XBSettlementConfigModel.md +++ /dev/null @@ -1,20 +0,0 @@ -# fireblocks_client.model.xb_settlement_config_model.XBSettlementConfigModel - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**createdAt** | decimal.Decimal, int, float, | decimal.Decimal, | The creation time in epoch format. | -**corridorId** | [**XBSettlementCorridorId**](XBSettlementCorridorId.md) | [**XBSettlementCorridorId**](XBSettlementCorridorId.md) | | -**configId** | str, uuid.UUID, | str, | Cross Bodrder configuraion unique id | value must be a uuid -**conversionSlippageBasisPoints** | [**XBSettlementConversionSlippageBasisPoints**](XBSettlementConversionSlippageBasisPoints.md) | [**XBSettlementConversionSlippageBasisPoints**](XBSettlementConversionSlippageBasisPoints.md) | | -**name** | str, | str, | The name for the cross-border ettlement configuration | -**steps** | [**XBSettlementConfigStepsRecord**](XBSettlementConfigStepsRecord.md) | [**XBSettlementConfigStepsRecord**](XBSettlementConfigStepsRecord.md) | | -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/XBSettlementConfigStep.md b/docs/models/XBSettlementConfigStep.md deleted file mode 100644 index a96e4cc0..00000000 --- a/docs/models/XBSettlementConfigStep.md +++ /dev/null @@ -1,16 +0,0 @@ -# fireblocks_client.model.xb_settlement_config_step.XBSettlementConfigStep - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**accountId** | str, | str, | | -**stepType** | [**XBSettlementStepType**](XBSettlementStepType.md) | [**XBSettlementStepType**](XBSettlementStepType.md) | | -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/XBSettlementConfigStepsRecord.md b/docs/models/XBSettlementConfigStepsRecord.md deleted file mode 100644 index 06d9347a..00000000 --- a/docs/models/XBSettlementConfigStepsRecord.md +++ /dev/null @@ -1,30 +0,0 @@ -# fireblocks_client.model.xb_settlement_config_steps_record.XBSettlementConfigStepsRecord - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**stepType** | [**XBSettlementStepType**](XBSettlementStepType.md) | [**XBSettlementStepType**](XBSettlementStepType.md) | | [optional] -**[any_string_name](#any_string_name)** | dict, frozendict.frozendict, | frozendict.frozendict, | any string name can be used but the value must be the correct type | [optional] - -# any_string_name - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**accountId** | str, | str, | | -**inputAssetId** | [**XBSettlementAssetID**](XBSettlementAssetID.md) | [**XBSettlementAssetID**](XBSettlementAssetID.md) | | [optional] -**outputAssetId** | [**XBSettlementAssetID**](XBSettlementAssetID.md) | [**XBSettlementAssetID**](XBSettlementAssetID.md) | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/XBSettlementConversionSlippageBasisPoints.md b/docs/models/XBSettlementConversionSlippageBasisPoints.md deleted file mode 100644 index 2328a897..00000000 --- a/docs/models/XBSettlementConversionSlippageBasisPoints.md +++ /dev/null @@ -1,11 +0,0 @@ -# fireblocks_client.model.xb_settlement_conversion_slippage_basis_points.XBSettlementConversionSlippageBasisPoints - -Slippage configuarion in basis points, the default value is 10% - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -decimal.Decimal, int, | decimal.Decimal, | Slippage configuarion in basis points, the default value is 10% | if omitted the server will use the default value of 10000 - -[[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/models/XBSettlementCorridorId.md b/docs/models/XBSettlementCorridorId.md deleted file mode 100644 index 7fecf0d3..00000000 --- a/docs/models/XBSettlementCorridorId.md +++ /dev/null @@ -1,11 +0,0 @@ -# fireblocks_client.model.xb_settlement_corridor_id.XBSettlementCorridorId - -- MX_US : Mexico (MXN) to USA (USD) - CO_US : Colombia (COP) to USA (USD) - US_MX : USA (USD) to Mexico (MXN) - US_EU : USA (USD) to Europe Union (EUR) - US_UK : USA (USD) to United Kingdon (GBP) - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | - MX_US : Mexico (MXN) to USA (USD) - CO_US : Colombia (COP) to USA (USD) - US_MX : USA (USD) to Mexico (MXN) - US_EU : USA (USD) to Europe Union (EUR) - US_UK : USA (USD) to United Kingdon (GBP) | must be one of ["MX_US", "CO_US", "US_MX", "US_EU", "US_UK", ] - -[[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/models/XBSettlementCreateFlowRequestBody.md b/docs/models/XBSettlementCreateFlowRequestBody.md deleted file mode 100644 index 0159187c..00000000 --- a/docs/models/XBSettlementCreateFlowRequestBody.md +++ /dev/null @@ -1,16 +0,0 @@ -# fireblocks_client.model.xb_settlement_create_flow_request_body.XBSettlementCreateFlowRequestBody - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**amount** | str, | str, | The amount to transfer in this cross-border flow. The type of asset is defined by the cross-border settlement configuration. | -**configId** | str, uuid.UUID, | str, | Cross Bodrder configuraion unique id | value must be a uuid -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/XBSettlementCreateFlowResponse.md b/docs/models/XBSettlementCreateFlowResponse.md deleted file mode 100644 index 9630d5bb..00000000 --- a/docs/models/XBSettlementCreateFlowResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# fireblocks_client.model.xb_settlement_create_flow_response.XBSettlementCreateFlowResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- - | | | - -[[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/models/XBSettlementCryptoAsset.md b/docs/models/XBSettlementCryptoAsset.md deleted file mode 100644 index 40f576ea..00000000 --- a/docs/models/XBSettlementCryptoAsset.md +++ /dev/null @@ -1,11 +0,0 @@ -# fireblocks_client.model.xb_settlement_crypto_asset.XBSettlementCryptoAsset - -- XLM_USDC_5F3T : USDC over Stellar network - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | - XLM_USDC_5F3T : USDC over Stellar network | must be one of ["XLM_USDC_5F3T", "XLM", ] - -[[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/models/XBSettlementFiatAsset.md b/docs/models/XBSettlementFiatAsset.md deleted file mode 100644 index cf4cd77c..00000000 --- a/docs/models/XBSettlementFiatAsset.md +++ /dev/null @@ -1,9 +0,0 @@ -# fireblocks_client.model.xb_settlement_fiat_asset.XBSettlementFiatAsset - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | must be one of ["USD", "MXN", "COP", "EUR", "GBP", ] - -[[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/models/XBSettlementFlowExecutionModel.md b/docs/models/XBSettlementFlowExecutionModel.md deleted file mode 100644 index 85843be2..00000000 --- a/docs/models/XBSettlementFlowExecutionModel.md +++ /dev/null @@ -1,40 +0,0 @@ -# fireblocks_client.model.xb_settlement_flow_execution_model.XBSettlementFlowExecutionModel - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**initiatedAt** | decimal.Decimal, int, float, | decimal.Decimal, | The time the cross-border flow executed in epoch format. | -**totalFee** | [**XBSettlementAsset**](XBSettlementAsset.md) | [**XBSettlementAsset**](XBSettlementAsset.md) | | -**configId** | str, uuid.UUID, | str, | Cross Bodrder configuraion unique id | value must be a uuid -**outputAmount** | [**XBSettlementAsset**](XBSettlementAsset.md) | [**XBSettlementAsset**](XBSettlementAsset.md) | | -**inputAmount** | [**XBSettlementAsset**](XBSettlementAsset.md) | [**XBSettlementAsset**](XBSettlementAsset.md) | | -**state** | [**XBSettlementFlowExecutionStatus**](XBSettlementFlowExecutionStatus.md) | [**XBSettlementFlowExecutionStatus**](XBSettlementFlowExecutionStatus.md) | | -**flowId** | str, | str, | The unique id for the cross-border flow. | -**steps** | [**XBSettlementFlowStepsExecutionRecord**](XBSettlementFlowStepsExecutionRecord.md) | [**XBSettlementFlowStepsExecutionRecord**](XBSettlementFlowStepsExecutionRecord.md) | | -**initiatedBy** | str, | str, | The id of the user which launched the flow | -**[selectedConversionSlippage](#selectedConversionSlippage)** | dict, frozendict.frozendict, | frozendict.frozendict, | Indicates the selected slippage used during the flow since override logic may have taken place. | -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# selectedConversionSlippage - -Indicates the selected slippage used during the flow since override logic may have taken place. - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | Indicates the selected slippage used during the flow since override logic may have taken place. | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**reason** | [**XBSettlementFlowSelectedConversionSlippageReason**](XBSettlementFlowSelectedConversionSlippageReason.md) | [**XBSettlementFlowSelectedConversionSlippageReason**](XBSettlementFlowSelectedConversionSlippageReason.md) | | -**basisPoints** | decimal.Decimal, int, float, | decimal.Decimal, | | -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/XBSettlementFlowExecutionRequestBody.md b/docs/models/XBSettlementFlowExecutionRequestBody.md deleted file mode 100644 index 2a1f76f6..00000000 --- a/docs/models/XBSettlementFlowExecutionRequestBody.md +++ /dev/null @@ -1,15 +0,0 @@ -# fireblocks_client.model.xb_settlement_flow_execution_request_body.XBSettlementFlowExecutionRequestBody - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**conversionSlippageBasisPoints** | [**XBSettlementConversionSlippageBasisPoints**](XBSettlementConversionSlippageBasisPoints.md) | [**XBSettlementConversionSlippageBasisPoints**](XBSettlementConversionSlippageBasisPoints.md) | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/XBSettlementFlowExecutionResponse.md b/docs/models/XBSettlementFlowExecutionResponse.md deleted file mode 100644 index 5d55c273..00000000 --- a/docs/models/XBSettlementFlowExecutionResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# fireblocks_client.model.xb_settlement_flow_execution_response.XBSettlementFlowExecutionResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- - | | | - -[[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/models/XBSettlementFlowExecutionStatus.md b/docs/models/XBSettlementFlowExecutionStatus.md deleted file mode 100644 index 3b9b5808..00000000 --- a/docs/models/XBSettlementFlowExecutionStatus.md +++ /dev/null @@ -1,9 +0,0 @@ -# fireblocks_client.model.xb_settlement_flow_execution_status.XBSettlementFlowExecutionStatus - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | must be one of ["NOT_LAUNCHED", "PROCESSING", "COMPLETED", "FAILED", ] - -[[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/models/XBSettlementFlowExecutionStep.md b/docs/models/XBSettlementFlowExecutionStep.md deleted file mode 100644 index af720302..00000000 --- a/docs/models/XBSettlementFlowExecutionStep.md +++ /dev/null @@ -1,23 +0,0 @@ -# fireblocks_client.model.xb_settlement_flow_execution_step.XBSettlementFlowExecutionStep - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**accountId** | str, | str, | | -**inputAmount** | [**XBSettlementAsset**](XBSettlementAsset.md) | [**XBSettlementAsset**](XBSettlementAsset.md) | | -**id** | str, | str, | A unique id for the step execution | -**isSignRequired** | bool, | BoolClass, | Whether or not signing is required for executing the step. | -**status** | [**XBSettlementFlowExecutionStepStatus**](XBSettlementFlowExecutionStepStatus.md) | [**XBSettlementFlowExecutionStepStatus**](XBSettlementFlowExecutionStepStatus.md) | | -**outputAmount** | [**XBSettlementAsset**](XBSettlementAsset.md) | [**XBSettlementAsset**](XBSettlementAsset.md) | | [optional] -**fee** | [**XBSettlementAsset**](XBSettlementAsset.md) | [**XBSettlementAsset**](XBSettlementAsset.md) | | [optional] -**startedAt** | decimal.Decimal, int, float, | decimal.Decimal, | The step execution start time in epoch format. | [optional] -**completedAt** | decimal.Decimal, int, float, | decimal.Decimal, | The step execution end time in epoch format. | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/XBSettlementFlowExecutionStepStatus.md b/docs/models/XBSettlementFlowExecutionStepStatus.md deleted file mode 100644 index 659916d5..00000000 --- a/docs/models/XBSettlementFlowExecutionStepStatus.md +++ /dev/null @@ -1,9 +0,0 @@ -# fireblocks_client.model.xb_settlement_flow_execution_step_status.XBSettlementFlowExecutionStepStatus - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | must be one of ["NOT_STARTED", "PROCESSING", "COMPLETED", "FAILED", ] - -[[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/models/XBSettlementFlowPreviewModel.md b/docs/models/XBSettlementFlowPreviewModel.md deleted file mode 100644 index 44098e39..00000000 --- a/docs/models/XBSettlementFlowPreviewModel.md +++ /dev/null @@ -1,22 +0,0 @@ -# fireblocks_client.model.xb_settlement_flow_preview_model.XBSettlementFlowPreviewModel - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**estimatedOutputAmount** | [**XBSettlementAsset**](XBSettlementAsset.md) | [**XBSettlementAsset**](XBSettlementAsset.md) | | -**totalEstimatedTime** | decimal.Decimal, int, float, | decimal.Decimal, | The total *estimated* time for executing the cross-border flow. | -**configId** | str, uuid.UUID, | str, | Cross Bodrder configuraion unique id | value must be a uuid -**totalEstimatedFee** | [**XBSettlementAsset**](XBSettlementAsset.md) | [**XBSettlementAsset**](XBSettlementAsset.md) | | -**inputAmount** | [**XBSettlementAsset**](XBSettlementAsset.md) | [**XBSettlementAsset**](XBSettlementAsset.md) | | -**conversionRate** | str, | str, | The conversion rate received from the on-ramp or off-ramp. | -**flowId** | str, | str, | The unique id for the cross-border flow. | -**steps** | [**XBSettlementFlowStepsRecord**](XBSettlementFlowStepsRecord.md) | [**XBSettlementFlowStepsRecord**](XBSettlementFlowStepsRecord.md) | | -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/XBSettlementFlowSelectedConversionSlippageReason.md b/docs/models/XBSettlementFlowSelectedConversionSlippageReason.md deleted file mode 100644 index 067fbff8..00000000 --- a/docs/models/XBSettlementFlowSelectedConversionSlippageReason.md +++ /dev/null @@ -1,9 +0,0 @@ -# fireblocks_client.model.xb_settlement_flow_selected_conversion_slippage_reason.XBSettlementFlowSelectedConversionSlippageReason - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | must be one of ["DEFAULT", "CONFIG", "FLOW", ] - -[[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/models/XBSettlementFlowSetupStep.md b/docs/models/XBSettlementFlowSetupStep.md deleted file mode 100644 index 9e6c4cd3..00000000 --- a/docs/models/XBSettlementFlowSetupStep.md +++ /dev/null @@ -1,20 +0,0 @@ -# fireblocks_client.model.xb_settlement_flow_setup_step.XBSettlementFlowSetupStep - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**estimatedTime** | decimal.Decimal, int, float, | decimal.Decimal, | The estimated time for executing the step. | -**accountId** | str, | str, | | -**estimatedFeeAmount** | [**XBSettlementAsset**](XBSettlementAsset.md) | [**XBSettlementAsset**](XBSettlementAsset.md) | | -**outputAmount** | [**XBSettlementAsset**](XBSettlementAsset.md) | [**XBSettlementAsset**](XBSettlementAsset.md) | | -**inputAmount** | [**XBSettlementAsset**](XBSettlementAsset.md) | [**XBSettlementAsset**](XBSettlementAsset.md) | | -**isSignRequired** | bool, | BoolClass, | Whether or not signing is required for executing the step. | -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/XBSettlementFlowStepsExecutionRecord.md b/docs/models/XBSettlementFlowStepsExecutionRecord.md deleted file mode 100644 index 033d65b4..00000000 --- a/docs/models/XBSettlementFlowStepsExecutionRecord.md +++ /dev/null @@ -1,15 +0,0 @@ -# fireblocks_client.model.xb_settlement_flow_steps_execution_record.XBSettlementFlowStepsExecutionRecord - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**stepType** | [**XBSettlementStepType**](XBSettlementStepType.md) | [**XBSettlementStepType**](XBSettlementStepType.md) | | [optional] -**any_string_name** | [**XBSettlementFlowExecutionStep**](XBSettlementFlowExecutionStep.md) | [**XBSettlementFlowExecutionStep**](XBSettlementFlowExecutionStep.md) | any string name can be used but the value must be the correct type | [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/docs/models/XBSettlementFlowStepsRecord.md b/docs/models/XBSettlementFlowStepsRecord.md deleted file mode 100644 index 229ec960..00000000 --- a/docs/models/XBSettlementFlowStepsRecord.md +++ /dev/null @@ -1,15 +0,0 @@ -# fireblocks_client.model.xb_settlement_flow_steps_record.XBSettlementFlowStepsRecord - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**stepType** | [**XBSettlementStepType**](XBSettlementStepType.md) | [**XBSettlementStepType**](XBSettlementStepType.md) | | [optional] -**any_string_name** | [**XBSettlementFlowSetupStep**](XBSettlementFlowSetupStep.md) | [**XBSettlementFlowSetupStep**](XBSettlementFlowSetupStep.md) | any string name can be used but the value must be the correct type | [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/docs/models/XBSettlementGetAllConfigsResponse.md b/docs/models/XBSettlementGetAllConfigsResponse.md deleted file mode 100644 index 61c781c5..00000000 --- a/docs/models/XBSettlementGetAllConfigsResponse.md +++ /dev/null @@ -1,27 +0,0 @@ -# fireblocks_client.model.xb_settlement_get_all_configs_response.XBSettlementGetAllConfigsResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[configurations](#configurations)** | list, tuple, | tuple, | | -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# configurations - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**XBSettlementConfigModel**](XBSettlementConfigModel.md) | [**XBSettlementConfigModel**](XBSettlementConfigModel.md) | [**XBSettlementConfigModel**](XBSettlementConfigModel.md) | | - -[[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/models/XBSettlementGetConfigResponse.md b/docs/models/XBSettlementGetConfigResponse.md deleted file mode 100644 index 9fb388c8..00000000 --- a/docs/models/XBSettlementGetConfigResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# fireblocks_client.model.xb_settlement_get_config_response.XBSettlementGetConfigResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- - | | | - -[[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/models/XBSettlementGetFlowResponse.md b/docs/models/XBSettlementGetFlowResponse.md deleted file mode 100644 index 234ab67c..00000000 --- a/docs/models/XBSettlementGetFlowResponse.md +++ /dev/null @@ -1,16 +0,0 @@ -# fireblocks_client.model.xb_settlement_get_flow_response.XBSettlementGetFlowResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**preview** | [**XBSettlementFlowPreviewModel**](XBSettlementFlowPreviewModel.md) | [**XBSettlementFlowPreviewModel**](XBSettlementFlowPreviewModel.md) | | [optional] -**execution** | [**XBSettlementFlowExecutionModel**](XBSettlementFlowExecutionModel.md) | [**XBSettlementFlowExecutionModel**](XBSettlementFlowExecutionModel.md) | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [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/docs/models/XBSettlementStepType.md b/docs/models/XBSettlementStepType.md deleted file mode 100644 index 6f053305..00000000 --- a/docs/models/XBSettlementStepType.md +++ /dev/null @@ -1,11 +0,0 @@ -# fireblocks_client.model.xb_settlement_step_type.XBSettlementStepType - -- ON_RAMP : A service that allows for the exchange of fiat currencies for cryptocurrencies. An OnRamp input value will always be fiat and output value crypto asset. - VAULT_ACCOUNT : Fireblocks Vault account - OFF_RAMP : A service that allows for the exchange of cryptocurrencies for fiat. An OffRamp input value will always be a crypto asset and output value be fiat. - FIAT_DESTINATION : Fiat account - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | - ON_RAMP : A service that allows for the exchange of fiat currencies for cryptocurrencies. An OnRamp input value will always be fiat and output value crypto asset. - VAULT_ACCOUNT : Fireblocks Vault account - OFF_RAMP : A service that allows for the exchange of cryptocurrencies for fiat. An OffRamp input value will always be a crypto asset and output value be fiat. - FIAT_DESTINATION : Fiat account | must be one of ["ON_RAMP", "VAULT_ACCOUNT", "OFF_RAMP", "FIAT_DESTINATION", ] - -[[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/fireblocks_client/__init__.py b/fireblocks_client/__init__.py index c0a4156d..3e4cf984 100644 --- a/fireblocks_client/__init__.py +++ b/fireblocks_client/__init__.py @@ -5,25 +5,867 @@ """ Fireblocks API - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) The version of the OpenAPI document: 1.6.2 Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + __version__ = "1.0.0" +# import apis into sdk package +from fireblocks_client.api.api_user_api import ApiUserApi +from fireblocks_client.api.assets_api import AssetsApi +from fireblocks_client.api.audit_logs_api import AuditLogsApi +from fireblocks_client.api.blockchains_assets_api import BlockchainsAssetsApi +from fireblocks_client.api.compliance_api import ComplianceApi +from fireblocks_client.api.compliance_screening_configuration_api import ( + ComplianceScreeningConfigurationApi, +) +from fireblocks_client.api.console_user_api import ConsoleUserApi +from fireblocks_client.api.contract_interactions_api import ContractInteractionsApi +from fireblocks_client.api.contract_templates_api import ContractTemplatesApi +from fireblocks_client.api.contracts_api import ContractsApi +from fireblocks_client.api.cosigners_beta_api import CosignersBetaApi +from fireblocks_client.api.deployed_contracts_api import DeployedContractsApi +from fireblocks_client.api.exchange_accounts_api import ExchangeAccountsApi +from fireblocks_client.api.external_wallets_api import ExternalWalletsApi +from fireblocks_client.api.fiat_accounts_api import FiatAccountsApi +from fireblocks_client.api.gas_stations_api import GasStationsApi +from fireblocks_client.api.internal_wallets_api import InternalWalletsApi +from fireblocks_client.api.job_management_api import JobManagementApi +from fireblocks_client.api.nfts_api import NFTsApi +from fireblocks_client.api.network_connections_api import NetworkConnectionsApi +from fireblocks_client.api.ota_beta_api import OTABetaApi +from fireblocks_client.api.off_exchanges_api import OffExchangesApi +from fireblocks_client.api.payments_payout_api import PaymentsPayoutApi +from fireblocks_client.api.policy_editor_beta_api import PolicyEditorBetaApi +from fireblocks_client.api.reset_device_api import ResetDeviceApi +from fireblocks_client.api.smart_transfer_api import SmartTransferApi +from fireblocks_client.api.staking_beta_api import StakingBetaApi +from fireblocks_client.api.tokenization_api import TokenizationApi +from fireblocks_client.api.transactions_api import TransactionsApi +from fireblocks_client.api.travel_rule_beta_api import TravelRuleBetaApi +from fireblocks_client.api.user_groups_beta_api import UserGroupsBetaApi +from fireblocks_client.api.users_api import UsersApi +from fireblocks_client.api.vaults_api import VaultsApi +from fireblocks_client.api.web3_connections_api import Web3ConnectionsApi +from fireblocks_client.api.webhooks_api import WebhooksApi +from fireblocks_client.api.workspace_status_beta_api import WorkspaceStatusBetaApi +from fireblocks_client.api.whitelist_ip_addresses_api import WhitelistIpAddressesApi + # import ApiClient +from fireblocks_client.api_response import ApiResponse from fireblocks_client.api_client import ApiClient - -# import Configuration from fireblocks_client.configuration import Configuration - -# import exceptions from fireblocks_client.exceptions import OpenApiException -from fireblocks_client.exceptions import ApiAttributeError from fireblocks_client.exceptions import ApiTypeError from fireblocks_client.exceptions import ApiValueError from fireblocks_client.exceptions import ApiKeyError +from fireblocks_client.exceptions import ApiAttributeError from fireblocks_client.exceptions import ApiException + +# import models into sdk package +from fireblocks_client.models.api_user import APIUser +from fireblocks_client.models.abi_function import AbiFunction +from fireblocks_client.models.account import Account +from fireblocks_client.models.account_type import AccountType +from fireblocks_client.models.add_asset_to_external_wallet_request import ( + AddAssetToExternalWalletRequest, +) +from fireblocks_client.models.add_asset_to_external_wallet_request_one_of import ( + AddAssetToExternalWalletRequestOneOf, +) +from fireblocks_client.models.add_asset_to_external_wallet_request_one_of1 import ( + AddAssetToExternalWalletRequestOneOf1, +) +from fireblocks_client.models.add_asset_to_external_wallet_request_one_of1_additional_info import ( + AddAssetToExternalWalletRequestOneOf1AdditionalInfo, +) +from fireblocks_client.models.add_asset_to_external_wallet_request_one_of1_additional_info_one_of import ( + AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf, +) +from fireblocks_client.models.add_asset_to_external_wallet_request_one_of1_additional_info_one_of1 import ( + AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1, +) +from fireblocks_client.models.add_asset_to_external_wallet_request_one_of1_additional_info_one_of2 import ( + AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2, +) +from fireblocks_client.models.add_collateral_request_body import ( + AddCollateralRequestBody, +) +from fireblocks_client.models.add_contract_asset_request import AddContractAssetRequest +from fireblocks_client.models.additional_info_dto import AdditionalInfoDto +from fireblocks_client.models.aml_registration_result import AmlRegistrationResult +from fireblocks_client.models.aml_screening_result import AmlScreeningResult +from fireblocks_client.models.amount_aggregation_time_period_method import ( + AmountAggregationTimePeriodMethod, +) +from fireblocks_client.models.amount_and_chain_descriptor import ( + AmountAndChainDescriptor, +) +from fireblocks_client.models.amount_info import AmountInfo +from fireblocks_client.models.api_key import ApiKey +from fireblocks_client.models.api_keys_paginated_response import ( + ApiKeysPaginatedResponse, +) +from fireblocks_client.models.asset_already_exist_http_error import ( + AssetAlreadyExistHttpError, +) +from fireblocks_client.models.asset_amount import AssetAmount +from fireblocks_client.models.asset_bad_request_error_response import ( + AssetBadRequestErrorResponse, +) +from fireblocks_client.models.asset_conflict_error_response import ( + AssetConflictErrorResponse, +) +from fireblocks_client.models.asset_does_not_exist_http_error import ( + AssetDoesNotExistHttpError, +) +from fireblocks_client.models.asset_forbidden_error_response import ( + AssetForbiddenErrorResponse, +) +from fireblocks_client.models.asset_internal_server_error_response import ( + AssetInternalServerErrorResponse, +) +from fireblocks_client.models.asset_metadata_dto import AssetMetadataDto +from fireblocks_client.models.asset_not_found_error_response import ( + AssetNotFoundErrorResponse, +) +from fireblocks_client.models.asset_response import AssetResponse +from fireblocks_client.models.asset_response_metadata import AssetResponseMetadata +from fireblocks_client.models.asset_response_onchain import AssetResponseOnchain +from fireblocks_client.models.asset_type_response import AssetTypeResponse +from fireblocks_client.models.asset_wallet import AssetWallet +from fireblocks_client.models.audit_log_data import AuditLogData +from fireblocks_client.models.auditor_data import AuditorData +from fireblocks_client.models.authorization_groups import AuthorizationGroups +from fireblocks_client.models.authorization_info import AuthorizationInfo +from fireblocks_client.models.block_info import BlockInfo +from fireblocks_client.models.cancel_transaction_response import ( + CancelTransactionResponse, +) +from fireblocks_client.models.chain_info_response_dto import ChainInfoResponseDto +from fireblocks_client.models.collection_metadata_dto import CollectionMetadataDto +from fireblocks_client.models.collection_ownership_response import ( + CollectionOwnershipResponse, +) +from fireblocks_client.models.compliance_result import ComplianceResult +from fireblocks_client.models.compliance_screening_result import ( + ComplianceScreeningResult, +) +from fireblocks_client.models.config_change_request_status import ( + ConfigChangeRequestStatus, +) +from fireblocks_client.models.config_conversion_operation_snapshot import ( + ConfigConversionOperationSnapshot, +) +from fireblocks_client.models.config_disbursement_operation_snapshot import ( + ConfigDisbursementOperationSnapshot, +) +from fireblocks_client.models.config_operation import ConfigOperation +from fireblocks_client.models.config_operation_snapshot import ConfigOperationSnapshot +from fireblocks_client.models.config_operation_status import ConfigOperationStatus +from fireblocks_client.models.config_transfer_operation_snapshot import ( + ConfigTransferOperationSnapshot, +) +from fireblocks_client.models.console_user import ConsoleUser +from fireblocks_client.models.contract_abi_response_dto import ContractAbiResponseDto +from fireblocks_client.models.contract_attributes import ContractAttributes +from fireblocks_client.models.contract_deploy_request import ContractDeployRequest +from fireblocks_client.models.contract_deploy_response import ContractDeployResponse +from fireblocks_client.models.contract_doc import ContractDoc +from fireblocks_client.models.contract_metadata_dto import ContractMetadataDto +from fireblocks_client.models.contract_template_dto import ContractTemplateDto +from fireblocks_client.models.contract_upload_request import ContractUploadRequest +from fireblocks_client.models.conversion_config_operation import ( + ConversionConfigOperation, +) +from fireblocks_client.models.conversion_operation_config_params import ( + ConversionOperationConfigParams, +) +from fireblocks_client.models.conversion_operation_execution import ( + ConversionOperationExecution, +) +from fireblocks_client.models.conversion_operation_execution_output import ( + ConversionOperationExecutionOutput, +) +from fireblocks_client.models.conversion_operation_execution_params import ( + ConversionOperationExecutionParams, +) +from fireblocks_client.models.conversion_operation_execution_params_execution_params import ( + ConversionOperationExecutionParamsExecutionParams, +) +from fireblocks_client.models.conversion_operation_failure import ( + ConversionOperationFailure, +) +from fireblocks_client.models.conversion_operation_preview import ( + ConversionOperationPreview, +) +from fireblocks_client.models.conversion_operation_preview_output import ( + ConversionOperationPreviewOutput, +) +from fireblocks_client.models.conversion_operation_type import ConversionOperationType +from fireblocks_client.models.conversion_validation_failure import ( + ConversionValidationFailure, +) +from fireblocks_client.models.convert_assets_request import ConvertAssetsRequest +from fireblocks_client.models.convert_assets_response import ConvertAssetsResponse +from fireblocks_client.models.cosigner import Cosigner +from fireblocks_client.models.cosigners_paginated_response import ( + CosignersPaginatedResponse, +) +from fireblocks_client.models.create_api_user import CreateAPIUser +from fireblocks_client.models.create_address_request import CreateAddressRequest +from fireblocks_client.models.create_address_response import CreateAddressResponse +from fireblocks_client.models.create_assets_bulk_request import CreateAssetsBulkRequest +from fireblocks_client.models.create_assets_request import CreateAssetsRequest +from fireblocks_client.models.create_config_operation_request import ( + CreateConfigOperationRequest, +) +from fireblocks_client.models.create_connection_request import CreateConnectionRequest +from fireblocks_client.models.create_connection_response import CreateConnectionResponse +from fireblocks_client.models.create_console_user import CreateConsoleUser +from fireblocks_client.models.create_contract_request import CreateContractRequest +from fireblocks_client.models.create_conversion_config_operation_request import ( + CreateConversionConfigOperationRequest, +) +from fireblocks_client.models.create_disbursement_config_operation_request import ( + CreateDisbursementConfigOperationRequest, +) +from fireblocks_client.models.create_internal_transfer_request import ( + CreateInternalTransferRequest, +) +from fireblocks_client.models.create_internal_wallet_asset_request import ( + CreateInternalWalletAssetRequest, +) +from fireblocks_client.models.create_multiple_accounts_request import ( + CreateMultipleAccountsRequest, +) +from fireblocks_client.models.create_ncw_connection_request import ( + CreateNcwConnectionRequest, +) +from fireblocks_client.models.create_network_id_request import CreateNetworkIdRequest +from fireblocks_client.models.create_payout_request import CreatePayoutRequest +from fireblocks_client.models.create_token_request_dto import CreateTokenRequestDto +from fireblocks_client.models.create_token_request_dto_create_params import ( + CreateTokenRequestDtoCreateParams, +) +from fireblocks_client.models.create_transaction_response import ( + CreateTransactionResponse, +) +from fireblocks_client.models.create_transfer_config_operation_request import ( + CreateTransferConfigOperationRequest, +) +from fireblocks_client.models.create_user_group_response import CreateUserGroupResponse +from fireblocks_client.models.create_vault_account_connection_request import ( + CreateVaultAccountConnectionRequest, +) +from fireblocks_client.models.create_vault_account_request import ( + CreateVaultAccountRequest, +) +from fireblocks_client.models.create_vault_asset_response import ( + CreateVaultAssetResponse, +) +from fireblocks_client.models.create_wallet_request import CreateWalletRequest +from fireblocks_client.models.create_workflow_execution_request_params_inner import ( + CreateWorkflowExecutionRequestParamsInner, +) +from fireblocks_client.models.custom_routing_dest import CustomRoutingDest +from fireblocks_client.models.default_network_routing_dest import ( + DefaultNetworkRoutingDest, +) +from fireblocks_client.models.delegation_dto import DelegationDto +from fireblocks_client.models.delegation_summary_dto import DelegationSummaryDto +from fireblocks_client.models.delete_network_connection_response import ( + DeleteNetworkConnectionResponse, +) +from fireblocks_client.models.delete_network_id_response import DeleteNetworkIdResponse +from fireblocks_client.models.deployed_contract_response_dto import ( + DeployedContractResponseDto, +) +from fireblocks_client.models.deployed_contracts_paginated_response import ( + DeployedContractsPaginatedResponse, +) +from fireblocks_client.models.deposit_funds_from_linked_dda_response import ( + DepositFundsFromLinkedDDAResponse, +) +from fireblocks_client.models.destination import Destination +from fireblocks_client.models.destination_transfer_peer_path import ( + DestinationTransferPeerPath, +) +from fireblocks_client.models.destination_transfer_peer_path_response import ( + DestinationTransferPeerPathResponse, +) +from fireblocks_client.models.disbursement_amount_instruction import ( + DisbursementAmountInstruction, +) +from fireblocks_client.models.disbursement_config_operation import ( + DisbursementConfigOperation, +) +from fireblocks_client.models.disbursement_instruction import DisbursementInstruction +from fireblocks_client.models.disbursement_instruction_output import ( + DisbursementInstructionOutput, +) +from fireblocks_client.models.disbursement_operation_config_params import ( + DisbursementOperationConfigParams, +) +from fireblocks_client.models.disbursement_operation_execution import ( + DisbursementOperationExecution, +) +from fireblocks_client.models.disbursement_operation_execution_output import ( + DisbursementOperationExecutionOutput, +) +from fireblocks_client.models.disbursement_operation_execution_params import ( + DisbursementOperationExecutionParams, +) +from fireblocks_client.models.disbursement_operation_execution_params_execution_params import ( + DisbursementOperationExecutionParamsExecutionParams, +) +from fireblocks_client.models.disbursement_operation_input import ( + DisbursementOperationInput, +) +from fireblocks_client.models.disbursement_operation_preview import ( + DisbursementOperationPreview, +) +from fireblocks_client.models.disbursement_operation_preview_output import ( + DisbursementOperationPreviewOutput, +) +from fireblocks_client.models.disbursement_operation_preview_output_instruction_set_inner import ( + DisbursementOperationPreviewOutputInstructionSetInner, +) +from fireblocks_client.models.disbursement_operation_type import ( + DisbursementOperationType, +) +from fireblocks_client.models.disbursement_percentage_instruction import ( + DisbursementPercentageInstruction, +) +from fireblocks_client.models.disbursement_validation_failure import ( + DisbursementValidationFailure, +) +from fireblocks_client.models.dispatch_payout_response import DispatchPayoutResponse +from fireblocks_client.models.draft_response import DraftResponse +from fireblocks_client.models.draft_review_and_validation_response import ( + DraftReviewAndValidationResponse, +) +from fireblocks_client.models.drop_transaction_request import DropTransactionRequest +from fireblocks_client.models.drop_transaction_response import DropTransactionResponse +from fireblocks_client.models.evm_token_create_params_dto import EVMTokenCreateParamsDto +from fireblocks_client.models.edit_gas_station_configuration_response import ( + EditGasStationConfigurationResponse, +) +from fireblocks_client.models.error_response import ErrorResponse +from fireblocks_client.models.error_response_error import ErrorResponseError +from fireblocks_client.models.error_schema import ErrorSchema +from fireblocks_client.models.estimated_network_fee_response import ( + EstimatedNetworkFeeResponse, +) +from fireblocks_client.models.estimated_transaction_fee_response import ( + EstimatedTransactionFeeResponse, +) +from fireblocks_client.models.exchange_account import ExchangeAccount +from fireblocks_client.models.exchange_accounts_paged import ExchangeAccountsPaged +from fireblocks_client.models.exchange_accounts_paged_paging import ( + ExchangeAccountsPagedPaging, +) +from fireblocks_client.models.exchange_asset import ExchangeAsset +from fireblocks_client.models.exchange_settlement_transactions_response import ( + ExchangeSettlementTransactionsResponse, +) +from fireblocks_client.models.exchange_trading_account import ExchangeTradingAccount +from fireblocks_client.models.exchange_type import ExchangeType +from fireblocks_client.models.execute_action_request import ExecuteActionRequest +from fireblocks_client.models.execute_action_response import ExecuteActionResponse +from fireblocks_client.models.execution_conversion_operation import ( + ExecutionConversionOperation, +) +from fireblocks_client.models.execution_disbursement_operation import ( + ExecutionDisbursementOperation, +) +from fireblocks_client.models.execution_operation_status import ExecutionOperationStatus +from fireblocks_client.models.execution_screening_operation import ( + ExecutionScreeningOperation, +) +from fireblocks_client.models.execution_transfer_operation import ( + ExecutionTransferOperation, +) +from fireblocks_client.models.external_wallet_asset import ExternalWalletAsset +from fireblocks_client.models.fee_info import FeeInfo +from fireblocks_client.models.fiat_account import FiatAccount +from fireblocks_client.models.fiat_account_type import FiatAccountType +from fireblocks_client.models.fiat_asset import FiatAsset +from fireblocks_client.models.freeze_transaction_response import ( + FreezeTransactionResponse, +) +from fireblocks_client.models.function_doc import FunctionDoc +from fireblocks_client.models.funds import Funds +from fireblocks_client.models.gas_station_configuration import GasStationConfiguration +from fireblocks_client.models.gas_station_configuration_response import ( + GasStationConfigurationResponse, +) +from fireblocks_client.models.gas_station_properties_response import ( + GasStationPropertiesResponse, +) +from fireblocks_client.models.get_api_users_response import GetAPIUsersResponse +from fireblocks_client.models.get_audit_logs_response import GetAuditLogsResponse +from fireblocks_client.models.get_audit_logs_response_dto import GetAuditLogsResponseDTO +from fireblocks_client.models.get_connections_response import GetConnectionsResponse +from fireblocks_client.models.get_console_users_response import GetConsoleUsersResponse +from fireblocks_client.models.get_filter_parameter import GetFilterParameter +from fireblocks_client.models.get_max_spendable_amount_response import ( + GetMaxSpendableAmountResponse, +) +from fireblocks_client.models.get_nfts_response import GetNFTsResponse +from fireblocks_client.models.get_ota_status_response import GetOtaStatusResponse +from fireblocks_client.models.get_ownership_tokens_response import ( + GetOwnershipTokensResponse, +) +from fireblocks_client.models.get_transaction_operation import GetTransactionOperation +from fireblocks_client.models.get_whitelist_ip_addresses_response import ( + GetWhitelistIpAddressesResponse, +) +from fireblocks_client.models.get_workspace_status_response import ( + GetWorkspaceStatusResponse, +) +from fireblocks_client.models.http_contract_does_not_exist_error import ( + HttpContractDoesNotExistError, +) +from fireblocks_client.models.instruction_amount import InstructionAmount +from fireblocks_client.models.internal_transfer_response import InternalTransferResponse +from fireblocks_client.models.job import Job +from fireblocks_client.models.job_created import JobCreated +from fireblocks_client.models.lean_abi_function import LeanAbiFunction +from fireblocks_client.models.lean_contract_dto import LeanContractDto +from fireblocks_client.models.lean_deployed_contract_response_dto import ( + LeanDeployedContractResponseDto, +) +from fireblocks_client.models.list_owned_collections_response import ( + ListOwnedCollectionsResponse, +) +from fireblocks_client.models.list_owned_tokens_response import ListOwnedTokensResponse +from fireblocks_client.models.media_entity_response import MediaEntityResponse +from fireblocks_client.models.network_channel import NetworkChannel +from fireblocks_client.models.network_connection import NetworkConnection +from fireblocks_client.models.network_connection_response import ( + NetworkConnectionResponse, +) +from fireblocks_client.models.network_connection_routing_policy_value import ( + NetworkConnectionRoutingPolicyValue, +) +from fireblocks_client.models.network_connection_status import NetworkConnectionStatus +from fireblocks_client.models.network_fee import NetworkFee +from fireblocks_client.models.network_id import NetworkId +from fireblocks_client.models.network_id_response import NetworkIdResponse +from fireblocks_client.models.network_id_routing_policy_value import ( + NetworkIdRoutingPolicyValue, +) +from fireblocks_client.models.network_record import NetworkRecord +from fireblocks_client.models.none_network_routing_dest import NoneNetworkRoutingDest +from fireblocks_client.models.not_found_exception import NotFoundException +from fireblocks_client.models.one_time_address import OneTimeAddress +from fireblocks_client.models.one_time_address_account import OneTimeAddressAccount +from fireblocks_client.models.operation_execution_failure import ( + OperationExecutionFailure, +) +from fireblocks_client.models.paginated_address_response import PaginatedAddressResponse +from fireblocks_client.models.paginated_address_response_paging import ( + PaginatedAddressResponsePaging, +) +from fireblocks_client.models.paginated_asset_wallet_response import ( + PaginatedAssetWalletResponse, +) +from fireblocks_client.models.paginated_asset_wallet_response_paging import ( + PaginatedAssetWalletResponsePaging, +) +from fireblocks_client.models.paging import Paging +from fireblocks_client.models.parameter import Parameter +from fireblocks_client.models.parameter_with_value import ParameterWithValue +from fireblocks_client.models.payee_account import PayeeAccount +from fireblocks_client.models.payee_account_response import PayeeAccountResponse +from fireblocks_client.models.payee_account_type import PayeeAccountType +from fireblocks_client.models.payment_account import PaymentAccount +from fireblocks_client.models.payment_account_response import PaymentAccountResponse +from fireblocks_client.models.payment_account_type import PaymentAccountType +from fireblocks_client.models.payout_init_method import PayoutInitMethod +from fireblocks_client.models.payout_instruction import PayoutInstruction +from fireblocks_client.models.payout_instruction_response import ( + PayoutInstructionResponse, +) +from fireblocks_client.models.payout_instruction_state import PayoutInstructionState +from fireblocks_client.models.payout_response import PayoutResponse +from fireblocks_client.models.payout_state import PayoutState +from fireblocks_client.models.payout_status import PayoutStatus +from fireblocks_client.models.policy_and_validation_response import ( + PolicyAndValidationResponse, +) +from fireblocks_client.models.policy_check_result import PolicyCheckResult +from fireblocks_client.models.policy_metadata import PolicyMetadata +from fireblocks_client.models.policy_response import PolicyResponse +from fireblocks_client.models.policy_rule import PolicyRule +from fireblocks_client.models.policy_rule_amount import PolicyRuleAmount +from fireblocks_client.models.policy_rule_amount_aggregation import ( + PolicyRuleAmountAggregation, +) +from fireblocks_client.models.policy_rule_authorization_groups import ( + PolicyRuleAuthorizationGroups, +) +from fireblocks_client.models.policy_rule_authorization_groups_groups_inner import ( + PolicyRuleAuthorizationGroupsGroupsInner, +) +from fireblocks_client.models.policy_rule_check_result import PolicyRuleCheckResult +from fireblocks_client.models.policy_rule_designated_signers import ( + PolicyRuleDesignatedSigners, +) +from fireblocks_client.models.policy_rule_dst import PolicyRuleDst +from fireblocks_client.models.policy_rule_error import PolicyRuleError +from fireblocks_client.models.policy_rule_operators import PolicyRuleOperators +from fireblocks_client.models.policy_rule_raw_message_signing import ( + PolicyRuleRawMessageSigning, +) +from fireblocks_client.models.policy_rule_raw_message_signing_derivation_path import ( + PolicyRuleRawMessageSigningDerivationPath, +) +from fireblocks_client.models.policy_rule_src import PolicyRuleSrc +from fireblocks_client.models.policy_rules import PolicyRules +from fireblocks_client.models.policy_src_or_dest_sub_type import PolicySrcOrDestSubType +from fireblocks_client.models.policy_src_or_dest_type import PolicySrcOrDestType +from fireblocks_client.models.policy_status import PolicyStatus +from fireblocks_client.models.policy_validation import PolicyValidation +from fireblocks_client.models.pre_screening import PreScreening +from fireblocks_client.models.provider_dto import ProviderDto +from fireblocks_client.models.public_key_information import PublicKeyInformation +from fireblocks_client.models.publish_draft_request import PublishDraftRequest +from fireblocks_client.models.publish_result import PublishResult +from fireblocks_client.models.read_abi_function import ReadAbiFunction +from fireblocks_client.models.read_call_function_dto import ReadCallFunctionDto +from fireblocks_client.models.redeem_funds_to_linked_dda_response import ( + RedeemFundsToLinkedDDAResponse, +) +from fireblocks_client.models.register_new_asset_request import RegisterNewAssetRequest +from fireblocks_client.models.related_transaction_dto import RelatedTransactionDto +from fireblocks_client.models.remove_collateral_request_body import ( + RemoveCollateralRequestBody, +) +from fireblocks_client.models.rename_cosigner import RenameCosigner +from fireblocks_client.models.rename_vault_account_response import ( + RenameVaultAccountResponse, +) +from fireblocks_client.models.resend_transaction_webhooks_request import ( + ResendTransactionWebhooksRequest, +) +from fireblocks_client.models.resend_webhooks_by_transaction_id_response import ( + ResendWebhooksByTransactionIdResponse, +) +from fireblocks_client.models.resend_webhooks_response import ResendWebhooksResponse +from fireblocks_client.models.respond_to_connection_request import ( + RespondToConnectionRequest, +) +from fireblocks_client.models.reward_info import RewardInfo +from fireblocks_client.models.rewards_info import RewardsInfo +from fireblocks_client.models.screening_configurations_request import ( + ScreeningConfigurationsRequest, +) +from fireblocks_client.models.screening_operation_execution import ( + ScreeningOperationExecution, +) +from fireblocks_client.models.screening_operation_execution_output import ( + ScreeningOperationExecutionOutput, +) +from fireblocks_client.models.screening_operation_failure import ( + ScreeningOperationFailure, +) +from fireblocks_client.models.screening_operation_type import ScreeningOperationType +from fireblocks_client.models.screening_policy_response import ScreeningPolicyResponse +from fireblocks_client.models.screening_provider_rules_configuration_response import ( + ScreeningProviderRulesConfigurationResponse, +) +from fireblocks_client.models.screening_update_configurations_request import ( + ScreeningUpdateConfigurationsRequest, +) +from fireblocks_client.models.screening_validation_failure import ( + ScreeningValidationFailure, +) +from fireblocks_client.models.screening_verdict import ScreeningVerdict +from fireblocks_client.models.screening_verdict_matched_rule import ( + ScreeningVerdictMatchedRule, +) +from fireblocks_client.models.session_dto import SessionDTO +from fireblocks_client.models.session_metadata import SessionMetadata +from fireblocks_client.models.set_admin_quorum_threshold_request import ( + SetAdminQuorumThresholdRequest, +) +from fireblocks_client.models.set_admin_quorum_threshold_response import ( + SetAdminQuorumThresholdResponse, +) +from fireblocks_client.models.set_auto_fuel_request import SetAutoFuelRequest +from fireblocks_client.models.set_confirmations_threshold_request import ( + SetConfirmationsThresholdRequest, +) +from fireblocks_client.models.set_confirmations_threshold_response import ( + SetConfirmationsThresholdResponse, +) +from fireblocks_client.models.set_customer_ref_id_for_address_request import ( + SetCustomerRefIdForAddressRequest, +) +from fireblocks_client.models.set_customer_ref_id_request import SetCustomerRefIdRequest +from fireblocks_client.models.set_network_id_discoverability_request import ( + SetNetworkIdDiscoverabilityRequest, +) +from fireblocks_client.models.set_network_id_name_request import SetNetworkIdNameRequest +from fireblocks_client.models.set_network_id_response import SetNetworkIdResponse +from fireblocks_client.models.set_network_id_routing_policy_request import ( + SetNetworkIdRoutingPolicyRequest, +) +from fireblocks_client.models.set_ota_status_request import SetOtaStatusRequest +from fireblocks_client.models.set_ota_status_response import SetOtaStatusResponse +from fireblocks_client.models.set_ota_status_response_one_of import ( + SetOtaStatusResponseOneOf, +) +from fireblocks_client.models.set_routing_policy_request import SetRoutingPolicyRequest +from fireblocks_client.models.set_routing_policy_response import ( + SetRoutingPolicyResponse, +) +from fireblocks_client.models.settlement_request_body import SettlementRequestBody +from fireblocks_client.models.settlement_response import SettlementResponse +from fireblocks_client.models.signed_message import SignedMessage +from fireblocks_client.models.signed_message_signature import SignedMessageSignature +from fireblocks_client.models.smart_transfer_bad_request_response import ( + SmartTransferBadRequestResponse, +) +from fireblocks_client.models.smart_transfer_create_ticket import ( + SmartTransferCreateTicket, +) +from fireblocks_client.models.smart_transfer_create_ticket_term import ( + SmartTransferCreateTicketTerm, +) +from fireblocks_client.models.smart_transfer_forbidden_response import ( + SmartTransferForbiddenResponse, +) +from fireblocks_client.models.smart_transfer_fund_term import SmartTransferFundTerm +from fireblocks_client.models.smart_transfer_manually_fund_term import ( + SmartTransferManuallyFundTerm, +) +from fireblocks_client.models.smart_transfer_not_found_response import ( + SmartTransferNotFoundResponse, +) +from fireblocks_client.models.smart_transfer_set_ticket_expiration import ( + SmartTransferSetTicketExpiration, +) +from fireblocks_client.models.smart_transfer_set_ticket_external_id import ( + SmartTransferSetTicketExternalId, +) +from fireblocks_client.models.smart_transfer_set_user_groups import ( + SmartTransferSetUserGroups, +) +from fireblocks_client.models.smart_transfer_submit_ticket import ( + SmartTransferSubmitTicket, +) +from fireblocks_client.models.smart_transfer_ticket import SmartTransferTicket +from fireblocks_client.models.smart_transfer_ticket_filtered_response import ( + SmartTransferTicketFilteredResponse, +) +from fireblocks_client.models.smart_transfer_ticket_response import ( + SmartTransferTicketResponse, +) +from fireblocks_client.models.smart_transfer_ticket_term import SmartTransferTicketTerm +from fireblocks_client.models.smart_transfer_ticket_term_response import ( + SmartTransferTicketTermResponse, +) +from fireblocks_client.models.smart_transfer_update_ticket_term import ( + SmartTransferUpdateTicketTerm, +) +from fireblocks_client.models.smart_transfer_user_groups import SmartTransferUserGroups +from fireblocks_client.models.smart_transfer_user_groups_response import ( + SmartTransferUserGroupsResponse, +) +from fireblocks_client.models.solana_blockchain_data_dto import SolanaBlockchainDataDto +from fireblocks_client.models.source_transfer_peer_path import SourceTransferPeerPath +from fireblocks_client.models.source_transfer_peer_path_response import ( + SourceTransferPeerPathResponse, +) +from fireblocks_client.models.spam_ownership_response import SpamOwnershipResponse +from fireblocks_client.models.spam_token_response import SpamTokenResponse +from fireblocks_client.models.src_or_dest_attributes_inner import ( + SrcOrDestAttributesInner, +) +from fireblocks_client.models.stake_request_dto import StakeRequestDto +from fireblocks_client.models.stake_response_dto import StakeResponseDto +from fireblocks_client.models.stellar_ripple_create_params_dto import ( + StellarRippleCreateParamsDto, +) +from fireblocks_client.models.system_message_info import SystemMessageInfo +from fireblocks_client.models.task import Task +from fireblocks_client.models.templates_paginated_response import ( + TemplatesPaginatedResponse, +) +from fireblocks_client.models.third_party_routing import ThirdPartyRouting +from fireblocks_client.models.to_collateral_transaction import ToCollateralTransaction +from fireblocks_client.models.to_exchange_transaction import ToExchangeTransaction +from fireblocks_client.models.token_collection_response import TokenCollectionResponse +from fireblocks_client.models.token_link_dto import TokenLinkDto +from fireblocks_client.models.token_link_dto_token_metadata import ( + TokenLinkDtoTokenMetadata, +) +from fireblocks_client.models.token_link_exists_http_error import ( + TokenLinkExistsHttpError, +) +from fireblocks_client.models.token_link_request_dto import TokenLinkRequestDto +from fireblocks_client.models.token_ownership_response import TokenOwnershipResponse +from fireblocks_client.models.token_ownership_spam_update_payload import ( + TokenOwnershipSpamUpdatePayload, +) +from fireblocks_client.models.token_ownership_status_update_payload import ( + TokenOwnershipStatusUpdatePayload, +) +from fireblocks_client.models.token_response import TokenResponse +from fireblocks_client.models.tokens_paginated_response import TokensPaginatedResponse +from fireblocks_client.models.trading_account_type import TradingAccountType +from fireblocks_client.models.transaction import Transaction +from fireblocks_client.models.transaction_fee import TransactionFee +from fireblocks_client.models.transaction_operation import TransactionOperation +from fireblocks_client.models.transaction_request import TransactionRequest +from fireblocks_client.models.transaction_request_amount import TransactionRequestAmount +from fireblocks_client.models.transaction_request_destination import ( + TransactionRequestDestination, +) +from fireblocks_client.models.transaction_request_fee import TransactionRequestFee +from fireblocks_client.models.transaction_request_gas_limit import ( + TransactionRequestGasLimit, +) +from fireblocks_client.models.transaction_request_gas_price import ( + TransactionRequestGasPrice, +) +from fireblocks_client.models.transaction_request_network_fee import ( + TransactionRequestNetworkFee, +) +from fireblocks_client.models.transaction_request_network_staking import ( + TransactionRequestNetworkStaking, +) +from fireblocks_client.models.transaction_request_priority_fee import ( + TransactionRequestPriorityFee, +) +from fireblocks_client.models.transaction_response import TransactionResponse +from fireblocks_client.models.transaction_response_contract_call_decoded_data import ( + TransactionResponseContractCallDecodedData, +) +from fireblocks_client.models.transaction_response_destination import ( + TransactionResponseDestination, +) +from fireblocks_client.models.transfer_config_operation import TransferConfigOperation +from fireblocks_client.models.transfer_operation_config_params import ( + TransferOperationConfigParams, +) +from fireblocks_client.models.transfer_operation_execution import ( + TransferOperationExecution, +) +from fireblocks_client.models.transfer_operation_execution_output import ( + TransferOperationExecutionOutput, +) +from fireblocks_client.models.transfer_operation_execution_params import ( + TransferOperationExecutionParams, +) +from fireblocks_client.models.transfer_operation_execution_params_execution_params import ( + TransferOperationExecutionParamsExecutionParams, +) +from fireblocks_client.models.transfer_operation_failure import TransferOperationFailure +from fireblocks_client.models.transfer_operation_failure_data import ( + TransferOperationFailureData, +) +from fireblocks_client.models.transfer_operation_preview import TransferOperationPreview +from fireblocks_client.models.transfer_operation_preview_output import ( + TransferOperationPreviewOutput, +) +from fireblocks_client.models.transfer_operation_type import TransferOperationType +from fireblocks_client.models.transfer_peer_path_sub_type import TransferPeerPathSubType +from fireblocks_client.models.transfer_peer_path_type import TransferPeerPathType +from fireblocks_client.models.transfer_validation_failure import ( + TransferValidationFailure, +) +from fireblocks_client.models.travel_rule_address import TravelRuleAddress +from fireblocks_client.models.travel_rule_create_transaction_request import ( + TravelRuleCreateTransactionRequest, +) +from fireblocks_client.models.travel_rule_get_all_vasps_response import ( + TravelRuleGetAllVASPsResponse, +) +from fireblocks_client.models.travel_rule_issuer import TravelRuleIssuer +from fireblocks_client.models.travel_rule_issuers import TravelRuleIssuers +from fireblocks_client.models.travel_rule_ownership_proof import ( + TravelRuleOwnershipProof, +) +from fireblocks_client.models.travel_rule_pii_ivms import TravelRulePiiIVMS +from fireblocks_client.models.travel_rule_policy_rule_response import ( + TravelRulePolicyRuleResponse, +) +from fireblocks_client.models.travel_rule_transaction_blockchain_info import ( + TravelRuleTransactionBlockchainInfo, +) +from fireblocks_client.models.travel_rule_update_vasp_details import ( + TravelRuleUpdateVASPDetails, +) +from fireblocks_client.models.travel_rule_vasp import TravelRuleVASP +from fireblocks_client.models.travel_rule_validate_full_transaction_request import ( + TravelRuleValidateFullTransactionRequest, +) +from fireblocks_client.models.travel_rule_validate_transaction_request import ( + TravelRuleValidateTransactionRequest, +) +from fireblocks_client.models.travel_rule_validate_transaction_response import ( + TravelRuleValidateTransactionResponse, +) +from fireblocks_client.models.unfreeze_transaction_response import ( + UnfreezeTransactionResponse, +) +from fireblocks_client.models.unmanaged_wallet import UnmanagedWallet +from fireblocks_client.models.unspent_input import UnspentInput +from fireblocks_client.models.unspent_inputs_response import UnspentInputsResponse +from fireblocks_client.models.unstake_request_dto import UnstakeRequestDto +from fireblocks_client.models.update_token_ownership_status_dto import ( + UpdateTokenOwnershipStatusDto, +) +from fireblocks_client.models.update_vault_account_asset_address_request import ( + UpdateVaultAccountAssetAddressRequest, +) +from fireblocks_client.models.update_vault_account_request import ( + UpdateVaultAccountRequest, +) +from fireblocks_client.models.user_group_create_request import UserGroupCreateRequest +from fireblocks_client.models.user_group_create_response import UserGroupCreateResponse +from fireblocks_client.models.user_group_response import UserGroupResponse +from fireblocks_client.models.user_group_update_request import UserGroupUpdateRequest +from fireblocks_client.models.user_response import UserResponse +from fireblocks_client.models.user_role import UserRole +from fireblocks_client.models.user_status import UserStatus +from fireblocks_client.models.user_type import UserType +from fireblocks_client.models.validate_address_response import ValidateAddressResponse +from fireblocks_client.models.validator_dto import ValidatorDto +from fireblocks_client.models.vault_account import VaultAccount +from fireblocks_client.models.vault_accounts_paged_response import ( + VaultAccountsPagedResponse, +) +from fireblocks_client.models.vault_accounts_paged_response_paging import ( + VaultAccountsPagedResponsePaging, +) +from fireblocks_client.models.vault_action_status import VaultActionStatus +from fireblocks_client.models.vault_asset import VaultAsset +from fireblocks_client.models.vault_wallet_address import VaultWalletAddress +from fireblocks_client.models.vendor_dto import VendorDto +from fireblocks_client.models.wallet_asset import WalletAsset +from fireblocks_client.models.wallet_asset_additional_info import ( + WalletAssetAdditionalInfo, +) +from fireblocks_client.models.withdraw_request_dto import WithdrawRequestDto +from fireblocks_client.models.workflow_config_status import WorkflowConfigStatus +from fireblocks_client.models.workflow_configuration_id import WorkflowConfigurationId +from fireblocks_client.models.workflow_execution_operation import ( + WorkflowExecutionOperation, +) +from fireblocks_client.models.write_abi_function import WriteAbiFunction +from fireblocks_client.models.write_call_function_dto import WriteCallFunctionDto +from fireblocks_client.models.write_call_function_response_dto import ( + WriteCallFunctionResponseDto, +) diff --git a/fireblocks_client/api/__init__.py b/fireblocks_client/api/__init__.py new file mode 100644 index 00000000..1789ebd0 --- /dev/null +++ b/fireblocks_client/api/__init__.py @@ -0,0 +1,41 @@ +# flake8: noqa + +# import apis into api package +from fireblocks_client.api.api_user_api import ApiUserApi +from fireblocks_client.api.assets_api import AssetsApi +from fireblocks_client.api.audit_logs_api import AuditLogsApi +from fireblocks_client.api.blockchains_assets_api import BlockchainsAssetsApi +from fireblocks_client.api.compliance_api import ComplianceApi +from fireblocks_client.api.compliance_screening_configuration_api import ComplianceScreeningConfigurationApi +from fireblocks_client.api.console_user_api import ConsoleUserApi +from fireblocks_client.api.contract_interactions_api import ContractInteractionsApi +from fireblocks_client.api.contract_templates_api import ContractTemplatesApi +from fireblocks_client.api.contracts_api import ContractsApi +from fireblocks_client.api.cosigners_beta_api import CosignersBetaApi +from fireblocks_client.api.deployed_contracts_api import DeployedContractsApi +from fireblocks_client.api.exchange_accounts_api import ExchangeAccountsApi +from fireblocks_client.api.external_wallets_api import ExternalWalletsApi +from fireblocks_client.api.fiat_accounts_api import FiatAccountsApi +from fireblocks_client.api.gas_stations_api import GasStationsApi +from fireblocks_client.api.internal_wallets_api import InternalWalletsApi +from fireblocks_client.api.job_management_api import JobManagementApi +from fireblocks_client.api.nfts_api import NFTsApi +from fireblocks_client.api.network_connections_api import NetworkConnectionsApi +from fireblocks_client.api.ota_beta_api import OTABetaApi +from fireblocks_client.api.off_exchanges_api import OffExchangesApi +from fireblocks_client.api.payments_payout_api import PaymentsPayoutApi +from fireblocks_client.api.policy_editor_beta_api import PolicyEditorBetaApi +from fireblocks_client.api.reset_device_api import ResetDeviceApi +from fireblocks_client.api.smart_transfer_api import SmartTransferApi +from fireblocks_client.api.staking_beta_api import StakingBetaApi +from fireblocks_client.api.tokenization_api import TokenizationApi +from fireblocks_client.api.transactions_api import TransactionsApi +from fireblocks_client.api.travel_rule_beta_api import TravelRuleBetaApi +from fireblocks_client.api.user_groups_beta_api import UserGroupsBetaApi +from fireblocks_client.api.users_api import UsersApi +from fireblocks_client.api.vaults_api import VaultsApi +from fireblocks_client.api.web3_connections_api import Web3ConnectionsApi +from fireblocks_client.api.webhooks_api import WebhooksApi +from fireblocks_client.api.workspace_status_beta_api import WorkspaceStatusBetaApi +from fireblocks_client.api.whitelist_ip_addresses_api import WhitelistIpAddressesApi + diff --git a/fireblocks_client/api/api_user_api.py b/fireblocks_client/api/api_user_api.py new file mode 100644 index 00000000..e2b955cc --- /dev/null +++ b/fireblocks_client/api/api_user_api.py @@ -0,0 +1,589 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from pydantic import Field, StrictStr +from typing import Optional +from typing_extensions import Annotated +from fireblocks_client.models.create_api_user import CreateAPIUser +from fireblocks_client.models.get_api_users_response import GetAPIUsersResponse + +from fireblocks_client.api_client import ApiClient, RequestSerialized +from fireblocks_client.api_response import ApiResponse +from fireblocks_client.rest import RESTResponseType + + +class ApiUserApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def create_api_user( + self, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + create_api_user: Optional[CreateAPIUser] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> None: + """Create Api user + + Creates Api user in your tenant + + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: str + :param create_api_user: + :type create_api_user: CreateAPIUser + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_api_user_serialize( + idempotency_key=idempotency_key, + create_api_user=create_api_user, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': None, + '400': None, + '401': "ErrorResponse", + '403': "ErrorResponse", + '5XX': "ErrorResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def create_api_user_with_http_info( + self, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + create_api_user: Optional[CreateAPIUser] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[None]: + """Create Api user + + Creates Api user in your tenant + + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: str + :param create_api_user: + :type create_api_user: CreateAPIUser + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_api_user_serialize( + idempotency_key=idempotency_key, + create_api_user=create_api_user, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': None, + '400': None, + '401': "ErrorResponse", + '403': "ErrorResponse", + '5XX': "ErrorResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def create_api_user_without_preload_content( + self, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + create_api_user: Optional[CreateAPIUser] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Create Api user + + Creates Api user in your tenant + + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: str + :param create_api_user: + :type create_api_user: CreateAPIUser + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_api_user_serialize( + idempotency_key=idempotency_key, + create_api_user=create_api_user, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': None, + '400': None, + '401': "ErrorResponse", + '403': "ErrorResponse", + '5XX': "ErrorResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _create_api_user_serialize( + self, + idempotency_key, + create_api_user, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + if create_api_user is not None: + _body_params = create_api_user + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/management/api_users', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_api_users( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetAPIUsersResponse: + """Get Api users + + Get Api users of your tenant + + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_api_users_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetAPIUsersResponse", + '401': "ErrorResponse", + '403': "ErrorResponse", + '5XX': "ErrorResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_api_users_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetAPIUsersResponse]: + """Get Api users + + Get Api users of your tenant + + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_api_users_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetAPIUsersResponse", + '401': "ErrorResponse", + '403': "ErrorResponse", + '5XX': "ErrorResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_api_users_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get Api users + + Get Api users of your tenant + + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_api_users_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetAPIUsersResponse", + '401': "ErrorResponse", + '403': "ErrorResponse", + '5XX': "ErrorResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_api_users_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/management/api_users', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/fireblocks_client/api/assets_api.py b/fireblocks_client/api/assets_api.py new file mode 100644 index 00000000..dbf4484b --- /dev/null +++ b/fireblocks_client/api/assets_api.py @@ -0,0 +1,326 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from pydantic import Field, StrictStr +from typing import Optional +from typing_extensions import Annotated +from fireblocks_client.models.create_assets_bulk_request import CreateAssetsBulkRequest +from fireblocks_client.models.job_created import JobCreated + +from fireblocks_client.api_client import ApiClient, RequestSerialized +from fireblocks_client.api_response import ApiResponse +from fireblocks_client.rest import RESTResponseType + + +class AssetsApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def create_assets_bulk( + self, + create_assets_bulk_request: CreateAssetsBulkRequest, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> JobCreated: + """Bulk creation of wallets + + Create multiple wallets for a given vault account by running an async job.
**Note**: - These endpoints are currently in beta and might be subject to changes. - We limit accounts to 10k per operation and 200k per customer during beta testing. - Currently, we are only supporting EVM wallets. + + :param create_assets_bulk_request: (required) + :type create_assets_bulk_request: CreateAssetsBulkRequest + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_assets_bulk_serialize( + create_assets_bulk_request=create_assets_bulk_request, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "JobCreated", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def create_assets_bulk_with_http_info( + self, + create_assets_bulk_request: CreateAssetsBulkRequest, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[JobCreated]: + """Bulk creation of wallets + + Create multiple wallets for a given vault account by running an async job.
**Note**: - These endpoints are currently in beta and might be subject to changes. - We limit accounts to 10k per operation and 200k per customer during beta testing. - Currently, we are only supporting EVM wallets. + + :param create_assets_bulk_request: (required) + :type create_assets_bulk_request: CreateAssetsBulkRequest + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_assets_bulk_serialize( + create_assets_bulk_request=create_assets_bulk_request, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "JobCreated", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def create_assets_bulk_without_preload_content( + self, + create_assets_bulk_request: CreateAssetsBulkRequest, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Bulk creation of wallets + + Create multiple wallets for a given vault account by running an async job.
**Note**: - These endpoints are currently in beta and might be subject to changes. - We limit accounts to 10k per operation and 200k per customer during beta testing. - Currently, we are only supporting EVM wallets. + + :param create_assets_bulk_request: (required) + :type create_assets_bulk_request: CreateAssetsBulkRequest + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_assets_bulk_serialize( + create_assets_bulk_request=create_assets_bulk_request, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "JobCreated", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _create_assets_bulk_serialize( + self, + create_assets_bulk_request, + idempotency_key, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + if create_assets_bulk_request is not None: + _body_params = create_assets_bulk_request + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/vault/assets/bulk', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/fireblocks_client/api/audit_logs_api.py b/fireblocks_client/api/audit_logs_api.py new file mode 100644 index 00000000..6821bb89 --- /dev/null +++ b/fireblocks_client/api/audit_logs_api.py @@ -0,0 +1,576 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from pydantic import Field, StrictStr, field_validator +from typing import Optional +from typing_extensions import Annotated +from fireblocks_client.models.get_audit_logs_response import GetAuditLogsResponse +from fireblocks_client.models.get_audit_logs_response_dto import GetAuditLogsResponseDTO + +from fireblocks_client.api_client import ApiClient, RequestSerialized +from fireblocks_client.api_response import ApiResponse +from fireblocks_client.rest import RESTResponseType + + +class AuditLogsApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def get_audit_logs( + self, + time_period: Annotated[Optional[StrictStr], Field(description="The last time period to fetch audit logs")] = None, + cursor: Annotated[Optional[StrictStr], Field(description="The next id to start fetch audit logs from")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetAuditLogsResponse: + """Get audit logs + + Get all audits + + :param time_period: The last time period to fetch audit logs + :type time_period: str + :param cursor: The next id to start fetch audit logs from + :type cursor: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_audit_logs_serialize( + time_period=time_period, + cursor=cursor, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetAuditLogsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_audit_logs_with_http_info( + self, + time_period: Annotated[Optional[StrictStr], Field(description="The last time period to fetch audit logs")] = None, + cursor: Annotated[Optional[StrictStr], Field(description="The next id to start fetch audit logs from")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetAuditLogsResponse]: + """Get audit logs + + Get all audits + + :param time_period: The last time period to fetch audit logs + :type time_period: str + :param cursor: The next id to start fetch audit logs from + :type cursor: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_audit_logs_serialize( + time_period=time_period, + cursor=cursor, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetAuditLogsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_audit_logs_without_preload_content( + self, + time_period: Annotated[Optional[StrictStr], Field(description="The last time period to fetch audit logs")] = None, + cursor: Annotated[Optional[StrictStr], Field(description="The next id to start fetch audit logs from")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get audit logs + + Get all audits + + :param time_period: The last time period to fetch audit logs + :type time_period: str + :param cursor: The next id to start fetch audit logs from + :type cursor: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_audit_logs_serialize( + time_period=time_period, + cursor=cursor, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetAuditLogsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_audit_logs_serialize( + self, + time_period, + cursor, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if time_period is not None: + + _query_params.append(('timePeriod', time_period)) + + if cursor is not None: + + _query_params.append(('cursor', cursor)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/management/audit_logs', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_audits( + self, + time_period: Annotated[Optional[StrictStr], Field(description="The last time period to fetch audit logs")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetAuditLogsResponseDTO: + """Get audit logs + + Get all audits + + :param time_period: The last time period to fetch audit logs + :type time_period: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_audits_serialize( + time_period=time_period, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetAuditLogsResponseDTO", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_audits_with_http_info( + self, + time_period: Annotated[Optional[StrictStr], Field(description="The last time period to fetch audit logs")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetAuditLogsResponseDTO]: + """Get audit logs + + Get all audits + + :param time_period: The last time period to fetch audit logs + :type time_period: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_audits_serialize( + time_period=time_period, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetAuditLogsResponseDTO", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_audits_without_preload_content( + self, + time_period: Annotated[Optional[StrictStr], Field(description="The last time period to fetch audit logs")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get audit logs + + Get all audits + + :param time_period: The last time period to fetch audit logs + :type time_period: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_audits_serialize( + time_period=time_period, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetAuditLogsResponseDTO", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_audits_serialize( + self, + time_period, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if time_period is not None: + + _query_params.append(('timePeriod', time_period)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/audits', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/fireblocks_client/api/blockchains_assets_api.py b/fireblocks_client/api/blockchains_assets_api.py new file mode 100644 index 00000000..f06ed917 --- /dev/null +++ b/fireblocks_client/api/blockchains_assets_api.py @@ -0,0 +1,584 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from pydantic import Field, StrictStr +from typing import Optional +from typing_extensions import Annotated +from fireblocks_client.models.asset_response import AssetResponse +from fireblocks_client.models.asset_type_response import AssetTypeResponse +from fireblocks_client.models.register_new_asset_request import RegisterNewAssetRequest + +from fireblocks_client.api_client import ApiClient, RequestSerialized +from fireblocks_client.api_response import ApiResponse +from fireblocks_client.rest import RESTResponseType + + +class BlockchainsAssetsApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def get_supported_assets( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> List[AssetTypeResponse]: + """List all asset types supported by Fireblocks + + Returns all asset types supported by Fireblocks. + + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_supported_assets_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[AssetTypeResponse]", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_supported_assets_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[List[AssetTypeResponse]]: + """List all asset types supported by Fireblocks + + Returns all asset types supported by Fireblocks. + + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_supported_assets_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[AssetTypeResponse]", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_supported_assets_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List all asset types supported by Fireblocks + + Returns all asset types supported by Fireblocks. + + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_supported_assets_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[AssetTypeResponse]", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_supported_assets_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/supported_assets', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def register_new_asset( + self, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + register_new_asset_request: Optional[RegisterNewAssetRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> AssetResponse: + """Register an asset + + Register a new asset to a workspace and return the newly created asset's details. Currently supported for EVM based chains only. + + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: str + :param register_new_asset_request: + :type register_new_asset_request: RegisterNewAssetRequest + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._register_new_asset_serialize( + idempotency_key=idempotency_key, + register_new_asset_request=register_new_asset_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AssetResponse", + '400': "AssetBadRequestErrorResponse", + '403': "AssetForbiddenErrorResponse", + '404': "AssetNotFoundErrorResponse", + '409': "AssetConflictErrorResponse", + '500': "AssetInternalServerErrorResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def register_new_asset_with_http_info( + self, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + register_new_asset_request: Optional[RegisterNewAssetRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[AssetResponse]: + """Register an asset + + Register a new asset to a workspace and return the newly created asset's details. Currently supported for EVM based chains only. + + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: str + :param register_new_asset_request: + :type register_new_asset_request: RegisterNewAssetRequest + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._register_new_asset_serialize( + idempotency_key=idempotency_key, + register_new_asset_request=register_new_asset_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AssetResponse", + '400': "AssetBadRequestErrorResponse", + '403': "AssetForbiddenErrorResponse", + '404': "AssetNotFoundErrorResponse", + '409': "AssetConflictErrorResponse", + '500': "AssetInternalServerErrorResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def register_new_asset_without_preload_content( + self, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + register_new_asset_request: Optional[RegisterNewAssetRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Register an asset + + Register a new asset to a workspace and return the newly created asset's details. Currently supported for EVM based chains only. + + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: str + :param register_new_asset_request: + :type register_new_asset_request: RegisterNewAssetRequest + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._register_new_asset_serialize( + idempotency_key=idempotency_key, + register_new_asset_request=register_new_asset_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AssetResponse", + '400': "AssetBadRequestErrorResponse", + '403': "AssetForbiddenErrorResponse", + '404': "AssetNotFoundErrorResponse", + '409': "AssetConflictErrorResponse", + '500': "AssetInternalServerErrorResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _register_new_asset_serialize( + self, + idempotency_key, + register_new_asset_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + if register_new_asset_request is not None: + _body_params = register_new_asset_request + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/assets', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/fireblocks_client/api/compliance_api.py b/fireblocks_client/api/compliance_api.py new file mode 100644 index 00000000..33cacc13 --- /dev/null +++ b/fireblocks_client/api/compliance_api.py @@ -0,0 +1,1782 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from pydantic import Field, StrictStr +from typing import Optional +from typing_extensions import Annotated +from fireblocks_client.models.screening_configurations_request import ScreeningConfigurationsRequest +from fireblocks_client.models.screening_policy_response import ScreeningPolicyResponse +from fireblocks_client.models.screening_provider_rules_configuration_response import ScreeningProviderRulesConfigurationResponse +from fireblocks_client.models.screening_update_configurations_request import ScreeningUpdateConfigurationsRequest + +from fireblocks_client.api_client import ApiClient, RequestSerialized +from fireblocks_client.api_response import ApiResponse +from fireblocks_client.rest import RESTResponseType + + +class ComplianceApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def get_aml_post_screening_policy( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ScreeningPolicyResponse: + """AML - View Post-Screening Policy + + Get the post-screening policy for AML. + + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_aml_post_screening_policy_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ScreeningPolicyResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_aml_post_screening_policy_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ScreeningPolicyResponse]: + """AML - View Post-Screening Policy + + Get the post-screening policy for AML. + + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_aml_post_screening_policy_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ScreeningPolicyResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_aml_post_screening_policy_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """AML - View Post-Screening Policy + + Get the post-screening policy for AML. + + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_aml_post_screening_policy_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ScreeningPolicyResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_aml_post_screening_policy_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/screening/aml/post_screening_policy', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_aml_screening_policy( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ScreeningProviderRulesConfigurationResponse: + """AML - View Screening Policy + + Get the screening policy for AML. + + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_aml_screening_policy_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ScreeningProviderRulesConfigurationResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_aml_screening_policy_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ScreeningProviderRulesConfigurationResponse]: + """AML - View Screening Policy + + Get the screening policy for AML. + + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_aml_screening_policy_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ScreeningProviderRulesConfigurationResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_aml_screening_policy_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """AML - View Screening Policy + + Get the screening policy for AML. + + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_aml_screening_policy_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ScreeningProviderRulesConfigurationResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_aml_screening_policy_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/screening/aml/screening_policy', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_post_screening_policy( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ScreeningPolicyResponse: + """Travel Rule - View Post-Screening Policy + + Get the post-screening policy for Travel Rule. + + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_post_screening_policy_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ScreeningPolicyResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_post_screening_policy_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ScreeningPolicyResponse]: + """Travel Rule - View Post-Screening Policy + + Get the post-screening policy for Travel Rule. + + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_post_screening_policy_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ScreeningPolicyResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_post_screening_policy_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Travel Rule - View Post-Screening Policy + + Get the post-screening policy for Travel Rule. + + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_post_screening_policy_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ScreeningPolicyResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_post_screening_policy_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/screening/travel_rule/post_screening_policy', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_screening_policy( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ScreeningProviderRulesConfigurationResponse: + """Travel Rule - View Screening Policy + + Get the screening policy for Travel Rule. + + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_screening_policy_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ScreeningProviderRulesConfigurationResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_screening_policy_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ScreeningProviderRulesConfigurationResponse]: + """Travel Rule - View Screening Policy + + Get the screening policy for Travel Rule. + + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_screening_policy_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ScreeningProviderRulesConfigurationResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_screening_policy_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Travel Rule - View Screening Policy + + Get the screening policy for Travel Rule. + + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_screening_policy_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ScreeningProviderRulesConfigurationResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_screening_policy_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/screening/travel_rule/screening_policy', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def update_aml_screening_configuration( + self, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ScreeningConfigurationsRequest: + """Update AML Configuration + + Updates bypass screening, inbound delay, or outbound delay configurations for AML. + + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_aml_screening_configuration_serialize( + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ScreeningConfigurationsRequest", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def update_aml_screening_configuration_with_http_info( + self, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ScreeningConfigurationsRequest]: + """Update AML Configuration + + Updates bypass screening, inbound delay, or outbound delay configurations for AML. + + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_aml_screening_configuration_serialize( + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ScreeningConfigurationsRequest", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def update_aml_screening_configuration_without_preload_content( + self, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Update AML Configuration + + Updates bypass screening, inbound delay, or outbound delay configurations for AML. + + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_aml_screening_configuration_serialize( + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ScreeningConfigurationsRequest", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _update_aml_screening_configuration_serialize( + self, + idempotency_key, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/screening/aml/policy_configuration', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def update_screening_configuration( + self, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ScreeningUpdateConfigurationsRequest: + """Tenant - Screening Configuration + + Update tenant screening configuration. + + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_screening_configuration_serialize( + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ScreeningUpdateConfigurationsRequest", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def update_screening_configuration_with_http_info( + self, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ScreeningUpdateConfigurationsRequest]: + """Tenant - Screening Configuration + + Update tenant screening configuration. + + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_screening_configuration_serialize( + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ScreeningUpdateConfigurationsRequest", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def update_screening_configuration_without_preload_content( + self, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Tenant - Screening Configuration + + Update tenant screening configuration. + + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_screening_configuration_serialize( + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ScreeningUpdateConfigurationsRequest", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _update_screening_configuration_serialize( + self, + idempotency_key, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/screening/configurations', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def update_travel_rule_config( + self, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ScreeningConfigurationsRequest: + """Update Travel Rule Configuration + + Updates bypass screening, inbound delay, or outbound delay configurations for Travel Rule. + + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_travel_rule_config_serialize( + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ScreeningConfigurationsRequest", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def update_travel_rule_config_with_http_info( + self, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ScreeningConfigurationsRequest]: + """Update Travel Rule Configuration + + Updates bypass screening, inbound delay, or outbound delay configurations for Travel Rule. + + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_travel_rule_config_serialize( + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ScreeningConfigurationsRequest", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def update_travel_rule_config_without_preload_content( + self, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Update Travel Rule Configuration + + Updates bypass screening, inbound delay, or outbound delay configurations for Travel Rule. + + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_travel_rule_config_serialize( + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ScreeningConfigurationsRequest", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _update_travel_rule_config_serialize( + self, + idempotency_key, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/screening/travel_rule/policy_configuration', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/fireblocks_client/api/compliance_screening_configuration_api.py b/fireblocks_client/api/compliance_screening_configuration_api.py new file mode 100644 index 00000000..0d6386fd --- /dev/null +++ b/fireblocks_client/api/compliance_screening_configuration_api.py @@ -0,0 +1,521 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from fireblocks_client.models.screening_configurations_request import ScreeningConfigurationsRequest + +from fireblocks_client.api_client import ApiClient, RequestSerialized +from fireblocks_client.api_response import ApiResponse +from fireblocks_client.rest import RESTResponseType + + +class ComplianceScreeningConfigurationApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def get_aml_screening_configuration( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ScreeningConfigurationsRequest: + """Get AML Screening Policy Configuration + + Retrieves the configuration for Travel Rule screening policy. + + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_aml_screening_configuration_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ScreeningConfigurationsRequest", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_aml_screening_configuration_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ScreeningConfigurationsRequest]: + """Get AML Screening Policy Configuration + + Retrieves the configuration for Travel Rule screening policy. + + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_aml_screening_configuration_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ScreeningConfigurationsRequest", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_aml_screening_configuration_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get AML Screening Policy Configuration + + Retrieves the configuration for Travel Rule screening policy. + + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_aml_screening_configuration_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ScreeningConfigurationsRequest", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_aml_screening_configuration_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/screening/aml/policy_configuration', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_screening_configuration( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ScreeningConfigurationsRequest: + """Get Travel Rule Screening Policy Configuration + + Retrieves the configuration for Travel Rule screening policy. + + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_screening_configuration_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ScreeningConfigurationsRequest", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_screening_configuration_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ScreeningConfigurationsRequest]: + """Get Travel Rule Screening Policy Configuration + + Retrieves the configuration for Travel Rule screening policy. + + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_screening_configuration_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ScreeningConfigurationsRequest", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_screening_configuration_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get Travel Rule Screening Policy Configuration + + Retrieves the configuration for Travel Rule screening policy. + + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_screening_configuration_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ScreeningConfigurationsRequest", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_screening_configuration_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/screening/travel_rule/policy_configuration', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/fireblocks_client/api/console_user_api.py b/fireblocks_client/api/console_user_api.py new file mode 100644 index 00000000..fcfea48d --- /dev/null +++ b/fireblocks_client/api/console_user_api.py @@ -0,0 +1,589 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from pydantic import Field, StrictStr +from typing import Optional +from typing_extensions import Annotated +from fireblocks_client.models.create_console_user import CreateConsoleUser +from fireblocks_client.models.get_console_users_response import GetConsoleUsersResponse + +from fireblocks_client.api_client import ApiClient, RequestSerialized +from fireblocks_client.api_response import ApiResponse +from fireblocks_client.rest import RESTResponseType + + +class ConsoleUserApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def create_console_user( + self, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + create_console_user: Optional[CreateConsoleUser] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> None: + """Create console user + + Creates console user in your tenant + + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: str + :param create_console_user: + :type create_console_user: CreateConsoleUser + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_console_user_serialize( + idempotency_key=idempotency_key, + create_console_user=create_console_user, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': None, + '400': None, + '401': "ErrorResponse", + '403': "ErrorResponse", + '5XX': "ErrorResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def create_console_user_with_http_info( + self, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + create_console_user: Optional[CreateConsoleUser] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[None]: + """Create console user + + Creates console user in your tenant + + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: str + :param create_console_user: + :type create_console_user: CreateConsoleUser + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_console_user_serialize( + idempotency_key=idempotency_key, + create_console_user=create_console_user, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': None, + '400': None, + '401': "ErrorResponse", + '403': "ErrorResponse", + '5XX': "ErrorResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def create_console_user_without_preload_content( + self, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + create_console_user: Optional[CreateConsoleUser] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Create console user + + Creates console user in your tenant + + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: str + :param create_console_user: + :type create_console_user: CreateConsoleUser + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_console_user_serialize( + idempotency_key=idempotency_key, + create_console_user=create_console_user, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': None, + '400': None, + '401': "ErrorResponse", + '403': "ErrorResponse", + '5XX': "ErrorResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _create_console_user_serialize( + self, + idempotency_key, + create_console_user, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + if create_console_user is not None: + _body_params = create_console_user + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/management/users', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_console_users( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetConsoleUsersResponse: + """Get console users + + Get console users for your tenant + + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_console_users_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetConsoleUsersResponse", + '401': "ErrorResponse", + '403': "ErrorResponse", + '5XX': "ErrorResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_console_users_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetConsoleUsersResponse]: + """Get console users + + Get console users for your tenant + + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_console_users_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetConsoleUsersResponse", + '401': "ErrorResponse", + '403': "ErrorResponse", + '5XX': "ErrorResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_console_users_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get console users + + Get console users for your tenant + + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_console_users_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetConsoleUsersResponse", + '401': "ErrorResponse", + '403': "ErrorResponse", + '5XX': "ErrorResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_console_users_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/management/users', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/fireblocks_client/api/contract_interactions_api.py b/fireblocks_client/api/contract_interactions_api.py new file mode 100644 index 00000000..ea133013 --- /dev/null +++ b/fireblocks_client/api/contract_interactions_api.py @@ -0,0 +1,961 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from pydantic import Field, StrictStr +from typing import Optional +from typing_extensions import Annotated +from fireblocks_client.models.contract_abi_response_dto import ContractAbiResponseDto +from fireblocks_client.models.parameter_with_value import ParameterWithValue +from fireblocks_client.models.read_call_function_dto import ReadCallFunctionDto +from fireblocks_client.models.write_call_function_dto import WriteCallFunctionDto +from fireblocks_client.models.write_call_function_response_dto import WriteCallFunctionResponseDto + +from fireblocks_client.api_client import ApiClient, RequestSerialized +from fireblocks_client.api_response import ApiResponse +from fireblocks_client.rest import RESTResponseType + + +class ContractInteractionsApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def get_deployed_contract_abi( + self, + contract_address: Annotated[StrictStr, Field(description="The contract's onchain address")], + asset_id: StrictStr, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ContractAbiResponseDto: + """Return deployed contract's ABI + + Return deployed contract's ABI by blockchain native asset id and contract address + + :param contract_address: The contract's onchain address (required) + :type contract_address: str + :param asset_id: (required) + :type asset_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_deployed_contract_abi_serialize( + contract_address=contract_address, + asset_id=asset_id, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ContractAbiResponseDto", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_deployed_contract_abi_with_http_info( + self, + contract_address: Annotated[StrictStr, Field(description="The contract's onchain address")], + asset_id: StrictStr, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ContractAbiResponseDto]: + """Return deployed contract's ABI + + Return deployed contract's ABI by blockchain native asset id and contract address + + :param contract_address: The contract's onchain address (required) + :type contract_address: str + :param asset_id: (required) + :type asset_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_deployed_contract_abi_serialize( + contract_address=contract_address, + asset_id=asset_id, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ContractAbiResponseDto", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_deployed_contract_abi_without_preload_content( + self, + contract_address: Annotated[StrictStr, Field(description="The contract's onchain address")], + asset_id: StrictStr, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Return deployed contract's ABI + + Return deployed contract's ABI by blockchain native asset id and contract address + + :param contract_address: The contract's onchain address (required) + :type contract_address: str + :param asset_id: (required) + :type asset_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_deployed_contract_abi_serialize( + contract_address=contract_address, + asset_id=asset_id, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ContractAbiResponseDto", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_deployed_contract_abi_serialize( + self, + contract_address, + asset_id, + idempotency_key, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if contract_address is not None: + _path_params['contractAddress'] = contract_address + if asset_id is not None: + _path_params['assetId'] = asset_id + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/contract_interactions/base_asset_id/{assetId}/contract_address/{contractAddress}/functions', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def read_call_function( + self, + contract_address: Annotated[StrictStr, Field(description="The contract's onchain address")], + asset_id: StrictStr, + read_call_function_dto: ReadCallFunctionDto, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> List[ParameterWithValue]: + """Call a read function on a deployed contract + + Call a read function on a deployed contract by blockchain native asset id and contract address + + :param contract_address: The contract's onchain address (required) + :type contract_address: str + :param asset_id: (required) + :type asset_id: str + :param read_call_function_dto: (required) + :type read_call_function_dto: ReadCallFunctionDto + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._read_call_function_serialize( + contract_address=contract_address, + asset_id=asset_id, + read_call_function_dto=read_call_function_dto, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[ParameterWithValue]", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def read_call_function_with_http_info( + self, + contract_address: Annotated[StrictStr, Field(description="The contract's onchain address")], + asset_id: StrictStr, + read_call_function_dto: ReadCallFunctionDto, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[List[ParameterWithValue]]: + """Call a read function on a deployed contract + + Call a read function on a deployed contract by blockchain native asset id and contract address + + :param contract_address: The contract's onchain address (required) + :type contract_address: str + :param asset_id: (required) + :type asset_id: str + :param read_call_function_dto: (required) + :type read_call_function_dto: ReadCallFunctionDto + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._read_call_function_serialize( + contract_address=contract_address, + asset_id=asset_id, + read_call_function_dto=read_call_function_dto, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[ParameterWithValue]", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def read_call_function_without_preload_content( + self, + contract_address: Annotated[StrictStr, Field(description="The contract's onchain address")], + asset_id: StrictStr, + read_call_function_dto: ReadCallFunctionDto, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Call a read function on a deployed contract + + Call a read function on a deployed contract by blockchain native asset id and contract address + + :param contract_address: The contract's onchain address (required) + :type contract_address: str + :param asset_id: (required) + :type asset_id: str + :param read_call_function_dto: (required) + :type read_call_function_dto: ReadCallFunctionDto + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._read_call_function_serialize( + contract_address=contract_address, + asset_id=asset_id, + read_call_function_dto=read_call_function_dto, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[ParameterWithValue]", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _read_call_function_serialize( + self, + contract_address, + asset_id, + read_call_function_dto, + idempotency_key, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if contract_address is not None: + _path_params['contractAddress'] = contract_address + if asset_id is not None: + _path_params['assetId'] = asset_id + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + if read_call_function_dto is not None: + _body_params = read_call_function_dto + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/contract_interactions/base_asset_id/{assetId}/contract_address/{contractAddress}/functions/read', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def write_call_function( + self, + contract_address: Annotated[StrictStr, Field(description="The contract's onchain address")], + asset_id: StrictStr, + write_call_function_dto: WriteCallFunctionDto, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> WriteCallFunctionResponseDto: + """Call a write function on a deployed contract + + Call a write function on a deployed contract by blockchain native asset id and contract address. This creates an onchain transaction, thus it is an async operation. It returns a transaction id that can be polled for status check + + :param contract_address: The contract's onchain address (required) + :type contract_address: str + :param asset_id: (required) + :type asset_id: str + :param write_call_function_dto: (required) + :type write_call_function_dto: WriteCallFunctionDto + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._write_call_function_serialize( + contract_address=contract_address, + asset_id=asset_id, + write_call_function_dto=write_call_function_dto, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '202': "WriteCallFunctionResponseDto", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def write_call_function_with_http_info( + self, + contract_address: Annotated[StrictStr, Field(description="The contract's onchain address")], + asset_id: StrictStr, + write_call_function_dto: WriteCallFunctionDto, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[WriteCallFunctionResponseDto]: + """Call a write function on a deployed contract + + Call a write function on a deployed contract by blockchain native asset id and contract address. This creates an onchain transaction, thus it is an async operation. It returns a transaction id that can be polled for status check + + :param contract_address: The contract's onchain address (required) + :type contract_address: str + :param asset_id: (required) + :type asset_id: str + :param write_call_function_dto: (required) + :type write_call_function_dto: WriteCallFunctionDto + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._write_call_function_serialize( + contract_address=contract_address, + asset_id=asset_id, + write_call_function_dto=write_call_function_dto, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '202': "WriteCallFunctionResponseDto", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def write_call_function_without_preload_content( + self, + contract_address: Annotated[StrictStr, Field(description="The contract's onchain address")], + asset_id: StrictStr, + write_call_function_dto: WriteCallFunctionDto, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Call a write function on a deployed contract + + Call a write function on a deployed contract by blockchain native asset id and contract address. This creates an onchain transaction, thus it is an async operation. It returns a transaction id that can be polled for status check + + :param contract_address: The contract's onchain address (required) + :type contract_address: str + :param asset_id: (required) + :type asset_id: str + :param write_call_function_dto: (required) + :type write_call_function_dto: WriteCallFunctionDto + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._write_call_function_serialize( + contract_address=contract_address, + asset_id=asset_id, + write_call_function_dto=write_call_function_dto, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '202': "WriteCallFunctionResponseDto", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _write_call_function_serialize( + self, + contract_address, + asset_id, + write_call_function_dto, + idempotency_key, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if contract_address is not None: + _path_params['contractAddress'] = contract_address + if asset_id is not None: + _path_params['assetId'] = asset_id + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + if write_call_function_dto is not None: + _body_params = write_call_function_dto + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/contract_interactions/base_asset_id/{assetId}/contract_address/{contractAddress}/functions/write', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/fireblocks_client/api/contract_templates_api.py b/fireblocks_client/api/contract_templates_api.py new file mode 100644 index 00000000..eec633ec --- /dev/null +++ b/fireblocks_client/api/contract_templates_api.py @@ -0,0 +1,2051 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from pydantic import Field, StrictBool, StrictStr, field_validator +from typing import Optional, Union +from typing_extensions import Annotated +from fireblocks_client.models.abi_function import AbiFunction +from fireblocks_client.models.contract_deploy_request import ContractDeployRequest +from fireblocks_client.models.contract_deploy_response import ContractDeployResponse +from fireblocks_client.models.contract_template_dto import ContractTemplateDto +from fireblocks_client.models.contract_upload_request import ContractUploadRequest +from fireblocks_client.models.templates_paginated_response import TemplatesPaginatedResponse + +from fireblocks_client.api_client import ApiClient, RequestSerialized +from fireblocks_client.api_response import ApiResponse +from fireblocks_client.rest import RESTResponseType + + +class ContractTemplatesApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def delete_contract_template_by_id( + self, + contract_template_id: Annotated[StrictStr, Field(description="The Contract Template identifier")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> None: + """Delete a contract template by id + + Delete a contract by id. allowed only for private contract templates. Notice: it is irreversible! + + :param contract_template_id: The Contract Template identifier (required) + :type contract_template_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_contract_template_by_id_serialize( + contract_template_id=contract_template_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '404': "HttpContractDoesNotExistError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def delete_contract_template_by_id_with_http_info( + self, + contract_template_id: Annotated[StrictStr, Field(description="The Contract Template identifier")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[None]: + """Delete a contract template by id + + Delete a contract by id. allowed only for private contract templates. Notice: it is irreversible! + + :param contract_template_id: The Contract Template identifier (required) + :type contract_template_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_contract_template_by_id_serialize( + contract_template_id=contract_template_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '404': "HttpContractDoesNotExistError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def delete_contract_template_by_id_without_preload_content( + self, + contract_template_id: Annotated[StrictStr, Field(description="The Contract Template identifier")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Delete a contract template by id + + Delete a contract by id. allowed only for private contract templates. Notice: it is irreversible! + + :param contract_template_id: The Contract Template identifier (required) + :type contract_template_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_contract_template_by_id_serialize( + contract_template_id=contract_template_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '404': "HttpContractDoesNotExistError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _delete_contract_template_by_id_serialize( + self, + contract_template_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if contract_template_id is not None: + _path_params['contractTemplateId'] = contract_template_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/tokenization/templates/{contractTemplateId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def deploy_contract( + self, + contract_template_id: Annotated[StrictStr, Field(description="The Contract Template identifier")], + contract_deploy_request: ContractDeployRequest, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ContractDeployResponse: + """Deploy contract + + Deploy a new contract by contract template id. If you wish to deploy a token (ERC20, ERC721 etc), and create asset please use POST /tokenization + + :param contract_template_id: The Contract Template identifier (required) + :type contract_template_id: str + :param contract_deploy_request: (required) + :type contract_deploy_request: ContractDeployRequest + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._deploy_contract_serialize( + contract_template_id=contract_template_id, + contract_deploy_request=contract_deploy_request, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '202': "ContractDeployResponse", + '404': "HttpContractDoesNotExistError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def deploy_contract_with_http_info( + self, + contract_template_id: Annotated[StrictStr, Field(description="The Contract Template identifier")], + contract_deploy_request: ContractDeployRequest, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ContractDeployResponse]: + """Deploy contract + + Deploy a new contract by contract template id. If you wish to deploy a token (ERC20, ERC721 etc), and create asset please use POST /tokenization + + :param contract_template_id: The Contract Template identifier (required) + :type contract_template_id: str + :param contract_deploy_request: (required) + :type contract_deploy_request: ContractDeployRequest + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._deploy_contract_serialize( + contract_template_id=contract_template_id, + contract_deploy_request=contract_deploy_request, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '202': "ContractDeployResponse", + '404': "HttpContractDoesNotExistError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def deploy_contract_without_preload_content( + self, + contract_template_id: Annotated[StrictStr, Field(description="The Contract Template identifier")], + contract_deploy_request: ContractDeployRequest, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Deploy contract + + Deploy a new contract by contract template id. If you wish to deploy a token (ERC20, ERC721 etc), and create asset please use POST /tokenization + + :param contract_template_id: The Contract Template identifier (required) + :type contract_template_id: str + :param contract_deploy_request: (required) + :type contract_deploy_request: ContractDeployRequest + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._deploy_contract_serialize( + contract_template_id=contract_template_id, + contract_deploy_request=contract_deploy_request, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '202': "ContractDeployResponse", + '404': "HttpContractDoesNotExistError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _deploy_contract_serialize( + self, + contract_template_id, + contract_deploy_request, + idempotency_key, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if contract_template_id is not None: + _path_params['contractTemplateId'] = contract_template_id + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + if contract_deploy_request is not None: + _body_params = contract_deploy_request + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/tokenization/templates/{contractTemplateId}/deploy', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_constructor_by_contract_template_id( + self, + contract_template_id: Annotated[StrictStr, Field(description="The Contract Template identifier")], + with_docs: Annotated[Optional[StrictBool], Field(description="true if you want to get the abi with its docs")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> AbiFunction: + """Return contract template's constructor + + Return contract template's constructor ABI + + :param contract_template_id: The Contract Template identifier (required) + :type contract_template_id: str + :param with_docs: true if you want to get the abi with its docs + :type with_docs: bool + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_constructor_by_contract_template_id_serialize( + contract_template_id=contract_template_id, + with_docs=with_docs, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AbiFunction", + '404': "HttpContractDoesNotExistError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_constructor_by_contract_template_id_with_http_info( + self, + contract_template_id: Annotated[StrictStr, Field(description="The Contract Template identifier")], + with_docs: Annotated[Optional[StrictBool], Field(description="true if you want to get the abi with its docs")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[AbiFunction]: + """Return contract template's constructor + + Return contract template's constructor ABI + + :param contract_template_id: The Contract Template identifier (required) + :type contract_template_id: str + :param with_docs: true if you want to get the abi with its docs + :type with_docs: bool + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_constructor_by_contract_template_id_serialize( + contract_template_id=contract_template_id, + with_docs=with_docs, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AbiFunction", + '404': "HttpContractDoesNotExistError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_constructor_by_contract_template_id_without_preload_content( + self, + contract_template_id: Annotated[StrictStr, Field(description="The Contract Template identifier")], + with_docs: Annotated[Optional[StrictBool], Field(description="true if you want to get the abi with its docs")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Return contract template's constructor + + Return contract template's constructor ABI + + :param contract_template_id: The Contract Template identifier (required) + :type contract_template_id: str + :param with_docs: true if you want to get the abi with its docs + :type with_docs: bool + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_constructor_by_contract_template_id_serialize( + contract_template_id=contract_template_id, + with_docs=with_docs, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AbiFunction", + '404': "HttpContractDoesNotExistError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_constructor_by_contract_template_id_serialize( + self, + contract_template_id, + with_docs, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if contract_template_id is not None: + _path_params['contractTemplateId'] = contract_template_id + # process the query parameters + if with_docs is not None: + + _query_params.append(('withDocs', with_docs)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/tokenization/templates/{contractTemplateId}/constructor', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_contract_template_by_id( + self, + contract_template_id: Annotated[StrictStr, Field(description="The Contract Template identifier")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ContractTemplateDto: + """Return contract template by id + + Return detailed information about the contract template + + :param contract_template_id: The Contract Template identifier (required) + :type contract_template_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_contract_template_by_id_serialize( + contract_template_id=contract_template_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ContractTemplateDto", + '404': "HttpContractDoesNotExistError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_contract_template_by_id_with_http_info( + self, + contract_template_id: Annotated[StrictStr, Field(description="The Contract Template identifier")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ContractTemplateDto]: + """Return contract template by id + + Return detailed information about the contract template + + :param contract_template_id: The Contract Template identifier (required) + :type contract_template_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_contract_template_by_id_serialize( + contract_template_id=contract_template_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ContractTemplateDto", + '404': "HttpContractDoesNotExistError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_contract_template_by_id_without_preload_content( + self, + contract_template_id: Annotated[StrictStr, Field(description="The Contract Template identifier")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Return contract template by id + + Return detailed information about the contract template + + :param contract_template_id: The Contract Template identifier (required) + :type contract_template_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_contract_template_by_id_serialize( + contract_template_id=contract_template_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ContractTemplateDto", + '404': "HttpContractDoesNotExistError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_contract_template_by_id_serialize( + self, + contract_template_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if contract_template_id is not None: + _path_params['contractTemplateId'] = contract_template_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/tokenization/templates/{contractTemplateId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_contract_templates( + self, + limit: Annotated[Optional[Union[Annotated[float, Field(le=100, strict=True, ge=1)], Annotated[int, Field(le=100, strict=True, ge=1)]]], Field(description="Items per page (max 100)")] = None, + offset: Annotated[Optional[Union[Annotated[float, Field(strict=True, ge=0)], Annotated[int, Field(strict=True, ge=0)]]], Field(description="Paging offset")] = None, + page_cursor: Annotated[Optional[StrictStr], Field(description="Page cursor to get the next page")] = None, + page_size: Annotated[Optional[Union[Annotated[float, Field(le=100, strict=True, ge=1)], Annotated[int, Field(le=100, strict=True, ge=1)]]], Field(description="Number of items per page, requesting more then max will return max items")] = None, + type: Annotated[Optional[StrictStr], Field(description="The type of the contract templates you wish to retrieve. Can accept one type, more or none")] = None, + initialization_phase: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> TemplatesPaginatedResponse: + """List all contract templates + + Return minimal representation of all the contract templates available for the workspace + + :param limit: Items per page (max 100) + :type limit: float + :param offset: Paging offset + :type offset: float + :param page_cursor: Page cursor to get the next page + :type page_cursor: str + :param page_size: Number of items per page, requesting more then max will return max items + :type page_size: float + :param type: The type of the contract templates you wish to retrieve. Can accept one type, more or none + :type type: str + :param initialization_phase: + :type initialization_phase: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_contract_templates_serialize( + limit=limit, + offset=offset, + page_cursor=page_cursor, + page_size=page_size, + type=type, + initialization_phase=initialization_phase, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "TemplatesPaginatedResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_contract_templates_with_http_info( + self, + limit: Annotated[Optional[Union[Annotated[float, Field(le=100, strict=True, ge=1)], Annotated[int, Field(le=100, strict=True, ge=1)]]], Field(description="Items per page (max 100)")] = None, + offset: Annotated[Optional[Union[Annotated[float, Field(strict=True, ge=0)], Annotated[int, Field(strict=True, ge=0)]]], Field(description="Paging offset")] = None, + page_cursor: Annotated[Optional[StrictStr], Field(description="Page cursor to get the next page")] = None, + page_size: Annotated[Optional[Union[Annotated[float, Field(le=100, strict=True, ge=1)], Annotated[int, Field(le=100, strict=True, ge=1)]]], Field(description="Number of items per page, requesting more then max will return max items")] = None, + type: Annotated[Optional[StrictStr], Field(description="The type of the contract templates you wish to retrieve. Can accept one type, more or none")] = None, + initialization_phase: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[TemplatesPaginatedResponse]: + """List all contract templates + + Return minimal representation of all the contract templates available for the workspace + + :param limit: Items per page (max 100) + :type limit: float + :param offset: Paging offset + :type offset: float + :param page_cursor: Page cursor to get the next page + :type page_cursor: str + :param page_size: Number of items per page, requesting more then max will return max items + :type page_size: float + :param type: The type of the contract templates you wish to retrieve. Can accept one type, more or none + :type type: str + :param initialization_phase: + :type initialization_phase: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_contract_templates_serialize( + limit=limit, + offset=offset, + page_cursor=page_cursor, + page_size=page_size, + type=type, + initialization_phase=initialization_phase, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "TemplatesPaginatedResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_contract_templates_without_preload_content( + self, + limit: Annotated[Optional[Union[Annotated[float, Field(le=100, strict=True, ge=1)], Annotated[int, Field(le=100, strict=True, ge=1)]]], Field(description="Items per page (max 100)")] = None, + offset: Annotated[Optional[Union[Annotated[float, Field(strict=True, ge=0)], Annotated[int, Field(strict=True, ge=0)]]], Field(description="Paging offset")] = None, + page_cursor: Annotated[Optional[StrictStr], Field(description="Page cursor to get the next page")] = None, + page_size: Annotated[Optional[Union[Annotated[float, Field(le=100, strict=True, ge=1)], Annotated[int, Field(le=100, strict=True, ge=1)]]], Field(description="Number of items per page, requesting more then max will return max items")] = None, + type: Annotated[Optional[StrictStr], Field(description="The type of the contract templates you wish to retrieve. Can accept one type, more or none")] = None, + initialization_phase: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List all contract templates + + Return minimal representation of all the contract templates available for the workspace + + :param limit: Items per page (max 100) + :type limit: float + :param offset: Paging offset + :type offset: float + :param page_cursor: Page cursor to get the next page + :type page_cursor: str + :param page_size: Number of items per page, requesting more then max will return max items + :type page_size: float + :param type: The type of the contract templates you wish to retrieve. Can accept one type, more or none + :type type: str + :param initialization_phase: + :type initialization_phase: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_contract_templates_serialize( + limit=limit, + offset=offset, + page_cursor=page_cursor, + page_size=page_size, + type=type, + initialization_phase=initialization_phase, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "TemplatesPaginatedResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_contract_templates_serialize( + self, + limit, + offset, + page_cursor, + page_size, + type, + initialization_phase, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if limit is not None: + + _query_params.append(('limit', limit)) + + if offset is not None: + + _query_params.append(('offset', offset)) + + if page_cursor is not None: + + _query_params.append(('pageCursor', page_cursor)) + + if page_size is not None: + + _query_params.append(('pageSize', page_size)) + + if type is not None: + + _query_params.append(('type', type)) + + if initialization_phase is not None: + + _query_params.append(('initializationPhase', initialization_phase)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/tokenization/templates', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_function_abi_by_contract_template_id( + self, + contract_template_id: Annotated[StrictStr, Field(description="The Contract Template identifier")], + function_signature: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> AbiFunction: + """Return contract template's function + + Return contract template`s function ABI by signature + + :param contract_template_id: The Contract Template identifier (required) + :type contract_template_id: str + :param function_signature: (required) + :type function_signature: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_function_abi_by_contract_template_id_serialize( + contract_template_id=contract_template_id, + function_signature=function_signature, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AbiFunction", + '404': "HttpContractDoesNotExistError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_function_abi_by_contract_template_id_with_http_info( + self, + contract_template_id: Annotated[StrictStr, Field(description="The Contract Template identifier")], + function_signature: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[AbiFunction]: + """Return contract template's function + + Return contract template`s function ABI by signature + + :param contract_template_id: The Contract Template identifier (required) + :type contract_template_id: str + :param function_signature: (required) + :type function_signature: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_function_abi_by_contract_template_id_serialize( + contract_template_id=contract_template_id, + function_signature=function_signature, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AbiFunction", + '404': "HttpContractDoesNotExistError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_function_abi_by_contract_template_id_without_preload_content( + self, + contract_template_id: Annotated[StrictStr, Field(description="The Contract Template identifier")], + function_signature: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Return contract template's function + + Return contract template`s function ABI by signature + + :param contract_template_id: The Contract Template identifier (required) + :type contract_template_id: str + :param function_signature: (required) + :type function_signature: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_function_abi_by_contract_template_id_serialize( + contract_template_id=contract_template_id, + function_signature=function_signature, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AbiFunction", + '404': "HttpContractDoesNotExistError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_function_abi_by_contract_template_id_serialize( + self, + contract_template_id, + function_signature, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if contract_template_id is not None: + _path_params['contractTemplateId'] = contract_template_id + # process the query parameters + if function_signature is not None: + + _query_params.append(('functionSignature', function_signature)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/tokenization/templates/{contractTemplateId}/function', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def upload_contract_template( + self, + contract_upload_request: ContractUploadRequest, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ContractTemplateDto: + """Upload contract template + + Upload a new contract template. This contract template will be available for the workspace + + :param contract_upload_request: (required) + :type contract_upload_request: ContractUploadRequest + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._upload_contract_template_serialize( + contract_upload_request=contract_upload_request, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "ContractTemplateDto", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def upload_contract_template_with_http_info( + self, + contract_upload_request: ContractUploadRequest, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ContractTemplateDto]: + """Upload contract template + + Upload a new contract template. This contract template will be available for the workspace + + :param contract_upload_request: (required) + :type contract_upload_request: ContractUploadRequest + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._upload_contract_template_serialize( + contract_upload_request=contract_upload_request, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "ContractTemplateDto", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def upload_contract_template_without_preload_content( + self, + contract_upload_request: ContractUploadRequest, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Upload contract template + + Upload a new contract template. This contract template will be available for the workspace + + :param contract_upload_request: (required) + :type contract_upload_request: ContractUploadRequest + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._upload_contract_template_serialize( + contract_upload_request=contract_upload_request, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "ContractTemplateDto", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _upload_contract_template_serialize( + self, + contract_upload_request, + idempotency_key, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + if contract_upload_request is not None: + _body_params = contract_upload_request + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/tokenization/templates', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/fireblocks_client/api/contracts_api.py b/fireblocks_client/api/contracts_api.py new file mode 100644 index 00000000..828895c1 --- /dev/null +++ b/fireblocks_client/api/contracts_api.py @@ -0,0 +1,1943 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from pydantic import Field, StrictStr +from typing import Optional +from typing_extensions import Annotated +from fireblocks_client.models.add_contract_asset_request import AddContractAssetRequest +from fireblocks_client.models.create_contract_request import CreateContractRequest +from fireblocks_client.models.external_wallet_asset import ExternalWalletAsset +from fireblocks_client.models.unmanaged_wallet import UnmanagedWallet + +from fireblocks_client.api_client import ApiClient, RequestSerialized +from fireblocks_client.api_response import ApiResponse +from fireblocks_client.rest import RESTResponseType + + +class ContractsApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def add_contract_asset( + self, + contract_id: Annotated[StrictStr, Field(description="The ID of the contract")], + asset_id: Annotated[StrictStr, Field(description="The ID of the asset to add")], + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + add_contract_asset_request: Optional[AddContractAssetRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ExternalWalletAsset: + """Add an asset to a contract + + Adds an asset to an existing contract. + + :param contract_id: The ID of the contract (required) + :type contract_id: str + :param asset_id: The ID of the asset to add (required) + :type asset_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: str + :param add_contract_asset_request: + :type add_contract_asset_request: AddContractAssetRequest + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._add_contract_asset_serialize( + contract_id=contract_id, + asset_id=asset_id, + idempotency_key=idempotency_key, + add_contract_asset_request=add_contract_asset_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ExternalWalletAsset", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def add_contract_asset_with_http_info( + self, + contract_id: Annotated[StrictStr, Field(description="The ID of the contract")], + asset_id: Annotated[StrictStr, Field(description="The ID of the asset to add")], + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + add_contract_asset_request: Optional[AddContractAssetRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ExternalWalletAsset]: + """Add an asset to a contract + + Adds an asset to an existing contract. + + :param contract_id: The ID of the contract (required) + :type contract_id: str + :param asset_id: The ID of the asset to add (required) + :type asset_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: str + :param add_contract_asset_request: + :type add_contract_asset_request: AddContractAssetRequest + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._add_contract_asset_serialize( + contract_id=contract_id, + asset_id=asset_id, + idempotency_key=idempotency_key, + add_contract_asset_request=add_contract_asset_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ExternalWalletAsset", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def add_contract_asset_without_preload_content( + self, + contract_id: Annotated[StrictStr, Field(description="The ID of the contract")], + asset_id: Annotated[StrictStr, Field(description="The ID of the asset to add")], + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + add_contract_asset_request: Optional[AddContractAssetRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Add an asset to a contract + + Adds an asset to an existing contract. + + :param contract_id: The ID of the contract (required) + :type contract_id: str + :param asset_id: The ID of the asset to add (required) + :type asset_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: str + :param add_contract_asset_request: + :type add_contract_asset_request: AddContractAssetRequest + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._add_contract_asset_serialize( + contract_id=contract_id, + asset_id=asset_id, + idempotency_key=idempotency_key, + add_contract_asset_request=add_contract_asset_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ExternalWalletAsset", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _add_contract_asset_serialize( + self, + contract_id, + asset_id, + idempotency_key, + add_contract_asset_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if contract_id is not None: + _path_params['contractId'] = contract_id + if asset_id is not None: + _path_params['assetId'] = asset_id + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + if add_contract_asset_request is not None: + _body_params = add_contract_asset_request + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/contracts/{contractId}/{assetId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def create_contract( + self, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + create_contract_request: Optional[CreateContractRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> UnmanagedWallet: + """Create a contract + + Creates a new contract. + + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: str + :param create_contract_request: + :type create_contract_request: CreateContractRequest + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_contract_serialize( + idempotency_key=idempotency_key, + create_contract_request=create_contract_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "UnmanagedWallet", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def create_contract_with_http_info( + self, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + create_contract_request: Optional[CreateContractRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[UnmanagedWallet]: + """Create a contract + + Creates a new contract. + + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: str + :param create_contract_request: + :type create_contract_request: CreateContractRequest + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_contract_serialize( + idempotency_key=idempotency_key, + create_contract_request=create_contract_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "UnmanagedWallet", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def create_contract_without_preload_content( + self, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + create_contract_request: Optional[CreateContractRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Create a contract + + Creates a new contract. + + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: str + :param create_contract_request: + :type create_contract_request: CreateContractRequest + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_contract_serialize( + idempotency_key=idempotency_key, + create_contract_request=create_contract_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "UnmanagedWallet", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _create_contract_serialize( + self, + idempotency_key, + create_contract_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + if create_contract_request is not None: + _body_params = create_contract_request + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/contracts', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def delete_contract( + self, + contract_id: Annotated[StrictStr, Field(description="The ID of the contract to delete")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> None: + """Delete a contract + + Deletes a contract by ID. + + :param contract_id: The ID of the contract to delete (required) + :type contract_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_contract_serialize( + contract_id=contract_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def delete_contract_with_http_info( + self, + contract_id: Annotated[StrictStr, Field(description="The ID of the contract to delete")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[None]: + """Delete a contract + + Deletes a contract by ID. + + :param contract_id: The ID of the contract to delete (required) + :type contract_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_contract_serialize( + contract_id=contract_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def delete_contract_without_preload_content( + self, + contract_id: Annotated[StrictStr, Field(description="The ID of the contract to delete")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Delete a contract + + Deletes a contract by ID. + + :param contract_id: The ID of the contract to delete (required) + :type contract_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_contract_serialize( + contract_id=contract_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _delete_contract_serialize( + self, + contract_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if contract_id is not None: + _path_params['contractId'] = contract_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/contracts/{contractId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def delete_contract_asset( + self, + contract_id: Annotated[StrictStr, Field(description="The ID of the contract")], + asset_id: Annotated[StrictStr, Field(description="The ID of the asset to delete")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> None: + """Delete a contract asset + + Deletes a contract asset by ID. + + :param contract_id: The ID of the contract (required) + :type contract_id: str + :param asset_id: The ID of the asset to delete (required) + :type asset_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_contract_asset_serialize( + contract_id=contract_id, + asset_id=asset_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def delete_contract_asset_with_http_info( + self, + contract_id: Annotated[StrictStr, Field(description="The ID of the contract")], + asset_id: Annotated[StrictStr, Field(description="The ID of the asset to delete")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[None]: + """Delete a contract asset + + Deletes a contract asset by ID. + + :param contract_id: The ID of the contract (required) + :type contract_id: str + :param asset_id: The ID of the asset to delete (required) + :type asset_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_contract_asset_serialize( + contract_id=contract_id, + asset_id=asset_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def delete_contract_asset_without_preload_content( + self, + contract_id: Annotated[StrictStr, Field(description="The ID of the contract")], + asset_id: Annotated[StrictStr, Field(description="The ID of the asset to delete")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Delete a contract asset + + Deletes a contract asset by ID. + + :param contract_id: The ID of the contract (required) + :type contract_id: str + :param asset_id: The ID of the asset to delete (required) + :type asset_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_contract_asset_serialize( + contract_id=contract_id, + asset_id=asset_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _delete_contract_asset_serialize( + self, + contract_id, + asset_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if contract_id is not None: + _path_params['contractId'] = contract_id + if asset_id is not None: + _path_params['assetId'] = asset_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/contracts/{contractId}/{assetId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_contract( + self, + contract_id: Annotated[StrictStr, Field(description="The ID of the contract to return")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> UnmanagedWallet: + """Find a specific contract + + Returns a contract by ID. + + :param contract_id: The ID of the contract to return (required) + :type contract_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_contract_serialize( + contract_id=contract_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "UnmanagedWallet", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_contract_with_http_info( + self, + contract_id: Annotated[StrictStr, Field(description="The ID of the contract to return")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[UnmanagedWallet]: + """Find a specific contract + + Returns a contract by ID. + + :param contract_id: The ID of the contract to return (required) + :type contract_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_contract_serialize( + contract_id=contract_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "UnmanagedWallet", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_contract_without_preload_content( + self, + contract_id: Annotated[StrictStr, Field(description="The ID of the contract to return")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Find a specific contract + + Returns a contract by ID. + + :param contract_id: The ID of the contract to return (required) + :type contract_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_contract_serialize( + contract_id=contract_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "UnmanagedWallet", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_contract_serialize( + self, + contract_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if contract_id is not None: + _path_params['contractId'] = contract_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/contracts/{contractId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_contract_asset( + self, + contract_id: Annotated[StrictStr, Field(description="The ID of the contract")], + asset_id: Annotated[StrictStr, Field(description="The ID of the asset to return")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ExternalWalletAsset: + """Find a contract asset + + Returns a contract asset by ID. + + :param contract_id: The ID of the contract (required) + :type contract_id: str + :param asset_id: The ID of the asset to return (required) + :type asset_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_contract_asset_serialize( + contract_id=contract_id, + asset_id=asset_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ExternalWalletAsset", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_contract_asset_with_http_info( + self, + contract_id: Annotated[StrictStr, Field(description="The ID of the contract")], + asset_id: Annotated[StrictStr, Field(description="The ID of the asset to return")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ExternalWalletAsset]: + """Find a contract asset + + Returns a contract asset by ID. + + :param contract_id: The ID of the contract (required) + :type contract_id: str + :param asset_id: The ID of the asset to return (required) + :type asset_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_contract_asset_serialize( + contract_id=contract_id, + asset_id=asset_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ExternalWalletAsset", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_contract_asset_without_preload_content( + self, + contract_id: Annotated[StrictStr, Field(description="The ID of the contract")], + asset_id: Annotated[StrictStr, Field(description="The ID of the asset to return")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Find a contract asset + + Returns a contract asset by ID. + + :param contract_id: The ID of the contract (required) + :type contract_id: str + :param asset_id: The ID of the asset to return (required) + :type asset_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_contract_asset_serialize( + contract_id=contract_id, + asset_id=asset_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ExternalWalletAsset", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_contract_asset_serialize( + self, + contract_id, + asset_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if contract_id is not None: + _path_params['contractId'] = contract_id + if asset_id is not None: + _path_params['assetId'] = asset_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/contracts/{contractId}/{assetId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_contracts( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> List[UnmanagedWallet]: + """List contracts + + Gets a list of contracts. + + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_contracts_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[UnmanagedWallet]", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_contracts_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[List[UnmanagedWallet]]: + """List contracts + + Gets a list of contracts. + + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_contracts_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[UnmanagedWallet]", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_contracts_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List contracts + + Gets a list of contracts. + + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_contracts_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[UnmanagedWallet]", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_contracts_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/contracts', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/fireblocks_client/api/cosigners_beta_api.py b/fireblocks_client/api/cosigners_beta_api.py new file mode 100644 index 00000000..6e954977 --- /dev/null +++ b/fireblocks_client/api/cosigners_beta_api.py @@ -0,0 +1,1459 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from pydantic import Field, StrictStr, field_validator +from typing import Optional, Union +from typing_extensions import Annotated +from fireblocks_client.models.api_key import ApiKey +from fireblocks_client.models.api_keys_paginated_response import ApiKeysPaginatedResponse +from fireblocks_client.models.cosigner import Cosigner +from fireblocks_client.models.cosigners_paginated_response import CosignersPaginatedResponse +from fireblocks_client.models.rename_cosigner import RenameCosigner + +from fireblocks_client.api_client import ApiClient, RequestSerialized +from fireblocks_client.api_response import ApiResponse +from fireblocks_client.rest import RESTResponseType + + +class CosignersBetaApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def get_api_key( + self, + cosigner_id: Annotated[StrictStr, Field(description="The unique identifier of the cosigner")], + api_key_id: Annotated[StrictStr, Field(description="The unique identifier of the API key")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiKey: + """Get API key + + Get an API key by ID **Note:** These endpoints are currently in beta and might be subject to changes. + + :param cosigner_id: The unique identifier of the cosigner (required) + :type cosigner_id: str + :param api_key_id: The unique identifier of the API key (required) + :type api_key_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_api_key_serialize( + cosigner_id=cosigner_id, + api_key_id=api_key_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ApiKey", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_api_key_with_http_info( + self, + cosigner_id: Annotated[StrictStr, Field(description="The unique identifier of the cosigner")], + api_key_id: Annotated[StrictStr, Field(description="The unique identifier of the API key")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ApiKey]: + """Get API key + + Get an API key by ID **Note:** These endpoints are currently in beta and might be subject to changes. + + :param cosigner_id: The unique identifier of the cosigner (required) + :type cosigner_id: str + :param api_key_id: The unique identifier of the API key (required) + :type api_key_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_api_key_serialize( + cosigner_id=cosigner_id, + api_key_id=api_key_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ApiKey", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_api_key_without_preload_content( + self, + cosigner_id: Annotated[StrictStr, Field(description="The unique identifier of the cosigner")], + api_key_id: Annotated[StrictStr, Field(description="The unique identifier of the API key")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get API key + + Get an API key by ID **Note:** These endpoints are currently in beta and might be subject to changes. + + :param cosigner_id: The unique identifier of the cosigner (required) + :type cosigner_id: str + :param api_key_id: The unique identifier of the API key (required) + :type api_key_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_api_key_serialize( + cosigner_id=cosigner_id, + api_key_id=api_key_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ApiKey", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_api_key_serialize( + self, + cosigner_id, + api_key_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if cosigner_id is not None: + _path_params['cosignerId'] = cosigner_id + if api_key_id is not None: + _path_params['apiKeyId'] = api_key_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/cosigners/{cosignerId}/api_keys/{apiKeyId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_api_keys( + self, + cosigner_id: Annotated[StrictStr, Field(description="The unique identifier of the cosigner")], + order: Annotated[Optional[StrictStr], Field(description="ASC / DESC ordering (default DESC)")] = None, + page_cursor: Annotated[Optional[StrictStr], Field(description="Cursor of the required page")] = None, + page_size: Annotated[Optional[Union[Annotated[float, Field(le=100, strict=True, ge=1)], Annotated[int, Field(le=100, strict=True, ge=1)]]], Field(description="Maximum number of items in the page")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiKeysPaginatedResponse: + """Get all API keys + + Get all cosigner paired API keys (paginated) **Note:** These endpoints are currently in beta and might be subject to changes. + + :param cosigner_id: The unique identifier of the cosigner (required) + :type cosigner_id: str + :param order: ASC / DESC ordering (default DESC) + :type order: str + :param page_cursor: Cursor of the required page + :type page_cursor: str + :param page_size: Maximum number of items in the page + :type page_size: float + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_api_keys_serialize( + cosigner_id=cosigner_id, + order=order, + page_cursor=page_cursor, + page_size=page_size, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ApiKeysPaginatedResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_api_keys_with_http_info( + self, + cosigner_id: Annotated[StrictStr, Field(description="The unique identifier of the cosigner")], + order: Annotated[Optional[StrictStr], Field(description="ASC / DESC ordering (default DESC)")] = None, + page_cursor: Annotated[Optional[StrictStr], Field(description="Cursor of the required page")] = None, + page_size: Annotated[Optional[Union[Annotated[float, Field(le=100, strict=True, ge=1)], Annotated[int, Field(le=100, strict=True, ge=1)]]], Field(description="Maximum number of items in the page")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ApiKeysPaginatedResponse]: + """Get all API keys + + Get all cosigner paired API keys (paginated) **Note:** These endpoints are currently in beta and might be subject to changes. + + :param cosigner_id: The unique identifier of the cosigner (required) + :type cosigner_id: str + :param order: ASC / DESC ordering (default DESC) + :type order: str + :param page_cursor: Cursor of the required page + :type page_cursor: str + :param page_size: Maximum number of items in the page + :type page_size: float + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_api_keys_serialize( + cosigner_id=cosigner_id, + order=order, + page_cursor=page_cursor, + page_size=page_size, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ApiKeysPaginatedResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_api_keys_without_preload_content( + self, + cosigner_id: Annotated[StrictStr, Field(description="The unique identifier of the cosigner")], + order: Annotated[Optional[StrictStr], Field(description="ASC / DESC ordering (default DESC)")] = None, + page_cursor: Annotated[Optional[StrictStr], Field(description="Cursor of the required page")] = None, + page_size: Annotated[Optional[Union[Annotated[float, Field(le=100, strict=True, ge=1)], Annotated[int, Field(le=100, strict=True, ge=1)]]], Field(description="Maximum number of items in the page")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get all API keys + + Get all cosigner paired API keys (paginated) **Note:** These endpoints are currently in beta and might be subject to changes. + + :param cosigner_id: The unique identifier of the cosigner (required) + :type cosigner_id: str + :param order: ASC / DESC ordering (default DESC) + :type order: str + :param page_cursor: Cursor of the required page + :type page_cursor: str + :param page_size: Maximum number of items in the page + :type page_size: float + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_api_keys_serialize( + cosigner_id=cosigner_id, + order=order, + page_cursor=page_cursor, + page_size=page_size, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ApiKeysPaginatedResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_api_keys_serialize( + self, + cosigner_id, + order, + page_cursor, + page_size, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if cosigner_id is not None: + _path_params['cosignerId'] = cosigner_id + # process the query parameters + if order is not None: + + _query_params.append(('order', order)) + + if page_cursor is not None: + + _query_params.append(('pageCursor', page_cursor)) + + if page_size is not None: + + _query_params.append(('pageSize', page_size)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/cosigners/{cosignerId}/api_keys', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_cosigner( + self, + cosigner_id: Annotated[StrictStr, Field(description="The unique identifier of the cosigner")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> Cosigner: + """Get cosigner + + Get a cosigner by ID **Note:** These endpoints are currently in beta and might be subject to changes. + + :param cosigner_id: The unique identifier of the cosigner (required) + :type cosigner_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_cosigner_serialize( + cosigner_id=cosigner_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "Cosigner", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_cosigner_with_http_info( + self, + cosigner_id: Annotated[StrictStr, Field(description="The unique identifier of the cosigner")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[Cosigner]: + """Get cosigner + + Get a cosigner by ID **Note:** These endpoints are currently in beta and might be subject to changes. + + :param cosigner_id: The unique identifier of the cosigner (required) + :type cosigner_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_cosigner_serialize( + cosigner_id=cosigner_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "Cosigner", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_cosigner_without_preload_content( + self, + cosigner_id: Annotated[StrictStr, Field(description="The unique identifier of the cosigner")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get cosigner + + Get a cosigner by ID **Note:** These endpoints are currently in beta and might be subject to changes. + + :param cosigner_id: The unique identifier of the cosigner (required) + :type cosigner_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_cosigner_serialize( + cosigner_id=cosigner_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "Cosigner", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_cosigner_serialize( + self, + cosigner_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if cosigner_id is not None: + _path_params['cosignerId'] = cosigner_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/cosigners/{cosignerId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_cosigners( + self, + order: Annotated[Optional[StrictStr], Field(description="ASC / DESC ordering (default DESC)")] = None, + page_cursor: Annotated[Optional[StrictStr], Field(description="Cursor of the required page")] = None, + page_size: Annotated[Optional[Union[Annotated[float, Field(le=100, strict=True, ge=1)], Annotated[int, Field(le=100, strict=True, ge=1)]]], Field(description="Maximum number of items in the page")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> CosignersPaginatedResponse: + """Get all cosigners + + Get all workspace cosigners (paginated) **Note:** These endpoints are currently in beta and might be subject to changes. + + :param order: ASC / DESC ordering (default DESC) + :type order: str + :param page_cursor: Cursor of the required page + :type page_cursor: str + :param page_size: Maximum number of items in the page + :type page_size: float + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_cosigners_serialize( + order=order, + page_cursor=page_cursor, + page_size=page_size, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "CosignersPaginatedResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_cosigners_with_http_info( + self, + order: Annotated[Optional[StrictStr], Field(description="ASC / DESC ordering (default DESC)")] = None, + page_cursor: Annotated[Optional[StrictStr], Field(description="Cursor of the required page")] = None, + page_size: Annotated[Optional[Union[Annotated[float, Field(le=100, strict=True, ge=1)], Annotated[int, Field(le=100, strict=True, ge=1)]]], Field(description="Maximum number of items in the page")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[CosignersPaginatedResponse]: + """Get all cosigners + + Get all workspace cosigners (paginated) **Note:** These endpoints are currently in beta and might be subject to changes. + + :param order: ASC / DESC ordering (default DESC) + :type order: str + :param page_cursor: Cursor of the required page + :type page_cursor: str + :param page_size: Maximum number of items in the page + :type page_size: float + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_cosigners_serialize( + order=order, + page_cursor=page_cursor, + page_size=page_size, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "CosignersPaginatedResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_cosigners_without_preload_content( + self, + order: Annotated[Optional[StrictStr], Field(description="ASC / DESC ordering (default DESC)")] = None, + page_cursor: Annotated[Optional[StrictStr], Field(description="Cursor of the required page")] = None, + page_size: Annotated[Optional[Union[Annotated[float, Field(le=100, strict=True, ge=1)], Annotated[int, Field(le=100, strict=True, ge=1)]]], Field(description="Maximum number of items in the page")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get all cosigners + + Get all workspace cosigners (paginated) **Note:** These endpoints are currently in beta and might be subject to changes. + + :param order: ASC / DESC ordering (default DESC) + :type order: str + :param page_cursor: Cursor of the required page + :type page_cursor: str + :param page_size: Maximum number of items in the page + :type page_size: float + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_cosigners_serialize( + order=order, + page_cursor=page_cursor, + page_size=page_size, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "CosignersPaginatedResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_cosigners_serialize( + self, + order, + page_cursor, + page_size, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if order is not None: + + _query_params.append(('order', order)) + + if page_cursor is not None: + + _query_params.append(('pageCursor', page_cursor)) + + if page_size is not None: + + _query_params.append(('pageSize', page_size)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/cosigners', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def rename_cosigner( + self, + cosigner_id: Annotated[StrictStr, Field(description="The unique identifier of the cosigner")], + rename_cosigner: RenameCosigner, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> Cosigner: + """Rename cosigner + + Rename a cosigner by ID **Note:** These endpoints are currently in beta and might be subject to changes. + + :param cosigner_id: The unique identifier of the cosigner (required) + :type cosigner_id: str + :param rename_cosigner: (required) + :type rename_cosigner: RenameCosigner + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._rename_cosigner_serialize( + cosigner_id=cosigner_id, + rename_cosigner=rename_cosigner, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "Cosigner", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def rename_cosigner_with_http_info( + self, + cosigner_id: Annotated[StrictStr, Field(description="The unique identifier of the cosigner")], + rename_cosigner: RenameCosigner, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[Cosigner]: + """Rename cosigner + + Rename a cosigner by ID **Note:** These endpoints are currently in beta and might be subject to changes. + + :param cosigner_id: The unique identifier of the cosigner (required) + :type cosigner_id: str + :param rename_cosigner: (required) + :type rename_cosigner: RenameCosigner + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._rename_cosigner_serialize( + cosigner_id=cosigner_id, + rename_cosigner=rename_cosigner, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "Cosigner", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def rename_cosigner_without_preload_content( + self, + cosigner_id: Annotated[StrictStr, Field(description="The unique identifier of the cosigner")], + rename_cosigner: RenameCosigner, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Rename cosigner + + Rename a cosigner by ID **Note:** These endpoints are currently in beta and might be subject to changes. + + :param cosigner_id: The unique identifier of the cosigner (required) + :type cosigner_id: str + :param rename_cosigner: (required) + :type rename_cosigner: RenameCosigner + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._rename_cosigner_serialize( + cosigner_id=cosigner_id, + rename_cosigner=rename_cosigner, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "Cosigner", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _rename_cosigner_serialize( + self, + cosigner_id, + rename_cosigner, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if cosigner_id is not None: + _path_params['cosignerId'] = cosigner_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if rename_cosigner is not None: + _body_params = rename_cosigner + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='PATCH', + resource_path='/cosigners/{cosignerId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/fireblocks_client/api/deployed_contracts_api.py b/fireblocks_client/api/deployed_contracts_api.py new file mode 100644 index 00000000..624c8dcb --- /dev/null +++ b/fireblocks_client/api/deployed_contracts_api.py @@ -0,0 +1,897 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from pydantic import Field, StrictStr +from typing import Optional, Union +from typing_extensions import Annotated +from fireblocks_client.models.deployed_contract_response_dto import DeployedContractResponseDto +from fireblocks_client.models.deployed_contracts_paginated_response import DeployedContractsPaginatedResponse + +from fireblocks_client.api_client import ApiClient, RequestSerialized +from fireblocks_client.api_response import ApiResponse +from fireblocks_client.rest import RESTResponseType + + +class DeployedContractsApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def get_deployed_contract_by_address( + self, + contract_address: Annotated[StrictStr, Field(description="The contract's onchain address")], + asset_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> DeployedContractResponseDto: + """Return deployed contract data + + Return deployed contract data by blockchain native asset id and contract address + + :param contract_address: The contract's onchain address (required) + :type contract_address: str + :param asset_id: (required) + :type asset_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_deployed_contract_by_address_serialize( + contract_address=contract_address, + asset_id=asset_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeployedContractResponseDto", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_deployed_contract_by_address_with_http_info( + self, + contract_address: Annotated[StrictStr, Field(description="The contract's onchain address")], + asset_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[DeployedContractResponseDto]: + """Return deployed contract data + + Return deployed contract data by blockchain native asset id and contract address + + :param contract_address: The contract's onchain address (required) + :type contract_address: str + :param asset_id: (required) + :type asset_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_deployed_contract_by_address_serialize( + contract_address=contract_address, + asset_id=asset_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeployedContractResponseDto", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_deployed_contract_by_address_without_preload_content( + self, + contract_address: Annotated[StrictStr, Field(description="The contract's onchain address")], + asset_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Return deployed contract data + + Return deployed contract data by blockchain native asset id and contract address + + :param contract_address: The contract's onchain address (required) + :type contract_address: str + :param asset_id: (required) + :type asset_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_deployed_contract_by_address_serialize( + contract_address=contract_address, + asset_id=asset_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeployedContractResponseDto", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_deployed_contract_by_address_serialize( + self, + contract_address, + asset_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if contract_address is not None: + _path_params['contractAddress'] = contract_address + if asset_id is not None: + _path_params['assetId'] = asset_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/tokenization/contracts/{assetId}/{contractAddress}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_deployed_contract_by_id( + self, + id: Annotated[StrictStr, Field(description="The deployed contract data identifier")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> DeployedContractResponseDto: + """Return deployed contract data by id + + Return deployed contract data by id + + :param id: The deployed contract data identifier (required) + :type id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_deployed_contract_by_id_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeployedContractResponseDto", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_deployed_contract_by_id_with_http_info( + self, + id: Annotated[StrictStr, Field(description="The deployed contract data identifier")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[DeployedContractResponseDto]: + """Return deployed contract data by id + + Return deployed contract data by id + + :param id: The deployed contract data identifier (required) + :type id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_deployed_contract_by_id_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeployedContractResponseDto", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_deployed_contract_by_id_without_preload_content( + self, + id: Annotated[StrictStr, Field(description="The deployed contract data identifier")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Return deployed contract data by id + + Return deployed contract data by id + + :param id: The deployed contract data identifier (required) + :type id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_deployed_contract_by_id_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeployedContractResponseDto", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_deployed_contract_by_id_serialize( + self, + id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/tokenization/contracts/{id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_deployed_contracts( + self, + page_cursor: Annotated[Optional[StrictStr], Field(description="Page cursor to get the next page")] = None, + page_size: Annotated[Optional[Union[Annotated[float, Field(le=100, strict=True, ge=1)], Annotated[int, Field(le=100, strict=True, ge=1)]]], Field(description="Number of items per page, requesting more then max will return max items")] = None, + contract_address: Annotated[Optional[StrictStr], Field(description="The contract's onchain address")] = None, + asset_id: Optional[StrictStr] = None, + template_id: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> DeployedContractsPaginatedResponse: + """List deployed contracts data + + Return a filtered lean representation of the deployed contracts data on all blockchains (paginated) + + :param page_cursor: Page cursor to get the next page + :type page_cursor: str + :param page_size: Number of items per page, requesting more then max will return max items + :type page_size: float + :param contract_address: The contract's onchain address + :type contract_address: str + :param asset_id: + :type asset_id: str + :param template_id: + :type template_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_deployed_contracts_serialize( + page_cursor=page_cursor, + page_size=page_size, + contract_address=contract_address, + asset_id=asset_id, + template_id=template_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeployedContractsPaginatedResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_deployed_contracts_with_http_info( + self, + page_cursor: Annotated[Optional[StrictStr], Field(description="Page cursor to get the next page")] = None, + page_size: Annotated[Optional[Union[Annotated[float, Field(le=100, strict=True, ge=1)], Annotated[int, Field(le=100, strict=True, ge=1)]]], Field(description="Number of items per page, requesting more then max will return max items")] = None, + contract_address: Annotated[Optional[StrictStr], Field(description="The contract's onchain address")] = None, + asset_id: Optional[StrictStr] = None, + template_id: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[DeployedContractsPaginatedResponse]: + """List deployed contracts data + + Return a filtered lean representation of the deployed contracts data on all blockchains (paginated) + + :param page_cursor: Page cursor to get the next page + :type page_cursor: str + :param page_size: Number of items per page, requesting more then max will return max items + :type page_size: float + :param contract_address: The contract's onchain address + :type contract_address: str + :param asset_id: + :type asset_id: str + :param template_id: + :type template_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_deployed_contracts_serialize( + page_cursor=page_cursor, + page_size=page_size, + contract_address=contract_address, + asset_id=asset_id, + template_id=template_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeployedContractsPaginatedResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_deployed_contracts_without_preload_content( + self, + page_cursor: Annotated[Optional[StrictStr], Field(description="Page cursor to get the next page")] = None, + page_size: Annotated[Optional[Union[Annotated[float, Field(le=100, strict=True, ge=1)], Annotated[int, Field(le=100, strict=True, ge=1)]]], Field(description="Number of items per page, requesting more then max will return max items")] = None, + contract_address: Annotated[Optional[StrictStr], Field(description="The contract's onchain address")] = None, + asset_id: Optional[StrictStr] = None, + template_id: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List deployed contracts data + + Return a filtered lean representation of the deployed contracts data on all blockchains (paginated) + + :param page_cursor: Page cursor to get the next page + :type page_cursor: str + :param page_size: Number of items per page, requesting more then max will return max items + :type page_size: float + :param contract_address: The contract's onchain address + :type contract_address: str + :param asset_id: + :type asset_id: str + :param template_id: + :type template_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_deployed_contracts_serialize( + page_cursor=page_cursor, + page_size=page_size, + contract_address=contract_address, + asset_id=asset_id, + template_id=template_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeployedContractsPaginatedResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_deployed_contracts_serialize( + self, + page_cursor, + page_size, + contract_address, + asset_id, + template_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if page_cursor is not None: + + _query_params.append(('pageCursor', page_cursor)) + + if page_size is not None: + + _query_params.append(('pageSize', page_size)) + + if contract_address is not None: + + _query_params.append(('contractAddress', contract_address)) + + if asset_id is not None: + + _query_params.append(('assetId', asset_id)) + + if template_id is not None: + + _query_params.append(('templateId', template_id)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/tokenization/contracts', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/fireblocks_client/api/exchange_accounts_api.py b/fireblocks_client/api/exchange_accounts_api.py new file mode 100644 index 00000000..6daa0060 --- /dev/null +++ b/fireblocks_client/api/exchange_accounts_api.py @@ -0,0 +1,1468 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from pydantic import Field, StrictStr +from typing import Optional, Union +from typing_extensions import Annotated +from fireblocks_client.models.convert_assets_request import ConvertAssetsRequest +from fireblocks_client.models.convert_assets_response import ConvertAssetsResponse +from fireblocks_client.models.create_internal_transfer_request import CreateInternalTransferRequest +from fireblocks_client.models.exchange_account import ExchangeAccount +from fireblocks_client.models.exchange_accounts_paged import ExchangeAccountsPaged +from fireblocks_client.models.exchange_asset import ExchangeAsset +from fireblocks_client.models.internal_transfer_response import InternalTransferResponse + +from fireblocks_client.api_client import ApiClient, RequestSerialized +from fireblocks_client.api_response import ApiResponse +from fireblocks_client.rest import RESTResponseType + + +class ExchangeAccountsApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def convert_assets( + self, + exchange_account_id: Annotated[StrictStr, Field(description="The ID of the exchange account. Please make sure the exchange supports conversions. To find the ID of your exchange account, use GET/exchange_accounts.")], + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + convert_assets_request: Optional[ConvertAssetsRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ConvertAssetsResponse: + """Convert exchange account funds from the source asset to the destination asset. + + Convert exchange account funds from the source asset to the destination asset. Coinbase (USD to USDC, USDC to USD) and Bitso (MXN to USD) are supported conversions. + + :param exchange_account_id: The ID of the exchange account. Please make sure the exchange supports conversions. To find the ID of your exchange account, use GET/exchange_accounts. (required) + :type exchange_account_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: str + :param convert_assets_request: + :type convert_assets_request: ConvertAssetsRequest + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._convert_assets_serialize( + exchange_account_id=exchange_account_id, + idempotency_key=idempotency_key, + convert_assets_request=convert_assets_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ConvertAssetsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def convert_assets_with_http_info( + self, + exchange_account_id: Annotated[StrictStr, Field(description="The ID of the exchange account. Please make sure the exchange supports conversions. To find the ID of your exchange account, use GET/exchange_accounts.")], + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + convert_assets_request: Optional[ConvertAssetsRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ConvertAssetsResponse]: + """Convert exchange account funds from the source asset to the destination asset. + + Convert exchange account funds from the source asset to the destination asset. Coinbase (USD to USDC, USDC to USD) and Bitso (MXN to USD) are supported conversions. + + :param exchange_account_id: The ID of the exchange account. Please make sure the exchange supports conversions. To find the ID of your exchange account, use GET/exchange_accounts. (required) + :type exchange_account_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: str + :param convert_assets_request: + :type convert_assets_request: ConvertAssetsRequest + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._convert_assets_serialize( + exchange_account_id=exchange_account_id, + idempotency_key=idempotency_key, + convert_assets_request=convert_assets_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ConvertAssetsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def convert_assets_without_preload_content( + self, + exchange_account_id: Annotated[StrictStr, Field(description="The ID of the exchange account. Please make sure the exchange supports conversions. To find the ID of your exchange account, use GET/exchange_accounts.")], + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + convert_assets_request: Optional[ConvertAssetsRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Convert exchange account funds from the source asset to the destination asset. + + Convert exchange account funds from the source asset to the destination asset. Coinbase (USD to USDC, USDC to USD) and Bitso (MXN to USD) are supported conversions. + + :param exchange_account_id: The ID of the exchange account. Please make sure the exchange supports conversions. To find the ID of your exchange account, use GET/exchange_accounts. (required) + :type exchange_account_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: str + :param convert_assets_request: + :type convert_assets_request: ConvertAssetsRequest + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._convert_assets_serialize( + exchange_account_id=exchange_account_id, + idempotency_key=idempotency_key, + convert_assets_request=convert_assets_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ConvertAssetsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _convert_assets_serialize( + self, + exchange_account_id, + idempotency_key, + convert_assets_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if exchange_account_id is not None: + _path_params['exchangeAccountId'] = exchange_account_id + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + if convert_assets_request is not None: + _body_params = convert_assets_request + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/exchange_accounts/{exchangeAccountId}/convert', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_exchange_account( + self, + exchange_account_id: Annotated[StrictStr, Field(description="The ID of the exchange account to return")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ExchangeAccount: + """Find a specific exchange account + + Returns an exchange account by ID. + + :param exchange_account_id: The ID of the exchange account to return (required) + :type exchange_account_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_exchange_account_serialize( + exchange_account_id=exchange_account_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ExchangeAccount", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_exchange_account_with_http_info( + self, + exchange_account_id: Annotated[StrictStr, Field(description="The ID of the exchange account to return")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ExchangeAccount]: + """Find a specific exchange account + + Returns an exchange account by ID. + + :param exchange_account_id: The ID of the exchange account to return (required) + :type exchange_account_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_exchange_account_serialize( + exchange_account_id=exchange_account_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ExchangeAccount", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_exchange_account_without_preload_content( + self, + exchange_account_id: Annotated[StrictStr, Field(description="The ID of the exchange account to return")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Find a specific exchange account + + Returns an exchange account by ID. + + :param exchange_account_id: The ID of the exchange account to return (required) + :type exchange_account_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_exchange_account_serialize( + exchange_account_id=exchange_account_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ExchangeAccount", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_exchange_account_serialize( + self, + exchange_account_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if exchange_account_id is not None: + _path_params['exchangeAccountId'] = exchange_account_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/exchange_accounts/{exchangeAccountId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_exchange_account_asset( + self, + exchange_account_id: Annotated[StrictStr, Field(description="The ID of the exchange account to return")], + asset_id: Annotated[StrictStr, Field(description="The ID of the asset to return")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ExchangeAsset: + """Find an asset for an exchange account + + Returns an asset for an exchange account. + + :param exchange_account_id: The ID of the exchange account to return (required) + :type exchange_account_id: str + :param asset_id: The ID of the asset to return (required) + :type asset_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_exchange_account_asset_serialize( + exchange_account_id=exchange_account_id, + asset_id=asset_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ExchangeAsset", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_exchange_account_asset_with_http_info( + self, + exchange_account_id: Annotated[StrictStr, Field(description="The ID of the exchange account to return")], + asset_id: Annotated[StrictStr, Field(description="The ID of the asset to return")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ExchangeAsset]: + """Find an asset for an exchange account + + Returns an asset for an exchange account. + + :param exchange_account_id: The ID of the exchange account to return (required) + :type exchange_account_id: str + :param asset_id: The ID of the asset to return (required) + :type asset_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_exchange_account_asset_serialize( + exchange_account_id=exchange_account_id, + asset_id=asset_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ExchangeAsset", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_exchange_account_asset_without_preload_content( + self, + exchange_account_id: Annotated[StrictStr, Field(description="The ID of the exchange account to return")], + asset_id: Annotated[StrictStr, Field(description="The ID of the asset to return")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Find an asset for an exchange account + + Returns an asset for an exchange account. + + :param exchange_account_id: The ID of the exchange account to return (required) + :type exchange_account_id: str + :param asset_id: The ID of the asset to return (required) + :type asset_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_exchange_account_asset_serialize( + exchange_account_id=exchange_account_id, + asset_id=asset_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ExchangeAsset", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_exchange_account_asset_serialize( + self, + exchange_account_id, + asset_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if exchange_account_id is not None: + _path_params['exchangeAccountId'] = exchange_account_id + if asset_id is not None: + _path_params['assetId'] = asset_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/exchange_accounts/{exchangeAccountId}/{assetId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_paged_exchange_accounts( + self, + limit: Annotated[Union[Annotated[float, Field(le=5, strict=True, ge=1)], Annotated[int, Field(le=5, strict=True, ge=1)]], Field(description="number of exchanges per page")], + before: Optional[StrictStr] = None, + after: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> List[ExchangeAccountsPaged]: + """Pagination list exchange accounts + + Returns a page include exchange accounts. + + :param limit: number of exchanges per page (required) + :type limit: float + :param before: + :type before: str + :param after: + :type after: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_paged_exchange_accounts_serialize( + limit=limit, + before=before, + after=after, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[ExchangeAccountsPaged]", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_paged_exchange_accounts_with_http_info( + self, + limit: Annotated[Union[Annotated[float, Field(le=5, strict=True, ge=1)], Annotated[int, Field(le=5, strict=True, ge=1)]], Field(description="number of exchanges per page")], + before: Optional[StrictStr] = None, + after: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[List[ExchangeAccountsPaged]]: + """Pagination list exchange accounts + + Returns a page include exchange accounts. + + :param limit: number of exchanges per page (required) + :type limit: float + :param before: + :type before: str + :param after: + :type after: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_paged_exchange_accounts_serialize( + limit=limit, + before=before, + after=after, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[ExchangeAccountsPaged]", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_paged_exchange_accounts_without_preload_content( + self, + limit: Annotated[Union[Annotated[float, Field(le=5, strict=True, ge=1)], Annotated[int, Field(le=5, strict=True, ge=1)]], Field(description="number of exchanges per page")], + before: Optional[StrictStr] = None, + after: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Pagination list exchange accounts + + Returns a page include exchange accounts. + + :param limit: number of exchanges per page (required) + :type limit: float + :param before: + :type before: str + :param after: + :type after: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_paged_exchange_accounts_serialize( + limit=limit, + before=before, + after=after, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[ExchangeAccountsPaged]", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_paged_exchange_accounts_serialize( + self, + limit, + before, + after, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if before is not None: + + _query_params.append(('before', before)) + + if after is not None: + + _query_params.append(('after', after)) + + if limit is not None: + + _query_params.append(('limit', limit)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/exchange_accounts/paged', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def internal_transfer( + self, + exchange_account_id: Annotated[StrictStr, Field(description="The ID of the exchange account to return")], + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + create_internal_transfer_request: Optional[CreateInternalTransferRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> InternalTransferResponse: + """Internal transfer for exchange accounts + + Transfers funds between trading accounts under the same exchange account. + + :param exchange_account_id: The ID of the exchange account to return (required) + :type exchange_account_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: str + :param create_internal_transfer_request: + :type create_internal_transfer_request: CreateInternalTransferRequest + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._internal_transfer_serialize( + exchange_account_id=exchange_account_id, + idempotency_key=idempotency_key, + create_internal_transfer_request=create_internal_transfer_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "InternalTransferResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def internal_transfer_with_http_info( + self, + exchange_account_id: Annotated[StrictStr, Field(description="The ID of the exchange account to return")], + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + create_internal_transfer_request: Optional[CreateInternalTransferRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[InternalTransferResponse]: + """Internal transfer for exchange accounts + + Transfers funds between trading accounts under the same exchange account. + + :param exchange_account_id: The ID of the exchange account to return (required) + :type exchange_account_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: str + :param create_internal_transfer_request: + :type create_internal_transfer_request: CreateInternalTransferRequest + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._internal_transfer_serialize( + exchange_account_id=exchange_account_id, + idempotency_key=idempotency_key, + create_internal_transfer_request=create_internal_transfer_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "InternalTransferResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def internal_transfer_without_preload_content( + self, + exchange_account_id: Annotated[StrictStr, Field(description="The ID of the exchange account to return")], + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + create_internal_transfer_request: Optional[CreateInternalTransferRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Internal transfer for exchange accounts + + Transfers funds between trading accounts under the same exchange account. + + :param exchange_account_id: The ID of the exchange account to return (required) + :type exchange_account_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: str + :param create_internal_transfer_request: + :type create_internal_transfer_request: CreateInternalTransferRequest + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._internal_transfer_serialize( + exchange_account_id=exchange_account_id, + idempotency_key=idempotency_key, + create_internal_transfer_request=create_internal_transfer_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "InternalTransferResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _internal_transfer_serialize( + self, + exchange_account_id, + idempotency_key, + create_internal_transfer_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if exchange_account_id is not None: + _path_params['exchangeAccountId'] = exchange_account_id + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + if create_internal_transfer_request is not None: + _body_params = create_internal_transfer_request + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/exchange_accounts/{exchangeAccountId}/internal_transfer', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/fireblocks_client/api/external_wallets_api.py b/fireblocks_client/api/external_wallets_api.py new file mode 100644 index 00000000..1ab3dd6d --- /dev/null +++ b/fireblocks_client/api/external_wallets_api.py @@ -0,0 +1,2244 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from pydantic import Field, StrictStr +from typing import Optional +from typing_extensions import Annotated +from fireblocks_client.models.add_asset_to_external_wallet_request import AddAssetToExternalWalletRequest +from fireblocks_client.models.create_wallet_request import CreateWalletRequest +from fireblocks_client.models.external_wallet_asset import ExternalWalletAsset +from fireblocks_client.models.set_customer_ref_id_request import SetCustomerRefIdRequest +from fireblocks_client.models.unmanaged_wallet import UnmanagedWallet + +from fireblocks_client.api_client import ApiClient, RequestSerialized +from fireblocks_client.api_response import ApiResponse +from fireblocks_client.rest import RESTResponseType + + +class ExternalWalletsApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def add_asset_to_external_wallet( + self, + wallet_id: Annotated[StrictStr, Field(description="The ID of the wallet")], + asset_id: Annotated[StrictStr, Field(description="The ID of the asset to add")], + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + add_asset_to_external_wallet_request: Optional[AddAssetToExternalWalletRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ExternalWalletAsset: + """Add an asset to an external wallet. + + Adds an asset to an existing external wallet. + + :param wallet_id: The ID of the wallet (required) + :type wallet_id: str + :param asset_id: The ID of the asset to add (required) + :type asset_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: str + :param add_asset_to_external_wallet_request: + :type add_asset_to_external_wallet_request: AddAssetToExternalWalletRequest + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._add_asset_to_external_wallet_serialize( + wallet_id=wallet_id, + asset_id=asset_id, + idempotency_key=idempotency_key, + add_asset_to_external_wallet_request=add_asset_to_external_wallet_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ExternalWalletAsset", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def add_asset_to_external_wallet_with_http_info( + self, + wallet_id: Annotated[StrictStr, Field(description="The ID of the wallet")], + asset_id: Annotated[StrictStr, Field(description="The ID of the asset to add")], + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + add_asset_to_external_wallet_request: Optional[AddAssetToExternalWalletRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ExternalWalletAsset]: + """Add an asset to an external wallet. + + Adds an asset to an existing external wallet. + + :param wallet_id: The ID of the wallet (required) + :type wallet_id: str + :param asset_id: The ID of the asset to add (required) + :type asset_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: str + :param add_asset_to_external_wallet_request: + :type add_asset_to_external_wallet_request: AddAssetToExternalWalletRequest + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._add_asset_to_external_wallet_serialize( + wallet_id=wallet_id, + asset_id=asset_id, + idempotency_key=idempotency_key, + add_asset_to_external_wallet_request=add_asset_to_external_wallet_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ExternalWalletAsset", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def add_asset_to_external_wallet_without_preload_content( + self, + wallet_id: Annotated[StrictStr, Field(description="The ID of the wallet")], + asset_id: Annotated[StrictStr, Field(description="The ID of the asset to add")], + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + add_asset_to_external_wallet_request: Optional[AddAssetToExternalWalletRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Add an asset to an external wallet. + + Adds an asset to an existing external wallet. + + :param wallet_id: The ID of the wallet (required) + :type wallet_id: str + :param asset_id: The ID of the asset to add (required) + :type asset_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: str + :param add_asset_to_external_wallet_request: + :type add_asset_to_external_wallet_request: AddAssetToExternalWalletRequest + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._add_asset_to_external_wallet_serialize( + wallet_id=wallet_id, + asset_id=asset_id, + idempotency_key=idempotency_key, + add_asset_to_external_wallet_request=add_asset_to_external_wallet_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ExternalWalletAsset", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _add_asset_to_external_wallet_serialize( + self, + wallet_id, + asset_id, + idempotency_key, + add_asset_to_external_wallet_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if wallet_id is not None: + _path_params['walletId'] = wallet_id + if asset_id is not None: + _path_params['assetId'] = asset_id + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + if add_asset_to_external_wallet_request is not None: + _body_params = add_asset_to_external_wallet_request + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/external_wallets/{walletId}/{assetId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def create_external_wallet( + self, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + create_wallet_request: Optional[CreateWalletRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> UnmanagedWallet: + """Create an external wallet + + Creates a new external wallet with the requested name. + + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: str + :param create_wallet_request: + :type create_wallet_request: CreateWalletRequest + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_external_wallet_serialize( + idempotency_key=idempotency_key, + create_wallet_request=create_wallet_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "UnmanagedWallet", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def create_external_wallet_with_http_info( + self, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + create_wallet_request: Optional[CreateWalletRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[UnmanagedWallet]: + """Create an external wallet + + Creates a new external wallet with the requested name. + + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: str + :param create_wallet_request: + :type create_wallet_request: CreateWalletRequest + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_external_wallet_serialize( + idempotency_key=idempotency_key, + create_wallet_request=create_wallet_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "UnmanagedWallet", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def create_external_wallet_without_preload_content( + self, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + create_wallet_request: Optional[CreateWalletRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Create an external wallet + + Creates a new external wallet with the requested name. + + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: str + :param create_wallet_request: + :type create_wallet_request: CreateWalletRequest + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_external_wallet_serialize( + idempotency_key=idempotency_key, + create_wallet_request=create_wallet_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "UnmanagedWallet", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _create_external_wallet_serialize( + self, + idempotency_key, + create_wallet_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + if create_wallet_request is not None: + _body_params = create_wallet_request + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/external_wallets', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def delete_external_wallet( + self, + wallet_id: Annotated[StrictStr, Field(description="The ID of the wallet to delete")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> None: + """Delete an external wallet + + Deletes an external wallet by ID. + + :param wallet_id: The ID of the wallet to delete (required) + :type wallet_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_external_wallet_serialize( + wallet_id=wallet_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def delete_external_wallet_with_http_info( + self, + wallet_id: Annotated[StrictStr, Field(description="The ID of the wallet to delete")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[None]: + """Delete an external wallet + + Deletes an external wallet by ID. + + :param wallet_id: The ID of the wallet to delete (required) + :type wallet_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_external_wallet_serialize( + wallet_id=wallet_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def delete_external_wallet_without_preload_content( + self, + wallet_id: Annotated[StrictStr, Field(description="The ID of the wallet to delete")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Delete an external wallet + + Deletes an external wallet by ID. + + :param wallet_id: The ID of the wallet to delete (required) + :type wallet_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_external_wallet_serialize( + wallet_id=wallet_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _delete_external_wallet_serialize( + self, + wallet_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if wallet_id is not None: + _path_params['walletId'] = wallet_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/external_wallets/{walletId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_external_wallet( + self, + wallet_id: Annotated[StrictStr, Field(description="The ID of the wallet to return")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> UnmanagedWallet: + """Find an external wallet + + Returns an external wallet by ID. + + :param wallet_id: The ID of the wallet to return (required) + :type wallet_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_external_wallet_serialize( + wallet_id=wallet_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "UnmanagedWallet", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_external_wallet_with_http_info( + self, + wallet_id: Annotated[StrictStr, Field(description="The ID of the wallet to return")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[UnmanagedWallet]: + """Find an external wallet + + Returns an external wallet by ID. + + :param wallet_id: The ID of the wallet to return (required) + :type wallet_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_external_wallet_serialize( + wallet_id=wallet_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "UnmanagedWallet", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_external_wallet_without_preload_content( + self, + wallet_id: Annotated[StrictStr, Field(description="The ID of the wallet to return")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Find an external wallet + + Returns an external wallet by ID. + + :param wallet_id: The ID of the wallet to return (required) + :type wallet_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_external_wallet_serialize( + wallet_id=wallet_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "UnmanagedWallet", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_external_wallet_serialize( + self, + wallet_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if wallet_id is not None: + _path_params['walletId'] = wallet_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/external_wallets/{walletId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_external_wallet_asset( + self, + wallet_id: Annotated[StrictStr, Field(description="The ID of the wallet")], + asset_id: Annotated[StrictStr, Field(description="The ID of the asset to return")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ExternalWalletAsset: + """Get an asset from an external wallet + + Returns an external wallet by wallet ID and asset ID. + + :param wallet_id: The ID of the wallet (required) + :type wallet_id: str + :param asset_id: The ID of the asset to return (required) + :type asset_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_external_wallet_asset_serialize( + wallet_id=wallet_id, + asset_id=asset_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ExternalWalletAsset", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_external_wallet_asset_with_http_info( + self, + wallet_id: Annotated[StrictStr, Field(description="The ID of the wallet")], + asset_id: Annotated[StrictStr, Field(description="The ID of the asset to return")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ExternalWalletAsset]: + """Get an asset from an external wallet + + Returns an external wallet by wallet ID and asset ID. + + :param wallet_id: The ID of the wallet (required) + :type wallet_id: str + :param asset_id: The ID of the asset to return (required) + :type asset_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_external_wallet_asset_serialize( + wallet_id=wallet_id, + asset_id=asset_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ExternalWalletAsset", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_external_wallet_asset_without_preload_content( + self, + wallet_id: Annotated[StrictStr, Field(description="The ID of the wallet")], + asset_id: Annotated[StrictStr, Field(description="The ID of the asset to return")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get an asset from an external wallet + + Returns an external wallet by wallet ID and asset ID. + + :param wallet_id: The ID of the wallet (required) + :type wallet_id: str + :param asset_id: The ID of the asset to return (required) + :type asset_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_external_wallet_asset_serialize( + wallet_id=wallet_id, + asset_id=asset_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ExternalWalletAsset", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_external_wallet_asset_serialize( + self, + wallet_id, + asset_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if wallet_id is not None: + _path_params['walletId'] = wallet_id + if asset_id is not None: + _path_params['assetId'] = asset_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/external_wallets/{walletId}/{assetId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_external_wallets( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> List[UnmanagedWallet]: + """List external wallets + + Gets a list of external wallets under the workspace. + + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_external_wallets_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[UnmanagedWallet]", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_external_wallets_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[List[UnmanagedWallet]]: + """List external wallets + + Gets a list of external wallets under the workspace. + + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_external_wallets_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[UnmanagedWallet]", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_external_wallets_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List external wallets + + Gets a list of external wallets under the workspace. + + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_external_wallets_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[UnmanagedWallet]", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_external_wallets_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/external_wallets', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def remove_asset_from_external_wallet( + self, + wallet_id: Annotated[StrictStr, Field(description="The ID of the wallet")], + asset_id: Annotated[StrictStr, Field(description="The ID of the asset to delete")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> None: + """Delete an asset from an external wallet + + Deletes an external wallet asset by ID. + + :param wallet_id: The ID of the wallet (required) + :type wallet_id: str + :param asset_id: The ID of the asset to delete (required) + :type asset_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._remove_asset_from_external_wallet_serialize( + wallet_id=wallet_id, + asset_id=asset_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def remove_asset_from_external_wallet_with_http_info( + self, + wallet_id: Annotated[StrictStr, Field(description="The ID of the wallet")], + asset_id: Annotated[StrictStr, Field(description="The ID of the asset to delete")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[None]: + """Delete an asset from an external wallet + + Deletes an external wallet asset by ID. + + :param wallet_id: The ID of the wallet (required) + :type wallet_id: str + :param asset_id: The ID of the asset to delete (required) + :type asset_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._remove_asset_from_external_wallet_serialize( + wallet_id=wallet_id, + asset_id=asset_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def remove_asset_from_external_wallet_without_preload_content( + self, + wallet_id: Annotated[StrictStr, Field(description="The ID of the wallet")], + asset_id: Annotated[StrictStr, Field(description="The ID of the asset to delete")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Delete an asset from an external wallet + + Deletes an external wallet asset by ID. + + :param wallet_id: The ID of the wallet (required) + :type wallet_id: str + :param asset_id: The ID of the asset to delete (required) + :type asset_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._remove_asset_from_external_wallet_serialize( + wallet_id=wallet_id, + asset_id=asset_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _remove_asset_from_external_wallet_serialize( + self, + wallet_id, + asset_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if wallet_id is not None: + _path_params['walletId'] = wallet_id + if asset_id is not None: + _path_params['assetId'] = asset_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/external_wallets/{walletId}/{assetId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def set_external_wallet_customer_ref_id( + self, + wallet_id: Annotated[StrictStr, Field(description="The wallet ID")], + set_customer_ref_id_request: SetCustomerRefIdRequest, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> None: + """Set an AML customer reference ID for an external wallet + + Sets an AML/KYT customer reference ID for the specific external wallet. + + :param wallet_id: The wallet ID (required) + :type wallet_id: str + :param set_customer_ref_id_request: (required) + :type set_customer_ref_id_request: SetCustomerRefIdRequest + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._set_external_wallet_customer_ref_id_serialize( + wallet_id=wallet_id, + set_customer_ref_id_request=set_customer_ref_id_request, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def set_external_wallet_customer_ref_id_with_http_info( + self, + wallet_id: Annotated[StrictStr, Field(description="The wallet ID")], + set_customer_ref_id_request: SetCustomerRefIdRequest, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[None]: + """Set an AML customer reference ID for an external wallet + + Sets an AML/KYT customer reference ID for the specific external wallet. + + :param wallet_id: The wallet ID (required) + :type wallet_id: str + :param set_customer_ref_id_request: (required) + :type set_customer_ref_id_request: SetCustomerRefIdRequest + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._set_external_wallet_customer_ref_id_serialize( + wallet_id=wallet_id, + set_customer_ref_id_request=set_customer_ref_id_request, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def set_external_wallet_customer_ref_id_without_preload_content( + self, + wallet_id: Annotated[StrictStr, Field(description="The wallet ID")], + set_customer_ref_id_request: SetCustomerRefIdRequest, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Set an AML customer reference ID for an external wallet + + Sets an AML/KYT customer reference ID for the specific external wallet. + + :param wallet_id: The wallet ID (required) + :type wallet_id: str + :param set_customer_ref_id_request: (required) + :type set_customer_ref_id_request: SetCustomerRefIdRequest + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._set_external_wallet_customer_ref_id_serialize( + wallet_id=wallet_id, + set_customer_ref_id_request=set_customer_ref_id_request, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _set_external_wallet_customer_ref_id_serialize( + self, + wallet_id, + set_customer_ref_id_request, + idempotency_key, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if wallet_id is not None: + _path_params['walletId'] = wallet_id + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + if set_customer_ref_id_request is not None: + _body_params = set_customer_ref_id_request + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/external_wallets/{walletId}/set_customer_ref_id', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/fireblocks_client/api/fiat_accounts_api.py b/fireblocks_client/api/fiat_accounts_api.py new file mode 100644 index 00000000..82b51569 --- /dev/null +++ b/fireblocks_client/api/fiat_accounts_api.py @@ -0,0 +1,1142 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from pydantic import Field, StrictStr +from typing import Optional +from typing_extensions import Annotated +from fireblocks_client.models.deposit_funds_from_linked_dda_response import DepositFundsFromLinkedDDAResponse +from fireblocks_client.models.fiat_account import FiatAccount +from fireblocks_client.models.funds import Funds +from fireblocks_client.models.redeem_funds_to_linked_dda_response import RedeemFundsToLinkedDDAResponse + +from fireblocks_client.api_client import ApiClient, RequestSerialized +from fireblocks_client.api_response import ApiResponse +from fireblocks_client.rest import RESTResponseType + + +class FiatAccountsApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def deposit_funds_from_linked_dda( + self, + account_id: Annotated[StrictStr, Field(description="The ID of the fiat account to use")], + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + funds: Optional[Funds] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> DepositFundsFromLinkedDDAResponse: + """Deposit funds from DDA + + Deposits funds from the linked DDA. + + :param account_id: The ID of the fiat account to use (required) + :type account_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: str + :param funds: + :type funds: Funds + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._deposit_funds_from_linked_dda_serialize( + account_id=account_id, + idempotency_key=idempotency_key, + funds=funds, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "DepositFundsFromLinkedDDAResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def deposit_funds_from_linked_dda_with_http_info( + self, + account_id: Annotated[StrictStr, Field(description="The ID of the fiat account to use")], + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + funds: Optional[Funds] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[DepositFundsFromLinkedDDAResponse]: + """Deposit funds from DDA + + Deposits funds from the linked DDA. + + :param account_id: The ID of the fiat account to use (required) + :type account_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: str + :param funds: + :type funds: Funds + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._deposit_funds_from_linked_dda_serialize( + account_id=account_id, + idempotency_key=idempotency_key, + funds=funds, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "DepositFundsFromLinkedDDAResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def deposit_funds_from_linked_dda_without_preload_content( + self, + account_id: Annotated[StrictStr, Field(description="The ID of the fiat account to use")], + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + funds: Optional[Funds] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Deposit funds from DDA + + Deposits funds from the linked DDA. + + :param account_id: The ID of the fiat account to use (required) + :type account_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: str + :param funds: + :type funds: Funds + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._deposit_funds_from_linked_dda_serialize( + account_id=account_id, + idempotency_key=idempotency_key, + funds=funds, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "DepositFundsFromLinkedDDAResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _deposit_funds_from_linked_dda_serialize( + self, + account_id, + idempotency_key, + funds, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if account_id is not None: + _path_params['accountId'] = account_id + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + if funds is not None: + _body_params = funds + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/fiat_accounts/{accountId}/deposit_from_linked_dda', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_fiat_account( + self, + account_id: Annotated[StrictStr, Field(description="The ID of the fiat account to return")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> FiatAccount: + """Find a specific fiat account + + Returns a fiat account by ID. + + :param account_id: The ID of the fiat account to return (required) + :type account_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_fiat_account_serialize( + account_id=account_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "FiatAccount", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_fiat_account_with_http_info( + self, + account_id: Annotated[StrictStr, Field(description="The ID of the fiat account to return")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[FiatAccount]: + """Find a specific fiat account + + Returns a fiat account by ID. + + :param account_id: The ID of the fiat account to return (required) + :type account_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_fiat_account_serialize( + account_id=account_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "FiatAccount", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_fiat_account_without_preload_content( + self, + account_id: Annotated[StrictStr, Field(description="The ID of the fiat account to return")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Find a specific fiat account + + Returns a fiat account by ID. + + :param account_id: The ID of the fiat account to return (required) + :type account_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_fiat_account_serialize( + account_id=account_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "FiatAccount", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_fiat_account_serialize( + self, + account_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if account_id is not None: + _path_params['accountId'] = account_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/fiat_accounts/{accountId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_fiat_accounts( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> List[FiatAccount]: + """List fiat accounts + + Returns all fiat accounts. + + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_fiat_accounts_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[FiatAccount]", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_fiat_accounts_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[List[FiatAccount]]: + """List fiat accounts + + Returns all fiat accounts. + + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_fiat_accounts_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[FiatAccount]", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_fiat_accounts_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List fiat accounts + + Returns all fiat accounts. + + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_fiat_accounts_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[FiatAccount]", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_fiat_accounts_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/fiat_accounts', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def redeem_funds_to_linked_dda( + self, + account_id: Annotated[StrictStr, Field(description="The ID of the fiat account to use")], + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + funds: Optional[Funds] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RedeemFundsToLinkedDDAResponse: + """Redeem funds to DDA + + Redeems funds to the linked DDA. + + :param account_id: The ID of the fiat account to use (required) + :type account_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: str + :param funds: + :type funds: Funds + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._redeem_funds_to_linked_dda_serialize( + account_id=account_id, + idempotency_key=idempotency_key, + funds=funds, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "RedeemFundsToLinkedDDAResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def redeem_funds_to_linked_dda_with_http_info( + self, + account_id: Annotated[StrictStr, Field(description="The ID of the fiat account to use")], + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + funds: Optional[Funds] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[RedeemFundsToLinkedDDAResponse]: + """Redeem funds to DDA + + Redeems funds to the linked DDA. + + :param account_id: The ID of the fiat account to use (required) + :type account_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: str + :param funds: + :type funds: Funds + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._redeem_funds_to_linked_dda_serialize( + account_id=account_id, + idempotency_key=idempotency_key, + funds=funds, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "RedeemFundsToLinkedDDAResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def redeem_funds_to_linked_dda_without_preload_content( + self, + account_id: Annotated[StrictStr, Field(description="The ID of the fiat account to use")], + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + funds: Optional[Funds] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Redeem funds to DDA + + Redeems funds to the linked DDA. + + :param account_id: The ID of the fiat account to use (required) + :type account_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: str + :param funds: + :type funds: Funds + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._redeem_funds_to_linked_dda_serialize( + account_id=account_id, + idempotency_key=idempotency_key, + funds=funds, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "RedeemFundsToLinkedDDAResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _redeem_funds_to_linked_dda_serialize( + self, + account_id, + idempotency_key, + funds, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if account_id is not None: + _path_params['accountId'] = account_id + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + if funds is not None: + _body_params = funds + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/fiat_accounts/{accountId}/redeem_to_linked_dda', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/fireblocks_client/api/gas_stations_api.py b/fireblocks_client/api/gas_stations_api.py new file mode 100644 index 00000000..bf264081 --- /dev/null +++ b/fireblocks_client/api/gas_stations_api.py @@ -0,0 +1,1126 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from pydantic import Field, StrictStr +from typing import Optional +from typing_extensions import Annotated +from fireblocks_client.models.edit_gas_station_configuration_response import EditGasStationConfigurationResponse +from fireblocks_client.models.gas_station_configuration import GasStationConfiguration +from fireblocks_client.models.gas_station_properties_response import GasStationPropertiesResponse + +from fireblocks_client.api_client import ApiClient, RequestSerialized +from fireblocks_client.api_response import ApiResponse +from fireblocks_client.rest import RESTResponseType + + +class GasStationsApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def get_gas_station_by_asset_id( + self, + asset_id: Annotated[StrictStr, Field(description="The ID of the asset")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GasStationPropertiesResponse: + """Get gas station settings by asset + + Returns gas station settings and balances for a requested asset. + + :param asset_id: The ID of the asset (required) + :type asset_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_gas_station_by_asset_id_serialize( + asset_id=asset_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GasStationPropertiesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_gas_station_by_asset_id_with_http_info( + self, + asset_id: Annotated[StrictStr, Field(description="The ID of the asset")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GasStationPropertiesResponse]: + """Get gas station settings by asset + + Returns gas station settings and balances for a requested asset. + + :param asset_id: The ID of the asset (required) + :type asset_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_gas_station_by_asset_id_serialize( + asset_id=asset_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GasStationPropertiesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_gas_station_by_asset_id_without_preload_content( + self, + asset_id: Annotated[StrictStr, Field(description="The ID of the asset")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get gas station settings by asset + + Returns gas station settings and balances for a requested asset. + + :param asset_id: The ID of the asset (required) + :type asset_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_gas_station_by_asset_id_serialize( + asset_id=asset_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GasStationPropertiesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_gas_station_by_asset_id_serialize( + self, + asset_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if asset_id is not None: + _path_params['assetId'] = asset_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/gas_station/{assetId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_gas_station_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GasStationPropertiesResponse: + """Get gas station settings + + Returns gas station settings and ETH balance. + + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_gas_station_info_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GasStationPropertiesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_gas_station_info_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GasStationPropertiesResponse]: + """Get gas station settings + + Returns gas station settings and ETH balance. + + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_gas_station_info_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GasStationPropertiesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_gas_station_info_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get gas station settings + + Returns gas station settings and ETH balance. + + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_gas_station_info_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GasStationPropertiesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_gas_station_info_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/gas_station', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def update_gas_station_configuration( + self, + gas_station_configuration: GasStationConfiguration, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> EditGasStationConfigurationResponse: + """Edit gas station settings + + Configures gas station settings for ETH. + + :param gas_station_configuration: (required) + :type gas_station_configuration: GasStationConfiguration + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_gas_station_configuration_serialize( + gas_station_configuration=gas_station_configuration, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "EditGasStationConfigurationResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def update_gas_station_configuration_with_http_info( + self, + gas_station_configuration: GasStationConfiguration, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[EditGasStationConfigurationResponse]: + """Edit gas station settings + + Configures gas station settings for ETH. + + :param gas_station_configuration: (required) + :type gas_station_configuration: GasStationConfiguration + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_gas_station_configuration_serialize( + gas_station_configuration=gas_station_configuration, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "EditGasStationConfigurationResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def update_gas_station_configuration_without_preload_content( + self, + gas_station_configuration: GasStationConfiguration, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Edit gas station settings + + Configures gas station settings for ETH. + + :param gas_station_configuration: (required) + :type gas_station_configuration: GasStationConfiguration + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_gas_station_configuration_serialize( + gas_station_configuration=gas_station_configuration, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "EditGasStationConfigurationResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _update_gas_station_configuration_serialize( + self, + gas_station_configuration, + idempotency_key, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + if gas_station_configuration is not None: + _body_params = gas_station_configuration + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/gas_station/configuration', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def update_gas_station_configuration_by_asset_id( + self, + asset_id: Annotated[StrictStr, Field(description="The ID of the asset")], + gas_station_configuration: GasStationConfiguration, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> EditGasStationConfigurationResponse: + """Edit gas station settings for an asset + + Configures gas station settings for a requested asset. + + :param asset_id: The ID of the asset (required) + :type asset_id: str + :param gas_station_configuration: (required) + :type gas_station_configuration: GasStationConfiguration + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_gas_station_configuration_by_asset_id_serialize( + asset_id=asset_id, + gas_station_configuration=gas_station_configuration, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "EditGasStationConfigurationResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def update_gas_station_configuration_by_asset_id_with_http_info( + self, + asset_id: Annotated[StrictStr, Field(description="The ID of the asset")], + gas_station_configuration: GasStationConfiguration, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[EditGasStationConfigurationResponse]: + """Edit gas station settings for an asset + + Configures gas station settings for a requested asset. + + :param asset_id: The ID of the asset (required) + :type asset_id: str + :param gas_station_configuration: (required) + :type gas_station_configuration: GasStationConfiguration + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_gas_station_configuration_by_asset_id_serialize( + asset_id=asset_id, + gas_station_configuration=gas_station_configuration, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "EditGasStationConfigurationResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def update_gas_station_configuration_by_asset_id_without_preload_content( + self, + asset_id: Annotated[StrictStr, Field(description="The ID of the asset")], + gas_station_configuration: GasStationConfiguration, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Edit gas station settings for an asset + + Configures gas station settings for a requested asset. + + :param asset_id: The ID of the asset (required) + :type asset_id: str + :param gas_station_configuration: (required) + :type gas_station_configuration: GasStationConfiguration + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_gas_station_configuration_by_asset_id_serialize( + asset_id=asset_id, + gas_station_configuration=gas_station_configuration, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "EditGasStationConfigurationResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _update_gas_station_configuration_by_asset_id_serialize( + self, + asset_id, + gas_station_configuration, + idempotency_key, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if asset_id is not None: + _path_params['assetId'] = asset_id + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + if gas_station_configuration is not None: + _body_params = gas_station_configuration + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/gas_station/configuration/{assetId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/fireblocks_client/api/internal_wallets_api.py b/fireblocks_client/api/internal_wallets_api.py new file mode 100644 index 00000000..d74ca1b5 --- /dev/null +++ b/fireblocks_client/api/internal_wallets_api.py @@ -0,0 +1,2244 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from pydantic import Field, StrictStr +from typing import Optional +from typing_extensions import Annotated +from fireblocks_client.models.create_internal_wallet_asset_request import CreateInternalWalletAssetRequest +from fireblocks_client.models.create_wallet_request import CreateWalletRequest +from fireblocks_client.models.set_customer_ref_id_request import SetCustomerRefIdRequest +from fireblocks_client.models.unmanaged_wallet import UnmanagedWallet +from fireblocks_client.models.wallet_asset import WalletAsset + +from fireblocks_client.api_client import ApiClient, RequestSerialized +from fireblocks_client.api_response import ApiResponse +from fireblocks_client.rest import RESTResponseType + + +class InternalWalletsApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def create_internal_wallet( + self, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + create_wallet_request: Optional[CreateWalletRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> UnmanagedWallet: + """Create an internal wallet + + Creates a new internal wallet with the requested name. + + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: str + :param create_wallet_request: + :type create_wallet_request: CreateWalletRequest + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_internal_wallet_serialize( + idempotency_key=idempotency_key, + create_wallet_request=create_wallet_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "UnmanagedWallet", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def create_internal_wallet_with_http_info( + self, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + create_wallet_request: Optional[CreateWalletRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[UnmanagedWallet]: + """Create an internal wallet + + Creates a new internal wallet with the requested name. + + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: str + :param create_wallet_request: + :type create_wallet_request: CreateWalletRequest + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_internal_wallet_serialize( + idempotency_key=idempotency_key, + create_wallet_request=create_wallet_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "UnmanagedWallet", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def create_internal_wallet_without_preload_content( + self, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + create_wallet_request: Optional[CreateWalletRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Create an internal wallet + + Creates a new internal wallet with the requested name. + + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: str + :param create_wallet_request: + :type create_wallet_request: CreateWalletRequest + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_internal_wallet_serialize( + idempotency_key=idempotency_key, + create_wallet_request=create_wallet_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "UnmanagedWallet", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _create_internal_wallet_serialize( + self, + idempotency_key, + create_wallet_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + if create_wallet_request is not None: + _body_params = create_wallet_request + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/internal_wallets', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def create_internal_wallet_asset( + self, + wallet_id: Annotated[StrictStr, Field(description="The ID of the wallet")], + asset_id: Annotated[StrictStr, Field(description="The ID of the asset to add")], + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + create_internal_wallet_asset_request: Optional[CreateInternalWalletAssetRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> WalletAsset: + """Add an asset to an internal wallet + + Adds an asset to an existing internal wallet. + + :param wallet_id: The ID of the wallet (required) + :type wallet_id: str + :param asset_id: The ID of the asset to add (required) + :type asset_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: str + :param create_internal_wallet_asset_request: + :type create_internal_wallet_asset_request: CreateInternalWalletAssetRequest + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_internal_wallet_asset_serialize( + wallet_id=wallet_id, + asset_id=asset_id, + idempotency_key=idempotency_key, + create_internal_wallet_asset_request=create_internal_wallet_asset_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "WalletAsset", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def create_internal_wallet_asset_with_http_info( + self, + wallet_id: Annotated[StrictStr, Field(description="The ID of the wallet")], + asset_id: Annotated[StrictStr, Field(description="The ID of the asset to add")], + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + create_internal_wallet_asset_request: Optional[CreateInternalWalletAssetRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[WalletAsset]: + """Add an asset to an internal wallet + + Adds an asset to an existing internal wallet. + + :param wallet_id: The ID of the wallet (required) + :type wallet_id: str + :param asset_id: The ID of the asset to add (required) + :type asset_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: str + :param create_internal_wallet_asset_request: + :type create_internal_wallet_asset_request: CreateInternalWalletAssetRequest + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_internal_wallet_asset_serialize( + wallet_id=wallet_id, + asset_id=asset_id, + idempotency_key=idempotency_key, + create_internal_wallet_asset_request=create_internal_wallet_asset_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "WalletAsset", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def create_internal_wallet_asset_without_preload_content( + self, + wallet_id: Annotated[StrictStr, Field(description="The ID of the wallet")], + asset_id: Annotated[StrictStr, Field(description="The ID of the asset to add")], + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + create_internal_wallet_asset_request: Optional[CreateInternalWalletAssetRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Add an asset to an internal wallet + + Adds an asset to an existing internal wallet. + + :param wallet_id: The ID of the wallet (required) + :type wallet_id: str + :param asset_id: The ID of the asset to add (required) + :type asset_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: str + :param create_internal_wallet_asset_request: + :type create_internal_wallet_asset_request: CreateInternalWalletAssetRequest + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_internal_wallet_asset_serialize( + wallet_id=wallet_id, + asset_id=asset_id, + idempotency_key=idempotency_key, + create_internal_wallet_asset_request=create_internal_wallet_asset_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "WalletAsset", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _create_internal_wallet_asset_serialize( + self, + wallet_id, + asset_id, + idempotency_key, + create_internal_wallet_asset_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if wallet_id is not None: + _path_params['walletId'] = wallet_id + if asset_id is not None: + _path_params['assetId'] = asset_id + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + if create_internal_wallet_asset_request is not None: + _body_params = create_internal_wallet_asset_request + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/internal_wallets/{walletId}/{assetId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def delete_internal_wallet( + self, + wallet_id: Annotated[StrictStr, Field(description="The ID of the wallet to delete")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> None: + """Delete an internal wallet + + Deletes an internal wallet by ID. + + :param wallet_id: The ID of the wallet to delete (required) + :type wallet_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_internal_wallet_serialize( + wallet_id=wallet_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def delete_internal_wallet_with_http_info( + self, + wallet_id: Annotated[StrictStr, Field(description="The ID of the wallet to delete")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[None]: + """Delete an internal wallet + + Deletes an internal wallet by ID. + + :param wallet_id: The ID of the wallet to delete (required) + :type wallet_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_internal_wallet_serialize( + wallet_id=wallet_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def delete_internal_wallet_without_preload_content( + self, + wallet_id: Annotated[StrictStr, Field(description="The ID of the wallet to delete")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Delete an internal wallet + + Deletes an internal wallet by ID. + + :param wallet_id: The ID of the wallet to delete (required) + :type wallet_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_internal_wallet_serialize( + wallet_id=wallet_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _delete_internal_wallet_serialize( + self, + wallet_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if wallet_id is not None: + _path_params['walletId'] = wallet_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/internal_wallets/{walletId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def delete_internal_wallet_asset( + self, + wallet_id: Annotated[StrictStr, Field(description="The ID of the wallet")], + asset_id: Annotated[StrictStr, Field(description="The ID of the asset to delete")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> None: + """Delete a whitelisted address from an internal wallet + + Deletes a whitelisted address (for an asset) from an internal wallet. + + :param wallet_id: The ID of the wallet (required) + :type wallet_id: str + :param asset_id: The ID of the asset to delete (required) + :type asset_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_internal_wallet_asset_serialize( + wallet_id=wallet_id, + asset_id=asset_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def delete_internal_wallet_asset_with_http_info( + self, + wallet_id: Annotated[StrictStr, Field(description="The ID of the wallet")], + asset_id: Annotated[StrictStr, Field(description="The ID of the asset to delete")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[None]: + """Delete a whitelisted address from an internal wallet + + Deletes a whitelisted address (for an asset) from an internal wallet. + + :param wallet_id: The ID of the wallet (required) + :type wallet_id: str + :param asset_id: The ID of the asset to delete (required) + :type asset_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_internal_wallet_asset_serialize( + wallet_id=wallet_id, + asset_id=asset_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def delete_internal_wallet_asset_without_preload_content( + self, + wallet_id: Annotated[StrictStr, Field(description="The ID of the wallet")], + asset_id: Annotated[StrictStr, Field(description="The ID of the asset to delete")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Delete a whitelisted address from an internal wallet + + Deletes a whitelisted address (for an asset) from an internal wallet. + + :param wallet_id: The ID of the wallet (required) + :type wallet_id: str + :param asset_id: The ID of the asset to delete (required) + :type asset_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_internal_wallet_asset_serialize( + wallet_id=wallet_id, + asset_id=asset_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _delete_internal_wallet_asset_serialize( + self, + wallet_id, + asset_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if wallet_id is not None: + _path_params['walletId'] = wallet_id + if asset_id is not None: + _path_params['assetId'] = asset_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/internal_wallets/{walletId}/{assetId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_internal_wallet( + self, + wallet_id: Annotated[StrictStr, Field(description="The ID of the wallet to return")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> UnmanagedWallet: + """Get assets for internal wallet + + Returns all assets in an internal wallet by ID. + + :param wallet_id: The ID of the wallet to return (required) + :type wallet_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_internal_wallet_serialize( + wallet_id=wallet_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "UnmanagedWallet", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_internal_wallet_with_http_info( + self, + wallet_id: Annotated[StrictStr, Field(description="The ID of the wallet to return")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[UnmanagedWallet]: + """Get assets for internal wallet + + Returns all assets in an internal wallet by ID. + + :param wallet_id: The ID of the wallet to return (required) + :type wallet_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_internal_wallet_serialize( + wallet_id=wallet_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "UnmanagedWallet", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_internal_wallet_without_preload_content( + self, + wallet_id: Annotated[StrictStr, Field(description="The ID of the wallet to return")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get assets for internal wallet + + Returns all assets in an internal wallet by ID. + + :param wallet_id: The ID of the wallet to return (required) + :type wallet_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_internal_wallet_serialize( + wallet_id=wallet_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "UnmanagedWallet", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_internal_wallet_serialize( + self, + wallet_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if wallet_id is not None: + _path_params['walletId'] = wallet_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/internal_wallets/{walletId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_internal_wallet_asset( + self, + wallet_id: Annotated[StrictStr, Field(description="The ID of the wallet")], + asset_id: Annotated[StrictStr, Field(description="The ID of the asset to return")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> WalletAsset: + """Get an asset from an internal wallet + + Returns information for an asset in an internal wallet. + + :param wallet_id: The ID of the wallet (required) + :type wallet_id: str + :param asset_id: The ID of the asset to return (required) + :type asset_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_internal_wallet_asset_serialize( + wallet_id=wallet_id, + asset_id=asset_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "WalletAsset", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_internal_wallet_asset_with_http_info( + self, + wallet_id: Annotated[StrictStr, Field(description="The ID of the wallet")], + asset_id: Annotated[StrictStr, Field(description="The ID of the asset to return")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[WalletAsset]: + """Get an asset from an internal wallet + + Returns information for an asset in an internal wallet. + + :param wallet_id: The ID of the wallet (required) + :type wallet_id: str + :param asset_id: The ID of the asset to return (required) + :type asset_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_internal_wallet_asset_serialize( + wallet_id=wallet_id, + asset_id=asset_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "WalletAsset", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_internal_wallet_asset_without_preload_content( + self, + wallet_id: Annotated[StrictStr, Field(description="The ID of the wallet")], + asset_id: Annotated[StrictStr, Field(description="The ID of the asset to return")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get an asset from an internal wallet + + Returns information for an asset in an internal wallet. + + :param wallet_id: The ID of the wallet (required) + :type wallet_id: str + :param asset_id: The ID of the asset to return (required) + :type asset_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_internal_wallet_asset_serialize( + wallet_id=wallet_id, + asset_id=asset_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "WalletAsset", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_internal_wallet_asset_serialize( + self, + wallet_id, + asset_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if wallet_id is not None: + _path_params['walletId'] = wallet_id + if asset_id is not None: + _path_params['assetId'] = asset_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/internal_wallets/{walletId}/{assetId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_internal_wallets( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> List[UnmanagedWallet]: + """List internal wallets + + Gets a list of internal wallets. **Note**: BTC-based assets belonging to whitelisted addresses cannot be retrieved between 00:00 UTC and 00:01 UTC daily due to third-party provider, Blockchair, being unavailable for this 60 second period. Please wait until the next minute to retrieve BTC-based assets. + + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_internal_wallets_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[UnmanagedWallet]", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_internal_wallets_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[List[UnmanagedWallet]]: + """List internal wallets + + Gets a list of internal wallets. **Note**: BTC-based assets belonging to whitelisted addresses cannot be retrieved between 00:00 UTC and 00:01 UTC daily due to third-party provider, Blockchair, being unavailable for this 60 second period. Please wait until the next minute to retrieve BTC-based assets. + + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_internal_wallets_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[UnmanagedWallet]", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_internal_wallets_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List internal wallets + + Gets a list of internal wallets. **Note**: BTC-based assets belonging to whitelisted addresses cannot be retrieved between 00:00 UTC and 00:01 UTC daily due to third-party provider, Blockchair, being unavailable for this 60 second period. Please wait until the next minute to retrieve BTC-based assets. + + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_internal_wallets_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[UnmanagedWallet]", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_internal_wallets_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/internal_wallets', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def set_customer_ref_id_for_internal_wallet( + self, + wallet_id: Annotated[StrictStr, Field(description="The wallet ID")], + set_customer_ref_id_request: SetCustomerRefIdRequest, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> None: + """Set an AML/KYT customer reference ID for an internal wallet + + Sets an AML/KYT customer reference ID for the specific internal wallet. + + :param wallet_id: The wallet ID (required) + :type wallet_id: str + :param set_customer_ref_id_request: (required) + :type set_customer_ref_id_request: SetCustomerRefIdRequest + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._set_customer_ref_id_for_internal_wallet_serialize( + wallet_id=wallet_id, + set_customer_ref_id_request=set_customer_ref_id_request, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def set_customer_ref_id_for_internal_wallet_with_http_info( + self, + wallet_id: Annotated[StrictStr, Field(description="The wallet ID")], + set_customer_ref_id_request: SetCustomerRefIdRequest, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[None]: + """Set an AML/KYT customer reference ID for an internal wallet + + Sets an AML/KYT customer reference ID for the specific internal wallet. + + :param wallet_id: The wallet ID (required) + :type wallet_id: str + :param set_customer_ref_id_request: (required) + :type set_customer_ref_id_request: SetCustomerRefIdRequest + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._set_customer_ref_id_for_internal_wallet_serialize( + wallet_id=wallet_id, + set_customer_ref_id_request=set_customer_ref_id_request, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def set_customer_ref_id_for_internal_wallet_without_preload_content( + self, + wallet_id: Annotated[StrictStr, Field(description="The wallet ID")], + set_customer_ref_id_request: SetCustomerRefIdRequest, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Set an AML/KYT customer reference ID for an internal wallet + + Sets an AML/KYT customer reference ID for the specific internal wallet. + + :param wallet_id: The wallet ID (required) + :type wallet_id: str + :param set_customer_ref_id_request: (required) + :type set_customer_ref_id_request: SetCustomerRefIdRequest + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._set_customer_ref_id_for_internal_wallet_serialize( + wallet_id=wallet_id, + set_customer_ref_id_request=set_customer_ref_id_request, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _set_customer_ref_id_for_internal_wallet_serialize( + self, + wallet_id, + set_customer_ref_id_request, + idempotency_key, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if wallet_id is not None: + _path_params['walletId'] = wallet_id + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + if set_customer_ref_id_request is not None: + _body_params = set_customer_ref_id_request + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/internal_wallets/{walletId}/set_customer_ref_id', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/fireblocks_client/api/job_management_api.py b/fireblocks_client/api/job_management_api.py new file mode 100644 index 00000000..2e179cc2 --- /dev/null +++ b/fireblocks_client/api/job_management_api.py @@ -0,0 +1,1647 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from pydantic import Field, StrictInt, StrictStr +from typing import Optional +from typing_extensions import Annotated +from fireblocks_client.models.job import Job +from fireblocks_client.models.task import Task + +from fireblocks_client.api_client import ApiClient, RequestSerialized +from fireblocks_client.api_response import ApiResponse +from fireblocks_client.rest import RESTResponseType + + +class JobManagementApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def cancel_job( + self, + job_id: Annotated[StrictStr, Field(description="The requested job id")], + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> None: + """Cancel a running job + + Stop the given job immediately. If the job is in the ‘Active’ state, the job will be canceled after completing the current task. Vault accounts and Wallets that are already created will not be affected. + + :param job_id: The requested job id (required) + :type job_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._cancel_job_serialize( + job_id=job_id, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def cancel_job_with_http_info( + self, + job_id: Annotated[StrictStr, Field(description="The requested job id")], + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[None]: + """Cancel a running job + + Stop the given job immediately. If the job is in the ‘Active’ state, the job will be canceled after completing the current task. Vault accounts and Wallets that are already created will not be affected. + + :param job_id: The requested job id (required) + :type job_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._cancel_job_serialize( + job_id=job_id, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def cancel_job_without_preload_content( + self, + job_id: Annotated[StrictStr, Field(description="The requested job id")], + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Cancel a running job + + Stop the given job immediately. If the job is in the ‘Active’ state, the job will be canceled after completing the current task. Vault accounts and Wallets that are already created will not be affected. + + :param job_id: The requested job id (required) + :type job_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._cancel_job_serialize( + job_id=job_id, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _cancel_job_serialize( + self, + job_id, + idempotency_key, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if job_id is not None: + _path_params['jobId'] = job_id + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/batch/{jobId}/cancel', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def continue_job( + self, + job_id: Annotated[StrictStr, Field(description="The requested job id")], + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> None: + """Continue a paused job + + Continue the given paused job. + + :param job_id: The requested job id (required) + :type job_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._continue_job_serialize( + job_id=job_id, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def continue_job_with_http_info( + self, + job_id: Annotated[StrictStr, Field(description="The requested job id")], + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[None]: + """Continue a paused job + + Continue the given paused job. + + :param job_id: The requested job id (required) + :type job_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._continue_job_serialize( + job_id=job_id, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def continue_job_without_preload_content( + self, + job_id: Annotated[StrictStr, Field(description="The requested job id")], + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Continue a paused job + + Continue the given paused job. + + :param job_id: The requested job id (required) + :type job_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._continue_job_serialize( + job_id=job_id, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _continue_job_serialize( + self, + job_id, + idempotency_key, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if job_id is not None: + _path_params['jobId'] = job_id + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/batch/{jobId}/continue', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_job( + self, + job_id: Annotated[StrictStr, Field(description="The requested job id")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> Job: + """Get job details + + Get an object describing the given job + + :param job_id: The requested job id (required) + :type job_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_job_serialize( + job_id=job_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "Job", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_job_with_http_info( + self, + job_id: Annotated[StrictStr, Field(description="The requested job id")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[Job]: + """Get job details + + Get an object describing the given job + + :param job_id: The requested job id (required) + :type job_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_job_serialize( + job_id=job_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "Job", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_job_without_preload_content( + self, + job_id: Annotated[StrictStr, Field(description="The requested job id")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get job details + + Get an object describing the given job + + :param job_id: The requested job id (required) + :type job_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_job_serialize( + job_id=job_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "Job", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_job_serialize( + self, + job_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if job_id is not None: + _path_params['jobId'] = job_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/batch/{jobId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_job_tasks( + self, + job_id: Annotated[StrictStr, Field(description="The requested job id")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> List[Task]: + """Return a list of tasks for given job + + Return a list of tasks for given job + + :param job_id: The requested job id (required) + :type job_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_job_tasks_serialize( + job_id=job_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[Task]", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_job_tasks_with_http_info( + self, + job_id: Annotated[StrictStr, Field(description="The requested job id")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[List[Task]]: + """Return a list of tasks for given job + + Return a list of tasks for given job + + :param job_id: The requested job id (required) + :type job_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_job_tasks_serialize( + job_id=job_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[Task]", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_job_tasks_without_preload_content( + self, + job_id: Annotated[StrictStr, Field(description="The requested job id")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Return a list of tasks for given job + + Return a list of tasks for given job + + :param job_id: The requested job id (required) + :type job_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_job_tasks_serialize( + job_id=job_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[Task]", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_job_tasks_serialize( + self, + job_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if job_id is not None: + _path_params['jobId'] = job_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/batch/{jobId}/tasks', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_jobs( + self, + from_time: Annotated[Optional[StrictInt], Field(description="Start of time range in ms since 1970")] = None, + to_time: Annotated[Optional[StrictInt], Field(description="End of time range in ms since 1970")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> List[Job]: + """Return a list of jobs belonging to tenant + + Get an array of objects including all active, paused, canceled, and complete jobs in a workspace. + + :param from_time: Start of time range in ms since 1970 + :type from_time: int + :param to_time: End of time range in ms since 1970 + :type to_time: int + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_jobs_serialize( + from_time=from_time, + to_time=to_time, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[Job]", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_jobs_with_http_info( + self, + from_time: Annotated[Optional[StrictInt], Field(description="Start of time range in ms since 1970")] = None, + to_time: Annotated[Optional[StrictInt], Field(description="End of time range in ms since 1970")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[List[Job]]: + """Return a list of jobs belonging to tenant + + Get an array of objects including all active, paused, canceled, and complete jobs in a workspace. + + :param from_time: Start of time range in ms since 1970 + :type from_time: int + :param to_time: End of time range in ms since 1970 + :type to_time: int + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_jobs_serialize( + from_time=from_time, + to_time=to_time, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[Job]", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_jobs_without_preload_content( + self, + from_time: Annotated[Optional[StrictInt], Field(description="Start of time range in ms since 1970")] = None, + to_time: Annotated[Optional[StrictInt], Field(description="End of time range in ms since 1970")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Return a list of jobs belonging to tenant + + Get an array of objects including all active, paused, canceled, and complete jobs in a workspace. + + :param from_time: Start of time range in ms since 1970 + :type from_time: int + :param to_time: End of time range in ms since 1970 + :type to_time: int + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_jobs_serialize( + from_time=from_time, + to_time=to_time, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[Job]", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_jobs_serialize( + self, + from_time, + to_time, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if from_time is not None: + + _query_params.append(('fromTime', from_time)) + + if to_time is not None: + + _query_params.append(('toTime', to_time)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/batch/jobs', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def pause_job( + self, + job_id: Annotated[StrictStr, Field(description="The requested job id")], + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> None: + """Pause a job + + Pause the given job, after the current task is done. A paused job can later be resumed by calling ‘continue’, or canceled. + + :param job_id: The requested job id (required) + :type job_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._pause_job_serialize( + job_id=job_id, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def pause_job_with_http_info( + self, + job_id: Annotated[StrictStr, Field(description="The requested job id")], + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[None]: + """Pause a job + + Pause the given job, after the current task is done. A paused job can later be resumed by calling ‘continue’, or canceled. + + :param job_id: The requested job id (required) + :type job_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._pause_job_serialize( + job_id=job_id, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def pause_job_without_preload_content( + self, + job_id: Annotated[StrictStr, Field(description="The requested job id")], + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Pause a job + + Pause the given job, after the current task is done. A paused job can later be resumed by calling ‘continue’, or canceled. + + :param job_id: The requested job id (required) + :type job_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._pause_job_serialize( + job_id=job_id, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _pause_job_serialize( + self, + job_id, + idempotency_key, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if job_id is not None: + _path_params['jobId'] = job_id + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/batch/{jobId}/pause', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/fireblocks_client/api/network_connections_api.py b/fireblocks_client/api/network_connections_api.py new file mode 100644 index 00000000..b1aefa62 --- /dev/null +++ b/fireblocks_client/api/network_connections_api.py @@ -0,0 +1,3788 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from pydantic import Field, StrictStr +from typing import Optional +from typing_extensions import Annotated +from fireblocks_client.models.create_network_id_request import CreateNetworkIdRequest +from fireblocks_client.models.delete_network_connection_response import DeleteNetworkConnectionResponse +from fireblocks_client.models.delete_network_id_response import DeleteNetworkIdResponse +from fireblocks_client.models.network_connection import NetworkConnection +from fireblocks_client.models.network_connection_response import NetworkConnectionResponse +from fireblocks_client.models.network_id_response import NetworkIdResponse +from fireblocks_client.models.set_network_id_discoverability_request import SetNetworkIdDiscoverabilityRequest +from fireblocks_client.models.set_network_id_name_request import SetNetworkIdNameRequest +from fireblocks_client.models.set_network_id_response import SetNetworkIdResponse +from fireblocks_client.models.set_network_id_routing_policy_request import SetNetworkIdRoutingPolicyRequest +from fireblocks_client.models.set_routing_policy_request import SetRoutingPolicyRequest +from fireblocks_client.models.set_routing_policy_response import SetRoutingPolicyResponse +from fireblocks_client.models.third_party_routing import ThirdPartyRouting + +from fireblocks_client.api_client import ApiClient, RequestSerialized +from fireblocks_client.api_response import ApiResponse +from fireblocks_client.rest import RESTResponseType + + +class NetworkConnectionsApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def check_third_party_routing( + self, + connection_id: Annotated[StrictStr, Field(description="The ID of the network connection")], + asset_type: Annotated[StrictStr, Field(description="The destination asset type")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ThirdPartyRouting: + """Retrieve third-party network routing validation by asset type. + + The Fireblocks Network allows for flexibility around incoming deposits. A receiver can receive network deposits to locations other than Fireblocks. This endpoint validates whether future transactions are routed to the displayed recipient or to a 3rd party. + + :param connection_id: The ID of the network connection (required) + :type connection_id: str + :param asset_type: The destination asset type (required) + :type asset_type: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._check_third_party_routing_serialize( + connection_id=connection_id, + asset_type=asset_type, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ThirdPartyRouting", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def check_third_party_routing_with_http_info( + self, + connection_id: Annotated[StrictStr, Field(description="The ID of the network connection")], + asset_type: Annotated[StrictStr, Field(description="The destination asset type")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ThirdPartyRouting]: + """Retrieve third-party network routing validation by asset type. + + The Fireblocks Network allows for flexibility around incoming deposits. A receiver can receive network deposits to locations other than Fireblocks. This endpoint validates whether future transactions are routed to the displayed recipient or to a 3rd party. + + :param connection_id: The ID of the network connection (required) + :type connection_id: str + :param asset_type: The destination asset type (required) + :type asset_type: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._check_third_party_routing_serialize( + connection_id=connection_id, + asset_type=asset_type, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ThirdPartyRouting", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def check_third_party_routing_without_preload_content( + self, + connection_id: Annotated[StrictStr, Field(description="The ID of the network connection")], + asset_type: Annotated[StrictStr, Field(description="The destination asset type")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Retrieve third-party network routing validation by asset type. + + The Fireblocks Network allows for flexibility around incoming deposits. A receiver can receive network deposits to locations other than Fireblocks. This endpoint validates whether future transactions are routed to the displayed recipient or to a 3rd party. + + :param connection_id: The ID of the network connection (required) + :type connection_id: str + :param asset_type: The destination asset type (required) + :type asset_type: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._check_third_party_routing_serialize( + connection_id=connection_id, + asset_type=asset_type, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ThirdPartyRouting", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _check_third_party_routing_serialize( + self, + connection_id, + asset_type, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if connection_id is not None: + _path_params['connectionId'] = connection_id + if asset_type is not None: + _path_params['assetType'] = asset_type + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/network_connections/{connectionId}/is_third_party_routing/{assetType}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def create_network_connection( + self, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + network_connection: Optional[NetworkConnection] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> NetworkConnectionResponse: + """Creates a new network connection + + Initiates a new network connection. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** Supported asset groups for routing police can be found at `/network_ids/routing_policy_asset_groups` - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). + + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: str + :param network_connection: + :type network_connection: NetworkConnection + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_network_connection_serialize( + idempotency_key=idempotency_key, + network_connection=network_connection, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "NetworkConnectionResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def create_network_connection_with_http_info( + self, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + network_connection: Optional[NetworkConnection] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[NetworkConnectionResponse]: + """Creates a new network connection + + Initiates a new network connection. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** Supported asset groups for routing police can be found at `/network_ids/routing_policy_asset_groups` - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). + + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: str + :param network_connection: + :type network_connection: NetworkConnection + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_network_connection_serialize( + idempotency_key=idempotency_key, + network_connection=network_connection, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "NetworkConnectionResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def create_network_connection_without_preload_content( + self, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + network_connection: Optional[NetworkConnection] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Creates a new network connection + + Initiates a new network connection. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** Supported asset groups for routing police can be found at `/network_ids/routing_policy_asset_groups` - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). + + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: str + :param network_connection: + :type network_connection: NetworkConnection + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_network_connection_serialize( + idempotency_key=idempotency_key, + network_connection=network_connection, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "NetworkConnectionResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _create_network_connection_serialize( + self, + idempotency_key, + network_connection, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + if network_connection is not None: + _body_params = network_connection + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/network_connections', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def create_network_id( + self, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + create_network_id_request: Optional[CreateNetworkIdRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> NetworkIdResponse: + """Creates a new Network ID + + Creates a new Network ID. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** Supported asset groups for routing police can be found at `/network_ids/routing_policy_asset_groups` - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). + + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: str + :param create_network_id_request: + :type create_network_id_request: CreateNetworkIdRequest + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_network_id_serialize( + idempotency_key=idempotency_key, + create_network_id_request=create_network_id_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "NetworkIdResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def create_network_id_with_http_info( + self, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + create_network_id_request: Optional[CreateNetworkIdRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[NetworkIdResponse]: + """Creates a new Network ID + + Creates a new Network ID. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** Supported asset groups for routing police can be found at `/network_ids/routing_policy_asset_groups` - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). + + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: str + :param create_network_id_request: + :type create_network_id_request: CreateNetworkIdRequest + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_network_id_serialize( + idempotency_key=idempotency_key, + create_network_id_request=create_network_id_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "NetworkIdResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def create_network_id_without_preload_content( + self, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + create_network_id_request: Optional[CreateNetworkIdRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Creates a new Network ID + + Creates a new Network ID. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** Supported asset groups for routing police can be found at `/network_ids/routing_policy_asset_groups` - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). + + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: str + :param create_network_id_request: + :type create_network_id_request: CreateNetworkIdRequest + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_network_id_serialize( + idempotency_key=idempotency_key, + create_network_id_request=create_network_id_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "NetworkIdResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _create_network_id_serialize( + self, + idempotency_key, + create_network_id_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + if create_network_id_request is not None: + _body_params = create_network_id_request + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/network_ids', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def delete_network_connection( + self, + connection_id: Annotated[StrictStr, Field(description="The ID of the network connection to delete")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> DeleteNetworkConnectionResponse: + """Deletes a network connection by ID + + Deletes an existing network connection specified by its connection ID. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). + + :param connection_id: The ID of the network connection to delete (required) + :type connection_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_network_connection_serialize( + connection_id=connection_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeleteNetworkConnectionResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def delete_network_connection_with_http_info( + self, + connection_id: Annotated[StrictStr, Field(description="The ID of the network connection to delete")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[DeleteNetworkConnectionResponse]: + """Deletes a network connection by ID + + Deletes an existing network connection specified by its connection ID. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). + + :param connection_id: The ID of the network connection to delete (required) + :type connection_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_network_connection_serialize( + connection_id=connection_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeleteNetworkConnectionResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def delete_network_connection_without_preload_content( + self, + connection_id: Annotated[StrictStr, Field(description="The ID of the network connection to delete")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Deletes a network connection by ID + + Deletes an existing network connection specified by its connection ID. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). + + :param connection_id: The ID of the network connection to delete (required) + :type connection_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_network_connection_serialize( + connection_id=connection_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeleteNetworkConnectionResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _delete_network_connection_serialize( + self, + connection_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if connection_id is not None: + _path_params['connectionId'] = connection_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/network_connections/{connectionId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def delete_network_id( + self, + network_id: Annotated[StrictStr, Field(description="The ID of the network")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> DeleteNetworkIdResponse: + """Deletes specific network ID. + + Deletes a network by its ID. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). + + :param network_id: The ID of the network (required) + :type network_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_network_id_serialize( + network_id=network_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeleteNetworkIdResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def delete_network_id_with_http_info( + self, + network_id: Annotated[StrictStr, Field(description="The ID of the network")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[DeleteNetworkIdResponse]: + """Deletes specific network ID. + + Deletes a network by its ID. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). + + :param network_id: The ID of the network (required) + :type network_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_network_id_serialize( + network_id=network_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeleteNetworkIdResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def delete_network_id_without_preload_content( + self, + network_id: Annotated[StrictStr, Field(description="The ID of the network")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Deletes specific network ID. + + Deletes a network by its ID. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). + + :param network_id: The ID of the network (required) + :type network_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_network_id_serialize( + network_id=network_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeleteNetworkIdResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _delete_network_id_serialize( + self, + network_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if network_id is not None: + _path_params['networkId'] = network_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/network_ids/{networkId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_network( + self, + connection_id: Annotated[StrictStr, Field(description="The ID of the connection")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> NetworkConnectionResponse: + """Get a network connection + + Gets a network connection by ID. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). + + :param connection_id: The ID of the connection (required) + :type connection_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_network_serialize( + connection_id=connection_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "NetworkConnectionResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_network_with_http_info( + self, + connection_id: Annotated[StrictStr, Field(description="The ID of the connection")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[NetworkConnectionResponse]: + """Get a network connection + + Gets a network connection by ID. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). + + :param connection_id: The ID of the connection (required) + :type connection_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_network_serialize( + connection_id=connection_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "NetworkConnectionResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_network_without_preload_content( + self, + connection_id: Annotated[StrictStr, Field(description="The ID of the connection")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get a network connection + + Gets a network connection by ID. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). + + :param connection_id: The ID of the connection (required) + :type connection_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_network_serialize( + connection_id=connection_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "NetworkConnectionResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_network_serialize( + self, + connection_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if connection_id is not None: + _path_params['connectionId'] = connection_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/network_connections/{connectionId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_network_connections( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> List[NetworkConnectionResponse]: + """List network connections + + Returns all network connections. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). + + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_network_connections_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[NetworkConnectionResponse]", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_network_connections_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[List[NetworkConnectionResponse]]: + """List network connections + + Returns all network connections. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). + + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_network_connections_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[NetworkConnectionResponse]", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_network_connections_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List network connections + + Returns all network connections. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). + + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_network_connections_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[NetworkConnectionResponse]", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_network_connections_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/network_connections', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_network_id( + self, + network_id: Annotated[StrictStr, Field(description="The ID of the network")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> NetworkIdResponse: + """Returns specific network ID. + + Retrieves a network by its ID. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). + + :param network_id: The ID of the network (required) + :type network_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_network_id_serialize( + network_id=network_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "NetworkIdResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_network_id_with_http_info( + self, + network_id: Annotated[StrictStr, Field(description="The ID of the network")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[NetworkIdResponse]: + """Returns specific network ID. + + Retrieves a network by its ID. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). + + :param network_id: The ID of the network (required) + :type network_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_network_id_serialize( + network_id=network_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "NetworkIdResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_network_id_without_preload_content( + self, + network_id: Annotated[StrictStr, Field(description="The ID of the network")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Returns specific network ID. + + Retrieves a network by its ID. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). + + :param network_id: The ID of the network (required) + :type network_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_network_id_serialize( + network_id=network_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "NetworkIdResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_network_id_serialize( + self, + network_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if network_id is not None: + _path_params['networkId'] = network_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/network_ids/{networkId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_network_ids( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> List[NetworkIdResponse]: + """Returns all network IDs, both local IDs and discoverable remote IDs + + Retrieves a list of all local and discoverable remote network IDs. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). + + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_network_ids_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[NetworkIdResponse]", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_network_ids_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[List[NetworkIdResponse]]: + """Returns all network IDs, both local IDs and discoverable remote IDs + + Retrieves a list of all local and discoverable remote network IDs. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). + + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_network_ids_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[NetworkIdResponse]", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_network_ids_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Returns all network IDs, both local IDs and discoverable remote IDs + + Retrieves a list of all local and discoverable remote network IDs. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). + + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_network_ids_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[NetworkIdResponse]", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_network_ids_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/network_ids', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_routing_policy_asset_groups( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> List[str]: + """Returns all enabled routing policy asset groups + + Retrieves a list of all enabled routing policy asset groups. Your routing policy defines how your transactions are routed. You can use one or more enabled routing policy asset groups to describe connection or network id routing policy. + + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_routing_policy_asset_groups_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[str]", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_routing_policy_asset_groups_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[List[str]]: + """Returns all enabled routing policy asset groups + + Retrieves a list of all enabled routing policy asset groups. Your routing policy defines how your transactions are routed. You can use one or more enabled routing policy asset groups to describe connection or network id routing policy. + + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_routing_policy_asset_groups_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[str]", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_routing_policy_asset_groups_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Returns all enabled routing policy asset groups + + Retrieves a list of all enabled routing policy asset groups. Your routing policy defines how your transactions are routed. You can use one or more enabled routing policy asset groups to describe connection or network id routing policy. + + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_routing_policy_asset_groups_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[str]", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_routing_policy_asset_groups_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/network_ids/routing_policy_asset_groups', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def set_network_id_discoverability( + self, + network_id: Annotated[StrictStr, Field(description="The ID of the network")], + set_network_id_discoverability_request: SetNetworkIdDiscoverabilityRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SetNetworkIdResponse: + """Update network ID's discoverability. + + Update whether or not the network ID is discoverable by others. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). + + :param network_id: The ID of the network (required) + :type network_id: str + :param set_network_id_discoverability_request: (required) + :type set_network_id_discoverability_request: SetNetworkIdDiscoverabilityRequest + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._set_network_id_discoverability_serialize( + network_id=network_id, + set_network_id_discoverability_request=set_network_id_discoverability_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SetNetworkIdResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def set_network_id_discoverability_with_http_info( + self, + network_id: Annotated[StrictStr, Field(description="The ID of the network")], + set_network_id_discoverability_request: SetNetworkIdDiscoverabilityRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SetNetworkIdResponse]: + """Update network ID's discoverability. + + Update whether or not the network ID is discoverable by others. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). + + :param network_id: The ID of the network (required) + :type network_id: str + :param set_network_id_discoverability_request: (required) + :type set_network_id_discoverability_request: SetNetworkIdDiscoverabilityRequest + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._set_network_id_discoverability_serialize( + network_id=network_id, + set_network_id_discoverability_request=set_network_id_discoverability_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SetNetworkIdResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def set_network_id_discoverability_without_preload_content( + self, + network_id: Annotated[StrictStr, Field(description="The ID of the network")], + set_network_id_discoverability_request: SetNetworkIdDiscoverabilityRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Update network ID's discoverability. + + Update whether or not the network ID is discoverable by others. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). + + :param network_id: The ID of the network (required) + :type network_id: str + :param set_network_id_discoverability_request: (required) + :type set_network_id_discoverability_request: SetNetworkIdDiscoverabilityRequest + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._set_network_id_discoverability_serialize( + network_id=network_id, + set_network_id_discoverability_request=set_network_id_discoverability_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SetNetworkIdResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _set_network_id_discoverability_serialize( + self, + network_id, + set_network_id_discoverability_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if network_id is not None: + _path_params['networkId'] = network_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if set_network_id_discoverability_request is not None: + _body_params = set_network_id_discoverability_request + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='PATCH', + resource_path='/network_ids/{networkId}/set_discoverability', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def set_network_id_name( + self, + network_id: Annotated[StrictStr, Field(description="The ID of the network")], + set_network_id_name_request: SetNetworkIdNameRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SetNetworkIdResponse: + """Update network ID's name. + + Updates name of a specified network ID. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). + + :param network_id: The ID of the network (required) + :type network_id: str + :param set_network_id_name_request: (required) + :type set_network_id_name_request: SetNetworkIdNameRequest + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._set_network_id_name_serialize( + network_id=network_id, + set_network_id_name_request=set_network_id_name_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SetNetworkIdResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def set_network_id_name_with_http_info( + self, + network_id: Annotated[StrictStr, Field(description="The ID of the network")], + set_network_id_name_request: SetNetworkIdNameRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SetNetworkIdResponse]: + """Update network ID's name. + + Updates name of a specified network ID. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). + + :param network_id: The ID of the network (required) + :type network_id: str + :param set_network_id_name_request: (required) + :type set_network_id_name_request: SetNetworkIdNameRequest + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._set_network_id_name_serialize( + network_id=network_id, + set_network_id_name_request=set_network_id_name_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SetNetworkIdResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def set_network_id_name_without_preload_content( + self, + network_id: Annotated[StrictStr, Field(description="The ID of the network")], + set_network_id_name_request: SetNetworkIdNameRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Update network ID's name. + + Updates name of a specified network ID. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). + + :param network_id: The ID of the network (required) + :type network_id: str + :param set_network_id_name_request: (required) + :type set_network_id_name_request: SetNetworkIdNameRequest + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._set_network_id_name_serialize( + network_id=network_id, + set_network_id_name_request=set_network_id_name_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SetNetworkIdResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _set_network_id_name_serialize( + self, + network_id, + set_network_id_name_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if network_id is not None: + _path_params['networkId'] = network_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if set_network_id_name_request is not None: + _body_params = set_network_id_name_request + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='PATCH', + resource_path='/network_ids/{networkId}/set_name', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def set_network_id_routing_policy( + self, + network_id: Annotated[StrictStr, Field(description="The ID of the network")], + set_network_id_routing_policy_request: Optional[SetNetworkIdRoutingPolicyRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SetNetworkIdResponse: + """Update network id routing policy. + + Updates the routing policy of a specified network ID. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** Supported asset groups for routing police can be found at `/network_ids/routing_policy_asset_groups` - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). + + :param network_id: The ID of the network (required) + :type network_id: str + :param set_network_id_routing_policy_request: + :type set_network_id_routing_policy_request: SetNetworkIdRoutingPolicyRequest + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._set_network_id_routing_policy_serialize( + network_id=network_id, + set_network_id_routing_policy_request=set_network_id_routing_policy_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SetNetworkIdResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def set_network_id_routing_policy_with_http_info( + self, + network_id: Annotated[StrictStr, Field(description="The ID of the network")], + set_network_id_routing_policy_request: Optional[SetNetworkIdRoutingPolicyRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SetNetworkIdResponse]: + """Update network id routing policy. + + Updates the routing policy of a specified network ID. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** Supported asset groups for routing police can be found at `/network_ids/routing_policy_asset_groups` - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). + + :param network_id: The ID of the network (required) + :type network_id: str + :param set_network_id_routing_policy_request: + :type set_network_id_routing_policy_request: SetNetworkIdRoutingPolicyRequest + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._set_network_id_routing_policy_serialize( + network_id=network_id, + set_network_id_routing_policy_request=set_network_id_routing_policy_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SetNetworkIdResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def set_network_id_routing_policy_without_preload_content( + self, + network_id: Annotated[StrictStr, Field(description="The ID of the network")], + set_network_id_routing_policy_request: Optional[SetNetworkIdRoutingPolicyRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Update network id routing policy. + + Updates the routing policy of a specified network ID. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** Supported asset groups for routing police can be found at `/network_ids/routing_policy_asset_groups` - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). + + :param network_id: The ID of the network (required) + :type network_id: str + :param set_network_id_routing_policy_request: + :type set_network_id_routing_policy_request: SetNetworkIdRoutingPolicyRequest + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._set_network_id_routing_policy_serialize( + network_id=network_id, + set_network_id_routing_policy_request=set_network_id_routing_policy_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SetNetworkIdResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _set_network_id_routing_policy_serialize( + self, + network_id, + set_network_id_routing_policy_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if network_id is not None: + _path_params['networkId'] = network_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if set_network_id_routing_policy_request is not None: + _body_params = set_network_id_routing_policy_request + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='PATCH', + resource_path='/network_ids/{networkId}/set_routing_policy', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def set_routing_policy( + self, + connection_id: Annotated[StrictStr, Field(description="The ID of the network connection")], + set_routing_policy_request: Optional[SetRoutingPolicyRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SetRoutingPolicyResponse: + """Update network connection routing policy. + + Updates an existing network connection's routing policy. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** Supported asset groups for routing police can be found at `/network_ids/routing_policy_asset_groups` - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). + + :param connection_id: The ID of the network connection (required) + :type connection_id: str + :param set_routing_policy_request: + :type set_routing_policy_request: SetRoutingPolicyRequest + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._set_routing_policy_serialize( + connection_id=connection_id, + set_routing_policy_request=set_routing_policy_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SetRoutingPolicyResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def set_routing_policy_with_http_info( + self, + connection_id: Annotated[StrictStr, Field(description="The ID of the network connection")], + set_routing_policy_request: Optional[SetRoutingPolicyRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SetRoutingPolicyResponse]: + """Update network connection routing policy. + + Updates an existing network connection's routing policy. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** Supported asset groups for routing police can be found at `/network_ids/routing_policy_asset_groups` - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). + + :param connection_id: The ID of the network connection (required) + :type connection_id: str + :param set_routing_policy_request: + :type set_routing_policy_request: SetRoutingPolicyRequest + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._set_routing_policy_serialize( + connection_id=connection_id, + set_routing_policy_request=set_routing_policy_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SetRoutingPolicyResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def set_routing_policy_without_preload_content( + self, + connection_id: Annotated[StrictStr, Field(description="The ID of the network connection")], + set_routing_policy_request: Optional[SetRoutingPolicyRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Update network connection routing policy. + + Updates an existing network connection's routing policy. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** Supported asset groups for routing police can be found at `/network_ids/routing_policy_asset_groups` - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). + + :param connection_id: The ID of the network connection (required) + :type connection_id: str + :param set_routing_policy_request: + :type set_routing_policy_request: SetRoutingPolicyRequest + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._set_routing_policy_serialize( + connection_id=connection_id, + set_routing_policy_request=set_routing_policy_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SetRoutingPolicyResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _set_routing_policy_serialize( + self, + connection_id, + set_routing_policy_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if connection_id is not None: + _path_params['connectionId'] = connection_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if set_routing_policy_request is not None: + _body_params = set_routing_policy_request + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='PATCH', + resource_path='/network_connections/{connectionId}/set_routing_policy', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/fireblocks_client/api/nfts_api.py b/fireblocks_client/api/nfts_api.py new file mode 100644 index 00000000..30f04743 --- /dev/null +++ b/fireblocks_client/api/nfts_api.py @@ -0,0 +1,3305 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from pydantic import Field, StrictStr, field_validator +from typing import List, Optional, Union +from typing_extensions import Annotated +from fireblocks_client.models.get_nfts_response import GetNFTsResponse +from fireblocks_client.models.get_ownership_tokens_response import GetOwnershipTokensResponse +from fireblocks_client.models.list_owned_collections_response import ListOwnedCollectionsResponse +from fireblocks_client.models.list_owned_tokens_response import ListOwnedTokensResponse +from fireblocks_client.models.token_ownership_spam_update_payload import TokenOwnershipSpamUpdatePayload +from fireblocks_client.models.token_ownership_status_update_payload import TokenOwnershipStatusUpdatePayload +from fireblocks_client.models.token_response import TokenResponse +from fireblocks_client.models.update_token_ownership_status_dto import UpdateTokenOwnershipStatusDto + +from fireblocks_client.api_client import ApiClient, RequestSerialized +from fireblocks_client.api_response import ApiResponse +from fireblocks_client.rest import RESTResponseType + + +class NFTsApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def get_nft( + self, + id: Annotated[StrictStr, Field(description="NFT ID")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> TokenResponse: + """List token data by ID + + Returns the requested token data. + + :param id: NFT ID (required) + :type id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_nft_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "TokenResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_nft_with_http_info( + self, + id: Annotated[StrictStr, Field(description="NFT ID")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[TokenResponse]: + """List token data by ID + + Returns the requested token data. + + :param id: NFT ID (required) + :type id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_nft_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "TokenResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_nft_without_preload_content( + self, + id: Annotated[StrictStr, Field(description="NFT ID")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List token data by ID + + Returns the requested token data. + + :param id: NFT ID (required) + :type id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_nft_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "TokenResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_nft_serialize( + self, + id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/nfts/tokens/{id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_nfts( + self, + ids: Annotated[StrictStr, Field(description="A comma separated list of NFT IDs. Up to 100 are allowed in a single request.")], + page_cursor: Annotated[Optional[StrictStr], Field(description="Page cursor to fetch")] = None, + page_size: Annotated[Optional[Union[Annotated[float, Field(le=100, strict=True, ge=1)], Annotated[int, Field(le=100, strict=True, ge=1)]]], Field(description="Items per page (max 100)")] = None, + sort: Annotated[Optional[List[StrictStr]], Field(description="Sort by param, it can be one param or a list of params separated by comma")] = None, + order: Annotated[Optional[StrictStr], Field(description="Order direction, it can be `ASC` for ascending or `DESC` for descending")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetNFTsResponse: + """List tokens by IDs + + Returns the requested tokens data. + + :param ids: A comma separated list of NFT IDs. Up to 100 are allowed in a single request. (required) + :type ids: str + :param page_cursor: Page cursor to fetch + :type page_cursor: str + :param page_size: Items per page (max 100) + :type page_size: float + :param sort: Sort by param, it can be one param or a list of params separated by comma + :type sort: List[str] + :param order: Order direction, it can be `ASC` for ascending or `DESC` for descending + :type order: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_nfts_serialize( + ids=ids, + page_cursor=page_cursor, + page_size=page_size, + sort=sort, + order=order, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetNFTsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_nfts_with_http_info( + self, + ids: Annotated[StrictStr, Field(description="A comma separated list of NFT IDs. Up to 100 are allowed in a single request.")], + page_cursor: Annotated[Optional[StrictStr], Field(description="Page cursor to fetch")] = None, + page_size: Annotated[Optional[Union[Annotated[float, Field(le=100, strict=True, ge=1)], Annotated[int, Field(le=100, strict=True, ge=1)]]], Field(description="Items per page (max 100)")] = None, + sort: Annotated[Optional[List[StrictStr]], Field(description="Sort by param, it can be one param or a list of params separated by comma")] = None, + order: Annotated[Optional[StrictStr], Field(description="Order direction, it can be `ASC` for ascending or `DESC` for descending")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetNFTsResponse]: + """List tokens by IDs + + Returns the requested tokens data. + + :param ids: A comma separated list of NFT IDs. Up to 100 are allowed in a single request. (required) + :type ids: str + :param page_cursor: Page cursor to fetch + :type page_cursor: str + :param page_size: Items per page (max 100) + :type page_size: float + :param sort: Sort by param, it can be one param or a list of params separated by comma + :type sort: List[str] + :param order: Order direction, it can be `ASC` for ascending or `DESC` for descending + :type order: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_nfts_serialize( + ids=ids, + page_cursor=page_cursor, + page_size=page_size, + sort=sort, + order=order, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetNFTsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_nfts_without_preload_content( + self, + ids: Annotated[StrictStr, Field(description="A comma separated list of NFT IDs. Up to 100 are allowed in a single request.")], + page_cursor: Annotated[Optional[StrictStr], Field(description="Page cursor to fetch")] = None, + page_size: Annotated[Optional[Union[Annotated[float, Field(le=100, strict=True, ge=1)], Annotated[int, Field(le=100, strict=True, ge=1)]]], Field(description="Items per page (max 100)")] = None, + sort: Annotated[Optional[List[StrictStr]], Field(description="Sort by param, it can be one param or a list of params separated by comma")] = None, + order: Annotated[Optional[StrictStr], Field(description="Order direction, it can be `ASC` for ascending or `DESC` for descending")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List tokens by IDs + + Returns the requested tokens data. + + :param ids: A comma separated list of NFT IDs. Up to 100 are allowed in a single request. (required) + :type ids: str + :param page_cursor: Page cursor to fetch + :type page_cursor: str + :param page_size: Items per page (max 100) + :type page_size: float + :param sort: Sort by param, it can be one param or a list of params separated by comma + :type sort: List[str] + :param order: Order direction, it can be `ASC` for ascending or `DESC` for descending + :type order: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_nfts_serialize( + ids=ids, + page_cursor=page_cursor, + page_size=page_size, + sort=sort, + order=order, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetNFTsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_nfts_serialize( + self, + ids, + page_cursor, + page_size, + sort, + order, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + 'sort': 'multi', + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if ids is not None: + + _query_params.append(('ids', ids)) + + if page_cursor is not None: + + _query_params.append(('pageCursor', page_cursor)) + + if page_size is not None: + + _query_params.append(('pageSize', page_size)) + + if sort is not None: + + _query_params.append(('sort', sort)) + + if order is not None: + + _query_params.append(('order', order)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/nfts/tokens', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_ownership_tokens( + self, + blockchain_descriptor: Annotated[Optional[StrictStr], Field(description="Blockchain descriptor filter")] = None, + vault_account_ids: Annotated[Optional[StrictStr], Field(description="A comma separated list of Vault Account IDs. Up to 100 are allowed in a single request. This field will be ignored when walletType=END_USER_WALLET or ncwId is provided.")] = None, + ncw_id: Annotated[Optional[StrictStr], Field(description="Tenant's Non-Custodial Wallet ID")] = None, + ncw_account_ids: Annotated[Optional[StrictStr], Field(description="A comma separated list of Non-Custodial account IDs. Up to 100 are allowed in a single request. This field will be ignored when walletType=VAULT_ACCOUNT or ncwId is not provided.")] = None, + wallet_type: Annotated[Optional[StrictStr], Field(description="Wallet type, it can be `VAULT_ACCOUNT` or `END_USER_WALLET`")] = None, + ids: Annotated[Optional[StrictStr], Field(description="A comma separated list of NFT IDs. Up to 100 are allowed in a single request.")] = None, + collection_ids: Annotated[Optional[StrictStr], Field(description="A comma separated list of collection IDs. Up to 100 are allowed in a single request.")] = None, + page_cursor: Annotated[Optional[StrictStr], Field(description="Page cursor to fetch")] = None, + page_size: Annotated[Optional[Union[Annotated[float, Field(le=100, strict=True, ge=1)], Annotated[int, Field(le=100, strict=True, ge=1)]]], Field(description="Items per page (max 100)")] = None, + sort: Annotated[Optional[List[StrictStr]], Field(description="Sort by param, it can be one param or a list of params separated by comma")] = None, + order: Annotated[Optional[StrictStr], Field(description="Order direction, it can be `ASC` for ascending or `DESC` for descending")] = None, + status: Annotated[Optional[StrictStr], Field(description="Token ownership status")] = None, + search: Annotated[Optional[Annotated[str, Field(strict=True)]], Field(description="Search owned tokens and their collections. Possible criteria for search: token name and id within the contract/collection, collection name, blockchain descriptor and name.")] = None, + spam: Annotated[Optional[StrictStr], Field(description="Token ownership spam status.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetOwnershipTokensResponse: + """List all owned tokens (paginated) + + Returns all tokens and their data in your workspace. + + :param blockchain_descriptor: Blockchain descriptor filter + :type blockchain_descriptor: str + :param vault_account_ids: A comma separated list of Vault Account IDs. Up to 100 are allowed in a single request. This field will be ignored when walletType=END_USER_WALLET or ncwId is provided. + :type vault_account_ids: str + :param ncw_id: Tenant's Non-Custodial Wallet ID + :type ncw_id: str + :param ncw_account_ids: A comma separated list of Non-Custodial account IDs. Up to 100 are allowed in a single request. This field will be ignored when walletType=VAULT_ACCOUNT or ncwId is not provided. + :type ncw_account_ids: str + :param wallet_type: Wallet type, it can be `VAULT_ACCOUNT` or `END_USER_WALLET` + :type wallet_type: str + :param ids: A comma separated list of NFT IDs. Up to 100 are allowed in a single request. + :type ids: str + :param collection_ids: A comma separated list of collection IDs. Up to 100 are allowed in a single request. + :type collection_ids: str + :param page_cursor: Page cursor to fetch + :type page_cursor: str + :param page_size: Items per page (max 100) + :type page_size: float + :param sort: Sort by param, it can be one param or a list of params separated by comma + :type sort: List[str] + :param order: Order direction, it can be `ASC` for ascending or `DESC` for descending + :type order: str + :param status: Token ownership status + :type status: str + :param search: Search owned tokens and their collections. Possible criteria for search: token name and id within the contract/collection, collection name, blockchain descriptor and name. + :type search: str + :param spam: Token ownership spam status. + :type spam: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_ownership_tokens_serialize( + blockchain_descriptor=blockchain_descriptor, + vault_account_ids=vault_account_ids, + ncw_id=ncw_id, + ncw_account_ids=ncw_account_ids, + wallet_type=wallet_type, + ids=ids, + collection_ids=collection_ids, + page_cursor=page_cursor, + page_size=page_size, + sort=sort, + order=order, + status=status, + search=search, + spam=spam, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetOwnershipTokensResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_ownership_tokens_with_http_info( + self, + blockchain_descriptor: Annotated[Optional[StrictStr], Field(description="Blockchain descriptor filter")] = None, + vault_account_ids: Annotated[Optional[StrictStr], Field(description="A comma separated list of Vault Account IDs. Up to 100 are allowed in a single request. This field will be ignored when walletType=END_USER_WALLET or ncwId is provided.")] = None, + ncw_id: Annotated[Optional[StrictStr], Field(description="Tenant's Non-Custodial Wallet ID")] = None, + ncw_account_ids: Annotated[Optional[StrictStr], Field(description="A comma separated list of Non-Custodial account IDs. Up to 100 are allowed in a single request. This field will be ignored when walletType=VAULT_ACCOUNT or ncwId is not provided.")] = None, + wallet_type: Annotated[Optional[StrictStr], Field(description="Wallet type, it can be `VAULT_ACCOUNT` or `END_USER_WALLET`")] = None, + ids: Annotated[Optional[StrictStr], Field(description="A comma separated list of NFT IDs. Up to 100 are allowed in a single request.")] = None, + collection_ids: Annotated[Optional[StrictStr], Field(description="A comma separated list of collection IDs. Up to 100 are allowed in a single request.")] = None, + page_cursor: Annotated[Optional[StrictStr], Field(description="Page cursor to fetch")] = None, + page_size: Annotated[Optional[Union[Annotated[float, Field(le=100, strict=True, ge=1)], Annotated[int, Field(le=100, strict=True, ge=1)]]], Field(description="Items per page (max 100)")] = None, + sort: Annotated[Optional[List[StrictStr]], Field(description="Sort by param, it can be one param or a list of params separated by comma")] = None, + order: Annotated[Optional[StrictStr], Field(description="Order direction, it can be `ASC` for ascending or `DESC` for descending")] = None, + status: Annotated[Optional[StrictStr], Field(description="Token ownership status")] = None, + search: Annotated[Optional[Annotated[str, Field(strict=True)]], Field(description="Search owned tokens and their collections. Possible criteria for search: token name and id within the contract/collection, collection name, blockchain descriptor and name.")] = None, + spam: Annotated[Optional[StrictStr], Field(description="Token ownership spam status.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetOwnershipTokensResponse]: + """List all owned tokens (paginated) + + Returns all tokens and their data in your workspace. + + :param blockchain_descriptor: Blockchain descriptor filter + :type blockchain_descriptor: str + :param vault_account_ids: A comma separated list of Vault Account IDs. Up to 100 are allowed in a single request. This field will be ignored when walletType=END_USER_WALLET or ncwId is provided. + :type vault_account_ids: str + :param ncw_id: Tenant's Non-Custodial Wallet ID + :type ncw_id: str + :param ncw_account_ids: A comma separated list of Non-Custodial account IDs. Up to 100 are allowed in a single request. This field will be ignored when walletType=VAULT_ACCOUNT or ncwId is not provided. + :type ncw_account_ids: str + :param wallet_type: Wallet type, it can be `VAULT_ACCOUNT` or `END_USER_WALLET` + :type wallet_type: str + :param ids: A comma separated list of NFT IDs. Up to 100 are allowed in a single request. + :type ids: str + :param collection_ids: A comma separated list of collection IDs. Up to 100 are allowed in a single request. + :type collection_ids: str + :param page_cursor: Page cursor to fetch + :type page_cursor: str + :param page_size: Items per page (max 100) + :type page_size: float + :param sort: Sort by param, it can be one param or a list of params separated by comma + :type sort: List[str] + :param order: Order direction, it can be `ASC` for ascending or `DESC` for descending + :type order: str + :param status: Token ownership status + :type status: str + :param search: Search owned tokens and their collections. Possible criteria for search: token name and id within the contract/collection, collection name, blockchain descriptor and name. + :type search: str + :param spam: Token ownership spam status. + :type spam: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_ownership_tokens_serialize( + blockchain_descriptor=blockchain_descriptor, + vault_account_ids=vault_account_ids, + ncw_id=ncw_id, + ncw_account_ids=ncw_account_ids, + wallet_type=wallet_type, + ids=ids, + collection_ids=collection_ids, + page_cursor=page_cursor, + page_size=page_size, + sort=sort, + order=order, + status=status, + search=search, + spam=spam, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetOwnershipTokensResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_ownership_tokens_without_preload_content( + self, + blockchain_descriptor: Annotated[Optional[StrictStr], Field(description="Blockchain descriptor filter")] = None, + vault_account_ids: Annotated[Optional[StrictStr], Field(description="A comma separated list of Vault Account IDs. Up to 100 are allowed in a single request. This field will be ignored when walletType=END_USER_WALLET or ncwId is provided.")] = None, + ncw_id: Annotated[Optional[StrictStr], Field(description="Tenant's Non-Custodial Wallet ID")] = None, + ncw_account_ids: Annotated[Optional[StrictStr], Field(description="A comma separated list of Non-Custodial account IDs. Up to 100 are allowed in a single request. This field will be ignored when walletType=VAULT_ACCOUNT or ncwId is not provided.")] = None, + wallet_type: Annotated[Optional[StrictStr], Field(description="Wallet type, it can be `VAULT_ACCOUNT` or `END_USER_WALLET`")] = None, + ids: Annotated[Optional[StrictStr], Field(description="A comma separated list of NFT IDs. Up to 100 are allowed in a single request.")] = None, + collection_ids: Annotated[Optional[StrictStr], Field(description="A comma separated list of collection IDs. Up to 100 are allowed in a single request.")] = None, + page_cursor: Annotated[Optional[StrictStr], Field(description="Page cursor to fetch")] = None, + page_size: Annotated[Optional[Union[Annotated[float, Field(le=100, strict=True, ge=1)], Annotated[int, Field(le=100, strict=True, ge=1)]]], Field(description="Items per page (max 100)")] = None, + sort: Annotated[Optional[List[StrictStr]], Field(description="Sort by param, it can be one param or a list of params separated by comma")] = None, + order: Annotated[Optional[StrictStr], Field(description="Order direction, it can be `ASC` for ascending or `DESC` for descending")] = None, + status: Annotated[Optional[StrictStr], Field(description="Token ownership status")] = None, + search: Annotated[Optional[Annotated[str, Field(strict=True)]], Field(description="Search owned tokens and their collections. Possible criteria for search: token name and id within the contract/collection, collection name, blockchain descriptor and name.")] = None, + spam: Annotated[Optional[StrictStr], Field(description="Token ownership spam status.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List all owned tokens (paginated) + + Returns all tokens and their data in your workspace. + + :param blockchain_descriptor: Blockchain descriptor filter + :type blockchain_descriptor: str + :param vault_account_ids: A comma separated list of Vault Account IDs. Up to 100 are allowed in a single request. This field will be ignored when walletType=END_USER_WALLET or ncwId is provided. + :type vault_account_ids: str + :param ncw_id: Tenant's Non-Custodial Wallet ID + :type ncw_id: str + :param ncw_account_ids: A comma separated list of Non-Custodial account IDs. Up to 100 are allowed in a single request. This field will be ignored when walletType=VAULT_ACCOUNT or ncwId is not provided. + :type ncw_account_ids: str + :param wallet_type: Wallet type, it can be `VAULT_ACCOUNT` or `END_USER_WALLET` + :type wallet_type: str + :param ids: A comma separated list of NFT IDs. Up to 100 are allowed in a single request. + :type ids: str + :param collection_ids: A comma separated list of collection IDs. Up to 100 are allowed in a single request. + :type collection_ids: str + :param page_cursor: Page cursor to fetch + :type page_cursor: str + :param page_size: Items per page (max 100) + :type page_size: float + :param sort: Sort by param, it can be one param or a list of params separated by comma + :type sort: List[str] + :param order: Order direction, it can be `ASC` for ascending or `DESC` for descending + :type order: str + :param status: Token ownership status + :type status: str + :param search: Search owned tokens and their collections. Possible criteria for search: token name and id within the contract/collection, collection name, blockchain descriptor and name. + :type search: str + :param spam: Token ownership spam status. + :type spam: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_ownership_tokens_serialize( + blockchain_descriptor=blockchain_descriptor, + vault_account_ids=vault_account_ids, + ncw_id=ncw_id, + ncw_account_ids=ncw_account_ids, + wallet_type=wallet_type, + ids=ids, + collection_ids=collection_ids, + page_cursor=page_cursor, + page_size=page_size, + sort=sort, + order=order, + status=status, + search=search, + spam=spam, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetOwnershipTokensResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_ownership_tokens_serialize( + self, + blockchain_descriptor, + vault_account_ids, + ncw_id, + ncw_account_ids, + wallet_type, + ids, + collection_ids, + page_cursor, + page_size, + sort, + order, + status, + search, + spam, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + 'sort': 'multi', + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if blockchain_descriptor is not None: + + _query_params.append(('blockchainDescriptor', blockchain_descriptor)) + + if vault_account_ids is not None: + + _query_params.append(('vaultAccountIds', vault_account_ids)) + + if ncw_id is not None: + + _query_params.append(('ncwId', ncw_id)) + + if ncw_account_ids is not None: + + _query_params.append(('ncwAccountIds', ncw_account_ids)) + + if wallet_type is not None: + + _query_params.append(('walletType', wallet_type)) + + if ids is not None: + + _query_params.append(('ids', ids)) + + if collection_ids is not None: + + _query_params.append(('collectionIds', collection_ids)) + + if page_cursor is not None: + + _query_params.append(('pageCursor', page_cursor)) + + if page_size is not None: + + _query_params.append(('pageSize', page_size)) + + if sort is not None: + + _query_params.append(('sort', sort)) + + if order is not None: + + _query_params.append(('order', order)) + + if status is not None: + + _query_params.append(('status', status)) + + if search is not None: + + _query_params.append(('search', search)) + + if spam is not None: + + _query_params.append(('spam', spam)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/nfts/ownership/tokens', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def list_owned_collections( + self, + ncw_id: Annotated[Optional[StrictStr], Field(description="Tenant's Non-Custodial Wallet ID")] = None, + wallet_type: Annotated[Optional[StrictStr], Field(description="Wallet type, it can be `VAULT_ACCOUNT` or `END_USER_WALLET`")] = None, + search: Annotated[Optional[Annotated[str, Field(strict=True)]], Field(description="Search owned collections. Possible criteria for search: collection name, collection contract address.")] = None, + page_cursor: Annotated[Optional[StrictStr], Field(description="Page cursor to fetch")] = None, + page_size: Annotated[Optional[Union[Annotated[float, Field(le=100, strict=True, ge=1)], Annotated[int, Field(le=100, strict=True, ge=1)]]], Field(description="Items per page (max 100)")] = None, + sort: Annotated[Optional[List[StrictStr]], Field(description="Sort by param, it can be one param or a list of params separated by comma")] = None, + order: Annotated[Optional[StrictStr], Field(description="Order direction, it can be `ASC` for ascending or `DESC` for descending")] = None, + status: Annotated[Optional[StrictStr], Field(description="Token ownership status")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ListOwnedCollectionsResponse: + """List owned collections (paginated) + + Returns all collections in your workspace + + :param ncw_id: Tenant's Non-Custodial Wallet ID + :type ncw_id: str + :param wallet_type: Wallet type, it can be `VAULT_ACCOUNT` or `END_USER_WALLET` + :type wallet_type: str + :param search: Search owned collections. Possible criteria for search: collection name, collection contract address. + :type search: str + :param page_cursor: Page cursor to fetch + :type page_cursor: str + :param page_size: Items per page (max 100) + :type page_size: float + :param sort: Sort by param, it can be one param or a list of params separated by comma + :type sort: List[str] + :param order: Order direction, it can be `ASC` for ascending or `DESC` for descending + :type order: str + :param status: Token ownership status + :type status: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_owned_collections_serialize( + ncw_id=ncw_id, + wallet_type=wallet_type, + search=search, + page_cursor=page_cursor, + page_size=page_size, + sort=sort, + order=order, + status=status, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ListOwnedCollectionsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def list_owned_collections_with_http_info( + self, + ncw_id: Annotated[Optional[StrictStr], Field(description="Tenant's Non-Custodial Wallet ID")] = None, + wallet_type: Annotated[Optional[StrictStr], Field(description="Wallet type, it can be `VAULT_ACCOUNT` or `END_USER_WALLET`")] = None, + search: Annotated[Optional[Annotated[str, Field(strict=True)]], Field(description="Search owned collections. Possible criteria for search: collection name, collection contract address.")] = None, + page_cursor: Annotated[Optional[StrictStr], Field(description="Page cursor to fetch")] = None, + page_size: Annotated[Optional[Union[Annotated[float, Field(le=100, strict=True, ge=1)], Annotated[int, Field(le=100, strict=True, ge=1)]]], Field(description="Items per page (max 100)")] = None, + sort: Annotated[Optional[List[StrictStr]], Field(description="Sort by param, it can be one param or a list of params separated by comma")] = None, + order: Annotated[Optional[StrictStr], Field(description="Order direction, it can be `ASC` for ascending or `DESC` for descending")] = None, + status: Annotated[Optional[StrictStr], Field(description="Token ownership status")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ListOwnedCollectionsResponse]: + """List owned collections (paginated) + + Returns all collections in your workspace + + :param ncw_id: Tenant's Non-Custodial Wallet ID + :type ncw_id: str + :param wallet_type: Wallet type, it can be `VAULT_ACCOUNT` or `END_USER_WALLET` + :type wallet_type: str + :param search: Search owned collections. Possible criteria for search: collection name, collection contract address. + :type search: str + :param page_cursor: Page cursor to fetch + :type page_cursor: str + :param page_size: Items per page (max 100) + :type page_size: float + :param sort: Sort by param, it can be one param or a list of params separated by comma + :type sort: List[str] + :param order: Order direction, it can be `ASC` for ascending or `DESC` for descending + :type order: str + :param status: Token ownership status + :type status: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_owned_collections_serialize( + ncw_id=ncw_id, + wallet_type=wallet_type, + search=search, + page_cursor=page_cursor, + page_size=page_size, + sort=sort, + order=order, + status=status, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ListOwnedCollectionsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def list_owned_collections_without_preload_content( + self, + ncw_id: Annotated[Optional[StrictStr], Field(description="Tenant's Non-Custodial Wallet ID")] = None, + wallet_type: Annotated[Optional[StrictStr], Field(description="Wallet type, it can be `VAULT_ACCOUNT` or `END_USER_WALLET`")] = None, + search: Annotated[Optional[Annotated[str, Field(strict=True)]], Field(description="Search owned collections. Possible criteria for search: collection name, collection contract address.")] = None, + page_cursor: Annotated[Optional[StrictStr], Field(description="Page cursor to fetch")] = None, + page_size: Annotated[Optional[Union[Annotated[float, Field(le=100, strict=True, ge=1)], Annotated[int, Field(le=100, strict=True, ge=1)]]], Field(description="Items per page (max 100)")] = None, + sort: Annotated[Optional[List[StrictStr]], Field(description="Sort by param, it can be one param or a list of params separated by comma")] = None, + order: Annotated[Optional[StrictStr], Field(description="Order direction, it can be `ASC` for ascending or `DESC` for descending")] = None, + status: Annotated[Optional[StrictStr], Field(description="Token ownership status")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List owned collections (paginated) + + Returns all collections in your workspace + + :param ncw_id: Tenant's Non-Custodial Wallet ID + :type ncw_id: str + :param wallet_type: Wallet type, it can be `VAULT_ACCOUNT` or `END_USER_WALLET` + :type wallet_type: str + :param search: Search owned collections. Possible criteria for search: collection name, collection contract address. + :type search: str + :param page_cursor: Page cursor to fetch + :type page_cursor: str + :param page_size: Items per page (max 100) + :type page_size: float + :param sort: Sort by param, it can be one param or a list of params separated by comma + :type sort: List[str] + :param order: Order direction, it can be `ASC` for ascending or `DESC` for descending + :type order: str + :param status: Token ownership status + :type status: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_owned_collections_serialize( + ncw_id=ncw_id, + wallet_type=wallet_type, + search=search, + page_cursor=page_cursor, + page_size=page_size, + sort=sort, + order=order, + status=status, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ListOwnedCollectionsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _list_owned_collections_serialize( + self, + ncw_id, + wallet_type, + search, + page_cursor, + page_size, + sort, + order, + status, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + 'sort': 'multi', + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if ncw_id is not None: + + _query_params.append(('ncwId', ncw_id)) + + if wallet_type is not None: + + _query_params.append(('walletType', wallet_type)) + + if search is not None: + + _query_params.append(('search', search)) + + if page_cursor is not None: + + _query_params.append(('pageCursor', page_cursor)) + + if page_size is not None: + + _query_params.append(('pageSize', page_size)) + + if sort is not None: + + _query_params.append(('sort', sort)) + + if order is not None: + + _query_params.append(('order', order)) + + if status is not None: + + _query_params.append(('status', status)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/nfts/ownership/collections', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def list_owned_tokens( + self, + ncw_id: Annotated[Optional[StrictStr], Field(description="Tenant's Non-Custodial Wallet ID")] = None, + wallet_type: Annotated[Optional[StrictStr], Field(description="Wallet type, it can be `VAULT_ACCOUNT` or `END_USER_WALLET`")] = None, + page_cursor: Annotated[Optional[StrictStr], Field(description="Page cursor to fetch")] = None, + page_size: Annotated[Optional[Union[Annotated[float, Field(le=100, strict=True, ge=1)], Annotated[int, Field(le=100, strict=True, ge=1)]]], Field(description="Items per page (max 100)")] = None, + sort: Annotated[Optional[List[StrictStr]], Field(description="Sort by param, it can be one param or a list of params separated by comma")] = None, + order: Annotated[Optional[StrictStr], Field(description="Order direction, it can be `ASC` for ascending or `DESC` for descending")] = None, + status: Annotated[Optional[StrictStr], Field(description="Token ownership status")] = None, + search: Annotated[Optional[Annotated[str, Field(strict=True)]], Field(description="Search owned tokens by token name")] = None, + spam: Annotated[Optional[StrictStr], Field(description="Token ownership spam status.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ListOwnedTokensResponse: + """List all distinct owned tokens (paginated) + + Returns all owned distinct tokens (for your tenant) and their data in your workspace. + + :param ncw_id: Tenant's Non-Custodial Wallet ID + :type ncw_id: str + :param wallet_type: Wallet type, it can be `VAULT_ACCOUNT` or `END_USER_WALLET` + :type wallet_type: str + :param page_cursor: Page cursor to fetch + :type page_cursor: str + :param page_size: Items per page (max 100) + :type page_size: float + :param sort: Sort by param, it can be one param or a list of params separated by comma + :type sort: List[str] + :param order: Order direction, it can be `ASC` for ascending or `DESC` for descending + :type order: str + :param status: Token ownership status + :type status: str + :param search: Search owned tokens by token name + :type search: str + :param spam: Token ownership spam status. + :type spam: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_owned_tokens_serialize( + ncw_id=ncw_id, + wallet_type=wallet_type, + page_cursor=page_cursor, + page_size=page_size, + sort=sort, + order=order, + status=status, + search=search, + spam=spam, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ListOwnedTokensResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def list_owned_tokens_with_http_info( + self, + ncw_id: Annotated[Optional[StrictStr], Field(description="Tenant's Non-Custodial Wallet ID")] = None, + wallet_type: Annotated[Optional[StrictStr], Field(description="Wallet type, it can be `VAULT_ACCOUNT` or `END_USER_WALLET`")] = None, + page_cursor: Annotated[Optional[StrictStr], Field(description="Page cursor to fetch")] = None, + page_size: Annotated[Optional[Union[Annotated[float, Field(le=100, strict=True, ge=1)], Annotated[int, Field(le=100, strict=True, ge=1)]]], Field(description="Items per page (max 100)")] = None, + sort: Annotated[Optional[List[StrictStr]], Field(description="Sort by param, it can be one param or a list of params separated by comma")] = None, + order: Annotated[Optional[StrictStr], Field(description="Order direction, it can be `ASC` for ascending or `DESC` for descending")] = None, + status: Annotated[Optional[StrictStr], Field(description="Token ownership status")] = None, + search: Annotated[Optional[Annotated[str, Field(strict=True)]], Field(description="Search owned tokens by token name")] = None, + spam: Annotated[Optional[StrictStr], Field(description="Token ownership spam status.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ListOwnedTokensResponse]: + """List all distinct owned tokens (paginated) + + Returns all owned distinct tokens (for your tenant) and their data in your workspace. + + :param ncw_id: Tenant's Non-Custodial Wallet ID + :type ncw_id: str + :param wallet_type: Wallet type, it can be `VAULT_ACCOUNT` or `END_USER_WALLET` + :type wallet_type: str + :param page_cursor: Page cursor to fetch + :type page_cursor: str + :param page_size: Items per page (max 100) + :type page_size: float + :param sort: Sort by param, it can be one param or a list of params separated by comma + :type sort: List[str] + :param order: Order direction, it can be `ASC` for ascending or `DESC` for descending + :type order: str + :param status: Token ownership status + :type status: str + :param search: Search owned tokens by token name + :type search: str + :param spam: Token ownership spam status. + :type spam: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_owned_tokens_serialize( + ncw_id=ncw_id, + wallet_type=wallet_type, + page_cursor=page_cursor, + page_size=page_size, + sort=sort, + order=order, + status=status, + search=search, + spam=spam, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ListOwnedTokensResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def list_owned_tokens_without_preload_content( + self, + ncw_id: Annotated[Optional[StrictStr], Field(description="Tenant's Non-Custodial Wallet ID")] = None, + wallet_type: Annotated[Optional[StrictStr], Field(description="Wallet type, it can be `VAULT_ACCOUNT` or `END_USER_WALLET`")] = None, + page_cursor: Annotated[Optional[StrictStr], Field(description="Page cursor to fetch")] = None, + page_size: Annotated[Optional[Union[Annotated[float, Field(le=100, strict=True, ge=1)], Annotated[int, Field(le=100, strict=True, ge=1)]]], Field(description="Items per page (max 100)")] = None, + sort: Annotated[Optional[List[StrictStr]], Field(description="Sort by param, it can be one param or a list of params separated by comma")] = None, + order: Annotated[Optional[StrictStr], Field(description="Order direction, it can be `ASC` for ascending or `DESC` for descending")] = None, + status: Annotated[Optional[StrictStr], Field(description="Token ownership status")] = None, + search: Annotated[Optional[Annotated[str, Field(strict=True)]], Field(description="Search owned tokens by token name")] = None, + spam: Annotated[Optional[StrictStr], Field(description="Token ownership spam status.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List all distinct owned tokens (paginated) + + Returns all owned distinct tokens (for your tenant) and their data in your workspace. + + :param ncw_id: Tenant's Non-Custodial Wallet ID + :type ncw_id: str + :param wallet_type: Wallet type, it can be `VAULT_ACCOUNT` or `END_USER_WALLET` + :type wallet_type: str + :param page_cursor: Page cursor to fetch + :type page_cursor: str + :param page_size: Items per page (max 100) + :type page_size: float + :param sort: Sort by param, it can be one param or a list of params separated by comma + :type sort: List[str] + :param order: Order direction, it can be `ASC` for ascending or `DESC` for descending + :type order: str + :param status: Token ownership status + :type status: str + :param search: Search owned tokens by token name + :type search: str + :param spam: Token ownership spam status. + :type spam: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_owned_tokens_serialize( + ncw_id=ncw_id, + wallet_type=wallet_type, + page_cursor=page_cursor, + page_size=page_size, + sort=sort, + order=order, + status=status, + search=search, + spam=spam, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ListOwnedTokensResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _list_owned_tokens_serialize( + self, + ncw_id, + wallet_type, + page_cursor, + page_size, + sort, + order, + status, + search, + spam, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + 'sort': 'multi', + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if ncw_id is not None: + + _query_params.append(('ncwId', ncw_id)) + + if wallet_type is not None: + + _query_params.append(('walletType', wallet_type)) + + if page_cursor is not None: + + _query_params.append(('pageCursor', page_cursor)) + + if page_size is not None: + + _query_params.append(('pageSize', page_size)) + + if sort is not None: + + _query_params.append(('sort', sort)) + + if order is not None: + + _query_params.append(('order', order)) + + if status is not None: + + _query_params.append(('status', status)) + + if search is not None: + + _query_params.append(('search', search)) + + if spam is not None: + + _query_params.append(('spam', spam)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/nfts/ownership/assets', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def refresh_nft_metadata( + self, + id: Annotated[StrictStr, Field(description="NFT ID")], + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> None: + """Refresh token metadata + + Updates the latest token metadata. + + :param id: NFT ID (required) + :type id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._refresh_nft_metadata_serialize( + id=id, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '202': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def refresh_nft_metadata_with_http_info( + self, + id: Annotated[StrictStr, Field(description="NFT ID")], + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[None]: + """Refresh token metadata + + Updates the latest token metadata. + + :param id: NFT ID (required) + :type id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._refresh_nft_metadata_serialize( + id=id, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '202': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def refresh_nft_metadata_without_preload_content( + self, + id: Annotated[StrictStr, Field(description="NFT ID")], + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Refresh token metadata + + Updates the latest token metadata. + + :param id: NFT ID (required) + :type id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._refresh_nft_metadata_serialize( + id=id, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '202': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _refresh_nft_metadata_serialize( + self, + id, + idempotency_key, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + + + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/nfts/tokens/{id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def update_ownership_tokens( + self, + blockchain_descriptor: Annotated[StrictStr, Field(description="Blockchain descriptor filter")], + vault_account_id: Annotated[StrictStr, Field(description="Vault account filter")], + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> None: + """Refresh vault account tokens + + Updates all tokens and balances per blockchain and vault account. + + :param blockchain_descriptor: Blockchain descriptor filter (required) + :type blockchain_descriptor: str + :param vault_account_id: Vault account filter (required) + :type vault_account_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_ownership_tokens_serialize( + blockchain_descriptor=blockchain_descriptor, + vault_account_id=vault_account_id, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '202': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def update_ownership_tokens_with_http_info( + self, + blockchain_descriptor: Annotated[StrictStr, Field(description="Blockchain descriptor filter")], + vault_account_id: Annotated[StrictStr, Field(description="Vault account filter")], + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[None]: + """Refresh vault account tokens + + Updates all tokens and balances per blockchain and vault account. + + :param blockchain_descriptor: Blockchain descriptor filter (required) + :type blockchain_descriptor: str + :param vault_account_id: Vault account filter (required) + :type vault_account_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_ownership_tokens_serialize( + blockchain_descriptor=blockchain_descriptor, + vault_account_id=vault_account_id, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '202': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def update_ownership_tokens_without_preload_content( + self, + blockchain_descriptor: Annotated[StrictStr, Field(description="Blockchain descriptor filter")], + vault_account_id: Annotated[StrictStr, Field(description="Vault account filter")], + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Refresh vault account tokens + + Updates all tokens and balances per blockchain and vault account. + + :param blockchain_descriptor: Blockchain descriptor filter (required) + :type blockchain_descriptor: str + :param vault_account_id: Vault account filter (required) + :type vault_account_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_ownership_tokens_serialize( + blockchain_descriptor=blockchain_descriptor, + vault_account_id=vault_account_id, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '202': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _update_ownership_tokens_serialize( + self, + blockchain_descriptor, + vault_account_id, + idempotency_key, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if blockchain_descriptor is not None: + + _query_params.append(('blockchainDescriptor', blockchain_descriptor)) + + if vault_account_id is not None: + + _query_params.append(('vaultAccountId', vault_account_id)) + + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + + + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/nfts/ownership/tokens', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def update_token_ownership_status( + self, + id: Annotated[StrictStr, Field(description="NFT ID")], + update_token_ownership_status_dto: UpdateTokenOwnershipStatusDto, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> None: + """Update token ownership status + + Updates token status for a tenant, in all tenant vaults. + + :param id: NFT ID (required) + :type id: str + :param update_token_ownership_status_dto: (required) + :type update_token_ownership_status_dto: UpdateTokenOwnershipStatusDto + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_token_ownership_status_serialize( + id=id, + update_token_ownership_status_dto=update_token_ownership_status_dto, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def update_token_ownership_status_with_http_info( + self, + id: Annotated[StrictStr, Field(description="NFT ID")], + update_token_ownership_status_dto: UpdateTokenOwnershipStatusDto, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[None]: + """Update token ownership status + + Updates token status for a tenant, in all tenant vaults. + + :param id: NFT ID (required) + :type id: str + :param update_token_ownership_status_dto: (required) + :type update_token_ownership_status_dto: UpdateTokenOwnershipStatusDto + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_token_ownership_status_serialize( + id=id, + update_token_ownership_status_dto=update_token_ownership_status_dto, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def update_token_ownership_status_without_preload_content( + self, + id: Annotated[StrictStr, Field(description="NFT ID")], + update_token_ownership_status_dto: UpdateTokenOwnershipStatusDto, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Update token ownership status + + Updates token status for a tenant, in all tenant vaults. + + :param id: NFT ID (required) + :type id: str + :param update_token_ownership_status_dto: (required) + :type update_token_ownership_status_dto: UpdateTokenOwnershipStatusDto + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_token_ownership_status_serialize( + id=id, + update_token_ownership_status_dto=update_token_ownership_status_dto, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _update_token_ownership_status_serialize( + self, + id, + update_token_ownership_status_dto, + idempotency_key, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + if update_token_ownership_status_dto is not None: + _body_params = update_token_ownership_status_dto + + + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/nfts/ownership/tokens/{id}/status', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def update_tokens_ownership_spam( + self, + token_ownership_spam_update_payload: List[TokenOwnershipSpamUpdatePayload], + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> None: + """Update tokens ownership spam property + + Updates tokens spam property for a tenant's token ownerships, in all tenant vaults. + + :param token_ownership_spam_update_payload: (required) + :type token_ownership_spam_update_payload: List[TokenOwnershipSpamUpdatePayload] + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_tokens_ownership_spam_serialize( + token_ownership_spam_update_payload=token_ownership_spam_update_payload, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': None, + '400': None, + '404': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def update_tokens_ownership_spam_with_http_info( + self, + token_ownership_spam_update_payload: List[TokenOwnershipSpamUpdatePayload], + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[None]: + """Update tokens ownership spam property + + Updates tokens spam property for a tenant's token ownerships, in all tenant vaults. + + :param token_ownership_spam_update_payload: (required) + :type token_ownership_spam_update_payload: List[TokenOwnershipSpamUpdatePayload] + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_tokens_ownership_spam_serialize( + token_ownership_spam_update_payload=token_ownership_spam_update_payload, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': None, + '400': None, + '404': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def update_tokens_ownership_spam_without_preload_content( + self, + token_ownership_spam_update_payload: List[TokenOwnershipSpamUpdatePayload], + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Update tokens ownership spam property + + Updates tokens spam property for a tenant's token ownerships, in all tenant vaults. + + :param token_ownership_spam_update_payload: (required) + :type token_ownership_spam_update_payload: List[TokenOwnershipSpamUpdatePayload] + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_tokens_ownership_spam_serialize( + token_ownership_spam_update_payload=token_ownership_spam_update_payload, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': None, + '400': None, + '404': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _update_tokens_ownership_spam_serialize( + self, + token_ownership_spam_update_payload, + idempotency_key, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + 'TokenOwnershipSpamUpdatePayload': '', + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + if token_ownership_spam_update_payload is not None: + _body_params = token_ownership_spam_update_payload + + + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/nfts/ownership/tokens/spam', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def update_tokens_ownership_status( + self, + token_ownership_status_update_payload: List[TokenOwnershipStatusUpdatePayload], + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> None: + """Update tokens ownership status + + Updates tokens status for a tenant, in all tenant vaults. + + :param token_ownership_status_update_payload: (required) + :type token_ownership_status_update_payload: List[TokenOwnershipStatusUpdatePayload] + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_tokens_ownership_status_serialize( + token_ownership_status_update_payload=token_ownership_status_update_payload, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': None, + '400': None, + '404': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def update_tokens_ownership_status_with_http_info( + self, + token_ownership_status_update_payload: List[TokenOwnershipStatusUpdatePayload], + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[None]: + """Update tokens ownership status + + Updates tokens status for a tenant, in all tenant vaults. + + :param token_ownership_status_update_payload: (required) + :type token_ownership_status_update_payload: List[TokenOwnershipStatusUpdatePayload] + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_tokens_ownership_status_serialize( + token_ownership_status_update_payload=token_ownership_status_update_payload, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': None, + '400': None, + '404': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def update_tokens_ownership_status_without_preload_content( + self, + token_ownership_status_update_payload: List[TokenOwnershipStatusUpdatePayload], + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Update tokens ownership status + + Updates tokens status for a tenant, in all tenant vaults. + + :param token_ownership_status_update_payload: (required) + :type token_ownership_status_update_payload: List[TokenOwnershipStatusUpdatePayload] + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_tokens_ownership_status_serialize( + token_ownership_status_update_payload=token_ownership_status_update_payload, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': None, + '400': None, + '404': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _update_tokens_ownership_status_serialize( + self, + token_ownership_status_update_payload, + idempotency_key, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + 'TokenOwnershipStatusUpdatePayload': '', + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + if token_ownership_status_update_payload is not None: + _body_params = token_ownership_status_update_payload + + + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/nfts/ownership/tokens/status', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/fireblocks_client/api/off_exchanges_api.py b/fireblocks_client/api/off_exchanges_api.py new file mode 100644 index 00000000..9554c581 --- /dev/null +++ b/fireblocks_client/api/off_exchanges_api.py @@ -0,0 +1,1417 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from pydantic import Field, StrictStr +from typing import Optional +from typing_extensions import Annotated +from fireblocks_client.models.add_collateral_request_body import AddCollateralRequestBody +from fireblocks_client.models.create_transaction_response import CreateTransactionResponse +from fireblocks_client.models.exchange_account import ExchangeAccount +from fireblocks_client.models.exchange_settlement_transactions_response import ExchangeSettlementTransactionsResponse +from fireblocks_client.models.remove_collateral_request_body import RemoveCollateralRequestBody +from fireblocks_client.models.settlement_request_body import SettlementRequestBody +from fireblocks_client.models.settlement_response import SettlementResponse + +from fireblocks_client.api_client import ApiClient, RequestSerialized +from fireblocks_client.api_response import ApiResponse +from fireblocks_client.rest import RESTResponseType + + +class OffExchangesApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def add_off_exchange( + self, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + add_collateral_request_body: Optional[AddCollateralRequestBody] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> CreateTransactionResponse: + """add collateral + + add collateral, create deposit request + + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: str + :param add_collateral_request_body: + :type add_collateral_request_body: AddCollateralRequestBody + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._add_off_exchange_serialize( + idempotency_key=idempotency_key, + add_collateral_request_body=add_collateral_request_body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "CreateTransactionResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def add_off_exchange_with_http_info( + self, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + add_collateral_request_body: Optional[AddCollateralRequestBody] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[CreateTransactionResponse]: + """add collateral + + add collateral, create deposit request + + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: str + :param add_collateral_request_body: + :type add_collateral_request_body: AddCollateralRequestBody + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._add_off_exchange_serialize( + idempotency_key=idempotency_key, + add_collateral_request_body=add_collateral_request_body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "CreateTransactionResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def add_off_exchange_without_preload_content( + self, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + add_collateral_request_body: Optional[AddCollateralRequestBody] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """add collateral + + add collateral, create deposit request + + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: str + :param add_collateral_request_body: + :type add_collateral_request_body: AddCollateralRequestBody + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._add_off_exchange_serialize( + idempotency_key=idempotency_key, + add_collateral_request_body=add_collateral_request_body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "CreateTransactionResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _add_off_exchange_serialize( + self, + idempotency_key, + add_collateral_request_body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + if add_collateral_request_body is not None: + _body_params = add_collateral_request_body + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/off_exchange/add', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_off_exchange_collateral_accounts( + self, + main_exchange_account_id: Annotated[StrictStr, Field(description="The id of the main exchange account for which the requested collateral account is associated with")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ExchangeAccount: + """Find a specific collateral exchange account + + Returns a collateral account by mainExchangeAccountId. + + :param main_exchange_account_id: The id of the main exchange account for which the requested collateral account is associated with (required) + :type main_exchange_account_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_off_exchange_collateral_accounts_serialize( + main_exchange_account_id=main_exchange_account_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ExchangeAccount", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_off_exchange_collateral_accounts_with_http_info( + self, + main_exchange_account_id: Annotated[StrictStr, Field(description="The id of the main exchange account for which the requested collateral account is associated with")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ExchangeAccount]: + """Find a specific collateral exchange account + + Returns a collateral account by mainExchangeAccountId. + + :param main_exchange_account_id: The id of the main exchange account for which the requested collateral account is associated with (required) + :type main_exchange_account_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_off_exchange_collateral_accounts_serialize( + main_exchange_account_id=main_exchange_account_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ExchangeAccount", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_off_exchange_collateral_accounts_without_preload_content( + self, + main_exchange_account_id: Annotated[StrictStr, Field(description="The id of the main exchange account for which the requested collateral account is associated with")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Find a specific collateral exchange account + + Returns a collateral account by mainExchangeAccountId. + + :param main_exchange_account_id: The id of the main exchange account for which the requested collateral account is associated with (required) + :type main_exchange_account_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_off_exchange_collateral_accounts_serialize( + main_exchange_account_id=main_exchange_account_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ExchangeAccount", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_off_exchange_collateral_accounts_serialize( + self, + main_exchange_account_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if main_exchange_account_id is not None: + _path_params['mainExchangeAccountId'] = main_exchange_account_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/off_exchange/collateral_accounts/{mainExchangeAccountId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_off_exchange_settlement_transactions( + self, + main_exchange_account_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ExchangeSettlementTransactionsResponse: + """get settlements transactions from exchange + + get settlements transactions from exchange + + :param main_exchange_account_id: (required) + :type main_exchange_account_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_off_exchange_settlement_transactions_serialize( + main_exchange_account_id=main_exchange_account_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ExchangeSettlementTransactionsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_off_exchange_settlement_transactions_with_http_info( + self, + main_exchange_account_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ExchangeSettlementTransactionsResponse]: + """get settlements transactions from exchange + + get settlements transactions from exchange + + :param main_exchange_account_id: (required) + :type main_exchange_account_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_off_exchange_settlement_transactions_serialize( + main_exchange_account_id=main_exchange_account_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ExchangeSettlementTransactionsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_off_exchange_settlement_transactions_without_preload_content( + self, + main_exchange_account_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get settlements transactions from exchange + + get settlements transactions from exchange + + :param main_exchange_account_id: (required) + :type main_exchange_account_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_off_exchange_settlement_transactions_serialize( + main_exchange_account_id=main_exchange_account_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ExchangeSettlementTransactionsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_off_exchange_settlement_transactions_serialize( + self, + main_exchange_account_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if main_exchange_account_id is not None: + + _query_params.append(('mainExchangeAccountId', main_exchange_account_id)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/off_exchange/settlements/transactions', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def remove_off_exchange( + self, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + remove_collateral_request_body: Optional[RemoveCollateralRequestBody] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> CreateTransactionResponse: + """remove collateral + + remove collateral, create withdraw request + + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: str + :param remove_collateral_request_body: + :type remove_collateral_request_body: RemoveCollateralRequestBody + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._remove_off_exchange_serialize( + idempotency_key=idempotency_key, + remove_collateral_request_body=remove_collateral_request_body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "CreateTransactionResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def remove_off_exchange_with_http_info( + self, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + remove_collateral_request_body: Optional[RemoveCollateralRequestBody] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[CreateTransactionResponse]: + """remove collateral + + remove collateral, create withdraw request + + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: str + :param remove_collateral_request_body: + :type remove_collateral_request_body: RemoveCollateralRequestBody + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._remove_off_exchange_serialize( + idempotency_key=idempotency_key, + remove_collateral_request_body=remove_collateral_request_body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "CreateTransactionResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def remove_off_exchange_without_preload_content( + self, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + remove_collateral_request_body: Optional[RemoveCollateralRequestBody] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """remove collateral + + remove collateral, create withdraw request + + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: str + :param remove_collateral_request_body: + :type remove_collateral_request_body: RemoveCollateralRequestBody + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._remove_off_exchange_serialize( + idempotency_key=idempotency_key, + remove_collateral_request_body=remove_collateral_request_body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "CreateTransactionResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _remove_off_exchange_serialize( + self, + idempotency_key, + remove_collateral_request_body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + if remove_collateral_request_body is not None: + _body_params = remove_collateral_request_body + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/off_exchange/remove', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def settle_off_exchange_trades( + self, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + settlement_request_body: Optional[SettlementRequestBody] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SettlementResponse: + """create settlement for a trader + + create settlement for a trader + + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: str + :param settlement_request_body: + :type settlement_request_body: SettlementRequestBody + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._settle_off_exchange_trades_serialize( + idempotency_key=idempotency_key, + settlement_request_body=settlement_request_body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "SettlementResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def settle_off_exchange_trades_with_http_info( + self, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + settlement_request_body: Optional[SettlementRequestBody] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SettlementResponse]: + """create settlement for a trader + + create settlement for a trader + + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: str + :param settlement_request_body: + :type settlement_request_body: SettlementRequestBody + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._settle_off_exchange_trades_serialize( + idempotency_key=idempotency_key, + settlement_request_body=settlement_request_body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "SettlementResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def settle_off_exchange_trades_without_preload_content( + self, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + settlement_request_body: Optional[SettlementRequestBody] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """create settlement for a trader + + create settlement for a trader + + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: str + :param settlement_request_body: + :type settlement_request_body: SettlementRequestBody + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._settle_off_exchange_trades_serialize( + idempotency_key=idempotency_key, + settlement_request_body=settlement_request_body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "SettlementResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _settle_off_exchange_trades_serialize( + self, + idempotency_key, + settlement_request_body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + if settlement_request_body is not None: + _body_params = settlement_request_body + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/off_exchange/settlements/trader', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/fireblocks_client/api/ota_beta_api.py b/fireblocks_client/api/ota_beta_api.py new file mode 100644 index 00000000..c8ac7b06 --- /dev/null +++ b/fireblocks_client/api/ota_beta_api.py @@ -0,0 +1,581 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from pydantic import Field, StrictStr +from typing import Optional +from typing_extensions import Annotated +from fireblocks_client.models.get_ota_status_response import GetOtaStatusResponse +from fireblocks_client.models.set_ota_status_request import SetOtaStatusRequest +from fireblocks_client.models.set_ota_status_response import SetOtaStatusResponse + +from fireblocks_client.api_client import ApiClient, RequestSerialized +from fireblocks_client.api_response import ApiResponse +from fireblocks_client.rest import RESTResponseType + + +class OTABetaApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def get_ota_status( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetOtaStatusResponse: + """Returns current OTA status + + Returns current OTA status + + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_ota_status_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetOtaStatusResponse", + '404': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_ota_status_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetOtaStatusResponse]: + """Returns current OTA status + + Returns current OTA status + + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_ota_status_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetOtaStatusResponse", + '404': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_ota_status_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Returns current OTA status + + Returns current OTA status + + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_ota_status_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetOtaStatusResponse", + '404': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_ota_status_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/management/ota', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def set_ota_status( + self, + set_ota_status_request: SetOtaStatusRequest, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SetOtaStatusResponse: + """Enable or disable transactions to OTA + + Enable or disable transactions to OTA + + :param set_ota_status_request: (required) + :type set_ota_status_request: SetOtaStatusRequest + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._set_ota_status_serialize( + set_ota_status_request=set_ota_status_request, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '202': "SetOtaStatusResponse", + '400': None, + '409': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def set_ota_status_with_http_info( + self, + set_ota_status_request: SetOtaStatusRequest, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SetOtaStatusResponse]: + """Enable or disable transactions to OTA + + Enable or disable transactions to OTA + + :param set_ota_status_request: (required) + :type set_ota_status_request: SetOtaStatusRequest + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._set_ota_status_serialize( + set_ota_status_request=set_ota_status_request, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '202': "SetOtaStatusResponse", + '400': None, + '409': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def set_ota_status_without_preload_content( + self, + set_ota_status_request: SetOtaStatusRequest, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Enable or disable transactions to OTA + + Enable or disable transactions to OTA + + :param set_ota_status_request: (required) + :type set_ota_status_request: SetOtaStatusRequest + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._set_ota_status_serialize( + set_ota_status_request=set_ota_status_request, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '202': "SetOtaStatusResponse", + '400': None, + '409': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _set_ota_status_serialize( + self, + set_ota_status_request, + idempotency_key, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + if set_ota_status_request is not None: + _body_params = set_ota_status_request + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/management/ota', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/fireblocks_client/api/payments_payout_api.py b/fireblocks_client/api/payments_payout_api.py new file mode 100644 index 00000000..f0847da5 --- /dev/null +++ b/fireblocks_client/api/payments_payout_api.py @@ -0,0 +1,883 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from pydantic import Field, StrictStr +from typing import Optional +from typing_extensions import Annotated +from fireblocks_client.models.create_payout_request import CreatePayoutRequest +from fireblocks_client.models.dispatch_payout_response import DispatchPayoutResponse +from fireblocks_client.models.payout_response import PayoutResponse + +from fireblocks_client.api_client import ApiClient, RequestSerialized +from fireblocks_client.api_response import ApiResponse +from fireblocks_client.rest import RESTResponseType + + +class PaymentsPayoutApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def create_payout( + self, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + create_payout_request: Optional[CreatePayoutRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PayoutResponse: + """Create a payout instruction set + + **Note:** The reference content in this section documents the Payments Engine endpoint. The Payments Engine endpoints include APIs available only for customers with Payments Engine enabled on their accounts.

These endpoints are currently in beta and might be subject to changes.

If you want to learn more about Fireblocks Payments Engine, please contact your Fireblocks Customer Success Manager or email CSM@fireblocks.com.

Create a payout instruction set.
A payout instruction set is a set of instructions for distributing payments from a single payment account to a list of payee accounts.
The instruction set defines:
  • the payment account and its account type (vault, exchange, or fiat).
  • the account type (vault account, exchange account, whitelisted address, network connection, fiat account, or merchant account), the amount, and the asset of payment for each payee account.
+ + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: str + :param create_payout_request: + :type create_payout_request: CreatePayoutRequest + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_payout_serialize( + idempotency_key=idempotency_key, + create_payout_request=create_payout_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PayoutResponse", + '400': "ErrorResponse", + '401': "ErrorResponse", + '5XX': "ErrorResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def create_payout_with_http_info( + self, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + create_payout_request: Optional[CreatePayoutRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PayoutResponse]: + """Create a payout instruction set + + **Note:** The reference content in this section documents the Payments Engine endpoint. The Payments Engine endpoints include APIs available only for customers with Payments Engine enabled on their accounts.

These endpoints are currently in beta and might be subject to changes.

If you want to learn more about Fireblocks Payments Engine, please contact your Fireblocks Customer Success Manager or email CSM@fireblocks.com.

Create a payout instruction set.
A payout instruction set is a set of instructions for distributing payments from a single payment account to a list of payee accounts.
The instruction set defines:
  • the payment account and its account type (vault, exchange, or fiat).
  • the account type (vault account, exchange account, whitelisted address, network connection, fiat account, or merchant account), the amount, and the asset of payment for each payee account.
+ + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: str + :param create_payout_request: + :type create_payout_request: CreatePayoutRequest + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_payout_serialize( + idempotency_key=idempotency_key, + create_payout_request=create_payout_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PayoutResponse", + '400': "ErrorResponse", + '401': "ErrorResponse", + '5XX': "ErrorResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def create_payout_without_preload_content( + self, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + create_payout_request: Optional[CreatePayoutRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Create a payout instruction set + + **Note:** The reference content in this section documents the Payments Engine endpoint. The Payments Engine endpoints include APIs available only for customers with Payments Engine enabled on their accounts.

These endpoints are currently in beta and might be subject to changes.

If you want to learn more about Fireblocks Payments Engine, please contact your Fireblocks Customer Success Manager or email CSM@fireblocks.com.

Create a payout instruction set.
A payout instruction set is a set of instructions for distributing payments from a single payment account to a list of payee accounts.
The instruction set defines:
  • the payment account and its account type (vault, exchange, or fiat).
  • the account type (vault account, exchange account, whitelisted address, network connection, fiat account, or merchant account), the amount, and the asset of payment for each payee account.
+ + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: str + :param create_payout_request: + :type create_payout_request: CreatePayoutRequest + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_payout_serialize( + idempotency_key=idempotency_key, + create_payout_request=create_payout_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PayoutResponse", + '400': "ErrorResponse", + '401': "ErrorResponse", + '5XX': "ErrorResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _create_payout_serialize( + self, + idempotency_key, + create_payout_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + if create_payout_request is not None: + _body_params = create_payout_request + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/payments/payout', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def execute_payout_action( + self, + payout_id: Annotated[StrictStr, Field(description="the payout id received from the creation of the payout instruction set")], + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> DispatchPayoutResponse: + """Execute a payout instruction set + + **Note:** The reference content in this section documents the Payments Engine endpoint. The Payments Engine endpoints include APIs available only for customers with Payments Engine enabled on their accounts.

These endpoints are currently in beta and might be subject to changes.

If you want to learn more about Fireblocks Payments Engine, please contact your Fireblocks Customer Success Manager or email CSM@fireblocks.com.

Execute a payout instruction set.

The instruction set will be verified and executed.
Source locking
If you are executing a payout instruction set from a payment account with an already active payout the active payout will complete before the new payout instruction set can be executed.
You cannot execute the same payout instruction set more than once. + + :param payout_id: the payout id received from the creation of the payout instruction set (required) + :type payout_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._execute_payout_action_serialize( + payout_id=payout_id, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DispatchPayoutResponse", + '400': "ErrorResponse", + '401': "ErrorResponse", + '5XX': "ErrorResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def execute_payout_action_with_http_info( + self, + payout_id: Annotated[StrictStr, Field(description="the payout id received from the creation of the payout instruction set")], + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[DispatchPayoutResponse]: + """Execute a payout instruction set + + **Note:** The reference content in this section documents the Payments Engine endpoint. The Payments Engine endpoints include APIs available only for customers with Payments Engine enabled on their accounts.

These endpoints are currently in beta and might be subject to changes.

If you want to learn more about Fireblocks Payments Engine, please contact your Fireblocks Customer Success Manager or email CSM@fireblocks.com.

Execute a payout instruction set.

The instruction set will be verified and executed.
Source locking
If you are executing a payout instruction set from a payment account with an already active payout the active payout will complete before the new payout instruction set can be executed.
You cannot execute the same payout instruction set more than once. + + :param payout_id: the payout id received from the creation of the payout instruction set (required) + :type payout_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._execute_payout_action_serialize( + payout_id=payout_id, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DispatchPayoutResponse", + '400': "ErrorResponse", + '401': "ErrorResponse", + '5XX': "ErrorResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def execute_payout_action_without_preload_content( + self, + payout_id: Annotated[StrictStr, Field(description="the payout id received from the creation of the payout instruction set")], + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Execute a payout instruction set + + **Note:** The reference content in this section documents the Payments Engine endpoint. The Payments Engine endpoints include APIs available only for customers with Payments Engine enabled on their accounts.

These endpoints are currently in beta and might be subject to changes.

If you want to learn more about Fireblocks Payments Engine, please contact your Fireblocks Customer Success Manager or email CSM@fireblocks.com.

Execute a payout instruction set.

The instruction set will be verified and executed.
Source locking
If you are executing a payout instruction set from a payment account with an already active payout the active payout will complete before the new payout instruction set can be executed.
You cannot execute the same payout instruction set more than once. + + :param payout_id: the payout id received from the creation of the payout instruction set (required) + :type payout_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._execute_payout_action_serialize( + payout_id=payout_id, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DispatchPayoutResponse", + '400': "ErrorResponse", + '401': "ErrorResponse", + '5XX': "ErrorResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _execute_payout_action_serialize( + self, + payout_id, + idempotency_key, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if payout_id is not None: + _path_params['payoutId'] = payout_id + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/payments/payout/{payoutId}/actions/execute', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_payout( + self, + payout_id: Annotated[StrictStr, Field(description="the payout id received from the creation of the payout instruction set")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PayoutResponse: + """Get the status of a payout instruction set + + **Note:** The reference content in this section documents the Payments Engine endpoint. The Payments Engine endpoints include APIs available only for customers with Payments Engine enabled on their accounts.

These endpoints are currently in beta and might be subject to changes.

If you want to learn more about Fireblocks Payments Engine, please contact your Fireblocks Customer Success Manager or email CSM@fireblocks.com.
+ + :param payout_id: the payout id received from the creation of the payout instruction set (required) + :type payout_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_payout_serialize( + payout_id=payout_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PayoutResponse", + '401': "ErrorResponse", + '404': "ErrorResponse", + '5XX': "ErrorResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_payout_with_http_info( + self, + payout_id: Annotated[StrictStr, Field(description="the payout id received from the creation of the payout instruction set")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PayoutResponse]: + """Get the status of a payout instruction set + + **Note:** The reference content in this section documents the Payments Engine endpoint. The Payments Engine endpoints include APIs available only for customers with Payments Engine enabled on their accounts.

These endpoints are currently in beta and might be subject to changes.

If you want to learn more about Fireblocks Payments Engine, please contact your Fireblocks Customer Success Manager or email CSM@fireblocks.com.
+ + :param payout_id: the payout id received from the creation of the payout instruction set (required) + :type payout_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_payout_serialize( + payout_id=payout_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PayoutResponse", + '401': "ErrorResponse", + '404': "ErrorResponse", + '5XX': "ErrorResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_payout_without_preload_content( + self, + payout_id: Annotated[StrictStr, Field(description="the payout id received from the creation of the payout instruction set")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get the status of a payout instruction set + + **Note:** The reference content in this section documents the Payments Engine endpoint. The Payments Engine endpoints include APIs available only for customers with Payments Engine enabled on their accounts.

These endpoints are currently in beta and might be subject to changes.

If you want to learn more about Fireblocks Payments Engine, please contact your Fireblocks Customer Success Manager or email CSM@fireblocks.com.
+ + :param payout_id: the payout id received from the creation of the payout instruction set (required) + :type payout_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_payout_serialize( + payout_id=payout_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PayoutResponse", + '401': "ErrorResponse", + '404': "ErrorResponse", + '5XX': "ErrorResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_payout_serialize( + self, + payout_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if payout_id is not None: + _path_params['payoutId'] = payout_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/payments/payout/{payoutId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/fireblocks_client/api/policy_editor_beta_api.py b/fireblocks_client/api/policy_editor_beta_api.py new file mode 100644 index 00000000..ad74a522 --- /dev/null +++ b/fireblocks_client/api/policy_editor_beta_api.py @@ -0,0 +1,1383 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from pydantic import Field, StrictStr +from typing import Optional +from typing_extensions import Annotated +from fireblocks_client.models.draft_review_and_validation_response import DraftReviewAndValidationResponse +from fireblocks_client.models.policy_and_validation_response import PolicyAndValidationResponse +from fireblocks_client.models.policy_rules import PolicyRules +from fireblocks_client.models.publish_draft_request import PublishDraftRequest +from fireblocks_client.models.publish_result import PublishResult + +from fireblocks_client.api_client import ApiClient, RequestSerialized +from fireblocks_client.api_response import ApiResponse +from fireblocks_client.rest import RESTResponseType + + +class PolicyEditorBetaApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def get_active_policy( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PolicyAndValidationResponse: + """Get the active policy and its validation + + Returns the active policy and its validation.
**Note:** These endpoints are currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks TAP, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. + + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_active_policy_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PolicyAndValidationResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_active_policy_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PolicyAndValidationResponse]: + """Get the active policy and its validation + + Returns the active policy and its validation.
**Note:** These endpoints are currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks TAP, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. + + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_active_policy_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PolicyAndValidationResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_active_policy_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get the active policy and its validation + + Returns the active policy and its validation.
**Note:** These endpoints are currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks TAP, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. + + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_active_policy_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PolicyAndValidationResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_active_policy_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/tap/active_policy', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_draft( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> DraftReviewAndValidationResponse: + """Get the active draft + + Returns the active draft and its validation.
**Note:** These endpoints are currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks TAP, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. + + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_draft_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DraftReviewAndValidationResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_draft_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[DraftReviewAndValidationResponse]: + """Get the active draft + + Returns the active draft and its validation.
**Note:** These endpoints are currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks TAP, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. + + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_draft_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DraftReviewAndValidationResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_draft_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get the active draft + + Returns the active draft and its validation.
**Note:** These endpoints are currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks TAP, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. + + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_draft_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DraftReviewAndValidationResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_draft_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/tap/draft', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def publish_draft( + self, + publish_draft_request: PublishDraftRequest, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PublishResult: + """Send publish request for a certain draft id + + Send publish request of certain draft id and returns the response.
**Note:** These endpoints are currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks TAP, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. + + :param publish_draft_request: (required) + :type publish_draft_request: PublishDraftRequest + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._publish_draft_serialize( + publish_draft_request=publish_draft_request, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "PublishResult", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def publish_draft_with_http_info( + self, + publish_draft_request: PublishDraftRequest, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PublishResult]: + """Send publish request for a certain draft id + + Send publish request of certain draft id and returns the response.
**Note:** These endpoints are currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks TAP, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. + + :param publish_draft_request: (required) + :type publish_draft_request: PublishDraftRequest + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._publish_draft_serialize( + publish_draft_request=publish_draft_request, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "PublishResult", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def publish_draft_without_preload_content( + self, + publish_draft_request: PublishDraftRequest, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Send publish request for a certain draft id + + Send publish request of certain draft id and returns the response.
**Note:** These endpoints are currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks TAP, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. + + :param publish_draft_request: (required) + :type publish_draft_request: PublishDraftRequest + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._publish_draft_serialize( + publish_draft_request=publish_draft_request, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "PublishResult", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _publish_draft_serialize( + self, + publish_draft_request, + idempotency_key, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + if publish_draft_request is not None: + _body_params = publish_draft_request + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/tap/draft', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def publish_policy_rules( + self, + policy_rules: PolicyRules, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PublishResult: + """Send publish request for a set of policy rules + + Send publish request of set of policy rules and returns the response.
**Note:** These endpoints are currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks TAP, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. + + :param policy_rules: (required) + :type policy_rules: PolicyRules + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._publish_policy_rules_serialize( + policy_rules=policy_rules, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "PublishResult", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def publish_policy_rules_with_http_info( + self, + policy_rules: PolicyRules, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PublishResult]: + """Send publish request for a set of policy rules + + Send publish request of set of policy rules and returns the response.
**Note:** These endpoints are currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks TAP, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. + + :param policy_rules: (required) + :type policy_rules: PolicyRules + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._publish_policy_rules_serialize( + policy_rules=policy_rules, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "PublishResult", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def publish_policy_rules_without_preload_content( + self, + policy_rules: PolicyRules, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Send publish request for a set of policy rules + + Send publish request of set of policy rules and returns the response.
**Note:** These endpoints are currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks TAP, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. + + :param policy_rules: (required) + :type policy_rules: PolicyRules + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._publish_policy_rules_serialize( + policy_rules=policy_rules, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "PublishResult", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _publish_policy_rules_serialize( + self, + policy_rules, + idempotency_key, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + if policy_rules is not None: + _body_params = policy_rules + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/tap/publish', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def update_draft( + self, + policy_rules: PolicyRules, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> DraftReviewAndValidationResponse: + """Update the draft with a new set of rules + + Update the draft and return its validation.
**Note:** These endpoints are currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks TAP, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. + + :param policy_rules: (required) + :type policy_rules: PolicyRules + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_draft_serialize( + policy_rules=policy_rules, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DraftReviewAndValidationResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def update_draft_with_http_info( + self, + policy_rules: PolicyRules, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[DraftReviewAndValidationResponse]: + """Update the draft with a new set of rules + + Update the draft and return its validation.
**Note:** These endpoints are currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks TAP, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. + + :param policy_rules: (required) + :type policy_rules: PolicyRules + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_draft_serialize( + policy_rules=policy_rules, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DraftReviewAndValidationResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def update_draft_without_preload_content( + self, + policy_rules: PolicyRules, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Update the draft with a new set of rules + + Update the draft and return its validation.
**Note:** These endpoints are currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks TAP, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. + + :param policy_rules: (required) + :type policy_rules: PolicyRules + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_draft_serialize( + policy_rules=policy_rules, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DraftReviewAndValidationResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _update_draft_serialize( + self, + policy_rules, + idempotency_key, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + if policy_rules is not None: + _body_params = policy_rules + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/tap/draft', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/fireblocks_client/api/reset_device_api.py b/fireblocks_client/api/reset_device_api.py new file mode 100644 index 00000000..272621ff --- /dev/null +++ b/fireblocks_client/api/reset_device_api.py @@ -0,0 +1,320 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from pydantic import Field, StrictStr +from typing import Optional +from typing_extensions import Annotated + +from fireblocks_client.api_client import ApiClient, RequestSerialized +from fireblocks_client.api_response import ApiResponse +from fireblocks_client.rest import RESTResponseType + + +class ResetDeviceApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def reset_device( + self, + id: Annotated[StrictStr, Field(description="The ID of the console user")], + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> None: + """Resets device + + Resets mobile device for given console user, that user will need to do mobile onboarding again. + + :param id: The ID of the console user (required) + :type id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._reset_device_serialize( + id=id, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': None, + '401': "ErrorResponse", + '403': "ErrorResponse", + '5XX': "ErrorResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def reset_device_with_http_info( + self, + id: Annotated[StrictStr, Field(description="The ID of the console user")], + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[None]: + """Resets device + + Resets mobile device for given console user, that user will need to do mobile onboarding again. + + :param id: The ID of the console user (required) + :type id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._reset_device_serialize( + id=id, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': None, + '401': "ErrorResponse", + '403': "ErrorResponse", + '5XX': "ErrorResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def reset_device_without_preload_content( + self, + id: Annotated[StrictStr, Field(description="The ID of the console user")], + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Resets device + + Resets mobile device for given console user, that user will need to do mobile onboarding again. + + :param id: The ID of the console user (required) + :type id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._reset_device_serialize( + id=id, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': None, + '401': "ErrorResponse", + '403': "ErrorResponse", + '5XX': "ErrorResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _reset_device_serialize( + self, + id, + idempotency_key, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/management/users/{id}/reset_device', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/fireblocks_client/api/smart_transfer_api.py b/fireblocks_client/api/smart_transfer_api.py new file mode 100644 index 00000000..659401af --- /dev/null +++ b/fireblocks_client/api/smart_transfer_api.py @@ -0,0 +1,4900 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from datetime import datetime +from pydantic import Field, StrictBool, StrictStr, field_validator +from typing import List, Optional, Union +from typing_extensions import Annotated +from fireblocks_client.models.smart_transfer_create_ticket import SmartTransferCreateTicket +from fireblocks_client.models.smart_transfer_create_ticket_term import SmartTransferCreateTicketTerm +from fireblocks_client.models.smart_transfer_fund_term import SmartTransferFundTerm +from fireblocks_client.models.smart_transfer_manually_fund_term import SmartTransferManuallyFundTerm +from fireblocks_client.models.smart_transfer_set_ticket_expiration import SmartTransferSetTicketExpiration +from fireblocks_client.models.smart_transfer_set_ticket_external_id import SmartTransferSetTicketExternalId +from fireblocks_client.models.smart_transfer_set_user_groups import SmartTransferSetUserGroups +from fireblocks_client.models.smart_transfer_submit_ticket import SmartTransferSubmitTicket +from fireblocks_client.models.smart_transfer_ticket_filtered_response import SmartTransferTicketFilteredResponse +from fireblocks_client.models.smart_transfer_ticket_response import SmartTransferTicketResponse +from fireblocks_client.models.smart_transfer_ticket_term_response import SmartTransferTicketTermResponse +from fireblocks_client.models.smart_transfer_update_ticket_term import SmartTransferUpdateTicketTerm +from fireblocks_client.models.smart_transfer_user_groups_response import SmartTransferUserGroupsResponse + +from fireblocks_client.api_client import ApiClient, RequestSerialized +from fireblocks_client.api_response import ApiResponse +from fireblocks_client.rest import RESTResponseType + + +class SmartTransferApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def cancel_ticket( + self, + ticket_id: StrictStr, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SmartTransferTicketResponse: + """Cancel Ticket + + Cancel Smart Transfer ticket + + :param ticket_id: (required) + :type ticket_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._cancel_ticket_serialize( + ticket_id=ticket_id, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SmartTransferTicketResponse", + '403': "SmartTransferForbiddenResponse", + '404': "SmartTransferNotFoundResponse", + '422': "SmartTransferBadRequestResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def cancel_ticket_with_http_info( + self, + ticket_id: StrictStr, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SmartTransferTicketResponse]: + """Cancel Ticket + + Cancel Smart Transfer ticket + + :param ticket_id: (required) + :type ticket_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._cancel_ticket_serialize( + ticket_id=ticket_id, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SmartTransferTicketResponse", + '403': "SmartTransferForbiddenResponse", + '404': "SmartTransferNotFoundResponse", + '422': "SmartTransferBadRequestResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def cancel_ticket_without_preload_content( + self, + ticket_id: StrictStr, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Cancel Ticket + + Cancel Smart Transfer ticket + + :param ticket_id: (required) + :type ticket_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._cancel_ticket_serialize( + ticket_id=ticket_id, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SmartTransferTicketResponse", + '403': "SmartTransferForbiddenResponse", + '404': "SmartTransferNotFoundResponse", + '422': "SmartTransferBadRequestResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _cancel_ticket_serialize( + self, + ticket_id, + idempotency_key, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if ticket_id is not None: + _path_params['ticketId'] = ticket_id + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/smart-transfers/{ticketId}/cancel', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def create_ticket( + self, + smart_transfer_create_ticket: SmartTransferCreateTicket, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SmartTransferTicketResponse: + """Create Ticket + + Creates new Smart Transfer ticket + + :param smart_transfer_create_ticket: (required) + :type smart_transfer_create_ticket: SmartTransferCreateTicket + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_ticket_serialize( + smart_transfer_create_ticket=smart_transfer_create_ticket, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "SmartTransferTicketResponse", + '403': "SmartTransferForbiddenResponse", + '422': "SmartTransferBadRequestResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def create_ticket_with_http_info( + self, + smart_transfer_create_ticket: SmartTransferCreateTicket, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SmartTransferTicketResponse]: + """Create Ticket + + Creates new Smart Transfer ticket + + :param smart_transfer_create_ticket: (required) + :type smart_transfer_create_ticket: SmartTransferCreateTicket + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_ticket_serialize( + smart_transfer_create_ticket=smart_transfer_create_ticket, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "SmartTransferTicketResponse", + '403': "SmartTransferForbiddenResponse", + '422': "SmartTransferBadRequestResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def create_ticket_without_preload_content( + self, + smart_transfer_create_ticket: SmartTransferCreateTicket, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Create Ticket + + Creates new Smart Transfer ticket + + :param smart_transfer_create_ticket: (required) + :type smart_transfer_create_ticket: SmartTransferCreateTicket + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_ticket_serialize( + smart_transfer_create_ticket=smart_transfer_create_ticket, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "SmartTransferTicketResponse", + '403': "SmartTransferForbiddenResponse", + '422': "SmartTransferBadRequestResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _create_ticket_serialize( + self, + smart_transfer_create_ticket, + idempotency_key, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + if smart_transfer_create_ticket is not None: + _body_params = smart_transfer_create_ticket + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/smart-transfers', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def create_ticket_term( + self, + ticket_id: StrictStr, + smart_transfer_create_ticket_term: SmartTransferCreateTicketTerm, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SmartTransferTicketTermResponse: + """Create leg (term) + + Creates new smart transfer ticket term (when the ticket status is DRAFT) + + :param ticket_id: (required) + :type ticket_id: str + :param smart_transfer_create_ticket_term: (required) + :type smart_transfer_create_ticket_term: SmartTransferCreateTicketTerm + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_ticket_term_serialize( + ticket_id=ticket_id, + smart_transfer_create_ticket_term=smart_transfer_create_ticket_term, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "SmartTransferTicketTermResponse", + '403': "SmartTransferForbiddenResponse", + '422': "SmartTransferBadRequestResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def create_ticket_term_with_http_info( + self, + ticket_id: StrictStr, + smart_transfer_create_ticket_term: SmartTransferCreateTicketTerm, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SmartTransferTicketTermResponse]: + """Create leg (term) + + Creates new smart transfer ticket term (when the ticket status is DRAFT) + + :param ticket_id: (required) + :type ticket_id: str + :param smart_transfer_create_ticket_term: (required) + :type smart_transfer_create_ticket_term: SmartTransferCreateTicketTerm + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_ticket_term_serialize( + ticket_id=ticket_id, + smart_transfer_create_ticket_term=smart_transfer_create_ticket_term, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "SmartTransferTicketTermResponse", + '403': "SmartTransferForbiddenResponse", + '422': "SmartTransferBadRequestResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def create_ticket_term_without_preload_content( + self, + ticket_id: StrictStr, + smart_transfer_create_ticket_term: SmartTransferCreateTicketTerm, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Create leg (term) + + Creates new smart transfer ticket term (when the ticket status is DRAFT) + + :param ticket_id: (required) + :type ticket_id: str + :param smart_transfer_create_ticket_term: (required) + :type smart_transfer_create_ticket_term: SmartTransferCreateTicketTerm + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_ticket_term_serialize( + ticket_id=ticket_id, + smart_transfer_create_ticket_term=smart_transfer_create_ticket_term, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "SmartTransferTicketTermResponse", + '403': "SmartTransferForbiddenResponse", + '422': "SmartTransferBadRequestResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _create_ticket_term_serialize( + self, + ticket_id, + smart_transfer_create_ticket_term, + idempotency_key, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if ticket_id is not None: + _path_params['ticketId'] = ticket_id + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + if smart_transfer_create_ticket_term is not None: + _body_params = smart_transfer_create_ticket_term + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/smart-transfers/{ticketId}/terms', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def find_ticket_by_id( + self, + ticket_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SmartTransferTicketResponse: + """Search Tickets by ID + + Find Smart Transfer ticket by id + + :param ticket_id: (required) + :type ticket_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._find_ticket_by_id_serialize( + ticket_id=ticket_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SmartTransferTicketResponse", + '403': "SmartTransferForbiddenResponse", + '404': "SmartTransferNotFoundResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def find_ticket_by_id_with_http_info( + self, + ticket_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SmartTransferTicketResponse]: + """Search Tickets by ID + + Find Smart Transfer ticket by id + + :param ticket_id: (required) + :type ticket_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._find_ticket_by_id_serialize( + ticket_id=ticket_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SmartTransferTicketResponse", + '403': "SmartTransferForbiddenResponse", + '404': "SmartTransferNotFoundResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def find_ticket_by_id_without_preload_content( + self, + ticket_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Search Tickets by ID + + Find Smart Transfer ticket by id + + :param ticket_id: (required) + :type ticket_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._find_ticket_by_id_serialize( + ticket_id=ticket_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SmartTransferTicketResponse", + '403': "SmartTransferForbiddenResponse", + '404': "SmartTransferNotFoundResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _find_ticket_by_id_serialize( + self, + ticket_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if ticket_id is not None: + _path_params['ticketId'] = ticket_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/smart-transfers/{ticketId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def find_ticket_term_by_id( + self, + ticket_id: StrictStr, + term_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SmartTransferTicketTermResponse: + """Search ticket by leg (term) ID + + Find Smart Transfer ticket term by id + + :param ticket_id: (required) + :type ticket_id: str + :param term_id: (required) + :type term_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._find_ticket_term_by_id_serialize( + ticket_id=ticket_id, + term_id=term_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SmartTransferTicketTermResponse", + '403': "SmartTransferForbiddenResponse", + '404': "SmartTransferNotFoundResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def find_ticket_term_by_id_with_http_info( + self, + ticket_id: StrictStr, + term_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SmartTransferTicketTermResponse]: + """Search ticket by leg (term) ID + + Find Smart Transfer ticket term by id + + :param ticket_id: (required) + :type ticket_id: str + :param term_id: (required) + :type term_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._find_ticket_term_by_id_serialize( + ticket_id=ticket_id, + term_id=term_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SmartTransferTicketTermResponse", + '403': "SmartTransferForbiddenResponse", + '404': "SmartTransferNotFoundResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def find_ticket_term_by_id_without_preload_content( + self, + ticket_id: StrictStr, + term_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Search ticket by leg (term) ID + + Find Smart Transfer ticket term by id + + :param ticket_id: (required) + :type ticket_id: str + :param term_id: (required) + :type term_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._find_ticket_term_by_id_serialize( + ticket_id=ticket_id, + term_id=term_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SmartTransferTicketTermResponse", + '403': "SmartTransferForbiddenResponse", + '404': "SmartTransferNotFoundResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _find_ticket_term_by_id_serialize( + self, + ticket_id, + term_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if ticket_id is not None: + _path_params['ticketId'] = ticket_id + if term_id is not None: + _path_params['termId'] = term_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/smart-transfers/{ticketId}/terms/{termId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def fulfill_ticket( + self, + ticket_id: StrictStr, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SmartTransferTicketResponse: + """Fund ticket manually + + Manually fulfill ticket, in case when all terms (legs) are funded manually + + :param ticket_id: (required) + :type ticket_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._fulfill_ticket_serialize( + ticket_id=ticket_id, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SmartTransferTicketResponse", + '403': "SmartTransferForbiddenResponse", + '404': "SmartTransferNotFoundResponse", + '422': "SmartTransferBadRequestResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def fulfill_ticket_with_http_info( + self, + ticket_id: StrictStr, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SmartTransferTicketResponse]: + """Fund ticket manually + + Manually fulfill ticket, in case when all terms (legs) are funded manually + + :param ticket_id: (required) + :type ticket_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._fulfill_ticket_serialize( + ticket_id=ticket_id, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SmartTransferTicketResponse", + '403': "SmartTransferForbiddenResponse", + '404': "SmartTransferNotFoundResponse", + '422': "SmartTransferBadRequestResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def fulfill_ticket_without_preload_content( + self, + ticket_id: StrictStr, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Fund ticket manually + + Manually fulfill ticket, in case when all terms (legs) are funded manually + + :param ticket_id: (required) + :type ticket_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._fulfill_ticket_serialize( + ticket_id=ticket_id, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SmartTransferTicketResponse", + '403': "SmartTransferForbiddenResponse", + '404': "SmartTransferNotFoundResponse", + '422': "SmartTransferBadRequestResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _fulfill_ticket_serialize( + self, + ticket_id, + idempotency_key, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if ticket_id is not None: + _path_params['ticketId'] = ticket_id + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/smart-transfers/{ticketId}/fulfill', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def fund_ticket_term( + self, + ticket_id: StrictStr, + term_id: StrictStr, + smart_transfer_fund_term: SmartTransferFundTerm, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SmartTransferTicketTermResponse: + """Define funding source + + Set funding source for ticket term (in case of ASYNC tickets, this will execute transfer immediately) + + :param ticket_id: (required) + :type ticket_id: str + :param term_id: (required) + :type term_id: str + :param smart_transfer_fund_term: (required) + :type smart_transfer_fund_term: SmartTransferFundTerm + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._fund_ticket_term_serialize( + ticket_id=ticket_id, + term_id=term_id, + smart_transfer_fund_term=smart_transfer_fund_term, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "SmartTransferTicketTermResponse", + '403': "SmartTransferForbiddenResponse", + '404': "SmartTransferNotFoundResponse", + '422': "SmartTransferBadRequestResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def fund_ticket_term_with_http_info( + self, + ticket_id: StrictStr, + term_id: StrictStr, + smart_transfer_fund_term: SmartTransferFundTerm, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SmartTransferTicketTermResponse]: + """Define funding source + + Set funding source for ticket term (in case of ASYNC tickets, this will execute transfer immediately) + + :param ticket_id: (required) + :type ticket_id: str + :param term_id: (required) + :type term_id: str + :param smart_transfer_fund_term: (required) + :type smart_transfer_fund_term: SmartTransferFundTerm + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._fund_ticket_term_serialize( + ticket_id=ticket_id, + term_id=term_id, + smart_transfer_fund_term=smart_transfer_fund_term, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "SmartTransferTicketTermResponse", + '403': "SmartTransferForbiddenResponse", + '404': "SmartTransferNotFoundResponse", + '422': "SmartTransferBadRequestResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def fund_ticket_term_without_preload_content( + self, + ticket_id: StrictStr, + term_id: StrictStr, + smart_transfer_fund_term: SmartTransferFundTerm, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Define funding source + + Set funding source for ticket term (in case of ASYNC tickets, this will execute transfer immediately) + + :param ticket_id: (required) + :type ticket_id: str + :param term_id: (required) + :type term_id: str + :param smart_transfer_fund_term: (required) + :type smart_transfer_fund_term: SmartTransferFundTerm + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._fund_ticket_term_serialize( + ticket_id=ticket_id, + term_id=term_id, + smart_transfer_fund_term=smart_transfer_fund_term, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "SmartTransferTicketTermResponse", + '403': "SmartTransferForbiddenResponse", + '404': "SmartTransferNotFoundResponse", + '422': "SmartTransferBadRequestResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _fund_ticket_term_serialize( + self, + ticket_id, + term_id, + smart_transfer_fund_term, + idempotency_key, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if ticket_id is not None: + _path_params['ticketId'] = ticket_id + if term_id is not None: + _path_params['termId'] = term_id + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + if smart_transfer_fund_term is not None: + _body_params = smart_transfer_fund_term + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/smart-transfers/{ticketId}/terms/{termId}/fund', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_smart_transfer_user_groups( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SmartTransferUserGroupsResponse: + """Get user group + + Get Smart Transfer user groups + + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_smart_transfer_user_groups_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SmartTransferUserGroupsResponse", + '403': "SmartTransferForbiddenResponse", + '422': "SmartTransferBadRequestResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_smart_transfer_user_groups_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SmartTransferUserGroupsResponse]: + """Get user group + + Get Smart Transfer user groups + + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_smart_transfer_user_groups_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SmartTransferUserGroupsResponse", + '403': "SmartTransferForbiddenResponse", + '422': "SmartTransferBadRequestResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_smart_transfer_user_groups_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get user group + + Get Smart Transfer user groups + + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_smart_transfer_user_groups_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SmartTransferUserGroupsResponse", + '403': "SmartTransferForbiddenResponse", + '422': "SmartTransferBadRequestResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_smart_transfer_user_groups_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/smart-transfers/settings/user-groups', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def manually_fund_ticket_term( + self, + ticket_id: StrictStr, + term_id: StrictStr, + smart_transfer_manually_fund_term: SmartTransferManuallyFundTerm, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SmartTransferTicketTermResponse: + """Manually add term transaction + + Manually set ticket term transaction + + :param ticket_id: (required) + :type ticket_id: str + :param term_id: (required) + :type term_id: str + :param smart_transfer_manually_fund_term: (required) + :type smart_transfer_manually_fund_term: SmartTransferManuallyFundTerm + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._manually_fund_ticket_term_serialize( + ticket_id=ticket_id, + term_id=term_id, + smart_transfer_manually_fund_term=smart_transfer_manually_fund_term, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "SmartTransferTicketTermResponse", + '403': "SmartTransferForbiddenResponse", + '404': "SmartTransferNotFoundResponse", + '422': "SmartTransferBadRequestResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def manually_fund_ticket_term_with_http_info( + self, + ticket_id: StrictStr, + term_id: StrictStr, + smart_transfer_manually_fund_term: SmartTransferManuallyFundTerm, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SmartTransferTicketTermResponse]: + """Manually add term transaction + + Manually set ticket term transaction + + :param ticket_id: (required) + :type ticket_id: str + :param term_id: (required) + :type term_id: str + :param smart_transfer_manually_fund_term: (required) + :type smart_transfer_manually_fund_term: SmartTransferManuallyFundTerm + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._manually_fund_ticket_term_serialize( + ticket_id=ticket_id, + term_id=term_id, + smart_transfer_manually_fund_term=smart_transfer_manually_fund_term, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "SmartTransferTicketTermResponse", + '403': "SmartTransferForbiddenResponse", + '404': "SmartTransferNotFoundResponse", + '422': "SmartTransferBadRequestResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def manually_fund_ticket_term_without_preload_content( + self, + ticket_id: StrictStr, + term_id: StrictStr, + smart_transfer_manually_fund_term: SmartTransferManuallyFundTerm, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Manually add term transaction + + Manually set ticket term transaction + + :param ticket_id: (required) + :type ticket_id: str + :param term_id: (required) + :type term_id: str + :param smart_transfer_manually_fund_term: (required) + :type smart_transfer_manually_fund_term: SmartTransferManuallyFundTerm + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._manually_fund_ticket_term_serialize( + ticket_id=ticket_id, + term_id=term_id, + smart_transfer_manually_fund_term=smart_transfer_manually_fund_term, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "SmartTransferTicketTermResponse", + '403': "SmartTransferForbiddenResponse", + '404': "SmartTransferNotFoundResponse", + '422': "SmartTransferBadRequestResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _manually_fund_ticket_term_serialize( + self, + ticket_id, + term_id, + smart_transfer_manually_fund_term, + idempotency_key, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if ticket_id is not None: + _path_params['ticketId'] = ticket_id + if term_id is not None: + _path_params['termId'] = term_id + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + if smart_transfer_manually_fund_term is not None: + _body_params = smart_transfer_manually_fund_term + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/smart-transfers/{ticketId}/terms/{termId}/manually-fund', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def remove_ticket_term( + self, + ticket_id: StrictStr, + term_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> None: + """Delete ticket leg (term) + + Delete ticket term when ticket is in DRAFT status + + :param ticket_id: (required) + :type ticket_id: str + :param term_id: (required) + :type term_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._remove_ticket_term_serialize( + ticket_id=ticket_id, + term_id=term_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '403': "SmartTransferForbiddenResponse", + '404': "SmartTransferNotFoundResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def remove_ticket_term_with_http_info( + self, + ticket_id: StrictStr, + term_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[None]: + """Delete ticket leg (term) + + Delete ticket term when ticket is in DRAFT status + + :param ticket_id: (required) + :type ticket_id: str + :param term_id: (required) + :type term_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._remove_ticket_term_serialize( + ticket_id=ticket_id, + term_id=term_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '403': "SmartTransferForbiddenResponse", + '404': "SmartTransferNotFoundResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def remove_ticket_term_without_preload_content( + self, + ticket_id: StrictStr, + term_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Delete ticket leg (term) + + Delete ticket term when ticket is in DRAFT status + + :param ticket_id: (required) + :type ticket_id: str + :param term_id: (required) + :type term_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._remove_ticket_term_serialize( + ticket_id=ticket_id, + term_id=term_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '403': "SmartTransferForbiddenResponse", + '404': "SmartTransferNotFoundResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _remove_ticket_term_serialize( + self, + ticket_id, + term_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if ticket_id is not None: + _path_params['ticketId'] = ticket_id + if term_id is not None: + _path_params['termId'] = term_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/smart-transfers/{ticketId}/terms/{termId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def search_tickets( + self, + q: Annotated[Optional[Annotated[str, Field(min_length=1, strict=True)]], Field(description="Search string - counterparty name or asset or ticketId. Optional")] = None, + statuses: Annotated[Optional[List[StrictStr]], Field(description="Ticket statuses for Smart Transfer tickets. Optional")] = None, + network_id: Annotated[Optional[StrictStr], Field(description="NetworkId that is used in the ticket . Optional")] = None, + created_by_me: Annotated[Optional[StrictBool], Field(description="Filter created tickets by created by self or by others. Optional")] = None, + expires_after: Annotated[Optional[datetime], Field(description="Lower bound of search range. Optional")] = None, + expires_before: Annotated[Optional[datetime], Field(description="Upper bound of search range. Optional")] = None, + type: Annotated[Optional[StrictStr], Field(description="Type of transfer. ASYNC executes transfers as they are funded, ATOMIC executes all terms (legs) as one atomic transfer")] = None, + external_ref_id: Annotated[Optional[Annotated[str, Field(min_length=1, strict=True, max_length=64)]], Field(description="External ref. ID that workspace can use to identify ticket outside of Fireblocks system.")] = None, + after: Annotated[Optional[StrictStr], Field(description="ID of the record after which to fetch $limit records")] = None, + limit: Annotated[Optional[Union[Annotated[float, Field(strict=True, ge=1)], Annotated[int, Field(strict=True, ge=1)]]], Field(description="Number of records to fetch. By default, it is 100")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SmartTransferTicketFilteredResponse: + """Find Ticket + + Finds Smart Transfer tickets that match the submitted criteria + + :param q: Search string - counterparty name or asset or ticketId. Optional + :type q: str + :param statuses: Ticket statuses for Smart Transfer tickets. Optional + :type statuses: List[str] + :param network_id: NetworkId that is used in the ticket . Optional + :type network_id: str + :param created_by_me: Filter created tickets by created by self or by others. Optional + :type created_by_me: bool + :param expires_after: Lower bound of search range. Optional + :type expires_after: datetime + :param expires_before: Upper bound of search range. Optional + :type expires_before: datetime + :param type: Type of transfer. ASYNC executes transfers as they are funded, ATOMIC executes all terms (legs) as one atomic transfer + :type type: str + :param external_ref_id: External ref. ID that workspace can use to identify ticket outside of Fireblocks system. + :type external_ref_id: str + :param after: ID of the record after which to fetch $limit records + :type after: str + :param limit: Number of records to fetch. By default, it is 100 + :type limit: float + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._search_tickets_serialize( + q=q, + statuses=statuses, + network_id=network_id, + created_by_me=created_by_me, + expires_after=expires_after, + expires_before=expires_before, + type=type, + external_ref_id=external_ref_id, + after=after, + limit=limit, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SmartTransferTicketFilteredResponse", + '403': "SmartTransferForbiddenResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def search_tickets_with_http_info( + self, + q: Annotated[Optional[Annotated[str, Field(min_length=1, strict=True)]], Field(description="Search string - counterparty name or asset or ticketId. Optional")] = None, + statuses: Annotated[Optional[List[StrictStr]], Field(description="Ticket statuses for Smart Transfer tickets. Optional")] = None, + network_id: Annotated[Optional[StrictStr], Field(description="NetworkId that is used in the ticket . Optional")] = None, + created_by_me: Annotated[Optional[StrictBool], Field(description="Filter created tickets by created by self or by others. Optional")] = None, + expires_after: Annotated[Optional[datetime], Field(description="Lower bound of search range. Optional")] = None, + expires_before: Annotated[Optional[datetime], Field(description="Upper bound of search range. Optional")] = None, + type: Annotated[Optional[StrictStr], Field(description="Type of transfer. ASYNC executes transfers as they are funded, ATOMIC executes all terms (legs) as one atomic transfer")] = None, + external_ref_id: Annotated[Optional[Annotated[str, Field(min_length=1, strict=True, max_length=64)]], Field(description="External ref. ID that workspace can use to identify ticket outside of Fireblocks system.")] = None, + after: Annotated[Optional[StrictStr], Field(description="ID of the record after which to fetch $limit records")] = None, + limit: Annotated[Optional[Union[Annotated[float, Field(strict=True, ge=1)], Annotated[int, Field(strict=True, ge=1)]]], Field(description="Number of records to fetch. By default, it is 100")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SmartTransferTicketFilteredResponse]: + """Find Ticket + + Finds Smart Transfer tickets that match the submitted criteria + + :param q: Search string - counterparty name or asset or ticketId. Optional + :type q: str + :param statuses: Ticket statuses for Smart Transfer tickets. Optional + :type statuses: List[str] + :param network_id: NetworkId that is used in the ticket . Optional + :type network_id: str + :param created_by_me: Filter created tickets by created by self or by others. Optional + :type created_by_me: bool + :param expires_after: Lower bound of search range. Optional + :type expires_after: datetime + :param expires_before: Upper bound of search range. Optional + :type expires_before: datetime + :param type: Type of transfer. ASYNC executes transfers as they are funded, ATOMIC executes all terms (legs) as one atomic transfer + :type type: str + :param external_ref_id: External ref. ID that workspace can use to identify ticket outside of Fireblocks system. + :type external_ref_id: str + :param after: ID of the record after which to fetch $limit records + :type after: str + :param limit: Number of records to fetch. By default, it is 100 + :type limit: float + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._search_tickets_serialize( + q=q, + statuses=statuses, + network_id=network_id, + created_by_me=created_by_me, + expires_after=expires_after, + expires_before=expires_before, + type=type, + external_ref_id=external_ref_id, + after=after, + limit=limit, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SmartTransferTicketFilteredResponse", + '403': "SmartTransferForbiddenResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def search_tickets_without_preload_content( + self, + q: Annotated[Optional[Annotated[str, Field(min_length=1, strict=True)]], Field(description="Search string - counterparty name or asset or ticketId. Optional")] = None, + statuses: Annotated[Optional[List[StrictStr]], Field(description="Ticket statuses for Smart Transfer tickets. Optional")] = None, + network_id: Annotated[Optional[StrictStr], Field(description="NetworkId that is used in the ticket . Optional")] = None, + created_by_me: Annotated[Optional[StrictBool], Field(description="Filter created tickets by created by self or by others. Optional")] = None, + expires_after: Annotated[Optional[datetime], Field(description="Lower bound of search range. Optional")] = None, + expires_before: Annotated[Optional[datetime], Field(description="Upper bound of search range. Optional")] = None, + type: Annotated[Optional[StrictStr], Field(description="Type of transfer. ASYNC executes transfers as they are funded, ATOMIC executes all terms (legs) as one atomic transfer")] = None, + external_ref_id: Annotated[Optional[Annotated[str, Field(min_length=1, strict=True, max_length=64)]], Field(description="External ref. ID that workspace can use to identify ticket outside of Fireblocks system.")] = None, + after: Annotated[Optional[StrictStr], Field(description="ID of the record after which to fetch $limit records")] = None, + limit: Annotated[Optional[Union[Annotated[float, Field(strict=True, ge=1)], Annotated[int, Field(strict=True, ge=1)]]], Field(description="Number of records to fetch. By default, it is 100")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Find Ticket + + Finds Smart Transfer tickets that match the submitted criteria + + :param q: Search string - counterparty name or asset or ticketId. Optional + :type q: str + :param statuses: Ticket statuses for Smart Transfer tickets. Optional + :type statuses: List[str] + :param network_id: NetworkId that is used in the ticket . Optional + :type network_id: str + :param created_by_me: Filter created tickets by created by self or by others. Optional + :type created_by_me: bool + :param expires_after: Lower bound of search range. Optional + :type expires_after: datetime + :param expires_before: Upper bound of search range. Optional + :type expires_before: datetime + :param type: Type of transfer. ASYNC executes transfers as they are funded, ATOMIC executes all terms (legs) as one atomic transfer + :type type: str + :param external_ref_id: External ref. ID that workspace can use to identify ticket outside of Fireblocks system. + :type external_ref_id: str + :param after: ID of the record after which to fetch $limit records + :type after: str + :param limit: Number of records to fetch. By default, it is 100 + :type limit: float + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._search_tickets_serialize( + q=q, + statuses=statuses, + network_id=network_id, + created_by_me=created_by_me, + expires_after=expires_after, + expires_before=expires_before, + type=type, + external_ref_id=external_ref_id, + after=after, + limit=limit, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SmartTransferTicketFilteredResponse", + '403': "SmartTransferForbiddenResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _search_tickets_serialize( + self, + q, + statuses, + network_id, + created_by_me, + expires_after, + expires_before, + type, + external_ref_id, + after, + limit, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + 'statuses': 'multi', + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if q is not None: + + _query_params.append(('q', q)) + + if statuses is not None: + + _query_params.append(('statuses', statuses)) + + if network_id is not None: + + _query_params.append(('networkId', network_id)) + + if created_by_me is not None: + + _query_params.append(('createdByMe', created_by_me)) + + if expires_after is not None: + if isinstance(expires_after, datetime): + _query_params.append( + ( + 'expiresAfter', + expires_after.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('expiresAfter', expires_after)) + + if expires_before is not None: + if isinstance(expires_before, datetime): + _query_params.append( + ( + 'expiresBefore', + expires_before.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('expiresBefore', expires_before)) + + if type is not None: + + _query_params.append(('type', type)) + + if external_ref_id is not None: + + _query_params.append(('externalRefId', external_ref_id)) + + if after is not None: + + _query_params.append(('after', after)) + + if limit is not None: + + _query_params.append(('limit', limit)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/smart-transfers', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def set_external_ref_id( + self, + ticket_id: StrictStr, + smart_transfer_set_ticket_external_id: SmartTransferSetTicketExternalId, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SmartTransferTicketResponse: + """Add external ref. ID + + Set external id Smart Transfer ticket + + :param ticket_id: (required) + :type ticket_id: str + :param smart_transfer_set_ticket_external_id: (required) + :type smart_transfer_set_ticket_external_id: SmartTransferSetTicketExternalId + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._set_external_ref_id_serialize( + ticket_id=ticket_id, + smart_transfer_set_ticket_external_id=smart_transfer_set_ticket_external_id, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SmartTransferTicketResponse", + '403': "SmartTransferForbiddenResponse", + '404': "SmartTransferNotFoundResponse", + '422': "SmartTransferBadRequestResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def set_external_ref_id_with_http_info( + self, + ticket_id: StrictStr, + smart_transfer_set_ticket_external_id: SmartTransferSetTicketExternalId, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SmartTransferTicketResponse]: + """Add external ref. ID + + Set external id Smart Transfer ticket + + :param ticket_id: (required) + :type ticket_id: str + :param smart_transfer_set_ticket_external_id: (required) + :type smart_transfer_set_ticket_external_id: SmartTransferSetTicketExternalId + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._set_external_ref_id_serialize( + ticket_id=ticket_id, + smart_transfer_set_ticket_external_id=smart_transfer_set_ticket_external_id, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SmartTransferTicketResponse", + '403': "SmartTransferForbiddenResponse", + '404': "SmartTransferNotFoundResponse", + '422': "SmartTransferBadRequestResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def set_external_ref_id_without_preload_content( + self, + ticket_id: StrictStr, + smart_transfer_set_ticket_external_id: SmartTransferSetTicketExternalId, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Add external ref. ID + + Set external id Smart Transfer ticket + + :param ticket_id: (required) + :type ticket_id: str + :param smart_transfer_set_ticket_external_id: (required) + :type smart_transfer_set_ticket_external_id: SmartTransferSetTicketExternalId + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._set_external_ref_id_serialize( + ticket_id=ticket_id, + smart_transfer_set_ticket_external_id=smart_transfer_set_ticket_external_id, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SmartTransferTicketResponse", + '403': "SmartTransferForbiddenResponse", + '404': "SmartTransferNotFoundResponse", + '422': "SmartTransferBadRequestResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _set_external_ref_id_serialize( + self, + ticket_id, + smart_transfer_set_ticket_external_id, + idempotency_key, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if ticket_id is not None: + _path_params['ticketId'] = ticket_id + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + if smart_transfer_set_ticket_external_id is not None: + _body_params = smart_transfer_set_ticket_external_id + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/smart-transfers/{ticketId}/external-id', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def set_ticket_expiration( + self, + ticket_id: StrictStr, + smart_transfer_set_ticket_expiration: SmartTransferSetTicketExpiration, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SmartTransferTicketResponse: + """Set expiration + + Set expiration date on Smart Transfer ticket + + :param ticket_id: (required) + :type ticket_id: str + :param smart_transfer_set_ticket_expiration: (required) + :type smart_transfer_set_ticket_expiration: SmartTransferSetTicketExpiration + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._set_ticket_expiration_serialize( + ticket_id=ticket_id, + smart_transfer_set_ticket_expiration=smart_transfer_set_ticket_expiration, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SmartTransferTicketResponse", + '403': "SmartTransferForbiddenResponse", + '404': "SmartTransferNotFoundResponse", + '422': "SmartTransferBadRequestResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def set_ticket_expiration_with_http_info( + self, + ticket_id: StrictStr, + smart_transfer_set_ticket_expiration: SmartTransferSetTicketExpiration, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SmartTransferTicketResponse]: + """Set expiration + + Set expiration date on Smart Transfer ticket + + :param ticket_id: (required) + :type ticket_id: str + :param smart_transfer_set_ticket_expiration: (required) + :type smart_transfer_set_ticket_expiration: SmartTransferSetTicketExpiration + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._set_ticket_expiration_serialize( + ticket_id=ticket_id, + smart_transfer_set_ticket_expiration=smart_transfer_set_ticket_expiration, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SmartTransferTicketResponse", + '403': "SmartTransferForbiddenResponse", + '404': "SmartTransferNotFoundResponse", + '422': "SmartTransferBadRequestResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def set_ticket_expiration_without_preload_content( + self, + ticket_id: StrictStr, + smart_transfer_set_ticket_expiration: SmartTransferSetTicketExpiration, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Set expiration + + Set expiration date on Smart Transfer ticket + + :param ticket_id: (required) + :type ticket_id: str + :param smart_transfer_set_ticket_expiration: (required) + :type smart_transfer_set_ticket_expiration: SmartTransferSetTicketExpiration + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._set_ticket_expiration_serialize( + ticket_id=ticket_id, + smart_transfer_set_ticket_expiration=smart_transfer_set_ticket_expiration, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SmartTransferTicketResponse", + '403': "SmartTransferForbiddenResponse", + '404': "SmartTransferNotFoundResponse", + '422': "SmartTransferBadRequestResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _set_ticket_expiration_serialize( + self, + ticket_id, + smart_transfer_set_ticket_expiration, + idempotency_key, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if ticket_id is not None: + _path_params['ticketId'] = ticket_id + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + if smart_transfer_set_ticket_expiration is not None: + _body_params = smart_transfer_set_ticket_expiration + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/smart-transfers/{ticketId}/expires-in', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def set_user_groups( + self, + smart_transfer_set_user_groups: SmartTransferSetUserGroups, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SmartTransferUserGroupsResponse: + """Set user group + + Set Smart Transfer user group + + :param smart_transfer_set_user_groups: (required) + :type smart_transfer_set_user_groups: SmartTransferSetUserGroups + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._set_user_groups_serialize( + smart_transfer_set_user_groups=smart_transfer_set_user_groups, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "SmartTransferUserGroupsResponse", + '403': "SmartTransferForbiddenResponse", + '422': "SmartTransferBadRequestResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def set_user_groups_with_http_info( + self, + smart_transfer_set_user_groups: SmartTransferSetUserGroups, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SmartTransferUserGroupsResponse]: + """Set user group + + Set Smart Transfer user group + + :param smart_transfer_set_user_groups: (required) + :type smart_transfer_set_user_groups: SmartTransferSetUserGroups + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._set_user_groups_serialize( + smart_transfer_set_user_groups=smart_transfer_set_user_groups, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "SmartTransferUserGroupsResponse", + '403': "SmartTransferForbiddenResponse", + '422': "SmartTransferBadRequestResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def set_user_groups_without_preload_content( + self, + smart_transfer_set_user_groups: SmartTransferSetUserGroups, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Set user group + + Set Smart Transfer user group + + :param smart_transfer_set_user_groups: (required) + :type smart_transfer_set_user_groups: SmartTransferSetUserGroups + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._set_user_groups_serialize( + smart_transfer_set_user_groups=smart_transfer_set_user_groups, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "SmartTransferUserGroupsResponse", + '403': "SmartTransferForbiddenResponse", + '422': "SmartTransferBadRequestResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _set_user_groups_serialize( + self, + smart_transfer_set_user_groups, + idempotency_key, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + if smart_transfer_set_user_groups is not None: + _body_params = smart_transfer_set_user_groups + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/smart-transfers/settings/user-groups', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def submit_ticket( + self, + ticket_id: StrictStr, + smart_transfer_submit_ticket: SmartTransferSubmitTicket, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SmartTransferTicketResponse: + """Submit ticket + + Submit Smart Transfer ticket - change status into ready for approval if auto approval is not turned on, or OPEN if auto approval is on + + :param ticket_id: (required) + :type ticket_id: str + :param smart_transfer_submit_ticket: (required) + :type smart_transfer_submit_ticket: SmartTransferSubmitTicket + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._submit_ticket_serialize( + ticket_id=ticket_id, + smart_transfer_submit_ticket=smart_transfer_submit_ticket, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SmartTransferTicketResponse", + '403': "SmartTransferForbiddenResponse", + '404': "SmartTransferNotFoundResponse", + '422': "SmartTransferBadRequestResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def submit_ticket_with_http_info( + self, + ticket_id: StrictStr, + smart_transfer_submit_ticket: SmartTransferSubmitTicket, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SmartTransferTicketResponse]: + """Submit ticket + + Submit Smart Transfer ticket - change status into ready for approval if auto approval is not turned on, or OPEN if auto approval is on + + :param ticket_id: (required) + :type ticket_id: str + :param smart_transfer_submit_ticket: (required) + :type smart_transfer_submit_ticket: SmartTransferSubmitTicket + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._submit_ticket_serialize( + ticket_id=ticket_id, + smart_transfer_submit_ticket=smart_transfer_submit_ticket, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SmartTransferTicketResponse", + '403': "SmartTransferForbiddenResponse", + '404': "SmartTransferNotFoundResponse", + '422': "SmartTransferBadRequestResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def submit_ticket_without_preload_content( + self, + ticket_id: StrictStr, + smart_transfer_submit_ticket: SmartTransferSubmitTicket, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Submit ticket + + Submit Smart Transfer ticket - change status into ready for approval if auto approval is not turned on, or OPEN if auto approval is on + + :param ticket_id: (required) + :type ticket_id: str + :param smart_transfer_submit_ticket: (required) + :type smart_transfer_submit_ticket: SmartTransferSubmitTicket + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._submit_ticket_serialize( + ticket_id=ticket_id, + smart_transfer_submit_ticket=smart_transfer_submit_ticket, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SmartTransferTicketResponse", + '403': "SmartTransferForbiddenResponse", + '404': "SmartTransferNotFoundResponse", + '422': "SmartTransferBadRequestResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _submit_ticket_serialize( + self, + ticket_id, + smart_transfer_submit_ticket, + idempotency_key, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if ticket_id is not None: + _path_params['ticketId'] = ticket_id + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + if smart_transfer_submit_ticket is not None: + _body_params = smart_transfer_submit_ticket + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/smart-transfers/{ticketId}/submit', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def update_ticket_term( + self, + ticket_id: StrictStr, + term_id: StrictStr, + smart_transfer_update_ticket_term: SmartTransferUpdateTicketTerm, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SmartTransferTicketTermResponse: + """Update ticket leg (term) + + Update ticket term (when ticket status is DRAFT) + + :param ticket_id: (required) + :type ticket_id: str + :param term_id: (required) + :type term_id: str + :param smart_transfer_update_ticket_term: (required) + :type smart_transfer_update_ticket_term: SmartTransferUpdateTicketTerm + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_ticket_term_serialize( + ticket_id=ticket_id, + term_id=term_id, + smart_transfer_update_ticket_term=smart_transfer_update_ticket_term, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SmartTransferTicketTermResponse", + '403': "SmartTransferForbiddenResponse", + '404': "SmartTransferNotFoundResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def update_ticket_term_with_http_info( + self, + ticket_id: StrictStr, + term_id: StrictStr, + smart_transfer_update_ticket_term: SmartTransferUpdateTicketTerm, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SmartTransferTicketTermResponse]: + """Update ticket leg (term) + + Update ticket term (when ticket status is DRAFT) + + :param ticket_id: (required) + :type ticket_id: str + :param term_id: (required) + :type term_id: str + :param smart_transfer_update_ticket_term: (required) + :type smart_transfer_update_ticket_term: SmartTransferUpdateTicketTerm + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_ticket_term_serialize( + ticket_id=ticket_id, + term_id=term_id, + smart_transfer_update_ticket_term=smart_transfer_update_ticket_term, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SmartTransferTicketTermResponse", + '403': "SmartTransferForbiddenResponse", + '404': "SmartTransferNotFoundResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def update_ticket_term_without_preload_content( + self, + ticket_id: StrictStr, + term_id: StrictStr, + smart_transfer_update_ticket_term: SmartTransferUpdateTicketTerm, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Update ticket leg (term) + + Update ticket term (when ticket status is DRAFT) + + :param ticket_id: (required) + :type ticket_id: str + :param term_id: (required) + :type term_id: str + :param smart_transfer_update_ticket_term: (required) + :type smart_transfer_update_ticket_term: SmartTransferUpdateTicketTerm + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_ticket_term_serialize( + ticket_id=ticket_id, + term_id=term_id, + smart_transfer_update_ticket_term=smart_transfer_update_ticket_term, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SmartTransferTicketTermResponse", + '403': "SmartTransferForbiddenResponse", + '404': "SmartTransferNotFoundResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _update_ticket_term_serialize( + self, + ticket_id, + term_id, + smart_transfer_update_ticket_term, + idempotency_key, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if ticket_id is not None: + _path_params['ticketId'] = ticket_id + if term_id is not None: + _path_params['termId'] = term_id + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + if smart_transfer_update_ticket_term is not None: + _body_params = smart_transfer_update_ticket_term + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/smart-transfers/{ticketId}/terms/{termId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/fireblocks_client/api/staking_beta_api.py b/fireblocks_client/api/staking_beta_api.py new file mode 100644 index 00000000..ac4936a1 --- /dev/null +++ b/fireblocks_client/api/staking_beta_api.py @@ -0,0 +1,2373 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from pydantic import Field, StrictStr, field_validator +from typing import Optional +from typing_extensions import Annotated +from fireblocks_client.models.chain_info_response_dto import ChainInfoResponseDto +from fireblocks_client.models.delegation_dto import DelegationDto +from fireblocks_client.models.delegation_summary_dto import DelegationSummaryDto +from fireblocks_client.models.execute_action_request import ExecuteActionRequest +from fireblocks_client.models.execute_action_response import ExecuteActionResponse +from fireblocks_client.models.provider_dto import ProviderDto + +from fireblocks_client.api_client import ApiClient, RequestSerialized +from fireblocks_client.api_response import ApiResponse +from fireblocks_client.rest import RESTResponseType + + +class StakingBetaApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def approve_terms_of_service_by_provider_id( + self, + provider_id: Annotated[StrictStr, Field(description="The unique identifier of the staking provider")], + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> object: + """ + + Approve the terms of service of the staking provider. This must be called before performing a staking action for the first time with this provider. + + :param provider_id: The unique identifier of the staking provider (required) + :type provider_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._approve_terms_of_service_by_provider_id_serialize( + provider_id=provider_id, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "object", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def approve_terms_of_service_by_provider_id_with_http_info( + self, + provider_id: Annotated[StrictStr, Field(description="The unique identifier of the staking provider")], + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[object]: + """ + + Approve the terms of service of the staking provider. This must be called before performing a staking action for the first time with this provider. + + :param provider_id: The unique identifier of the staking provider (required) + :type provider_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._approve_terms_of_service_by_provider_id_serialize( + provider_id=provider_id, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "object", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def approve_terms_of_service_by_provider_id_without_preload_content( + self, + provider_id: Annotated[StrictStr, Field(description="The unique identifier of the staking provider")], + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """ + + Approve the terms of service of the staking provider. This must be called before performing a staking action for the first time with this provider. + + :param provider_id: The unique identifier of the staking provider (required) + :type provider_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._approve_terms_of_service_by_provider_id_serialize( + provider_id=provider_id, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "object", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _approve_terms_of_service_by_provider_id_serialize( + self, + provider_id, + idempotency_key, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if provider_id is not None: + _path_params['providerId'] = provider_id + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/staking/providers/{providerId}/approveTermsOfService', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def execute_action( + self, + chain_descriptor: Annotated[StrictStr, Field(description="The protocol identifier (e.g. \"ETH\"/\"SOL\") to use")], + action_id: Annotated[StrictStr, Field(description="The operation that can be executed on a vault/position")], + execute_action_request: ExecuteActionRequest, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ExecuteActionResponse: + """ + + Perform a chain-specific staking action (e.g. stake, unstake, withdraw). + + :param chain_descriptor: The protocol identifier (e.g. \"ETH\"/\"SOL\") to use (required) + :type chain_descriptor: str + :param action_id: The operation that can be executed on a vault/position (required) + :type action_id: str + :param execute_action_request: (required) + :type execute_action_request: ExecuteActionRequest + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._execute_action_serialize( + chain_descriptor=chain_descriptor, + action_id=action_id, + execute_action_request=execute_action_request, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "ExecuteActionResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def execute_action_with_http_info( + self, + chain_descriptor: Annotated[StrictStr, Field(description="The protocol identifier (e.g. \"ETH\"/\"SOL\") to use")], + action_id: Annotated[StrictStr, Field(description="The operation that can be executed on a vault/position")], + execute_action_request: ExecuteActionRequest, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ExecuteActionResponse]: + """ + + Perform a chain-specific staking action (e.g. stake, unstake, withdraw). + + :param chain_descriptor: The protocol identifier (e.g. \"ETH\"/\"SOL\") to use (required) + :type chain_descriptor: str + :param action_id: The operation that can be executed on a vault/position (required) + :type action_id: str + :param execute_action_request: (required) + :type execute_action_request: ExecuteActionRequest + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._execute_action_serialize( + chain_descriptor=chain_descriptor, + action_id=action_id, + execute_action_request=execute_action_request, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "ExecuteActionResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def execute_action_without_preload_content( + self, + chain_descriptor: Annotated[StrictStr, Field(description="The protocol identifier (e.g. \"ETH\"/\"SOL\") to use")], + action_id: Annotated[StrictStr, Field(description="The operation that can be executed on a vault/position")], + execute_action_request: ExecuteActionRequest, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """ + + Perform a chain-specific staking action (e.g. stake, unstake, withdraw). + + :param chain_descriptor: The protocol identifier (e.g. \"ETH\"/\"SOL\") to use (required) + :type chain_descriptor: str + :param action_id: The operation that can be executed on a vault/position (required) + :type action_id: str + :param execute_action_request: (required) + :type execute_action_request: ExecuteActionRequest + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._execute_action_serialize( + chain_descriptor=chain_descriptor, + action_id=action_id, + execute_action_request=execute_action_request, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "ExecuteActionResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _execute_action_serialize( + self, + chain_descriptor, + action_id, + execute_action_request, + idempotency_key, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if chain_descriptor is not None: + _path_params['chainDescriptor'] = chain_descriptor + if action_id is not None: + _path_params['actionId'] = action_id + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + if execute_action_request is not None: + _body_params = execute_action_request + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/staking/chains/{chainDescriptor}/{actionId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_all_delegations( + self, + chain_descriptor: Annotated[Optional[StrictStr], Field(description="Use \"ETH\" / \"SOL\" in order to obtain information related to the specific blockchain network or retrieve information about all chains that have data available by providing no argument.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> List[DelegationDto]: + """ + + Return detailed information on all staking positions, including the staked amount, rewards, status and more. + + :param chain_descriptor: Use \"ETH\" / \"SOL\" in order to obtain information related to the specific blockchain network or retrieve information about all chains that have data available by providing no argument. + :type chain_descriptor: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_all_delegations_serialize( + chain_descriptor=chain_descriptor, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[DelegationDto]", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_all_delegations_with_http_info( + self, + chain_descriptor: Annotated[Optional[StrictStr], Field(description="Use \"ETH\" / \"SOL\" in order to obtain information related to the specific blockchain network or retrieve information about all chains that have data available by providing no argument.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[List[DelegationDto]]: + """ + + Return detailed information on all staking positions, including the staked amount, rewards, status and more. + + :param chain_descriptor: Use \"ETH\" / \"SOL\" in order to obtain information related to the specific blockchain network or retrieve information about all chains that have data available by providing no argument. + :type chain_descriptor: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_all_delegations_serialize( + chain_descriptor=chain_descriptor, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[DelegationDto]", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_all_delegations_without_preload_content( + self, + chain_descriptor: Annotated[Optional[StrictStr], Field(description="Use \"ETH\" / \"SOL\" in order to obtain information related to the specific blockchain network or retrieve information about all chains that have data available by providing no argument.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """ + + Return detailed information on all staking positions, including the staked amount, rewards, status and more. + + :param chain_descriptor: Use \"ETH\" / \"SOL\" in order to obtain information related to the specific blockchain network or retrieve information about all chains that have data available by providing no argument. + :type chain_descriptor: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_all_delegations_serialize( + chain_descriptor=chain_descriptor, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[DelegationDto]", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_all_delegations_serialize( + self, + chain_descriptor, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if chain_descriptor is not None: + + _query_params.append(('chainDescriptor', chain_descriptor)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/staking/positions', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_chain_info( + self, + chain_descriptor: Annotated[StrictStr, Field(description="The protocol identifier (e.g. \"ETH\"/\"SOL\") to use")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ChainInfoResponseDto: + """ + + Return chain-specific, staking-related information summary (e.g. epoch details, lockup durations, estimated rewards, etc.) + + :param chain_descriptor: The protocol identifier (e.g. \"ETH\"/\"SOL\") to use (required) + :type chain_descriptor: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_chain_info_serialize( + chain_descriptor=chain_descriptor, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ChainInfoResponseDto", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_chain_info_with_http_info( + self, + chain_descriptor: Annotated[StrictStr, Field(description="The protocol identifier (e.g. \"ETH\"/\"SOL\") to use")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ChainInfoResponseDto]: + """ + + Return chain-specific, staking-related information summary (e.g. epoch details, lockup durations, estimated rewards, etc.) + + :param chain_descriptor: The protocol identifier (e.g. \"ETH\"/\"SOL\") to use (required) + :type chain_descriptor: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_chain_info_serialize( + chain_descriptor=chain_descriptor, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ChainInfoResponseDto", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_chain_info_without_preload_content( + self, + chain_descriptor: Annotated[StrictStr, Field(description="The protocol identifier (e.g. \"ETH\"/\"SOL\") to use")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """ + + Return chain-specific, staking-related information summary (e.g. epoch details, lockup durations, estimated rewards, etc.) + + :param chain_descriptor: The protocol identifier (e.g. \"ETH\"/\"SOL\") to use (required) + :type chain_descriptor: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_chain_info_serialize( + chain_descriptor=chain_descriptor, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ChainInfoResponseDto", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_chain_info_serialize( + self, + chain_descriptor, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if chain_descriptor is not None: + _path_params['chainDescriptor'] = chain_descriptor + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/staking/chains/{chainDescriptor}/chainInfo', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_chains( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> List[str]: + """ + + Return an alphabetical list of supported chains. + + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_chains_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[str]", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_chains_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[List[str]]: + """ + + Return an alphabetical list of supported chains. + + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_chains_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[str]", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_chains_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """ + + Return an alphabetical list of supported chains. + + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_chains_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[str]", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_chains_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/staking/chains', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_delegation_by_id( + self, + id: Annotated[StrictStr, Field(description="The unique identifier of the staking position")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> DelegationDto: + """ + + Return detailed information on a staking position, including the staked amount, rewards, status and more. + + :param id: The unique identifier of the staking position (required) + :type id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_delegation_by_id_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DelegationDto", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_delegation_by_id_with_http_info( + self, + id: Annotated[StrictStr, Field(description="The unique identifier of the staking position")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[DelegationDto]: + """ + + Return detailed information on a staking position, including the staked amount, rewards, status and more. + + :param id: The unique identifier of the staking position (required) + :type id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_delegation_by_id_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DelegationDto", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_delegation_by_id_without_preload_content( + self, + id: Annotated[StrictStr, Field(description="The unique identifier of the staking position")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """ + + Return detailed information on a staking position, including the staked amount, rewards, status and more. + + :param id: The unique identifier of the staking position (required) + :type id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_delegation_by_id_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DelegationDto", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_delegation_by_id_serialize( + self, + id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/staking/positions/{id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_providers( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> List[ProviderDto]: + """ + + Return information on all the available staking providers. + + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_providers_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[ProviderDto]", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_providers_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[List[ProviderDto]]: + """ + + Return information on all the available staking providers. + + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_providers_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[ProviderDto]", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_providers_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """ + + Return information on all the available staking providers. + + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_providers_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[ProviderDto]", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_providers_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/staking/providers', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_summary( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> DelegationSummaryDto: + """ + + Return a summary of all vaults, categorized by their status (active, inactive), the total amounts staked and total rewards per-chain. + + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_summary_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DelegationSummaryDto", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_summary_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[DelegationSummaryDto]: + """ + + Return a summary of all vaults, categorized by their status (active, inactive), the total amounts staked and total rewards per-chain. + + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_summary_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DelegationSummaryDto", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_summary_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """ + + Return a summary of all vaults, categorized by their status (active, inactive), the total amounts staked and total rewards per-chain. + + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_summary_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DelegationSummaryDto", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_summary_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/staking/positions/summary', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_summary_by_vault( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> Dict[str, DelegationSummaryDto]: + """ + + Return a summary for each vault, categorized by their status (active, inactive), the total amounts staked and total rewards per-chain. + + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_summary_by_vault_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "Dict[str, DelegationSummaryDto]", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_summary_by_vault_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[Dict[str, DelegationSummaryDto]]: + """ + + Return a summary for each vault, categorized by their status (active, inactive), the total amounts staked and total rewards per-chain. + + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_summary_by_vault_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "Dict[str, DelegationSummaryDto]", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_summary_by_vault_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """ + + Return a summary for each vault, categorized by their status (active, inactive), the total amounts staked and total rewards per-chain. + + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_summary_by_vault_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "Dict[str, DelegationSummaryDto]", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_summary_by_vault_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/staking/positions/summary/vaults', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/fireblocks_client/api/tokenization_api.py b/fireblocks_client/api/tokenization_api.py new file mode 100644 index 00000000..3a9b4eb1 --- /dev/null +++ b/fireblocks_client/api/tokenization_api.py @@ -0,0 +1,1438 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from pydantic import Field, StrictStr +from typing import Any, Optional, Union +from typing_extensions import Annotated +from fireblocks_client.models.create_token_request_dto import CreateTokenRequestDto +from fireblocks_client.models.token_link_dto import TokenLinkDto +from fireblocks_client.models.token_link_request_dto import TokenLinkRequestDto +from fireblocks_client.models.tokens_paginated_response import TokensPaginatedResponse + +from fireblocks_client.api_client import ApiClient, RequestSerialized +from fireblocks_client.api_response import ApiResponse +from fireblocks_client.rest import RESTResponseType + + +class TokenizationApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def get_linked_token( + self, + id: Annotated[StrictStr, Field(description="The token link id")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> TokenLinkDto: + """Return a linked token + + Return a linked token, with its status and metadata. + + :param id: The token link id (required) + :type id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_linked_token_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "TokenLinkDto", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_linked_token_with_http_info( + self, + id: Annotated[StrictStr, Field(description="The token link id")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[TokenLinkDto]: + """Return a linked token + + Return a linked token, with its status and metadata. + + :param id: The token link id (required) + :type id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_linked_token_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "TokenLinkDto", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_linked_token_without_preload_content( + self, + id: Annotated[StrictStr, Field(description="The token link id")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Return a linked token + + Return a linked token, with its status and metadata. + + :param id: The token link id (required) + :type id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_linked_token_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "TokenLinkDto", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_linked_token_serialize( + self, + id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/tokenization/tokens/{id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_linked_tokens( + self, + page_cursor: Annotated[Optional[StrictStr], Field(description="Page cursor to get the next page")] = None, + page_size: Annotated[Optional[Union[Annotated[float, Field(le=100, strict=True, ge=1)], Annotated[int, Field(le=100, strict=True, ge=1)]]], Field(description="Number of items per page, requesting more then max will return max items")] = None, + status: Annotated[Optional[Any], Field(description="A comma separated list of statuses to filter. Default is \"COMPLETED\"")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> TokensPaginatedResponse: + """List all linked tokens + + Return all linked tokens (paginated) + + :param page_cursor: Page cursor to get the next page + :type page_cursor: str + :param page_size: Number of items per page, requesting more then max will return max items + :type page_size: float + :param status: A comma separated list of statuses to filter. Default is \"COMPLETED\" + :type status: object + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_linked_tokens_serialize( + page_cursor=page_cursor, + page_size=page_size, + status=status, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "TokensPaginatedResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_linked_tokens_with_http_info( + self, + page_cursor: Annotated[Optional[StrictStr], Field(description="Page cursor to get the next page")] = None, + page_size: Annotated[Optional[Union[Annotated[float, Field(le=100, strict=True, ge=1)], Annotated[int, Field(le=100, strict=True, ge=1)]]], Field(description="Number of items per page, requesting more then max will return max items")] = None, + status: Annotated[Optional[Any], Field(description="A comma separated list of statuses to filter. Default is \"COMPLETED\"")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[TokensPaginatedResponse]: + """List all linked tokens + + Return all linked tokens (paginated) + + :param page_cursor: Page cursor to get the next page + :type page_cursor: str + :param page_size: Number of items per page, requesting more then max will return max items + :type page_size: float + :param status: A comma separated list of statuses to filter. Default is \"COMPLETED\" + :type status: object + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_linked_tokens_serialize( + page_cursor=page_cursor, + page_size=page_size, + status=status, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "TokensPaginatedResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_linked_tokens_without_preload_content( + self, + page_cursor: Annotated[Optional[StrictStr], Field(description="Page cursor to get the next page")] = None, + page_size: Annotated[Optional[Union[Annotated[float, Field(le=100, strict=True, ge=1)], Annotated[int, Field(le=100, strict=True, ge=1)]]], Field(description="Number of items per page, requesting more then max will return max items")] = None, + status: Annotated[Optional[Any], Field(description="A comma separated list of statuses to filter. Default is \"COMPLETED\"")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List all linked tokens + + Return all linked tokens (paginated) + + :param page_cursor: Page cursor to get the next page + :type page_cursor: str + :param page_size: Number of items per page, requesting more then max will return max items + :type page_size: float + :param status: A comma separated list of statuses to filter. Default is \"COMPLETED\" + :type status: object + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_linked_tokens_serialize( + page_cursor=page_cursor, + page_size=page_size, + status=status, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "TokensPaginatedResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_linked_tokens_serialize( + self, + page_cursor, + page_size, + status, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if page_cursor is not None: + + _query_params.append(('pageCursor', page_cursor)) + + if page_size is not None: + + _query_params.append(('pageSize', page_size)) + + if status is not None: + + _query_params.append(('status', status)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/tokenization/tokens', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def issue_new_token( + self, + create_token_request_dto: CreateTokenRequestDto, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> TokenLinkDto: + """Issue a new token + + Facilitates the creation of a new token, supporting both EVM-based and Stellar/Ripple platforms. For EVM, it deploys the corresponding contract template to the blockchain and links the token to the workspace. For Stellar/Ripple, it links a newly created token directly to the workspace without deploying a contract. Returns the token link with status \"PENDING\" until the token is deployed or \"SUCCESS\" if no deployment is needed. + + :param create_token_request_dto: (required) + :type create_token_request_dto: CreateTokenRequestDto + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._issue_new_token_serialize( + create_token_request_dto=create_token_request_dto, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "TokenLinkDto", + '409': "AssetAlreadyExistHttpError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def issue_new_token_with_http_info( + self, + create_token_request_dto: CreateTokenRequestDto, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[TokenLinkDto]: + """Issue a new token + + Facilitates the creation of a new token, supporting both EVM-based and Stellar/Ripple platforms. For EVM, it deploys the corresponding contract template to the blockchain and links the token to the workspace. For Stellar/Ripple, it links a newly created token directly to the workspace without deploying a contract. Returns the token link with status \"PENDING\" until the token is deployed or \"SUCCESS\" if no deployment is needed. + + :param create_token_request_dto: (required) + :type create_token_request_dto: CreateTokenRequestDto + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._issue_new_token_serialize( + create_token_request_dto=create_token_request_dto, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "TokenLinkDto", + '409': "AssetAlreadyExistHttpError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def issue_new_token_without_preload_content( + self, + create_token_request_dto: CreateTokenRequestDto, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Issue a new token + + Facilitates the creation of a new token, supporting both EVM-based and Stellar/Ripple platforms. For EVM, it deploys the corresponding contract template to the blockchain and links the token to the workspace. For Stellar/Ripple, it links a newly created token directly to the workspace without deploying a contract. Returns the token link with status \"PENDING\" until the token is deployed or \"SUCCESS\" if no deployment is needed. + + :param create_token_request_dto: (required) + :type create_token_request_dto: CreateTokenRequestDto + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._issue_new_token_serialize( + create_token_request_dto=create_token_request_dto, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "TokenLinkDto", + '409': "AssetAlreadyExistHttpError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _issue_new_token_serialize( + self, + create_token_request_dto, + idempotency_key, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + if create_token_request_dto is not None: + _body_params = create_token_request_dto + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/tokenization/tokens', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def link( + self, + token_link_request_dto: TokenLinkRequestDto, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> TokenLinkDto: + """Link a token + + Link an already existing token (by assetId, collectionId or contractId as refId) to a workspace across EVM, Stellar, or Ripple platforms. The token will be linked to the workspace if it does not already exist. + + :param token_link_request_dto: (required) + :type token_link_request_dto: TokenLinkRequestDto + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._link_serialize( + token_link_request_dto=token_link_request_dto, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "TokenLinkDto", + '201': "TokenLinkDto", + '404': "AssetDoesNotExistHttpError", + '409': "TokenLinkExistsHttpError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def link_with_http_info( + self, + token_link_request_dto: TokenLinkRequestDto, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[TokenLinkDto]: + """Link a token + + Link an already existing token (by assetId, collectionId or contractId as refId) to a workspace across EVM, Stellar, or Ripple platforms. The token will be linked to the workspace if it does not already exist. + + :param token_link_request_dto: (required) + :type token_link_request_dto: TokenLinkRequestDto + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._link_serialize( + token_link_request_dto=token_link_request_dto, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "TokenLinkDto", + '201': "TokenLinkDto", + '404': "AssetDoesNotExistHttpError", + '409': "TokenLinkExistsHttpError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def link_without_preload_content( + self, + token_link_request_dto: TokenLinkRequestDto, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Link a token + + Link an already existing token (by assetId, collectionId or contractId as refId) to a workspace across EVM, Stellar, or Ripple platforms. The token will be linked to the workspace if it does not already exist. + + :param token_link_request_dto: (required) + :type token_link_request_dto: TokenLinkRequestDto + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._link_serialize( + token_link_request_dto=token_link_request_dto, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "TokenLinkDto", + '201': "TokenLinkDto", + '404': "AssetDoesNotExistHttpError", + '409': "TokenLinkExistsHttpError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _link_serialize( + self, + token_link_request_dto, + idempotency_key, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + if token_link_request_dto is not None: + _body_params = token_link_request_dto + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/tokenization/tokens/link', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def unlink( + self, + id: Annotated[StrictStr, Field(description="The token link id")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> None: + """Unlink a token + + Unlink a token. The token will be unlinked from the workspace. The token will not be deleted on chain nor the refId, only the link to the workspace will be removed. + + :param id: The token link id (required) + :type id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._unlink_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': None, + '204': None, + '404': "NotFoundException", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def unlink_with_http_info( + self, + id: Annotated[StrictStr, Field(description="The token link id")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[None]: + """Unlink a token + + Unlink a token. The token will be unlinked from the workspace. The token will not be deleted on chain nor the refId, only the link to the workspace will be removed. + + :param id: The token link id (required) + :type id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._unlink_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': None, + '204': None, + '404': "NotFoundException", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def unlink_without_preload_content( + self, + id: Annotated[StrictStr, Field(description="The token link id")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Unlink a token + + Unlink a token. The token will be unlinked from the workspace. The token will not be deleted on chain nor the refId, only the link to the workspace will be removed. + + :param id: The token link id (required) + :type id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._unlink_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': None, + '204': None, + '404': "NotFoundException", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _unlink_serialize( + self, + id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/tokenization/tokens/{id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/fireblocks_client/api/transactions_api.py b/fireblocks_client/api/transactions_api.py new file mode 100644 index 00000000..a58ab3eb --- /dev/null +++ b/fireblocks_client/api/transactions_api.py @@ -0,0 +1,3941 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from pydantic import Field, StrictStr, field_validator +from typing import Optional +from typing_extensions import Annotated +from fireblocks_client.models.cancel_transaction_response import CancelTransactionResponse +from fireblocks_client.models.create_transaction_response import CreateTransactionResponse +from fireblocks_client.models.drop_transaction_request import DropTransactionRequest +from fireblocks_client.models.drop_transaction_response import DropTransactionResponse +from fireblocks_client.models.estimated_network_fee_response import EstimatedNetworkFeeResponse +from fireblocks_client.models.estimated_transaction_fee_response import EstimatedTransactionFeeResponse +from fireblocks_client.models.freeze_transaction_response import FreezeTransactionResponse +from fireblocks_client.models.set_confirmations_threshold_request import SetConfirmationsThresholdRequest +from fireblocks_client.models.set_confirmations_threshold_response import SetConfirmationsThresholdResponse +from fireblocks_client.models.transaction_request import TransactionRequest +from fireblocks_client.models.transaction_response import TransactionResponse +from fireblocks_client.models.unfreeze_transaction_response import UnfreezeTransactionResponse +from fireblocks_client.models.validate_address_response import ValidateAddressResponse + +from fireblocks_client.api_client import ApiClient, RequestSerialized +from fireblocks_client.api_response import ApiResponse +from fireblocks_client.rest import RESTResponseType + + +class TransactionsApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def cancel_transaction( + self, + tx_id: Annotated[StrictStr, Field(description="The ID of the transaction to cancel")], + x_end_user_wallet_id: Annotated[Optional[StrictStr], Field(description="Unique ID of the End-User wallet to the API request. Required for end-user wallet operations.")] = None, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> CancelTransactionResponse: + """Cancel a transaction + + Cancels a transaction by ID. + + :param tx_id: The ID of the transaction to cancel (required) + :type tx_id: str + :param x_end_user_wallet_id: Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. + :type x_end_user_wallet_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._cancel_transaction_serialize( + tx_id=tx_id, + x_end_user_wallet_id=x_end_user_wallet_id, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "CancelTransactionResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def cancel_transaction_with_http_info( + self, + tx_id: Annotated[StrictStr, Field(description="The ID of the transaction to cancel")], + x_end_user_wallet_id: Annotated[Optional[StrictStr], Field(description="Unique ID of the End-User wallet to the API request. Required for end-user wallet operations.")] = None, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[CancelTransactionResponse]: + """Cancel a transaction + + Cancels a transaction by ID. + + :param tx_id: The ID of the transaction to cancel (required) + :type tx_id: str + :param x_end_user_wallet_id: Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. + :type x_end_user_wallet_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._cancel_transaction_serialize( + tx_id=tx_id, + x_end_user_wallet_id=x_end_user_wallet_id, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "CancelTransactionResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def cancel_transaction_without_preload_content( + self, + tx_id: Annotated[StrictStr, Field(description="The ID of the transaction to cancel")], + x_end_user_wallet_id: Annotated[Optional[StrictStr], Field(description="Unique ID of the End-User wallet to the API request. Required for end-user wallet operations.")] = None, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Cancel a transaction + + Cancels a transaction by ID. + + :param tx_id: The ID of the transaction to cancel (required) + :type tx_id: str + :param x_end_user_wallet_id: Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. + :type x_end_user_wallet_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._cancel_transaction_serialize( + tx_id=tx_id, + x_end_user_wallet_id=x_end_user_wallet_id, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "CancelTransactionResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _cancel_transaction_serialize( + self, + tx_id, + x_end_user_wallet_id, + idempotency_key, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if tx_id is not None: + _path_params['txId'] = tx_id + # process the query parameters + # process the header parameters + if x_end_user_wallet_id is not None: + _header_params['X-End-User-Wallet-Id'] = x_end_user_wallet_id + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/transactions/{txId}/cancel', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def create_transaction( + self, + x_end_user_wallet_id: Annotated[Optional[StrictStr], Field(description="Unique ID of the End-User wallet to the API request. Required for end-user wallet operations.")] = None, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + transaction_request: Optional[TransactionRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> CreateTransactionResponse: + """Create a new transaction + + Creates a new transaction. + + :param x_end_user_wallet_id: Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. + :type x_end_user_wallet_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: str + :param transaction_request: + :type transaction_request: TransactionRequest + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_transaction_serialize( + x_end_user_wallet_id=x_end_user_wallet_id, + idempotency_key=idempotency_key, + transaction_request=transaction_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "CreateTransactionResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def create_transaction_with_http_info( + self, + x_end_user_wallet_id: Annotated[Optional[StrictStr], Field(description="Unique ID of the End-User wallet to the API request. Required for end-user wallet operations.")] = None, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + transaction_request: Optional[TransactionRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[CreateTransactionResponse]: + """Create a new transaction + + Creates a new transaction. + + :param x_end_user_wallet_id: Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. + :type x_end_user_wallet_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: str + :param transaction_request: + :type transaction_request: TransactionRequest + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_transaction_serialize( + x_end_user_wallet_id=x_end_user_wallet_id, + idempotency_key=idempotency_key, + transaction_request=transaction_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "CreateTransactionResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def create_transaction_without_preload_content( + self, + x_end_user_wallet_id: Annotated[Optional[StrictStr], Field(description="Unique ID of the End-User wallet to the API request. Required for end-user wallet operations.")] = None, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + transaction_request: Optional[TransactionRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Create a new transaction + + Creates a new transaction. + + :param x_end_user_wallet_id: Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. + :type x_end_user_wallet_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: str + :param transaction_request: + :type transaction_request: TransactionRequest + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_transaction_serialize( + x_end_user_wallet_id=x_end_user_wallet_id, + idempotency_key=idempotency_key, + transaction_request=transaction_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "CreateTransactionResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _create_transaction_serialize( + self, + x_end_user_wallet_id, + idempotency_key, + transaction_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + if x_end_user_wallet_id is not None: + _header_params['X-End-User-Wallet-Id'] = x_end_user_wallet_id + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + if transaction_request is not None: + _body_params = transaction_request + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/transactions', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def drop_transaction( + self, + tx_id: Annotated[StrictStr, Field(description="The ID of the transaction")], + x_end_user_wallet_id: Annotated[Optional[StrictStr], Field(description="Unique ID of the End-User wallet to the API request. Required for end-user wallet operations.")] = None, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + drop_transaction_request: Optional[DropTransactionRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> DropTransactionResponse: + """Drop ETH transaction by ID + + Drops a stuck ETH transaction and creates a replacement transaction. + + :param tx_id: The ID of the transaction (required) + :type tx_id: str + :param x_end_user_wallet_id: Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. + :type x_end_user_wallet_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: str + :param drop_transaction_request: + :type drop_transaction_request: DropTransactionRequest + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._drop_transaction_serialize( + tx_id=tx_id, + x_end_user_wallet_id=x_end_user_wallet_id, + idempotency_key=idempotency_key, + drop_transaction_request=drop_transaction_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DropTransactionResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def drop_transaction_with_http_info( + self, + tx_id: Annotated[StrictStr, Field(description="The ID of the transaction")], + x_end_user_wallet_id: Annotated[Optional[StrictStr], Field(description="Unique ID of the End-User wallet to the API request. Required for end-user wallet operations.")] = None, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + drop_transaction_request: Optional[DropTransactionRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[DropTransactionResponse]: + """Drop ETH transaction by ID + + Drops a stuck ETH transaction and creates a replacement transaction. + + :param tx_id: The ID of the transaction (required) + :type tx_id: str + :param x_end_user_wallet_id: Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. + :type x_end_user_wallet_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: str + :param drop_transaction_request: + :type drop_transaction_request: DropTransactionRequest + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._drop_transaction_serialize( + tx_id=tx_id, + x_end_user_wallet_id=x_end_user_wallet_id, + idempotency_key=idempotency_key, + drop_transaction_request=drop_transaction_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DropTransactionResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def drop_transaction_without_preload_content( + self, + tx_id: Annotated[StrictStr, Field(description="The ID of the transaction")], + x_end_user_wallet_id: Annotated[Optional[StrictStr], Field(description="Unique ID of the End-User wallet to the API request. Required for end-user wallet operations.")] = None, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + drop_transaction_request: Optional[DropTransactionRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Drop ETH transaction by ID + + Drops a stuck ETH transaction and creates a replacement transaction. + + :param tx_id: The ID of the transaction (required) + :type tx_id: str + :param x_end_user_wallet_id: Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. + :type x_end_user_wallet_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: str + :param drop_transaction_request: + :type drop_transaction_request: DropTransactionRequest + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._drop_transaction_serialize( + tx_id=tx_id, + x_end_user_wallet_id=x_end_user_wallet_id, + idempotency_key=idempotency_key, + drop_transaction_request=drop_transaction_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DropTransactionResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _drop_transaction_serialize( + self, + tx_id, + x_end_user_wallet_id, + idempotency_key, + drop_transaction_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if tx_id is not None: + _path_params['txId'] = tx_id + # process the query parameters + # process the header parameters + if x_end_user_wallet_id is not None: + _header_params['X-End-User-Wallet-Id'] = x_end_user_wallet_id + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + if drop_transaction_request is not None: + _body_params = drop_transaction_request + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/transactions/{txId}/drop', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def estimate_network_fee( + self, + asset_id: Annotated[StrictStr, Field(description="The asset for which to estimate the fee")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> EstimatedNetworkFeeResponse: + """Estimate the required fee for an asset + + Gets the estimated required fee for an asset. For UTXO based assets, the response will contain the suggested fee per byte, for ETH/ETC based assets, the suggested gas price, and for XRP/XLM, the transaction fee. + + :param asset_id: The asset for which to estimate the fee (required) + :type asset_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._estimate_network_fee_serialize( + asset_id=asset_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "EstimatedNetworkFeeResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def estimate_network_fee_with_http_info( + self, + asset_id: Annotated[StrictStr, Field(description="The asset for which to estimate the fee")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[EstimatedNetworkFeeResponse]: + """Estimate the required fee for an asset + + Gets the estimated required fee for an asset. For UTXO based assets, the response will contain the suggested fee per byte, for ETH/ETC based assets, the suggested gas price, and for XRP/XLM, the transaction fee. + + :param asset_id: The asset for which to estimate the fee (required) + :type asset_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._estimate_network_fee_serialize( + asset_id=asset_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "EstimatedNetworkFeeResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def estimate_network_fee_without_preload_content( + self, + asset_id: Annotated[StrictStr, Field(description="The asset for which to estimate the fee")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Estimate the required fee for an asset + + Gets the estimated required fee for an asset. For UTXO based assets, the response will contain the suggested fee per byte, for ETH/ETC based assets, the suggested gas price, and for XRP/XLM, the transaction fee. + + :param asset_id: The asset for which to estimate the fee (required) + :type asset_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._estimate_network_fee_serialize( + asset_id=asset_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "EstimatedNetworkFeeResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _estimate_network_fee_serialize( + self, + asset_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if asset_id is not None: + + _query_params.append(('assetId', asset_id)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/estimate_network_fee', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def estimate_transaction_fee( + self, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + transaction_request: Optional[TransactionRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> EstimatedTransactionFeeResponse: + """Estimate transaction fee + + Estimates the transaction fee for a transaction request. * Note: Supports all Fireblocks assets except ZCash (ZEC). + + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: str + :param transaction_request: + :type transaction_request: TransactionRequest + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._estimate_transaction_fee_serialize( + idempotency_key=idempotency_key, + transaction_request=transaction_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "EstimatedTransactionFeeResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def estimate_transaction_fee_with_http_info( + self, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + transaction_request: Optional[TransactionRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[EstimatedTransactionFeeResponse]: + """Estimate transaction fee + + Estimates the transaction fee for a transaction request. * Note: Supports all Fireblocks assets except ZCash (ZEC). + + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: str + :param transaction_request: + :type transaction_request: TransactionRequest + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._estimate_transaction_fee_serialize( + idempotency_key=idempotency_key, + transaction_request=transaction_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "EstimatedTransactionFeeResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def estimate_transaction_fee_without_preload_content( + self, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + transaction_request: Optional[TransactionRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Estimate transaction fee + + Estimates the transaction fee for a transaction request. * Note: Supports all Fireblocks assets except ZCash (ZEC). + + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: str + :param transaction_request: + :type transaction_request: TransactionRequest + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._estimate_transaction_fee_serialize( + idempotency_key=idempotency_key, + transaction_request=transaction_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "EstimatedTransactionFeeResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _estimate_transaction_fee_serialize( + self, + idempotency_key, + transaction_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + if transaction_request is not None: + _body_params = transaction_request + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/transactions/estimate_fee', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def freeze_transaction( + self, + tx_id: Annotated[StrictStr, Field(description="The ID of the transaction to freeze")], + x_end_user_wallet_id: Annotated[Optional[StrictStr], Field(description="Unique ID of the End-User wallet to the API request. Required for end-user wallet operations.")] = None, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> FreezeTransactionResponse: + """Freeze a transaction + + Freezes a transaction by ID. + + :param tx_id: The ID of the transaction to freeze (required) + :type tx_id: str + :param x_end_user_wallet_id: Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. + :type x_end_user_wallet_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._freeze_transaction_serialize( + tx_id=tx_id, + x_end_user_wallet_id=x_end_user_wallet_id, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "FreezeTransactionResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def freeze_transaction_with_http_info( + self, + tx_id: Annotated[StrictStr, Field(description="The ID of the transaction to freeze")], + x_end_user_wallet_id: Annotated[Optional[StrictStr], Field(description="Unique ID of the End-User wallet to the API request. Required for end-user wallet operations.")] = None, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[FreezeTransactionResponse]: + """Freeze a transaction + + Freezes a transaction by ID. + + :param tx_id: The ID of the transaction to freeze (required) + :type tx_id: str + :param x_end_user_wallet_id: Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. + :type x_end_user_wallet_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._freeze_transaction_serialize( + tx_id=tx_id, + x_end_user_wallet_id=x_end_user_wallet_id, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "FreezeTransactionResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def freeze_transaction_without_preload_content( + self, + tx_id: Annotated[StrictStr, Field(description="The ID of the transaction to freeze")], + x_end_user_wallet_id: Annotated[Optional[StrictStr], Field(description="Unique ID of the End-User wallet to the API request. Required for end-user wallet operations.")] = None, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Freeze a transaction + + Freezes a transaction by ID. + + :param tx_id: The ID of the transaction to freeze (required) + :type tx_id: str + :param x_end_user_wallet_id: Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. + :type x_end_user_wallet_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._freeze_transaction_serialize( + tx_id=tx_id, + x_end_user_wallet_id=x_end_user_wallet_id, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "FreezeTransactionResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _freeze_transaction_serialize( + self, + tx_id, + x_end_user_wallet_id, + idempotency_key, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if tx_id is not None: + _path_params['txId'] = tx_id + # process the query parameters + # process the header parameters + if x_end_user_wallet_id is not None: + _header_params['X-End-User-Wallet-Id'] = x_end_user_wallet_id + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/transactions/{txId}/freeze', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_transaction( + self, + tx_id: Annotated[StrictStr, Field(description="The ID of the transaction to return")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> TransactionResponse: + """Find a specific transaction by Fireblocks transaction ID + + Returns a transaction by ID. + + :param tx_id: The ID of the transaction to return (required) + :type tx_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_transaction_serialize( + tx_id=tx_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "TransactionResponse", + '400': "ErrorSchema", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_transaction_with_http_info( + self, + tx_id: Annotated[StrictStr, Field(description="The ID of the transaction to return")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[TransactionResponse]: + """Find a specific transaction by Fireblocks transaction ID + + Returns a transaction by ID. + + :param tx_id: The ID of the transaction to return (required) + :type tx_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_transaction_serialize( + tx_id=tx_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "TransactionResponse", + '400': "ErrorSchema", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_transaction_without_preload_content( + self, + tx_id: Annotated[StrictStr, Field(description="The ID of the transaction to return")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Find a specific transaction by Fireblocks transaction ID + + Returns a transaction by ID. + + :param tx_id: The ID of the transaction to return (required) + :type tx_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_transaction_serialize( + tx_id=tx_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "TransactionResponse", + '400': "ErrorSchema", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_transaction_serialize( + self, + tx_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if tx_id is not None: + _path_params['txId'] = tx_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/transactions/{txId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_transaction_by_external_id( + self, + external_tx_id: Annotated[StrictStr, Field(description="The external ID of the transaction to return")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> TransactionResponse: + """Find a specific transaction by external transaction ID + + Returns transaction by external transaction ID. + + :param external_tx_id: The external ID of the transaction to return (required) + :type external_tx_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_transaction_by_external_id_serialize( + external_tx_id=external_tx_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "TransactionResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_transaction_by_external_id_with_http_info( + self, + external_tx_id: Annotated[StrictStr, Field(description="The external ID of the transaction to return")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[TransactionResponse]: + """Find a specific transaction by external transaction ID + + Returns transaction by external transaction ID. + + :param external_tx_id: The external ID of the transaction to return (required) + :type external_tx_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_transaction_by_external_id_serialize( + external_tx_id=external_tx_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "TransactionResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_transaction_by_external_id_without_preload_content( + self, + external_tx_id: Annotated[StrictStr, Field(description="The external ID of the transaction to return")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Find a specific transaction by external transaction ID + + Returns transaction by external transaction ID. + + :param external_tx_id: The external ID of the transaction to return (required) + :type external_tx_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_transaction_by_external_id_serialize( + external_tx_id=external_tx_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "TransactionResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_transaction_by_external_id_serialize( + self, + external_tx_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if external_tx_id is not None: + _path_params['externalTxId'] = external_tx_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/transactions/external_tx_id/{externalTxId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_transactions( + self, + before: Annotated[Optional[StrictStr], Field(description="Unix timestamp in milliseconds. Returns only transactions created before the specified date")] = None, + after: Annotated[Optional[StrictStr], Field(description="Unix timestamp in milliseconds. Returns only transactions created after the specified date")] = None, + status: Annotated[Optional[StrictStr], Field(description="You can filter by one of the statuses.")] = None, + order_by: Annotated[Optional[StrictStr], Field(description="The field to order the results by **Note**: Ordering by a field that is not createdAt may result with transactions that receive updates as you request the next or previous pages of results, resulting with missing those transactions.")] = None, + sort: Annotated[Optional[StrictStr], Field(description="The direction to order the results by")] = None, + limit: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Limits the number of results. If not provided, a limit of 200 will be used. The maximum allowed limit is 500")] = None, + source_type: Annotated[Optional[StrictStr], Field(description="The source type of the transaction")] = None, + source_id: Annotated[Optional[StrictStr], Field(description="The source ID of the transaction")] = None, + dest_type: Annotated[Optional[StrictStr], Field(description="The destination type of the transaction")] = None, + dest_id: Annotated[Optional[StrictStr], Field(description="The destination ID of the transaction")] = None, + assets: Annotated[Optional[StrictStr], Field(description="A list of assets to filter by, seperated by commas")] = None, + tx_hash: Annotated[Optional[StrictStr], Field(description="Returns only results with a specified txHash")] = None, + source_wallet_id: Annotated[Optional[StrictStr], Field(description="Returns only results where the source is a specific end user wallet")] = None, + dest_wallet_id: Annotated[Optional[StrictStr], Field(description="Returns only results where the destination is a specific end user wallet")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> List[TransactionResponse]: + """List transaction history + + Lists the transaction history for your workspace. + + :param before: Unix timestamp in milliseconds. Returns only transactions created before the specified date + :type before: str + :param after: Unix timestamp in milliseconds. Returns only transactions created after the specified date + :type after: str + :param status: You can filter by one of the statuses. + :type status: str + :param order_by: The field to order the results by **Note**: Ordering by a field that is not createdAt may result with transactions that receive updates as you request the next or previous pages of results, resulting with missing those transactions. + :type order_by: str + :param sort: The direction to order the results by + :type sort: str + :param limit: Limits the number of results. If not provided, a limit of 200 will be used. The maximum allowed limit is 500 + :type limit: int + :param source_type: The source type of the transaction + :type source_type: str + :param source_id: The source ID of the transaction + :type source_id: str + :param dest_type: The destination type of the transaction + :type dest_type: str + :param dest_id: The destination ID of the transaction + :type dest_id: str + :param assets: A list of assets to filter by, seperated by commas + :type assets: str + :param tx_hash: Returns only results with a specified txHash + :type tx_hash: str + :param source_wallet_id: Returns only results where the source is a specific end user wallet + :type source_wallet_id: str + :param dest_wallet_id: Returns only results where the destination is a specific end user wallet + :type dest_wallet_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_transactions_serialize( + before=before, + after=after, + status=status, + order_by=order_by, + sort=sort, + limit=limit, + source_type=source_type, + source_id=source_id, + dest_type=dest_type, + dest_id=dest_id, + assets=assets, + tx_hash=tx_hash, + source_wallet_id=source_wallet_id, + dest_wallet_id=dest_wallet_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[TransactionResponse]", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_transactions_with_http_info( + self, + before: Annotated[Optional[StrictStr], Field(description="Unix timestamp in milliseconds. Returns only transactions created before the specified date")] = None, + after: Annotated[Optional[StrictStr], Field(description="Unix timestamp in milliseconds. Returns only transactions created after the specified date")] = None, + status: Annotated[Optional[StrictStr], Field(description="You can filter by one of the statuses.")] = None, + order_by: Annotated[Optional[StrictStr], Field(description="The field to order the results by **Note**: Ordering by a field that is not createdAt may result with transactions that receive updates as you request the next or previous pages of results, resulting with missing those transactions.")] = None, + sort: Annotated[Optional[StrictStr], Field(description="The direction to order the results by")] = None, + limit: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Limits the number of results. If not provided, a limit of 200 will be used. The maximum allowed limit is 500")] = None, + source_type: Annotated[Optional[StrictStr], Field(description="The source type of the transaction")] = None, + source_id: Annotated[Optional[StrictStr], Field(description="The source ID of the transaction")] = None, + dest_type: Annotated[Optional[StrictStr], Field(description="The destination type of the transaction")] = None, + dest_id: Annotated[Optional[StrictStr], Field(description="The destination ID of the transaction")] = None, + assets: Annotated[Optional[StrictStr], Field(description="A list of assets to filter by, seperated by commas")] = None, + tx_hash: Annotated[Optional[StrictStr], Field(description="Returns only results with a specified txHash")] = None, + source_wallet_id: Annotated[Optional[StrictStr], Field(description="Returns only results where the source is a specific end user wallet")] = None, + dest_wallet_id: Annotated[Optional[StrictStr], Field(description="Returns only results where the destination is a specific end user wallet")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[List[TransactionResponse]]: + """List transaction history + + Lists the transaction history for your workspace. + + :param before: Unix timestamp in milliseconds. Returns only transactions created before the specified date + :type before: str + :param after: Unix timestamp in milliseconds. Returns only transactions created after the specified date + :type after: str + :param status: You can filter by one of the statuses. + :type status: str + :param order_by: The field to order the results by **Note**: Ordering by a field that is not createdAt may result with transactions that receive updates as you request the next or previous pages of results, resulting with missing those transactions. + :type order_by: str + :param sort: The direction to order the results by + :type sort: str + :param limit: Limits the number of results. If not provided, a limit of 200 will be used. The maximum allowed limit is 500 + :type limit: int + :param source_type: The source type of the transaction + :type source_type: str + :param source_id: The source ID of the transaction + :type source_id: str + :param dest_type: The destination type of the transaction + :type dest_type: str + :param dest_id: The destination ID of the transaction + :type dest_id: str + :param assets: A list of assets to filter by, seperated by commas + :type assets: str + :param tx_hash: Returns only results with a specified txHash + :type tx_hash: str + :param source_wallet_id: Returns only results where the source is a specific end user wallet + :type source_wallet_id: str + :param dest_wallet_id: Returns only results where the destination is a specific end user wallet + :type dest_wallet_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_transactions_serialize( + before=before, + after=after, + status=status, + order_by=order_by, + sort=sort, + limit=limit, + source_type=source_type, + source_id=source_id, + dest_type=dest_type, + dest_id=dest_id, + assets=assets, + tx_hash=tx_hash, + source_wallet_id=source_wallet_id, + dest_wallet_id=dest_wallet_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[TransactionResponse]", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_transactions_without_preload_content( + self, + before: Annotated[Optional[StrictStr], Field(description="Unix timestamp in milliseconds. Returns only transactions created before the specified date")] = None, + after: Annotated[Optional[StrictStr], Field(description="Unix timestamp in milliseconds. Returns only transactions created after the specified date")] = None, + status: Annotated[Optional[StrictStr], Field(description="You can filter by one of the statuses.")] = None, + order_by: Annotated[Optional[StrictStr], Field(description="The field to order the results by **Note**: Ordering by a field that is not createdAt may result with transactions that receive updates as you request the next or previous pages of results, resulting with missing those transactions.")] = None, + sort: Annotated[Optional[StrictStr], Field(description="The direction to order the results by")] = None, + limit: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Limits the number of results. If not provided, a limit of 200 will be used. The maximum allowed limit is 500")] = None, + source_type: Annotated[Optional[StrictStr], Field(description="The source type of the transaction")] = None, + source_id: Annotated[Optional[StrictStr], Field(description="The source ID of the transaction")] = None, + dest_type: Annotated[Optional[StrictStr], Field(description="The destination type of the transaction")] = None, + dest_id: Annotated[Optional[StrictStr], Field(description="The destination ID of the transaction")] = None, + assets: Annotated[Optional[StrictStr], Field(description="A list of assets to filter by, seperated by commas")] = None, + tx_hash: Annotated[Optional[StrictStr], Field(description="Returns only results with a specified txHash")] = None, + source_wallet_id: Annotated[Optional[StrictStr], Field(description="Returns only results where the source is a specific end user wallet")] = None, + dest_wallet_id: Annotated[Optional[StrictStr], Field(description="Returns only results where the destination is a specific end user wallet")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List transaction history + + Lists the transaction history for your workspace. + + :param before: Unix timestamp in milliseconds. Returns only transactions created before the specified date + :type before: str + :param after: Unix timestamp in milliseconds. Returns only transactions created after the specified date + :type after: str + :param status: You can filter by one of the statuses. + :type status: str + :param order_by: The field to order the results by **Note**: Ordering by a field that is not createdAt may result with transactions that receive updates as you request the next or previous pages of results, resulting with missing those transactions. + :type order_by: str + :param sort: The direction to order the results by + :type sort: str + :param limit: Limits the number of results. If not provided, a limit of 200 will be used. The maximum allowed limit is 500 + :type limit: int + :param source_type: The source type of the transaction + :type source_type: str + :param source_id: The source ID of the transaction + :type source_id: str + :param dest_type: The destination type of the transaction + :type dest_type: str + :param dest_id: The destination ID of the transaction + :type dest_id: str + :param assets: A list of assets to filter by, seperated by commas + :type assets: str + :param tx_hash: Returns only results with a specified txHash + :type tx_hash: str + :param source_wallet_id: Returns only results where the source is a specific end user wallet + :type source_wallet_id: str + :param dest_wallet_id: Returns only results where the destination is a specific end user wallet + :type dest_wallet_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_transactions_serialize( + before=before, + after=after, + status=status, + order_by=order_by, + sort=sort, + limit=limit, + source_type=source_type, + source_id=source_id, + dest_type=dest_type, + dest_id=dest_id, + assets=assets, + tx_hash=tx_hash, + source_wallet_id=source_wallet_id, + dest_wallet_id=dest_wallet_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[TransactionResponse]", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_transactions_serialize( + self, + before, + after, + status, + order_by, + sort, + limit, + source_type, + source_id, + dest_type, + dest_id, + assets, + tx_hash, + source_wallet_id, + dest_wallet_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if before is not None: + + _query_params.append(('before', before)) + + if after is not None: + + _query_params.append(('after', after)) + + if status is not None: + + _query_params.append(('status', status)) + + if order_by is not None: + + _query_params.append(('orderBy', order_by)) + + if sort is not None: + + _query_params.append(('sort', sort)) + + if limit is not None: + + _query_params.append(('limit', limit)) + + if source_type is not None: + + _query_params.append(('sourceType', source_type)) + + if source_id is not None: + + _query_params.append(('sourceId', source_id)) + + if dest_type is not None: + + _query_params.append(('destType', dest_type)) + + if dest_id is not None: + + _query_params.append(('destId', dest_id)) + + if assets is not None: + + _query_params.append(('assets', assets)) + + if tx_hash is not None: + + _query_params.append(('txHash', tx_hash)) + + if source_wallet_id is not None: + + _query_params.append(('sourceWalletId', source_wallet_id)) + + if dest_wallet_id is not None: + + _query_params.append(('destWalletId', dest_wallet_id)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/transactions', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def set_confirmation_threshold_by_transaction_hash( + self, + tx_hash: Annotated[StrictStr, Field(description="The TxHash")], + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + set_confirmations_threshold_request: Optional[SetConfirmationsThresholdRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SetConfirmationsThresholdResponse: + """Set confirmation threshold by transaction hash + + Overrides the required number of confirmations for transaction completion by transaction hash. + + :param tx_hash: The TxHash (required) + :type tx_hash: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: str + :param set_confirmations_threshold_request: + :type set_confirmations_threshold_request: SetConfirmationsThresholdRequest + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._set_confirmation_threshold_by_transaction_hash_serialize( + tx_hash=tx_hash, + idempotency_key=idempotency_key, + set_confirmations_threshold_request=set_confirmations_threshold_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SetConfirmationsThresholdResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def set_confirmation_threshold_by_transaction_hash_with_http_info( + self, + tx_hash: Annotated[StrictStr, Field(description="The TxHash")], + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + set_confirmations_threshold_request: Optional[SetConfirmationsThresholdRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SetConfirmationsThresholdResponse]: + """Set confirmation threshold by transaction hash + + Overrides the required number of confirmations for transaction completion by transaction hash. + + :param tx_hash: The TxHash (required) + :type tx_hash: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: str + :param set_confirmations_threshold_request: + :type set_confirmations_threshold_request: SetConfirmationsThresholdRequest + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._set_confirmation_threshold_by_transaction_hash_serialize( + tx_hash=tx_hash, + idempotency_key=idempotency_key, + set_confirmations_threshold_request=set_confirmations_threshold_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SetConfirmationsThresholdResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def set_confirmation_threshold_by_transaction_hash_without_preload_content( + self, + tx_hash: Annotated[StrictStr, Field(description="The TxHash")], + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + set_confirmations_threshold_request: Optional[SetConfirmationsThresholdRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Set confirmation threshold by transaction hash + + Overrides the required number of confirmations for transaction completion by transaction hash. + + :param tx_hash: The TxHash (required) + :type tx_hash: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: str + :param set_confirmations_threshold_request: + :type set_confirmations_threshold_request: SetConfirmationsThresholdRequest + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._set_confirmation_threshold_by_transaction_hash_serialize( + tx_hash=tx_hash, + idempotency_key=idempotency_key, + set_confirmations_threshold_request=set_confirmations_threshold_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SetConfirmationsThresholdResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _set_confirmation_threshold_by_transaction_hash_serialize( + self, + tx_hash, + idempotency_key, + set_confirmations_threshold_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if tx_hash is not None: + _path_params['txHash'] = tx_hash + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + if set_confirmations_threshold_request is not None: + _body_params = set_confirmations_threshold_request + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/txHash/{txHash}/set_confirmation_threshold', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def set_transaction_confirmation_threshold( + self, + tx_id: Annotated[StrictStr, Field(description="The ID of the transaction")], + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + set_confirmations_threshold_request: Optional[SetConfirmationsThresholdRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SetConfirmationsThresholdResponse: + """Set confirmation threshold by transaction ID + + Overrides the required number of confirmations for transaction completion by transaction ID. + + :param tx_id: The ID of the transaction (required) + :type tx_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: str + :param set_confirmations_threshold_request: + :type set_confirmations_threshold_request: SetConfirmationsThresholdRequest + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._set_transaction_confirmation_threshold_serialize( + tx_id=tx_id, + idempotency_key=idempotency_key, + set_confirmations_threshold_request=set_confirmations_threshold_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SetConfirmationsThresholdResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def set_transaction_confirmation_threshold_with_http_info( + self, + tx_id: Annotated[StrictStr, Field(description="The ID of the transaction")], + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + set_confirmations_threshold_request: Optional[SetConfirmationsThresholdRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SetConfirmationsThresholdResponse]: + """Set confirmation threshold by transaction ID + + Overrides the required number of confirmations for transaction completion by transaction ID. + + :param tx_id: The ID of the transaction (required) + :type tx_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: str + :param set_confirmations_threshold_request: + :type set_confirmations_threshold_request: SetConfirmationsThresholdRequest + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._set_transaction_confirmation_threshold_serialize( + tx_id=tx_id, + idempotency_key=idempotency_key, + set_confirmations_threshold_request=set_confirmations_threshold_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SetConfirmationsThresholdResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def set_transaction_confirmation_threshold_without_preload_content( + self, + tx_id: Annotated[StrictStr, Field(description="The ID of the transaction")], + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + set_confirmations_threshold_request: Optional[SetConfirmationsThresholdRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Set confirmation threshold by transaction ID + + Overrides the required number of confirmations for transaction completion by transaction ID. + + :param tx_id: The ID of the transaction (required) + :type tx_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: str + :param set_confirmations_threshold_request: + :type set_confirmations_threshold_request: SetConfirmationsThresholdRequest + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._set_transaction_confirmation_threshold_serialize( + tx_id=tx_id, + idempotency_key=idempotency_key, + set_confirmations_threshold_request=set_confirmations_threshold_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SetConfirmationsThresholdResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _set_transaction_confirmation_threshold_serialize( + self, + tx_id, + idempotency_key, + set_confirmations_threshold_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if tx_id is not None: + _path_params['txId'] = tx_id + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + if set_confirmations_threshold_request is not None: + _body_params = set_confirmations_threshold_request + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/transactions/{txId}/set_confirmation_threshold', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def unfreeze_transaction( + self, + tx_id: Annotated[StrictStr, Field(description="The ID of the transaction to unfreeze")], + x_end_user_wallet_id: Annotated[Optional[StrictStr], Field(description="Unique ID of the End-User wallet to the API request. Required for end-user wallet operations.")] = None, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> UnfreezeTransactionResponse: + """Unfreeze a transaction + + Unfreezes a transaction by ID and makes the transaction available again. + + :param tx_id: The ID of the transaction to unfreeze (required) + :type tx_id: str + :param x_end_user_wallet_id: Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. + :type x_end_user_wallet_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._unfreeze_transaction_serialize( + tx_id=tx_id, + x_end_user_wallet_id=x_end_user_wallet_id, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "UnfreezeTransactionResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def unfreeze_transaction_with_http_info( + self, + tx_id: Annotated[StrictStr, Field(description="The ID of the transaction to unfreeze")], + x_end_user_wallet_id: Annotated[Optional[StrictStr], Field(description="Unique ID of the End-User wallet to the API request. Required for end-user wallet operations.")] = None, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[UnfreezeTransactionResponse]: + """Unfreeze a transaction + + Unfreezes a transaction by ID and makes the transaction available again. + + :param tx_id: The ID of the transaction to unfreeze (required) + :type tx_id: str + :param x_end_user_wallet_id: Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. + :type x_end_user_wallet_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._unfreeze_transaction_serialize( + tx_id=tx_id, + x_end_user_wallet_id=x_end_user_wallet_id, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "UnfreezeTransactionResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def unfreeze_transaction_without_preload_content( + self, + tx_id: Annotated[StrictStr, Field(description="The ID of the transaction to unfreeze")], + x_end_user_wallet_id: Annotated[Optional[StrictStr], Field(description="Unique ID of the End-User wallet to the API request. Required for end-user wallet operations.")] = None, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Unfreeze a transaction + + Unfreezes a transaction by ID and makes the transaction available again. + + :param tx_id: The ID of the transaction to unfreeze (required) + :type tx_id: str + :param x_end_user_wallet_id: Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. + :type x_end_user_wallet_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._unfreeze_transaction_serialize( + tx_id=tx_id, + x_end_user_wallet_id=x_end_user_wallet_id, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "UnfreezeTransactionResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _unfreeze_transaction_serialize( + self, + tx_id, + x_end_user_wallet_id, + idempotency_key, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if tx_id is not None: + _path_params['txId'] = tx_id + # process the query parameters + # process the header parameters + if x_end_user_wallet_id is not None: + _header_params['X-End-User-Wallet-Id'] = x_end_user_wallet_id + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/transactions/{txId}/unfreeze', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def validate_address( + self, + asset_id: Annotated[StrictStr, Field(description="The asset of the address")], + address: Annotated[StrictStr, Field(description="The address to validate")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ValidateAddressResponse: + """Validate destination address + + Checks if an address is valid (for XRP, DOT, XLM, and EOS). + + :param asset_id: The asset of the address (required) + :type asset_id: str + :param address: The address to validate (required) + :type address: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._validate_address_serialize( + asset_id=asset_id, + address=address, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ValidateAddressResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def validate_address_with_http_info( + self, + asset_id: Annotated[StrictStr, Field(description="The asset of the address")], + address: Annotated[StrictStr, Field(description="The address to validate")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ValidateAddressResponse]: + """Validate destination address + + Checks if an address is valid (for XRP, DOT, XLM, and EOS). + + :param asset_id: The asset of the address (required) + :type asset_id: str + :param address: The address to validate (required) + :type address: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._validate_address_serialize( + asset_id=asset_id, + address=address, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ValidateAddressResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def validate_address_without_preload_content( + self, + asset_id: Annotated[StrictStr, Field(description="The asset of the address")], + address: Annotated[StrictStr, Field(description="The address to validate")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Validate destination address + + Checks if an address is valid (for XRP, DOT, XLM, and EOS). + + :param asset_id: The asset of the address (required) + :type asset_id: str + :param address: The address to validate (required) + :type address: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._validate_address_serialize( + asset_id=asset_id, + address=address, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ValidateAddressResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _validate_address_serialize( + self, + asset_id, + address, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if asset_id is not None: + _path_params['assetId'] = asset_id + if address is not None: + _path_params['address'] = address + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/transactions/validate_address/{assetId}/{address}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/fireblocks_client/api/travel_rule_beta_api.py b/fireblocks_client/api/travel_rule_beta_api.py new file mode 100644 index 00000000..4b72f4db --- /dev/null +++ b/fireblocks_client/api/travel_rule_beta_api.py @@ -0,0 +1,1508 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from pydantic import Field, StrictFloat, StrictInt, StrictStr +from typing import Optional, Union +from typing_extensions import Annotated +from fireblocks_client.models.travel_rule_get_all_vasps_response import TravelRuleGetAllVASPsResponse +from fireblocks_client.models.travel_rule_update_vasp_details import TravelRuleUpdateVASPDetails +from fireblocks_client.models.travel_rule_vasp import TravelRuleVASP +from fireblocks_client.models.travel_rule_validate_full_transaction_request import TravelRuleValidateFullTransactionRequest +from fireblocks_client.models.travel_rule_validate_transaction_request import TravelRuleValidateTransactionRequest +from fireblocks_client.models.travel_rule_validate_transaction_response import TravelRuleValidateTransactionResponse + +from fireblocks_client.api_client import ApiClient, RequestSerialized +from fireblocks_client.api_response import ApiResponse +from fireblocks_client.rest import RESTResponseType + + +class TravelRuleBetaApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def get_vaspby_did( + self, + did: StrictStr, + fields: Annotated[Optional[StrictStr], Field(description="CSV of fields to return (all, \"blank\" or see list of all field names below)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> TravelRuleVASP: + """Get VASP details + + Get VASP Details. Returns information about a VASP that has the specified DID. **Note:** The reference content in this section documents the Travel Rule beta endpoint. The beta endpoint includes APIs that are currently in preview and aren't yet generally available. To enroll in the beta and enable this endpoint, contact your Fireblocks Customer Success Manager or send an email to [CSM@fireblocks.com](mailto:CSM@fireblocks.com). + + :param did: (required) + :type did: str + :param fields: CSV of fields to return (all, \"blank\" or see list of all field names below) + :type fields: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_vaspby_did_serialize( + did=did, + fields=fields, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "TravelRuleVASP", + '400': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_vaspby_did_with_http_info( + self, + did: StrictStr, + fields: Annotated[Optional[StrictStr], Field(description="CSV of fields to return (all, \"blank\" or see list of all field names below)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[TravelRuleVASP]: + """Get VASP details + + Get VASP Details. Returns information about a VASP that has the specified DID. **Note:** The reference content in this section documents the Travel Rule beta endpoint. The beta endpoint includes APIs that are currently in preview and aren't yet generally available. To enroll in the beta and enable this endpoint, contact your Fireblocks Customer Success Manager or send an email to [CSM@fireblocks.com](mailto:CSM@fireblocks.com). + + :param did: (required) + :type did: str + :param fields: CSV of fields to return (all, \"blank\" or see list of all field names below) + :type fields: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_vaspby_did_serialize( + did=did, + fields=fields, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "TravelRuleVASP", + '400': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_vaspby_did_without_preload_content( + self, + did: StrictStr, + fields: Annotated[Optional[StrictStr], Field(description="CSV of fields to return (all, \"blank\" or see list of all field names below)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get VASP details + + Get VASP Details. Returns information about a VASP that has the specified DID. **Note:** The reference content in this section documents the Travel Rule beta endpoint. The beta endpoint includes APIs that are currently in preview and aren't yet generally available. To enroll in the beta and enable this endpoint, contact your Fireblocks Customer Success Manager or send an email to [CSM@fireblocks.com](mailto:CSM@fireblocks.com). + + :param did: (required) + :type did: str + :param fields: CSV of fields to return (all, \"blank\" or see list of all field names below) + :type fields: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_vaspby_did_serialize( + did=did, + fields=fields, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "TravelRuleVASP", + '400': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_vaspby_did_serialize( + self, + did, + fields, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if did is not None: + _path_params['did'] = did + # process the query parameters + if fields is not None: + + _query_params.append(('fields', fields)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/screening/travel_rule/vasp/{did}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_vasps( + self, + order: Annotated[Optional[StrictStr], Field(description="Field to order by")] = None, + per_page: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Records per page")] = None, + page: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Page number")] = None, + fields: Annotated[Optional[StrictStr], Field(description="CSV of fields to return (all, \"blank\" or see list of all field names below)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> TravelRuleGetAllVASPsResponse: + """Get All VASPs + + Get All VASPs. Returns a list of VASPs. VASPs can be searched and sorted and results are paginated. **Note:** The reference content in this section documents the Travel Rule beta endpoint. The beta endpoint includes APIs that are currently in preview and aren't yet generally available. To enroll in the beta and enable this endpoint, contact your Fireblocks Customer Success Manager or send an email to [CSM@fireblocks.com](mailto:CSM@fireblocks.com). + + :param order: Field to order by + :type order: str + :param per_page: Records per page + :type per_page: float + :param page: Page number + :type page: float + :param fields: CSV of fields to return (all, \"blank\" or see list of all field names below) + :type fields: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_vasps_serialize( + order=order, + per_page=per_page, + page=page, + fields=fields, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "TravelRuleGetAllVASPsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_vasps_with_http_info( + self, + order: Annotated[Optional[StrictStr], Field(description="Field to order by")] = None, + per_page: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Records per page")] = None, + page: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Page number")] = None, + fields: Annotated[Optional[StrictStr], Field(description="CSV of fields to return (all, \"blank\" or see list of all field names below)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[TravelRuleGetAllVASPsResponse]: + """Get All VASPs + + Get All VASPs. Returns a list of VASPs. VASPs can be searched and sorted and results are paginated. **Note:** The reference content in this section documents the Travel Rule beta endpoint. The beta endpoint includes APIs that are currently in preview and aren't yet generally available. To enroll in the beta and enable this endpoint, contact your Fireblocks Customer Success Manager or send an email to [CSM@fireblocks.com](mailto:CSM@fireblocks.com). + + :param order: Field to order by + :type order: str + :param per_page: Records per page + :type per_page: float + :param page: Page number + :type page: float + :param fields: CSV of fields to return (all, \"blank\" or see list of all field names below) + :type fields: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_vasps_serialize( + order=order, + per_page=per_page, + page=page, + fields=fields, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "TravelRuleGetAllVASPsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_vasps_without_preload_content( + self, + order: Annotated[Optional[StrictStr], Field(description="Field to order by")] = None, + per_page: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Records per page")] = None, + page: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Page number")] = None, + fields: Annotated[Optional[StrictStr], Field(description="CSV of fields to return (all, \"blank\" or see list of all field names below)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get All VASPs + + Get All VASPs. Returns a list of VASPs. VASPs can be searched and sorted and results are paginated. **Note:** The reference content in this section documents the Travel Rule beta endpoint. The beta endpoint includes APIs that are currently in preview and aren't yet generally available. To enroll in the beta and enable this endpoint, contact your Fireblocks Customer Success Manager or send an email to [CSM@fireblocks.com](mailto:CSM@fireblocks.com). + + :param order: Field to order by + :type order: str + :param per_page: Records per page + :type per_page: float + :param page: Page number + :type page: float + :param fields: CSV of fields to return (all, \"blank\" or see list of all field names below) + :type fields: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_vasps_serialize( + order=order, + per_page=per_page, + page=page, + fields=fields, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "TravelRuleGetAllVASPsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_vasps_serialize( + self, + order, + per_page, + page, + fields, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if order is not None: + + _query_params.append(('order', order)) + + if per_page is not None: + + _query_params.append(('per_page', per_page)) + + if page is not None: + + _query_params.append(('page', page)) + + if fields is not None: + + _query_params.append(('fields', fields)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/screening/travel_rule/vasp', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def update_vasp( + self, + travel_rule_update_vasp_details: TravelRuleUpdateVASPDetails, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> TravelRuleUpdateVASPDetails: + """Add jsonDidKey to VASP details + + Update VASP Details. Updates a VASP with the provided parameters. Use this endpoint to add your public jsonDIDkey generated by Notabene. **Note:** The reference content in this section documents the Travel Rule beta endpoint. The beta endpoint includes APIs that are currently in preview and aren't yet generally available. To enroll in the beta and enable this endpoint, contact your Fireblocks Customer Success Manager or send an email to [CSM@fireblocks.com](mailto:CSM@fireblocks.com). + + :param travel_rule_update_vasp_details: (required) + :type travel_rule_update_vasp_details: TravelRuleUpdateVASPDetails + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_vasp_serialize( + travel_rule_update_vasp_details=travel_rule_update_vasp_details, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "TravelRuleUpdateVASPDetails", + '400': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def update_vasp_with_http_info( + self, + travel_rule_update_vasp_details: TravelRuleUpdateVASPDetails, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[TravelRuleUpdateVASPDetails]: + """Add jsonDidKey to VASP details + + Update VASP Details. Updates a VASP with the provided parameters. Use this endpoint to add your public jsonDIDkey generated by Notabene. **Note:** The reference content in this section documents the Travel Rule beta endpoint. The beta endpoint includes APIs that are currently in preview and aren't yet generally available. To enroll in the beta and enable this endpoint, contact your Fireblocks Customer Success Manager or send an email to [CSM@fireblocks.com](mailto:CSM@fireblocks.com). + + :param travel_rule_update_vasp_details: (required) + :type travel_rule_update_vasp_details: TravelRuleUpdateVASPDetails + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_vasp_serialize( + travel_rule_update_vasp_details=travel_rule_update_vasp_details, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "TravelRuleUpdateVASPDetails", + '400': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def update_vasp_without_preload_content( + self, + travel_rule_update_vasp_details: TravelRuleUpdateVASPDetails, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Add jsonDidKey to VASP details + + Update VASP Details. Updates a VASP with the provided parameters. Use this endpoint to add your public jsonDIDkey generated by Notabene. **Note:** The reference content in this section documents the Travel Rule beta endpoint. The beta endpoint includes APIs that are currently in preview and aren't yet generally available. To enroll in the beta and enable this endpoint, contact your Fireblocks Customer Success Manager or send an email to [CSM@fireblocks.com](mailto:CSM@fireblocks.com). + + :param travel_rule_update_vasp_details: (required) + :type travel_rule_update_vasp_details: TravelRuleUpdateVASPDetails + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_vasp_serialize( + travel_rule_update_vasp_details=travel_rule_update_vasp_details, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "TravelRuleUpdateVASPDetails", + '400': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _update_vasp_serialize( + self, + travel_rule_update_vasp_details, + idempotency_key, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + if travel_rule_update_vasp_details is not None: + _body_params = travel_rule_update_vasp_details + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/screening/travel_rule/vasp/update', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def validate_full_travel_rule_transaction( + self, + travel_rule_validate_full_transaction_request: TravelRuleValidateFullTransactionRequest, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> TravelRuleValidateTransactionResponse: + """Validate Full Travel Rule Transaction + + Validate Full Travel Rule transactions. Checks for all required information on the originator and beneficiary VASPs. **Note:** The reference content in this section documents the Travel Rule beta endpoint. The beta endpoint includes APIs that are currently in preview and aren't yet generally available. To enroll in the beta and enable this endpoint, contact your Fireblocks Customer Success Manager or send an email to [CSM@fireblocks.com](mailto:CSM@fireblocks.com). + + :param travel_rule_validate_full_transaction_request: (required) + :type travel_rule_validate_full_transaction_request: TravelRuleValidateFullTransactionRequest + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._validate_full_travel_rule_transaction_serialize( + travel_rule_validate_full_transaction_request=travel_rule_validate_full_transaction_request, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "TravelRuleValidateTransactionResponse", + '400': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def validate_full_travel_rule_transaction_with_http_info( + self, + travel_rule_validate_full_transaction_request: TravelRuleValidateFullTransactionRequest, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[TravelRuleValidateTransactionResponse]: + """Validate Full Travel Rule Transaction + + Validate Full Travel Rule transactions. Checks for all required information on the originator and beneficiary VASPs. **Note:** The reference content in this section documents the Travel Rule beta endpoint. The beta endpoint includes APIs that are currently in preview and aren't yet generally available. To enroll in the beta and enable this endpoint, contact your Fireblocks Customer Success Manager or send an email to [CSM@fireblocks.com](mailto:CSM@fireblocks.com). + + :param travel_rule_validate_full_transaction_request: (required) + :type travel_rule_validate_full_transaction_request: TravelRuleValidateFullTransactionRequest + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._validate_full_travel_rule_transaction_serialize( + travel_rule_validate_full_transaction_request=travel_rule_validate_full_transaction_request, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "TravelRuleValidateTransactionResponse", + '400': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def validate_full_travel_rule_transaction_without_preload_content( + self, + travel_rule_validate_full_transaction_request: TravelRuleValidateFullTransactionRequest, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Validate Full Travel Rule Transaction + + Validate Full Travel Rule transactions. Checks for all required information on the originator and beneficiary VASPs. **Note:** The reference content in this section documents the Travel Rule beta endpoint. The beta endpoint includes APIs that are currently in preview and aren't yet generally available. To enroll in the beta and enable this endpoint, contact your Fireblocks Customer Success Manager or send an email to [CSM@fireblocks.com](mailto:CSM@fireblocks.com). + + :param travel_rule_validate_full_transaction_request: (required) + :type travel_rule_validate_full_transaction_request: TravelRuleValidateFullTransactionRequest + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._validate_full_travel_rule_transaction_serialize( + travel_rule_validate_full_transaction_request=travel_rule_validate_full_transaction_request, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "TravelRuleValidateTransactionResponse", + '400': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _validate_full_travel_rule_transaction_serialize( + self, + travel_rule_validate_full_transaction_request, + idempotency_key, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + if travel_rule_validate_full_transaction_request is not None: + _body_params = travel_rule_validate_full_transaction_request + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/screening/travel_rule/transaction/validate/full', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def validate_travel_rule_transaction( + self, + travel_rule_validate_transaction_request: TravelRuleValidateTransactionRequest, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> TravelRuleValidateTransactionResponse: + """Validate Travel Rule Transaction + + Validate Travel Rule transactions. Checks what beneficiary VASP details are required by your jurisdiction and the beneficiary's jurisdiction. **Note:** The reference content in this section documents the Travel Rule beta endpoint. The beta endpoint includes APIs that are currently in preview and aren't yet generally available. To enroll in the beta and enable this endpoint, contact your Fireblocks Customer Success Manager or send an email to [CSM@fireblocks.com](mailto:CSM@fireblocks.com). + + :param travel_rule_validate_transaction_request: (required) + :type travel_rule_validate_transaction_request: TravelRuleValidateTransactionRequest + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._validate_travel_rule_transaction_serialize( + travel_rule_validate_transaction_request=travel_rule_validate_transaction_request, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "TravelRuleValidateTransactionResponse", + '400': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def validate_travel_rule_transaction_with_http_info( + self, + travel_rule_validate_transaction_request: TravelRuleValidateTransactionRequest, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[TravelRuleValidateTransactionResponse]: + """Validate Travel Rule Transaction + + Validate Travel Rule transactions. Checks what beneficiary VASP details are required by your jurisdiction and the beneficiary's jurisdiction. **Note:** The reference content in this section documents the Travel Rule beta endpoint. The beta endpoint includes APIs that are currently in preview and aren't yet generally available. To enroll in the beta and enable this endpoint, contact your Fireblocks Customer Success Manager or send an email to [CSM@fireblocks.com](mailto:CSM@fireblocks.com). + + :param travel_rule_validate_transaction_request: (required) + :type travel_rule_validate_transaction_request: TravelRuleValidateTransactionRequest + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._validate_travel_rule_transaction_serialize( + travel_rule_validate_transaction_request=travel_rule_validate_transaction_request, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "TravelRuleValidateTransactionResponse", + '400': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def validate_travel_rule_transaction_without_preload_content( + self, + travel_rule_validate_transaction_request: TravelRuleValidateTransactionRequest, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Validate Travel Rule Transaction + + Validate Travel Rule transactions. Checks what beneficiary VASP details are required by your jurisdiction and the beneficiary's jurisdiction. **Note:** The reference content in this section documents the Travel Rule beta endpoint. The beta endpoint includes APIs that are currently in preview and aren't yet generally available. To enroll in the beta and enable this endpoint, contact your Fireblocks Customer Success Manager or send an email to [CSM@fireblocks.com](mailto:CSM@fireblocks.com). + + :param travel_rule_validate_transaction_request: (required) + :type travel_rule_validate_transaction_request: TravelRuleValidateTransactionRequest + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._validate_travel_rule_transaction_serialize( + travel_rule_validate_transaction_request=travel_rule_validate_transaction_request, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "TravelRuleValidateTransactionResponse", + '400': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _validate_travel_rule_transaction_serialize( + self, + travel_rule_validate_transaction_request, + idempotency_key, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + if travel_rule_validate_transaction_request is not None: + _body_params = travel_rule_validate_transaction_request + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/screening/travel_rule/transaction/validate', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/fireblocks_client/api/user_groups_beta_api.py b/fireblocks_client/api/user_groups_beta_api.py new file mode 100644 index 00000000..5898841d --- /dev/null +++ b/fireblocks_client/api/user_groups_beta_api.py @@ -0,0 +1,1385 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from pydantic import Field, StrictStr +from typing import Optional +from typing_extensions import Annotated +from fireblocks_client.models.create_user_group_response import CreateUserGroupResponse +from fireblocks_client.models.user_group_create_request import UserGroupCreateRequest +from fireblocks_client.models.user_group_create_response import UserGroupCreateResponse +from fireblocks_client.models.user_group_response import UserGroupResponse +from fireblocks_client.models.user_group_update_request import UserGroupUpdateRequest + +from fireblocks_client.api_client import ApiClient, RequestSerialized +from fireblocks_client.api_response import ApiResponse +from fireblocks_client.rest import RESTResponseType + + +class UserGroupsBetaApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def create_user_group( + self, + user_group_create_request: UserGroupCreateRequest, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> CreateUserGroupResponse: + """Create user group + + Create a new user group.
**Note**: - This endpoint is now in Beta, disabled for general availability at this time. - Please note that this endpoint is available only for API keys with Admin permissions. + + :param user_group_create_request: (required) + :type user_group_create_request: UserGroupCreateRequest + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_user_group_serialize( + user_group_create_request=user_group_create_request, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "CreateUserGroupResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def create_user_group_with_http_info( + self, + user_group_create_request: UserGroupCreateRequest, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[CreateUserGroupResponse]: + """Create user group + + Create a new user group.
**Note**: - This endpoint is now in Beta, disabled for general availability at this time. - Please note that this endpoint is available only for API keys with Admin permissions. + + :param user_group_create_request: (required) + :type user_group_create_request: UserGroupCreateRequest + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_user_group_serialize( + user_group_create_request=user_group_create_request, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "CreateUserGroupResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def create_user_group_without_preload_content( + self, + user_group_create_request: UserGroupCreateRequest, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Create user group + + Create a new user group.
**Note**: - This endpoint is now in Beta, disabled for general availability at this time. - Please note that this endpoint is available only for API keys with Admin permissions. + + :param user_group_create_request: (required) + :type user_group_create_request: UserGroupCreateRequest + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_user_group_serialize( + user_group_create_request=user_group_create_request, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "CreateUserGroupResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _create_user_group_serialize( + self, + user_group_create_request, + idempotency_key, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + if user_group_create_request is not None: + _body_params = user_group_create_request + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/management/user_groups', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def delete_user_group( + self, + group_id: Annotated[StrictStr, Field(description="The ID of the user group")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> None: + """Delete user group + + Delete a user group by ID.
**Note**: - This endpoint is now in Beta, disabled for general availability at this time. - Please note that this endpoint is available only for API keys with Admin permissions. + + :param group_id: The ID of the user group (required) + :type group_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_user_group_serialize( + group_id=group_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def delete_user_group_with_http_info( + self, + group_id: Annotated[StrictStr, Field(description="The ID of the user group")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[None]: + """Delete user group + + Delete a user group by ID.
**Note**: - This endpoint is now in Beta, disabled for general availability at this time. - Please note that this endpoint is available only for API keys with Admin permissions. + + :param group_id: The ID of the user group (required) + :type group_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_user_group_serialize( + group_id=group_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def delete_user_group_without_preload_content( + self, + group_id: Annotated[StrictStr, Field(description="The ID of the user group")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Delete user group + + Delete a user group by ID.
**Note**: - This endpoint is now in Beta, disabled for general availability at this time. - Please note that this endpoint is available only for API keys with Admin permissions. + + :param group_id: The ID of the user group (required) + :type group_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_user_group_serialize( + group_id=group_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _delete_user_group_serialize( + self, + group_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if group_id is not None: + _path_params['groupId'] = group_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/management/user_groups/{groupId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_user_group( + self, + group_id: Annotated[StrictStr, Field(description="The ID of the user group")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> UserGroupResponse: + """Get user group + + Get a user group by ID.
**Note**: - This endpoint is now in Beta, disabled for general availability at this time. - Please note that this endpoint is available only for API keys with Admin permissions. + + :param group_id: The ID of the user group (required) + :type group_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_user_group_serialize( + group_id=group_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "UserGroupResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_user_group_with_http_info( + self, + group_id: Annotated[StrictStr, Field(description="The ID of the user group")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[UserGroupResponse]: + """Get user group + + Get a user group by ID.
**Note**: - This endpoint is now in Beta, disabled for general availability at this time. - Please note that this endpoint is available only for API keys with Admin permissions. + + :param group_id: The ID of the user group (required) + :type group_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_user_group_serialize( + group_id=group_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "UserGroupResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_user_group_without_preload_content( + self, + group_id: Annotated[StrictStr, Field(description="The ID of the user group")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get user group + + Get a user group by ID.
**Note**: - This endpoint is now in Beta, disabled for general availability at this time. - Please note that this endpoint is available only for API keys with Admin permissions. + + :param group_id: The ID of the user group (required) + :type group_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_user_group_serialize( + group_id=group_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "UserGroupResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_user_group_serialize( + self, + group_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if group_id is not None: + _path_params['groupId'] = group_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/management/user_groups/{groupId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_user_groups( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> List[UserGroupResponse]: + """List user groups + + Get all user groups in your workspace.
**Note**: - This endpoint is now in Beta, disabled for general availability at this time. - Please note that this endpoint is available only for API keys with Admin permissions. + + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_user_groups_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[UserGroupResponse]", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_user_groups_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[List[UserGroupResponse]]: + """List user groups + + Get all user groups in your workspace.
**Note**: - This endpoint is now in Beta, disabled for general availability at this time. - Please note that this endpoint is available only for API keys with Admin permissions. + + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_user_groups_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[UserGroupResponse]", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_user_groups_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List user groups + + Get all user groups in your workspace.
**Note**: - This endpoint is now in Beta, disabled for general availability at this time. - Please note that this endpoint is available only for API keys with Admin permissions. + + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_user_groups_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[UserGroupResponse]", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_user_groups_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/management/user_groups', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def update_user_group( + self, + group_id: Annotated[StrictStr, Field(description="The ID of the user group")], + user_group_update_request: UserGroupUpdateRequest, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> UserGroupCreateResponse: + """Update user group + + Update a user group by ID.
**Note**: - This endpoint is now in Beta, disabled for general availability at this time. - Please note that this endpoint is available only for API keys with Admin permissions. + + :param group_id: The ID of the user group (required) + :type group_id: str + :param user_group_update_request: (required) + :type user_group_update_request: UserGroupUpdateRequest + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_user_group_serialize( + group_id=group_id, + user_group_update_request=user_group_update_request, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "UserGroupCreateResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def update_user_group_with_http_info( + self, + group_id: Annotated[StrictStr, Field(description="The ID of the user group")], + user_group_update_request: UserGroupUpdateRequest, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[UserGroupCreateResponse]: + """Update user group + + Update a user group by ID.
**Note**: - This endpoint is now in Beta, disabled for general availability at this time. - Please note that this endpoint is available only for API keys with Admin permissions. + + :param group_id: The ID of the user group (required) + :type group_id: str + :param user_group_update_request: (required) + :type user_group_update_request: UserGroupUpdateRequest + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_user_group_serialize( + group_id=group_id, + user_group_update_request=user_group_update_request, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "UserGroupCreateResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def update_user_group_without_preload_content( + self, + group_id: Annotated[StrictStr, Field(description="The ID of the user group")], + user_group_update_request: UserGroupUpdateRequest, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Update user group + + Update a user group by ID.
**Note**: - This endpoint is now in Beta, disabled for general availability at this time. - Please note that this endpoint is available only for API keys with Admin permissions. + + :param group_id: The ID of the user group (required) + :type group_id: str + :param user_group_update_request: (required) + :type user_group_update_request: UserGroupUpdateRequest + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_user_group_serialize( + group_id=group_id, + user_group_update_request=user_group_update_request, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "UserGroupCreateResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _update_user_group_serialize( + self, + group_id, + user_group_update_request, + idempotency_key, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if group_id is not None: + _path_params['groupId'] = group_id + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + if user_group_update_request is not None: + _body_params = user_group_update_request + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/management/user_groups/{groupId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/fireblocks_client/api/users_api.py b/fireblocks_client/api/users_api.py new file mode 100644 index 00000000..c21cbe27 --- /dev/null +++ b/fireblocks_client/api/users_api.py @@ -0,0 +1,279 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from fireblocks_client.models.user_response import UserResponse + +from fireblocks_client.api_client import ApiClient, RequestSerialized +from fireblocks_client.api_response import ApiResponse +from fireblocks_client.rest import RESTResponseType + + +class UsersApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def get_users( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> List[UserResponse]: + """List users + + List all users for the workspace. Please note that this endpoint is available only for API keys with Admin permissions. + + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_users_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[UserResponse]", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_users_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[List[UserResponse]]: + """List users + + List all users for the workspace. Please note that this endpoint is available only for API keys with Admin permissions. + + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_users_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[UserResponse]", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_users_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List users + + List all users for the workspace. Please note that this endpoint is available only for API keys with Admin permissions. + + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_users_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[UserResponse]", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_users_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/users', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/fireblocks_client/api/vaults_api.py b/fireblocks_client/api/vaults_api.py new file mode 100644 index 00000000..47dd1540 --- /dev/null +++ b/fireblocks_client/api/vaults_api.py @@ -0,0 +1,7521 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from pydantic import Field, StrictBool, StrictFloat, StrictInt, StrictStr, field_validator +from typing import Optional, Union +from typing_extensions import Annotated +from fireblocks_client.models.create_address_request import CreateAddressRequest +from fireblocks_client.models.create_address_response import CreateAddressResponse +from fireblocks_client.models.create_assets_request import CreateAssetsRequest +from fireblocks_client.models.create_multiple_accounts_request import CreateMultipleAccountsRequest +from fireblocks_client.models.create_vault_account_request import CreateVaultAccountRequest +from fireblocks_client.models.create_vault_asset_response import CreateVaultAssetResponse +from fireblocks_client.models.get_max_spendable_amount_response import GetMaxSpendableAmountResponse +from fireblocks_client.models.job_created import JobCreated +from fireblocks_client.models.paginated_address_response import PaginatedAddressResponse +from fireblocks_client.models.paginated_asset_wallet_response import PaginatedAssetWalletResponse +from fireblocks_client.models.public_key_information import PublicKeyInformation +from fireblocks_client.models.rename_vault_account_response import RenameVaultAccountResponse +from fireblocks_client.models.set_auto_fuel_request import SetAutoFuelRequest +from fireblocks_client.models.set_customer_ref_id_for_address_request import SetCustomerRefIdForAddressRequest +from fireblocks_client.models.set_customer_ref_id_request import SetCustomerRefIdRequest +from fireblocks_client.models.unspent_inputs_response import UnspentInputsResponse +from fireblocks_client.models.update_vault_account_asset_address_request import UpdateVaultAccountAssetAddressRequest +from fireblocks_client.models.update_vault_account_request import UpdateVaultAccountRequest +from fireblocks_client.models.vault_account import VaultAccount +from fireblocks_client.models.vault_accounts_paged_response import VaultAccountsPagedResponse +from fireblocks_client.models.vault_action_status import VaultActionStatus +from fireblocks_client.models.vault_asset import VaultAsset + +from fireblocks_client.api_client import ApiClient, RequestSerialized +from fireblocks_client.api_response import ApiResponse +from fireblocks_client.rest import RESTResponseType + + +class VaultsApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def activate_asset_for_vault_account( + self, + vault_account_id: Annotated[StrictStr, Field(description="The ID of the vault account to return, or 'default' for the default vault account")], + asset_id: Annotated[StrictStr, Field(description="The ID of the asset")], + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> CreateVaultAssetResponse: + """Activate a wallet in a vault account + + Initiates activation for a wallet in a vault account. + + :param vault_account_id: The ID of the vault account to return, or 'default' for the default vault account (required) + :type vault_account_id: str + :param asset_id: The ID of the asset (required) + :type asset_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._activate_asset_for_vault_account_serialize( + vault_account_id=vault_account_id, + asset_id=asset_id, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "CreateVaultAssetResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def activate_asset_for_vault_account_with_http_info( + self, + vault_account_id: Annotated[StrictStr, Field(description="The ID of the vault account to return, or 'default' for the default vault account")], + asset_id: Annotated[StrictStr, Field(description="The ID of the asset")], + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[CreateVaultAssetResponse]: + """Activate a wallet in a vault account + + Initiates activation for a wallet in a vault account. + + :param vault_account_id: The ID of the vault account to return, or 'default' for the default vault account (required) + :type vault_account_id: str + :param asset_id: The ID of the asset (required) + :type asset_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._activate_asset_for_vault_account_serialize( + vault_account_id=vault_account_id, + asset_id=asset_id, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "CreateVaultAssetResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def activate_asset_for_vault_account_without_preload_content( + self, + vault_account_id: Annotated[StrictStr, Field(description="The ID of the vault account to return, or 'default' for the default vault account")], + asset_id: Annotated[StrictStr, Field(description="The ID of the asset")], + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Activate a wallet in a vault account + + Initiates activation for a wallet in a vault account. + + :param vault_account_id: The ID of the vault account to return, or 'default' for the default vault account (required) + :type vault_account_id: str + :param asset_id: The ID of the asset (required) + :type asset_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._activate_asset_for_vault_account_serialize( + vault_account_id=vault_account_id, + asset_id=asset_id, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "CreateVaultAssetResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _activate_asset_for_vault_account_serialize( + self, + vault_account_id, + asset_id, + idempotency_key, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if vault_account_id is not None: + _path_params['vaultAccountId'] = vault_account_id + if asset_id is not None: + _path_params['assetId'] = asset_id + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/vault/accounts/{vaultAccountId}/{assetId}/activate', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def create_legacy_address( + self, + vault_account_id: Annotated[StrictStr, Field(description="The ID of the vault account")], + asset_id: Annotated[StrictStr, Field(description="The ID of the asset")], + address_id: Annotated[StrictStr, Field(description="The segwit address to translate")], + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> CreateAddressResponse: + """Convert a segwit address to legacy format + + Converts an existing segwit address to the legacy format. + + :param vault_account_id: The ID of the vault account (required) + :type vault_account_id: str + :param asset_id: The ID of the asset (required) + :type asset_id: str + :param address_id: The segwit address to translate (required) + :type address_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_legacy_address_serialize( + vault_account_id=vault_account_id, + asset_id=asset_id, + address_id=address_id, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "CreateAddressResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def create_legacy_address_with_http_info( + self, + vault_account_id: Annotated[StrictStr, Field(description="The ID of the vault account")], + asset_id: Annotated[StrictStr, Field(description="The ID of the asset")], + address_id: Annotated[StrictStr, Field(description="The segwit address to translate")], + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[CreateAddressResponse]: + """Convert a segwit address to legacy format + + Converts an existing segwit address to the legacy format. + + :param vault_account_id: The ID of the vault account (required) + :type vault_account_id: str + :param asset_id: The ID of the asset (required) + :type asset_id: str + :param address_id: The segwit address to translate (required) + :type address_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_legacy_address_serialize( + vault_account_id=vault_account_id, + asset_id=asset_id, + address_id=address_id, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "CreateAddressResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def create_legacy_address_without_preload_content( + self, + vault_account_id: Annotated[StrictStr, Field(description="The ID of the vault account")], + asset_id: Annotated[StrictStr, Field(description="The ID of the asset")], + address_id: Annotated[StrictStr, Field(description="The segwit address to translate")], + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Convert a segwit address to legacy format + + Converts an existing segwit address to the legacy format. + + :param vault_account_id: The ID of the vault account (required) + :type vault_account_id: str + :param asset_id: The ID of the asset (required) + :type asset_id: str + :param address_id: The segwit address to translate (required) + :type address_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_legacy_address_serialize( + vault_account_id=vault_account_id, + asset_id=asset_id, + address_id=address_id, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "CreateAddressResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _create_legacy_address_serialize( + self, + vault_account_id, + asset_id, + address_id, + idempotency_key, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if vault_account_id is not None: + _path_params['vaultAccountId'] = vault_account_id + if asset_id is not None: + _path_params['assetId'] = asset_id + if address_id is not None: + _path_params['addressId'] = address_id + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/vault/accounts/{vaultAccountId}/{assetId}/addresses/{addressId}/create_legacy', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def create_multiple_accounts( + self, + create_multiple_accounts_request: CreateMultipleAccountsRequest, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> JobCreated: + """Bulk creation of new vault accounts + + Create multiple vault accounts by running an async job.
**Note**: - These endpoints are currently in beta and might be subject to changes. - We limit accounts to 10k per operation and 200k per customer during beta testing. + + :param create_multiple_accounts_request: (required) + :type create_multiple_accounts_request: CreateMultipleAccountsRequest + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_multiple_accounts_serialize( + create_multiple_accounts_request=create_multiple_accounts_request, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "JobCreated", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def create_multiple_accounts_with_http_info( + self, + create_multiple_accounts_request: CreateMultipleAccountsRequest, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[JobCreated]: + """Bulk creation of new vault accounts + + Create multiple vault accounts by running an async job.
**Note**: - These endpoints are currently in beta and might be subject to changes. - We limit accounts to 10k per operation and 200k per customer during beta testing. + + :param create_multiple_accounts_request: (required) + :type create_multiple_accounts_request: CreateMultipleAccountsRequest + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_multiple_accounts_serialize( + create_multiple_accounts_request=create_multiple_accounts_request, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "JobCreated", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def create_multiple_accounts_without_preload_content( + self, + create_multiple_accounts_request: CreateMultipleAccountsRequest, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Bulk creation of new vault accounts + + Create multiple vault accounts by running an async job.
**Note**: - These endpoints are currently in beta and might be subject to changes. - We limit accounts to 10k per operation and 200k per customer during beta testing. + + :param create_multiple_accounts_request: (required) + :type create_multiple_accounts_request: CreateMultipleAccountsRequest + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_multiple_accounts_serialize( + create_multiple_accounts_request=create_multiple_accounts_request, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "JobCreated", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _create_multiple_accounts_serialize( + self, + create_multiple_accounts_request, + idempotency_key, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + if create_multiple_accounts_request is not None: + _body_params = create_multiple_accounts_request + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/vault/accounts/bulk', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def create_vault_account( + self, + create_vault_account_request: CreateVaultAccountRequest, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> VaultAccount: + """Create a new vault account + + Creates a new vault account with the requested name. + + :param create_vault_account_request: (required) + :type create_vault_account_request: CreateVaultAccountRequest + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_vault_account_serialize( + create_vault_account_request=create_vault_account_request, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "VaultAccount", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def create_vault_account_with_http_info( + self, + create_vault_account_request: CreateVaultAccountRequest, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[VaultAccount]: + """Create a new vault account + + Creates a new vault account with the requested name. + + :param create_vault_account_request: (required) + :type create_vault_account_request: CreateVaultAccountRequest + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_vault_account_serialize( + create_vault_account_request=create_vault_account_request, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "VaultAccount", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def create_vault_account_without_preload_content( + self, + create_vault_account_request: CreateVaultAccountRequest, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Create a new vault account + + Creates a new vault account with the requested name. + + :param create_vault_account_request: (required) + :type create_vault_account_request: CreateVaultAccountRequest + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_vault_account_serialize( + create_vault_account_request=create_vault_account_request, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "VaultAccount", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _create_vault_account_serialize( + self, + create_vault_account_request, + idempotency_key, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + if create_vault_account_request is not None: + _body_params = create_vault_account_request + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/vault/accounts', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def create_vault_account_asset( + self, + vault_account_id: Annotated[StrictStr, Field(description="The ID of the vault account to return, or 'default' for the default vault account")], + asset_id: Annotated[StrictStr, Field(description="The ID of the asset")], + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + create_assets_request: Optional[CreateAssetsRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> CreateVaultAssetResponse: + """Create a new wallet + + Creates a wallet for a specific asset in a vault account. + + :param vault_account_id: The ID of the vault account to return, or 'default' for the default vault account (required) + :type vault_account_id: str + :param asset_id: The ID of the asset (required) + :type asset_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: str + :param create_assets_request: + :type create_assets_request: CreateAssetsRequest + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_vault_account_asset_serialize( + vault_account_id=vault_account_id, + asset_id=asset_id, + idempotency_key=idempotency_key, + create_assets_request=create_assets_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "CreateVaultAssetResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def create_vault_account_asset_with_http_info( + self, + vault_account_id: Annotated[StrictStr, Field(description="The ID of the vault account to return, or 'default' for the default vault account")], + asset_id: Annotated[StrictStr, Field(description="The ID of the asset")], + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + create_assets_request: Optional[CreateAssetsRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[CreateVaultAssetResponse]: + """Create a new wallet + + Creates a wallet for a specific asset in a vault account. + + :param vault_account_id: The ID of the vault account to return, or 'default' for the default vault account (required) + :type vault_account_id: str + :param asset_id: The ID of the asset (required) + :type asset_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: str + :param create_assets_request: + :type create_assets_request: CreateAssetsRequest + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_vault_account_asset_serialize( + vault_account_id=vault_account_id, + asset_id=asset_id, + idempotency_key=idempotency_key, + create_assets_request=create_assets_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "CreateVaultAssetResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def create_vault_account_asset_without_preload_content( + self, + vault_account_id: Annotated[StrictStr, Field(description="The ID of the vault account to return, or 'default' for the default vault account")], + asset_id: Annotated[StrictStr, Field(description="The ID of the asset")], + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + create_assets_request: Optional[CreateAssetsRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Create a new wallet + + Creates a wallet for a specific asset in a vault account. + + :param vault_account_id: The ID of the vault account to return, or 'default' for the default vault account (required) + :type vault_account_id: str + :param asset_id: The ID of the asset (required) + :type asset_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: str + :param create_assets_request: + :type create_assets_request: CreateAssetsRequest + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_vault_account_asset_serialize( + vault_account_id=vault_account_id, + asset_id=asset_id, + idempotency_key=idempotency_key, + create_assets_request=create_assets_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "CreateVaultAssetResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _create_vault_account_asset_serialize( + self, + vault_account_id, + asset_id, + idempotency_key, + create_assets_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if vault_account_id is not None: + _path_params['vaultAccountId'] = vault_account_id + if asset_id is not None: + _path_params['assetId'] = asset_id + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + if create_assets_request is not None: + _body_params = create_assets_request + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/vault/accounts/{vaultAccountId}/{assetId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def create_vault_account_asset_address( + self, + vault_account_id: Annotated[StrictStr, Field(description="The ID of the vault account to return")], + asset_id: Annotated[StrictStr, Field(description="The ID of the asset")], + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + create_address_request: Optional[CreateAddressRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> CreateAddressResponse: + """Create new asset deposit address + + Creates a new deposit address for an asset of a vault account. + + :param vault_account_id: The ID of the vault account to return (required) + :type vault_account_id: str + :param asset_id: The ID of the asset (required) + :type asset_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: str + :param create_address_request: + :type create_address_request: CreateAddressRequest + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_vault_account_asset_address_serialize( + vault_account_id=vault_account_id, + asset_id=asset_id, + idempotency_key=idempotency_key, + create_address_request=create_address_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "CreateAddressResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def create_vault_account_asset_address_with_http_info( + self, + vault_account_id: Annotated[StrictStr, Field(description="The ID of the vault account to return")], + asset_id: Annotated[StrictStr, Field(description="The ID of the asset")], + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + create_address_request: Optional[CreateAddressRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[CreateAddressResponse]: + """Create new asset deposit address + + Creates a new deposit address for an asset of a vault account. + + :param vault_account_id: The ID of the vault account to return (required) + :type vault_account_id: str + :param asset_id: The ID of the asset (required) + :type asset_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: str + :param create_address_request: + :type create_address_request: CreateAddressRequest + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_vault_account_asset_address_serialize( + vault_account_id=vault_account_id, + asset_id=asset_id, + idempotency_key=idempotency_key, + create_address_request=create_address_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "CreateAddressResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def create_vault_account_asset_address_without_preload_content( + self, + vault_account_id: Annotated[StrictStr, Field(description="The ID of the vault account to return")], + asset_id: Annotated[StrictStr, Field(description="The ID of the asset")], + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + create_address_request: Optional[CreateAddressRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Create new asset deposit address + + Creates a new deposit address for an asset of a vault account. + + :param vault_account_id: The ID of the vault account to return (required) + :type vault_account_id: str + :param asset_id: The ID of the asset (required) + :type asset_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: str + :param create_address_request: + :type create_address_request: CreateAddressRequest + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_vault_account_asset_address_serialize( + vault_account_id=vault_account_id, + asset_id=asset_id, + idempotency_key=idempotency_key, + create_address_request=create_address_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "CreateAddressResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _create_vault_account_asset_address_serialize( + self, + vault_account_id, + asset_id, + idempotency_key, + create_address_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if vault_account_id is not None: + _path_params['vaultAccountId'] = vault_account_id + if asset_id is not None: + _path_params['assetId'] = asset_id + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + if create_address_request is not None: + _body_params = create_address_request + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/vault/accounts/{vaultAccountId}/{assetId}/addresses', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_asset_wallets( + self, + total_amount_larger_than: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="When specified, only asset wallets with total balance larger than this amount are returned.")] = None, + asset_id: Annotated[Optional[StrictStr], Field(description="When specified, only asset wallets cross vault accounts that have this asset ID are returned.")] = None, + order_by: Optional[StrictStr] = None, + before: Annotated[Optional[StrictStr], Field(description="Fetches the next paginated response before this element. This element is a cursor and is returned at the response of the previous page.")] = None, + after: Annotated[Optional[StrictStr], Field(description="Fetches the next paginated response after this element. This element is a cursor and is returned at the response of the previous page.")] = None, + limit: Annotated[Optional[Union[Annotated[float, Field(le=1000, strict=True, ge=1)], Annotated[int, Field(le=1000, strict=True, ge=1)]]], Field(description="The maximum number of asset wallets in a single response. The default is 200 and the maximum is 1000.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PaginatedAssetWalletResponse: + """List asset wallets (Paginated) + + Gets all asset wallets at all of the vault accounts in your workspace. An asset wallet is an asset at a vault account. This method allows fast traversal of all account balances. + + :param total_amount_larger_than: When specified, only asset wallets with total balance larger than this amount are returned. + :type total_amount_larger_than: float + :param asset_id: When specified, only asset wallets cross vault accounts that have this asset ID are returned. + :type asset_id: str + :param order_by: + :type order_by: str + :param before: Fetches the next paginated response before this element. This element is a cursor and is returned at the response of the previous page. + :type before: str + :param after: Fetches the next paginated response after this element. This element is a cursor and is returned at the response of the previous page. + :type after: str + :param limit: The maximum number of asset wallets in a single response. The default is 200 and the maximum is 1000. + :type limit: float + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_asset_wallets_serialize( + total_amount_larger_than=total_amount_larger_than, + asset_id=asset_id, + order_by=order_by, + before=before, + after=after, + limit=limit, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PaginatedAssetWalletResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_asset_wallets_with_http_info( + self, + total_amount_larger_than: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="When specified, only asset wallets with total balance larger than this amount are returned.")] = None, + asset_id: Annotated[Optional[StrictStr], Field(description="When specified, only asset wallets cross vault accounts that have this asset ID are returned.")] = None, + order_by: Optional[StrictStr] = None, + before: Annotated[Optional[StrictStr], Field(description="Fetches the next paginated response before this element. This element is a cursor and is returned at the response of the previous page.")] = None, + after: Annotated[Optional[StrictStr], Field(description="Fetches the next paginated response after this element. This element is a cursor and is returned at the response of the previous page.")] = None, + limit: Annotated[Optional[Union[Annotated[float, Field(le=1000, strict=True, ge=1)], Annotated[int, Field(le=1000, strict=True, ge=1)]]], Field(description="The maximum number of asset wallets in a single response. The default is 200 and the maximum is 1000.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PaginatedAssetWalletResponse]: + """List asset wallets (Paginated) + + Gets all asset wallets at all of the vault accounts in your workspace. An asset wallet is an asset at a vault account. This method allows fast traversal of all account balances. + + :param total_amount_larger_than: When specified, only asset wallets with total balance larger than this amount are returned. + :type total_amount_larger_than: float + :param asset_id: When specified, only asset wallets cross vault accounts that have this asset ID are returned. + :type asset_id: str + :param order_by: + :type order_by: str + :param before: Fetches the next paginated response before this element. This element is a cursor and is returned at the response of the previous page. + :type before: str + :param after: Fetches the next paginated response after this element. This element is a cursor and is returned at the response of the previous page. + :type after: str + :param limit: The maximum number of asset wallets in a single response. The default is 200 and the maximum is 1000. + :type limit: float + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_asset_wallets_serialize( + total_amount_larger_than=total_amount_larger_than, + asset_id=asset_id, + order_by=order_by, + before=before, + after=after, + limit=limit, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PaginatedAssetWalletResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_asset_wallets_without_preload_content( + self, + total_amount_larger_than: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="When specified, only asset wallets with total balance larger than this amount are returned.")] = None, + asset_id: Annotated[Optional[StrictStr], Field(description="When specified, only asset wallets cross vault accounts that have this asset ID are returned.")] = None, + order_by: Optional[StrictStr] = None, + before: Annotated[Optional[StrictStr], Field(description="Fetches the next paginated response before this element. This element is a cursor and is returned at the response of the previous page.")] = None, + after: Annotated[Optional[StrictStr], Field(description="Fetches the next paginated response after this element. This element is a cursor and is returned at the response of the previous page.")] = None, + limit: Annotated[Optional[Union[Annotated[float, Field(le=1000, strict=True, ge=1)], Annotated[int, Field(le=1000, strict=True, ge=1)]]], Field(description="The maximum number of asset wallets in a single response. The default is 200 and the maximum is 1000.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List asset wallets (Paginated) + + Gets all asset wallets at all of the vault accounts in your workspace. An asset wallet is an asset at a vault account. This method allows fast traversal of all account balances. + + :param total_amount_larger_than: When specified, only asset wallets with total balance larger than this amount are returned. + :type total_amount_larger_than: float + :param asset_id: When specified, only asset wallets cross vault accounts that have this asset ID are returned. + :type asset_id: str + :param order_by: + :type order_by: str + :param before: Fetches the next paginated response before this element. This element is a cursor and is returned at the response of the previous page. + :type before: str + :param after: Fetches the next paginated response after this element. This element is a cursor and is returned at the response of the previous page. + :type after: str + :param limit: The maximum number of asset wallets in a single response. The default is 200 and the maximum is 1000. + :type limit: float + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_asset_wallets_serialize( + total_amount_larger_than=total_amount_larger_than, + asset_id=asset_id, + order_by=order_by, + before=before, + after=after, + limit=limit, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PaginatedAssetWalletResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_asset_wallets_serialize( + self, + total_amount_larger_than, + asset_id, + order_by, + before, + after, + limit, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if total_amount_larger_than is not None: + + _query_params.append(('totalAmountLargerThan', total_amount_larger_than)) + + if asset_id is not None: + + _query_params.append(('assetId', asset_id)) + + if order_by is not None: + + _query_params.append(('orderBy', order_by)) + + if before is not None: + + _query_params.append(('before', before)) + + if after is not None: + + _query_params.append(('after', after)) + + if limit is not None: + + _query_params.append(('limit', limit)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/vault/asset_wallets', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_max_spendable_amount( + self, + vault_account_id: Annotated[StrictStr, Field(description="The ID of the vault account, or 'default' for the default vault account")], + asset_id: Annotated[StrictStr, Field(description="The ID of the asset")], + manual_signging: Annotated[Optional[StrictBool], Field(description="False by default. The maximum number of inputs depends if the transaction will be signed by an automated co-signer server or on a mobile device.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetMaxSpendableAmountResponse: + """Get the maximum spendable amount in a single transaction. + + Get the maximum amount of a particular asset that can be spent in a single transaction from a specified vault account (UTXO assets only, with a limitation on number of inputs embedded). Send several transactions if you want to spend more than the maximum spendable amount. + + :param vault_account_id: The ID of the vault account, or 'default' for the default vault account (required) + :type vault_account_id: str + :param asset_id: The ID of the asset (required) + :type asset_id: str + :param manual_signging: False by default. The maximum number of inputs depends if the transaction will be signed by an automated co-signer server or on a mobile device. + :type manual_signging: bool + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_max_spendable_amount_serialize( + vault_account_id=vault_account_id, + asset_id=asset_id, + manual_signging=manual_signging, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetMaxSpendableAmountResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_max_spendable_amount_with_http_info( + self, + vault_account_id: Annotated[StrictStr, Field(description="The ID of the vault account, or 'default' for the default vault account")], + asset_id: Annotated[StrictStr, Field(description="The ID of the asset")], + manual_signging: Annotated[Optional[StrictBool], Field(description="False by default. The maximum number of inputs depends if the transaction will be signed by an automated co-signer server or on a mobile device.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetMaxSpendableAmountResponse]: + """Get the maximum spendable amount in a single transaction. + + Get the maximum amount of a particular asset that can be spent in a single transaction from a specified vault account (UTXO assets only, with a limitation on number of inputs embedded). Send several transactions if you want to spend more than the maximum spendable amount. + + :param vault_account_id: The ID of the vault account, or 'default' for the default vault account (required) + :type vault_account_id: str + :param asset_id: The ID of the asset (required) + :type asset_id: str + :param manual_signging: False by default. The maximum number of inputs depends if the transaction will be signed by an automated co-signer server or on a mobile device. + :type manual_signging: bool + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_max_spendable_amount_serialize( + vault_account_id=vault_account_id, + asset_id=asset_id, + manual_signging=manual_signging, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetMaxSpendableAmountResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_max_spendable_amount_without_preload_content( + self, + vault_account_id: Annotated[StrictStr, Field(description="The ID of the vault account, or 'default' for the default vault account")], + asset_id: Annotated[StrictStr, Field(description="The ID of the asset")], + manual_signging: Annotated[Optional[StrictBool], Field(description="False by default. The maximum number of inputs depends if the transaction will be signed by an automated co-signer server or on a mobile device.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get the maximum spendable amount in a single transaction. + + Get the maximum amount of a particular asset that can be spent in a single transaction from a specified vault account (UTXO assets only, with a limitation on number of inputs embedded). Send several transactions if you want to spend more than the maximum spendable amount. + + :param vault_account_id: The ID of the vault account, or 'default' for the default vault account (required) + :type vault_account_id: str + :param asset_id: The ID of the asset (required) + :type asset_id: str + :param manual_signging: False by default. The maximum number of inputs depends if the transaction will be signed by an automated co-signer server or on a mobile device. + :type manual_signging: bool + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_max_spendable_amount_serialize( + vault_account_id=vault_account_id, + asset_id=asset_id, + manual_signging=manual_signging, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetMaxSpendableAmountResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_max_spendable_amount_serialize( + self, + vault_account_id, + asset_id, + manual_signging, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if vault_account_id is not None: + _path_params['vaultAccountId'] = vault_account_id + if asset_id is not None: + _path_params['assetId'] = asset_id + # process the query parameters + if manual_signging is not None: + + _query_params.append(('manualSignging', manual_signging)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/vault/accounts/{vaultAccountId}/{assetId}/max_spendable_amount', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_paged_vault_accounts( + self, + name_prefix: Optional[StrictStr] = None, + name_suffix: Optional[StrictStr] = None, + min_amount_threshold: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Specifying minAmountThreshold will filter accounts with balances greater than this value, otherwise, it will return all accounts.")] = None, + asset_id: Optional[StrictStr] = None, + order_by: Optional[StrictStr] = None, + before: Optional[StrictStr] = None, + after: Optional[StrictStr] = None, + limit: Optional[Union[Annotated[float, Field(le=500, strict=True, ge=1)], Annotated[int, Field(le=500, strict=True, ge=1)]]] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> VaultAccountsPagedResponse: + """List vault accounts (Paginated) + + Gets all vault accounts in your workspace. This endpoint returns a limited amount of results with a quick response time. + + :param name_prefix: + :type name_prefix: str + :param name_suffix: + :type name_suffix: str + :param min_amount_threshold: Specifying minAmountThreshold will filter accounts with balances greater than this value, otherwise, it will return all accounts. + :type min_amount_threshold: float + :param asset_id: + :type asset_id: str + :param order_by: + :type order_by: str + :param before: + :type before: str + :param after: + :type after: str + :param limit: + :type limit: float + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_paged_vault_accounts_serialize( + name_prefix=name_prefix, + name_suffix=name_suffix, + min_amount_threshold=min_amount_threshold, + asset_id=asset_id, + order_by=order_by, + before=before, + after=after, + limit=limit, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "VaultAccountsPagedResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_paged_vault_accounts_with_http_info( + self, + name_prefix: Optional[StrictStr] = None, + name_suffix: Optional[StrictStr] = None, + min_amount_threshold: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Specifying minAmountThreshold will filter accounts with balances greater than this value, otherwise, it will return all accounts.")] = None, + asset_id: Optional[StrictStr] = None, + order_by: Optional[StrictStr] = None, + before: Optional[StrictStr] = None, + after: Optional[StrictStr] = None, + limit: Optional[Union[Annotated[float, Field(le=500, strict=True, ge=1)], Annotated[int, Field(le=500, strict=True, ge=1)]]] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[VaultAccountsPagedResponse]: + """List vault accounts (Paginated) + + Gets all vault accounts in your workspace. This endpoint returns a limited amount of results with a quick response time. + + :param name_prefix: + :type name_prefix: str + :param name_suffix: + :type name_suffix: str + :param min_amount_threshold: Specifying minAmountThreshold will filter accounts with balances greater than this value, otherwise, it will return all accounts. + :type min_amount_threshold: float + :param asset_id: + :type asset_id: str + :param order_by: + :type order_by: str + :param before: + :type before: str + :param after: + :type after: str + :param limit: + :type limit: float + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_paged_vault_accounts_serialize( + name_prefix=name_prefix, + name_suffix=name_suffix, + min_amount_threshold=min_amount_threshold, + asset_id=asset_id, + order_by=order_by, + before=before, + after=after, + limit=limit, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "VaultAccountsPagedResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_paged_vault_accounts_without_preload_content( + self, + name_prefix: Optional[StrictStr] = None, + name_suffix: Optional[StrictStr] = None, + min_amount_threshold: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Specifying minAmountThreshold will filter accounts with balances greater than this value, otherwise, it will return all accounts.")] = None, + asset_id: Optional[StrictStr] = None, + order_by: Optional[StrictStr] = None, + before: Optional[StrictStr] = None, + after: Optional[StrictStr] = None, + limit: Optional[Union[Annotated[float, Field(le=500, strict=True, ge=1)], Annotated[int, Field(le=500, strict=True, ge=1)]]] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List vault accounts (Paginated) + + Gets all vault accounts in your workspace. This endpoint returns a limited amount of results with a quick response time. + + :param name_prefix: + :type name_prefix: str + :param name_suffix: + :type name_suffix: str + :param min_amount_threshold: Specifying minAmountThreshold will filter accounts with balances greater than this value, otherwise, it will return all accounts. + :type min_amount_threshold: float + :param asset_id: + :type asset_id: str + :param order_by: + :type order_by: str + :param before: + :type before: str + :param after: + :type after: str + :param limit: + :type limit: float + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_paged_vault_accounts_serialize( + name_prefix=name_prefix, + name_suffix=name_suffix, + min_amount_threshold=min_amount_threshold, + asset_id=asset_id, + order_by=order_by, + before=before, + after=after, + limit=limit, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "VaultAccountsPagedResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_paged_vault_accounts_serialize( + self, + name_prefix, + name_suffix, + min_amount_threshold, + asset_id, + order_by, + before, + after, + limit, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if name_prefix is not None: + + _query_params.append(('namePrefix', name_prefix)) + + if name_suffix is not None: + + _query_params.append(('nameSuffix', name_suffix)) + + if min_amount_threshold is not None: + + _query_params.append(('minAmountThreshold', min_amount_threshold)) + + if asset_id is not None: + + _query_params.append(('assetId', asset_id)) + + if order_by is not None: + + _query_params.append(('orderBy', order_by)) + + if before is not None: + + _query_params.append(('before', before)) + + if after is not None: + + _query_params.append(('after', after)) + + if limit is not None: + + _query_params.append(('limit', limit)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/vault/accounts_paged', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_public_key_info( + self, + derivation_path: StrictStr, + algorithm: StrictStr, + compressed: Optional[StrictBool] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PublicKeyInformation: + """Get the public key information + + Gets the public key information based on derivation path and signing algorithm. + + :param derivation_path: (required) + :type derivation_path: str + :param algorithm: (required) + :type algorithm: str + :param compressed: + :type compressed: bool + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_public_key_info_serialize( + derivation_path=derivation_path, + algorithm=algorithm, + compressed=compressed, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PublicKeyInformation", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_public_key_info_with_http_info( + self, + derivation_path: StrictStr, + algorithm: StrictStr, + compressed: Optional[StrictBool] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PublicKeyInformation]: + """Get the public key information + + Gets the public key information based on derivation path and signing algorithm. + + :param derivation_path: (required) + :type derivation_path: str + :param algorithm: (required) + :type algorithm: str + :param compressed: + :type compressed: bool + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_public_key_info_serialize( + derivation_path=derivation_path, + algorithm=algorithm, + compressed=compressed, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PublicKeyInformation", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_public_key_info_without_preload_content( + self, + derivation_path: StrictStr, + algorithm: StrictStr, + compressed: Optional[StrictBool] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get the public key information + + Gets the public key information based on derivation path and signing algorithm. + + :param derivation_path: (required) + :type derivation_path: str + :param algorithm: (required) + :type algorithm: str + :param compressed: + :type compressed: bool + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_public_key_info_serialize( + derivation_path=derivation_path, + algorithm=algorithm, + compressed=compressed, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PublicKeyInformation", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_public_key_info_serialize( + self, + derivation_path, + algorithm, + compressed, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if derivation_path is not None: + + _query_params.append(('derivationPath', derivation_path)) + + if algorithm is not None: + + _query_params.append(('algorithm', algorithm)) + + if compressed is not None: + + _query_params.append(('compressed', compressed)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/vault/public_key_info', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_public_key_info_for_address( + self, + vault_account_id: StrictStr, + asset_id: StrictStr, + change: Union[StrictFloat, StrictInt], + address_index: Union[StrictFloat, StrictInt], + compressed: Optional[StrictBool] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PublicKeyInformation: + """Get the public key for a vault account + + Gets the public key information for the vault account. + + :param vault_account_id: (required) + :type vault_account_id: str + :param asset_id: (required) + :type asset_id: str + :param change: (required) + :type change: float + :param address_index: (required) + :type address_index: float + :param compressed: + :type compressed: bool + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_public_key_info_for_address_serialize( + vault_account_id=vault_account_id, + asset_id=asset_id, + change=change, + address_index=address_index, + compressed=compressed, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PublicKeyInformation", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_public_key_info_for_address_with_http_info( + self, + vault_account_id: StrictStr, + asset_id: StrictStr, + change: Union[StrictFloat, StrictInt], + address_index: Union[StrictFloat, StrictInt], + compressed: Optional[StrictBool] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PublicKeyInformation]: + """Get the public key for a vault account + + Gets the public key information for the vault account. + + :param vault_account_id: (required) + :type vault_account_id: str + :param asset_id: (required) + :type asset_id: str + :param change: (required) + :type change: float + :param address_index: (required) + :type address_index: float + :param compressed: + :type compressed: bool + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_public_key_info_for_address_serialize( + vault_account_id=vault_account_id, + asset_id=asset_id, + change=change, + address_index=address_index, + compressed=compressed, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PublicKeyInformation", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_public_key_info_for_address_without_preload_content( + self, + vault_account_id: StrictStr, + asset_id: StrictStr, + change: Union[StrictFloat, StrictInt], + address_index: Union[StrictFloat, StrictInt], + compressed: Optional[StrictBool] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get the public key for a vault account + + Gets the public key information for the vault account. + + :param vault_account_id: (required) + :type vault_account_id: str + :param asset_id: (required) + :type asset_id: str + :param change: (required) + :type change: float + :param address_index: (required) + :type address_index: float + :param compressed: + :type compressed: bool + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_public_key_info_for_address_serialize( + vault_account_id=vault_account_id, + asset_id=asset_id, + change=change, + address_index=address_index, + compressed=compressed, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PublicKeyInformation", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_public_key_info_for_address_serialize( + self, + vault_account_id, + asset_id, + change, + address_index, + compressed, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if vault_account_id is not None: + _path_params['vaultAccountId'] = vault_account_id + if asset_id is not None: + _path_params['assetId'] = asset_id + if change is not None: + _path_params['change'] = change + if address_index is not None: + _path_params['addressIndex'] = address_index + # process the query parameters + if compressed is not None: + + _query_params.append(('compressed', compressed)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/vault/accounts/{vaultAccountId}/{assetId}/{change}/{addressIndex}/public_key_info', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_unspent_inputs( + self, + vault_account_id: Annotated[StrictStr, Field(description="The ID of the vault account")], + asset_id: Annotated[StrictStr, Field(description="The ID of the asset")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> List[UnspentInputsResponse]: + """Get UTXO unspent inputs information + + Returns unspent inputs information of an asset in a vault account. + + :param vault_account_id: The ID of the vault account (required) + :type vault_account_id: str + :param asset_id: The ID of the asset (required) + :type asset_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_unspent_inputs_serialize( + vault_account_id=vault_account_id, + asset_id=asset_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[UnspentInputsResponse]", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_unspent_inputs_with_http_info( + self, + vault_account_id: Annotated[StrictStr, Field(description="The ID of the vault account")], + asset_id: Annotated[StrictStr, Field(description="The ID of the asset")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[List[UnspentInputsResponse]]: + """Get UTXO unspent inputs information + + Returns unspent inputs information of an asset in a vault account. + + :param vault_account_id: The ID of the vault account (required) + :type vault_account_id: str + :param asset_id: The ID of the asset (required) + :type asset_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_unspent_inputs_serialize( + vault_account_id=vault_account_id, + asset_id=asset_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[UnspentInputsResponse]", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_unspent_inputs_without_preload_content( + self, + vault_account_id: Annotated[StrictStr, Field(description="The ID of the vault account")], + asset_id: Annotated[StrictStr, Field(description="The ID of the asset")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get UTXO unspent inputs information + + Returns unspent inputs information of an asset in a vault account. + + :param vault_account_id: The ID of the vault account (required) + :type vault_account_id: str + :param asset_id: The ID of the asset (required) + :type asset_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_unspent_inputs_serialize( + vault_account_id=vault_account_id, + asset_id=asset_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[UnspentInputsResponse]", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_unspent_inputs_serialize( + self, + vault_account_id, + asset_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if vault_account_id is not None: + _path_params['vaultAccountId'] = vault_account_id + if asset_id is not None: + _path_params['assetId'] = asset_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/vault/accounts/{vaultAccountId}/{assetId}/unspent_inputs', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_vault_account( + self, + vault_account_id: Annotated[StrictStr, Field(description="The ID of the vault account to return type: string")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> VaultAccount: + """Find a vault account by ID + + Returns the requested vault account. + + :param vault_account_id: The ID of the vault account to return type: string (required) + :type vault_account_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_vault_account_serialize( + vault_account_id=vault_account_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "VaultAccount", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_vault_account_with_http_info( + self, + vault_account_id: Annotated[StrictStr, Field(description="The ID of the vault account to return type: string")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[VaultAccount]: + """Find a vault account by ID + + Returns the requested vault account. + + :param vault_account_id: The ID of the vault account to return type: string (required) + :type vault_account_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_vault_account_serialize( + vault_account_id=vault_account_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "VaultAccount", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_vault_account_without_preload_content( + self, + vault_account_id: Annotated[StrictStr, Field(description="The ID of the vault account to return type: string")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Find a vault account by ID + + Returns the requested vault account. + + :param vault_account_id: The ID of the vault account to return type: string (required) + :type vault_account_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_vault_account_serialize( + vault_account_id=vault_account_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "VaultAccount", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_vault_account_serialize( + self, + vault_account_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if vault_account_id is not None: + _path_params['vaultAccountId'] = vault_account_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/vault/accounts/{vaultAccountId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_vault_account_asset( + self, + vault_account_id: Annotated[StrictStr, Field(description="The ID of the vault account to return")], + asset_id: Annotated[StrictStr, Field(description="The ID of the asset")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> VaultAsset: + """Get the asset balance for a vault account + + Returns a wallet for a specific asset of a vault account. + + :param vault_account_id: The ID of the vault account to return (required) + :type vault_account_id: str + :param asset_id: The ID of the asset (required) + :type asset_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_vault_account_asset_serialize( + vault_account_id=vault_account_id, + asset_id=asset_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "VaultAsset", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_vault_account_asset_with_http_info( + self, + vault_account_id: Annotated[StrictStr, Field(description="The ID of the vault account to return")], + asset_id: Annotated[StrictStr, Field(description="The ID of the asset")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[VaultAsset]: + """Get the asset balance for a vault account + + Returns a wallet for a specific asset of a vault account. + + :param vault_account_id: The ID of the vault account to return (required) + :type vault_account_id: str + :param asset_id: The ID of the asset (required) + :type asset_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_vault_account_asset_serialize( + vault_account_id=vault_account_id, + asset_id=asset_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "VaultAsset", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_vault_account_asset_without_preload_content( + self, + vault_account_id: Annotated[StrictStr, Field(description="The ID of the vault account to return")], + asset_id: Annotated[StrictStr, Field(description="The ID of the asset")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get the asset balance for a vault account + + Returns a wallet for a specific asset of a vault account. + + :param vault_account_id: The ID of the vault account to return (required) + :type vault_account_id: str + :param asset_id: The ID of the asset (required) + :type asset_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_vault_account_asset_serialize( + vault_account_id=vault_account_id, + asset_id=asset_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "VaultAsset", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_vault_account_asset_serialize( + self, + vault_account_id, + asset_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if vault_account_id is not None: + _path_params['vaultAccountId'] = vault_account_id + if asset_id is not None: + _path_params['assetId'] = asset_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/vault/accounts/{vaultAccountId}/{assetId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_vault_account_asset_addresses_paginated( + self, + vault_account_id: Annotated[StrictStr, Field(description="The ID of the vault account to return")], + asset_id: Annotated[StrictStr, Field(description="The ID of the asset")], + limit: Optional[Union[StrictFloat, StrictInt]] = None, + before: Optional[StrictStr] = None, + after: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PaginatedAddressResponse: + """List addresses (Paginated) + + Returns a paginated response of the addresses for a given vault account and asset. + + :param vault_account_id: The ID of the vault account to return (required) + :type vault_account_id: str + :param asset_id: The ID of the asset (required) + :type asset_id: str + :param limit: + :type limit: float + :param before: + :type before: str + :param after: + :type after: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_vault_account_asset_addresses_paginated_serialize( + vault_account_id=vault_account_id, + asset_id=asset_id, + limit=limit, + before=before, + after=after, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PaginatedAddressResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_vault_account_asset_addresses_paginated_with_http_info( + self, + vault_account_id: Annotated[StrictStr, Field(description="The ID of the vault account to return")], + asset_id: Annotated[StrictStr, Field(description="The ID of the asset")], + limit: Optional[Union[StrictFloat, StrictInt]] = None, + before: Optional[StrictStr] = None, + after: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PaginatedAddressResponse]: + """List addresses (Paginated) + + Returns a paginated response of the addresses for a given vault account and asset. + + :param vault_account_id: The ID of the vault account to return (required) + :type vault_account_id: str + :param asset_id: The ID of the asset (required) + :type asset_id: str + :param limit: + :type limit: float + :param before: + :type before: str + :param after: + :type after: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_vault_account_asset_addresses_paginated_serialize( + vault_account_id=vault_account_id, + asset_id=asset_id, + limit=limit, + before=before, + after=after, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PaginatedAddressResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_vault_account_asset_addresses_paginated_without_preload_content( + self, + vault_account_id: Annotated[StrictStr, Field(description="The ID of the vault account to return")], + asset_id: Annotated[StrictStr, Field(description="The ID of the asset")], + limit: Optional[Union[StrictFloat, StrictInt]] = None, + before: Optional[StrictStr] = None, + after: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List addresses (Paginated) + + Returns a paginated response of the addresses for a given vault account and asset. + + :param vault_account_id: The ID of the vault account to return (required) + :type vault_account_id: str + :param asset_id: The ID of the asset (required) + :type asset_id: str + :param limit: + :type limit: float + :param before: + :type before: str + :param after: + :type after: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_vault_account_asset_addresses_paginated_serialize( + vault_account_id=vault_account_id, + asset_id=asset_id, + limit=limit, + before=before, + after=after, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PaginatedAddressResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_vault_account_asset_addresses_paginated_serialize( + self, + vault_account_id, + asset_id, + limit, + before, + after, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if vault_account_id is not None: + _path_params['vaultAccountId'] = vault_account_id + if asset_id is not None: + _path_params['assetId'] = asset_id + # process the query parameters + if limit is not None: + + _query_params.append(('limit', limit)) + + if before is not None: + + _query_params.append(('before', before)) + + if after is not None: + + _query_params.append(('after', after)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/vault/accounts/{vaultAccountId}/{assetId}/addresses_paginated', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_vault_assets( + self, + account_name_prefix: Optional[StrictStr] = None, + account_name_suffix: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> List[VaultAsset]: + """Get asset balance for chosen assets + + Gets the assets amount summary for all accounts or filtered accounts. + + :param account_name_prefix: + :type account_name_prefix: str + :param account_name_suffix: + :type account_name_suffix: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_vault_assets_serialize( + account_name_prefix=account_name_prefix, + account_name_suffix=account_name_suffix, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[VaultAsset]", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_vault_assets_with_http_info( + self, + account_name_prefix: Optional[StrictStr] = None, + account_name_suffix: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[List[VaultAsset]]: + """Get asset balance for chosen assets + + Gets the assets amount summary for all accounts or filtered accounts. + + :param account_name_prefix: + :type account_name_prefix: str + :param account_name_suffix: + :type account_name_suffix: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_vault_assets_serialize( + account_name_prefix=account_name_prefix, + account_name_suffix=account_name_suffix, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[VaultAsset]", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_vault_assets_without_preload_content( + self, + account_name_prefix: Optional[StrictStr] = None, + account_name_suffix: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get asset balance for chosen assets + + Gets the assets amount summary for all accounts or filtered accounts. + + :param account_name_prefix: + :type account_name_prefix: str + :param account_name_suffix: + :type account_name_suffix: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_vault_assets_serialize( + account_name_prefix=account_name_prefix, + account_name_suffix=account_name_suffix, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[VaultAsset]", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_vault_assets_serialize( + self, + account_name_prefix, + account_name_suffix, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if account_name_prefix is not None: + + _query_params.append(('accountNamePrefix', account_name_prefix)) + + if account_name_suffix is not None: + + _query_params.append(('accountNameSuffix', account_name_suffix)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/vault/assets', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_vault_balance_by_asset( + self, + asset_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> VaultAsset: + """Get vault balance by asset + + Gets the vault balance summary for an asset. + + :param asset_id: (required) + :type asset_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_vault_balance_by_asset_serialize( + asset_id=asset_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "VaultAsset", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_vault_balance_by_asset_with_http_info( + self, + asset_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[VaultAsset]: + """Get vault balance by asset + + Gets the vault balance summary for an asset. + + :param asset_id: (required) + :type asset_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_vault_balance_by_asset_serialize( + asset_id=asset_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "VaultAsset", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_vault_balance_by_asset_without_preload_content( + self, + asset_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get vault balance by asset + + Gets the vault balance summary for an asset. + + :param asset_id: (required) + :type asset_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_vault_balance_by_asset_serialize( + asset_id=asset_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "VaultAsset", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_vault_balance_by_asset_serialize( + self, + asset_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if asset_id is not None: + _path_params['assetId'] = asset_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/vault/assets/{assetId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def hide_vault_account( + self, + vault_account_id: Annotated[StrictStr, Field(description="The vault account to hide")], + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> VaultActionStatus: + """Hide a vault account in the console + + Hides the requested vault account from the web console view. + + :param vault_account_id: The vault account to hide (required) + :type vault_account_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._hide_vault_account_serialize( + vault_account_id=vault_account_id, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "VaultActionStatus", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def hide_vault_account_with_http_info( + self, + vault_account_id: Annotated[StrictStr, Field(description="The vault account to hide")], + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[VaultActionStatus]: + """Hide a vault account in the console + + Hides the requested vault account from the web console view. + + :param vault_account_id: The vault account to hide (required) + :type vault_account_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._hide_vault_account_serialize( + vault_account_id=vault_account_id, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "VaultActionStatus", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def hide_vault_account_without_preload_content( + self, + vault_account_id: Annotated[StrictStr, Field(description="The vault account to hide")], + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Hide a vault account in the console + + Hides the requested vault account from the web console view. + + :param vault_account_id: The vault account to hide (required) + :type vault_account_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._hide_vault_account_serialize( + vault_account_id=vault_account_id, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "VaultActionStatus", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _hide_vault_account_serialize( + self, + vault_account_id, + idempotency_key, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if vault_account_id is not None: + _path_params['vaultAccountId'] = vault_account_id + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/vault/accounts/{vaultAccountId}/hide', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def set_customer_ref_id_for_address( + self, + vault_account_id: Annotated[StrictStr, Field(description="The ID of the vault account")], + asset_id: Annotated[StrictStr, Field(description="The ID of the asset")], + address_id: Annotated[StrictStr, Field(description="The address for which to add a description. For XRP, use
:, for all other assets, use only the address")], + set_customer_ref_id_for_address_request: SetCustomerRefIdForAddressRequest, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> VaultActionStatus: + """Assign AML customer reference ID + + Sets an AML/KYT customer reference ID for a specific address. + + :param vault_account_id: The ID of the vault account (required) + :type vault_account_id: str + :param asset_id: The ID of the asset (required) + :type asset_id: str + :param address_id: The address for which to add a description. For XRP, use
:, for all other assets, use only the address (required) + :type address_id: str + :param set_customer_ref_id_for_address_request: (required) + :type set_customer_ref_id_for_address_request: SetCustomerRefIdForAddressRequest + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._set_customer_ref_id_for_address_serialize( + vault_account_id=vault_account_id, + asset_id=asset_id, + address_id=address_id, + set_customer_ref_id_for_address_request=set_customer_ref_id_for_address_request, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "VaultActionStatus", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def set_customer_ref_id_for_address_with_http_info( + self, + vault_account_id: Annotated[StrictStr, Field(description="The ID of the vault account")], + asset_id: Annotated[StrictStr, Field(description="The ID of the asset")], + address_id: Annotated[StrictStr, Field(description="The address for which to add a description. For XRP, use
:, for all other assets, use only the address")], + set_customer_ref_id_for_address_request: SetCustomerRefIdForAddressRequest, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[VaultActionStatus]: + """Assign AML customer reference ID + + Sets an AML/KYT customer reference ID for a specific address. + + :param vault_account_id: The ID of the vault account (required) + :type vault_account_id: str + :param asset_id: The ID of the asset (required) + :type asset_id: str + :param address_id: The address for which to add a description. For XRP, use
:, for all other assets, use only the address (required) + :type address_id: str + :param set_customer_ref_id_for_address_request: (required) + :type set_customer_ref_id_for_address_request: SetCustomerRefIdForAddressRequest + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._set_customer_ref_id_for_address_serialize( + vault_account_id=vault_account_id, + asset_id=asset_id, + address_id=address_id, + set_customer_ref_id_for_address_request=set_customer_ref_id_for_address_request, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "VaultActionStatus", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def set_customer_ref_id_for_address_without_preload_content( + self, + vault_account_id: Annotated[StrictStr, Field(description="The ID of the vault account")], + asset_id: Annotated[StrictStr, Field(description="The ID of the asset")], + address_id: Annotated[StrictStr, Field(description="The address for which to add a description. For XRP, use
:, for all other assets, use only the address")], + set_customer_ref_id_for_address_request: SetCustomerRefIdForAddressRequest, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Assign AML customer reference ID + + Sets an AML/KYT customer reference ID for a specific address. + + :param vault_account_id: The ID of the vault account (required) + :type vault_account_id: str + :param asset_id: The ID of the asset (required) + :type asset_id: str + :param address_id: The address for which to add a description. For XRP, use
:, for all other assets, use only the address (required) + :type address_id: str + :param set_customer_ref_id_for_address_request: (required) + :type set_customer_ref_id_for_address_request: SetCustomerRefIdForAddressRequest + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._set_customer_ref_id_for_address_serialize( + vault_account_id=vault_account_id, + asset_id=asset_id, + address_id=address_id, + set_customer_ref_id_for_address_request=set_customer_ref_id_for_address_request, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "VaultActionStatus", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _set_customer_ref_id_for_address_serialize( + self, + vault_account_id, + asset_id, + address_id, + set_customer_ref_id_for_address_request, + idempotency_key, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if vault_account_id is not None: + _path_params['vaultAccountId'] = vault_account_id + if asset_id is not None: + _path_params['assetId'] = asset_id + if address_id is not None: + _path_params['addressId'] = address_id + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + if set_customer_ref_id_for_address_request is not None: + _body_params = set_customer_ref_id_for_address_request + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/vault/accounts/{vaultAccountId}/{assetId}/addresses/{addressId}/set_customer_ref_id', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def set_vault_account_auto_fuel( + self, + vault_account_id: Annotated[StrictStr, Field(description="The vault account ID")], + set_auto_fuel_request: SetAutoFuelRequest, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> VaultActionStatus: + """Turn autofueling on or off + + Sets the autofueling property of the vault account to enabled or disabled. + + :param vault_account_id: The vault account ID (required) + :type vault_account_id: str + :param set_auto_fuel_request: (required) + :type set_auto_fuel_request: SetAutoFuelRequest + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._set_vault_account_auto_fuel_serialize( + vault_account_id=vault_account_id, + set_auto_fuel_request=set_auto_fuel_request, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "VaultActionStatus", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def set_vault_account_auto_fuel_with_http_info( + self, + vault_account_id: Annotated[StrictStr, Field(description="The vault account ID")], + set_auto_fuel_request: SetAutoFuelRequest, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[VaultActionStatus]: + """Turn autofueling on or off + + Sets the autofueling property of the vault account to enabled or disabled. + + :param vault_account_id: The vault account ID (required) + :type vault_account_id: str + :param set_auto_fuel_request: (required) + :type set_auto_fuel_request: SetAutoFuelRequest + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._set_vault_account_auto_fuel_serialize( + vault_account_id=vault_account_id, + set_auto_fuel_request=set_auto_fuel_request, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "VaultActionStatus", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def set_vault_account_auto_fuel_without_preload_content( + self, + vault_account_id: Annotated[StrictStr, Field(description="The vault account ID")], + set_auto_fuel_request: SetAutoFuelRequest, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Turn autofueling on or off + + Sets the autofueling property of the vault account to enabled or disabled. + + :param vault_account_id: The vault account ID (required) + :type vault_account_id: str + :param set_auto_fuel_request: (required) + :type set_auto_fuel_request: SetAutoFuelRequest + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._set_vault_account_auto_fuel_serialize( + vault_account_id=vault_account_id, + set_auto_fuel_request=set_auto_fuel_request, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "VaultActionStatus", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _set_vault_account_auto_fuel_serialize( + self, + vault_account_id, + set_auto_fuel_request, + idempotency_key, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if vault_account_id is not None: + _path_params['vaultAccountId'] = vault_account_id + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + if set_auto_fuel_request is not None: + _body_params = set_auto_fuel_request + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/vault/accounts/{vaultAccountId}/set_auto_fuel', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def set_vault_account_customer_ref_id( + self, + vault_account_id: Annotated[StrictStr, Field(description="The vault account ID")], + set_customer_ref_id_request: SetCustomerRefIdRequest, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> VaultActionStatus: + """Set an AML/KYT customer reference ID for a vault account + + Assigns an AML/KYT customer reference ID for the vault account. + + :param vault_account_id: The vault account ID (required) + :type vault_account_id: str + :param set_customer_ref_id_request: (required) + :type set_customer_ref_id_request: SetCustomerRefIdRequest + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._set_vault_account_customer_ref_id_serialize( + vault_account_id=vault_account_id, + set_customer_ref_id_request=set_customer_ref_id_request, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "VaultActionStatus", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def set_vault_account_customer_ref_id_with_http_info( + self, + vault_account_id: Annotated[StrictStr, Field(description="The vault account ID")], + set_customer_ref_id_request: SetCustomerRefIdRequest, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[VaultActionStatus]: + """Set an AML/KYT customer reference ID for a vault account + + Assigns an AML/KYT customer reference ID for the vault account. + + :param vault_account_id: The vault account ID (required) + :type vault_account_id: str + :param set_customer_ref_id_request: (required) + :type set_customer_ref_id_request: SetCustomerRefIdRequest + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._set_vault_account_customer_ref_id_serialize( + vault_account_id=vault_account_id, + set_customer_ref_id_request=set_customer_ref_id_request, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "VaultActionStatus", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def set_vault_account_customer_ref_id_without_preload_content( + self, + vault_account_id: Annotated[StrictStr, Field(description="The vault account ID")], + set_customer_ref_id_request: SetCustomerRefIdRequest, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Set an AML/KYT customer reference ID for a vault account + + Assigns an AML/KYT customer reference ID for the vault account. + + :param vault_account_id: The vault account ID (required) + :type vault_account_id: str + :param set_customer_ref_id_request: (required) + :type set_customer_ref_id_request: SetCustomerRefIdRequest + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._set_vault_account_customer_ref_id_serialize( + vault_account_id=vault_account_id, + set_customer_ref_id_request=set_customer_ref_id_request, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "VaultActionStatus", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _set_vault_account_customer_ref_id_serialize( + self, + vault_account_id, + set_customer_ref_id_request, + idempotency_key, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if vault_account_id is not None: + _path_params['vaultAccountId'] = vault_account_id + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + if set_customer_ref_id_request is not None: + _body_params = set_customer_ref_id_request + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/vault/accounts/{vaultAccountId}/set_customer_ref_id', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def unhide_vault_account( + self, + vault_account_id: Annotated[StrictStr, Field(description="The vault account to unhide")], + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> VaultActionStatus: + """Unhide a vault account in the console + + Makes a hidden vault account visible in web console view. + + :param vault_account_id: The vault account to unhide (required) + :type vault_account_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._unhide_vault_account_serialize( + vault_account_id=vault_account_id, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "VaultActionStatus", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def unhide_vault_account_with_http_info( + self, + vault_account_id: Annotated[StrictStr, Field(description="The vault account to unhide")], + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[VaultActionStatus]: + """Unhide a vault account in the console + + Makes a hidden vault account visible in web console view. + + :param vault_account_id: The vault account to unhide (required) + :type vault_account_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._unhide_vault_account_serialize( + vault_account_id=vault_account_id, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "VaultActionStatus", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def unhide_vault_account_without_preload_content( + self, + vault_account_id: Annotated[StrictStr, Field(description="The vault account to unhide")], + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Unhide a vault account in the console + + Makes a hidden vault account visible in web console view. + + :param vault_account_id: The vault account to unhide (required) + :type vault_account_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._unhide_vault_account_serialize( + vault_account_id=vault_account_id, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "VaultActionStatus", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _unhide_vault_account_serialize( + self, + vault_account_id, + idempotency_key, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if vault_account_id is not None: + _path_params['vaultAccountId'] = vault_account_id + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/vault/accounts/{vaultAccountId}/unhide', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def update_vault_account( + self, + vault_account_id: Annotated[StrictStr, Field(description="The ID of the vault account to edit")], + update_vault_account_request: UpdateVaultAccountRequest, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RenameVaultAccountResponse: + """Rename a vault account + + Renames the requested vault account. + + :param vault_account_id: The ID of the vault account to edit (required) + :type vault_account_id: str + :param update_vault_account_request: (required) + :type update_vault_account_request: UpdateVaultAccountRequest + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_vault_account_serialize( + vault_account_id=vault_account_id, + update_vault_account_request=update_vault_account_request, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "RenameVaultAccountResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def update_vault_account_with_http_info( + self, + vault_account_id: Annotated[StrictStr, Field(description="The ID of the vault account to edit")], + update_vault_account_request: UpdateVaultAccountRequest, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[RenameVaultAccountResponse]: + """Rename a vault account + + Renames the requested vault account. + + :param vault_account_id: The ID of the vault account to edit (required) + :type vault_account_id: str + :param update_vault_account_request: (required) + :type update_vault_account_request: UpdateVaultAccountRequest + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_vault_account_serialize( + vault_account_id=vault_account_id, + update_vault_account_request=update_vault_account_request, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "RenameVaultAccountResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def update_vault_account_without_preload_content( + self, + vault_account_id: Annotated[StrictStr, Field(description="The ID of the vault account to edit")], + update_vault_account_request: UpdateVaultAccountRequest, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Rename a vault account + + Renames the requested vault account. + + :param vault_account_id: The ID of the vault account to edit (required) + :type vault_account_id: str + :param update_vault_account_request: (required) + :type update_vault_account_request: UpdateVaultAccountRequest + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_vault_account_serialize( + vault_account_id=vault_account_id, + update_vault_account_request=update_vault_account_request, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "RenameVaultAccountResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _update_vault_account_serialize( + self, + vault_account_id, + update_vault_account_request, + idempotency_key, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if vault_account_id is not None: + _path_params['vaultAccountId'] = vault_account_id + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + if update_vault_account_request is not None: + _body_params = update_vault_account_request + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/vault/accounts/{vaultAccountId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def update_vault_account_asset_address( + self, + vault_account_id: Annotated[StrictStr, Field(description="The ID of the vault account")], + asset_id: Annotated[StrictStr, Field(description="The ID of the asset")], + address_id: Annotated[StrictStr, Field(description="The address for which to add a description. For XRP, use
:, for all other assets, use only the address")], + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + update_vault_account_asset_address_request: Optional[UpdateVaultAccountAssetAddressRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> VaultActionStatus: + """Update address description + + Updates the description of an existing address of an asset in a vault account. + + :param vault_account_id: The ID of the vault account (required) + :type vault_account_id: str + :param asset_id: The ID of the asset (required) + :type asset_id: str + :param address_id: The address for which to add a description. For XRP, use
:, for all other assets, use only the address (required) + :type address_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: str + :param update_vault_account_asset_address_request: + :type update_vault_account_asset_address_request: UpdateVaultAccountAssetAddressRequest + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_vault_account_asset_address_serialize( + vault_account_id=vault_account_id, + asset_id=asset_id, + address_id=address_id, + idempotency_key=idempotency_key, + update_vault_account_asset_address_request=update_vault_account_asset_address_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "VaultActionStatus", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def update_vault_account_asset_address_with_http_info( + self, + vault_account_id: Annotated[StrictStr, Field(description="The ID of the vault account")], + asset_id: Annotated[StrictStr, Field(description="The ID of the asset")], + address_id: Annotated[StrictStr, Field(description="The address for which to add a description. For XRP, use
:, for all other assets, use only the address")], + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + update_vault_account_asset_address_request: Optional[UpdateVaultAccountAssetAddressRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[VaultActionStatus]: + """Update address description + + Updates the description of an existing address of an asset in a vault account. + + :param vault_account_id: The ID of the vault account (required) + :type vault_account_id: str + :param asset_id: The ID of the asset (required) + :type asset_id: str + :param address_id: The address for which to add a description. For XRP, use
:, for all other assets, use only the address (required) + :type address_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: str + :param update_vault_account_asset_address_request: + :type update_vault_account_asset_address_request: UpdateVaultAccountAssetAddressRequest + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_vault_account_asset_address_serialize( + vault_account_id=vault_account_id, + asset_id=asset_id, + address_id=address_id, + idempotency_key=idempotency_key, + update_vault_account_asset_address_request=update_vault_account_asset_address_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "VaultActionStatus", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def update_vault_account_asset_address_without_preload_content( + self, + vault_account_id: Annotated[StrictStr, Field(description="The ID of the vault account")], + asset_id: Annotated[StrictStr, Field(description="The ID of the asset")], + address_id: Annotated[StrictStr, Field(description="The address for which to add a description. For XRP, use
:, for all other assets, use only the address")], + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + update_vault_account_asset_address_request: Optional[UpdateVaultAccountAssetAddressRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Update address description + + Updates the description of an existing address of an asset in a vault account. + + :param vault_account_id: The ID of the vault account (required) + :type vault_account_id: str + :param asset_id: The ID of the asset (required) + :type asset_id: str + :param address_id: The address for which to add a description. For XRP, use
:, for all other assets, use only the address (required) + :type address_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: str + :param update_vault_account_asset_address_request: + :type update_vault_account_asset_address_request: UpdateVaultAccountAssetAddressRequest + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_vault_account_asset_address_serialize( + vault_account_id=vault_account_id, + asset_id=asset_id, + address_id=address_id, + idempotency_key=idempotency_key, + update_vault_account_asset_address_request=update_vault_account_asset_address_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "VaultActionStatus", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _update_vault_account_asset_address_serialize( + self, + vault_account_id, + asset_id, + address_id, + idempotency_key, + update_vault_account_asset_address_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if vault_account_id is not None: + _path_params['vaultAccountId'] = vault_account_id + if asset_id is not None: + _path_params['assetId'] = asset_id + if address_id is not None: + _path_params['addressId'] = address_id + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + if update_vault_account_asset_address_request is not None: + _body_params = update_vault_account_asset_address_request + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/vault/accounts/{vaultAccountId}/{assetId}/addresses/{addressId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def update_vault_account_asset_balance( + self, + vault_account_id: Annotated[StrictStr, Field(description="The ID of the vault account to return")], + asset_id: Annotated[StrictStr, Field(description="The ID of the asset")], + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> VaultAsset: + """Refresh asset balance data + + Updates the balance of a specific asset in a vault account. + + :param vault_account_id: The ID of the vault account to return (required) + :type vault_account_id: str + :param asset_id: The ID of the asset (required) + :type asset_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_vault_account_asset_balance_serialize( + vault_account_id=vault_account_id, + asset_id=asset_id, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "VaultAsset", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def update_vault_account_asset_balance_with_http_info( + self, + vault_account_id: Annotated[StrictStr, Field(description="The ID of the vault account to return")], + asset_id: Annotated[StrictStr, Field(description="The ID of the asset")], + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[VaultAsset]: + """Refresh asset balance data + + Updates the balance of a specific asset in a vault account. + + :param vault_account_id: The ID of the vault account to return (required) + :type vault_account_id: str + :param asset_id: The ID of the asset (required) + :type asset_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_vault_account_asset_balance_serialize( + vault_account_id=vault_account_id, + asset_id=asset_id, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "VaultAsset", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def update_vault_account_asset_balance_without_preload_content( + self, + vault_account_id: Annotated[StrictStr, Field(description="The ID of the vault account to return")], + asset_id: Annotated[StrictStr, Field(description="The ID of the asset")], + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Refresh asset balance data + + Updates the balance of a specific asset in a vault account. + + :param vault_account_id: The ID of the vault account to return (required) + :type vault_account_id: str + :param asset_id: The ID of the asset (required) + :type asset_id: str + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_vault_account_asset_balance_serialize( + vault_account_id=vault_account_id, + asset_id=asset_id, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "VaultAsset", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _update_vault_account_asset_balance_serialize( + self, + vault_account_id, + asset_id, + idempotency_key, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if vault_account_id is not None: + _path_params['vaultAccountId'] = vault_account_id + if asset_id is not None: + _path_params['assetId'] = asset_id + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/vault/accounts/{vaultAccountId}/{assetId}/balance', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/fireblocks_client/api/web3_connections_api.py b/fireblocks_client/api/web3_connections_api.py new file mode 100644 index 00000000..dcdbef47 --- /dev/null +++ b/fireblocks_client/api/web3_connections_api.py @@ -0,0 +1,1228 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from pydantic import Field, StrictStr, field_validator +from typing import Optional, Union +from typing_extensions import Annotated +from fireblocks_client.models.create_connection_request import CreateConnectionRequest +from fireblocks_client.models.create_connection_response import CreateConnectionResponse +from fireblocks_client.models.get_connections_response import GetConnectionsResponse +from fireblocks_client.models.get_filter_parameter import GetFilterParameter +from fireblocks_client.models.respond_to_connection_request import RespondToConnectionRequest + +from fireblocks_client.api_client import ApiClient, RequestSerialized +from fireblocks_client.api_response import ApiResponse +from fireblocks_client.rest import RESTResponseType + + +class Web3ConnectionsApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def create( + self, + create_connection_request: CreateConnectionRequest, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> CreateConnectionResponse: + """Create a new Web3 connection. + + Initiate a new Web3 connection. * Note: After this succeeds, make a request to `PUT /v1/connections/wc/{id}` (below) to approve or reject the new Web3 connection. + + :param create_connection_request: (required) + :type create_connection_request: CreateConnectionRequest + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_serialize( + create_connection_request=create_connection_request, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "CreateConnectionResponse", + '400': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def create_with_http_info( + self, + create_connection_request: CreateConnectionRequest, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[CreateConnectionResponse]: + """Create a new Web3 connection. + + Initiate a new Web3 connection. * Note: After this succeeds, make a request to `PUT /v1/connections/wc/{id}` (below) to approve or reject the new Web3 connection. + + :param create_connection_request: (required) + :type create_connection_request: CreateConnectionRequest + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_serialize( + create_connection_request=create_connection_request, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "CreateConnectionResponse", + '400': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def create_without_preload_content( + self, + create_connection_request: CreateConnectionRequest, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Create a new Web3 connection. + + Initiate a new Web3 connection. * Note: After this succeeds, make a request to `PUT /v1/connections/wc/{id}` (below) to approve or reject the new Web3 connection. + + :param create_connection_request: (required) + :type create_connection_request: CreateConnectionRequest + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_serialize( + create_connection_request=create_connection_request, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "CreateConnectionResponse", + '400': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _create_serialize( + self, + create_connection_request, + idempotency_key, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + if create_connection_request is not None: + _body_params = create_connection_request + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/connections/wc', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get( + self, + order: Annotated[Optional[StrictStr], Field(description="List order; ascending or descending.")] = None, + filter: Annotated[Optional[GetFilterParameter], Field(description="Parsed filter object")] = None, + sort: Annotated[Optional[StrictStr], Field(description="Property to sort Web3 connections by.")] = None, + page_size: Annotated[Optional[Union[Annotated[float, Field(le=50, strict=True)], Annotated[int, Field(le=50, strict=True)]]], Field(description="Amount of results to return in the next page.")] = None, + next: Annotated[Optional[StrictStr], Field(description="Cursor to the next page")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetConnectionsResponse: + """List all open Web3 connections. + + Get open Web3 connections. + + :param order: List order; ascending or descending. + :type order: str + :param filter: Parsed filter object + :type filter: GetFilterParameter + :param sort: Property to sort Web3 connections by. + :type sort: str + :param page_size: Amount of results to return in the next page. + :type page_size: float + :param next: Cursor to the next page + :type next: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_serialize( + order=order, + filter=filter, + sort=sort, + page_size=page_size, + next=next, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetConnectionsResponse", + '400': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_with_http_info( + self, + order: Annotated[Optional[StrictStr], Field(description="List order; ascending or descending.")] = None, + filter: Annotated[Optional[GetFilterParameter], Field(description="Parsed filter object")] = None, + sort: Annotated[Optional[StrictStr], Field(description="Property to sort Web3 connections by.")] = None, + page_size: Annotated[Optional[Union[Annotated[float, Field(le=50, strict=True)], Annotated[int, Field(le=50, strict=True)]]], Field(description="Amount of results to return in the next page.")] = None, + next: Annotated[Optional[StrictStr], Field(description="Cursor to the next page")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetConnectionsResponse]: + """List all open Web3 connections. + + Get open Web3 connections. + + :param order: List order; ascending or descending. + :type order: str + :param filter: Parsed filter object + :type filter: GetFilterParameter + :param sort: Property to sort Web3 connections by. + :type sort: str + :param page_size: Amount of results to return in the next page. + :type page_size: float + :param next: Cursor to the next page + :type next: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_serialize( + order=order, + filter=filter, + sort=sort, + page_size=page_size, + next=next, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetConnectionsResponse", + '400': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_without_preload_content( + self, + order: Annotated[Optional[StrictStr], Field(description="List order; ascending or descending.")] = None, + filter: Annotated[Optional[GetFilterParameter], Field(description="Parsed filter object")] = None, + sort: Annotated[Optional[StrictStr], Field(description="Property to sort Web3 connections by.")] = None, + page_size: Annotated[Optional[Union[Annotated[float, Field(le=50, strict=True)], Annotated[int, Field(le=50, strict=True)]]], Field(description="Amount of results to return in the next page.")] = None, + next: Annotated[Optional[StrictStr], Field(description="Cursor to the next page")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List all open Web3 connections. + + Get open Web3 connections. + + :param order: List order; ascending or descending. + :type order: str + :param filter: Parsed filter object + :type filter: GetFilterParameter + :param sort: Property to sort Web3 connections by. + :type sort: str + :param page_size: Amount of results to return in the next page. + :type page_size: float + :param next: Cursor to the next page + :type next: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_serialize( + order=order, + filter=filter, + sort=sort, + page_size=page_size, + next=next, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetConnectionsResponse", + '400': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_serialize( + self, + order, + filter, + sort, + page_size, + next, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if order is not None: + + _query_params.append(('order', order)) + + if filter is not None: + + _query_params.append(('filter', filter)) + + if sort is not None: + + _query_params.append(('sort', sort)) + + if page_size is not None: + + _query_params.append(('pageSize', page_size)) + + if next is not None: + + _query_params.append(('next', next)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/connections', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def remove( + self, + id: Annotated[StrictStr, Field(description="The ID of the existing Web3 connection to remove.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> None: + """Remove an existing Web3 connection. + + Remove a Web3 connection + + :param id: The ID of the existing Web3 connection to remove. (required) + :type id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._remove_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': None, + '404': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def remove_with_http_info( + self, + id: Annotated[StrictStr, Field(description="The ID of the existing Web3 connection to remove.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[None]: + """Remove an existing Web3 connection. + + Remove a Web3 connection + + :param id: The ID of the existing Web3 connection to remove. (required) + :type id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._remove_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': None, + '404': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def remove_without_preload_content( + self, + id: Annotated[StrictStr, Field(description="The ID of the existing Web3 connection to remove.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Remove an existing Web3 connection. + + Remove a Web3 connection + + :param id: The ID of the existing Web3 connection to remove. (required) + :type id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._remove_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': None, + '404': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _remove_serialize( + self, + id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/connections/wc/{id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def submit( + self, + id: Annotated[StrictStr, Field(description="The ID of the initiated Web3 connection to approve.")], + respond_to_connection_request: RespondToConnectionRequest, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> None: + """Respond to a pending Web3 connection request. + + Submit a response to *approve* or *reject* an initiated Web3 connection. * Note: This call is used to complete your `POST /v1/connections/wc/` request. After this succeeds, your new Web3 connection is created and functioning. + + :param id: The ID of the initiated Web3 connection to approve. (required) + :type id: str + :param respond_to_connection_request: (required) + :type respond_to_connection_request: RespondToConnectionRequest + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._submit_serialize( + id=id, + respond_to_connection_request=respond_to_connection_request, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': None, + '400': None, + '404': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def submit_with_http_info( + self, + id: Annotated[StrictStr, Field(description="The ID of the initiated Web3 connection to approve.")], + respond_to_connection_request: RespondToConnectionRequest, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[None]: + """Respond to a pending Web3 connection request. + + Submit a response to *approve* or *reject* an initiated Web3 connection. * Note: This call is used to complete your `POST /v1/connections/wc/` request. After this succeeds, your new Web3 connection is created and functioning. + + :param id: The ID of the initiated Web3 connection to approve. (required) + :type id: str + :param respond_to_connection_request: (required) + :type respond_to_connection_request: RespondToConnectionRequest + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._submit_serialize( + id=id, + respond_to_connection_request=respond_to_connection_request, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': None, + '400': None, + '404': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def submit_without_preload_content( + self, + id: Annotated[StrictStr, Field(description="The ID of the initiated Web3 connection to approve.")], + respond_to_connection_request: RespondToConnectionRequest, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Respond to a pending Web3 connection request. + + Submit a response to *approve* or *reject* an initiated Web3 connection. * Note: This call is used to complete your `POST /v1/connections/wc/` request. After this succeeds, your new Web3 connection is created and functioning. + + :param id: The ID of the initiated Web3 connection to approve. (required) + :type id: str + :param respond_to_connection_request: (required) + :type respond_to_connection_request: RespondToConnectionRequest + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._submit_serialize( + id=id, + respond_to_connection_request=respond_to_connection_request, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': None, + '400': None, + '404': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _submit_serialize( + self, + id, + respond_to_connection_request, + idempotency_key, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + if respond_to_connection_request is not None: + _body_params = respond_to_connection_request + + + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/connections/wc/{id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/fireblocks_client/api/webhooks_api.py b/fireblocks_client/api/webhooks_api.py new file mode 100644 index 00000000..0523a8e7 --- /dev/null +++ b/fireblocks_client/api/webhooks_api.py @@ -0,0 +1,599 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from pydantic import Field, StrictStr +from typing import Optional +from typing_extensions import Annotated +from fireblocks_client.models.resend_transaction_webhooks_request import ResendTransactionWebhooksRequest +from fireblocks_client.models.resend_webhooks_by_transaction_id_response import ResendWebhooksByTransactionIdResponse +from fireblocks_client.models.resend_webhooks_response import ResendWebhooksResponse + +from fireblocks_client.api_client import ApiClient, RequestSerialized +from fireblocks_client.api_response import ApiResponse +from fireblocks_client.rest import RESTResponseType + + +class WebhooksApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def resend_transaction_webhooks( + self, + tx_id: Annotated[StrictStr, Field(description="The ID of the transaction for webhooks")], + resend_transaction_webhooks_request: ResendTransactionWebhooksRequest, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ResendWebhooksByTransactionIdResponse: + """Resend failed webhooks for a transaction by ID + + Resends failed webhook notifications for a transaction by ID. + + :param tx_id: The ID of the transaction for webhooks (required) + :type tx_id: str + :param resend_transaction_webhooks_request: (required) + :type resend_transaction_webhooks_request: ResendTransactionWebhooksRequest + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._resend_transaction_webhooks_serialize( + tx_id=tx_id, + resend_transaction_webhooks_request=resend_transaction_webhooks_request, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ResendWebhooksByTransactionIdResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def resend_transaction_webhooks_with_http_info( + self, + tx_id: Annotated[StrictStr, Field(description="The ID of the transaction for webhooks")], + resend_transaction_webhooks_request: ResendTransactionWebhooksRequest, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ResendWebhooksByTransactionIdResponse]: + """Resend failed webhooks for a transaction by ID + + Resends failed webhook notifications for a transaction by ID. + + :param tx_id: The ID of the transaction for webhooks (required) + :type tx_id: str + :param resend_transaction_webhooks_request: (required) + :type resend_transaction_webhooks_request: ResendTransactionWebhooksRequest + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._resend_transaction_webhooks_serialize( + tx_id=tx_id, + resend_transaction_webhooks_request=resend_transaction_webhooks_request, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ResendWebhooksByTransactionIdResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def resend_transaction_webhooks_without_preload_content( + self, + tx_id: Annotated[StrictStr, Field(description="The ID of the transaction for webhooks")], + resend_transaction_webhooks_request: ResendTransactionWebhooksRequest, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Resend failed webhooks for a transaction by ID + + Resends failed webhook notifications for a transaction by ID. + + :param tx_id: The ID of the transaction for webhooks (required) + :type tx_id: str + :param resend_transaction_webhooks_request: (required) + :type resend_transaction_webhooks_request: ResendTransactionWebhooksRequest + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._resend_transaction_webhooks_serialize( + tx_id=tx_id, + resend_transaction_webhooks_request=resend_transaction_webhooks_request, + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ResendWebhooksByTransactionIdResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _resend_transaction_webhooks_serialize( + self, + tx_id, + resend_transaction_webhooks_request, + idempotency_key, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if tx_id is not None: + _path_params['txId'] = tx_id + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + if resend_transaction_webhooks_request is not None: + _body_params = resend_transaction_webhooks_request + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/webhooks/resend/{txId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def resend_webhooks( + self, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ResendWebhooksResponse: + """Resend failed webhooks + + Resends all failed webhook notifications. + + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._resend_webhooks_serialize( + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ResendWebhooksResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def resend_webhooks_with_http_info( + self, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ResendWebhooksResponse]: + """Resend failed webhooks + + Resends all failed webhook notifications. + + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._resend_webhooks_serialize( + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ResendWebhooksResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def resend_webhooks_without_preload_content( + self, + idempotency_key: Annotated[Optional[StrictStr], Field(description="A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Resend failed webhooks + + Resends all failed webhook notifications. + + :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. + :type idempotency_key: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._resend_webhooks_serialize( + idempotency_key=idempotency_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ResendWebhooksResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _resend_webhooks_serialize( + self, + idempotency_key, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + if idempotency_key is not None: + _header_params['Idempotency-Key'] = idempotency_key + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/webhooks/resend', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/fireblocks_client/api/whitelist_ip_addresses_api.py b/fireblocks_client/api/whitelist_ip_addresses_api.py new file mode 100644 index 00000000..35d4c065 --- /dev/null +++ b/fireblocks_client/api/whitelist_ip_addresses_api.py @@ -0,0 +1,305 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from pydantic import Field, StrictStr +from typing_extensions import Annotated +from fireblocks_client.models.get_whitelist_ip_addresses_response import GetWhitelistIpAddressesResponse + +from fireblocks_client.api_client import ApiClient, RequestSerialized +from fireblocks_client.api_response import ApiResponse +from fireblocks_client.rest import RESTResponseType + + +class WhitelistIpAddressesApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def get_whitelist_ip_addresses( + self, + user_id: Annotated[StrictStr, Field(description="The ID of the api user")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetWhitelistIpAddressesResponse: + """Gets whitelisted ip addresses + + Gets whitelisted ip addresses for given Api user. + + :param user_id: The ID of the api user (required) + :type user_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_whitelist_ip_addresses_serialize( + user_id=user_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetWhitelistIpAddressesResponse", + '401': "ErrorResponse", + '403': "ErrorResponse", + '5XX': "ErrorResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_whitelist_ip_addresses_with_http_info( + self, + user_id: Annotated[StrictStr, Field(description="The ID of the api user")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetWhitelistIpAddressesResponse]: + """Gets whitelisted ip addresses + + Gets whitelisted ip addresses for given Api user. + + :param user_id: The ID of the api user (required) + :type user_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_whitelist_ip_addresses_serialize( + user_id=user_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetWhitelistIpAddressesResponse", + '401': "ErrorResponse", + '403': "ErrorResponse", + '5XX': "ErrorResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_whitelist_ip_addresses_without_preload_content( + self, + user_id: Annotated[StrictStr, Field(description="The ID of the api user")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Gets whitelisted ip addresses + + Gets whitelisted ip addresses for given Api user. + + :param user_id: The ID of the api user (required) + :type user_id: 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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_whitelist_ip_addresses_serialize( + user_id=user_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetWhitelistIpAddressesResponse", + '401': "ErrorResponse", + '403': "ErrorResponse", + '5XX': "ErrorResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_whitelist_ip_addresses_serialize( + self, + user_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if user_id is not None: + _path_params['userId'] = user_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/management/api_users/{userId}/whitelist_ip_addresses', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/fireblocks_client/api/workspace_status_beta_api.py b/fireblocks_client/api/workspace_status_beta_api.py new file mode 100644 index 00000000..ad237019 --- /dev/null +++ b/fireblocks_client/api/workspace_status_beta_api.py @@ -0,0 +1,282 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from fireblocks_client.models.get_workspace_status_response import GetWorkspaceStatusResponse + +from fireblocks_client.api_client import ApiClient, RequestSerialized +from fireblocks_client.api_response import ApiResponse +from fireblocks_client.rest import RESTResponseType + + +class WorkspaceStatusBetaApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def get_workspace_status( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetWorkspaceStatusResponse: + """Returns current workspace status + + Returns current workspace status + + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_workspace_status_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetWorkspaceStatusResponse", + '404': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_workspace_status_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetWorkspaceStatusResponse]: + """Returns current workspace status + + Returns current workspace status + + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_workspace_status_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetWorkspaceStatusResponse", + '404': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_workspace_status_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Returns current workspace status + + Returns current workspace status + + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_workspace_status_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetWorkspaceStatusResponse", + '404': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_workspace_status_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/management/workspace_status', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/fireblocks_client/api_client.py b/fireblocks_client/api_client.py index 49672818..bea90814 100644 --- a/fireblocks_client/api_client.py +++ b/fireblocks_client/api_client.py @@ -3,1617 +3,711 @@ """ Fireblocks API - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) The version of the OpenAPI document: 1.6.2 Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 -import math -import platform -import secrets -import time -from dataclasses import dataclass -from decimal import Decimal -import enum -import email + +import datetime +from dateutil.parser import parse +from enum import Enum import json +import mimetypes import os -import io -import atexit -from hashlib import sha256 -from multiprocessing.pool import ThreadPool import re import tempfile -import typing - -import jwt -import setuptools -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict -from urllib.parse import urlparse, quote, urlencode -from urllib3.fields import RequestField as RequestFieldBase -import frozendict +from urllib.parse import quote +from typing import Tuple, Optional, List, Dict -from fireblocks_client import rest from fireblocks_client.configuration import Configuration -from fireblocks_client.exceptions import ApiTypeError, ApiValueError -from fireblocks_client.schemas import ( - NoneClass, - BoolClass, - Schema, - FileIO, - BinarySchema, - date, - datetime, - none_type, - Unset, - unset, +from fireblocks_client.api_response import ApiResponse, T as ApiResponseT +import fireblocks_client.models +from fireblocks_client import rest +from fireblocks_client.exceptions import ( + ApiValueError, + ApiException, + BadRequestException, + UnauthorizedException, + ForbiddenException, + NotFoundException, + ServiceException, ) - -class RequestField(RequestFieldBase): - def __eq__(self, other): - if not isinstance(other, RequestField): - return False - return self.__dict__ == other.__dict__ - - -class JSONEncoder(json.JSONEncoder): - compact_separators = (",", ":") - - def default(self, obj): - if isinstance(obj, str): - return str(obj) - elif isinstance(obj, float): - return float(obj) - elif isinstance(obj, int): - return int(obj) - elif isinstance(obj, Decimal): - if obj.as_tuple().exponent >= 0: - return int(obj) - return float(obj) - elif isinstance(obj, NoneClass): - return None - elif isinstance(obj, BoolClass): - return bool(obj) - elif isinstance(obj, (dict, frozendict.frozendict)): - return {key: self.default(val) for key, val in obj.items()} - elif isinstance(obj, (list, tuple)): - return [self.default(item) for item in obj] - raise ApiValueError( - "Unable to prepare type {} for serialization".format(obj.__class__.__name__) - ) +RequestSerialized = Tuple[str, str, Dict[str, str], Optional[str], List[str]] -class ParameterInType(enum.Enum): - QUERY = "query" - HEADER = "header" - PATH = "path" - COOKIE = "cookie" +class ApiClient: + """Generic API client for OpenAPI client library builds. + OpenAPI generic API client. This client handles the client- + server communication, and is invariant across implementations. Specifics of + the methods and models for each application are generated from the OpenAPI + templates. -class ParameterStyle(enum.Enum): - MATRIX = "matrix" - LABEL = "label" - FORM = "form" - SIMPLE = "simple" - SPACE_DELIMITED = "spaceDelimited" - PIPE_DELIMITED = "pipeDelimited" - DEEP_OBJECT = "deepObject" + :param configuration: .Configuration object for this client + :param header_name: a header to pass when making calls to the API. + :param header_value: a header value to pass when making calls to + the API. + :param cookie: a cookie to include in the header when making calls + to the API + """ + PRIMITIVE_TYPES = (float, bool, bytes, str, int) + NATIVE_TYPES_MAPPING = { + "int": int, + "long": int, # TODO remove as only py3 is supported? + "float": float, + "str": str, + "bool": bool, + "date": datetime.date, + "datetime": datetime.datetime, + "object": object, + } + _pool = None -class PrefixSeparatorIterator: - # A class to store prefixes and separators for rfc6570 expansions + def __init__( + self, configuration=None, header_name=None, header_value=None, cookie=None + ) -> None: + # use default configuration if none is provided + if configuration is None: + configuration = Configuration.get_default() + self.configuration = configuration - def __init__(self, prefix: str, separator: str): - self.prefix = prefix - self.separator = separator - self.first = True - if separator in {".", "|", "%20"}: - item_separator = separator - else: - item_separator = "," - self.item_separator = item_separator + self.rest_client = rest.RESTClientObject(configuration) + self.default_headers = {} + if header_name is not None: + self.default_headers[header_name] = header_value + self.cookie = cookie + # Set default User-Agent. + self.user_agent = "OpenAPI-Generator/1.0.0/python" + self.client_side_validation = configuration.client_side_validation - def __iter__(self): + def __enter__(self): return self - def __next__(self): - if self.first: - self.first = False - return self.prefix - return self.separator + def __exit__(self, exc_type, exc_value, traceback): + pass + @property + def user_agent(self): + """User agent for this API client""" + return self.default_headers["User-Agent"] -class ParameterSerializerBase: - @classmethod - def _get_default_explode(cls, style: ParameterStyle) -> bool: - return False + @user_agent.setter + def user_agent(self, value): + self.default_headers["User-Agent"] = value - @staticmethod - def __ref6570_item_value(in_data: typing.Any, percent_encode: bool): - """ - Get representation if str/float/int/None/items in list/ values in dict - None is returned if an item is undefined, use cases are value= - - None - - [] - - {} - - [None, None None] - - {'a': None, 'b': None} - """ - if type(in_data) in {str, float, int}: - if percent_encode: - return quote(str(in_data)) - return str(in_data) - elif isinstance(in_data, none_type): - # ignored by the expansion process https://datatracker.ietf.org/doc/html/rfc6570#section-3.2.1 - return None - elif isinstance(in_data, list) and not in_data: - # ignored by the expansion process https://datatracker.ietf.org/doc/html/rfc6570#section-3.2.1 - return None - elif isinstance(in_data, dict) and not in_data: - # ignored by the expansion process https://datatracker.ietf.org/doc/html/rfc6570#section-3.2.1 - return None - raise ApiValueError( - "Unable to generate a ref6570 item representation of {}".format(in_data) - ) - - @staticmethod - def _to_dict(name: str, value: str): - return {name: value} + def set_default_header(self, header_name, header_value): + self.default_headers[header_name] = header_value - @classmethod - def __ref6570_str_float_int_expansion( - cls, - variable_name: str, - in_data: typing.Any, - explode: bool, - percent_encode: bool, - prefix_separator_iterator: PrefixSeparatorIterator, - var_name_piece: str, - named_parameter_expansion: bool, - ) -> str: - item_value = cls.__ref6570_item_value(in_data, percent_encode) - if item_value is None or ( - item_value == "" and prefix_separator_iterator.separator == ";" - ): - return next(prefix_separator_iterator) + var_name_piece - value_pair_equals = "=" if named_parameter_expansion else "" - return ( - next(prefix_separator_iterator) - + var_name_piece - + value_pair_equals - + item_value - ) + _default = None @classmethod - def __ref6570_list_expansion( - cls, - variable_name: str, - in_data: typing.Any, - explode: bool, - percent_encode: bool, - prefix_separator_iterator: PrefixSeparatorIterator, - var_name_piece: str, - named_parameter_expansion: bool, - ) -> str: - item_values = [cls.__ref6570_item_value(v, percent_encode) for v in in_data] - item_values = [v for v in item_values if v is not None] - if not item_values: - # ignored by the expansion process https://datatracker.ietf.org/doc/html/rfc6570#section-3.2.1 - return "" - value_pair_equals = "=" if named_parameter_expansion else "" - if not explode: - return ( - next(prefix_separator_iterator) - + var_name_piece - + value_pair_equals - + prefix_separator_iterator.item_separator.join(item_values) - ) - # exploded - return next(prefix_separator_iterator) + next(prefix_separator_iterator).join( - [var_name_piece + value_pair_equals + val for val in item_values] - ) + def get_default(cls): + """Return new instance of ApiClient. - @classmethod - def __ref6570_dict_expansion( - cls, - variable_name: str, - in_data: typing.Any, - explode: bool, - percent_encode: bool, - prefix_separator_iterator: PrefixSeparatorIterator, - var_name_piece: str, - named_parameter_expansion: bool, - ) -> str: - in_data_transformed = { - key: cls.__ref6570_item_value(val, percent_encode) - for key, val in in_data.items() - } - in_data_transformed = { - key: val for key, val in in_data_transformed.items() if val is not None - } - if not in_data_transformed: - # ignored by the expansion process https://datatracker.ietf.org/doc/html/rfc6570#section-3.2.1 - return "" - value_pair_equals = "=" if named_parameter_expansion else "" - if not explode: - return ( - next(prefix_separator_iterator) - + var_name_piece - + value_pair_equals - + prefix_separator_iterator.item_separator.join( - prefix_separator_iterator.item_separator.join(item_pair) - for item_pair in in_data_transformed.items() - ) - ) - # exploded - return next(prefix_separator_iterator) + next(prefix_separator_iterator).join( - [key + "=" + val for key, val in in_data_transformed.items()] - ) + This method returns newly created, based on default constructor, + object of ApiClient class or returns a copy of default + ApiClient. - @classmethod - def _ref6570_expansion( - cls, - variable_name: str, - in_data: typing.Any, - explode: bool, - percent_encode: bool, - prefix_separator_iterator: PrefixSeparatorIterator, - ) -> str: - """ - Separator is for separate variables like dict with explode true, not for array item separation + :return: The ApiClient object. """ - named_parameter_expansion = prefix_separator_iterator.separator in {"&", ";"} - var_name_piece = variable_name if named_parameter_expansion else "" - if type(in_data) in {str, float, int}: - return cls.__ref6570_str_float_int_expansion( - variable_name, - in_data, - explode, - percent_encode, - prefix_separator_iterator, - var_name_piece, - named_parameter_expansion, - ) - elif isinstance(in_data, none_type): - # ignored by the expansion process https://datatracker.ietf.org/doc/html/rfc6570#section-3.2.1 - return "" - elif isinstance(in_data, list): - return cls.__ref6570_list_expansion( - variable_name, - in_data, - explode, - percent_encode, - prefix_separator_iterator, - var_name_piece, - named_parameter_expansion, - ) - elif isinstance(in_data, dict): - return cls.__ref6570_dict_expansion( - variable_name, - in_data, - explode, - percent_encode, - prefix_separator_iterator, - var_name_piece, - named_parameter_expansion, - ) - # bool, bytes, etc - raise ApiValueError( - "Unable to generate a ref6570 representation of {}".format(in_data) - ) - + if cls._default is None: + cls._default = ApiClient() + return cls._default -class StyleFormSerializer(ParameterSerializerBase): @classmethod - def _get_default_explode(cls, style: ParameterStyle) -> bool: - if style is ParameterStyle.FORM: - return True - return super()._get_default_explode(style) + def set_default(cls, default): + """Set default instance of ApiClient. - def _serialize_form( - self, - in_data: typing.Union[None, int, float, str, bool, dict, list], - name: str, - explode: bool, - percent_encode: bool, - prefix_separator_iterator: typing.Optional[PrefixSeparatorIterator] = None, - ) -> str: - if prefix_separator_iterator is None: - prefix_separator_iterator = PrefixSeparatorIterator("", "&") - return self._ref6570_expansion( - variable_name=name, - in_data=in_data, - explode=explode, - percent_encode=percent_encode, - prefix_separator_iterator=prefix_separator_iterator, - ) + It stores default ApiClient. + :param default: object of ApiClient. + """ + cls._default = default -class StyleSimpleSerializer(ParameterSerializerBase): - def _serialize_simple( + def param_serialize( self, - in_data: typing.Union[None, int, float, str, bool, dict, list], - name: str, - explode: bool, - percent_encode: bool, - ) -> str: - prefix_separator_iterator = PrefixSeparatorIterator("", ",") - return self._ref6570_expansion( - variable_name=name, - in_data=in_data, - explode=explode, - percent_encode=percent_encode, - prefix_separator_iterator=prefix_separator_iterator, - ) - - -class JSONDetector: - """ - Works for: - application/json - application/json; charset=UTF-8 - application/json-patch+json - application/geo+json - """ - - __json_content_type_pattern = re.compile("application/[^+]*[+]?(json);?.*") - - @classmethod - def _content_type_is_json(cls, content_type: str) -> bool: - if cls.__json_content_type_pattern.match(content_type): - return True - return False - - -@dataclass -class ParameterBase(JSONDetector): - name: str - in_type: ParameterInType - required: bool - style: typing.Optional[ParameterStyle] - explode: typing.Optional[bool] - allow_reserved: typing.Optional[bool] - schema: typing.Optional[typing.Type[Schema]] - content: typing.Optional[typing.Dict[str, typing.Type[Schema]]] - - __style_to_in_type = { - ParameterStyle.MATRIX: {ParameterInType.PATH}, - ParameterStyle.LABEL: {ParameterInType.PATH}, - ParameterStyle.FORM: {ParameterInType.QUERY, ParameterInType.COOKIE}, - ParameterStyle.SIMPLE: {ParameterInType.PATH, ParameterInType.HEADER}, - ParameterStyle.SPACE_DELIMITED: {ParameterInType.QUERY}, - ParameterStyle.PIPE_DELIMITED: {ParameterInType.QUERY}, - ParameterStyle.DEEP_OBJECT: {ParameterInType.QUERY}, - } - __in_type_to_default_style = { - ParameterInType.QUERY: ParameterStyle.FORM, - ParameterInType.PATH: ParameterStyle.SIMPLE, - ParameterInType.HEADER: ParameterStyle.SIMPLE, - ParameterInType.COOKIE: ParameterStyle.FORM, - } - __disallowed_header_names = {"Accept", "Content-Type", "Authorization"} - _json_encoder = JSONEncoder() + method, + resource_path, + path_params=None, + query_params=None, + header_params=None, + body=None, + post_params=None, + files=None, + auth_settings=None, + collection_formats=None, + _host=None, + _request_auth=None, + ) -> RequestSerialized: + """Builds the HTTP request params needed by the request. + :param method: Method to call. + :param resource_path: Path to method endpoint. + :param path_params: Path parameters in the url. + :param query_params: Query parameters in the url. + :param header_params: Header parameters to be + placed in the request header. + :param body: Request body. + :param post_params dict: Request post form parameters, + for `application/x-www-form-urlencoded`, `multipart/form-data`. + :param auth_settings list: Auth Settings names for the request. + :param files dict: key -> filename, value -> filepath, + for `multipart/form-data`. + :param collection_formats: dict of collection formats for path, query, + header, and post parameters. + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + :return: tuple of form (path, http_method, query_params, header_params, + body, post_params, files) + """ - @classmethod - def __verify_style_to_in_type( - cls, style: typing.Optional[ParameterStyle], in_type: ParameterInType - ): - if style is None: - return - in_type_set = cls.__style_to_in_type[style] - if in_type not in in_type_set: - raise ValueError( - "Invalid style and in_type combination. For style={} only in_type={} are allowed".format( - style, in_type_set - ) - ) + config = self.configuration - def __init__( - self, - name: str, - in_type: ParameterInType, - required: bool = False, - style: typing.Optional[ParameterStyle] = None, - explode: bool = False, - allow_reserved: typing.Optional[bool] = None, - schema: typing.Optional[typing.Type[Schema]] = None, - content: typing.Optional[typing.Dict[str, typing.Type[Schema]]] = None, - ): - if schema is None and content is None: - raise ValueError("Value missing; Pass in either schema or content") - if schema and content: - raise ValueError( - "Too many values provided. Both schema and content were provided. Only one may be input" - ) - if name in self.__disallowed_header_names and in_type is ParameterInType.HEADER: - raise ValueError( - "Invalid name, name may not be one of {}".format( - self.__disallowed_header_names + # header parameters + header_params = header_params or {} + header_params.update(self.default_headers) + if self.cookie: + header_params["Cookie"] = self.cookie + if header_params: + header_params = self.sanitize_for_serialization(header_params) + header_params = dict( + self.parameters_to_tuples(header_params, collection_formats) + ) + + # path parameters + if path_params: + path_params = self.sanitize_for_serialization(path_params) + path_params = self.parameters_to_tuples(path_params, collection_formats) + for k, v in path_params: + # specified safe chars, encode everything + resource_path = resource_path.replace( + "{%s}" % k, quote(str(v), safe=config.safe_chars_for_path_param) ) - ) - self.__verify_style_to_in_type(style, in_type) - if content is None and style is None: - style = self.__in_type_to_default_style[in_type] - if ( - content is not None - and in_type in self.__in_type_to_default_style - and len(content) != 1 - ): - raise ValueError("Invalid content length, content length must equal 1") - self.in_type = in_type - self.name = name - self.required = required - self.style = style - self.explode = explode - self.allow_reserved = allow_reserved - self.schema = schema - self.content = content - - def _serialize_json( - self, - in_data: typing.Union[None, int, float, str, bool, dict, list], - eliminate_whitespace: bool = False, - ) -> str: - if eliminate_whitespace: - return json.dumps(in_data, separators=self._json_encoder.compact_separators) - return json.dumps(in_data) - -class PathParameter(ParameterBase, StyleSimpleSerializer): - def __init__( - self, - name: str, - required: bool = False, - style: typing.Optional[ParameterStyle] = None, - explode: bool = False, - allow_reserved: typing.Optional[bool] = None, - schema: typing.Optional[typing.Type[Schema]] = None, - content: typing.Optional[typing.Dict[str, typing.Type[Schema]]] = None, - ): - super().__init__( - name, - in_type=ParameterInType.PATH, - required=required, - style=style, - explode=explode, - allow_reserved=allow_reserved, - schema=schema, - content=content, + # post parameters + if post_params or files: + post_params = post_params if post_params else [] + post_params = self.sanitize_for_serialization(post_params) + post_params = self.parameters_to_tuples(post_params, collection_formats) + post_params.extend(self.files_parameters(files)) + + # auth setting + self.update_params_for_auth( + header_params, + query_params, + auth_settings, + resource_path, + method, + body, + request_auth=_request_auth, ) - def __serialize_label( - self, in_data: typing.Union[None, int, float, str, bool, dict, list] - ) -> typing.Dict[str, str]: - prefix_separator_iterator = PrefixSeparatorIterator(".", ".") - value = self._ref6570_expansion( - variable_name=self.name, - in_data=in_data, - explode=self.explode, - percent_encode=True, - prefix_separator_iterator=prefix_separator_iterator, - ) - return self._to_dict(self.name, value) - - def __serialize_matrix( - self, in_data: typing.Union[None, int, float, str, bool, dict, list] - ) -> typing.Dict[str, str]: - prefix_separator_iterator = PrefixSeparatorIterator(";", ";") - value = self._ref6570_expansion( - variable_name=self.name, - in_data=in_data, - explode=self.explode, - percent_encode=True, - prefix_separator_iterator=prefix_separator_iterator, - ) - return self._to_dict(self.name, value) + # body + if body: + body = self.sanitize_for_serialization(body) - def __serialize_simple( - self, - in_data: typing.Union[None, int, float, str, bool, dict, list], - ) -> typing.Dict[str, str]: - value = self._serialize_simple( - in_data=in_data, name=self.name, explode=self.explode, percent_encode=True - ) - return self._to_dict(self.name, value) + # request url + if _host is None: + url = self.configuration.host + resource_path + else: + # use server/host defined in path or operation instead + url = _host + resource_path - def serialize( - self, - in_data: typing.Union[ - Schema, - Decimal, - int, - float, - str, - date, - datetime, - None, - bool, - list, - tuple, - dict, - frozendict.frozendict, - ], - ) -> typing.Dict[str, str]: - if self.schema: - cast_in_data = self.schema(in_data) - cast_in_data = self._json_encoder.default(cast_in_data) - """ - simple -> path - path: - returns path_params: dict - label -> path - returns path_params - matrix -> path - returns path_params - """ - if self.style: - if self.style is ParameterStyle.SIMPLE: - return self.__serialize_simple(cast_in_data) - elif self.style is ParameterStyle.LABEL: - return self.__serialize_label(cast_in_data) - elif self.style is ParameterStyle.MATRIX: - return self.__serialize_matrix(cast_in_data) - # self.content will be length one - for content_type, schema in self.content.items(): - cast_in_data = schema(in_data) - cast_in_data = self._json_encoder.default(cast_in_data) - if self._content_type_is_json(content_type): - value = self._serialize_json(cast_in_data) - return self._to_dict(self.name, value) - raise NotImplementedError( - "Serialization of {} has not yet been implemented".format(content_type) - ) + # query parameters + if query_params: + query_params = self.sanitize_for_serialization(query_params) + url_query = self.parameters_to_url_query(query_params, collection_formats) + url += "?" + url_query + return method, url, header_params, body, post_params -class QueryParameter(ParameterBase, StyleFormSerializer): - def __init__( + def call_api( self, - name: str, - required: bool = False, - style: typing.Optional[ParameterStyle] = None, - explode: typing.Optional[bool] = None, - allow_reserved: typing.Optional[bool] = None, - schema: typing.Optional[typing.Type[Schema]] = None, - content: typing.Optional[typing.Dict[str, typing.Type[Schema]]] = None, - ): - used_style = ParameterStyle.FORM if style is None else style - used_explode = ( - self._get_default_explode(used_style) if explode is None else explode - ) + method, + url, + header_params=None, + body=None, + post_params=None, + _request_timeout=None, + ) -> rest.RESTResponse: + """Makes the HTTP request (synchronous) + :param method: Method to call. + :param url: Path to method endpoint. + :param header_params: Header parameters to be + placed in the request header. + :param body: Request body. + :param post_params dict: Request post form parameters, + for `application/x-www-form-urlencoded`, `multipart/form-data`. + :param _request_timeout: timeout setting for this request. + :return: RESTResponse + """ - super().__init__( - name, - in_type=ParameterInType.QUERY, - required=required, - style=used_style, - explode=used_explode, - allow_reserved=allow_reserved, - schema=schema, - content=content, - ) + try: + # perform request and return response + response_data = self.rest_client.request( + method, + url, + headers=header_params, + body=body, + post_params=post_params, + _request_timeout=_request_timeout, + ) - def __serialize_space_delimited( - self, - in_data: typing.Union[None, int, float, str, bool, dict, list], - prefix_separator_iterator: typing.Optional[PrefixSeparatorIterator], - ) -> typing.Dict[str, str]: - if prefix_separator_iterator is None: - prefix_separator_iterator = self.get_prefix_separator_iterator() - value = self._ref6570_expansion( - variable_name=self.name, - in_data=in_data, - explode=self.explode, - percent_encode=True, - prefix_separator_iterator=prefix_separator_iterator, - ) - return self._to_dict(self.name, value) + except ApiException as e: + raise e - def __serialize_pipe_delimited( - self, - in_data: typing.Union[None, int, float, str, bool, dict, list], - prefix_separator_iterator: typing.Optional[PrefixSeparatorIterator], - ) -> typing.Dict[str, str]: - if prefix_separator_iterator is None: - prefix_separator_iterator = self.get_prefix_separator_iterator() - value = self._ref6570_expansion( - variable_name=self.name, - in_data=in_data, - explode=self.explode, - percent_encode=True, - prefix_separator_iterator=prefix_separator_iterator, - ) - return self._to_dict(self.name, value) + return response_data - def __serialize_form( + def response_deserialize( self, - in_data: typing.Union[None, int, float, str, bool, dict, list], - prefix_separator_iterator: typing.Optional[PrefixSeparatorIterator], - ) -> typing.Dict[str, str]: - if prefix_separator_iterator is None: - prefix_separator_iterator = self.get_prefix_separator_iterator() - value = self._serialize_form( - in_data, - name=self.name, - explode=self.explode, - percent_encode=True, - prefix_separator_iterator=prefix_separator_iterator, - ) - return self._to_dict(self.name, value) + response_data: rest.RESTResponse, + response_types_map: Optional[Dict[str, ApiResponseT]] = None, + ) -> ApiResponse[ApiResponseT]: + """Deserializes response into an object. + :param response_data: RESTResponse object to be deserialized. + :param response_types_map: dict of response types. + :return: ApiResponse + """ - def get_prefix_separator_iterator(self) -> typing.Optional[PrefixSeparatorIterator]: - if self.style is ParameterStyle.FORM: - return PrefixSeparatorIterator("?", "&") - elif self.style is ParameterStyle.SPACE_DELIMITED: - return PrefixSeparatorIterator("", "%20") - elif self.style is ParameterStyle.PIPE_DELIMITED: - return PrefixSeparatorIterator("", "|") + msg = "RESTResponse.read() must be called before passing it to response_deserialize()" + assert response_data.data is not None, msg - def serialize( - self, - in_data: typing.Union[ - Schema, - Decimal, - int, - float, - str, - date, - datetime, - None, - bool, - list, - tuple, - dict, - frozendict.frozendict, - ], - prefix_separator_iterator: typing.Optional[PrefixSeparatorIterator] = None, - ) -> typing.Dict[str, str]: - if self.schema: - cast_in_data = self.schema(in_data) - cast_in_data = self._json_encoder.default(cast_in_data) - """ - form -> query - query: - - GET/HEAD/DELETE: could use fields - - PUT/POST: must use urlencode to send parameters - returns fields: tuple - spaceDelimited -> query - returns fields - pipeDelimited -> query - returns fields - deepObject -> query, https://github.com/OAI/OpenAPI-Specification/issues/1706 - returns fields - """ - if self.style: - # TODO update query ones to omit setting values when [] {} or None is input - if self.style is ParameterStyle.FORM: - return self.__serialize_form( - cast_in_data, prefix_separator_iterator - ) - elif self.style is ParameterStyle.SPACE_DELIMITED: - return self.__serialize_space_delimited( - cast_in_data, prefix_separator_iterator - ) - elif self.style is ParameterStyle.PIPE_DELIMITED: - return self.__serialize_pipe_delimited( - cast_in_data, prefix_separator_iterator - ) - # self.content will be length one - if prefix_separator_iterator is None: - prefix_separator_iterator = self.get_prefix_separator_iterator() - for content_type, schema in self.content.items(): - cast_in_data = schema(in_data) - cast_in_data = self._json_encoder.default(cast_in_data) - if self._content_type_is_json(content_type): - value = self._serialize_json(cast_in_data, eliminate_whitespace=True) - return self._to_dict( - self.name, - next(prefix_separator_iterator) + self.name + "=" + quote(value), - ) - raise NotImplementedError( - "Serialization of {} has not yet been implemented".format(content_type) + response_type = response_types_map.get(str(response_data.status), None) + if ( + not response_type + and isinstance(response_data.status, int) + and 100 <= response_data.status <= 599 + ): + # if not found, look for '1XX', '2XX', etc. + response_type = response_types_map.get( + str(response_data.status)[0] + "XX", None ) - -class CookieParameter(ParameterBase, StyleFormSerializer): - def __init__( - self, - name: str, - required: bool = False, - style: typing.Optional[ParameterStyle] = None, - explode: typing.Optional[bool] = None, - allow_reserved: typing.Optional[bool] = None, - schema: typing.Optional[typing.Type[Schema]] = None, - content: typing.Optional[typing.Dict[str, typing.Type[Schema]]] = None, - ): - used_style = ( - ParameterStyle.FORM - if style is None and content is None and schema - else style - ) - used_explode = ( - self._get_default_explode(used_style) if explode is None else explode - ) - - super().__init__( - name, - in_type=ParameterInType.COOKIE, - required=required, - style=used_style, - explode=used_explode, - allow_reserved=allow_reserved, - schema=schema, - content=content, - ) - - def serialize( - self, - in_data: typing.Union[ - Schema, - Decimal, - int, - float, - str, - date, - datetime, - None, - bool, - list, - tuple, - dict, - frozendict.frozendict, - ], - ) -> typing.Dict[str, str]: - if self.schema: - cast_in_data = self.schema(in_data) - cast_in_data = self._json_encoder.default(cast_in_data) - """ - form -> cookie - returns fields: tuple - """ - if self.style: - """ - TODO add escaping of comma, space, equals - or turn encoding on - """ - value = self._serialize_form( - cast_in_data, - explode=self.explode, - name=self.name, - percent_encode=False, - prefix_separator_iterator=PrefixSeparatorIterator("", "&"), + # deserialize response data + response_text = None + return_data = None + try: + if response_type == "bytearray": + return_data = response_data.data + elif response_type == "file": + return_data = self.__deserialize_file(response_data) + elif response_type is not None: + match = None + content_type = response_data.getheader("content-type") + if content_type is not None: + match = re.search(r"charset=([a-zA-Z\-\d]+)[\s;]?", content_type) + encoding = match.group(1) if match else "utf-8" + response_text = response_data.data.decode(encoding) + return_data = self.deserialize(response_text, response_type) + finally: + if not 200 <= response_data.status <= 299: + raise ApiException.from_response( + http_resp=response_data, + body=response_text, + data=return_data, ) - return self._to_dict(self.name, value) - # self.content will be length one - for content_type, schema in self.content.items(): - cast_in_data = schema(in_data) - cast_in_data = self._json_encoder.default(cast_in_data) - if self._content_type_is_json(content_type): - value = self._serialize_json(cast_in_data) - return self._to_dict(self.name, value) - raise NotImplementedError( - "Serialization of {} has not yet been implemented".format(content_type) - ) - -class HeaderParameter(ParameterBase, StyleSimpleSerializer): - def __init__( - self, - name: str, - required: bool = False, - style: typing.Optional[ParameterStyle] = None, - explode: bool = False, - allow_reserved: typing.Optional[bool] = None, - schema: typing.Optional[typing.Type[Schema]] = None, - content: typing.Optional[typing.Dict[str, typing.Type[Schema]]] = None, - ): - super().__init__( - name, - in_type=ParameterInType.HEADER, - required=required, - style=style, - explode=explode, - allow_reserved=allow_reserved, - schema=schema, - content=content, + return ApiResponse( + status_code=response_data.status, + data=return_data, + headers=response_data.getheaders(), + raw_data=response_data.data, ) - @staticmethod - def __to_headers( - in_data: typing.Tuple[typing.Tuple[str, str], ...] - ) -> HTTPHeaderDict: - data = tuple(t for t in in_data if t) - headers = HTTPHeaderDict() - if not data: - return headers - headers.extend(data) - return headers - - def serialize( - self, - in_data: typing.Union[ - Schema, - Decimal, - int, - float, - str, - date, - datetime, - None, - bool, - list, - tuple, - dict, - frozendict.frozendict, - ], - ) -> HTTPHeaderDict: - if self.schema: - cast_in_data = self.schema(in_data) - cast_in_data = self._json_encoder.default(cast_in_data) - """ - simple -> header - headers: PoolManager needs a mapping, tuple is close - returns headers: dict - """ - if self.style: - value = self._serialize_simple( - cast_in_data, self.name, self.explode, False - ) - return self.__to_headers(((self.name, value),)) - # self.content will be length one - for content_type, schema in self.content.items(): - cast_in_data = schema(in_data) - cast_in_data = self._json_encoder.default(cast_in_data) - if self._content_type_is_json(content_type): - value = self._serialize_json(cast_in_data) - return self.__to_headers(((self.name, value),)) - raise NotImplementedError( - "Serialization of {} has not yet been implemented".format(content_type) - ) + def sanitize_for_serialization(self, obj): + """Builds a JSON POST object. + If obj is None, return None. + If obj is str, int, long, float, bool, return directly. + If obj is datetime.datetime, datetime.date + convert to string in iso8601 format. + If obj is list, sanitize each element in the list. + If obj is dict, return the dict. + If obj is OpenAPI model, return the properties dict. -class Encoding: - def __init__( - self, - content_type: str, - headers: typing.Optional[typing.Dict[str, HeaderParameter]] = None, - style: typing.Optional[ParameterStyle] = None, - explode: bool = False, - allow_reserved: bool = False, - ): - self.content_type = content_type - self.headers = headers - self.style = style - self.explode = explode - self.allow_reserved = allow_reserved - - -@dataclass -class MediaType: - """ - Used to store request and response body schema information - encoding: - A map between a property name and its encoding information. - The key, being the property name, MUST exist in the schema as a property. - The encoding object SHALL only apply to requestBody objects when the media type is - multipart or application/x-www-form-urlencoded. - """ - - schema: typing.Optional[typing.Type[Schema]] = None - encoding: typing.Optional[typing.Dict[str, Encoding]] = None - - -@dataclass -class ApiResponse: - response: urllib3.HTTPResponse - body: typing.Union[Unset, Schema] = unset - headers: typing.Union[Unset, typing.Dict[str, Schema]] = unset - - def __init__( - self, - response: urllib3.HTTPResponse, - body: typing.Union[Unset, Schema] = unset, - headers: typing.Union[Unset, typing.Dict[str, Schema]] = unset, - ): - """ - pycharm needs this to prevent 'Unexpected argument' warnings + :param obj: The data to serialize. + :return: The serialized form of data. """ - self.response = response - self.body = body - self.headers = headers - - -@dataclass -class ApiResponseWithoutDeserialization(ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[Unset, typing.Type[Schema]] = unset - headers: typing.Union[Unset, typing.List[HeaderParameter]] = unset - - -class OpenApiResponse(JSONDetector): - __filename_content_disposition_pattern = re.compile('filename="(.+?)"') - - def __init__( - self, - response_cls: typing.Type[ApiResponse] = ApiResponse, - content: typing.Optional[typing.Dict[str, MediaType]] = None, - headers: typing.Optional[typing.List[HeaderParameter]] = None, - ): - self.headers = headers - if content is not None and len(content) == 0: - raise ValueError( - "Invalid value for content, the content dict must have >= 1 entry" - ) - self.content = content - self.response_cls = response_cls - - @staticmethod - def __deserialize_json(response: urllib3.HTTPResponse) -> typing.Any: - # python must be >= 3.9 so we can pass in bytes into json.loads - return json.loads(response.data) - - @staticmethod - def __file_name_from_response_url( - response_url: typing.Optional[str], - ) -> typing.Optional[str]: - if response_url is None: + if obj is None: return None - url_path = urlparse(response_url).path - if url_path: - path_basename = os.path.basename(url_path) - if path_basename: - _filename, ext = os.path.splitext(path_basename) - if ext: - return path_basename - return None - - @classmethod - def __file_name_from_content_disposition( - cls, content_disposition: typing.Optional[str] - ) -> typing.Optional[str]: - if content_disposition is None: - return None - match = cls.__filename_content_disposition_pattern.search(content_disposition) - if not match: - return None - return match.group(1) - - def __deserialize_application_octet_stream( - self, response: urllib3.HTTPResponse - ) -> typing.Union[bytes, io.BufferedReader]: - """ - urllib3 use cases: - 1. when preload_content=True (stream=False) then supports_chunked_reads is False and bytes are returned - 2. when preload_content=False (stream=True) then supports_chunked_reads is True and - a file will be written and returned - """ - if response.supports_chunked_reads(): - file_name = self.__file_name_from_content_disposition( - response.headers.get("content-disposition") - ) or self.__file_name_from_response_url(response.geturl()) - - if file_name is None: - _fd, path = tempfile.mkstemp() - else: - path = os.path.join(tempfile.gettempdir(), file_name) - - with open(path, "wb") as new_file: - chunk_size = 1024 - while True: - data = response.read(chunk_size) - if not data: - break - new_file.write(data) - # release_conn is needed for streaming connections only - response.release_conn() - new_file = open(path, "rb") - return new_file + elif isinstance(obj, self.PRIMITIVE_TYPES): + return obj + elif isinstance(obj, list): + return [self.sanitize_for_serialization(sub_obj) for sub_obj in obj] + elif isinstance(obj, tuple): + return tuple(self.sanitize_for_serialization(sub_obj) for sub_obj in obj) + elif isinstance(obj, (datetime.datetime, datetime.date)): + return obj.isoformat() + + elif isinstance(obj, dict): + obj_dict = obj else: - return response.data + # Convert model obj to dict except + # attributes `openapi_types`, `attribute_map` + # and attributes which value is not None. + # Convert attribute name to json key in + # model definition for request. + obj_dict = obj.to_dict() - @staticmethod - def __deserialize_multipart_form_data( - response: urllib3.HTTPResponse, - ) -> typing.Dict[str, typing.Any]: - msg = email.message_from_bytes(response.data) return { - part.get_param("name", header="Content-Disposition"): part.get_payload( - decode=True - ).decode(part.get_content_charset()) - if part.get_content_charset() - else part.get_payload() - for part in msg.get_payload() + key: self.sanitize_for_serialization(val) for key, val in obj_dict.items() } - def deserialize( - self, response: urllib3.HTTPResponse, configuration: Configuration - ) -> ApiResponse: - deserialized_headers = unset - if self.headers is not None: - # TODO add header deserialiation here - pass - body_data = self.__deserialize_json(response) - return self.response_cls( - response=response, headers=deserialized_headers, body=body_data - ) + def deserialize(self, response_text, response_type): + """Deserializes response into an object. + :param response: RESTResponse object to be deserialized. + :param response_type: class literal for + deserialized object, or string of class name. -class ApiClient: - """Generic API client for OpenAPI client library builds. + :return: deserialized object. + """ - OpenAPI generic API client. This client handles the client- - server communication, and is invariant across implementations. Specifics of - the methods and models for each application are generated from the OpenAPI - templates. + # fetch data from response object + try: + data = json.loads(response_text) + except ValueError: + data = response_text - NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - Do not edit the class manually. + return self.__deserialize(data, response_type) - :param configuration: .Configuration object for this client - :param header_name: a header to pass when making calls to the API. - :param header_value: a header value to pass when making calls to - the API. - :param cookie: a cookie to include in the header when making calls - to the API - :param pool_threads: The number of threads to use for async requests - to the API. More threads means more concurrent API requests. - """ + def __deserialize(self, data, klass): + """Deserializes dict, list, str into an object. - _pool = None + :param data: dict, list or str. + :param klass: class literal, or string of class name. - def __init__( - self, - configuration: typing.Optional[Configuration] = None, - pool_threads: int = 1, - ): - if configuration is None: - configuration = Configuration() - self.configuration = configuration - self.pool_threads = pool_threads - - self.rest_client = rest.RESTClientObject(configuration) - self.default_headers = HTTPHeaderDict() + :return: object. + """ + if data is None: + return None - def __enter__(self): - return self + if isinstance(klass, str): + if klass.startswith("List["): + m = re.match(r"List\[(.*)]", klass) + assert m is not None, "Malformed List type definition" + sub_kls = m.group(1) + return [self.__deserialize(sub_data, sub_kls) for sub_data in data] + + if klass.startswith("Dict["): + m = re.match(r"Dict\[([^,]*), (.*)]", klass) + assert m is not None, "Malformed Dict type definition" + sub_kls = m.group(2) + return {k: self.__deserialize(v, sub_kls) for k, v in data.items()} + + # convert str to class + if klass in self.NATIVE_TYPES_MAPPING: + klass = self.NATIVE_TYPES_MAPPING[klass] + else: + klass = getattr(fireblocks_client.models, klass) + + if klass in self.PRIMITIVE_TYPES: + return self.__deserialize_primitive(data, klass) + elif klass == object: + return self.__deserialize_object(data) + elif klass == datetime.date: + return self.__deserialize_date(data) + elif klass == datetime.datetime: + return self.__deserialize_datetime(data) + elif issubclass(klass, Enum): + return self.__deserialize_enum(data, klass) + else: + return self.__deserialize_model(data, klass) - def __exit__(self, exc_type, exc_value, traceback): - self.close() - - def sign_jwt(self, path, body_json=""): - timestamp = time.time() - nonce = secrets.randbits(63) - timestamp_secs = math.floor(timestamp) - path = path.replace("[", "%5B") - path = path.replace("]", "%5D") - if body_json is None: - body_json = "".encode("utf-8") - token = { - "uri": path, - "nonce": nonce, - "iat": timestamp_secs, - "exp": timestamp_secs + 55, - "sub": self.configuration.api_key, - "bodyHash": sha256(body_json).hexdigest(), - } + def parameters_to_tuples(self, params, collection_formats): + """Get parameters as list of tuples, formatting collections. - return jwt.encode(token, key=self.configuration.secret_key, algorithm="RS256") + :param params: Parameters as dict or list of two-tuples + :param dict collection_formats: Parameter collection formats + :return: Parameters as list of tuples, collections formatted + """ + new_params: List[Tuple[str, str]] = [] + if collection_formats is None: + collection_formats = {} + for k, v in params.items() if isinstance(params, dict) else params: + if k in collection_formats: + collection_format = collection_formats[k] + if collection_format == "multi": + new_params.extend((k, value) for value in v) + else: + if collection_format == "ssv": + delimiter = " " + elif collection_format == "tsv": + delimiter = "\t" + elif collection_format == "pipes": + delimiter = "|" + else: # csv is the default + delimiter = "," + new_params.append((k, delimiter.join(str(value) for value in v))) + else: + new_params.append((k, v)) + return new_params - def close(self): - if self._pool: - self._pool.close() - self._pool.join() - self._pool = None - if hasattr(atexit, "unregister"): - atexit.unregister(self.close) + def parameters_to_url_query(self, params, collection_formats): + """Get parameters as list of tuples, formatting collections. - @property - def pool(self): - """Create thread pool on first request - avoids instantiating unused threadpool for blocking clients. + :param params: Parameters as dict or list of two-tuples + :param dict collection_formats: Parameter collection formats + :return: URL query string (e.g. a=Hello%20World&b=123) """ - if self._pool is None: - atexit.register(self.close) - self._pool = ThreadPool(self.pool_threads) - return self._pool + new_params: List[Tuple[str, str]] = [] + if collection_formats is None: + collection_formats = {} + for k, v in params.items() if isinstance(params, dict) else params: + if isinstance(v, bool): + v = str(v).lower() + if isinstance(v, (int, float)): + v = str(v) + if isinstance(v, dict): + v = json.dumps(v) + + if k in collection_formats: + collection_format = collection_formats[k] + if collection_format == "multi": + new_params.extend((k, str(value)) for value in v) + else: + if collection_format == "ssv": + delimiter = " " + elif collection_format == "tsv": + delimiter = "\t" + elif collection_format == "pipes": + delimiter = "|" + else: # csv is the default + delimiter = "," + new_params.append( + (k, delimiter.join(quote(str(value)) for value in v)) + ) + else: + new_params.append((k, quote(str(v)))) - @property - def user_agent(self): - """User agent for this API client""" - version = setuptools.__version__ - user_agent = f"fireblocks-py-sdk/{version}" - if not self.configuration.options.anonymous_platform: - user_agent += f" ({os.name} {os.uname().release}; {platform.system()} {platform.version()}; {platform.machine()})" - if self.configuration.options.user_agent: - user_agent = f"{self.configuration.options.user_agent} {user_agent}" - return user_agent + return "&".join(["=".join(map(str, item)) for item in new_params]) - def set_default_header(self, header_name, header_value): - self.default_headers[header_name] = header_value + def files_parameters(self, files=None): + """Builds form parameters. - def get_headers(self, resource_path, body, header_params) -> HTTPHeaderDict: - token = self.sign_jwt(resource_path, body) - return HTTPHeaderDict( - { - **header_params, - "Authorization": f"Bearer {token}", - "X-API-Key": self.configuration.api_key, - "User-Agent": self.user_agent, - } - ) + :param files: File parameters. + :return: Form parameters with files. + """ + params = [] + + if files: + for k, v in files.items(): + if not v: + continue + file_names = v if type(v) is list else [v] + for n in file_names: + with open(n, "rb") as f: + filename = os.path.basename(f.name) + filedata = f.read() + mimetype = ( + mimetypes.guess_type(filename)[0] + or "application/octet-stream" + ) + params.append(tuple([k, tuple([filename, filedata, mimetype])])) + + return params + + def select_header_accept(self, accepts: List[str]) -> Optional[str]: + """Returns `Accept` based on an array of accepts provided. + + :param accepts: List of headers. + :return: Accept (e.g. application/json). + """ + if not accepts: + return None - def __call_api( - self, - resource_path: str, - method: str, - headers: typing.Optional[HTTPHeaderDict] = None, - body: typing.Optional[typing.Union[str, bytes]] = None, - fields: typing.Optional[typing.Tuple[typing.Tuple[str, str], ...]] = None, - auth_settings: typing.Optional[typing.List[str]] = None, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - host: typing.Optional[str] = None, - ) -> urllib3.HTTPResponse: - # header parameters - base_path = self.configuration.base_path + resource_path - parsed_url = urlparse(base_path) - path = parsed_url.path - if parsed_url.query: - path += f"?{parsed_url.query}" - url = self.configuration.base_path + resource_path - used_headers = self.get_headers(path, body, headers) - - # perform request and return response - response = self.request( - method, - url, - headers=used_headers, - fields=fields, - body=body, - stream=stream, - timeout=timeout, - ) - return response + for accept in accepts: + if re.search("json", accept, re.IGNORECASE): + return accept - def call_api( - self, - resource_path: str, - method: str, - headers: typing.Optional[HTTPHeaderDict] = None, - body: typing.Optional[typing.Union[str, bytes]] = None, - fields: typing.Optional[typing.Tuple[typing.Tuple[str, str], ...]] = None, - auth_settings: typing.Optional[typing.List[str]] = None, - async_req: typing.Optional[bool] = None, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - host: typing.Optional[str] = None, - ) -> urllib3.HTTPResponse: - """Makes the HTTP request (synchronous) and returns deserialized data. - - To make an async_req request, set the async_req parameter. + return accepts[0] - :param resource_path: Path to method endpoint. - :param method: Method to call. - :param headers: Header parameters to be - placed in the request header. - :param body: Request body. - :param fields: Request post form parameters, - for `application/x-www-form-urlencoded`, `multipart/form-data`. - :param auth_settings: Auth Settings names for the request. - :param async_req: execute request asynchronously - :type async_req: bool, optional TODO remove, unused - :param stream: if True, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Also when True, if the openapi spec describes a file download, - the data will be written to a local filesystme file and the BinarySchema - instance will also inherit from FileSchema and FileIO - Default is False. - :type stream: bool, optional - :param timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :param host: api endpoint host - :return: - If async_req parameter is True, - the request will be called asynchronously. - The method will return the request thread. - If parameter async_req is False or missing, - then the method will return the response directly. - """ + def select_header_content_type(self, content_types): + """Returns `Content-Type` based on an array of content_types provided. - if not async_req: - return self.__call_api( - resource_path, - method, - headers, - body, - fields, - auth_settings, - stream, - timeout, - host, - ) + :param content_types: List of content-types. + :return: Content-Type (e.g. application/json). + """ + if not content_types: + return None - return self.pool.apply_async( - self.__call_api, - ( - resource_path, - method, - headers, - body, - json, - fields, - auth_settings, - stream, - timeout, - host, - ), - ) + for content_type in content_types: + if re.search("json", content_type, re.IGNORECASE): + return content_type - def request( - self, - method: str, - url: str, - headers: typing.Optional[HTTPHeaderDict] = None, - fields: typing.Optional[typing.Tuple[typing.Tuple[str, str], ...]] = None, - body: typing.Optional[typing.Union[str, bytes]] = None, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> urllib3.HTTPResponse: - """Makes the HTTP request using RESTClient.""" - if method == "GET": - return self.rest_client.GET( - url, stream=stream, timeout=timeout, headers=headers - ) - elif method == "HEAD": - return self.rest_client.HEAD( - url, stream=stream, timeout=timeout, headers=headers - ) - elif method == "OPTIONS": - return self.rest_client.OPTIONS( - url, - headers=headers, - fields=fields, - stream=stream, - timeout=timeout, - body=body, - ) - elif method == "POST": - return self.rest_client.POST( - url, - headers=headers, - fields=fields, - stream=stream, - timeout=timeout, - body=body, - ) - elif method == "PUT": - return self.rest_client.PUT( - url, - headers=headers, - fields=fields, - stream=stream, - timeout=timeout, - body=body, - ) - elif method == "PATCH": - return self.rest_client.PATCH( - url, - headers=headers, - fields=fields, - stream=stream, - timeout=timeout, - body=body, - ) - elif method == "DELETE": - return self.rest_client.DELETE( - url, headers=headers, stream=stream, timeout=timeout, body=body - ) - else: - raise ApiValueError( - "http method must be `GET`, `HEAD`, `OPTIONS`," - " `POST`, `PATCH`, `PUT` or `DELETE`." - ) + return content_types[0] def update_params_for_auth( - self, headers, auth_settings, resource_path, method, body - ): + self, + headers, + queries, + auth_settings, + resource_path, + method, + body, + request_auth=None, + ) -> None: """Updates header and query params based on authentication setting. :param headers: Header parameters dict to be updated. + :param queries: Query parameters tuple list to be updated. :param auth_settings: Authentication setting identifiers list. - :param resource_path: A string representation of the HTTP request resource path. - :param method: A string representation of the HTTP request method. - :param body: A object representing the body of the HTTP request. - The object type is the return value of _encoder.default(). + :resource_path: A string representation of the HTTP request resource path. + :method: A string representation of the HTTP request method. + :body: A object representing the body of the HTTP request. + The object type is the return value of sanitize_for_serialization(). + :param request_auth: if set, the provided settings will + override the token in the configuration. """ if not auth_settings: return - for auth in auth_settings: - auth_setting = self.configuration.auth_settings().get(auth) - if not auth_setting: - continue - if auth_setting["in"] == "cookie": - headers.add("Cookie", auth_setting["value"]) - elif auth_setting["in"] == "header": - if auth_setting["type"] != "http-signature": - headers.add(auth_setting["key"], auth_setting["value"]) - elif auth_setting["in"] == "query": - """TODO implement auth in query - need to pass in prefix_separator_iterator - and need to output resource_path with query params added - """ - raise ApiValueError("Auth in query not yet implemented") - else: - raise ApiValueError( - "Authentication token must be in `query` or `header`" - ) + if request_auth: + self._apply_auth_params( + headers, queries, resource_path, method, body, request_auth + ) + else: + for auth in auth_settings: + auth_setting = self.configuration.auth_settings().get(auth) + if auth_setting: + self._apply_auth_params( + headers, queries, resource_path, method, body, auth_setting + ) + def _apply_auth_params( + self, headers, queries, resource_path, method, body, auth_setting + ) -> None: + """Updates the request parameters based on a single auth_setting -class Api: - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech + :param headers: Header parameters dict to be updated. + :param queries: Query parameters tuple list to be updated. + :resource_path: A string representation of the HTTP request resource path. + :method: A string representation of the HTTP request method. + :body: A object representing the body of the HTTP request. + The object type is the return value of sanitize_for_serialization(). + :param auth_setting: auth settings for the endpoint + """ + if auth_setting["in"] == "cookie": + headers["Cookie"] = auth_setting["value"] + elif auth_setting["in"] == "header": + if auth_setting["type"] != "http-signature": + headers[auth_setting["key"]] = auth_setting["value"] + elif auth_setting["in"] == "query": + queries.append((auth_setting["key"], auth_setting["value"])) + else: + raise ApiValueError("Authentication token must be in `query` or `header`") - Do not edit the class manually. - """ + def __deserialize_file(self, response): + """Deserializes body to file - def __init__(self, configuration: typing.Optional[Configuration] = None): - if configuration is not None: - self.api_client = ApiClient(configuration) - else: - self.api_client = ApiClient() + Saves response body into a file in a temporary folder, + using the filename from the `Content-Disposition` header if provided. - @staticmethod - def _verify_typed_dict_inputs_oapg( - cls: typing.Type[typing_extensions.TypedDict], - data: typing.Dict[str, typing.Any], - ): - """ - Ensures that: - - required keys are present - - additional properties are not input - - value stored under required keys do not have the value unset - Note: detailed value checking is done in schema classes + handle file downloading + save response body into a tmp file and return the instance + + :param response: RESTResponse. + :return: file path. """ - missing_required_keys = [] - required_keys_with_unset_values = [] - for required_key in cls.__required_keys__: - if required_key not in data: - missing_required_keys.append(required_key) - continue - value = data[required_key] - if value is unset: - required_keys_with_unset_values.append(required_key) - if missing_required_keys: - raise ApiTypeError( - "{} missing {} required arguments: {}".format( - cls.__name__, len(missing_required_keys), missing_required_keys - ) - ) - if required_keys_with_unset_values: - raise ApiValueError( - "{} contains invalid unset values for {} required keys: {}".format( - cls.__name__, - len(required_keys_with_unset_values), - required_keys_with_unset_values, - ) - ) + fd, path = tempfile.mkstemp(dir=self.configuration.temp_folder_path) + os.close(fd) + os.remove(path) - disallowed_additional_keys = [] - for key in data: - if key in cls.__required_keys__ or key in cls.__optional_keys__: - continue - disallowed_additional_keys.append(key) - if disallowed_additional_keys: - raise ApiTypeError( - "{} got {} unexpected keyword arguments: {}".format( - cls.__name__, - len(disallowed_additional_keys), - disallowed_additional_keys, - ) - ) + content_disposition = response.getheader("Content-Disposition") + if content_disposition: + m = re.search(r'filename=[\'"]?([^\'"\s]+)[\'"]?', content_disposition) + assert m is not None, "Unexpected 'content-disposition' header value" + filename = m.group(1) + path = os.path.join(os.path.dirname(path), filename) - def _get_host_oapg( - self, - operation_id: str, - servers: typing.Tuple[typing.Dict[str, str], ...] = tuple(), - host_index: typing.Optional[int] = None, - ) -> typing.Optional[str]: - configuration = self.api_client.configuration - try: - if host_index is None: - index = configuration.server_operation_index.get( - operation_id, configuration.server_index - ) - else: - index = host_index - server_variables = configuration.server_operation_variables.get( - operation_id, configuration.server_variables - ) - host = configuration.get_host_from_settings( - index, variables=server_variables, servers=servers - ) - except IndexError: - if servers: - raise ApiValueError( - "Invalid host index. Must be 0 <= index < %s" % len(servers) - ) - host = None - return host + with open(path, "wb") as f: + f.write(response.data) + return path -class SerializedRequestBody(typing_extensions.TypedDict, total=False): - body: typing.Union[str, bytes] - fields: typing.Tuple[typing.Union[RequestField, typing.Tuple[str, str]], ...] + def __deserialize_primitive(self, data, klass): + """Deserializes string to primitive type. + :param data: str. + :param klass: class literal. -class RequestBody(StyleFormSerializer, JSONDetector): - """ - A request body parameter - content: content_type to MediaType Schema info - """ + :return: int, long, float, str, bool. + """ + try: + return klass(data) + except UnicodeEncodeError: + return str(data) + except TypeError: + return data - __json_encoder = JSONEncoder() + def __deserialize_object(self, value): + """Return an original value. - def __init__( - self, - content: typing.Dict[str, MediaType], - required: bool = False, - ): - self.required = required - if len(content) == 0: - raise ValueError( - "Invalid value for content, the content dict must have >= 1 entry" - ) - self.content = content - - def __serialize_json(self, in_data: typing.Any) -> typing.Dict[str, bytes]: - in_data = self.__json_encoder.default(in_data) - json_str = json.dumps( - in_data, separators=(",", ":"), ensure_ascii=False - ).encode("utf-8") - return dict(body=json_str) - - @staticmethod - def __serialize_text_plain(in_data: typing.Any) -> typing.Dict[str, str]: - if isinstance(in_data, frozendict.frozendict): - raise ValueError( - "Unable to serialize type frozendict.frozendict to text/plain" - ) - elif isinstance(in_data, tuple): - raise ValueError("Unable to serialize type tuple to text/plain") - elif isinstance(in_data, NoneClass): - raise ValueError("Unable to serialize type NoneClass to text/plain") - elif isinstance(in_data, BoolClass): - raise ValueError("Unable to serialize type BoolClass to text/plain") - return dict(body=str(in_data)) - - def __multipart_json_item(self, key: str, value: Schema) -> RequestField: - json_value = self.__json_encoder.default(value) - request_field = RequestField(name=key, data=json.dumps(json_value)) - request_field.make_multipart(content_type="application/json") - return request_field - - def __multipart_form_item(self, key: str, value: Schema) -> RequestField: - if isinstance(value, str): - request_field = RequestField(name=key, data=str(value)) - request_field.make_multipart(content_type="text/plain") - elif isinstance(value, bytes): - request_field = RequestField(name=key, data=value) - request_field.make_multipart(content_type="application/octet-stream") - elif isinstance(value, FileIO): - # TODO use content.encoding to limit allowed content types if they are present - request_field = RequestField.from_tuples( - key, (os.path.basename(value.name), value.read()) - ) - value.close() - else: - request_field = self.__multipart_json_item(key=key, value=value) - return request_field - - def __serialize_multipart_form_data( - self, in_data: Schema - ) -> typing.Dict[str, typing.Tuple[RequestField, ...]]: - if not isinstance(in_data, frozendict.frozendict): - raise ValueError( - f"Unable to serialize {in_data} to multipart/form-data because it is not a dict of data" - ) + :return: object. """ - In a multipart/form-data request body, each schema property, or each element of a schema array property, - takes a section in the payload with an internal header as defined by RFC7578. The serialization strategy - for each property of a multipart/form-data request body can be specified in an associated Encoding Object. + return value - When passing in multipart types, boundaries MAY be used to separate sections of the content being - transferred – thus, the following default Content-Types are defined for multipart: + def __deserialize_date(self, string): + """Deserializes string to date. - If the (object) property is a primitive, or an array of primitive values, the default Content-Type is text/plain - If the property is complex, or an array of complex values, the default Content-Type is application/json - Question: how is the array of primitives encoded? - If the property is a type: string with a contentEncoding, the default Content-Type is application/octet-stream - """ - fields = [] - for key, value in in_data.items(): - if isinstance(value, tuple): - if value: - # values use explode = True, so the code makes a RequestField for each item with name=key - for item in value: - request_field = self.__multipart_form_item(key=key, value=item) - fields.append(request_field) - else: - # send an empty array as json because exploding will not send it - request_field = self.__multipart_json_item(key=key, value=value) - fields.append(request_field) - else: - request_field = self.__multipart_form_item(key=key, value=value) - fields.append(request_field) - - return dict(fields=tuple(fields)) - - def __serialize_application_octet_stream( - self, in_data: BinarySchema - ) -> typing.Dict[str, bytes]: - if isinstance(in_data, bytes): - return dict(body=in_data) - # FileIO type - result = dict(body=in_data.read()) - in_data.close() - return result - - def __serialize_application_x_www_form_data( - self, in_data: typing.Any - ) -> SerializedRequestBody: + :param string: str. + :return: date. """ - POST submission of form data in body + try: + return parse(string).date() + except ImportError: + return string + except ValueError: + raise rest.ApiException( + status=0, reason="Failed to parse `{0}` as date object".format(string) + ) + + def __deserialize_datetime(self, string): + """Deserializes string to datetime. + + The string should be in iso8601 datetime format. + + :param string: str. + :return: datetime. """ - if not isinstance(in_data, frozendict.frozendict): - raise ValueError( - f"Unable to serialize {in_data} to application/x-www-form-urlencoded because it is not a dict of data" + try: + return parse(string) + except ImportError: + return string + except ValueError: + raise rest.ApiException( + status=0, + reason=("Failed to parse `{0}` as datetime object".format(string)), ) - cast_in_data = self.__json_encoder.default(in_data) - value = self._serialize_form( - cast_in_data, name="", explode=True, percent_encode=True - ) - return dict(body=value) - def serialize( - self, in_data: typing.Any, content_type: str - ) -> SerializedRequestBody: + def __deserialize_enum(self, data, klass): + """Deserializes primitive type to enum. + + :param data: primitive type. + :param klass: class literal. + :return: enum value. """ - If a str is returned then the result will be assigned to data when making the request - If a tuple is returned then the result will be used as fields input in encode_multipart_formdata - Return a tuple of + try: + return klass(data) + except ValueError: + raise rest.ApiException( + status=0, reason=("Failed to parse `{0}` as `{1}`".format(data, klass)) + ) - The key of the return dict is - - body for application/json - - encode_multipart and fields for multipart/form-data + def __deserialize_model(self, data, klass): + """Deserializes list or dict to model. + + :param data: dict, list. + :param klass: class literal. + :return: model object. """ - media_type = self.content[content_type] - if isinstance(in_data, media_type.schema): - cast_in_data = in_data - elif isinstance(in_data, (dict, frozendict.frozendict)) and in_data: - cast_in_data = media_type.schema(**in_data) - else: - cast_in_data = media_type.schema(in_data) - # TODO check for and use encoding if it exists - # and content_type is multipart or application/x-www-form-urlencoded - if self._content_type_is_json(content_type): - return self.__serialize_json(cast_in_data) - elif content_type == "text/plain": - return self.__serialize_text_plain(cast_in_data) - elif content_type == "multipart/form-data": - return self.__serialize_multipart_form_data(cast_in_data) - elif content_type == "application/x-www-form-urlencoded": - return self.__serialize_application_x_www_form_data(cast_in_data) - elif content_type == "application/octet-stream": - return self.__serialize_application_octet_stream(cast_in_data) - raise NotImplementedError( - "Serialization has not yet been implemented for {}".format(content_type) - ) + + return klass.from_dict(data) diff --git a/fireblocks_client/api_response.py b/fireblocks_client/api_response.py new file mode 100644 index 00000000..1ce13729 --- /dev/null +++ b/fireblocks_client/api_response.py @@ -0,0 +1,20 @@ +"""API response object.""" + +from __future__ import annotations +from typing import Optional, Generic, Mapping, TypeVar +from pydantic import Field, StrictInt, StrictBytes, BaseModel + +T = TypeVar("T") + + +class ApiResponse(BaseModel, Generic[T]): + """ + API response object + """ + + status_code: StrictInt = Field(description="HTTP status code") + headers: Optional[Mapping[str, str]] = Field(None, description="HTTP headers") + data: T = Field(description="Deserialized data given the data type") + raw_data: StrictBytes = Field(description="Raw data (HTTP response body)") + + model_config = {"arbitrary_types_allowed": True} diff --git a/fireblocks_client/apis/__init__.py b/fireblocks_client/apis/__init__.py deleted file mode 100644 index 7840f772..00000000 --- a/fireblocks_client/apis/__init__.py +++ /dev/null @@ -1,3 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints then import them from -# tags, paths, or path_to_api, or tag_to_api \ No newline at end of file diff --git a/fireblocks_client/apis/path_to_api.py b/fireblocks_client/apis/path_to_api.py deleted file mode 100644 index b891c4c5..00000000 --- a/fireblocks_client/apis/path_to_api.py +++ /dev/null @@ -1,323 +0,0 @@ -import typing_extensions - -from fireblocks_client.paths import PathValues -from fireblocks_client.apis.paths.vault_accounts import VaultAccounts -from fireblocks_client.apis.paths.vault_accounts_paged import VaultAccountsPaged -from fireblocks_client.apis.paths.vault_accounts_vault_account_id import VaultAccountsVaultAccountId -from fireblocks_client.apis.paths.vault_asset_wallets import VaultAssetWallets -from fireblocks_client.apis.paths.vault_accounts_vault_account_id_hide import VaultAccountsVaultAccountIdHide -from fireblocks_client.apis.paths.vault_accounts_vault_account_id_unhide import VaultAccountsVaultAccountIdUnhide -from fireblocks_client.apis.paths.vault_accounts_vault_account_id_asset_id_activate import VaultAccountsVaultAccountIdAssetIdActivate -from fireblocks_client.apis.paths.vault_accounts_vault_account_id_set_customer_ref_id import VaultAccountsVaultAccountIdSetCustomerRefId -from fireblocks_client.apis.paths.vault_accounts_vault_account_id_set_auto_fuel import VaultAccountsVaultAccountIdSetAutoFuel -from fireblocks_client.apis.paths.vault_accounts_vault_account_id_asset_id import VaultAccountsVaultAccountIdAssetId -from fireblocks_client.apis.paths.vault_accounts_vault_account_id_asset_id_balance import VaultAccountsVaultAccountIdAssetIdBalance -from fireblocks_client.apis.paths.vault_accounts_vault_account_id_asset_id_addresses import VaultAccountsVaultAccountIdAssetIdAddresses -from fireblocks_client.apis.paths.vault_accounts_vault_account_id_asset_id_max_spendable_amount import VaultAccountsVaultAccountIdAssetIdMaxSpendableAmount -from fireblocks_client.apis.paths.vault_accounts_vault_account_id_asset_id_addresses_address_id import VaultAccountsVaultAccountIdAssetIdAddressesAddressId -from fireblocks_client.apis.paths.vault_accounts_vault_account_id_asset_id_addresses_address_id_set_customer_ref_id import VaultAccountsVaultAccountIdAssetIdAddressesAddressIdSetCustomerRefId -from fireblocks_client.apis.paths.vault_accounts_vault_account_id_asset_id_addresses_address_id_create_legacy import VaultAccountsVaultAccountIdAssetIdAddressesAddressIdCreateLegacy -from fireblocks_client.apis.paths.vault_accounts_vault_account_id_asset_id_unspent_inputs import VaultAccountsVaultAccountIdAssetIdUnspentInputs -from fireblocks_client.apis.paths.vault_public_key_info_ import VaultPublicKeyInfo -from fireblocks_client.apis.paths.vault_accounts_vault_account_id_asset_id_change_address_index_public_key_info import VaultAccountsVaultAccountIdAssetIdChangeAddressIndexPublicKeyInfo -from fireblocks_client.apis.paths.vault_assets import VaultAssets -from fireblocks_client.apis.paths.vault_assets_asset_id import VaultAssetsAssetId -from fireblocks_client.apis.paths.exchange_accounts import ExchangeAccounts -from fireblocks_client.apis.paths.exchange_accounts_exchange_account_id import ExchangeAccountsExchangeAccountId -from fireblocks_client.apis.paths.exchange_accounts_exchange_account_id_internal_transfer import ExchangeAccountsExchangeAccountIdInternalTransfer -from fireblocks_client.apis.paths.exchange_accounts_exchange_account_id_convert import ExchangeAccountsExchangeAccountIdConvert -from fireblocks_client.apis.paths.exchange_accounts_exchange_account_id_asset_id import ExchangeAccountsExchangeAccountIdAssetId -from fireblocks_client.apis.paths.fiat_accounts import FiatAccounts -from fireblocks_client.apis.paths.fiat_accounts_account_id import FiatAccountsAccountId -from fireblocks_client.apis.paths.fiat_accounts_account_id_redeem_to_linked_dda import FiatAccountsAccountIdRedeemToLinkedDda -from fireblocks_client.apis.paths.fiat_accounts_account_id_deposit_from_linked_dda import FiatAccountsAccountIdDepositFromLinkedDda -from fireblocks_client.apis.paths.network_connections import NetworkConnections -from fireblocks_client.apis.paths.network_connections_connection_id_set_routing_policy import NetworkConnectionsConnectionIdSetRoutingPolicy -from fireblocks_client.apis.paths.network_connections_connection_id_is_third_party_routing_asset_type import NetworkConnectionsConnectionIdIsThirdPartyRoutingAssetType -from fireblocks_client.apis.paths.network_connections_connection_id import NetworkConnectionsConnectionId -from fireblocks_client.apis.paths.network_ids import NetworkIds -from fireblocks_client.apis.paths.network_ids_network_id import NetworkIdsNetworkId -from fireblocks_client.apis.paths.network_ids_network_id_set_routing_policy import NetworkIdsNetworkIdSetRoutingPolicy -from fireblocks_client.apis.paths.network_ids_network_id_set_discoverability import NetworkIdsNetworkIdSetDiscoverability -from fireblocks_client.apis.paths.network_ids_network_id_set_name import NetworkIdsNetworkIdSetName -from fireblocks_client.apis.paths.internal_wallets import InternalWallets -from fireblocks_client.apis.paths.internal_wallets_wallet_id import InternalWalletsWalletId -from fireblocks_client.apis.paths.internal_wallets_wallet_id_set_customer_ref_id import InternalWalletsWalletIdSetCustomerRefId -from fireblocks_client.apis.paths.internal_wallets_wallet_id_asset_id import InternalWalletsWalletIdAssetId -from fireblocks_client.apis.paths.external_wallets import ExternalWallets -from fireblocks_client.apis.paths.external_wallets_wallet_id import ExternalWalletsWalletId -from fireblocks_client.apis.paths.external_wallets_wallet_id_set_customer_ref_id import ExternalWalletsWalletIdSetCustomerRefId -from fireblocks_client.apis.paths.external_wallets_wallet_id_asset_id import ExternalWalletsWalletIdAssetId -from fireblocks_client.apis.paths.contracts import Contracts -from fireblocks_client.apis.paths.contracts_contract_id import ContractsContractId -from fireblocks_client.apis.paths.contracts_contract_id_asset_id import ContractsContractIdAssetId -from fireblocks_client.apis.paths.supported_assets import SupportedAssets -from fireblocks_client.apis.paths.transactions import Transactions -from fireblocks_client.apis.paths.transactions_estimate_fee import TransactionsEstimateFee -from fireblocks_client.apis.paths.transactions_tx_id import TransactionsTxId -from fireblocks_client.apis.paths.transactions_external_tx_id_external_tx_id_ import TransactionsExternalTxIdExternalTxId -from fireblocks_client.apis.paths.transactions_tx_id_set_confirmation_threshold import TransactionsTxIdSetConfirmationThreshold -from fireblocks_client.apis.paths.transactions_tx_id_drop import TransactionsTxIdDrop -from fireblocks_client.apis.paths.transactions_tx_id_cancel import TransactionsTxIdCancel -from fireblocks_client.apis.paths.transactions_tx_id_freeze import TransactionsTxIdFreeze -from fireblocks_client.apis.paths.transactions_tx_id_unfreeze import TransactionsTxIdUnfreeze -from fireblocks_client.apis.paths.transactions_validate_address_asset_id_address import TransactionsValidateAddressAssetIdAddress -from fireblocks_client.apis.paths.tx_hash_tx_hash_set_confirmation_threshold import TxHashTxHashSetConfirmationThreshold -from fireblocks_client.apis.paths.estimate_network_fee import EstimateNetworkFee -from fireblocks_client.apis.paths.payments_xb_settlements_configs import PaymentsXbSettlementsConfigs -from fireblocks_client.apis.paths.payments_xb_settlements_configs_config_id import PaymentsXbSettlementsConfigsConfigId -from fireblocks_client.apis.paths.payments_xb_settlements_flows import PaymentsXbSettlementsFlows -from fireblocks_client.apis.paths.payments_xb_settlements_flows_flow_id import PaymentsXbSettlementsFlowsFlowId -from fireblocks_client.apis.paths.payments_xb_settlements_flows_flow_id_actions_execute import PaymentsXbSettlementsFlowsFlowIdActionsExecute -from fireblocks_client.apis.paths.payments_payout import PaymentsPayout -from fireblocks_client.apis.paths.payments_payout_payout_id_actions_execute import PaymentsPayoutPayoutIdActionsExecute -from fireblocks_client.apis.paths.payments_payout_payout_id import PaymentsPayoutPayoutId -from fireblocks_client.apis.paths.gas_station import GasStation -from fireblocks_client.apis.paths.gas_station_asset_id import GasStationAssetId -from fireblocks_client.apis.paths.gas_station_configuration import GasStationConfiguration -from fireblocks_client.apis.paths.gas_station_configuration_asset_id import GasStationConfigurationAssetId -from fireblocks_client.apis.paths.users_groups import UsersGroups -from fireblocks_client.apis.paths.users_groups_group_id import UsersGroupsGroupId -from fireblocks_client.apis.paths.users import Users -from fireblocks_client.apis.paths.audits import Audits -from fireblocks_client.apis.paths.off_exchange_add import OffExchangeAdd -from fireblocks_client.apis.paths.off_exchange_remove import OffExchangeRemove -from fireblocks_client.apis.paths.off_exchange_settlements_trader import OffExchangeSettlementsTrader -from fireblocks_client.apis.paths.off_exchange_settlements_transactions import OffExchangeSettlementsTransactions -from fireblocks_client.apis.paths.off_exchange_collateral_accounts_main_exchange_account_id import OffExchangeCollateralAccountsMainExchangeAccountId -from fireblocks_client.apis.paths.webhooks_resend import WebhooksResend -from fireblocks_client.apis.paths.webhooks_resend_tx_id import WebhooksResendTxId -from fireblocks_client.apis.paths.nfts_ownership_tokens import NftsOwnershipTokens -from fireblocks_client.apis.paths.nfts_ownership_collections import NftsOwnershipCollections -from fireblocks_client.apis.paths.nfts_tokens_id import NftsTokensId -from fireblocks_client.apis.paths.nfts_tokens import NftsTokens -from fireblocks_client.apis.paths.nfts_ownership_tokens_id_status import NftsOwnershipTokensIdStatus -from fireblocks_client.apis.paths.connections import Connections -from fireblocks_client.apis.paths.connections_wc import ConnectionsWc -from fireblocks_client.apis.paths.connections_wc_id import ConnectionsWcId -from fireblocks_client.apis.paths.screening_travel_rule_transaction_validate import ScreeningTravelRuleTransactionValidate -from fireblocks_client.apis.paths.screening_travel_rule_transaction_validate_full import ScreeningTravelRuleTransactionValidateFull -from fireblocks_client.apis.paths.screening_travel_rule_vasp_did import ScreeningTravelRuleVaspDid -from fireblocks_client.apis.paths.screening_travel_rule_vasp import ScreeningTravelRuleVasp -from fireblocks_client.apis.paths.screeening_travel_rule_vasp_update import ScreeeningTravelRuleVaspUpdate -from fireblocks_client.apis.paths.management_ota import ManagementOta -from fireblocks_client.apis.paths.tap_active_policy import TapActivePolicy -from fireblocks_client.apis.paths.tap_draft import TapDraft -from fireblocks_client.apis.paths.tap_publish import TapPublish - -PathToApi = typing_extensions.TypedDict( - 'PathToApi', - { - PathValues.VAULT_ACCOUNTS: VaultAccounts, - PathValues.VAULT_ACCOUNTS_PAGED: VaultAccountsPaged, - PathValues.VAULT_ACCOUNTS_VAULT_ACCOUNT_ID: VaultAccountsVaultAccountId, - PathValues.VAULT_ASSET_WALLETS: VaultAssetWallets, - PathValues.VAULT_ACCOUNTS_VAULT_ACCOUNT_ID_HIDE: VaultAccountsVaultAccountIdHide, - PathValues.VAULT_ACCOUNTS_VAULT_ACCOUNT_ID_UNHIDE: VaultAccountsVaultAccountIdUnhide, - PathValues.VAULT_ACCOUNTS_VAULT_ACCOUNT_ID_ASSET_ID_ACTIVATE: VaultAccountsVaultAccountIdAssetIdActivate, - PathValues.VAULT_ACCOUNTS_VAULT_ACCOUNT_ID_SET_CUSTOMER_REF_ID: VaultAccountsVaultAccountIdSetCustomerRefId, - PathValues.VAULT_ACCOUNTS_VAULT_ACCOUNT_ID_SET_AUTO_FUEL: VaultAccountsVaultAccountIdSetAutoFuel, - PathValues.VAULT_ACCOUNTS_VAULT_ACCOUNT_ID_ASSET_ID: VaultAccountsVaultAccountIdAssetId, - PathValues.VAULT_ACCOUNTS_VAULT_ACCOUNT_ID_ASSET_ID_BALANCE: VaultAccountsVaultAccountIdAssetIdBalance, - PathValues.VAULT_ACCOUNTS_VAULT_ACCOUNT_ID_ASSET_ID_ADDRESSES: VaultAccountsVaultAccountIdAssetIdAddresses, - PathValues.VAULT_ACCOUNTS_VAULT_ACCOUNT_ID_ASSET_ID_MAX_SPENDABLE_AMOUNT: VaultAccountsVaultAccountIdAssetIdMaxSpendableAmount, - PathValues.VAULT_ACCOUNTS_VAULT_ACCOUNT_ID_ASSET_ID_ADDRESSES_ADDRESS_ID: VaultAccountsVaultAccountIdAssetIdAddressesAddressId, - PathValues.VAULT_ACCOUNTS_VAULT_ACCOUNT_ID_ASSET_ID_ADDRESSES_ADDRESS_ID_SET_CUSTOMER_REF_ID: VaultAccountsVaultAccountIdAssetIdAddressesAddressIdSetCustomerRefId, - PathValues.VAULT_ACCOUNTS_VAULT_ACCOUNT_ID_ASSET_ID_ADDRESSES_ADDRESS_ID_CREATE_LEGACY: VaultAccountsVaultAccountIdAssetIdAddressesAddressIdCreateLegacy, - PathValues.VAULT_ACCOUNTS_VAULT_ACCOUNT_ID_ASSET_ID_UNSPENT_INPUTS: VaultAccountsVaultAccountIdAssetIdUnspentInputs, - PathValues.VAULT_PUBLIC_KEY_INFO_: VaultPublicKeyInfo, - PathValues.VAULT_ACCOUNTS_VAULT_ACCOUNT_ID_ASSET_ID_CHANGE_ADDRESS_INDEX_PUBLIC_KEY_INFO: VaultAccountsVaultAccountIdAssetIdChangeAddressIndexPublicKeyInfo, - PathValues.VAULT_ASSETS: VaultAssets, - PathValues.VAULT_ASSETS_ASSET_ID: VaultAssetsAssetId, - PathValues.EXCHANGE_ACCOUNTS: ExchangeAccounts, - PathValues.EXCHANGE_ACCOUNTS_EXCHANGE_ACCOUNT_ID: ExchangeAccountsExchangeAccountId, - PathValues.EXCHANGE_ACCOUNTS_EXCHANGE_ACCOUNT_ID_INTERNAL_TRANSFER: ExchangeAccountsExchangeAccountIdInternalTransfer, - PathValues.EXCHANGE_ACCOUNTS_EXCHANGE_ACCOUNT_ID_CONVERT: ExchangeAccountsExchangeAccountIdConvert, - PathValues.EXCHANGE_ACCOUNTS_EXCHANGE_ACCOUNT_ID_ASSET_ID: ExchangeAccountsExchangeAccountIdAssetId, - PathValues.FIAT_ACCOUNTS: FiatAccounts, - PathValues.FIAT_ACCOUNTS_ACCOUNT_ID: FiatAccountsAccountId, - PathValues.FIAT_ACCOUNTS_ACCOUNT_ID_REDEEM_TO_LINKED_DDA: FiatAccountsAccountIdRedeemToLinkedDda, - PathValues.FIAT_ACCOUNTS_ACCOUNT_ID_DEPOSIT_FROM_LINKED_DDA: FiatAccountsAccountIdDepositFromLinkedDda, - PathValues.NETWORK_CONNECTIONS: NetworkConnections, - PathValues.NETWORK_CONNECTIONS_CONNECTION_ID_SET_ROUTING_POLICY: NetworkConnectionsConnectionIdSetRoutingPolicy, - PathValues.NETWORK_CONNECTIONS_CONNECTION_ID_IS_THIRD_PARTY_ROUTING_ASSET_TYPE: NetworkConnectionsConnectionIdIsThirdPartyRoutingAssetType, - PathValues.NETWORK_CONNECTIONS_CONNECTION_ID: NetworkConnectionsConnectionId, - PathValues.NETWORK_IDS: NetworkIds, - PathValues.NETWORK_IDS_NETWORK_ID: NetworkIdsNetworkId, - PathValues.NETWORK_IDS_NETWORK_ID_SET_ROUTING_POLICY: NetworkIdsNetworkIdSetRoutingPolicy, - PathValues.NETWORK_IDS_NETWORK_ID_SET_DISCOVERABILITY: NetworkIdsNetworkIdSetDiscoverability, - PathValues.NETWORK_IDS_NETWORK_ID_SET_NAME: NetworkIdsNetworkIdSetName, - PathValues.INTERNAL_WALLETS: InternalWallets, - PathValues.INTERNAL_WALLETS_WALLET_ID: InternalWalletsWalletId, - PathValues.INTERNAL_WALLETS_WALLET_ID_SET_CUSTOMER_REF_ID: InternalWalletsWalletIdSetCustomerRefId, - PathValues.INTERNAL_WALLETS_WALLET_ID_ASSET_ID: InternalWalletsWalletIdAssetId, - PathValues.EXTERNAL_WALLETS: ExternalWallets, - PathValues.EXTERNAL_WALLETS_WALLET_ID: ExternalWalletsWalletId, - PathValues.EXTERNAL_WALLETS_WALLET_ID_SET_CUSTOMER_REF_ID: ExternalWalletsWalletIdSetCustomerRefId, - PathValues.EXTERNAL_WALLETS_WALLET_ID_ASSET_ID: ExternalWalletsWalletIdAssetId, - PathValues.CONTRACTS: Contracts, - PathValues.CONTRACTS_CONTRACT_ID: ContractsContractId, - PathValues.CONTRACTS_CONTRACT_ID_ASSET_ID: ContractsContractIdAssetId, - PathValues.SUPPORTED_ASSETS: SupportedAssets, - PathValues.TRANSACTIONS: Transactions, - PathValues.TRANSACTIONS_ESTIMATE_FEE: TransactionsEstimateFee, - PathValues.TRANSACTIONS_TX_ID: TransactionsTxId, - PathValues.TRANSACTIONS_EXTERNAL_TX_ID_EXTERNAL_TX_ID_: TransactionsExternalTxIdExternalTxId, - PathValues.TRANSACTIONS_TX_ID_SET_CONFIRMATION_THRESHOLD: TransactionsTxIdSetConfirmationThreshold, - PathValues.TRANSACTIONS_TX_ID_DROP: TransactionsTxIdDrop, - PathValues.TRANSACTIONS_TX_ID_CANCEL: TransactionsTxIdCancel, - PathValues.TRANSACTIONS_TX_ID_FREEZE: TransactionsTxIdFreeze, - PathValues.TRANSACTIONS_TX_ID_UNFREEZE: TransactionsTxIdUnfreeze, - PathValues.TRANSACTIONS_VALIDATE_ADDRESS_ASSET_ID_ADDRESS: TransactionsValidateAddressAssetIdAddress, - PathValues.TX_HASH_TX_HASH_SET_CONFIRMATION_THRESHOLD: TxHashTxHashSetConfirmationThreshold, - PathValues.ESTIMATE_NETWORK_FEE: EstimateNetworkFee, - PathValues.PAYMENTS_XBSETTLEMENTS_CONFIGS: PaymentsXbSettlementsConfigs, - PathValues.PAYMENTS_XBSETTLEMENTS_CONFIGS_CONFIG_ID: PaymentsXbSettlementsConfigsConfigId, - PathValues.PAYMENTS_XBSETTLEMENTS_FLOWS: PaymentsXbSettlementsFlows, - PathValues.PAYMENTS_XBSETTLEMENTS_FLOWS_FLOW_ID: PaymentsXbSettlementsFlowsFlowId, - PathValues.PAYMENTS_XBSETTLEMENTS_FLOWS_FLOW_ID_ACTIONS_EXECUTE: PaymentsXbSettlementsFlowsFlowIdActionsExecute, - PathValues.PAYMENTS_PAYOUT: PaymentsPayout, - PathValues.PAYMENTS_PAYOUT_PAYOUT_ID_ACTIONS_EXECUTE: PaymentsPayoutPayoutIdActionsExecute, - PathValues.PAYMENTS_PAYOUT_PAYOUT_ID: PaymentsPayoutPayoutId, - PathValues.GAS_STATION: GasStation, - PathValues.GAS_STATION_ASSET_ID: GasStationAssetId, - PathValues.GAS_STATION_CONFIGURATION: GasStationConfiguration, - PathValues.GAS_STATION_CONFIGURATION_ASSET_ID: GasStationConfigurationAssetId, - PathValues.USERS_GROUPS: UsersGroups, - PathValues.USERS_GROUPS_GROUP_ID: UsersGroupsGroupId, - PathValues.USERS: Users, - PathValues.AUDITS: Audits, - PathValues.OFF_EXCHANGE_ADD: OffExchangeAdd, - PathValues.OFF_EXCHANGE_REMOVE: OffExchangeRemove, - PathValues.OFF_EXCHANGE_SETTLEMENTS_TRADER: OffExchangeSettlementsTrader, - PathValues.OFF_EXCHANGE_SETTLEMENTS_TRANSACTIONS: OffExchangeSettlementsTransactions, - PathValues.OFF_EXCHANGE_COLLATERAL_ACCOUNTS_MAIN_EXCHANGE_ACCOUNT_ID: OffExchangeCollateralAccountsMainExchangeAccountId, - PathValues.WEBHOOKS_RESEND: WebhooksResend, - PathValues.WEBHOOKS_RESEND_TX_ID: WebhooksResendTxId, - PathValues.NFTS_OWNERSHIP_TOKENS: NftsOwnershipTokens, - PathValues.NFTS_OWNERSHIP_COLLECTIONS: NftsOwnershipCollections, - PathValues.NFTS_TOKENS_ID: NftsTokensId, - PathValues.NFTS_TOKENS: NftsTokens, - PathValues.NFTS_OWNERSHIP_TOKENS_ID_STATUS: NftsOwnershipTokensIdStatus, - PathValues.CONNECTIONS: Connections, - PathValues.CONNECTIONS_WC: ConnectionsWc, - PathValues.CONNECTIONS_WC_ID: ConnectionsWcId, - PathValues.SCREENING_TRAVEL_RULE_TRANSACTION_VALIDATE: ScreeningTravelRuleTransactionValidate, - PathValues.SCREENING_TRAVEL_RULE_TRANSACTION_VALIDATE_FULL: ScreeningTravelRuleTransactionValidateFull, - PathValues.SCREENING_TRAVEL_RULE_VASP_DID: ScreeningTravelRuleVaspDid, - PathValues.SCREENING_TRAVEL_RULE_VASP: ScreeningTravelRuleVasp, - PathValues.SCREEENING_TRAVEL_RULE_VASP_UPDATE: ScreeeningTravelRuleVaspUpdate, - PathValues.MANAGEMENT_OTA: ManagementOta, - PathValues.TAP_ACTIVE_POLICY: TapActivePolicy, - PathValues.TAP_DRAFT: TapDraft, - PathValues.TAP_PUBLISH: TapPublish, - } -) - -path_to_api = PathToApi( - { - PathValues.VAULT_ACCOUNTS: VaultAccounts, - PathValues.VAULT_ACCOUNTS_PAGED: VaultAccountsPaged, - PathValues.VAULT_ACCOUNTS_VAULT_ACCOUNT_ID: VaultAccountsVaultAccountId, - PathValues.VAULT_ASSET_WALLETS: VaultAssetWallets, - PathValues.VAULT_ACCOUNTS_VAULT_ACCOUNT_ID_HIDE: VaultAccountsVaultAccountIdHide, - PathValues.VAULT_ACCOUNTS_VAULT_ACCOUNT_ID_UNHIDE: VaultAccountsVaultAccountIdUnhide, - PathValues.VAULT_ACCOUNTS_VAULT_ACCOUNT_ID_ASSET_ID_ACTIVATE: VaultAccountsVaultAccountIdAssetIdActivate, - PathValues.VAULT_ACCOUNTS_VAULT_ACCOUNT_ID_SET_CUSTOMER_REF_ID: VaultAccountsVaultAccountIdSetCustomerRefId, - PathValues.VAULT_ACCOUNTS_VAULT_ACCOUNT_ID_SET_AUTO_FUEL: VaultAccountsVaultAccountIdSetAutoFuel, - PathValues.VAULT_ACCOUNTS_VAULT_ACCOUNT_ID_ASSET_ID: VaultAccountsVaultAccountIdAssetId, - PathValues.VAULT_ACCOUNTS_VAULT_ACCOUNT_ID_ASSET_ID_BALANCE: VaultAccountsVaultAccountIdAssetIdBalance, - PathValues.VAULT_ACCOUNTS_VAULT_ACCOUNT_ID_ASSET_ID_ADDRESSES: VaultAccountsVaultAccountIdAssetIdAddresses, - PathValues.VAULT_ACCOUNTS_VAULT_ACCOUNT_ID_ASSET_ID_MAX_SPENDABLE_AMOUNT: VaultAccountsVaultAccountIdAssetIdMaxSpendableAmount, - PathValues.VAULT_ACCOUNTS_VAULT_ACCOUNT_ID_ASSET_ID_ADDRESSES_ADDRESS_ID: VaultAccountsVaultAccountIdAssetIdAddressesAddressId, - PathValues.VAULT_ACCOUNTS_VAULT_ACCOUNT_ID_ASSET_ID_ADDRESSES_ADDRESS_ID_SET_CUSTOMER_REF_ID: VaultAccountsVaultAccountIdAssetIdAddressesAddressIdSetCustomerRefId, - PathValues.VAULT_ACCOUNTS_VAULT_ACCOUNT_ID_ASSET_ID_ADDRESSES_ADDRESS_ID_CREATE_LEGACY: VaultAccountsVaultAccountIdAssetIdAddressesAddressIdCreateLegacy, - PathValues.VAULT_ACCOUNTS_VAULT_ACCOUNT_ID_ASSET_ID_UNSPENT_INPUTS: VaultAccountsVaultAccountIdAssetIdUnspentInputs, - PathValues.VAULT_PUBLIC_KEY_INFO_: VaultPublicKeyInfo, - PathValues.VAULT_ACCOUNTS_VAULT_ACCOUNT_ID_ASSET_ID_CHANGE_ADDRESS_INDEX_PUBLIC_KEY_INFO: VaultAccountsVaultAccountIdAssetIdChangeAddressIndexPublicKeyInfo, - PathValues.VAULT_ASSETS: VaultAssets, - PathValues.VAULT_ASSETS_ASSET_ID: VaultAssetsAssetId, - PathValues.EXCHANGE_ACCOUNTS: ExchangeAccounts, - PathValues.EXCHANGE_ACCOUNTS_EXCHANGE_ACCOUNT_ID: ExchangeAccountsExchangeAccountId, - PathValues.EXCHANGE_ACCOUNTS_EXCHANGE_ACCOUNT_ID_INTERNAL_TRANSFER: ExchangeAccountsExchangeAccountIdInternalTransfer, - PathValues.EXCHANGE_ACCOUNTS_EXCHANGE_ACCOUNT_ID_CONVERT: ExchangeAccountsExchangeAccountIdConvert, - PathValues.EXCHANGE_ACCOUNTS_EXCHANGE_ACCOUNT_ID_ASSET_ID: ExchangeAccountsExchangeAccountIdAssetId, - PathValues.FIAT_ACCOUNTS: FiatAccounts, - PathValues.FIAT_ACCOUNTS_ACCOUNT_ID: FiatAccountsAccountId, - PathValues.FIAT_ACCOUNTS_ACCOUNT_ID_REDEEM_TO_LINKED_DDA: FiatAccountsAccountIdRedeemToLinkedDda, - PathValues.FIAT_ACCOUNTS_ACCOUNT_ID_DEPOSIT_FROM_LINKED_DDA: FiatAccountsAccountIdDepositFromLinkedDda, - PathValues.NETWORK_CONNECTIONS: NetworkConnections, - PathValues.NETWORK_CONNECTIONS_CONNECTION_ID_SET_ROUTING_POLICY: NetworkConnectionsConnectionIdSetRoutingPolicy, - PathValues.NETWORK_CONNECTIONS_CONNECTION_ID_IS_THIRD_PARTY_ROUTING_ASSET_TYPE: NetworkConnectionsConnectionIdIsThirdPartyRoutingAssetType, - PathValues.NETWORK_CONNECTIONS_CONNECTION_ID: NetworkConnectionsConnectionId, - PathValues.NETWORK_IDS: NetworkIds, - PathValues.NETWORK_IDS_NETWORK_ID: NetworkIdsNetworkId, - PathValues.NETWORK_IDS_NETWORK_ID_SET_ROUTING_POLICY: NetworkIdsNetworkIdSetRoutingPolicy, - PathValues.NETWORK_IDS_NETWORK_ID_SET_DISCOVERABILITY: NetworkIdsNetworkIdSetDiscoverability, - PathValues.NETWORK_IDS_NETWORK_ID_SET_NAME: NetworkIdsNetworkIdSetName, - PathValues.INTERNAL_WALLETS: InternalWallets, - PathValues.INTERNAL_WALLETS_WALLET_ID: InternalWalletsWalletId, - PathValues.INTERNAL_WALLETS_WALLET_ID_SET_CUSTOMER_REF_ID: InternalWalletsWalletIdSetCustomerRefId, - PathValues.INTERNAL_WALLETS_WALLET_ID_ASSET_ID: InternalWalletsWalletIdAssetId, - PathValues.EXTERNAL_WALLETS: ExternalWallets, - PathValues.EXTERNAL_WALLETS_WALLET_ID: ExternalWalletsWalletId, - PathValues.EXTERNAL_WALLETS_WALLET_ID_SET_CUSTOMER_REF_ID: ExternalWalletsWalletIdSetCustomerRefId, - PathValues.EXTERNAL_WALLETS_WALLET_ID_ASSET_ID: ExternalWalletsWalletIdAssetId, - PathValues.CONTRACTS: Contracts, - PathValues.CONTRACTS_CONTRACT_ID: ContractsContractId, - PathValues.CONTRACTS_CONTRACT_ID_ASSET_ID: ContractsContractIdAssetId, - PathValues.SUPPORTED_ASSETS: SupportedAssets, - PathValues.TRANSACTIONS: Transactions, - PathValues.TRANSACTIONS_ESTIMATE_FEE: TransactionsEstimateFee, - PathValues.TRANSACTIONS_TX_ID: TransactionsTxId, - PathValues.TRANSACTIONS_EXTERNAL_TX_ID_EXTERNAL_TX_ID_: TransactionsExternalTxIdExternalTxId, - PathValues.TRANSACTIONS_TX_ID_SET_CONFIRMATION_THRESHOLD: TransactionsTxIdSetConfirmationThreshold, - PathValues.TRANSACTIONS_TX_ID_DROP: TransactionsTxIdDrop, - PathValues.TRANSACTIONS_TX_ID_CANCEL: TransactionsTxIdCancel, - PathValues.TRANSACTIONS_TX_ID_FREEZE: TransactionsTxIdFreeze, - PathValues.TRANSACTIONS_TX_ID_UNFREEZE: TransactionsTxIdUnfreeze, - PathValues.TRANSACTIONS_VALIDATE_ADDRESS_ASSET_ID_ADDRESS: TransactionsValidateAddressAssetIdAddress, - PathValues.TX_HASH_TX_HASH_SET_CONFIRMATION_THRESHOLD: TxHashTxHashSetConfirmationThreshold, - PathValues.ESTIMATE_NETWORK_FEE: EstimateNetworkFee, - PathValues.PAYMENTS_XBSETTLEMENTS_CONFIGS: PaymentsXbSettlementsConfigs, - PathValues.PAYMENTS_XBSETTLEMENTS_CONFIGS_CONFIG_ID: PaymentsXbSettlementsConfigsConfigId, - PathValues.PAYMENTS_XBSETTLEMENTS_FLOWS: PaymentsXbSettlementsFlows, - PathValues.PAYMENTS_XBSETTLEMENTS_FLOWS_FLOW_ID: PaymentsXbSettlementsFlowsFlowId, - PathValues.PAYMENTS_XBSETTLEMENTS_FLOWS_FLOW_ID_ACTIONS_EXECUTE: PaymentsXbSettlementsFlowsFlowIdActionsExecute, - PathValues.PAYMENTS_PAYOUT: PaymentsPayout, - PathValues.PAYMENTS_PAYOUT_PAYOUT_ID_ACTIONS_EXECUTE: PaymentsPayoutPayoutIdActionsExecute, - PathValues.PAYMENTS_PAYOUT_PAYOUT_ID: PaymentsPayoutPayoutId, - PathValues.GAS_STATION: GasStation, - PathValues.GAS_STATION_ASSET_ID: GasStationAssetId, - PathValues.GAS_STATION_CONFIGURATION: GasStationConfiguration, - PathValues.GAS_STATION_CONFIGURATION_ASSET_ID: GasStationConfigurationAssetId, - PathValues.USERS_GROUPS: UsersGroups, - PathValues.USERS_GROUPS_GROUP_ID: UsersGroupsGroupId, - PathValues.USERS: Users, - PathValues.AUDITS: Audits, - PathValues.OFF_EXCHANGE_ADD: OffExchangeAdd, - PathValues.OFF_EXCHANGE_REMOVE: OffExchangeRemove, - PathValues.OFF_EXCHANGE_SETTLEMENTS_TRADER: OffExchangeSettlementsTrader, - PathValues.OFF_EXCHANGE_SETTLEMENTS_TRANSACTIONS: OffExchangeSettlementsTransactions, - PathValues.OFF_EXCHANGE_COLLATERAL_ACCOUNTS_MAIN_EXCHANGE_ACCOUNT_ID: OffExchangeCollateralAccountsMainExchangeAccountId, - PathValues.WEBHOOKS_RESEND: WebhooksResend, - PathValues.WEBHOOKS_RESEND_TX_ID: WebhooksResendTxId, - PathValues.NFTS_OWNERSHIP_TOKENS: NftsOwnershipTokens, - PathValues.NFTS_OWNERSHIP_COLLECTIONS: NftsOwnershipCollections, - PathValues.NFTS_TOKENS_ID: NftsTokensId, - PathValues.NFTS_TOKENS: NftsTokens, - PathValues.NFTS_OWNERSHIP_TOKENS_ID_STATUS: NftsOwnershipTokensIdStatus, - PathValues.CONNECTIONS: Connections, - PathValues.CONNECTIONS_WC: ConnectionsWc, - PathValues.CONNECTIONS_WC_ID: ConnectionsWcId, - PathValues.SCREENING_TRAVEL_RULE_TRANSACTION_VALIDATE: ScreeningTravelRuleTransactionValidate, - PathValues.SCREENING_TRAVEL_RULE_TRANSACTION_VALIDATE_FULL: ScreeningTravelRuleTransactionValidateFull, - PathValues.SCREENING_TRAVEL_RULE_VASP_DID: ScreeningTravelRuleVaspDid, - PathValues.SCREENING_TRAVEL_RULE_VASP: ScreeningTravelRuleVasp, - PathValues.SCREEENING_TRAVEL_RULE_VASP_UPDATE: ScreeeningTravelRuleVaspUpdate, - PathValues.MANAGEMENT_OTA: ManagementOta, - PathValues.TAP_ACTIVE_POLICY: TapActivePolicy, - PathValues.TAP_DRAFT: TapDraft, - PathValues.TAP_PUBLISH: TapPublish, - } -) diff --git a/fireblocks_client/apis/paths/__init__.py b/fireblocks_client/apis/paths/__init__.py deleted file mode 100644 index 6ddbfc7a..00000000 --- a/fireblocks_client/apis/paths/__init__.py +++ /dev/null @@ -1,3 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.apis.path_to_api import path_to_api diff --git a/fireblocks_client/apis/paths/audits.py b/fireblocks_client/apis/paths/audits.py deleted file mode 100644 index a37c59e2..00000000 --- a/fireblocks_client/apis/paths/audits.py +++ /dev/null @@ -1,7 +0,0 @@ -from fireblocks_client.paths.audits.get import ApiForget - - -class Audits( - ApiForget, -): - pass diff --git a/fireblocks_client/apis/paths/connections.py b/fireblocks_client/apis/paths/connections.py deleted file mode 100644 index 76d1576d..00000000 --- a/fireblocks_client/apis/paths/connections.py +++ /dev/null @@ -1,7 +0,0 @@ -from fireblocks_client.paths.connections.get import ApiForget - - -class Connections( - ApiForget, -): - pass diff --git a/fireblocks_client/apis/paths/connections_wc.py b/fireblocks_client/apis/paths/connections_wc.py deleted file mode 100644 index 01410cf7..00000000 --- a/fireblocks_client/apis/paths/connections_wc.py +++ /dev/null @@ -1,7 +0,0 @@ -from fireblocks_client.paths.connections_wc.post import ApiForpost - - -class ConnectionsWc( - ApiForpost, -): - pass diff --git a/fireblocks_client/apis/paths/connections_wc_id.py b/fireblocks_client/apis/paths/connections_wc_id.py deleted file mode 100644 index 410ddf01..00000000 --- a/fireblocks_client/apis/paths/connections_wc_id.py +++ /dev/null @@ -1,9 +0,0 @@ -from fireblocks_client.paths.connections_wc_id.put import ApiForput -from fireblocks_client.paths.connections_wc_id.delete import ApiFordelete - - -class ConnectionsWcId( - ApiForput, - ApiFordelete, -): - pass diff --git a/fireblocks_client/apis/paths/contracts.py b/fireblocks_client/apis/paths/contracts.py deleted file mode 100644 index 84de3f3d..00000000 --- a/fireblocks_client/apis/paths/contracts.py +++ /dev/null @@ -1,9 +0,0 @@ -from fireblocks_client.paths.contracts.get import ApiForget -from fireblocks_client.paths.contracts.post import ApiForpost - - -class Contracts( - ApiForget, - ApiForpost, -): - pass diff --git a/fireblocks_client/apis/paths/contracts_contract_id.py b/fireblocks_client/apis/paths/contracts_contract_id.py deleted file mode 100644 index 10992e65..00000000 --- a/fireblocks_client/apis/paths/contracts_contract_id.py +++ /dev/null @@ -1,9 +0,0 @@ -from fireblocks_client.paths.contracts_contract_id.get import ApiForget -from fireblocks_client.paths.contracts_contract_id.delete import ApiFordelete - - -class ContractsContractId( - ApiForget, - ApiFordelete, -): - pass diff --git a/fireblocks_client/apis/paths/contracts_contract_id_asset_id.py b/fireblocks_client/apis/paths/contracts_contract_id_asset_id.py deleted file mode 100644 index fedcbd93..00000000 --- a/fireblocks_client/apis/paths/contracts_contract_id_asset_id.py +++ /dev/null @@ -1,11 +0,0 @@ -from fireblocks_client.paths.contracts_contract_id_asset_id.get import ApiForget -from fireblocks_client.paths.contracts_contract_id_asset_id.post import ApiForpost -from fireblocks_client.paths.contracts_contract_id_asset_id.delete import ApiFordelete - - -class ContractsContractIdAssetId( - ApiForget, - ApiForpost, - ApiFordelete, -): - pass diff --git a/fireblocks_client/apis/paths/estimate_network_fee.py b/fireblocks_client/apis/paths/estimate_network_fee.py deleted file mode 100644 index 1ba4b84e..00000000 --- a/fireblocks_client/apis/paths/estimate_network_fee.py +++ /dev/null @@ -1,7 +0,0 @@ -from fireblocks_client.paths.estimate_network_fee.get import ApiForget - - -class EstimateNetworkFee( - ApiForget, -): - pass diff --git a/fireblocks_client/apis/paths/exchange_accounts.py b/fireblocks_client/apis/paths/exchange_accounts.py deleted file mode 100644 index 2b6ca8e0..00000000 --- a/fireblocks_client/apis/paths/exchange_accounts.py +++ /dev/null @@ -1,7 +0,0 @@ -from fireblocks_client.paths.exchange_accounts.get import ApiForget - - -class ExchangeAccounts( - ApiForget, -): - pass diff --git a/fireblocks_client/apis/paths/exchange_accounts_exchange_account_id.py b/fireblocks_client/apis/paths/exchange_accounts_exchange_account_id.py deleted file mode 100644 index f0eadc61..00000000 --- a/fireblocks_client/apis/paths/exchange_accounts_exchange_account_id.py +++ /dev/null @@ -1,7 +0,0 @@ -from fireblocks_client.paths.exchange_accounts_exchange_account_id.get import ApiForget - - -class ExchangeAccountsExchangeAccountId( - ApiForget, -): - pass diff --git a/fireblocks_client/apis/paths/exchange_accounts_exchange_account_id_asset_id.py b/fireblocks_client/apis/paths/exchange_accounts_exchange_account_id_asset_id.py deleted file mode 100644 index 1f6678ec..00000000 --- a/fireblocks_client/apis/paths/exchange_accounts_exchange_account_id_asset_id.py +++ /dev/null @@ -1,7 +0,0 @@ -from fireblocks_client.paths.exchange_accounts_exchange_account_id_asset_id.get import ApiForget - - -class ExchangeAccountsExchangeAccountIdAssetId( - ApiForget, -): - pass diff --git a/fireblocks_client/apis/paths/exchange_accounts_exchange_account_id_convert.py b/fireblocks_client/apis/paths/exchange_accounts_exchange_account_id_convert.py deleted file mode 100644 index 07c96031..00000000 --- a/fireblocks_client/apis/paths/exchange_accounts_exchange_account_id_convert.py +++ /dev/null @@ -1,7 +0,0 @@ -from fireblocks_client.paths.exchange_accounts_exchange_account_id_convert.post import ApiForpost - - -class ExchangeAccountsExchangeAccountIdConvert( - ApiForpost, -): - pass diff --git a/fireblocks_client/apis/paths/exchange_accounts_exchange_account_id_internal_transfer.py b/fireblocks_client/apis/paths/exchange_accounts_exchange_account_id_internal_transfer.py deleted file mode 100644 index b3edaaec..00000000 --- a/fireblocks_client/apis/paths/exchange_accounts_exchange_account_id_internal_transfer.py +++ /dev/null @@ -1,7 +0,0 @@ -from fireblocks_client.paths.exchange_accounts_exchange_account_id_internal_transfer.post import ApiForpost - - -class ExchangeAccountsExchangeAccountIdInternalTransfer( - ApiForpost, -): - pass diff --git a/fireblocks_client/apis/paths/external_wallets.py b/fireblocks_client/apis/paths/external_wallets.py deleted file mode 100644 index 630c524f..00000000 --- a/fireblocks_client/apis/paths/external_wallets.py +++ /dev/null @@ -1,9 +0,0 @@ -from fireblocks_client.paths.external_wallets.get import ApiForget -from fireblocks_client.paths.external_wallets.post import ApiForpost - - -class ExternalWallets( - ApiForget, - ApiForpost, -): - pass diff --git a/fireblocks_client/apis/paths/external_wallets_wallet_id.py b/fireblocks_client/apis/paths/external_wallets_wallet_id.py deleted file mode 100644 index b1eeae01..00000000 --- a/fireblocks_client/apis/paths/external_wallets_wallet_id.py +++ /dev/null @@ -1,9 +0,0 @@ -from fireblocks_client.paths.external_wallets_wallet_id.get import ApiForget -from fireblocks_client.paths.external_wallets_wallet_id.delete import ApiFordelete - - -class ExternalWalletsWalletId( - ApiForget, - ApiFordelete, -): - pass diff --git a/fireblocks_client/apis/paths/external_wallets_wallet_id_asset_id.py b/fireblocks_client/apis/paths/external_wallets_wallet_id_asset_id.py deleted file mode 100644 index 5723152b..00000000 --- a/fireblocks_client/apis/paths/external_wallets_wallet_id_asset_id.py +++ /dev/null @@ -1,11 +0,0 @@ -from fireblocks_client.paths.external_wallets_wallet_id_asset_id.get import ApiForget -from fireblocks_client.paths.external_wallets_wallet_id_asset_id.post import ApiForpost -from fireblocks_client.paths.external_wallets_wallet_id_asset_id.delete import ApiFordelete - - -class ExternalWalletsWalletIdAssetId( - ApiForget, - ApiForpost, - ApiFordelete, -): - pass diff --git a/fireblocks_client/apis/paths/external_wallets_wallet_id_set_customer_ref_id.py b/fireblocks_client/apis/paths/external_wallets_wallet_id_set_customer_ref_id.py deleted file mode 100644 index 0f842c34..00000000 --- a/fireblocks_client/apis/paths/external_wallets_wallet_id_set_customer_ref_id.py +++ /dev/null @@ -1,7 +0,0 @@ -from fireblocks_client.paths.external_wallets_wallet_id_set_customer_ref_id.post import ApiForpost - - -class ExternalWalletsWalletIdSetCustomerRefId( - ApiForpost, -): - pass diff --git a/fireblocks_client/apis/paths/fiat_accounts.py b/fireblocks_client/apis/paths/fiat_accounts.py deleted file mode 100644 index 9937be18..00000000 --- a/fireblocks_client/apis/paths/fiat_accounts.py +++ /dev/null @@ -1,7 +0,0 @@ -from fireblocks_client.paths.fiat_accounts.get import ApiForget - - -class FiatAccounts( - ApiForget, -): - pass diff --git a/fireblocks_client/apis/paths/fiat_accounts_account_id.py b/fireblocks_client/apis/paths/fiat_accounts_account_id.py deleted file mode 100644 index 33881c2e..00000000 --- a/fireblocks_client/apis/paths/fiat_accounts_account_id.py +++ /dev/null @@ -1,7 +0,0 @@ -from fireblocks_client.paths.fiat_accounts_account_id.get import ApiForget - - -class FiatAccountsAccountId( - ApiForget, -): - pass diff --git a/fireblocks_client/apis/paths/fiat_accounts_account_id_deposit_from_linked_dda.py b/fireblocks_client/apis/paths/fiat_accounts_account_id_deposit_from_linked_dda.py deleted file mode 100644 index e960961f..00000000 --- a/fireblocks_client/apis/paths/fiat_accounts_account_id_deposit_from_linked_dda.py +++ /dev/null @@ -1,7 +0,0 @@ -from fireblocks_client.paths.fiat_accounts_account_id_deposit_from_linked_dda.post import ApiForpost - - -class FiatAccountsAccountIdDepositFromLinkedDda( - ApiForpost, -): - pass diff --git a/fireblocks_client/apis/paths/fiat_accounts_account_id_redeem_to_linked_dda.py b/fireblocks_client/apis/paths/fiat_accounts_account_id_redeem_to_linked_dda.py deleted file mode 100644 index 67521e3e..00000000 --- a/fireblocks_client/apis/paths/fiat_accounts_account_id_redeem_to_linked_dda.py +++ /dev/null @@ -1,7 +0,0 @@ -from fireblocks_client.paths.fiat_accounts_account_id_redeem_to_linked_dda.post import ApiForpost - - -class FiatAccountsAccountIdRedeemToLinkedDda( - ApiForpost, -): - pass diff --git a/fireblocks_client/apis/paths/gas_station.py b/fireblocks_client/apis/paths/gas_station.py deleted file mode 100644 index 2967854c..00000000 --- a/fireblocks_client/apis/paths/gas_station.py +++ /dev/null @@ -1,7 +0,0 @@ -from fireblocks_client.paths.gas_station.get import ApiForget - - -class GasStation( - ApiForget, -): - pass diff --git a/fireblocks_client/apis/paths/gas_station_asset_id.py b/fireblocks_client/apis/paths/gas_station_asset_id.py deleted file mode 100644 index 28824a56..00000000 --- a/fireblocks_client/apis/paths/gas_station_asset_id.py +++ /dev/null @@ -1,7 +0,0 @@ -from fireblocks_client.paths.gas_station_asset_id.get import ApiForget - - -class GasStationAssetId( - ApiForget, -): - pass diff --git a/fireblocks_client/apis/paths/gas_station_configuration.py b/fireblocks_client/apis/paths/gas_station_configuration.py deleted file mode 100644 index 57a48f7e..00000000 --- a/fireblocks_client/apis/paths/gas_station_configuration.py +++ /dev/null @@ -1,7 +0,0 @@ -from fireblocks_client.paths.gas_station_configuration.put import ApiForput - - -class GasStationConfiguration( - ApiForput, -): - pass diff --git a/fireblocks_client/apis/paths/gas_station_configuration_asset_id.py b/fireblocks_client/apis/paths/gas_station_configuration_asset_id.py deleted file mode 100644 index 2ad45b39..00000000 --- a/fireblocks_client/apis/paths/gas_station_configuration_asset_id.py +++ /dev/null @@ -1,7 +0,0 @@ -from fireblocks_client.paths.gas_station_configuration_asset_id.put import ApiForput - - -class GasStationConfigurationAssetId( - ApiForput, -): - pass diff --git a/fireblocks_client/apis/paths/internal_wallets.py b/fireblocks_client/apis/paths/internal_wallets.py deleted file mode 100644 index f9438a86..00000000 --- a/fireblocks_client/apis/paths/internal_wallets.py +++ /dev/null @@ -1,9 +0,0 @@ -from fireblocks_client.paths.internal_wallets.get import ApiForget -from fireblocks_client.paths.internal_wallets.post import ApiForpost - - -class InternalWallets( - ApiForget, - ApiForpost, -): - pass diff --git a/fireblocks_client/apis/paths/internal_wallets_wallet_id.py b/fireblocks_client/apis/paths/internal_wallets_wallet_id.py deleted file mode 100644 index e4ca1258..00000000 --- a/fireblocks_client/apis/paths/internal_wallets_wallet_id.py +++ /dev/null @@ -1,9 +0,0 @@ -from fireblocks_client.paths.internal_wallets_wallet_id.get import ApiForget -from fireblocks_client.paths.internal_wallets_wallet_id.delete import ApiFordelete - - -class InternalWalletsWalletId( - ApiForget, - ApiFordelete, -): - pass diff --git a/fireblocks_client/apis/paths/internal_wallets_wallet_id_asset_id.py b/fireblocks_client/apis/paths/internal_wallets_wallet_id_asset_id.py deleted file mode 100644 index abc26162..00000000 --- a/fireblocks_client/apis/paths/internal_wallets_wallet_id_asset_id.py +++ /dev/null @@ -1,11 +0,0 @@ -from fireblocks_client.paths.internal_wallets_wallet_id_asset_id.get import ApiForget -from fireblocks_client.paths.internal_wallets_wallet_id_asset_id.post import ApiForpost -from fireblocks_client.paths.internal_wallets_wallet_id_asset_id.delete import ApiFordelete - - -class InternalWalletsWalletIdAssetId( - ApiForget, - ApiForpost, - ApiFordelete, -): - pass diff --git a/fireblocks_client/apis/paths/internal_wallets_wallet_id_set_customer_ref_id.py b/fireblocks_client/apis/paths/internal_wallets_wallet_id_set_customer_ref_id.py deleted file mode 100644 index ab601191..00000000 --- a/fireblocks_client/apis/paths/internal_wallets_wallet_id_set_customer_ref_id.py +++ /dev/null @@ -1,7 +0,0 @@ -from fireblocks_client.paths.internal_wallets_wallet_id_set_customer_ref_id.post import ApiForpost - - -class InternalWalletsWalletIdSetCustomerRefId( - ApiForpost, -): - pass diff --git a/fireblocks_client/apis/paths/management_ota.py b/fireblocks_client/apis/paths/management_ota.py deleted file mode 100644 index 9d2169e6..00000000 --- a/fireblocks_client/apis/paths/management_ota.py +++ /dev/null @@ -1,9 +0,0 @@ -from fireblocks_client.paths.management_ota.get import ApiForget -from fireblocks_client.paths.management_ota.post import ApiForpost - - -class ManagementOta( - ApiForget, - ApiForpost, -): - pass diff --git a/fireblocks_client/apis/paths/network_connections.py b/fireblocks_client/apis/paths/network_connections.py deleted file mode 100644 index bf1acbd1..00000000 --- a/fireblocks_client/apis/paths/network_connections.py +++ /dev/null @@ -1,9 +0,0 @@ -from fireblocks_client.paths.network_connections.get import ApiForget -from fireblocks_client.paths.network_connections.post import ApiForpost - - -class NetworkConnections( - ApiForget, - ApiForpost, -): - pass diff --git a/fireblocks_client/apis/paths/network_connections_connection_id.py b/fireblocks_client/apis/paths/network_connections_connection_id.py deleted file mode 100644 index 7413cb24..00000000 --- a/fireblocks_client/apis/paths/network_connections_connection_id.py +++ /dev/null @@ -1,9 +0,0 @@ -from fireblocks_client.paths.network_connections_connection_id.get import ApiForget -from fireblocks_client.paths.network_connections_connection_id.delete import ApiFordelete - - -class NetworkConnectionsConnectionId( - ApiForget, - ApiFordelete, -): - pass diff --git a/fireblocks_client/apis/paths/network_connections_connection_id_is_third_party_routing_asset_type.py b/fireblocks_client/apis/paths/network_connections_connection_id_is_third_party_routing_asset_type.py deleted file mode 100644 index 631d0885..00000000 --- a/fireblocks_client/apis/paths/network_connections_connection_id_is_third_party_routing_asset_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from fireblocks_client.paths.network_connections_connection_id_is_third_party_routing_asset_type.get import ApiForget - - -class NetworkConnectionsConnectionIdIsThirdPartyRoutingAssetType( - ApiForget, -): - pass diff --git a/fireblocks_client/apis/paths/network_connections_connection_id_set_routing_policy.py b/fireblocks_client/apis/paths/network_connections_connection_id_set_routing_policy.py deleted file mode 100644 index 061e3eb5..00000000 --- a/fireblocks_client/apis/paths/network_connections_connection_id_set_routing_policy.py +++ /dev/null @@ -1,7 +0,0 @@ -from fireblocks_client.paths.network_connections_connection_id_set_routing_policy.patch import ApiForpatch - - -class NetworkConnectionsConnectionIdSetRoutingPolicy( - ApiForpatch, -): - pass diff --git a/fireblocks_client/apis/paths/network_ids.py b/fireblocks_client/apis/paths/network_ids.py deleted file mode 100644 index 172714b2..00000000 --- a/fireblocks_client/apis/paths/network_ids.py +++ /dev/null @@ -1,9 +0,0 @@ -from fireblocks_client.paths.network_ids.get import ApiForget -from fireblocks_client.paths.network_ids.post import ApiForpost - - -class NetworkIds( - ApiForget, - ApiForpost, -): - pass diff --git a/fireblocks_client/apis/paths/network_ids_network_id.py b/fireblocks_client/apis/paths/network_ids_network_id.py deleted file mode 100644 index 4ed67ee2..00000000 --- a/fireblocks_client/apis/paths/network_ids_network_id.py +++ /dev/null @@ -1,9 +0,0 @@ -from fireblocks_client.paths.network_ids_network_id.get import ApiForget -from fireblocks_client.paths.network_ids_network_id.delete import ApiFordelete - - -class NetworkIdsNetworkId( - ApiForget, - ApiFordelete, -): - pass diff --git a/fireblocks_client/apis/paths/network_ids_network_id_set_discoverability.py b/fireblocks_client/apis/paths/network_ids_network_id_set_discoverability.py deleted file mode 100644 index 78389cae..00000000 --- a/fireblocks_client/apis/paths/network_ids_network_id_set_discoverability.py +++ /dev/null @@ -1,7 +0,0 @@ -from fireblocks_client.paths.network_ids_network_id_set_discoverability.patch import ApiForpatch - - -class NetworkIdsNetworkIdSetDiscoverability( - ApiForpatch, -): - pass diff --git a/fireblocks_client/apis/paths/network_ids_network_id_set_name.py b/fireblocks_client/apis/paths/network_ids_network_id_set_name.py deleted file mode 100644 index 045286ba..00000000 --- a/fireblocks_client/apis/paths/network_ids_network_id_set_name.py +++ /dev/null @@ -1,7 +0,0 @@ -from fireblocks_client.paths.network_ids_network_id_set_name.patch import ApiForpatch - - -class NetworkIdsNetworkIdSetName( - ApiForpatch, -): - pass diff --git a/fireblocks_client/apis/paths/network_ids_network_id_set_routing_policy.py b/fireblocks_client/apis/paths/network_ids_network_id_set_routing_policy.py deleted file mode 100644 index 0f9561b6..00000000 --- a/fireblocks_client/apis/paths/network_ids_network_id_set_routing_policy.py +++ /dev/null @@ -1,7 +0,0 @@ -from fireblocks_client.paths.network_ids_network_id_set_routing_policy.patch import ApiForpatch - - -class NetworkIdsNetworkIdSetRoutingPolicy( - ApiForpatch, -): - pass diff --git a/fireblocks_client/apis/paths/nfts_ownership_collections.py b/fireblocks_client/apis/paths/nfts_ownership_collections.py deleted file mode 100644 index f1fd059c..00000000 --- a/fireblocks_client/apis/paths/nfts_ownership_collections.py +++ /dev/null @@ -1,7 +0,0 @@ -from fireblocks_client.paths.nfts_ownership_collections.get import ApiForget - - -class NftsOwnershipCollections( - ApiForget, -): - pass diff --git a/fireblocks_client/apis/paths/nfts_ownership_tokens.py b/fireblocks_client/apis/paths/nfts_ownership_tokens.py deleted file mode 100644 index 8f6a6841..00000000 --- a/fireblocks_client/apis/paths/nfts_ownership_tokens.py +++ /dev/null @@ -1,9 +0,0 @@ -from fireblocks_client.paths.nfts_ownership_tokens.get import ApiForget -from fireblocks_client.paths.nfts_ownership_tokens.put import ApiForput - - -class NftsOwnershipTokens( - ApiForget, - ApiForput, -): - pass diff --git a/fireblocks_client/apis/paths/nfts_ownership_tokens_id_status.py b/fireblocks_client/apis/paths/nfts_ownership_tokens_id_status.py deleted file mode 100644 index 2c3a75e0..00000000 --- a/fireblocks_client/apis/paths/nfts_ownership_tokens_id_status.py +++ /dev/null @@ -1,7 +0,0 @@ -from fireblocks_client.paths.nfts_ownership_tokens_id_status.put import ApiForput - - -class NftsOwnershipTokensIdStatus( - ApiForput, -): - pass diff --git a/fireblocks_client/apis/paths/nfts_tokens.py b/fireblocks_client/apis/paths/nfts_tokens.py deleted file mode 100644 index a5440715..00000000 --- a/fireblocks_client/apis/paths/nfts_tokens.py +++ /dev/null @@ -1,7 +0,0 @@ -from fireblocks_client.paths.nfts_tokens.get import ApiForget - - -class NftsTokens( - ApiForget, -): - pass diff --git a/fireblocks_client/apis/paths/nfts_tokens_id.py b/fireblocks_client/apis/paths/nfts_tokens_id.py deleted file mode 100644 index 3554fa2b..00000000 --- a/fireblocks_client/apis/paths/nfts_tokens_id.py +++ /dev/null @@ -1,9 +0,0 @@ -from fireblocks_client.paths.nfts_tokens_id.get import ApiForget -from fireblocks_client.paths.nfts_tokens_id.put import ApiForput - - -class NftsTokensId( - ApiForget, - ApiForput, -): - pass diff --git a/fireblocks_client/apis/paths/off_exchange_add.py b/fireblocks_client/apis/paths/off_exchange_add.py deleted file mode 100644 index c119d06f..00000000 --- a/fireblocks_client/apis/paths/off_exchange_add.py +++ /dev/null @@ -1,7 +0,0 @@ -from fireblocks_client.paths.off_exchange_add.post import ApiForpost - - -class OffExchangeAdd( - ApiForpost, -): - pass diff --git a/fireblocks_client/apis/paths/off_exchange_collateral_accounts_main_exchange_account_id.py b/fireblocks_client/apis/paths/off_exchange_collateral_accounts_main_exchange_account_id.py deleted file mode 100644 index 1712d4ad..00000000 --- a/fireblocks_client/apis/paths/off_exchange_collateral_accounts_main_exchange_account_id.py +++ /dev/null @@ -1,7 +0,0 @@ -from fireblocks_client.paths.off_exchange_collateral_accounts_main_exchange_account_id.get import ApiForget - - -class OffExchangeCollateralAccountsMainExchangeAccountId( - ApiForget, -): - pass diff --git a/fireblocks_client/apis/paths/off_exchange_remove.py b/fireblocks_client/apis/paths/off_exchange_remove.py deleted file mode 100644 index c5100f5a..00000000 --- a/fireblocks_client/apis/paths/off_exchange_remove.py +++ /dev/null @@ -1,7 +0,0 @@ -from fireblocks_client.paths.off_exchange_remove.post import ApiForpost - - -class OffExchangeRemove( - ApiForpost, -): - pass diff --git a/fireblocks_client/apis/paths/off_exchange_settlements_trader.py b/fireblocks_client/apis/paths/off_exchange_settlements_trader.py deleted file mode 100644 index 6670f421..00000000 --- a/fireblocks_client/apis/paths/off_exchange_settlements_trader.py +++ /dev/null @@ -1,7 +0,0 @@ -from fireblocks_client.paths.off_exchange_settlements_trader.post import ApiForpost - - -class OffExchangeSettlementsTrader( - ApiForpost, -): - pass diff --git a/fireblocks_client/apis/paths/off_exchange_settlements_transactions.py b/fireblocks_client/apis/paths/off_exchange_settlements_transactions.py deleted file mode 100644 index 1e144de5..00000000 --- a/fireblocks_client/apis/paths/off_exchange_settlements_transactions.py +++ /dev/null @@ -1,7 +0,0 @@ -from fireblocks_client.paths.off_exchange_settlements_transactions.get import ApiForget - - -class OffExchangeSettlementsTransactions( - ApiForget, -): - pass diff --git a/fireblocks_client/apis/paths/payments_payout.py b/fireblocks_client/apis/paths/payments_payout.py deleted file mode 100644 index a68549d4..00000000 --- a/fireblocks_client/apis/paths/payments_payout.py +++ /dev/null @@ -1,7 +0,0 @@ -from fireblocks_client.paths.payments_payout.post import ApiForpost - - -class PaymentsPayout( - ApiForpost, -): - pass diff --git a/fireblocks_client/apis/paths/payments_payout_payout_id.py b/fireblocks_client/apis/paths/payments_payout_payout_id.py deleted file mode 100644 index dd3a4723..00000000 --- a/fireblocks_client/apis/paths/payments_payout_payout_id.py +++ /dev/null @@ -1,7 +0,0 @@ -from fireblocks_client.paths.payments_payout_payout_id.get import ApiForget - - -class PaymentsPayoutPayoutId( - ApiForget, -): - pass diff --git a/fireblocks_client/apis/paths/payments_payout_payout_id_actions_execute.py b/fireblocks_client/apis/paths/payments_payout_payout_id_actions_execute.py deleted file mode 100644 index c593181b..00000000 --- a/fireblocks_client/apis/paths/payments_payout_payout_id_actions_execute.py +++ /dev/null @@ -1,7 +0,0 @@ -from fireblocks_client.paths.payments_payout_payout_id_actions_execute.post import ApiForpost - - -class PaymentsPayoutPayoutIdActionsExecute( - ApiForpost, -): - pass diff --git a/fireblocks_client/apis/paths/payments_xb_settlements_configs.py b/fireblocks_client/apis/paths/payments_xb_settlements_configs.py deleted file mode 100644 index 0d65e291..00000000 --- a/fireblocks_client/apis/paths/payments_xb_settlements_configs.py +++ /dev/null @@ -1,9 +0,0 @@ -from fireblocks_client.paths.payments_xb_settlements_configs.get import ApiForget -from fireblocks_client.paths.payments_xb_settlements_configs.post import ApiForpost - - -class PaymentsXbSettlementsConfigs( - ApiForget, - ApiForpost, -): - pass diff --git a/fireblocks_client/apis/paths/payments_xb_settlements_configs_config_id.py b/fireblocks_client/apis/paths/payments_xb_settlements_configs_config_id.py deleted file mode 100644 index 87823505..00000000 --- a/fireblocks_client/apis/paths/payments_xb_settlements_configs_config_id.py +++ /dev/null @@ -1,11 +0,0 @@ -from fireblocks_client.paths.payments_xb_settlements_configs_config_id.get import ApiForget -from fireblocks_client.paths.payments_xb_settlements_configs_config_id.put import ApiForput -from fireblocks_client.paths.payments_xb_settlements_configs_config_id.delete import ApiFordelete - - -class PaymentsXbSettlementsConfigsConfigId( - ApiForget, - ApiForput, - ApiFordelete, -): - pass diff --git a/fireblocks_client/apis/paths/payments_xb_settlements_flows.py b/fireblocks_client/apis/paths/payments_xb_settlements_flows.py deleted file mode 100644 index a26d050d..00000000 --- a/fireblocks_client/apis/paths/payments_xb_settlements_flows.py +++ /dev/null @@ -1,7 +0,0 @@ -from fireblocks_client.paths.payments_xb_settlements_flows.post import ApiForpost - - -class PaymentsXbSettlementsFlows( - ApiForpost, -): - pass diff --git a/fireblocks_client/apis/paths/payments_xb_settlements_flows_flow_id.py b/fireblocks_client/apis/paths/payments_xb_settlements_flows_flow_id.py deleted file mode 100644 index 6ecd72ea..00000000 --- a/fireblocks_client/apis/paths/payments_xb_settlements_flows_flow_id.py +++ /dev/null @@ -1,7 +0,0 @@ -from fireblocks_client.paths.payments_xb_settlements_flows_flow_id.get import ApiForget - - -class PaymentsXbSettlementsFlowsFlowId( - ApiForget, -): - pass diff --git a/fireblocks_client/apis/paths/payments_xb_settlements_flows_flow_id_actions_execute.py b/fireblocks_client/apis/paths/payments_xb_settlements_flows_flow_id_actions_execute.py deleted file mode 100644 index a96cdfc8..00000000 --- a/fireblocks_client/apis/paths/payments_xb_settlements_flows_flow_id_actions_execute.py +++ /dev/null @@ -1,7 +0,0 @@ -from fireblocks_client.paths.payments_xb_settlements_flows_flow_id_actions_execute.post import ApiForpost - - -class PaymentsXbSettlementsFlowsFlowIdActionsExecute( - ApiForpost, -): - pass diff --git a/fireblocks_client/apis/paths/screeening_travel_rule_vasp_update.py b/fireblocks_client/apis/paths/screeening_travel_rule_vasp_update.py deleted file mode 100644 index 642d7723..00000000 --- a/fireblocks_client/apis/paths/screeening_travel_rule_vasp_update.py +++ /dev/null @@ -1,7 +0,0 @@ -from fireblocks_client.paths.screeening_travel_rule_vasp_update.put import ApiForput - - -class ScreeeningTravelRuleVaspUpdate( - ApiForput, -): - pass diff --git a/fireblocks_client/apis/paths/screening_travel_rule_transaction_validate.py b/fireblocks_client/apis/paths/screening_travel_rule_transaction_validate.py deleted file mode 100644 index bcb63c38..00000000 --- a/fireblocks_client/apis/paths/screening_travel_rule_transaction_validate.py +++ /dev/null @@ -1,7 +0,0 @@ -from fireblocks_client.paths.screening_travel_rule_transaction_validate.post import ApiForpost - - -class ScreeningTravelRuleTransactionValidate( - ApiForpost, -): - pass diff --git a/fireblocks_client/apis/paths/screening_travel_rule_transaction_validate_full.py b/fireblocks_client/apis/paths/screening_travel_rule_transaction_validate_full.py deleted file mode 100644 index d05ae1e6..00000000 --- a/fireblocks_client/apis/paths/screening_travel_rule_transaction_validate_full.py +++ /dev/null @@ -1,7 +0,0 @@ -from fireblocks_client.paths.screening_travel_rule_transaction_validate_full.post import ApiForpost - - -class ScreeningTravelRuleTransactionValidateFull( - ApiForpost, -): - pass diff --git a/fireblocks_client/apis/paths/screening_travel_rule_vasp.py b/fireblocks_client/apis/paths/screening_travel_rule_vasp.py deleted file mode 100644 index fb45b450..00000000 --- a/fireblocks_client/apis/paths/screening_travel_rule_vasp.py +++ /dev/null @@ -1,7 +0,0 @@ -from fireblocks_client.paths.screening_travel_rule_vasp.get import ApiForget - - -class ScreeningTravelRuleVasp( - ApiForget, -): - pass diff --git a/fireblocks_client/apis/paths/screening_travel_rule_vasp_did.py b/fireblocks_client/apis/paths/screening_travel_rule_vasp_did.py deleted file mode 100644 index 0e228563..00000000 --- a/fireblocks_client/apis/paths/screening_travel_rule_vasp_did.py +++ /dev/null @@ -1,7 +0,0 @@ -from fireblocks_client.paths.screening_travel_rule_vasp_did.get import ApiForget - - -class ScreeningTravelRuleVaspDid( - ApiForget, -): - pass diff --git a/fireblocks_client/apis/paths/supported_assets.py b/fireblocks_client/apis/paths/supported_assets.py deleted file mode 100644 index 67d36b29..00000000 --- a/fireblocks_client/apis/paths/supported_assets.py +++ /dev/null @@ -1,7 +0,0 @@ -from fireblocks_client.paths.supported_assets.get import ApiForget - - -class SupportedAssets( - ApiForget, -): - pass diff --git a/fireblocks_client/apis/paths/tap_active_policy.py b/fireblocks_client/apis/paths/tap_active_policy.py deleted file mode 100644 index 9eb88e1b..00000000 --- a/fireblocks_client/apis/paths/tap_active_policy.py +++ /dev/null @@ -1,7 +0,0 @@ -from fireblocks_client.paths.tap_active_policy.get import ApiForget - - -class TapActivePolicy( - ApiForget, -): - pass diff --git a/fireblocks_client/apis/paths/tap_draft.py b/fireblocks_client/apis/paths/tap_draft.py deleted file mode 100644 index 259345eb..00000000 --- a/fireblocks_client/apis/paths/tap_draft.py +++ /dev/null @@ -1,11 +0,0 @@ -from fireblocks_client.paths.tap_draft.get import ApiForget -from fireblocks_client.paths.tap_draft.put import ApiForput -from fireblocks_client.paths.tap_draft.post import ApiForpost - - -class TapDraft( - ApiForget, - ApiForput, - ApiForpost, -): - pass diff --git a/fireblocks_client/apis/paths/tap_publish.py b/fireblocks_client/apis/paths/tap_publish.py deleted file mode 100644 index 9561b5be..00000000 --- a/fireblocks_client/apis/paths/tap_publish.py +++ /dev/null @@ -1,7 +0,0 @@ -from fireblocks_client.paths.tap_publish.post import ApiForpost - - -class TapPublish( - ApiForpost, -): - pass diff --git a/fireblocks_client/apis/paths/transactions.py b/fireblocks_client/apis/paths/transactions.py deleted file mode 100644 index 99b75780..00000000 --- a/fireblocks_client/apis/paths/transactions.py +++ /dev/null @@ -1,9 +0,0 @@ -from fireblocks_client.paths.transactions.get import ApiForget -from fireblocks_client.paths.transactions.post import ApiForpost - - -class Transactions( - ApiForget, - ApiForpost, -): - pass diff --git a/fireblocks_client/apis/paths/transactions_estimate_fee.py b/fireblocks_client/apis/paths/transactions_estimate_fee.py deleted file mode 100644 index 76595ec8..00000000 --- a/fireblocks_client/apis/paths/transactions_estimate_fee.py +++ /dev/null @@ -1,7 +0,0 @@ -from fireblocks_client.paths.transactions_estimate_fee.post import ApiForpost - - -class TransactionsEstimateFee( - ApiForpost, -): - pass diff --git a/fireblocks_client/apis/paths/transactions_external_tx_id_external_tx_id_.py b/fireblocks_client/apis/paths/transactions_external_tx_id_external_tx_id_.py deleted file mode 100644 index f14d2ad9..00000000 --- a/fireblocks_client/apis/paths/transactions_external_tx_id_external_tx_id_.py +++ /dev/null @@ -1,7 +0,0 @@ -from fireblocks_client.paths.transactions_external_tx_id_external_tx_id_.get import ApiForget - - -class TransactionsExternalTxIdExternalTxId( - ApiForget, -): - pass diff --git a/fireblocks_client/apis/paths/transactions_tx_id.py b/fireblocks_client/apis/paths/transactions_tx_id.py deleted file mode 100644 index fc47396d..00000000 --- a/fireblocks_client/apis/paths/transactions_tx_id.py +++ /dev/null @@ -1,7 +0,0 @@ -from fireblocks_client.paths.transactions_tx_id.get import ApiForget - - -class TransactionsTxId( - ApiForget, -): - pass diff --git a/fireblocks_client/apis/paths/transactions_tx_id_cancel.py b/fireblocks_client/apis/paths/transactions_tx_id_cancel.py deleted file mode 100644 index 152d7c85..00000000 --- a/fireblocks_client/apis/paths/transactions_tx_id_cancel.py +++ /dev/null @@ -1,7 +0,0 @@ -from fireblocks_client.paths.transactions_tx_id_cancel.post import ApiForpost - - -class TransactionsTxIdCancel( - ApiForpost, -): - pass diff --git a/fireblocks_client/apis/paths/transactions_tx_id_drop.py b/fireblocks_client/apis/paths/transactions_tx_id_drop.py deleted file mode 100644 index 86c420d3..00000000 --- a/fireblocks_client/apis/paths/transactions_tx_id_drop.py +++ /dev/null @@ -1,7 +0,0 @@ -from fireblocks_client.paths.transactions_tx_id_drop.post import ApiForpost - - -class TransactionsTxIdDrop( - ApiForpost, -): - pass diff --git a/fireblocks_client/apis/paths/transactions_tx_id_freeze.py b/fireblocks_client/apis/paths/transactions_tx_id_freeze.py deleted file mode 100644 index a99ae77e..00000000 --- a/fireblocks_client/apis/paths/transactions_tx_id_freeze.py +++ /dev/null @@ -1,7 +0,0 @@ -from fireblocks_client.paths.transactions_tx_id_freeze.post import ApiForpost - - -class TransactionsTxIdFreeze( - ApiForpost, -): - pass diff --git a/fireblocks_client/apis/paths/transactions_tx_id_set_confirmation_threshold.py b/fireblocks_client/apis/paths/transactions_tx_id_set_confirmation_threshold.py deleted file mode 100644 index 4d207c0a..00000000 --- a/fireblocks_client/apis/paths/transactions_tx_id_set_confirmation_threshold.py +++ /dev/null @@ -1,7 +0,0 @@ -from fireblocks_client.paths.transactions_tx_id_set_confirmation_threshold.post import ApiForpost - - -class TransactionsTxIdSetConfirmationThreshold( - ApiForpost, -): - pass diff --git a/fireblocks_client/apis/paths/transactions_tx_id_unfreeze.py b/fireblocks_client/apis/paths/transactions_tx_id_unfreeze.py deleted file mode 100644 index 5b29d063..00000000 --- a/fireblocks_client/apis/paths/transactions_tx_id_unfreeze.py +++ /dev/null @@ -1,7 +0,0 @@ -from fireblocks_client.paths.transactions_tx_id_unfreeze.post import ApiForpost - - -class TransactionsTxIdUnfreeze( - ApiForpost, -): - pass diff --git a/fireblocks_client/apis/paths/transactions_validate_address_asset_id_address.py b/fireblocks_client/apis/paths/transactions_validate_address_asset_id_address.py deleted file mode 100644 index c7e0b951..00000000 --- a/fireblocks_client/apis/paths/transactions_validate_address_asset_id_address.py +++ /dev/null @@ -1,7 +0,0 @@ -from fireblocks_client.paths.transactions_validate_address_asset_id_address.get import ApiForget - - -class TransactionsValidateAddressAssetIdAddress( - ApiForget, -): - pass diff --git a/fireblocks_client/apis/paths/tx_hash_tx_hash_set_confirmation_threshold.py b/fireblocks_client/apis/paths/tx_hash_tx_hash_set_confirmation_threshold.py deleted file mode 100644 index 19c5b1ed..00000000 --- a/fireblocks_client/apis/paths/tx_hash_tx_hash_set_confirmation_threshold.py +++ /dev/null @@ -1,7 +0,0 @@ -from fireblocks_client.paths.tx_hash_tx_hash_set_confirmation_threshold.post import ApiForpost - - -class TxHashTxHashSetConfirmationThreshold( - ApiForpost, -): - pass diff --git a/fireblocks_client/apis/paths/users.py b/fireblocks_client/apis/paths/users.py deleted file mode 100644 index 74d2e485..00000000 --- a/fireblocks_client/apis/paths/users.py +++ /dev/null @@ -1,7 +0,0 @@ -from fireblocks_client.paths.users.get import ApiForget - - -class Users( - ApiForget, -): - pass diff --git a/fireblocks_client/apis/paths/users_groups.py b/fireblocks_client/apis/paths/users_groups.py deleted file mode 100644 index f9c3205f..00000000 --- a/fireblocks_client/apis/paths/users_groups.py +++ /dev/null @@ -1,9 +0,0 @@ -from fireblocks_client.paths.users_groups.get import ApiForget -from fireblocks_client.paths.users_groups.post import ApiForpost - - -class UsersGroups( - ApiForget, - ApiForpost, -): - pass diff --git a/fireblocks_client/apis/paths/users_groups_group_id.py b/fireblocks_client/apis/paths/users_groups_group_id.py deleted file mode 100644 index 783d7f66..00000000 --- a/fireblocks_client/apis/paths/users_groups_group_id.py +++ /dev/null @@ -1,11 +0,0 @@ -from fireblocks_client.paths.users_groups_group_id.get import ApiForget -from fireblocks_client.paths.users_groups_group_id.put import ApiForput -from fireblocks_client.paths.users_groups_group_id.delete import ApiFordelete - - -class UsersGroupsGroupId( - ApiForget, - ApiForput, - ApiFordelete, -): - pass diff --git a/fireblocks_client/apis/paths/vault_accounts.py b/fireblocks_client/apis/paths/vault_accounts.py deleted file mode 100644 index 1afe1f8a..00000000 --- a/fireblocks_client/apis/paths/vault_accounts.py +++ /dev/null @@ -1,9 +0,0 @@ -from fireblocks_client.paths.vault_accounts.get import ApiForget -from fireblocks_client.paths.vault_accounts.post import ApiForpost - - -class VaultAccounts( - ApiForget, - ApiForpost, -): - pass diff --git a/fireblocks_client/apis/paths/vault_accounts_paged.py b/fireblocks_client/apis/paths/vault_accounts_paged.py deleted file mode 100644 index 4bbcca50..00000000 --- a/fireblocks_client/apis/paths/vault_accounts_paged.py +++ /dev/null @@ -1,7 +0,0 @@ -from fireblocks_client.paths.vault_accounts_paged.get import ApiForget - - -class VaultAccountsPaged( - ApiForget, -): - pass diff --git a/fireblocks_client/apis/paths/vault_accounts_vault_account_id.py b/fireblocks_client/apis/paths/vault_accounts_vault_account_id.py deleted file mode 100644 index a538e8c9..00000000 --- a/fireblocks_client/apis/paths/vault_accounts_vault_account_id.py +++ /dev/null @@ -1,9 +0,0 @@ -from fireblocks_client.paths.vault_accounts_vault_account_id.get import ApiForget -from fireblocks_client.paths.vault_accounts_vault_account_id.put import ApiForput - - -class VaultAccountsVaultAccountId( - ApiForget, - ApiForput, -): - pass diff --git a/fireblocks_client/apis/paths/vault_accounts_vault_account_id_asset_id.py b/fireblocks_client/apis/paths/vault_accounts_vault_account_id_asset_id.py deleted file mode 100644 index c22cbc12..00000000 --- a/fireblocks_client/apis/paths/vault_accounts_vault_account_id_asset_id.py +++ /dev/null @@ -1,9 +0,0 @@ -from fireblocks_client.paths.vault_accounts_vault_account_id_asset_id.get import ApiForget -from fireblocks_client.paths.vault_accounts_vault_account_id_asset_id.post import ApiForpost - - -class VaultAccountsVaultAccountIdAssetId( - ApiForget, - ApiForpost, -): - pass diff --git a/fireblocks_client/apis/paths/vault_accounts_vault_account_id_asset_id_activate.py b/fireblocks_client/apis/paths/vault_accounts_vault_account_id_asset_id_activate.py deleted file mode 100644 index 251b560c..00000000 --- a/fireblocks_client/apis/paths/vault_accounts_vault_account_id_asset_id_activate.py +++ /dev/null @@ -1,7 +0,0 @@ -from fireblocks_client.paths.vault_accounts_vault_account_id_asset_id_activate.post import ApiForpost - - -class VaultAccountsVaultAccountIdAssetIdActivate( - ApiForpost, -): - pass diff --git a/fireblocks_client/apis/paths/vault_accounts_vault_account_id_asset_id_addresses.py b/fireblocks_client/apis/paths/vault_accounts_vault_account_id_asset_id_addresses.py deleted file mode 100644 index 4bdf500a..00000000 --- a/fireblocks_client/apis/paths/vault_accounts_vault_account_id_asset_id_addresses.py +++ /dev/null @@ -1,9 +0,0 @@ -from fireblocks_client.paths.vault_accounts_vault_account_id_asset_id_addresses.get import ApiForget -from fireblocks_client.paths.vault_accounts_vault_account_id_asset_id_addresses.post import ApiForpost - - -class VaultAccountsVaultAccountIdAssetIdAddresses( - ApiForget, - ApiForpost, -): - pass diff --git a/fireblocks_client/apis/paths/vault_accounts_vault_account_id_asset_id_addresses_address_id.py b/fireblocks_client/apis/paths/vault_accounts_vault_account_id_asset_id_addresses_address_id.py deleted file mode 100644 index 5a8935ba..00000000 --- a/fireblocks_client/apis/paths/vault_accounts_vault_account_id_asset_id_addresses_address_id.py +++ /dev/null @@ -1,7 +0,0 @@ -from fireblocks_client.paths.vault_accounts_vault_account_id_asset_id_addresses_address_id.put import ApiForput - - -class VaultAccountsVaultAccountIdAssetIdAddressesAddressId( - ApiForput, -): - pass diff --git a/fireblocks_client/apis/paths/vault_accounts_vault_account_id_asset_id_addresses_address_id_create_legacy.py b/fireblocks_client/apis/paths/vault_accounts_vault_account_id_asset_id_addresses_address_id_create_legacy.py deleted file mode 100644 index e5fa6109..00000000 --- a/fireblocks_client/apis/paths/vault_accounts_vault_account_id_asset_id_addresses_address_id_create_legacy.py +++ /dev/null @@ -1,7 +0,0 @@ -from fireblocks_client.paths.vault_accounts_vault_account_id_asset_id_addresses_address_id_create_legacy.post import ApiForpost - - -class VaultAccountsVaultAccountIdAssetIdAddressesAddressIdCreateLegacy( - ApiForpost, -): - pass diff --git a/fireblocks_client/apis/paths/vault_accounts_vault_account_id_asset_id_addresses_address_id_set_customer_ref_id.py b/fireblocks_client/apis/paths/vault_accounts_vault_account_id_asset_id_addresses_address_id_set_customer_ref_id.py deleted file mode 100644 index c1f0f969..00000000 --- a/fireblocks_client/apis/paths/vault_accounts_vault_account_id_asset_id_addresses_address_id_set_customer_ref_id.py +++ /dev/null @@ -1,7 +0,0 @@ -from fireblocks_client.paths.vault_accounts_vault_account_id_asset_id_addresses_address_id_set_customer_ref_id.post import ApiForpost - - -class VaultAccountsVaultAccountIdAssetIdAddressesAddressIdSetCustomerRefId( - ApiForpost, -): - pass diff --git a/fireblocks_client/apis/paths/vault_accounts_vault_account_id_asset_id_balance.py b/fireblocks_client/apis/paths/vault_accounts_vault_account_id_asset_id_balance.py deleted file mode 100644 index 75d0f41b..00000000 --- a/fireblocks_client/apis/paths/vault_accounts_vault_account_id_asset_id_balance.py +++ /dev/null @@ -1,7 +0,0 @@ -from fireblocks_client.paths.vault_accounts_vault_account_id_asset_id_balance.post import ApiForpost - - -class VaultAccountsVaultAccountIdAssetIdBalance( - ApiForpost, -): - pass diff --git a/fireblocks_client/apis/paths/vault_accounts_vault_account_id_asset_id_change_address_index_public_key_info.py b/fireblocks_client/apis/paths/vault_accounts_vault_account_id_asset_id_change_address_index_public_key_info.py deleted file mode 100644 index a27e3e61..00000000 --- a/fireblocks_client/apis/paths/vault_accounts_vault_account_id_asset_id_change_address_index_public_key_info.py +++ /dev/null @@ -1,7 +0,0 @@ -from fireblocks_client.paths.vault_accounts_vault_account_id_asset_id_change_address_index_public_key_info.get import ApiForget - - -class VaultAccountsVaultAccountIdAssetIdChangeAddressIndexPublicKeyInfo( - ApiForget, -): - pass diff --git a/fireblocks_client/apis/paths/vault_accounts_vault_account_id_asset_id_max_spendable_amount.py b/fireblocks_client/apis/paths/vault_accounts_vault_account_id_asset_id_max_spendable_amount.py deleted file mode 100644 index b110c1d4..00000000 --- a/fireblocks_client/apis/paths/vault_accounts_vault_account_id_asset_id_max_spendable_amount.py +++ /dev/null @@ -1,7 +0,0 @@ -from fireblocks_client.paths.vault_accounts_vault_account_id_asset_id_max_spendable_amount.get import ApiForget - - -class VaultAccountsVaultAccountIdAssetIdMaxSpendableAmount( - ApiForget, -): - pass diff --git a/fireblocks_client/apis/paths/vault_accounts_vault_account_id_asset_id_unspent_inputs.py b/fireblocks_client/apis/paths/vault_accounts_vault_account_id_asset_id_unspent_inputs.py deleted file mode 100644 index 424da292..00000000 --- a/fireblocks_client/apis/paths/vault_accounts_vault_account_id_asset_id_unspent_inputs.py +++ /dev/null @@ -1,7 +0,0 @@ -from fireblocks_client.paths.vault_accounts_vault_account_id_asset_id_unspent_inputs.get import ApiForget - - -class VaultAccountsVaultAccountIdAssetIdUnspentInputs( - ApiForget, -): - pass diff --git a/fireblocks_client/apis/paths/vault_accounts_vault_account_id_hide.py b/fireblocks_client/apis/paths/vault_accounts_vault_account_id_hide.py deleted file mode 100644 index 2a1c3344..00000000 --- a/fireblocks_client/apis/paths/vault_accounts_vault_account_id_hide.py +++ /dev/null @@ -1,7 +0,0 @@ -from fireblocks_client.paths.vault_accounts_vault_account_id_hide.post import ApiForpost - - -class VaultAccountsVaultAccountIdHide( - ApiForpost, -): - pass diff --git a/fireblocks_client/apis/paths/vault_accounts_vault_account_id_set_auto_fuel.py b/fireblocks_client/apis/paths/vault_accounts_vault_account_id_set_auto_fuel.py deleted file mode 100644 index 7f90bf7b..00000000 --- a/fireblocks_client/apis/paths/vault_accounts_vault_account_id_set_auto_fuel.py +++ /dev/null @@ -1,7 +0,0 @@ -from fireblocks_client.paths.vault_accounts_vault_account_id_set_auto_fuel.post import ApiForpost - - -class VaultAccountsVaultAccountIdSetAutoFuel( - ApiForpost, -): - pass diff --git a/fireblocks_client/apis/paths/vault_accounts_vault_account_id_set_customer_ref_id.py b/fireblocks_client/apis/paths/vault_accounts_vault_account_id_set_customer_ref_id.py deleted file mode 100644 index b6742bd3..00000000 --- a/fireblocks_client/apis/paths/vault_accounts_vault_account_id_set_customer_ref_id.py +++ /dev/null @@ -1,7 +0,0 @@ -from fireblocks_client.paths.vault_accounts_vault_account_id_set_customer_ref_id.post import ApiForpost - - -class VaultAccountsVaultAccountIdSetCustomerRefId( - ApiForpost, -): - pass diff --git a/fireblocks_client/apis/paths/vault_accounts_vault_account_id_unhide.py b/fireblocks_client/apis/paths/vault_accounts_vault_account_id_unhide.py deleted file mode 100644 index 2e376dc5..00000000 --- a/fireblocks_client/apis/paths/vault_accounts_vault_account_id_unhide.py +++ /dev/null @@ -1,7 +0,0 @@ -from fireblocks_client.paths.vault_accounts_vault_account_id_unhide.post import ApiForpost - - -class VaultAccountsVaultAccountIdUnhide( - ApiForpost, -): - pass diff --git a/fireblocks_client/apis/paths/vault_asset_wallets.py b/fireblocks_client/apis/paths/vault_asset_wallets.py deleted file mode 100644 index 4b7d1449..00000000 --- a/fireblocks_client/apis/paths/vault_asset_wallets.py +++ /dev/null @@ -1,7 +0,0 @@ -from fireblocks_client.paths.vault_asset_wallets.get import ApiForget - - -class VaultAssetWallets( - ApiForget, -): - pass diff --git a/fireblocks_client/apis/paths/vault_assets.py b/fireblocks_client/apis/paths/vault_assets.py deleted file mode 100644 index f0602826..00000000 --- a/fireblocks_client/apis/paths/vault_assets.py +++ /dev/null @@ -1,7 +0,0 @@ -from fireblocks_client.paths.vault_assets.get import ApiForget - - -class VaultAssets( - ApiForget, -): - pass diff --git a/fireblocks_client/apis/paths/vault_assets_asset_id.py b/fireblocks_client/apis/paths/vault_assets_asset_id.py deleted file mode 100644 index ab0b85a3..00000000 --- a/fireblocks_client/apis/paths/vault_assets_asset_id.py +++ /dev/null @@ -1,7 +0,0 @@ -from fireblocks_client.paths.vault_assets_asset_id.get import ApiForget - - -class VaultAssetsAssetId( - ApiForget, -): - pass diff --git a/fireblocks_client/apis/paths/vault_public_key_info_.py b/fireblocks_client/apis/paths/vault_public_key_info_.py deleted file mode 100644 index ff6788dd..00000000 --- a/fireblocks_client/apis/paths/vault_public_key_info_.py +++ /dev/null @@ -1,7 +0,0 @@ -from fireblocks_client.paths.vault_public_key_info_.get import ApiForget - - -class VaultPublicKeyInfo( - ApiForget, -): - pass diff --git a/fireblocks_client/apis/paths/webhooks_resend.py b/fireblocks_client/apis/paths/webhooks_resend.py deleted file mode 100644 index 0b51b0c0..00000000 --- a/fireblocks_client/apis/paths/webhooks_resend.py +++ /dev/null @@ -1,7 +0,0 @@ -from fireblocks_client.paths.webhooks_resend.post import ApiForpost - - -class WebhooksResend( - ApiForpost, -): - pass diff --git a/fireblocks_client/apis/paths/webhooks_resend_tx_id.py b/fireblocks_client/apis/paths/webhooks_resend_tx_id.py deleted file mode 100644 index 892cbd15..00000000 --- a/fireblocks_client/apis/paths/webhooks_resend_tx_id.py +++ /dev/null @@ -1,7 +0,0 @@ -from fireblocks_client.paths.webhooks_resend_tx_id.post import ApiForpost - - -class WebhooksResendTxId( - ApiForpost, -): - pass diff --git a/fireblocks_client/apis/tag_to_api.py b/fireblocks_client/apis/tag_to_api.py deleted file mode 100644 index ea6ad45e..00000000 --- a/fireblocks_client/apis/tag_to_api.py +++ /dev/null @@ -1,80 +0,0 @@ -import typing_extensions - -from fireblocks_client.apis.tags import TagValues -from fireblocks_client.apis.tags.audit_logs_api import AuditLogsApi -from fireblocks_client.apis.tags.blockchains_assets_api import BlockchainsAssetsApi -from fireblocks_client.apis.tags.contracts_api import ContractsApi -from fireblocks_client.apis.tags.exchange_accounts_api import ExchangeAccountsApi -from fireblocks_client.apis.tags.external_wallets_api import ExternalWalletsApi -from fireblocks_client.apis.tags.fiat_accounts_api import FiatAccountsApi -from fireblocks_client.apis.tags.gas_stations_api import GasStationsApi -from fireblocks_client.apis.tags.internal_wallets_api import InternalWalletsApi -from fireblocks_client.apis.tags.nfts_api import NFTsApi -from fireblocks_client.apis.tags.network_connections_api import NetworkConnectionsApi -from fireblocks_client.apis.tags.ota_beta_api import OTABetaApi -from fireblocks_client.apis.tags.off_exchanges_api import OffExchangesApi -from fireblocks_client.apis.tags.payments_payout_api import PaymentsPayoutApi -from fireblocks_client.apis.tags.payments_cross_border_settlement_api import PaymentsCrossBorderSettlementApi -from fireblocks_client.apis.tags.policy_editor_beta_api import PolicyEditorBetaApi -from fireblocks_client.apis.tags.transactions_api import TransactionsApi -from fireblocks_client.apis.tags.travel_rule_beta_api import TravelRuleBetaApi -from fireblocks_client.apis.tags.users_api import UsersApi -from fireblocks_client.apis.tags.users_groups_beta_api import UsersGroupsBetaApi -from fireblocks_client.apis.tags.vaults_api import VaultsApi -from fireblocks_client.apis.tags.web3_connections_api import Web3ConnectionsApi -from fireblocks_client.apis.tags.webhooks_api import WebhooksApi - -TagToApi = typing_extensions.TypedDict( - 'TagToApi', - { - TagValues.AUDIT_LOGS: AuditLogsApi, - TagValues.BLOCKCHAINS__ASSETS: BlockchainsAssetsApi, - TagValues.CONTRACTS: ContractsApi, - TagValues.EXCHANGE_ACCOUNTS: ExchangeAccountsApi, - TagValues.EXTERNAL_WALLETS: ExternalWalletsApi, - TagValues.FIAT_ACCOUNTS: FiatAccountsApi, - TagValues.GAS_STATIONS: GasStationsApi, - TagValues.INTERNAL_WALLETS: InternalWalletsApi, - TagValues.NFTS: NFTsApi, - TagValues.NETWORK_CONNECTIONS: NetworkConnectionsApi, - TagValues.OTA_BETA: OTABetaApi, - TagValues.OFF_EXCHANGES: OffExchangesApi, - TagValues.PAYMENTS__PAYOUT: PaymentsPayoutApi, - TagValues.PAYMENTS__CROSSBORDER_SETTLEMENT: PaymentsCrossBorderSettlementApi, - TagValues.POLICY_EDITOR_BETA: PolicyEditorBetaApi, - TagValues.TRANSACTIONS: TransactionsApi, - TagValues.TRAVEL_RULE_BETA: TravelRuleBetaApi, - TagValues.USERS: UsersApi, - TagValues.USERS_GROUPS_BETA: UsersGroupsBetaApi, - TagValues.VAULTS: VaultsApi, - TagValues.WEB3_CONNECTIONS: Web3ConnectionsApi, - TagValues.WEBHOOKS: WebhooksApi, - } -) - -tag_to_api = TagToApi( - { - TagValues.AUDIT_LOGS: AuditLogsApi, - TagValues.BLOCKCHAINS__ASSETS: BlockchainsAssetsApi, - TagValues.CONTRACTS: ContractsApi, - TagValues.EXCHANGE_ACCOUNTS: ExchangeAccountsApi, - TagValues.EXTERNAL_WALLETS: ExternalWalletsApi, - TagValues.FIAT_ACCOUNTS: FiatAccountsApi, - TagValues.GAS_STATIONS: GasStationsApi, - TagValues.INTERNAL_WALLETS: InternalWalletsApi, - TagValues.NFTS: NFTsApi, - TagValues.NETWORK_CONNECTIONS: NetworkConnectionsApi, - TagValues.OTA_BETA: OTABetaApi, - TagValues.OFF_EXCHANGES: OffExchangesApi, - TagValues.PAYMENTS__PAYOUT: PaymentsPayoutApi, - TagValues.PAYMENTS__CROSSBORDER_SETTLEMENT: PaymentsCrossBorderSettlementApi, - TagValues.POLICY_EDITOR_BETA: PolicyEditorBetaApi, - TagValues.TRANSACTIONS: TransactionsApi, - TagValues.TRAVEL_RULE_BETA: TravelRuleBetaApi, - TagValues.USERS: UsersApi, - TagValues.USERS_GROUPS_BETA: UsersGroupsBetaApi, - TagValues.VAULTS: VaultsApi, - TagValues.WEB3_CONNECTIONS: Web3ConnectionsApi, - TagValues.WEBHOOKS: WebhooksApi, - } -) diff --git a/fireblocks_client/apis/tags/__init__.py b/fireblocks_client/apis/tags/__init__.py deleted file mode 100644 index b671e311..00000000 --- a/fireblocks_client/apis/tags/__init__.py +++ /dev/null @@ -1,30 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.apis.tag_to_api import tag_to_api - -import enum - - -class TagValues(str, enum.Enum): - AUDIT_LOGS = "Audit Logs" - BLOCKCHAINS__ASSETS = "Blockchains & assets" - CONTRACTS = "Contracts" - EXCHANGE_ACCOUNTS = "Exchange accounts" - EXTERNAL_WALLETS = "External wallets" - FIAT_ACCOUNTS = "Fiat accounts" - GAS_STATIONS = "Gas stations" - INTERNAL_WALLETS = "Internal wallets" - NFTS = "NFTs" - NETWORK_CONNECTIONS = "Network connections" - OTA_BETA = "OTA (Beta)" - OFF_EXCHANGES = "Off exchanges" - PAYMENTS__PAYOUT = "Payments - Payout" - PAYMENTS__CROSSBORDER_SETTLEMENT = "Payments - cross-border settlement" - POLICY_EDITOR_BETA = "Policy Editor (Beta)" - TRANSACTIONS = "Transactions" - TRAVEL_RULE_BETA = "Travel Rule (Beta)" - USERS = "Users" - USERS_GROUPS_BETA = "Users groups (Beta)" - VAULTS = "Vaults" - WEB3_CONNECTIONS = "Web3 connections" - WEBHOOKS = "Webhooks" diff --git a/fireblocks_client/apis/tags/audit_logs_api.py b/fireblocks_client/apis/tags/audit_logs_api.py deleted file mode 100644 index ba08db28..00000000 --- a/fireblocks_client/apis/tags/audit_logs_api.py +++ /dev/null @@ -1,24 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from fireblocks_client.paths.audits.get import GetAudits - - -class AuditLogsApi( - GetAudits, -): - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - pass diff --git a/fireblocks_client/apis/tags/blockchains_assets_api.py b/fireblocks_client/apis/tags/blockchains_assets_api.py deleted file mode 100644 index 5ba43033..00000000 --- a/fireblocks_client/apis/tags/blockchains_assets_api.py +++ /dev/null @@ -1,24 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from fireblocks_client.paths.supported_assets.get import GetSupportedAssets - - -class BlockchainsAssetsApi( - GetSupportedAssets, -): - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - pass diff --git a/fireblocks_client/apis/tags/contracts_api.py b/fireblocks_client/apis/tags/contracts_api.py deleted file mode 100644 index 3b4956e8..00000000 --- a/fireblocks_client/apis/tags/contracts_api.py +++ /dev/null @@ -1,36 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from fireblocks_client.paths.contracts_contract_id_asset_id.post import AddAssetToContract -from fireblocks_client.paths.contracts.post import CreateContract -from fireblocks_client.paths.contracts_contract_id.delete import DeleteContract -from fireblocks_client.paths.contracts_contract_id_asset_id.get import GetAssetInContract -from fireblocks_client.paths.contracts_contract_id.get import GetContractById -from fireblocks_client.paths.contracts.get import GetContracts -from fireblocks_client.paths.contracts_contract_id_asset_id.delete import RemoveAssetFromContract - - -class ContractsApi( - AddAssetToContract, - CreateContract, - DeleteContract, - GetAssetInContract, - GetContractById, - GetContracts, - RemoveAssetFromContract, -): - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - pass diff --git a/fireblocks_client/apis/tags/exchange_accounts_api.py b/fireblocks_client/apis/tags/exchange_accounts_api.py deleted file mode 100644 index 43ab100c..00000000 --- a/fireblocks_client/apis/tags/exchange_accounts_api.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from fireblocks_client.paths.exchange_accounts_exchange_account_id_convert.post import ConvertAssets -from fireblocks_client.paths.exchange_accounts_exchange_account_id_asset_id.get import GetExchangeAccountAsset -from fireblocks_client.paths.exchange_accounts_exchange_account_id.get import GetExchangeAccountById -from fireblocks_client.paths.exchange_accounts.get import GetExchangeAccounts -from fireblocks_client.paths.exchange_accounts_exchange_account_id_internal_transfer.post import InternalTransfer - - -class ExchangeAccountsApi( - ConvertAssets, - GetExchangeAccountAsset, - GetExchangeAccountById, - GetExchangeAccounts, - InternalTransfer, -): - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - pass diff --git a/fireblocks_client/apis/tags/external_wallets_api.py b/fireblocks_client/apis/tags/external_wallets_api.py deleted file mode 100644 index 325edc22..00000000 --- a/fireblocks_client/apis/tags/external_wallets_api.py +++ /dev/null @@ -1,38 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from fireblocks_client.paths.external_wallets_wallet_id_asset_id.post import AddAssetToExternalWallet -from fireblocks_client.paths.external_wallets.post import CreateExternalWallet -from fireblocks_client.paths.external_wallets_wallet_id.delete import DeleteExternalWallet -from fireblocks_client.paths.external_wallets_wallet_id_asset_id.get import GetAssetInExternalWallet -from fireblocks_client.paths.external_wallets_wallet_id.get import GetExternalWalletById -from fireblocks_client.paths.external_wallets.get import GetExternalWallets -from fireblocks_client.paths.external_wallets_wallet_id_asset_id.delete import RemoveAssetFromExternalWallet -from fireblocks_client.paths.external_wallets_wallet_id_set_customer_ref_id.post import SetCustomerRefIdForExternalWallet - - -class ExternalWalletsApi( - AddAssetToExternalWallet, - CreateExternalWallet, - DeleteExternalWallet, - GetAssetInExternalWallet, - GetExternalWalletById, - GetExternalWallets, - RemoveAssetFromExternalWallet, - SetCustomerRefIdForExternalWallet, -): - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - pass diff --git a/fireblocks_client/apis/tags/fiat_accounts_api.py b/fireblocks_client/apis/tags/fiat_accounts_api.py deleted file mode 100644 index 873a4a67..00000000 --- a/fireblocks_client/apis/tags/fiat_accounts_api.py +++ /dev/null @@ -1,30 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from fireblocks_client.paths.fiat_accounts_account_id_deposit_from_linked_dda.post import DepositFundsFromLinkedDda -from fireblocks_client.paths.fiat_accounts_account_id.get import GetFiatAccountById -from fireblocks_client.paths.fiat_accounts.get import GetFiatAccounts -from fireblocks_client.paths.fiat_accounts_account_id_redeem_to_linked_dda.post import RedeemFundsToLinkedDda - - -class FiatAccountsApi( - DepositFundsFromLinkedDda, - GetFiatAccountById, - GetFiatAccounts, - RedeemFundsToLinkedDda, -): - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - pass diff --git a/fireblocks_client/apis/tags/gas_stations_api.py b/fireblocks_client/apis/tags/gas_stations_api.py deleted file mode 100644 index 114cb54f..00000000 --- a/fireblocks_client/apis/tags/gas_stations_api.py +++ /dev/null @@ -1,30 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from fireblocks_client.paths.gas_station.get import GetGasStation -from fireblocks_client.paths.gas_station_asset_id.get import GetGasStationByAssetId -from fireblocks_client.paths.gas_station_configuration.put import UpdateGasStationConfiguration -from fireblocks_client.paths.gas_station_configuration_asset_id.put import UpdateGasStationConfigurationByAssetId - - -class GasStationsApi( - GetGasStation, - GetGasStationByAssetId, - UpdateGasStationConfiguration, - UpdateGasStationConfigurationByAssetId, -): - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - pass diff --git a/fireblocks_client/apis/tags/internal_wallets_api.py b/fireblocks_client/apis/tags/internal_wallets_api.py deleted file mode 100644 index 5136ef1b..00000000 --- a/fireblocks_client/apis/tags/internal_wallets_api.py +++ /dev/null @@ -1,38 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from fireblocks_client.paths.internal_wallets.post import CreateInternalWallet -from fireblocks_client.paths.internal_wallets_wallet_id_asset_id.post import CreateInternalWalletAsset -from fireblocks_client.paths.internal_wallets_wallet_id.delete import DeleteInternalWallet -from fireblocks_client.paths.internal_wallets_wallet_id_asset_id.delete import DeleteInternalWalletAsset -from fireblocks_client.paths.internal_wallets_wallet_id_asset_id.get import GetInternalWalletAsset -from fireblocks_client.paths.internal_wallets_wallet_id.get import GetInternalWalletById -from fireblocks_client.paths.internal_wallets.get import GetInternalWallets -from fireblocks_client.paths.internal_wallets_wallet_id_set_customer_ref_id.post import SetCustomerRefIdForInternalWallet - - -class InternalWalletsApi( - CreateInternalWallet, - CreateInternalWalletAsset, - DeleteInternalWallet, - DeleteInternalWalletAsset, - GetInternalWalletAsset, - GetInternalWalletById, - GetInternalWallets, - SetCustomerRefIdForInternalWallet, -): - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - pass diff --git a/fireblocks_client/apis/tags/network_connections_api.py b/fireblocks_client/apis/tags/network_connections_api.py deleted file mode 100644 index b9e459de..00000000 --- a/fireblocks_client/apis/tags/network_connections_api.py +++ /dev/null @@ -1,48 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from fireblocks_client.paths.network_connections_connection_id_is_third_party_routing_asset_type.get import CheckThirdPartyRoutingForNetworkConnection -from fireblocks_client.paths.network_connections.post import CreateNetworkConnection -from fireblocks_client.paths.network_ids.post import CreateNetworkId -from fireblocks_client.paths.network_connections_connection_id.delete import DeleteNetworkConnection -from fireblocks_client.paths.network_ids_network_id.delete import DeleteNetworkId -from fireblocks_client.paths.network_connections_connection_id.get import GetNetworkConnectionById -from fireblocks_client.paths.network_connections.get import GetNetworkConnections -from fireblocks_client.paths.network_ids_network_id.get import GetNetworkIdById -from fireblocks_client.paths.network_ids.get import GetNetworkIds -from fireblocks_client.paths.network_ids_network_id_set_discoverability.patch import SetDiscoverabilityForNetworkId -from fireblocks_client.paths.network_ids_network_id_set_name.patch import SetNetworkIdName -from fireblocks_client.paths.network_connections_connection_id_set_routing_policy.patch import SetRoutingPolicyForNetworkConnection -from fireblocks_client.paths.network_ids_network_id_set_routing_policy.patch import SetRoutingPolicyForNetworkId - - -class NetworkConnectionsApi( - CheckThirdPartyRoutingForNetworkConnection, - CreateNetworkConnection, - CreateNetworkId, - DeleteNetworkConnection, - DeleteNetworkId, - GetNetworkConnectionById, - GetNetworkConnections, - GetNetworkIdById, - GetNetworkIds, - SetDiscoverabilityForNetworkId, - SetNetworkIdName, - SetRoutingPolicyForNetworkConnection, - SetRoutingPolicyForNetworkId, -): - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - pass diff --git a/fireblocks_client/apis/tags/nfts_api.py b/fireblocks_client/apis/tags/nfts_api.py deleted file mode 100644 index ba19ff11..00000000 --- a/fireblocks_client/apis/tags/nfts_api.py +++ /dev/null @@ -1,36 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from fireblocks_client.paths.nfts_tokens_id.get import GetNft -from fireblocks_client.paths.nfts_tokens.get import GetNfts -from fireblocks_client.paths.nfts_ownership_tokens.get import GetOwnershipTokens -from fireblocks_client.paths.nfts_ownership_collections.get import ListOwnedCollections -from fireblocks_client.paths.nfts_tokens_id.put import RefreshNftMetadata -from fireblocks_client.paths.nfts_ownership_tokens.put import UpdateOwnershipTokens -from fireblocks_client.paths.nfts_ownership_tokens_id_status.put import UpdateTokenOwnershipStatus - - -class NFTsApi( - GetNft, - GetNfts, - GetOwnershipTokens, - ListOwnedCollections, - RefreshNftMetadata, - UpdateOwnershipTokens, - UpdateTokenOwnershipStatus, -): - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - pass diff --git a/fireblocks_client/apis/tags/nfts_beta_api.py b/fireblocks_client/apis/tags/nfts_beta_api.py deleted file mode 100644 index 821482f2..00000000 --- a/fireblocks_client/apis/tags/nfts_beta_api.py +++ /dev/null @@ -1,36 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from fireblocks_client.paths.nfts_tokens_id.get import GetNft -from fireblocks_client.paths.nfts_tokens.get import GetNfts -from fireblocks_client.paths.nfts_ownership_tokens.get import GetOwnershipTokens -from fireblocks_client.paths.nfts_ownership_collections.get import ListOwnedCollections -from fireblocks_client.paths.nfts_tokens_id.put import RefreshNftMetadata -from fireblocks_client.paths.nfts_ownership_tokens.put import UpdateOwnershipTokens -from fireblocks_client.paths.nfts_ownership_tokens_id_status.put import UpdateTokenOwnershipStatus - - -class NFTsBetaApi( - GetNft, - GetNfts, - GetOwnershipTokens, - ListOwnedCollections, - RefreshNftMetadata, - UpdateOwnershipTokens, - UpdateTokenOwnershipStatus, -): - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - pass diff --git a/fireblocks_client/apis/tags/off_exchanges_api.py b/fireblocks_client/apis/tags/off_exchanges_api.py deleted file mode 100644 index c9415fb4..00000000 --- a/fireblocks_client/apis/tags/off_exchanges_api.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from fireblocks_client.paths.off_exchange_add.post import AddOffExchange -from fireblocks_client.paths.off_exchange_collateral_accounts_main_exchange_account_id.get import GetOffExchangeCollateralAccounts -from fireblocks_client.paths.off_exchange_settlements_transactions.get import GetOffExchangeSettlementTransactions -from fireblocks_client.paths.off_exchange_remove.post import RemoveOffExchange -from fireblocks_client.paths.off_exchange_settlements_trader.post import SettleOffExchangeTrades - - -class OffExchangesApi( - AddOffExchange, - GetOffExchangeCollateralAccounts, - GetOffExchangeSettlementTransactions, - RemoveOffExchange, - SettleOffExchangeTrades, -): - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - pass diff --git a/fireblocks_client/apis/tags/ota_beta_api.py b/fireblocks_client/apis/tags/ota_beta_api.py deleted file mode 100644 index 83151938..00000000 --- a/fireblocks_client/apis/tags/ota_beta_api.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from fireblocks_client.paths.management_ota.get import GetOtaStatus -from fireblocks_client.paths.management_ota.post import SetOtaStatus - - -class OTABetaApi( - GetOtaStatus, - SetOtaStatus, -): - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - pass diff --git a/fireblocks_client/apis/tags/payments_cross_border_settlement_api.py b/fireblocks_client/apis/tags/payments_cross_border_settlement_api.py deleted file mode 100644 index 167dfe20..00000000 --- a/fireblocks_client/apis/tags/payments_cross_border_settlement_api.py +++ /dev/null @@ -1,38 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from fireblocks_client.paths.payments_xb_settlements_configs.post import CreateXbSettlementConfig -from fireblocks_client.paths.payments_xb_settlements_flows.post import CreateXbSettlementFlow -from fireblocks_client.paths.payments_xb_settlements_configs_config_id.delete import DeleteXbSettlementConfig -from fireblocks_client.paths.payments_xb_settlements_flows_flow_id_actions_execute.post import ExecuteXbSettlementFlowAction -from fireblocks_client.paths.payments_xb_settlements_configs_config_id.get import GetXbSettlementConfigById -from fireblocks_client.paths.payments_xb_settlements_configs.get import GetXbSettlementConfigs -from fireblocks_client.paths.payments_xb_settlements_flows_flow_id.get import GetXbSettlementFlowById -from fireblocks_client.paths.payments_xb_settlements_configs_config_id.put import UpdateXbSettlementConfig - - -class PaymentsCrossBorderSettlementApi( - CreateXbSettlementConfig, - CreateXbSettlementFlow, - DeleteXbSettlementConfig, - ExecuteXbSettlementFlowAction, - GetXbSettlementConfigById, - GetXbSettlementConfigs, - GetXbSettlementFlowById, - UpdateXbSettlementConfig, -): - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - pass diff --git a/fireblocks_client/apis/tags/payments_payout_api.py b/fireblocks_client/apis/tags/payments_payout_api.py deleted file mode 100644 index 0445bb1a..00000000 --- a/fireblocks_client/apis/tags/payments_payout_api.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from fireblocks_client.paths.payments_payout.post import CreatePayout -from fireblocks_client.paths.payments_payout_payout_id_actions_execute.post import ExecutePayoutAction -from fireblocks_client.paths.payments_payout_payout_id.get import GetPayoutById - - -class PaymentsPayoutApi( - CreatePayout, - ExecutePayoutAction, - GetPayoutById, -): - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - pass diff --git a/fireblocks_client/apis/tags/policy_editor_beta_api.py b/fireblocks_client/apis/tags/policy_editor_beta_api.py deleted file mode 100644 index 73d8d407..00000000 --- a/fireblocks_client/apis/tags/policy_editor_beta_api.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from fireblocks_client.paths.tap_active_policy.get import GetActivePolicy -from fireblocks_client.paths.tap_draft.get import GetDraft -from fireblocks_client.paths.tap_draft.post import PublishDraft -from fireblocks_client.paths.tap_publish.post import PublishPolicyRules -from fireblocks_client.paths.tap_draft.put import UpdateDraft - - -class PolicyEditorBetaApi( - GetActivePolicy, - GetDraft, - PublishDraft, - PublishPolicyRules, - UpdateDraft, -): - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - pass diff --git a/fireblocks_client/apis/tags/transactions_api.py b/fireblocks_client/apis/tags/transactions_api.py deleted file mode 100644 index 47069ad4..00000000 --- a/fireblocks_client/apis/tags/transactions_api.py +++ /dev/null @@ -1,48 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from fireblocks_client.paths.transactions_tx_id_cancel.post import CancelTransaction -from fireblocks_client.paths.transactions.post import CreateTransaction -from fireblocks_client.paths.transactions_tx_id_drop.post import DropTransaction -from fireblocks_client.paths.estimate_network_fee.get import EstimateNetworkFee -from fireblocks_client.paths.transactions_estimate_fee.post import EstimateTransactionFee -from fireblocks_client.paths.transactions_tx_id_freeze.post import FreezeTransaction -from fireblocks_client.paths.transactions_external_tx_id_external_tx_id_.get import GetTransactionByExternalId -from fireblocks_client.paths.transactions_tx_id.get import GetTransactionById -from fireblocks_client.paths.transactions.get import GetTransactions -from fireblocks_client.paths.transactions_tx_id_set_confirmation_threshold.post import SetConfirmationThresholdForTransaction -from fireblocks_client.paths.tx_hash_tx_hash_set_confirmation_threshold.post import SetConfirmationThresholdForTransactionByHash -from fireblocks_client.paths.transactions_tx_id_unfreeze.post import UnfreezeTransaction -from fireblocks_client.paths.transactions_validate_address_asset_id_address.get import ValidateAddress - - -class TransactionsApi( - CancelTransaction, - CreateTransaction, - DropTransaction, - EstimateNetworkFee, - EstimateTransactionFee, - FreezeTransaction, - GetTransactionByExternalId, - GetTransactionById, - GetTransactions, - SetConfirmationThresholdForTransaction, - SetConfirmationThresholdForTransactionByHash, - UnfreezeTransaction, - ValidateAddress, -): - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - pass diff --git a/fireblocks_client/apis/tags/travel_rule_beta_api.py b/fireblocks_client/apis/tags/travel_rule_beta_api.py deleted file mode 100644 index 8866e255..00000000 --- a/fireblocks_client/apis/tags/travel_rule_beta_api.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from fireblocks_client.paths.screening_travel_rule_vasp_did.get import GetVaspbyDid -from fireblocks_client.paths.screening_travel_rule_vasp.get import GetVasps -from fireblocks_client.paths.screeening_travel_rule_vasp_update.put import TravelRuleApiControllerUpdateVasp -from fireblocks_client.paths.screening_travel_rule_transaction_validate_full.post import ValidateFullTravelRuleTransaction -from fireblocks_client.paths.screening_travel_rule_transaction_validate.post import ValidateTravelRuleTransaction - - -class TravelRuleBetaApi( - GetVaspbyDid, - GetVasps, - TravelRuleApiControllerUpdateVasp, - ValidateFullTravelRuleTransaction, - ValidateTravelRuleTransaction, -): - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - pass diff --git a/fireblocks_client/apis/tags/users_api.py b/fireblocks_client/apis/tags/users_api.py deleted file mode 100644 index 7e31cac1..00000000 --- a/fireblocks_client/apis/tags/users_api.py +++ /dev/null @@ -1,24 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from fireblocks_client.paths.users.get import GetUsers - - -class UsersApi( - GetUsers, -): - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - pass diff --git a/fireblocks_client/apis/tags/users_groups_beta_api.py b/fireblocks_client/apis/tags/users_groups_beta_api.py deleted file mode 100644 index 0ac41294..00000000 --- a/fireblocks_client/apis/tags/users_groups_beta_api.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from fireblocks_client.paths.users_groups.post import CreateUserGroup -from fireblocks_client.paths.users_groups_group_id.delete import DeleteUserGroup -from fireblocks_client.paths.users_groups_group_id.get import GetUserGroup -from fireblocks_client.paths.users_groups.get import GetUserGroups -from fireblocks_client.paths.users_groups_group_id.put import UpdateUserGroup - - -class UsersGroupsBetaApi( - CreateUserGroup, - DeleteUserGroup, - GetUserGroup, - GetUserGroups, - UpdateUserGroup, -): - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - pass diff --git a/fireblocks_client/apis/tags/vaults_api.py b/fireblocks_client/apis/tags/vaults_api.py deleted file mode 100644 index 48fc5a69..00000000 --- a/fireblocks_client/apis/tags/vaults_api.py +++ /dev/null @@ -1,72 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from fireblocks_client.paths.vault_accounts_vault_account_id_asset_id_activate.post import ActivateAssetForVaultAccount -from fireblocks_client.paths.vault_accounts_vault_account_id_asset_id_addresses_address_id_create_legacy.post import CreateLegacyAddressForVaultAccountAsset -from fireblocks_client.paths.vault_accounts.post import CreateVaultAccount -from fireblocks_client.paths.vault_accounts_vault_account_id_asset_id.post import CreateVaultAccountAsset -from fireblocks_client.paths.vault_accounts_vault_account_id_asset_id_addresses.post import CreateVaultAccountAssetAddress -from fireblocks_client.paths.vault_asset_wallets.get import GetAssetWallets -from fireblocks_client.paths.vault_accounts_vault_account_id_asset_id_max_spendable_amount.get import GetMaxSpendableAmount -from fireblocks_client.paths.vault_accounts_paged.get import GetPagedVaultAccounts -from fireblocks_client.paths.vault_public_key_info_.get import GetPublicKeyInfo -from fireblocks_client.paths.vault_accounts_vault_account_id_asset_id_change_address_index_public_key_info.get import GetPublicKeyInfoForAddress -from fireblocks_client.paths.vault_accounts_vault_account_id_asset_id.get import GetVaultAccountAsset -from fireblocks_client.paths.vault_accounts_vault_account_id_asset_id_addresses.get import GetVaultAccountAssetAddresses -from fireblocks_client.paths.vault_accounts_vault_account_id_asset_id_unspent_inputs.get import GetVaultAccountAssetUnspentInputs -from fireblocks_client.paths.vault_accounts_vault_account_id.get import GetVaultAccountById -from fireblocks_client.paths.vault_accounts.get import GetVaultAccounts -from fireblocks_client.paths.vault_assets_asset_id.get import GetVaultAssetById -from fireblocks_client.paths.vault_assets.get import GetVaultAssets -from fireblocks_client.paths.vault_accounts_vault_account_id_hide.post import HideVaultAccount -from fireblocks_client.paths.vault_accounts_vault_account_id_set_auto_fuel.post import SetAutoFuelForVaultAccount -from fireblocks_client.paths.vault_accounts_vault_account_id_set_customer_ref_id.post import SetCustomerRefIdForVaultAccount -from fireblocks_client.paths.vault_accounts_vault_account_id_asset_id_addresses_address_id_set_customer_ref_id.post import SetCustomerRefIdForVaultAccountAssetAddress -from fireblocks_client.paths.vault_accounts_vault_account_id_unhide.post import UnhideVaultAccount -from fireblocks_client.paths.vault_accounts_vault_account_id.put import UpdateVaultAccount -from fireblocks_client.paths.vault_accounts_vault_account_id_asset_id_addresses_address_id.put import UpdateVaultAccountAssetAddress -from fireblocks_client.paths.vault_accounts_vault_account_id_asset_id_balance.post import UpdateVaultAccountAssetBalance - - -class VaultsApi( - ActivateAssetForVaultAccount, - CreateLegacyAddressForVaultAccountAsset, - CreateVaultAccount, - CreateVaultAccountAsset, - CreateVaultAccountAssetAddress, - GetAssetWallets, - GetMaxSpendableAmount, - GetPagedVaultAccounts, - GetPublicKeyInfo, - GetPublicKeyInfoForAddress, - GetVaultAccountAsset, - GetVaultAccountAssetAddresses, - GetVaultAccountAssetUnspentInputs, - GetVaultAccountById, - GetVaultAccounts, - GetVaultAssetById, - GetVaultAssets, - HideVaultAccount, - SetAutoFuelForVaultAccount, - SetCustomerRefIdForVaultAccount, - SetCustomerRefIdForVaultAccountAssetAddress, - UnhideVaultAccount, - UpdateVaultAccount, - UpdateVaultAccountAssetAddress, - UpdateVaultAccountAssetBalance, -): - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - pass diff --git a/fireblocks_client/apis/tags/web3_connections_api.py b/fireblocks_client/apis/tags/web3_connections_api.py deleted file mode 100644 index a6bf1583..00000000 --- a/fireblocks_client/apis/tags/web3_connections_api.py +++ /dev/null @@ -1,30 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from fireblocks_client.paths.connections_wc.post import Create -from fireblocks_client.paths.connections.get import Get -from fireblocks_client.paths.connections_wc_id.delete import Remove -from fireblocks_client.paths.connections_wc_id.put import Submit - - -class Web3ConnectionsApi( - Create, - Get, - Remove, - Submit, -): - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - pass diff --git a/fireblocks_client/apis/tags/webhooks_api.py b/fireblocks_client/apis/tags/webhooks_api.py deleted file mode 100644 index eef5530d..00000000 --- a/fireblocks_client/apis/tags/webhooks_api.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from fireblocks_client.paths.webhooks_resend.post import ResendWebhooks -from fireblocks_client.paths.webhooks_resend_tx_id.post import ResendWebhooksForTransaction - - -class WebhooksApi( - ResendWebhooks, - ResendWebhooksForTransaction, -): - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - pass diff --git a/fireblocks_client/configuration.py b/fireblocks_client/configuration.py index dfa6e13c..85a2aca6 100644 --- a/fireblocks_client/configuration.py +++ b/fireblocks_client/configuration.py @@ -3,30 +3,25 @@ """ Fireblocks API - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) The version of the OpenAPI document: 1.6.2 Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + import copy import logging -import math +from logging import FileHandler import multiprocessing -import secrets import sys -import time -from typing import Optional, Dict, Any -import jwt -import json -import mimetypes -from hashlib import sha256 +from typing import Optional import urllib3 -import os -from http import client as http_client -from fireblocks_client.exceptions import ApiValueError +import http.client as httplib JSON_SCHEMA_VALIDATION_KEYWORDS = { "multipleOf", @@ -39,79 +34,23 @@ "pattern", "maxItems", "minItems", - "uniqueItems", - "maxProperties", - "minProperties", } -class SDKOptions: - def __init__( - self, - timeout_in_ms: Optional[int] = None, - proxy: Optional[Dict[str, Any]] = None, - anonymous_platform: Optional[bool] = None, - user_agent: Optional[str] = None, - ): - self.timeout_in_ms = timeout_in_ms - self.proxy = proxy - self.anonymous_platform = anonymous_platform - self.user_agent = user_agent - self.retries = None - self.connection_pool_maxsize = 3 - - @staticmethod - def get_default(): - options = SDKOptions() - options.timeout_in_ms = 10000 - options.proxy = None - options.anonymous_platform = None - options.user_agent = None - options.retries = None - options.connection_pool_maxsize = 3 - return options - - -class Configuration(object): - """NOTE: This class is auto generated by OpenAPI Generator +class Configuration: + """This class contains various settings of the API client. - Ref: https://openapi-generator.tech - Do not edit the class manually. - - :param host: Base url + :param host: Base url. :param api_key: Dict to store API key(s). Each entry in the dict specifies an API key. The dict key is the name of the security scheme in the OAS specification. The dict value is the API key secret. - :param api_key_prefix: Dict to store API prefix (e.g. Bearer) + :param api_key_prefix: Dict to store API prefix (e.g. Bearer). The dict key is the name of the security scheme in the OAS specification. The dict value is an API key prefix when generating the auth data. - :param username: Username for HTTP basic authentication - :param password: Password for HTTP basic authentication - :param discard_unknown_keys: Boolean value indicating whether to discard - unknown properties. A server may send a response that includes additional - properties that are not known by the client in the following scenarios: - 1. The OpenAPI document is incomplete, i.e. it does not match the server - implementation. - 2. The client was generated using an older version of the OpenAPI document - and the server has been upgraded since then. - If a schema in the OpenAPI document defines the additionalProperties attribute, - then all undeclared properties received by the server are injected into the - additional properties map. In that case, there are undeclared properties, and - nothing to discard. - :param disabled_client_side_validations (string): Comma-separated list of - JSON schema validation keywords to disable JSON schema structural validation - rules. The following keywords may be specified: multipleOf, maximum, - exclusiveMaximum, minimum, exclusiveMinimum, maxLength, minLength, pattern, - maxItems, minItems. - By default, the validation is performed for data generated locally by the client - and data received from the server, independent of any validation performed by - the server side. If the input data does not satisfy the JSON schema validation - rules specified in the OpenAPI document, an exception is raised. - If disabled_client_side_validations is set, structural validation is - disabled. This can be useful to troubleshoot data validation problem, such as - when the OpenAPI document validation rules do not match the actual API data - received by the server. + :param username: Username for HTTP basic authentication. + :param password: Password for HTTP basic authentication. + :param access_token: Access token. :param server_index: Index to servers configuration. :param server_variables: Mapping with string values to replace variables in templated server configuration. The validation of enums is performed for @@ -120,7 +59,10 @@ class Configuration(object): configuration. :param server_operation_variables: Mapping from operation ID to a mapping with string values to replace variables in templated server configuration. - The validation of enums is performed for variables with defined enum values before. + The validation of enums is performed for variables with defined enum + values before. + :param ssl_ca_cert: str - the path to a file of concatenated CA certificates + in PEM format. :Example: @@ -148,40 +90,56 @@ class Configuration(object): def __init__( self, - base_path: str = None, - api_key: str = None, - secret_key: str = None, - connection_pool_maxsize: int = None, - options: SDKOptions = None, - ): + host=None, + api_key=None, + api_key_prefix=None, + username=None, + password=None, + access_token=None, + server_index=None, + server_variables=None, + server_operation_index=None, + server_operation_variables=None, + ssl_ca_cert=None, + ) -> None: """Constructor""" - self._base_path = base_path or "https://api.fireblocks.io/v1" - if base_path is not None: - self._base_path = base_path - elif os.environ.get("FIREBLOCKS_BASE_PATH", None) is not None: - self._base_path = os.environ["FIREBLOCKS_BASE_PATH"] - - self._api_key = api_key - if ( - os.environ.get("FIREBLOCKS_API_KEY", None) is not None - and self._api_key is None - ): - self._api_key = os.environ["FIREBLOCKS_API_KEY"] - if self._api_key is None: - raise ValueError("api_key is missing please provide it and try again") - - self._secret_key = secret_key - if ( - os.environ.get("FIREBLOCKS_SECRET_KEY", None) is not None - and self._secret_key is None - ): - self._secret_key = os.environ["FIREBLOCKS_SECRET_KEY"] - if self._secret_key is None: - raise ValueError("secret_key is missing please provide it and try again") - - self._sdk_options = options - if self._sdk_options is None: - self._sdk_options = SDKOptions.get_default() + self._base_path = "https://api.fireblocks.io/v1" if host is None else host + """Default Base url + """ + self.server_index = 0 if server_index is None and host is None else server_index + self.server_operation_index = server_operation_index or {} + """Default server index + """ + self.server_variables = server_variables or {} + self.server_operation_variables = server_operation_variables or {} + """Default server variables + """ + self.temp_folder_path = None + """Temp file folder for downloading files + """ + # Authentication Settings + self.api_key = {} + if api_key: + self.api_key = api_key + """dict to store API key(s) + """ + self.api_key_prefix = {} + if api_key_prefix: + self.api_key_prefix = api_key_prefix + """dict to store API prefix (e.g. Bearer) + """ + self.refresh_api_key_hook = None + """function hook to refresh API key if expired + """ + self.username = username + """Username for HTTP basic authentication + """ + self.password = password + """Password for HTTP basic authentication + """ + self.access_token = access_token + """Access token + """ self.logger = {} """Logging Settings """ @@ -193,7 +151,7 @@ def __init__( self.logger_stream_handler = None """Log stream handler """ - self.logger_file_handler = None + self.logger_file_handler: Optional[FileHandler] = None """Log file handler """ self.logger_file = None @@ -203,6 +161,28 @@ def __init__( """Debug switch """ + self.verify_ssl = True + """SSL/TLS verification + Set this to false to skip verifying SSL certificate when calling API + from https server. + """ + self.ssl_ca_cert = ssl_ca_cert + """Set this to customize the certificate file to verify the peer. + """ + self.cert_file = None + """client certificate file + """ + self.key_file = None + """client key file + """ + self.assert_hostname = None + """Set this to True/False to enable/disable SSL hostname verification. + """ + self.tls_server_name = None + """SSL/TLS Server Name Indication (SNI) + Set this to the SNI value expected by the server. + """ + self.connection_pool_maxsize = multiprocessing.cpu_count() * 5 """urllib3 connection pool's maximum number of connections saved per pool. urllib3 uses 1 connection as default value, but this is @@ -211,7 +191,7 @@ def __init__( cpu_count * 5 is used as default value to increase performance. """ - self.proxy = None + self.proxy: Optional[str] = None """Proxy URL """ self.proxy_headers = None @@ -226,28 +206,17 @@ def __init__( # Enable client side validation self.client_side_validation = True - # Options to pass down to the underlying urllib3 socket self.socket_options = None + """Options to pass down to the underlying urllib3 socket + """ - @property - def options(self): - return self._sdk_options - - @property - def base_path(self): - return self._base_path - - @property - def api_key(self): - return self._api_key - - @property - def secret_key(self): - return self._secret_key + self.datetime_format = "%Y-%m-%dT%H:%M:%S.%f%z" + """datetime format + """ - @options.setter - def options(self, options): - self.options = options + self.date_format = "%Y-%m-%d" + """date format + """ def __deepcopy__(self, memo): cls = self.__class__ @@ -265,12 +234,6 @@ def __deepcopy__(self, memo): def __setattr__(self, name, value): object.__setattr__(self, name, value) - if name == "disabled_client_side_validations": - s = set(filter(None, value.split(","))) - for v in s: - if v not in JSON_SCHEMA_VALIDATION_KEYWORDS: - raise ApiValueError("Invalid keyword: '{0}''".format(v)) - self._disabled_client_side_validations = s @classmethod def set_default(cls, default): @@ -281,21 +244,31 @@ def set_default(cls, default): :param default: object of Configuration """ - cls._default = copy.deepcopy(default) + cls._default = default @classmethod def get_default_copy(cls): - """Return new instance of configuration. + """Deprecated. Please use `get_default` instead. + + Deprecated. Please use `get_default` instead. + + :return: The configuration object. + """ + return cls.get_default() + + @classmethod + def get_default(cls): + """Return the default configuration. This method returns newly created, based on default constructor, object of Configuration class or returns a copy of default - configuration passed by the set_default method. + configuration. :return: The configuration object. """ - if cls._default is not None: - return copy.deepcopy(cls._default) - return Configuration() + if cls._default is None: + cls._default = Configuration() + return cls._default @property def logger_file(self): @@ -349,15 +322,15 @@ def debug(self, value): # if debug status is True, turn on debug logging for _, logger in self.logger.items(): logger.setLevel(logging.DEBUG) - # turn on http_client debug - http_client.HTTPConnection.debuglevel = 1 + # turn on httplib debug + httplib.HTTPConnection.debuglevel = 1 else: # if debug status is False, turn off debug logging, # setting log level to default `logging.WARNING` for _, logger in self.logger.items(): logger.setLevel(logging.WARNING) - # turn off http_client debug - http_client.HTTPConnection.debuglevel = 0 + # turn off httplib debug + httplib.HTTPConnection.debuglevel = 0 @property def logger_format(self): @@ -382,6 +355,65 @@ def logger_format(self, value): self.__logger_format = value self.logger_formatter = logging.Formatter(self.__logger_format) + def get_api_key_with_prefix(self, identifier, alias=None): + """Gets API key (with prefix if set). + + :param identifier: The identifier of apiKey. + :param alias: The alternative identifier of apiKey. + :return: The token for api key authentication. + """ + if self.refresh_api_key_hook is not None: + self.refresh_api_key_hook(self) + key = self.api_key.get( + identifier, self.api_key.get(alias) if alias is not None else None + ) + if key: + prefix = self.api_key_prefix.get(identifier) + if prefix: + return "%s %s" % (prefix, key) + else: + return key + + def get_basic_auth_token(self): + """Gets HTTP basic authentication header (string). + + :return: The token for basic HTTP authentication. + """ + username = "" + if self.username is not None: + username = self.username + password = "" + if self.password is not None: + password = self.password + return urllib3.util.make_headers(basic_auth=username + ":" + password).get( + "authorization" + ) + + def auth_settings(self): + """Gets Auth Settings dict for api client. + + :return: The Auth Settings information dict. + """ + auth = {} + if self.access_token is not None: + auth["bearerTokenAuth"] = { + "type": "bearer", + "in": "header", + "format": "JWT", + "key": "Authorization", + "value": "Bearer " + self.access_token, + } + if "ApiKeyAuth" in self.api_key: + auth["ApiKeyAuth"] = { + "type": "api_key", + "in": "header", + "key": "X-API-Key", + "value": self.get_api_key_with_prefix( + "ApiKeyAuth", + ), + } + return auth + def to_debug_report(self): """Gets the essential information for debugging. diff --git a/fireblocks_client/exceptions.py b/fireblocks_client/exceptions.py index 31b57388..55205239 100644 --- a/fireblocks_client/exceptions.py +++ b/fireblocks_client/exceptions.py @@ -3,16 +3,17 @@ """ Fireblocks API - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) The version of the OpenAPI document: 1.6.2 Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" -import dataclasses -import typing + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 -from urllib3._collections import HTTPHeaderDict +from typing import Any, Optional +from typing_extensions import Self class OpenApiException(Exception): @@ -20,7 +21,9 @@ class OpenApiException(Exception): class ApiTypeError(OpenApiException, TypeError): - def __init__(self, msg, path_to_item=None, valid_classes=None, key_type=None): + def __init__( + self, msg, path_to_item=None, valid_classes=None, key_type=None + ) -> None: """Raises an exception for TypeErrors Args: @@ -48,7 +51,7 @@ def __init__(self, msg, path_to_item=None, valid_classes=None, key_type=None): class ApiValueError(OpenApiException, ValueError): - def __init__(self, msg, path_to_item=None): + def __init__(self, msg, path_to_item=None) -> None: """ Args: msg (str): the exception message @@ -66,7 +69,7 @@ def __init__(self, msg, path_to_item=None): class ApiAttributeError(OpenApiException, AttributeError): - def __init__(self, msg, path_to_item=None): + def __init__(self, msg, path_to_item=None) -> None: """ Raised when an attribute reference or assignment fails. @@ -85,7 +88,7 @@ def __init__(self, msg, path_to_item=None): class ApiKeyError(OpenApiException, KeyError): - def __init__(self, msg, path_to_item=None): + def __init__(self, msg, path_to_item=None) -> None: """ Args: msg (str): the exception message @@ -101,26 +104,58 @@ def __init__(self, msg, path_to_item=None): super(ApiKeyError, self).__init__(full_msg) -T = typing.TypeVar("T") - - -@dataclasses.dataclass -class ApiException(OpenApiException, typing.Generic[T]): - status: int - reason: str - api_response: typing.Optional[T] = None - - @property - def body(self) -> typing.Union[str, bytes, None]: - if not self.api_response: - return None - return self.api_response.response.data - - @property - def headers(self) -> typing.Optional[HTTPHeaderDict]: - if not self.api_response: - return None - return self.api_response.response.getheaders() +class ApiException(OpenApiException): + + def __init__( + self, + status=None, + reason=None, + http_resp=None, + *, + body: Optional[str] = None, + data: Optional[Any] = None, + ) -> None: + self.status = status + self.reason = reason + self.body = body + self.data = data + self.headers = None + + if http_resp: + if self.status is None: + self.status = http_resp.status + if self.reason is None: + self.reason = http_resp.reason + if self.body is None: + try: + self.body = http_resp.data.decode("utf-8") + except Exception: + pass + self.headers = http_resp.getheaders() + + @classmethod + def from_response( + cls, + *, + http_resp, + body: Optional[str], + data: Optional[Any], + ) -> Self: + if http_resp.status == 400: + raise BadRequestException(http_resp=http_resp, body=body, data=data) + + if http_resp.status == 401: + raise UnauthorizedException(http_resp=http_resp, body=body, data=data) + + if http_resp.status == 403: + raise ForbiddenException(http_resp=http_resp, body=body, data=data) + + if http_resp.status == 404: + raise NotFoundException(http_resp=http_resp, body=body, data=data) + + if 500 <= http_resp.status <= 599: + raise ServiceException(http_resp=http_resp, body=body, data=data) + raise ApiException(http_resp=http_resp, body=body, data=data) def __str__(self): """Custom error messages for exception""" @@ -128,12 +163,32 @@ def __str__(self): if self.headers: error_message += "HTTP response headers: {0}\n".format(self.headers) - if self.body: - error_message += "HTTP response body: {0}\n".format(self.body) + if self.data or self.body: + error_message += "HTTP response body: {0}\n".format(self.data or self.body) return error_message +class BadRequestException(ApiException): + pass + + +class NotFoundException(ApiException): + pass + + +class UnauthorizedException(ApiException): + pass + + +class ForbiddenException(ApiException): + pass + + +class ServiceException(ApiException): + pass + + def render_path(path_to_item): """Returns a string representation of a path""" result = "" diff --git a/fireblocks_client/model/__init__.py b/fireblocks_client/model/__init__.py deleted file mode 100644 index 00a9d4d5..00000000 --- a/fireblocks_client/model/__init__.py +++ /dev/null @@ -1,5 +0,0 @@ -# we can not import model classes here because that would create a circular -# reference which would not work in python2 -# do not import all models into this module because that uses a lot of memory and stack frames -# if you need the ability to import all models from one package, import them with -# from fireblocks_client.models import ModelA, ModelB diff --git a/fireblocks_client/model/add_collateral_request_body.py b/fireblocks_client/model/add_collateral_request_body.py deleted file mode 100644 index b55010e0..00000000 --- a/fireblocks_client/model/add_collateral_request_body.py +++ /dev/null @@ -1,94 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class AddCollateralRequestBody( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def transactionRequest() -> typing.Type['TransactionRequest']: - return TransactionRequest - isSrcCollateral = schemas.BoolSchema - __annotations__ = { - "transactionRequest": transactionRequest, - "isSrcCollateral": isSrcCollateral, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["transactionRequest"]) -> 'TransactionRequest': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["isSrcCollateral"]) -> MetaOapg.properties.isSrcCollateral: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["transactionRequest", "isSrcCollateral", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["transactionRequest"]) -> typing.Union['TransactionRequest', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["isSrcCollateral"]) -> typing.Union[MetaOapg.properties.isSrcCollateral, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["transactionRequest", "isSrcCollateral", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - transactionRequest: typing.Union['TransactionRequest', schemas.Unset] = schemas.unset, - isSrcCollateral: typing.Union[MetaOapg.properties.isSrcCollateral, bool, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'AddCollateralRequestBody': - return super().__new__( - cls, - *_args, - transactionRequest=transactionRequest, - isSrcCollateral=isSrcCollateral, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.transaction_request import TransactionRequest diff --git a/fireblocks_client/model/add_collateral_request_body.pyi b/fireblocks_client/model/add_collateral_request_body.pyi deleted file mode 100644 index b55010e0..00000000 --- a/fireblocks_client/model/add_collateral_request_body.pyi +++ /dev/null @@ -1,94 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class AddCollateralRequestBody( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def transactionRequest() -> typing.Type['TransactionRequest']: - return TransactionRequest - isSrcCollateral = schemas.BoolSchema - __annotations__ = { - "transactionRequest": transactionRequest, - "isSrcCollateral": isSrcCollateral, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["transactionRequest"]) -> 'TransactionRequest': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["isSrcCollateral"]) -> MetaOapg.properties.isSrcCollateral: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["transactionRequest", "isSrcCollateral", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["transactionRequest"]) -> typing.Union['TransactionRequest', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["isSrcCollateral"]) -> typing.Union[MetaOapg.properties.isSrcCollateral, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["transactionRequest", "isSrcCollateral", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - transactionRequest: typing.Union['TransactionRequest', schemas.Unset] = schemas.unset, - isSrcCollateral: typing.Union[MetaOapg.properties.isSrcCollateral, bool, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'AddCollateralRequestBody': - return super().__new__( - cls, - *_args, - transactionRequest=transactionRequest, - isSrcCollateral=isSrcCollateral, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.transaction_request import TransactionRequest diff --git a/fireblocks_client/model/aml_screening_result.py b/fireblocks_client/model/aml_screening_result.py deleted file mode 100644 index 1189225f..00000000 --- a/fireblocks_client/model/aml_screening_result.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class AmlScreeningResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - The result of the AML screening. - """ - - - class MetaOapg: - - class properties: - provider = schemas.StrSchema - payload = schemas.DictSchema - __annotations__ = { - "provider": provider, - "payload": payload, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["provider"]) -> MetaOapg.properties.provider: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["payload"]) -> MetaOapg.properties.payload: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["provider", "payload", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["provider"]) -> typing.Union[MetaOapg.properties.provider, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["payload"]) -> typing.Union[MetaOapg.properties.payload, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["provider", "payload", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - provider: typing.Union[MetaOapg.properties.provider, str, schemas.Unset] = schemas.unset, - payload: typing.Union[MetaOapg.properties.payload, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'AmlScreeningResult': - return super().__new__( - cls, - *_args, - provider=provider, - payload=payload, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/aml_screening_result.pyi b/fireblocks_client/model/aml_screening_result.pyi deleted file mode 100644 index 1189225f..00000000 --- a/fireblocks_client/model/aml_screening_result.pyi +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class AmlScreeningResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - The result of the AML screening. - """ - - - class MetaOapg: - - class properties: - provider = schemas.StrSchema - payload = schemas.DictSchema - __annotations__ = { - "provider": provider, - "payload": payload, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["provider"]) -> MetaOapg.properties.provider: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["payload"]) -> MetaOapg.properties.payload: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["provider", "payload", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["provider"]) -> typing.Union[MetaOapg.properties.provider, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["payload"]) -> typing.Union[MetaOapg.properties.payload, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["provider", "payload", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - provider: typing.Union[MetaOapg.properties.provider, str, schemas.Unset] = schemas.unset, - payload: typing.Union[MetaOapg.properties.payload, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'AmlScreeningResult': - return super().__new__( - cls, - *_args, - provider=provider, - payload=payload, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/amount_aggregation_time_period_method.py b/fireblocks_client/model/amount_aggregation_time_period_method.py deleted file mode 100644 index b3bf428d..00000000 --- a/fireblocks_client/model/amount_aggregation_time_period_method.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class AmountAggregationTimePeriodMethod( - schemas.EnumBase, - schemas.StrSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - * PER_SINGLE_MATCH - Apply the limit to each listed entity -* ACROSS_ALL_MATCHES - Apply the limit to the sum of all listed entities - - """ - - - class MetaOapg: - enum_value_to_name = { - "PER_SINGLE_MATCH": "PER_SINGLE_MATCH", - "ACROSS_ALL_MATCHES": "ACROSS_ALL_MATCHES", - } - - @schemas.classproperty - def PER_SINGLE_MATCH(cls): - return cls("PER_SINGLE_MATCH") - - @schemas.classproperty - def ACROSS_ALL_MATCHES(cls): - return cls("ACROSS_ALL_MATCHES") diff --git a/fireblocks_client/model/amount_aggregation_time_period_method.pyi b/fireblocks_client/model/amount_aggregation_time_period_method.pyi deleted file mode 100644 index 77d10ad7..00000000 --- a/fireblocks_client/model/amount_aggregation_time_period_method.pyi +++ /dev/null @@ -1,47 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class AmountAggregationTimePeriodMethod( - schemas.EnumBase, - schemas.StrSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - * PER_SINGLE_MATCH - Apply the limit to each listed entity -* ACROSS_ALL_MATCHES - Apply the limit to the sum of all listed entities - - """ - - @schemas.classproperty - def PER_SINGLE_MATCH(cls): - return cls("PER_SINGLE_MATCH") - - @schemas.classproperty - def ACROSS_ALL_MATCHES(cls): - return cls("ACROSS_ALL_MATCHES") diff --git a/fireblocks_client/model/amount_info.py b/fireblocks_client/model/amount_info.py deleted file mode 100644 index 5a4452eb..00000000 --- a/fireblocks_client/model/amount_info.py +++ /dev/null @@ -1,111 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class AmountInfo( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - The details of the requested amount to transfer. - """ - - - class MetaOapg: - - class properties: - amount = schemas.StrSchema - requestedAmount = schemas.StrSchema - netAmount = schemas.StrSchema - amountUSD = schemas.StrSchema - __annotations__ = { - "amount": amount, - "requestedAmount": requestedAmount, - "netAmount": netAmount, - "amountUSD": amountUSD, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["amount"]) -> MetaOapg.properties.amount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requestedAmount"]) -> MetaOapg.properties.requestedAmount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["netAmount"]) -> MetaOapg.properties.netAmount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["amountUSD"]) -> MetaOapg.properties.amountUSD: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["amount", "requestedAmount", "netAmount", "amountUSD", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["amount"]) -> typing.Union[MetaOapg.properties.amount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requestedAmount"]) -> typing.Union[MetaOapg.properties.requestedAmount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["netAmount"]) -> typing.Union[MetaOapg.properties.netAmount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["amountUSD"]) -> typing.Union[MetaOapg.properties.amountUSD, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["amount", "requestedAmount", "netAmount", "amountUSD", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - amount: typing.Union[MetaOapg.properties.amount, str, schemas.Unset] = schemas.unset, - requestedAmount: typing.Union[MetaOapg.properties.requestedAmount, str, schemas.Unset] = schemas.unset, - netAmount: typing.Union[MetaOapg.properties.netAmount, str, schemas.Unset] = schemas.unset, - amountUSD: typing.Union[MetaOapg.properties.amountUSD, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'AmountInfo': - return super().__new__( - cls, - *_args, - amount=amount, - requestedAmount=requestedAmount, - netAmount=netAmount, - amountUSD=amountUSD, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/amount_info.pyi b/fireblocks_client/model/amount_info.pyi deleted file mode 100644 index 5a4452eb..00000000 --- a/fireblocks_client/model/amount_info.pyi +++ /dev/null @@ -1,111 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class AmountInfo( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - The details of the requested amount to transfer. - """ - - - class MetaOapg: - - class properties: - amount = schemas.StrSchema - requestedAmount = schemas.StrSchema - netAmount = schemas.StrSchema - amountUSD = schemas.StrSchema - __annotations__ = { - "amount": amount, - "requestedAmount": requestedAmount, - "netAmount": netAmount, - "amountUSD": amountUSD, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["amount"]) -> MetaOapg.properties.amount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requestedAmount"]) -> MetaOapg.properties.requestedAmount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["netAmount"]) -> MetaOapg.properties.netAmount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["amountUSD"]) -> MetaOapg.properties.amountUSD: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["amount", "requestedAmount", "netAmount", "amountUSD", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["amount"]) -> typing.Union[MetaOapg.properties.amount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requestedAmount"]) -> typing.Union[MetaOapg.properties.requestedAmount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["netAmount"]) -> typing.Union[MetaOapg.properties.netAmount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["amountUSD"]) -> typing.Union[MetaOapg.properties.amountUSD, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["amount", "requestedAmount", "netAmount", "amountUSD", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - amount: typing.Union[MetaOapg.properties.amount, str, schemas.Unset] = schemas.unset, - requestedAmount: typing.Union[MetaOapg.properties.requestedAmount, str, schemas.Unset] = schemas.unset, - netAmount: typing.Union[MetaOapg.properties.netAmount, str, schemas.Unset] = schemas.unset, - amountUSD: typing.Union[MetaOapg.properties.amountUSD, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'AmountInfo': - return super().__new__( - cls, - *_args, - amount=amount, - requestedAmount=requestedAmount, - netAmount=netAmount, - amountUSD=amountUSD, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/asset_type_response.py b/fireblocks_client/model/asset_type_response.py deleted file mode 100644 index 704adfb5..00000000 --- a/fireblocks_client/model/asset_type_response.py +++ /dev/null @@ -1,198 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class AssetTypeResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "name", - "id", - "type", - } - - class properties: - id = schemas.StrSchema - name = schemas.StrSchema - - - class type( - schemas.EnumBase, - schemas.StrSchema - ): - - - class MetaOapg: - enum_value_to_name = { - "ALGO_ASSET": "ALGO_ASSET", - "BASE_ASSET": "BASE_ASSET", - "BEP20": "BEP20", - "COMPOUND": "COMPOUND", - "ERC20": "ERC20", - "FIAT": "FIAT", - "SOL_ASSET": "SOL_ASSET", - "TRON_TRC20": "TRON_TRC20", - "XLM_ASSET": "XLM_ASSET", - "XDB_ASSET": "XDB_ASSET", - } - - @schemas.classproperty - def ALGO_ASSET(cls): - return cls("ALGO_ASSET") - - @schemas.classproperty - def BASE_ASSET(cls): - return cls("BASE_ASSET") - - @schemas.classproperty - def BEP20(cls): - return cls("BEP20") - - @schemas.classproperty - def COMPOUND(cls): - return cls("COMPOUND") - - @schemas.classproperty - def ERC20(cls): - return cls("ERC20") - - @schemas.classproperty - def FIAT(cls): - return cls("FIAT") - - @schemas.classproperty - def SOL_ASSET(cls): - return cls("SOL_ASSET") - - @schemas.classproperty - def TRON_TRC20(cls): - return cls("TRON_TRC20") - - @schemas.classproperty - def XLM_ASSET(cls): - return cls("XLM_ASSET") - - @schemas.classproperty - def XDB_ASSET(cls): - return cls("XDB_ASSET") - contractAddress = schemas.StrSchema - nativeAsset = schemas.StrSchema - decimals = schemas.NumberSchema - __annotations__ = { - "id": id, - "name": name, - "type": type, - "contractAddress": contractAddress, - "nativeAsset": nativeAsset, - "decimals": decimals, - } - - name: MetaOapg.properties.name - id: MetaOapg.properties.id - type: MetaOapg.properties.type - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["contractAddress"]) -> MetaOapg.properties.contractAddress: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["nativeAsset"]) -> MetaOapg.properties.nativeAsset: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["decimals"]) -> MetaOapg.properties.decimals: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "name", "type", "contractAddress", "nativeAsset", "decimals", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["contractAddress"]) -> typing.Union[MetaOapg.properties.contractAddress, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["nativeAsset"]) -> typing.Union[MetaOapg.properties.nativeAsset, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["decimals"]) -> typing.Union[MetaOapg.properties.decimals, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "name", "type", "contractAddress", "nativeAsset", "decimals", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - name: typing.Union[MetaOapg.properties.name, str, ], - id: typing.Union[MetaOapg.properties.id, str, ], - type: typing.Union[MetaOapg.properties.type, str, ], - contractAddress: typing.Union[MetaOapg.properties.contractAddress, str, schemas.Unset] = schemas.unset, - nativeAsset: typing.Union[MetaOapg.properties.nativeAsset, str, schemas.Unset] = schemas.unset, - decimals: typing.Union[MetaOapg.properties.decimals, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'AssetTypeResponse': - return super().__new__( - cls, - *_args, - name=name, - id=id, - type=type, - contractAddress=contractAddress, - nativeAsset=nativeAsset, - decimals=decimals, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/asset_type_response.pyi b/fireblocks_client/model/asset_type_response.pyi deleted file mode 100644 index 816b2550..00000000 --- a/fireblocks_client/model/asset_type_response.pyi +++ /dev/null @@ -1,183 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class AssetTypeResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "name", - "id", - "type", - } - - class properties: - id = schemas.StrSchema - name = schemas.StrSchema - - - class type( - schemas.EnumBase, - schemas.StrSchema - ): - - @schemas.classproperty - def ALGO_ASSET(cls): - return cls("ALGO_ASSET") - - @schemas.classproperty - def BASE_ASSET(cls): - return cls("BASE_ASSET") - - @schemas.classproperty - def BEP20(cls): - return cls("BEP20") - - @schemas.classproperty - def COMPOUND(cls): - return cls("COMPOUND") - - @schemas.classproperty - def ERC20(cls): - return cls("ERC20") - - @schemas.classproperty - def FIAT(cls): - return cls("FIAT") - - @schemas.classproperty - def SOL_ASSET(cls): - return cls("SOL_ASSET") - - @schemas.classproperty - def TRON_TRC20(cls): - return cls("TRON_TRC20") - - @schemas.classproperty - def XLM_ASSET(cls): - return cls("XLM_ASSET") - - @schemas.classproperty - def XDB_ASSET(cls): - return cls("XDB_ASSET") - contractAddress = schemas.StrSchema - nativeAsset = schemas.StrSchema - decimals = schemas.NumberSchema - __annotations__ = { - "id": id, - "name": name, - "type": type, - "contractAddress": contractAddress, - "nativeAsset": nativeAsset, - "decimals": decimals, - } - - name: MetaOapg.properties.name - id: MetaOapg.properties.id - type: MetaOapg.properties.type - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["contractAddress"]) -> MetaOapg.properties.contractAddress: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["nativeAsset"]) -> MetaOapg.properties.nativeAsset: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["decimals"]) -> MetaOapg.properties.decimals: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "name", "type", "contractAddress", "nativeAsset", "decimals", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["contractAddress"]) -> typing.Union[MetaOapg.properties.contractAddress, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["nativeAsset"]) -> typing.Union[MetaOapg.properties.nativeAsset, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["decimals"]) -> typing.Union[MetaOapg.properties.decimals, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "name", "type", "contractAddress", "nativeAsset", "decimals", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - name: typing.Union[MetaOapg.properties.name, str, ], - id: typing.Union[MetaOapg.properties.id, str, ], - type: typing.Union[MetaOapg.properties.type, str, ], - contractAddress: typing.Union[MetaOapg.properties.contractAddress, str, schemas.Unset] = schemas.unset, - nativeAsset: typing.Union[MetaOapg.properties.nativeAsset, str, schemas.Unset] = schemas.unset, - decimals: typing.Union[MetaOapg.properties.decimals, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'AssetTypeResponse': - return super().__new__( - cls, - *_args, - name=name, - id=id, - type=type, - contractAddress=contractAddress, - nativeAsset=nativeAsset, - decimals=decimals, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/asset_wallet.py b/fireblocks_client/model/asset_wallet.py deleted file mode 100644 index c828a0e9..00000000 --- a/fireblocks_client/model/asset_wallet.py +++ /dev/null @@ -1,179 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class AssetWallet( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - vaultId = schemas.StrSchema - assetId = schemas.StrSchema - available = schemas.StrSchema - total = schemas.StrSchema - pending = schemas.StrSchema - staked = schemas.StrSchema - frozen = schemas.StrSchema - lockedAmount = schemas.StrSchema - blockHeight = schemas.StrSchema - blockHash = schemas.StrSchema - creationTimestamp = schemas.StrSchema - __annotations__ = { - "vaultId": vaultId, - "assetId": assetId, - "available": available, - "total": total, - "pending": pending, - "staked": staked, - "frozen": frozen, - "lockedAmount": lockedAmount, - "blockHeight": blockHeight, - "blockHash": blockHash, - "creationTimestamp": creationTimestamp, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["vaultId"]) -> MetaOapg.properties.vaultId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["assetId"]) -> MetaOapg.properties.assetId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["available"]) -> MetaOapg.properties.available: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["total"]) -> MetaOapg.properties.total: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["pending"]) -> MetaOapg.properties.pending: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["staked"]) -> MetaOapg.properties.staked: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["frozen"]) -> MetaOapg.properties.frozen: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["lockedAmount"]) -> MetaOapg.properties.lockedAmount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["blockHeight"]) -> MetaOapg.properties.blockHeight: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["blockHash"]) -> MetaOapg.properties.blockHash: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["creationTimestamp"]) -> MetaOapg.properties.creationTimestamp: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["vaultId", "assetId", "available", "total", "pending", "staked", "frozen", "lockedAmount", "blockHeight", "blockHash", "creationTimestamp", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["vaultId"]) -> typing.Union[MetaOapg.properties.vaultId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["assetId"]) -> typing.Union[MetaOapg.properties.assetId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["available"]) -> typing.Union[MetaOapg.properties.available, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["total"]) -> typing.Union[MetaOapg.properties.total, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["pending"]) -> typing.Union[MetaOapg.properties.pending, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["staked"]) -> typing.Union[MetaOapg.properties.staked, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["frozen"]) -> typing.Union[MetaOapg.properties.frozen, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["lockedAmount"]) -> typing.Union[MetaOapg.properties.lockedAmount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["blockHeight"]) -> typing.Union[MetaOapg.properties.blockHeight, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["blockHash"]) -> typing.Union[MetaOapg.properties.blockHash, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["creationTimestamp"]) -> typing.Union[MetaOapg.properties.creationTimestamp, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["vaultId", "assetId", "available", "total", "pending", "staked", "frozen", "lockedAmount", "blockHeight", "blockHash", "creationTimestamp", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - vaultId: typing.Union[MetaOapg.properties.vaultId, str, schemas.Unset] = schemas.unset, - assetId: typing.Union[MetaOapg.properties.assetId, str, schemas.Unset] = schemas.unset, - available: typing.Union[MetaOapg.properties.available, str, schemas.Unset] = schemas.unset, - total: typing.Union[MetaOapg.properties.total, str, schemas.Unset] = schemas.unset, - pending: typing.Union[MetaOapg.properties.pending, str, schemas.Unset] = schemas.unset, - staked: typing.Union[MetaOapg.properties.staked, str, schemas.Unset] = schemas.unset, - frozen: typing.Union[MetaOapg.properties.frozen, str, schemas.Unset] = schemas.unset, - lockedAmount: typing.Union[MetaOapg.properties.lockedAmount, str, schemas.Unset] = schemas.unset, - blockHeight: typing.Union[MetaOapg.properties.blockHeight, str, schemas.Unset] = schemas.unset, - blockHash: typing.Union[MetaOapg.properties.blockHash, str, schemas.Unset] = schemas.unset, - creationTimestamp: typing.Union[MetaOapg.properties.creationTimestamp, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'AssetWallet': - return super().__new__( - cls, - *_args, - vaultId=vaultId, - assetId=assetId, - available=available, - total=total, - pending=pending, - staked=staked, - frozen=frozen, - lockedAmount=lockedAmount, - blockHeight=blockHeight, - blockHash=blockHash, - creationTimestamp=creationTimestamp, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/asset_wallet.pyi b/fireblocks_client/model/asset_wallet.pyi deleted file mode 100644 index c828a0e9..00000000 --- a/fireblocks_client/model/asset_wallet.pyi +++ /dev/null @@ -1,179 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class AssetWallet( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - vaultId = schemas.StrSchema - assetId = schemas.StrSchema - available = schemas.StrSchema - total = schemas.StrSchema - pending = schemas.StrSchema - staked = schemas.StrSchema - frozen = schemas.StrSchema - lockedAmount = schemas.StrSchema - blockHeight = schemas.StrSchema - blockHash = schemas.StrSchema - creationTimestamp = schemas.StrSchema - __annotations__ = { - "vaultId": vaultId, - "assetId": assetId, - "available": available, - "total": total, - "pending": pending, - "staked": staked, - "frozen": frozen, - "lockedAmount": lockedAmount, - "blockHeight": blockHeight, - "blockHash": blockHash, - "creationTimestamp": creationTimestamp, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["vaultId"]) -> MetaOapg.properties.vaultId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["assetId"]) -> MetaOapg.properties.assetId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["available"]) -> MetaOapg.properties.available: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["total"]) -> MetaOapg.properties.total: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["pending"]) -> MetaOapg.properties.pending: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["staked"]) -> MetaOapg.properties.staked: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["frozen"]) -> MetaOapg.properties.frozen: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["lockedAmount"]) -> MetaOapg.properties.lockedAmount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["blockHeight"]) -> MetaOapg.properties.blockHeight: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["blockHash"]) -> MetaOapg.properties.blockHash: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["creationTimestamp"]) -> MetaOapg.properties.creationTimestamp: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["vaultId", "assetId", "available", "total", "pending", "staked", "frozen", "lockedAmount", "blockHeight", "blockHash", "creationTimestamp", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["vaultId"]) -> typing.Union[MetaOapg.properties.vaultId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["assetId"]) -> typing.Union[MetaOapg.properties.assetId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["available"]) -> typing.Union[MetaOapg.properties.available, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["total"]) -> typing.Union[MetaOapg.properties.total, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["pending"]) -> typing.Union[MetaOapg.properties.pending, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["staked"]) -> typing.Union[MetaOapg.properties.staked, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["frozen"]) -> typing.Union[MetaOapg.properties.frozen, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["lockedAmount"]) -> typing.Union[MetaOapg.properties.lockedAmount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["blockHeight"]) -> typing.Union[MetaOapg.properties.blockHeight, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["blockHash"]) -> typing.Union[MetaOapg.properties.blockHash, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["creationTimestamp"]) -> typing.Union[MetaOapg.properties.creationTimestamp, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["vaultId", "assetId", "available", "total", "pending", "staked", "frozen", "lockedAmount", "blockHeight", "blockHash", "creationTimestamp", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - vaultId: typing.Union[MetaOapg.properties.vaultId, str, schemas.Unset] = schemas.unset, - assetId: typing.Union[MetaOapg.properties.assetId, str, schemas.Unset] = schemas.unset, - available: typing.Union[MetaOapg.properties.available, str, schemas.Unset] = schemas.unset, - total: typing.Union[MetaOapg.properties.total, str, schemas.Unset] = schemas.unset, - pending: typing.Union[MetaOapg.properties.pending, str, schemas.Unset] = schemas.unset, - staked: typing.Union[MetaOapg.properties.staked, str, schemas.Unset] = schemas.unset, - frozen: typing.Union[MetaOapg.properties.frozen, str, schemas.Unset] = schemas.unset, - lockedAmount: typing.Union[MetaOapg.properties.lockedAmount, str, schemas.Unset] = schemas.unset, - blockHeight: typing.Union[MetaOapg.properties.blockHeight, str, schemas.Unset] = schemas.unset, - blockHash: typing.Union[MetaOapg.properties.blockHash, str, schemas.Unset] = schemas.unset, - creationTimestamp: typing.Union[MetaOapg.properties.creationTimestamp, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'AssetWallet': - return super().__new__( - cls, - *_args, - vaultId=vaultId, - assetId=assetId, - available=available, - total=total, - pending=pending, - staked=staked, - frozen=frozen, - lockedAmount=lockedAmount, - blockHeight=blockHeight, - blockHash=blockHash, - creationTimestamp=creationTimestamp, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/authorization_groups.py b/fireblocks_client/model/authorization_groups.py deleted file mode 100644 index 4efedcd0..00000000 --- a/fireblocks_client/model/authorization_groups.py +++ /dev/null @@ -1,147 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class AuthorizationGroups( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - th = schemas.NumberSchema - - - class users( - schemas.DictSchema - ): - - - class MetaOapg: - - - class additional_properties( - schemas.EnumBase, - schemas.StrSchema - ): - - - class MetaOapg: - enum_value_to_name = { - "PENDING_AUTHORIZATION": "PENDING_AUTHORIZATION", - "APPROVED": "APPROVED", - "REJECTED": "REJECTED", - "NA": "NA", - } - - @schemas.classproperty - def PENDING_AUTHORIZATION(cls): - return cls("PENDING_AUTHORIZATION") - - @schemas.classproperty - def APPROVED(cls): - return cls("APPROVED") - - @schemas.classproperty - def REJECTED(cls): - return cls("REJECTED") - - @schemas.classproperty - def NA(cls): - return cls("NA") - - def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - # dict_instance[name] accessor - return super().__getitem__(name) - - def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - return super().get_item_oapg(name) - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[MetaOapg.additional_properties, str, ], - ) -> 'users': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - __annotations__ = { - "th": th, - "users": users, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["th"]) -> MetaOapg.properties.th: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["users"]) -> MetaOapg.properties.users: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["th", "users", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["th"]) -> typing.Union[MetaOapg.properties.th, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["users"]) -> typing.Union[MetaOapg.properties.users, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["th", "users", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - th: typing.Union[MetaOapg.properties.th, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, - users: typing.Union[MetaOapg.properties.users, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'AuthorizationGroups': - return super().__new__( - cls, - *_args, - th=th, - users=users, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/authorization_groups.pyi b/fireblocks_client/model/authorization_groups.pyi deleted file mode 100644 index 6b0eb2c9..00000000 --- a/fireblocks_client/model/authorization_groups.pyi +++ /dev/null @@ -1,138 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class AuthorizationGroups( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - th = schemas.NumberSchema - - - class users( - schemas.DictSchema - ): - - - class MetaOapg: - - - class additional_properties( - schemas.EnumBase, - schemas.StrSchema - ): - - @schemas.classproperty - def PENDING_AUTHORIZATION(cls): - return cls("PENDING_AUTHORIZATION") - - @schemas.classproperty - def APPROVED(cls): - return cls("APPROVED") - - @schemas.classproperty - def REJECTED(cls): - return cls("REJECTED") - - @schemas.classproperty - def NA(cls): - return cls("NA") - - def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - # dict_instance[name] accessor - return super().__getitem__(name) - - def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - return super().get_item_oapg(name) - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[MetaOapg.additional_properties, str, ], - ) -> 'users': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - __annotations__ = { - "th": th, - "users": users, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["th"]) -> MetaOapg.properties.th: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["users"]) -> MetaOapg.properties.users: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["th", "users", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["th"]) -> typing.Union[MetaOapg.properties.th, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["users"]) -> typing.Union[MetaOapg.properties.users, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["th", "users", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - th: typing.Union[MetaOapg.properties.th, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, - users: typing.Union[MetaOapg.properties.users, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'AuthorizationGroups': - return super().__new__( - cls, - *_args, - th=th, - users=users, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/authorization_info.py b/fireblocks_client/model/authorization_info.py deleted file mode 100644 index 861a4b6a..00000000 --- a/fireblocks_client/model/authorization_info.py +++ /dev/null @@ -1,148 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class AuthorizationInfo( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - The information about your [Transaction Authorization Policy (TAP).](https://developers.fireblocks.com/docs/capabilities#transaction-authorization-policy-tap) - """ - - - class MetaOapg: - - class properties: - allowOperatorAsAuthorizer = schemas.BoolSchema - - - class logic( - schemas.EnumBase, - schemas.StrSchema - ): - - - class MetaOapg: - enum_value_to_name = { - "AND": "AND", - "OR": "OR", - } - - @schemas.classproperty - def AND(cls): - return cls("AND") - - @schemas.classproperty - def OR(cls): - return cls("OR") - - - class groups( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['AuthorizationGroups']: - return AuthorizationGroups - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['AuthorizationGroups'], typing.List['AuthorizationGroups']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'groups': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'AuthorizationGroups': - return super().__getitem__(i) - __annotations__ = { - "allowOperatorAsAuthorizer": allowOperatorAsAuthorizer, - "logic": logic, - "groups": groups, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["allowOperatorAsAuthorizer"]) -> MetaOapg.properties.allowOperatorAsAuthorizer: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["logic"]) -> MetaOapg.properties.logic: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["groups"]) -> MetaOapg.properties.groups: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["allowOperatorAsAuthorizer", "logic", "groups", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["allowOperatorAsAuthorizer"]) -> typing.Union[MetaOapg.properties.allowOperatorAsAuthorizer, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["logic"]) -> typing.Union[MetaOapg.properties.logic, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["groups"]) -> typing.Union[MetaOapg.properties.groups, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["allowOperatorAsAuthorizer", "logic", "groups", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - allowOperatorAsAuthorizer: typing.Union[MetaOapg.properties.allowOperatorAsAuthorizer, bool, schemas.Unset] = schemas.unset, - logic: typing.Union[MetaOapg.properties.logic, str, schemas.Unset] = schemas.unset, - groups: typing.Union[MetaOapg.properties.groups, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'AuthorizationInfo': - return super().__new__( - cls, - *_args, - allowOperatorAsAuthorizer=allowOperatorAsAuthorizer, - logic=logic, - groups=groups, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.authorization_groups import AuthorizationGroups diff --git a/fireblocks_client/model/authorization_info.pyi b/fireblocks_client/model/authorization_info.pyi deleted file mode 100644 index 4bb69fb4..00000000 --- a/fireblocks_client/model/authorization_info.pyi +++ /dev/null @@ -1,141 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class AuthorizationInfo( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - The information about your [Transaction Authorization Policy (TAP).](https://developers.fireblocks.com/docs/capabilities#transaction-authorization-policy-tap) - """ - - - class MetaOapg: - - class properties: - allowOperatorAsAuthorizer = schemas.BoolSchema - - - class logic( - schemas.EnumBase, - schemas.StrSchema - ): - - @schemas.classproperty - def AND(cls): - return cls("AND") - - @schemas.classproperty - def OR(cls): - return cls("OR") - - - class groups( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['AuthorizationGroups']: - return AuthorizationGroups - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['AuthorizationGroups'], typing.List['AuthorizationGroups']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'groups': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'AuthorizationGroups': - return super().__getitem__(i) - __annotations__ = { - "allowOperatorAsAuthorizer": allowOperatorAsAuthorizer, - "logic": logic, - "groups": groups, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["allowOperatorAsAuthorizer"]) -> MetaOapg.properties.allowOperatorAsAuthorizer: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["logic"]) -> MetaOapg.properties.logic: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["groups"]) -> MetaOapg.properties.groups: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["allowOperatorAsAuthorizer", "logic", "groups", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["allowOperatorAsAuthorizer"]) -> typing.Union[MetaOapg.properties.allowOperatorAsAuthorizer, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["logic"]) -> typing.Union[MetaOapg.properties.logic, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["groups"]) -> typing.Union[MetaOapg.properties.groups, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["allowOperatorAsAuthorizer", "logic", "groups", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - allowOperatorAsAuthorizer: typing.Union[MetaOapg.properties.allowOperatorAsAuthorizer, bool, schemas.Unset] = schemas.unset, - logic: typing.Union[MetaOapg.properties.logic, str, schemas.Unset] = schemas.unset, - groups: typing.Union[MetaOapg.properties.groups, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'AuthorizationInfo': - return super().__new__( - cls, - *_args, - allowOperatorAsAuthorizer=allowOperatorAsAuthorizer, - logic=logic, - groups=groups, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.authorization_groups import AuthorizationGroups diff --git a/fireblocks_client/model/block_info.py b/fireblocks_client/model/block_info.py deleted file mode 100644 index efc79151..00000000 --- a/fireblocks_client/model/block_info.py +++ /dev/null @@ -1,92 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class BlockInfo( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - The block hash and height of the block that this transaction was mined in. - **Note**: If an outgoing transaction uses the destinations object with more than one value in the array, blockHash is set to null. - """ - - - class MetaOapg: - - class properties: - blockHeight = schemas.StrSchema - blockHash = schemas.StrSchema - __annotations__ = { - "blockHeight": blockHeight, - "blockHash": blockHash, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["blockHeight"]) -> MetaOapg.properties.blockHeight: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["blockHash"]) -> MetaOapg.properties.blockHash: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["blockHeight", "blockHash", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["blockHeight"]) -> typing.Union[MetaOapg.properties.blockHeight, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["blockHash"]) -> typing.Union[MetaOapg.properties.blockHash, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["blockHeight", "blockHash", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - blockHeight: typing.Union[MetaOapg.properties.blockHeight, str, schemas.Unset] = schemas.unset, - blockHash: typing.Union[MetaOapg.properties.blockHash, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'BlockInfo': - return super().__new__( - cls, - *_args, - blockHeight=blockHeight, - blockHash=blockHash, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/block_info.pyi b/fireblocks_client/model/block_info.pyi deleted file mode 100644 index efc79151..00000000 --- a/fireblocks_client/model/block_info.pyi +++ /dev/null @@ -1,92 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class BlockInfo( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - The block hash and height of the block that this transaction was mined in. - **Note**: If an outgoing transaction uses the destinations object with more than one value in the array, blockHash is set to null. - """ - - - class MetaOapg: - - class properties: - blockHeight = schemas.StrSchema - blockHash = schemas.StrSchema - __annotations__ = { - "blockHeight": blockHeight, - "blockHash": blockHash, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["blockHeight"]) -> MetaOapg.properties.blockHeight: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["blockHash"]) -> MetaOapg.properties.blockHash: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["blockHeight", "blockHash", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["blockHeight"]) -> typing.Union[MetaOapg.properties.blockHeight, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["blockHash"]) -> typing.Union[MetaOapg.properties.blockHash, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["blockHeight", "blockHash", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - blockHeight: typing.Union[MetaOapg.properties.blockHeight, str, schemas.Unset] = schemas.unset, - blockHash: typing.Union[MetaOapg.properties.blockHash, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'BlockInfo': - return super().__new__( - cls, - *_args, - blockHeight=blockHeight, - blockHash=blockHash, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/cancel_transaction_response.py b/fireblocks_client/model/cancel_transaction_response.py deleted file mode 100644 index 36f4d400..00000000 --- a/fireblocks_client/model/cancel_transaction_response.py +++ /dev/null @@ -1,79 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class CancelTransactionResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - success = schemas.BoolSchema - __annotations__ = { - "success": success, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["success"]) -> MetaOapg.properties.success: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["success", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["success"]) -> typing.Union[MetaOapg.properties.success, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["success", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - success: typing.Union[MetaOapg.properties.success, bool, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'CancelTransactionResponse': - return super().__new__( - cls, - *_args, - success=success, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/cancel_transaction_response.pyi b/fireblocks_client/model/cancel_transaction_response.pyi deleted file mode 100644 index 36f4d400..00000000 --- a/fireblocks_client/model/cancel_transaction_response.pyi +++ /dev/null @@ -1,79 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class CancelTransactionResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - success = schemas.BoolSchema - __annotations__ = { - "success": success, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["success"]) -> MetaOapg.properties.success: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["success", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["success"]) -> typing.Union[MetaOapg.properties.success, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["success", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - success: typing.Union[MetaOapg.properties.success, bool, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'CancelTransactionResponse': - return super().__new__( - cls, - *_args, - success=success, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/collection_ownership_response.py b/fireblocks_client/model/collection_ownership_response.py deleted file mode 100644 index 669ec67d..00000000 --- a/fireblocks_client/model/collection_ownership_response.py +++ /dev/null @@ -1,170 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class CollectionOwnershipResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "symbol", - "blockchainDescriptor", - "name", - "id", - } - - class properties: - id = schemas.StrSchema - name = schemas.StrSchema - symbol = schemas.StrSchema - - - class blockchainDescriptor( - schemas.EnumBase, - schemas.StrSchema - ): - - - class MetaOapg: - enum_value_to_name = { - "ETH": "ETH", - "ETH_TEST3": "ETH_TEST3", - "POLYGON": "POLYGON", - "POLYGON_TEST_MUMBAI": "POLYGON_TEST_MUMBAI", - } - - @schemas.classproperty - def ETH(cls): - return cls("ETH") - - @schemas.classproperty - def ETH_TEST3(cls): - return cls("ETH_TEST3") - - @schemas.classproperty - def POLYGON(cls): - return cls("POLYGON") - - @schemas.classproperty - def POLYGON_TEST_MUMBAI(cls): - return cls("POLYGON_TEST_MUMBAI") - standard = schemas.StrSchema - contractAddress = schemas.StrSchema - __annotations__ = { - "id": id, - "name": name, - "symbol": symbol, - "blockchainDescriptor": blockchainDescriptor, - "standard": standard, - "contractAddress": contractAddress, - } - - symbol: MetaOapg.properties.symbol - blockchainDescriptor: MetaOapg.properties.blockchainDescriptor - name: MetaOapg.properties.name - id: MetaOapg.properties.id - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["symbol"]) -> MetaOapg.properties.symbol: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["blockchainDescriptor"]) -> MetaOapg.properties.blockchainDescriptor: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["standard"]) -> MetaOapg.properties.standard: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["contractAddress"]) -> MetaOapg.properties.contractAddress: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "name", "symbol", "blockchainDescriptor", "standard", "contractAddress", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["symbol"]) -> MetaOapg.properties.symbol: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["blockchainDescriptor"]) -> MetaOapg.properties.blockchainDescriptor: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["standard"]) -> typing.Union[MetaOapg.properties.standard, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["contractAddress"]) -> typing.Union[MetaOapg.properties.contractAddress, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "name", "symbol", "blockchainDescriptor", "standard", "contractAddress", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - symbol: typing.Union[MetaOapg.properties.symbol, str, ], - blockchainDescriptor: typing.Union[MetaOapg.properties.blockchainDescriptor, str, ], - name: typing.Union[MetaOapg.properties.name, str, ], - id: typing.Union[MetaOapg.properties.id, str, ], - standard: typing.Union[MetaOapg.properties.standard, str, schemas.Unset] = schemas.unset, - contractAddress: typing.Union[MetaOapg.properties.contractAddress, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'CollectionOwnershipResponse': - return super().__new__( - cls, - *_args, - symbol=symbol, - blockchainDescriptor=blockchainDescriptor, - name=name, - id=id, - standard=standard, - contractAddress=contractAddress, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/collection_ownership_response.pyi b/fireblocks_client/model/collection_ownership_response.pyi deleted file mode 100644 index a49306e8..00000000 --- a/fireblocks_client/model/collection_ownership_response.pyi +++ /dev/null @@ -1,161 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class CollectionOwnershipResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "symbol", - "blockchainDescriptor", - "name", - "id", - } - - class properties: - id = schemas.StrSchema - name = schemas.StrSchema - symbol = schemas.StrSchema - - - class blockchainDescriptor( - schemas.EnumBase, - schemas.StrSchema - ): - - @schemas.classproperty - def ETH(cls): - return cls("ETH") - - @schemas.classproperty - def ETH_TEST3(cls): - return cls("ETH_TEST3") - - @schemas.classproperty - def POLYGON(cls): - return cls("POLYGON") - - @schemas.classproperty - def POLYGON_TEST_MUMBAI(cls): - return cls("POLYGON_TEST_MUMBAI") - standard = schemas.StrSchema - contractAddress = schemas.StrSchema - __annotations__ = { - "id": id, - "name": name, - "symbol": symbol, - "blockchainDescriptor": blockchainDescriptor, - "standard": standard, - "contractAddress": contractAddress, - } - - symbol: MetaOapg.properties.symbol - blockchainDescriptor: MetaOapg.properties.blockchainDescriptor - name: MetaOapg.properties.name - id: MetaOapg.properties.id - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["symbol"]) -> MetaOapg.properties.symbol: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["blockchainDescriptor"]) -> MetaOapg.properties.blockchainDescriptor: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["standard"]) -> MetaOapg.properties.standard: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["contractAddress"]) -> MetaOapg.properties.contractAddress: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "name", "symbol", "blockchainDescriptor", "standard", "contractAddress", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["symbol"]) -> MetaOapg.properties.symbol: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["blockchainDescriptor"]) -> MetaOapg.properties.blockchainDescriptor: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["standard"]) -> typing.Union[MetaOapg.properties.standard, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["contractAddress"]) -> typing.Union[MetaOapg.properties.contractAddress, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "name", "symbol", "blockchainDescriptor", "standard", "contractAddress", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - symbol: typing.Union[MetaOapg.properties.symbol, str, ], - blockchainDescriptor: typing.Union[MetaOapg.properties.blockchainDescriptor, str, ], - name: typing.Union[MetaOapg.properties.name, str, ], - id: typing.Union[MetaOapg.properties.id, str, ], - standard: typing.Union[MetaOapg.properties.standard, str, schemas.Unset] = schemas.unset, - contractAddress: typing.Union[MetaOapg.properties.contractAddress, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'CollectionOwnershipResponse': - return super().__new__( - cls, - *_args, - symbol=symbol, - blockchainDescriptor=blockchainDescriptor, - name=name, - id=id, - standard=standard, - contractAddress=contractAddress, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/config_change_request_status.py b/fireblocks_client/model/config_change_request_status.py deleted file mode 100644 index 46b2577c..00000000 --- a/fireblocks_client/model/config_change_request_status.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class ConfigChangeRequestStatus( - schemas.EnumBase, - schemas.StrSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - enum_value_to_name = { - "WAITING_FOR_APPROVAL": "WAITING_FOR_APPROVAL", - "APPROVED": "APPROVED", - "CANCELLED": "CANCELLED", - "REJECTED": "REJECTED", - "FAILED": "FAILED", - } - - @schemas.classproperty - def WAITING_FOR_APPROVAL(cls): - return cls("WAITING_FOR_APPROVAL") - - @schemas.classproperty - def APPROVED(cls): - return cls("APPROVED") - - @schemas.classproperty - def CANCELLED(cls): - return cls("CANCELLED") - - @schemas.classproperty - def REJECTED(cls): - return cls("REJECTED") - - @schemas.classproperty - def FAILED(cls): - return cls("FAILED") diff --git a/fireblocks_client/model/config_change_request_status.pyi b/fireblocks_client/model/config_change_request_status.pyi deleted file mode 100644 index 8ee6a9bc..00000000 --- a/fireblocks_client/model/config_change_request_status.pyi +++ /dev/null @@ -1,55 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class ConfigChangeRequestStatus( - schemas.EnumBase, - schemas.StrSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - @schemas.classproperty - def WAITING_FOR_APPROVAL(cls): - return cls("WAITING_FOR_APPROVAL") - - @schemas.classproperty - def APPROVED(cls): - return cls("APPROVED") - - @schemas.classproperty - def CANCELLED(cls): - return cls("CANCELLED") - - @schemas.classproperty - def REJECTED(cls): - return cls("REJECTED") - - @schemas.classproperty - def FAILED(cls): - return cls("FAILED") diff --git a/fireblocks_client/model/create_address_response.py b/fireblocks_client/model/create_address_response.py deleted file mode 100644 index 71aada15..00000000 --- a/fireblocks_client/model/create_address_response.py +++ /dev/null @@ -1,119 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class CreateAddressResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - address = schemas.StrSchema - legacyAddress = schemas.StrSchema - enterpriseAddress = schemas.StrSchema - tag = schemas.StrSchema - bip44AddressIndex = schemas.IntSchema - __annotations__ = { - "address": address, - "legacyAddress": legacyAddress, - "enterpriseAddress": enterpriseAddress, - "tag": tag, - "bip44AddressIndex": bip44AddressIndex, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["address"]) -> MetaOapg.properties.address: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["legacyAddress"]) -> MetaOapg.properties.legacyAddress: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["enterpriseAddress"]) -> MetaOapg.properties.enterpriseAddress: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["tag"]) -> MetaOapg.properties.tag: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["bip44AddressIndex"]) -> MetaOapg.properties.bip44AddressIndex: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["address", "legacyAddress", "enterpriseAddress", "tag", "bip44AddressIndex", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["address"]) -> typing.Union[MetaOapg.properties.address, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["legacyAddress"]) -> typing.Union[MetaOapg.properties.legacyAddress, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["enterpriseAddress"]) -> typing.Union[MetaOapg.properties.enterpriseAddress, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["tag"]) -> typing.Union[MetaOapg.properties.tag, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["bip44AddressIndex"]) -> typing.Union[MetaOapg.properties.bip44AddressIndex, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["address", "legacyAddress", "enterpriseAddress", "tag", "bip44AddressIndex", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - address: typing.Union[MetaOapg.properties.address, str, schemas.Unset] = schemas.unset, - legacyAddress: typing.Union[MetaOapg.properties.legacyAddress, str, schemas.Unset] = schemas.unset, - enterpriseAddress: typing.Union[MetaOapg.properties.enterpriseAddress, str, schemas.Unset] = schemas.unset, - tag: typing.Union[MetaOapg.properties.tag, str, schemas.Unset] = schemas.unset, - bip44AddressIndex: typing.Union[MetaOapg.properties.bip44AddressIndex, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'CreateAddressResponse': - return super().__new__( - cls, - *_args, - address=address, - legacyAddress=legacyAddress, - enterpriseAddress=enterpriseAddress, - tag=tag, - bip44AddressIndex=bip44AddressIndex, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/create_address_response.pyi b/fireblocks_client/model/create_address_response.pyi deleted file mode 100644 index 71aada15..00000000 --- a/fireblocks_client/model/create_address_response.pyi +++ /dev/null @@ -1,119 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class CreateAddressResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - address = schemas.StrSchema - legacyAddress = schemas.StrSchema - enterpriseAddress = schemas.StrSchema - tag = schemas.StrSchema - bip44AddressIndex = schemas.IntSchema - __annotations__ = { - "address": address, - "legacyAddress": legacyAddress, - "enterpriseAddress": enterpriseAddress, - "tag": tag, - "bip44AddressIndex": bip44AddressIndex, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["address"]) -> MetaOapg.properties.address: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["legacyAddress"]) -> MetaOapg.properties.legacyAddress: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["enterpriseAddress"]) -> MetaOapg.properties.enterpriseAddress: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["tag"]) -> MetaOapg.properties.tag: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["bip44AddressIndex"]) -> MetaOapg.properties.bip44AddressIndex: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["address", "legacyAddress", "enterpriseAddress", "tag", "bip44AddressIndex", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["address"]) -> typing.Union[MetaOapg.properties.address, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["legacyAddress"]) -> typing.Union[MetaOapg.properties.legacyAddress, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["enterpriseAddress"]) -> typing.Union[MetaOapg.properties.enterpriseAddress, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["tag"]) -> typing.Union[MetaOapg.properties.tag, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["bip44AddressIndex"]) -> typing.Union[MetaOapg.properties.bip44AddressIndex, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["address", "legacyAddress", "enterpriseAddress", "tag", "bip44AddressIndex", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - address: typing.Union[MetaOapg.properties.address, str, schemas.Unset] = schemas.unset, - legacyAddress: typing.Union[MetaOapg.properties.legacyAddress, str, schemas.Unset] = schemas.unset, - enterpriseAddress: typing.Union[MetaOapg.properties.enterpriseAddress, str, schemas.Unset] = schemas.unset, - tag: typing.Union[MetaOapg.properties.tag, str, schemas.Unset] = schemas.unset, - bip44AddressIndex: typing.Union[MetaOapg.properties.bip44AddressIndex, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'CreateAddressResponse': - return super().__new__( - cls, - *_args, - address=address, - legacyAddress=legacyAddress, - enterpriseAddress=enterpriseAddress, - tag=tag, - bip44AddressIndex=bip44AddressIndex, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/create_connection_request.py b/fireblocks_client/model/create_connection_request.py deleted file mode 100644 index 447ae8fe..00000000 --- a/fireblocks_client/model/create_connection_request.py +++ /dev/null @@ -1,162 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class CreateConnectionRequest( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "vaultAccountId", - "chainIds", - "feeLevel", - "uri", - } - - class properties: - vaultAccountId = schemas.NumberSchema - - - class feeLevel( - schemas.EnumBase, - schemas.StrSchema - ): - - - class MetaOapg: - enum_value_to_name = { - "MEDIUM": "MEDIUM", - "HIGH": "HIGH", - } - - @schemas.classproperty - def MEDIUM(cls): - return cls("MEDIUM") - - @schemas.classproperty - def HIGH(cls): - return cls("HIGH") - uri = schemas.StrSchema - - - class chainIds( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.StrSchema - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'chainIds': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - __annotations__ = { - "vaultAccountId": vaultAccountId, - "feeLevel": feeLevel, - "uri": uri, - "chainIds": chainIds, - } - - vaultAccountId: MetaOapg.properties.vaultAccountId - chainIds: MetaOapg.properties.chainIds - feeLevel: MetaOapg.properties.feeLevel - uri: MetaOapg.properties.uri - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["vaultAccountId"]) -> MetaOapg.properties.vaultAccountId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["feeLevel"]) -> MetaOapg.properties.feeLevel: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["uri"]) -> MetaOapg.properties.uri: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["chainIds"]) -> MetaOapg.properties.chainIds: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["vaultAccountId", "feeLevel", "uri", "chainIds", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["vaultAccountId"]) -> MetaOapg.properties.vaultAccountId: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["feeLevel"]) -> MetaOapg.properties.feeLevel: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["uri"]) -> MetaOapg.properties.uri: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["chainIds"]) -> MetaOapg.properties.chainIds: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["vaultAccountId", "feeLevel", "uri", "chainIds", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - vaultAccountId: typing.Union[MetaOapg.properties.vaultAccountId, decimal.Decimal, int, float, ], - chainIds: typing.Union[MetaOapg.properties.chainIds, list, tuple, ], - feeLevel: typing.Union[MetaOapg.properties.feeLevel, str, ], - uri: typing.Union[MetaOapg.properties.uri, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'CreateConnectionRequest': - return super().__new__( - cls, - *_args, - vaultAccountId=vaultAccountId, - chainIds=chainIds, - feeLevel=feeLevel, - uri=uri, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/create_connection_request.pyi b/fireblocks_client/model/create_connection_request.pyi deleted file mode 100644 index 658ea2fe..00000000 --- a/fireblocks_client/model/create_connection_request.pyi +++ /dev/null @@ -1,155 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class CreateConnectionRequest( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "vaultAccountId", - "chainIds", - "feeLevel", - "uri", - } - - class properties: - vaultAccountId = schemas.NumberSchema - - - class feeLevel( - schemas.EnumBase, - schemas.StrSchema - ): - - @schemas.classproperty - def MEDIUM(cls): - return cls("MEDIUM") - - @schemas.classproperty - def HIGH(cls): - return cls("HIGH") - uri = schemas.StrSchema - - - class chainIds( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.StrSchema - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'chainIds': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - __annotations__ = { - "vaultAccountId": vaultAccountId, - "feeLevel": feeLevel, - "uri": uri, - "chainIds": chainIds, - } - - vaultAccountId: MetaOapg.properties.vaultAccountId - chainIds: MetaOapg.properties.chainIds - feeLevel: MetaOapg.properties.feeLevel - uri: MetaOapg.properties.uri - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["vaultAccountId"]) -> MetaOapg.properties.vaultAccountId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["feeLevel"]) -> MetaOapg.properties.feeLevel: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["uri"]) -> MetaOapg.properties.uri: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["chainIds"]) -> MetaOapg.properties.chainIds: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["vaultAccountId", "feeLevel", "uri", "chainIds", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["vaultAccountId"]) -> MetaOapg.properties.vaultAccountId: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["feeLevel"]) -> MetaOapg.properties.feeLevel: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["uri"]) -> MetaOapg.properties.uri: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["chainIds"]) -> MetaOapg.properties.chainIds: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["vaultAccountId", "feeLevel", "uri", "chainIds", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - vaultAccountId: typing.Union[MetaOapg.properties.vaultAccountId, decimal.Decimal, int, float, ], - chainIds: typing.Union[MetaOapg.properties.chainIds, list, tuple, ], - feeLevel: typing.Union[MetaOapg.properties.feeLevel, str, ], - uri: typing.Union[MetaOapg.properties.uri, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'CreateConnectionRequest': - return super().__new__( - cls, - *_args, - vaultAccountId=vaultAccountId, - chainIds=chainIds, - feeLevel=feeLevel, - uri=uri, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/create_connection_response.py b/fireblocks_client/model/create_connection_response.py deleted file mode 100644 index ec95c47f..00000000 --- a/fireblocks_client/model/create_connection_response.py +++ /dev/null @@ -1,133 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class CreateConnectionResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "sessionMetadata", - "id", - } - - class properties: - id = schemas.StrSchema - - - class sessionMetadata( - schemas.ComposedSchema, - ): - - - class MetaOapg: - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - SessionMetadata, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'sessionMetadata': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - __annotations__ = { - "id": id, - "sessionMetadata": sessionMetadata, - } - - sessionMetadata: MetaOapg.properties.sessionMetadata - id: MetaOapg.properties.id - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["sessionMetadata"]) -> MetaOapg.properties.sessionMetadata: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "sessionMetadata", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["sessionMetadata"]) -> MetaOapg.properties.sessionMetadata: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "sessionMetadata", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - sessionMetadata: typing.Union[MetaOapg.properties.sessionMetadata, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - id: typing.Union[MetaOapg.properties.id, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'CreateConnectionResponse': - return super().__new__( - cls, - *_args, - sessionMetadata=sessionMetadata, - id=id, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.session_metadata import SessionMetadata diff --git a/fireblocks_client/model/create_connection_response.pyi b/fireblocks_client/model/create_connection_response.pyi deleted file mode 100644 index ec95c47f..00000000 --- a/fireblocks_client/model/create_connection_response.pyi +++ /dev/null @@ -1,133 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class CreateConnectionResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "sessionMetadata", - "id", - } - - class properties: - id = schemas.StrSchema - - - class sessionMetadata( - schemas.ComposedSchema, - ): - - - class MetaOapg: - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - SessionMetadata, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'sessionMetadata': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - __annotations__ = { - "id": id, - "sessionMetadata": sessionMetadata, - } - - sessionMetadata: MetaOapg.properties.sessionMetadata - id: MetaOapg.properties.id - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["sessionMetadata"]) -> MetaOapg.properties.sessionMetadata: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "sessionMetadata", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["sessionMetadata"]) -> MetaOapg.properties.sessionMetadata: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "sessionMetadata", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - sessionMetadata: typing.Union[MetaOapg.properties.sessionMetadata, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - id: typing.Union[MetaOapg.properties.id, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'CreateConnectionResponse': - return super().__new__( - cls, - *_args, - sessionMetadata=sessionMetadata, - id=id, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.session_metadata import SessionMetadata diff --git a/fireblocks_client/model/create_internal_transfer_request.py b/fireblocks_client/model/create_internal_transfer_request.py deleted file mode 100644 index ead986f6..00000000 --- a/fireblocks_client/model/create_internal_transfer_request.py +++ /dev/null @@ -1,117 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class CreateInternalTransferRequest( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - asset = schemas.StrSchema - amount = schemas.StrSchema - - @staticmethod - def sourceType() -> typing.Type['TradingAccountType']: - return TradingAccountType - - @staticmethod - def destType() -> typing.Type['TradingAccountType']: - return TradingAccountType - __annotations__ = { - "asset": asset, - "amount": amount, - "sourceType": sourceType, - "destType": destType, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["asset"]) -> MetaOapg.properties.asset: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["amount"]) -> MetaOapg.properties.amount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["sourceType"]) -> 'TradingAccountType': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["destType"]) -> 'TradingAccountType': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["asset", "amount", "sourceType", "destType", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["asset"]) -> typing.Union[MetaOapg.properties.asset, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["amount"]) -> typing.Union[MetaOapg.properties.amount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["sourceType"]) -> typing.Union['TradingAccountType', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["destType"]) -> typing.Union['TradingAccountType', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["asset", "amount", "sourceType", "destType", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - asset: typing.Union[MetaOapg.properties.asset, str, schemas.Unset] = schemas.unset, - amount: typing.Union[MetaOapg.properties.amount, str, schemas.Unset] = schemas.unset, - sourceType: typing.Union['TradingAccountType', schemas.Unset] = schemas.unset, - destType: typing.Union['TradingAccountType', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'CreateInternalTransferRequest': - return super().__new__( - cls, - *_args, - asset=asset, - amount=amount, - sourceType=sourceType, - destType=destType, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.trading_account_type import TradingAccountType diff --git a/fireblocks_client/model/create_internal_transfer_request.pyi b/fireblocks_client/model/create_internal_transfer_request.pyi deleted file mode 100644 index ead986f6..00000000 --- a/fireblocks_client/model/create_internal_transfer_request.pyi +++ /dev/null @@ -1,117 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class CreateInternalTransferRequest( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - asset = schemas.StrSchema - amount = schemas.StrSchema - - @staticmethod - def sourceType() -> typing.Type['TradingAccountType']: - return TradingAccountType - - @staticmethod - def destType() -> typing.Type['TradingAccountType']: - return TradingAccountType - __annotations__ = { - "asset": asset, - "amount": amount, - "sourceType": sourceType, - "destType": destType, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["asset"]) -> MetaOapg.properties.asset: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["amount"]) -> MetaOapg.properties.amount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["sourceType"]) -> 'TradingAccountType': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["destType"]) -> 'TradingAccountType': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["asset", "amount", "sourceType", "destType", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["asset"]) -> typing.Union[MetaOapg.properties.asset, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["amount"]) -> typing.Union[MetaOapg.properties.amount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["sourceType"]) -> typing.Union['TradingAccountType', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["destType"]) -> typing.Union['TradingAccountType', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["asset", "amount", "sourceType", "destType", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - asset: typing.Union[MetaOapg.properties.asset, str, schemas.Unset] = schemas.unset, - amount: typing.Union[MetaOapg.properties.amount, str, schemas.Unset] = schemas.unset, - sourceType: typing.Union['TradingAccountType', schemas.Unset] = schemas.unset, - destType: typing.Union['TradingAccountType', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'CreateInternalTransferRequest': - return super().__new__( - cls, - *_args, - asset=asset, - amount=amount, - sourceType=sourceType, - destType=destType, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.trading_account_type import TradingAccountType diff --git a/fireblocks_client/model/create_payout_request.py b/fireblocks_client/model/create_payout_request.py deleted file mode 100644 index 0e478b46..00000000 --- a/fireblocks_client/model/create_payout_request.py +++ /dev/null @@ -1,127 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class CreatePayoutRequest( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "instructionSet", - "paymentAccount", - } - - class properties: - - @staticmethod - def paymentAccount() -> typing.Type['PaymentAccount']: - return PaymentAccount - - - class instructionSet( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['PayoutInstruction']: - return PayoutInstruction - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['PayoutInstruction'], typing.List['PayoutInstruction']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'instructionSet': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'PayoutInstruction': - return super().__getitem__(i) - __annotations__ = { - "paymentAccount": paymentAccount, - "instructionSet": instructionSet, - } - - instructionSet: MetaOapg.properties.instructionSet - paymentAccount: 'PaymentAccount' - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["paymentAccount"]) -> 'PaymentAccount': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["instructionSet"]) -> MetaOapg.properties.instructionSet: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["paymentAccount", "instructionSet", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["paymentAccount"]) -> 'PaymentAccount': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["instructionSet"]) -> MetaOapg.properties.instructionSet: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["paymentAccount", "instructionSet", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - instructionSet: typing.Union[MetaOapg.properties.instructionSet, list, tuple, ], - paymentAccount: 'PaymentAccount', - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'CreatePayoutRequest': - return super().__new__( - cls, - *_args, - instructionSet=instructionSet, - paymentAccount=paymentAccount, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.payment_account import PaymentAccount -from fireblocks_client.model.payout_instruction import PayoutInstruction diff --git a/fireblocks_client/model/create_payout_request.pyi b/fireblocks_client/model/create_payout_request.pyi deleted file mode 100644 index 0e478b46..00000000 --- a/fireblocks_client/model/create_payout_request.pyi +++ /dev/null @@ -1,127 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class CreatePayoutRequest( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "instructionSet", - "paymentAccount", - } - - class properties: - - @staticmethod - def paymentAccount() -> typing.Type['PaymentAccount']: - return PaymentAccount - - - class instructionSet( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['PayoutInstruction']: - return PayoutInstruction - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['PayoutInstruction'], typing.List['PayoutInstruction']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'instructionSet': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'PayoutInstruction': - return super().__getitem__(i) - __annotations__ = { - "paymentAccount": paymentAccount, - "instructionSet": instructionSet, - } - - instructionSet: MetaOapg.properties.instructionSet - paymentAccount: 'PaymentAccount' - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["paymentAccount"]) -> 'PaymentAccount': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["instructionSet"]) -> MetaOapg.properties.instructionSet: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["paymentAccount", "instructionSet", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["paymentAccount"]) -> 'PaymentAccount': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["instructionSet"]) -> MetaOapg.properties.instructionSet: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["paymentAccount", "instructionSet", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - instructionSet: typing.Union[MetaOapg.properties.instructionSet, list, tuple, ], - paymentAccount: 'PaymentAccount', - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'CreatePayoutRequest': - return super().__new__( - cls, - *_args, - instructionSet=instructionSet, - paymentAccount=paymentAccount, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.payment_account import PaymentAccount -from fireblocks_client.model.payout_instruction import PayoutInstruction diff --git a/fireblocks_client/model/create_transaction_response.py b/fireblocks_client/model/create_transaction_response.py deleted file mode 100644 index 70e2712c..00000000 --- a/fireblocks_client/model/create_transaction_response.py +++ /dev/null @@ -1,104 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class CreateTransactionResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - id = schemas.StrSchema - status = schemas.StrSchema - - @staticmethod - def systemMessages() -> typing.Type['SystemMessageInfo']: - return SystemMessageInfo - __annotations__ = { - "id": id, - "status": status, - "systemMessages": systemMessages, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["status"]) -> MetaOapg.properties.status: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["systemMessages"]) -> 'SystemMessageInfo': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "status", "systemMessages", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> typing.Union[MetaOapg.properties.status, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["systemMessages"]) -> typing.Union['SystemMessageInfo', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "status", "systemMessages", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - status: typing.Union[MetaOapg.properties.status, str, schemas.Unset] = schemas.unset, - systemMessages: typing.Union['SystemMessageInfo', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'CreateTransactionResponse': - return super().__new__( - cls, - *_args, - id=id, - status=status, - systemMessages=systemMessages, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.system_message_info import SystemMessageInfo diff --git a/fireblocks_client/model/create_transaction_response.pyi b/fireblocks_client/model/create_transaction_response.pyi deleted file mode 100644 index 70e2712c..00000000 --- a/fireblocks_client/model/create_transaction_response.pyi +++ /dev/null @@ -1,104 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class CreateTransactionResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - id = schemas.StrSchema - status = schemas.StrSchema - - @staticmethod - def systemMessages() -> typing.Type['SystemMessageInfo']: - return SystemMessageInfo - __annotations__ = { - "id": id, - "status": status, - "systemMessages": systemMessages, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["status"]) -> MetaOapg.properties.status: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["systemMessages"]) -> 'SystemMessageInfo': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "status", "systemMessages", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> typing.Union[MetaOapg.properties.status, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["systemMessages"]) -> typing.Union['SystemMessageInfo', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "status", "systemMessages", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - status: typing.Union[MetaOapg.properties.status, str, schemas.Unset] = schemas.unset, - systemMessages: typing.Union['SystemMessageInfo', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'CreateTransactionResponse': - return super().__new__( - cls, - *_args, - id=id, - status=status, - systemMessages=systemMessages, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.system_message_info import SystemMessageInfo diff --git a/fireblocks_client/model/create_users_group_response.py b/fireblocks_client/model/create_users_group_response.py deleted file mode 100644 index 2e9d2e89..00000000 --- a/fireblocks_client/model/create_users_group_response.py +++ /dev/null @@ -1,131 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class CreateUsersGroupResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - id = schemas.StrSchema - name = schemas.StrSchema - - - class memberIds( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.StrSchema - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'memberIds': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - status = schemas.StrSchema - __annotations__ = { - "id": id, - "name": name, - "memberIds": memberIds, - "status": status, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["memberIds"]) -> MetaOapg.properties.memberIds: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["status"]) -> MetaOapg.properties.status: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "name", "memberIds", "status", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["memberIds"]) -> typing.Union[MetaOapg.properties.memberIds, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> typing.Union[MetaOapg.properties.status, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "name", "memberIds", "status", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, - memberIds: typing.Union[MetaOapg.properties.memberIds, list, tuple, schemas.Unset] = schemas.unset, - status: typing.Union[MetaOapg.properties.status, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'CreateUsersGroupResponse': - return super().__new__( - cls, - *_args, - id=id, - name=name, - memberIds=memberIds, - status=status, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/create_users_group_response.pyi b/fireblocks_client/model/create_users_group_response.pyi deleted file mode 100644 index 2e9d2e89..00000000 --- a/fireblocks_client/model/create_users_group_response.pyi +++ /dev/null @@ -1,131 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class CreateUsersGroupResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - id = schemas.StrSchema - name = schemas.StrSchema - - - class memberIds( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.StrSchema - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'memberIds': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - status = schemas.StrSchema - __annotations__ = { - "id": id, - "name": name, - "memberIds": memberIds, - "status": status, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["memberIds"]) -> MetaOapg.properties.memberIds: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["status"]) -> MetaOapg.properties.status: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "name", "memberIds", "status", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["memberIds"]) -> typing.Union[MetaOapg.properties.memberIds, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> typing.Union[MetaOapg.properties.status, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "name", "memberIds", "status", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, - memberIds: typing.Union[MetaOapg.properties.memberIds, list, tuple, schemas.Unset] = schemas.unset, - status: typing.Union[MetaOapg.properties.status, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'CreateUsersGroupResponse': - return super().__new__( - cls, - *_args, - id=id, - name=name, - memberIds=memberIds, - status=status, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/create_vault_asset_response.py b/fireblocks_client/model/create_vault_asset_response.py deleted file mode 100644 index e9f6eb0f..00000000 --- a/fireblocks_client/model/create_vault_asset_response.py +++ /dev/null @@ -1,149 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class CreateVaultAssetResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - id = schemas.StrSchema - address = schemas.StrSchema - legacyAddress = schemas.StrSchema - enterpriseAddress = schemas.StrSchema - tag = schemas.StrSchema - eosAccountName = schemas.StrSchema - status = schemas.StrSchema - activationTxId = schemas.StrSchema - __annotations__ = { - "id": id, - "address": address, - "legacyAddress": legacyAddress, - "enterpriseAddress": enterpriseAddress, - "tag": tag, - "eosAccountName": eosAccountName, - "status": status, - "activationTxId": activationTxId, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["address"]) -> MetaOapg.properties.address: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["legacyAddress"]) -> MetaOapg.properties.legacyAddress: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["enterpriseAddress"]) -> MetaOapg.properties.enterpriseAddress: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["tag"]) -> MetaOapg.properties.tag: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["eosAccountName"]) -> MetaOapg.properties.eosAccountName: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["status"]) -> MetaOapg.properties.status: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["activationTxId"]) -> MetaOapg.properties.activationTxId: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "address", "legacyAddress", "enterpriseAddress", "tag", "eosAccountName", "status", "activationTxId", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["address"]) -> typing.Union[MetaOapg.properties.address, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["legacyAddress"]) -> typing.Union[MetaOapg.properties.legacyAddress, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["enterpriseAddress"]) -> typing.Union[MetaOapg.properties.enterpriseAddress, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["tag"]) -> typing.Union[MetaOapg.properties.tag, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["eosAccountName"]) -> typing.Union[MetaOapg.properties.eosAccountName, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> typing.Union[MetaOapg.properties.status, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["activationTxId"]) -> typing.Union[MetaOapg.properties.activationTxId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "address", "legacyAddress", "enterpriseAddress", "tag", "eosAccountName", "status", "activationTxId", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - address: typing.Union[MetaOapg.properties.address, str, schemas.Unset] = schemas.unset, - legacyAddress: typing.Union[MetaOapg.properties.legacyAddress, str, schemas.Unset] = schemas.unset, - enterpriseAddress: typing.Union[MetaOapg.properties.enterpriseAddress, str, schemas.Unset] = schemas.unset, - tag: typing.Union[MetaOapg.properties.tag, str, schemas.Unset] = schemas.unset, - eosAccountName: typing.Union[MetaOapg.properties.eosAccountName, str, schemas.Unset] = schemas.unset, - status: typing.Union[MetaOapg.properties.status, str, schemas.Unset] = schemas.unset, - activationTxId: typing.Union[MetaOapg.properties.activationTxId, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'CreateVaultAssetResponse': - return super().__new__( - cls, - *_args, - id=id, - address=address, - legacyAddress=legacyAddress, - enterpriseAddress=enterpriseAddress, - tag=tag, - eosAccountName=eosAccountName, - status=status, - activationTxId=activationTxId, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/create_vault_asset_response.pyi b/fireblocks_client/model/create_vault_asset_response.pyi deleted file mode 100644 index e9f6eb0f..00000000 --- a/fireblocks_client/model/create_vault_asset_response.pyi +++ /dev/null @@ -1,149 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class CreateVaultAssetResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - id = schemas.StrSchema - address = schemas.StrSchema - legacyAddress = schemas.StrSchema - enterpriseAddress = schemas.StrSchema - tag = schemas.StrSchema - eosAccountName = schemas.StrSchema - status = schemas.StrSchema - activationTxId = schemas.StrSchema - __annotations__ = { - "id": id, - "address": address, - "legacyAddress": legacyAddress, - "enterpriseAddress": enterpriseAddress, - "tag": tag, - "eosAccountName": eosAccountName, - "status": status, - "activationTxId": activationTxId, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["address"]) -> MetaOapg.properties.address: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["legacyAddress"]) -> MetaOapg.properties.legacyAddress: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["enterpriseAddress"]) -> MetaOapg.properties.enterpriseAddress: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["tag"]) -> MetaOapg.properties.tag: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["eosAccountName"]) -> MetaOapg.properties.eosAccountName: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["status"]) -> MetaOapg.properties.status: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["activationTxId"]) -> MetaOapg.properties.activationTxId: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "address", "legacyAddress", "enterpriseAddress", "tag", "eosAccountName", "status", "activationTxId", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["address"]) -> typing.Union[MetaOapg.properties.address, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["legacyAddress"]) -> typing.Union[MetaOapg.properties.legacyAddress, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["enterpriseAddress"]) -> typing.Union[MetaOapg.properties.enterpriseAddress, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["tag"]) -> typing.Union[MetaOapg.properties.tag, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["eosAccountName"]) -> typing.Union[MetaOapg.properties.eosAccountName, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> typing.Union[MetaOapg.properties.status, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["activationTxId"]) -> typing.Union[MetaOapg.properties.activationTxId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "address", "legacyAddress", "enterpriseAddress", "tag", "eosAccountName", "status", "activationTxId", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - address: typing.Union[MetaOapg.properties.address, str, schemas.Unset] = schemas.unset, - legacyAddress: typing.Union[MetaOapg.properties.legacyAddress, str, schemas.Unset] = schemas.unset, - enterpriseAddress: typing.Union[MetaOapg.properties.enterpriseAddress, str, schemas.Unset] = schemas.unset, - tag: typing.Union[MetaOapg.properties.tag, str, schemas.Unset] = schemas.unset, - eosAccountName: typing.Union[MetaOapg.properties.eosAccountName, str, schemas.Unset] = schemas.unset, - status: typing.Union[MetaOapg.properties.status, str, schemas.Unset] = schemas.unset, - activationTxId: typing.Union[MetaOapg.properties.activationTxId, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'CreateVaultAssetResponse': - return super().__new__( - cls, - *_args, - id=id, - address=address, - legacyAddress=legacyAddress, - enterpriseAddress=enterpriseAddress, - tag=tag, - eosAccountName=eosAccountName, - status=status, - activationTxId=activationTxId, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/custom_crypto_routing_dest.py b/fireblocks_client/model/custom_crypto_routing_dest.py deleted file mode 100644 index d6eab896..00000000 --- a/fireblocks_client/model/custom_crypto_routing_dest.py +++ /dev/null @@ -1,143 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class CustomCryptoRoutingDest( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "scheme", - "dstId", - "dstType", - } - - class properties: - - - class scheme( - schemas.EnumBase, - schemas.StrSchema - ): - - - class MetaOapg: - enum_value_to_name = { - "CUSTOM": "CUSTOM", - } - - @schemas.classproperty - def CUSTOM(cls): - return cls("CUSTOM") - - - class dstType( - schemas.EnumBase, - schemas.StrSchema - ): - - - class MetaOapg: - enum_value_to_name = { - "VAULT": "VAULT", - "EXCHANGE": "EXCHANGE", - } - - @schemas.classproperty - def VAULT(cls): - return cls("VAULT") - - @schemas.classproperty - def EXCHANGE(cls): - return cls("EXCHANGE") - dstId = schemas.StrSchema - __annotations__ = { - "scheme": scheme, - "dstType": dstType, - "dstId": dstId, - } - - scheme: MetaOapg.properties.scheme - dstId: MetaOapg.properties.dstId - dstType: MetaOapg.properties.dstType - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["scheme"]) -> MetaOapg.properties.scheme: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["dstType"]) -> MetaOapg.properties.dstType: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["dstId"]) -> MetaOapg.properties.dstId: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["scheme", "dstType", "dstId", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["scheme"]) -> MetaOapg.properties.scheme: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["dstType"]) -> MetaOapg.properties.dstType: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["dstId"]) -> MetaOapg.properties.dstId: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["scheme", "dstType", "dstId", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - scheme: typing.Union[MetaOapg.properties.scheme, str, ], - dstId: typing.Union[MetaOapg.properties.dstId, str, ], - dstType: typing.Union[MetaOapg.properties.dstType, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'CustomCryptoRoutingDest': - return super().__new__( - cls, - *_args, - scheme=scheme, - dstId=dstId, - dstType=dstType, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/custom_crypto_routing_dest.pyi b/fireblocks_client/model/custom_crypto_routing_dest.pyi deleted file mode 100644 index cb7466e7..00000000 --- a/fireblocks_client/model/custom_crypto_routing_dest.pyi +++ /dev/null @@ -1,130 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class CustomCryptoRoutingDest( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "scheme", - "dstId", - "dstType", - } - - class properties: - - - class scheme( - schemas.EnumBase, - schemas.StrSchema - ): - - @schemas.classproperty - def CUSTOM(cls): - return cls("CUSTOM") - - - class dstType( - schemas.EnumBase, - schemas.StrSchema - ): - - @schemas.classproperty - def VAULT(cls): - return cls("VAULT") - - @schemas.classproperty - def EXCHANGE(cls): - return cls("EXCHANGE") - dstId = schemas.StrSchema - __annotations__ = { - "scheme": scheme, - "dstType": dstType, - "dstId": dstId, - } - - scheme: MetaOapg.properties.scheme - dstId: MetaOapg.properties.dstId - dstType: MetaOapg.properties.dstType - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["scheme"]) -> MetaOapg.properties.scheme: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["dstType"]) -> MetaOapg.properties.dstType: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["dstId"]) -> MetaOapg.properties.dstId: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["scheme", "dstType", "dstId", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["scheme"]) -> MetaOapg.properties.scheme: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["dstType"]) -> MetaOapg.properties.dstType: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["dstId"]) -> MetaOapg.properties.dstId: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["scheme", "dstType", "dstId", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - scheme: typing.Union[MetaOapg.properties.scheme, str, ], - dstId: typing.Union[MetaOapg.properties.dstId, str, ], - dstType: typing.Union[MetaOapg.properties.dstType, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'CustomCryptoRoutingDest': - return super().__new__( - cls, - *_args, - scheme=scheme, - dstId=dstId, - dstType=dstType, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/custom_fiat_routing_dest.py b/fireblocks_client/model/custom_fiat_routing_dest.py deleted file mode 100644 index e69409e8..00000000 --- a/fireblocks_client/model/custom_fiat_routing_dest.py +++ /dev/null @@ -1,138 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class CustomFiatRoutingDest( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "scheme", - "dstId", - "dstType", - } - - class properties: - - - class scheme( - schemas.EnumBase, - schemas.StrSchema - ): - - - class MetaOapg: - enum_value_to_name = { - "CUSTOM": "CUSTOM", - } - - @schemas.classproperty - def CUSTOM(cls): - return cls("CUSTOM") - - - class dstType( - schemas.EnumBase, - schemas.StrSchema - ): - - - class MetaOapg: - enum_value_to_name = { - "FIAT_ACCOUNT": "FIAT_ACCOUNT", - } - - @schemas.classproperty - def FIAT_ACCOUNT(cls): - return cls("FIAT_ACCOUNT") - dstId = schemas.StrSchema - __annotations__ = { - "scheme": scheme, - "dstType": dstType, - "dstId": dstId, - } - - scheme: MetaOapg.properties.scheme - dstId: MetaOapg.properties.dstId - dstType: MetaOapg.properties.dstType - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["scheme"]) -> MetaOapg.properties.scheme: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["dstType"]) -> MetaOapg.properties.dstType: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["dstId"]) -> MetaOapg.properties.dstId: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["scheme", "dstType", "dstId", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["scheme"]) -> MetaOapg.properties.scheme: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["dstType"]) -> MetaOapg.properties.dstType: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["dstId"]) -> MetaOapg.properties.dstId: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["scheme", "dstType", "dstId", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - scheme: typing.Union[MetaOapg.properties.scheme, str, ], - dstId: typing.Union[MetaOapg.properties.dstId, str, ], - dstType: typing.Union[MetaOapg.properties.dstType, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'CustomFiatRoutingDest': - return super().__new__( - cls, - *_args, - scheme=scheme, - dstId=dstId, - dstType=dstType, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/custom_fiat_routing_dest.pyi b/fireblocks_client/model/custom_fiat_routing_dest.pyi deleted file mode 100644 index 7a62e389..00000000 --- a/fireblocks_client/model/custom_fiat_routing_dest.pyi +++ /dev/null @@ -1,126 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class CustomFiatRoutingDest( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "scheme", - "dstId", - "dstType", - } - - class properties: - - - class scheme( - schemas.EnumBase, - schemas.StrSchema - ): - - @schemas.classproperty - def CUSTOM(cls): - return cls("CUSTOM") - - - class dstType( - schemas.EnumBase, - schemas.StrSchema - ): - - @schemas.classproperty - def FIAT_ACCOUNT(cls): - return cls("FIAT_ACCOUNT") - dstId = schemas.StrSchema - __annotations__ = { - "scheme": scheme, - "dstType": dstType, - "dstId": dstId, - } - - scheme: MetaOapg.properties.scheme - dstId: MetaOapg.properties.dstId - dstType: MetaOapg.properties.dstType - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["scheme"]) -> MetaOapg.properties.scheme: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["dstType"]) -> MetaOapg.properties.dstType: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["dstId"]) -> MetaOapg.properties.dstId: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["scheme", "dstType", "dstId", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["scheme"]) -> MetaOapg.properties.scheme: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["dstType"]) -> MetaOapg.properties.dstType: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["dstId"]) -> MetaOapg.properties.dstId: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["scheme", "dstType", "dstId", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - scheme: typing.Union[MetaOapg.properties.scheme, str, ], - dstId: typing.Union[MetaOapg.properties.dstId, str, ], - dstType: typing.Union[MetaOapg.properties.dstType, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'CustomFiatRoutingDest': - return super().__new__( - cls, - *_args, - scheme=scheme, - dstId=dstId, - dstType=dstType, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/default_network_routing_dest.py b/fireblocks_client/model/default_network_routing_dest.py deleted file mode 100644 index 9e4e3c1a..00000000 --- a/fireblocks_client/model/default_network_routing_dest.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class DefaultNetworkRoutingDest( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "scheme", - } - - class properties: - - - class scheme( - schemas.EnumBase, - schemas.StrSchema - ): - - - class MetaOapg: - enum_value_to_name = { - "DEFAULT": "DEFAULT", - } - - @schemas.classproperty - def DEFAULT(cls): - return cls("DEFAULT") - __annotations__ = { - "scheme": scheme, - } - - scheme: MetaOapg.properties.scheme - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["scheme"]) -> MetaOapg.properties.scheme: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["scheme", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["scheme"]) -> MetaOapg.properties.scheme: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["scheme", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - scheme: typing.Union[MetaOapg.properties.scheme, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'DefaultNetworkRoutingDest': - return super().__new__( - cls, - *_args, - scheme=scheme, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/default_network_routing_dest.pyi b/fireblocks_client/model/default_network_routing_dest.pyi deleted file mode 100644 index 83d77551..00000000 --- a/fireblocks_client/model/default_network_routing_dest.pyi +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class DefaultNetworkRoutingDest( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "scheme", - } - - class properties: - - - class scheme( - schemas.EnumBase, - schemas.StrSchema - ): - - @schemas.classproperty - def DEFAULT(cls): - return cls("DEFAULT") - __annotations__ = { - "scheme": scheme, - } - - scheme: MetaOapg.properties.scheme - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["scheme"]) -> MetaOapg.properties.scheme: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["scheme", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["scheme"]) -> MetaOapg.properties.scheme: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["scheme", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - scheme: typing.Union[MetaOapg.properties.scheme, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'DefaultNetworkRoutingDest': - return super().__new__( - cls, - *_args, - scheme=scheme, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/destination_transfer_peer_path.py b/fireblocks_client/model/destination_transfer_peer_path.py deleted file mode 100644 index 86758745..00000000 --- a/fireblocks_client/model/destination_transfer_peer_path.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class DestinationTransferPeerPath( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - all_of_1 = schemas.DictSchema - - - class all_of_2( - schemas.AnyTypeSchema, - ): - - - class MetaOapg: - - class properties: - - @staticmethod - def oneTimeAddress() -> typing.Type['OneTimeAddress']: - return OneTimeAddress - __annotations__ = { - "oneTimeAddress": oneTimeAddress, - } - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["oneTimeAddress"]) -> 'OneTimeAddress': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["oneTimeAddress", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["oneTimeAddress"]) -> typing.Union['OneTimeAddress', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["oneTimeAddress", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - oneTimeAddress: typing.Union['OneTimeAddress', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'all_of_2': - return super().__new__( - cls, - *_args, - oneTimeAddress=oneTimeAddress, - _configuration=_configuration, - **kwargs, - ) - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - TransferPeerPath, - cls.all_of_1, - cls.all_of_2, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'DestinationTransferPeerPath': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.one_time_address import OneTimeAddress -from fireblocks_client.model.transfer_peer_path import TransferPeerPath diff --git a/fireblocks_client/model/destination_transfer_peer_path.pyi b/fireblocks_client/model/destination_transfer_peer_path.pyi deleted file mode 100644 index 86758745..00000000 --- a/fireblocks_client/model/destination_transfer_peer_path.pyi +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class DestinationTransferPeerPath( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - all_of_1 = schemas.DictSchema - - - class all_of_2( - schemas.AnyTypeSchema, - ): - - - class MetaOapg: - - class properties: - - @staticmethod - def oneTimeAddress() -> typing.Type['OneTimeAddress']: - return OneTimeAddress - __annotations__ = { - "oneTimeAddress": oneTimeAddress, - } - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["oneTimeAddress"]) -> 'OneTimeAddress': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["oneTimeAddress", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["oneTimeAddress"]) -> typing.Union['OneTimeAddress', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["oneTimeAddress", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - oneTimeAddress: typing.Union['OneTimeAddress', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'all_of_2': - return super().__new__( - cls, - *_args, - oneTimeAddress=oneTimeAddress, - _configuration=_configuration, - **kwargs, - ) - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - TransferPeerPath, - cls.all_of_1, - cls.all_of_2, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'DestinationTransferPeerPath': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.one_time_address import OneTimeAddress -from fireblocks_client.model.transfer_peer_path import TransferPeerPath diff --git a/fireblocks_client/model/destination_transfer_peer_path_response.py b/fireblocks_client/model/destination_transfer_peer_path_response.py deleted file mode 100644 index 93b9df70..00000000 --- a/fireblocks_client/model/destination_transfer_peer_path_response.py +++ /dev/null @@ -1,148 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class DestinationTransferPeerPathResponse( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - - class all_of_1( - schemas.DictSchema - ): - - - class MetaOapg: - - class properties: - type = schemas.StrSchema - subType = schemas.StrSchema - id = schemas.StrSchema - name = schemas.StrSchema - __annotations__ = { - "type": type, - "subType": subType, - "id": id, - "name": name, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["subType"]) -> MetaOapg.properties.subType: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["type", "subType", "id", "name", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> typing.Union[MetaOapg.properties.type, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["subType"]) -> typing.Union[MetaOapg.properties.subType, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["type", "subType", "id", "name", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - type: typing.Union[MetaOapg.properties.type, str, schemas.Unset] = schemas.unset, - subType: typing.Union[MetaOapg.properties.subType, str, schemas.Unset] = schemas.unset, - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'all_of_1': - return super().__new__( - cls, - *_args, - type=type, - subType=subType, - id=id, - name=name, - _configuration=_configuration, - **kwargs, - ) - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - TransferPeerPath, - cls.all_of_1, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'DestinationTransferPeerPathResponse': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.transfer_peer_path import TransferPeerPath diff --git a/fireblocks_client/model/destination_transfer_peer_path_response.pyi b/fireblocks_client/model/destination_transfer_peer_path_response.pyi deleted file mode 100644 index 93b9df70..00000000 --- a/fireblocks_client/model/destination_transfer_peer_path_response.pyi +++ /dev/null @@ -1,148 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class DestinationTransferPeerPathResponse( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - - class all_of_1( - schemas.DictSchema - ): - - - class MetaOapg: - - class properties: - type = schemas.StrSchema - subType = schemas.StrSchema - id = schemas.StrSchema - name = schemas.StrSchema - __annotations__ = { - "type": type, - "subType": subType, - "id": id, - "name": name, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["subType"]) -> MetaOapg.properties.subType: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["type", "subType", "id", "name", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> typing.Union[MetaOapg.properties.type, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["subType"]) -> typing.Union[MetaOapg.properties.subType, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["type", "subType", "id", "name", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - type: typing.Union[MetaOapg.properties.type, str, schemas.Unset] = schemas.unset, - subType: typing.Union[MetaOapg.properties.subType, str, schemas.Unset] = schemas.unset, - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'all_of_1': - return super().__new__( - cls, - *_args, - type=type, - subType=subType, - id=id, - name=name, - _configuration=_configuration, - **kwargs, - ) - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - TransferPeerPath, - cls.all_of_1, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'DestinationTransferPeerPathResponse': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.transfer_peer_path import TransferPeerPath diff --git a/fireblocks_client/model/dispatch_payout_response.py b/fireblocks_client/model/dispatch_payout_response.py deleted file mode 100644 index fedee159..00000000 --- a/fireblocks_client/model/dispatch_payout_response.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class DispatchPayoutResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "payoutId", - } - - class properties: - payoutId = schemas.StrSchema - __annotations__ = { - "payoutId": payoutId, - } - - payoutId: MetaOapg.properties.payoutId - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["payoutId"]) -> MetaOapg.properties.payoutId: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["payoutId", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["payoutId"]) -> MetaOapg.properties.payoutId: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["payoutId", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - payoutId: typing.Union[MetaOapg.properties.payoutId, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'DispatchPayoutResponse': - return super().__new__( - cls, - *_args, - payoutId=payoutId, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/dispatch_payout_response.pyi b/fireblocks_client/model/dispatch_payout_response.pyi deleted file mode 100644 index fedee159..00000000 --- a/fireblocks_client/model/dispatch_payout_response.pyi +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class DispatchPayoutResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "payoutId", - } - - class properties: - payoutId = schemas.StrSchema - __annotations__ = { - "payoutId": payoutId, - } - - payoutId: MetaOapg.properties.payoutId - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["payoutId"]) -> MetaOapg.properties.payoutId: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["payoutId", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["payoutId"]) -> MetaOapg.properties.payoutId: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["payoutId", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - payoutId: typing.Union[MetaOapg.properties.payoutId, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'DispatchPayoutResponse': - return super().__new__( - cls, - *_args, - payoutId=payoutId, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/draft_response.py b/fireblocks_client/model/draft_response.py deleted file mode 100644 index 17aa0eca..00000000 --- a/fireblocks_client/model/draft_response.py +++ /dev/null @@ -1,153 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class DraftResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Response object for draft operations - """ - - - class MetaOapg: - required = { - "draftId", - "metadata", - "rules", - "status", - } - - class properties: - status = schemas.StrSchema - - - class rules( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['PolicyRule']: - return PolicyRule - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['PolicyRule'], typing.List['PolicyRule']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'rules': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'PolicyRule': - return super().__getitem__(i) - draftId = schemas.StrSchema - - @staticmethod - def metadata() -> typing.Type['PolicyMetadata']: - return PolicyMetadata - __annotations__ = { - "status": status, - "rules": rules, - "draftId": draftId, - "metadata": metadata, - } - - draftId: MetaOapg.properties.draftId - metadata: 'PolicyMetadata' - rules: MetaOapg.properties.rules - status: MetaOapg.properties.status - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["status"]) -> MetaOapg.properties.status: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["rules"]) -> MetaOapg.properties.rules: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["draftId"]) -> MetaOapg.properties.draftId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> 'PolicyMetadata': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["status", "rules", "draftId", "metadata", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> MetaOapg.properties.status: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["rules"]) -> MetaOapg.properties.rules: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["draftId"]) -> MetaOapg.properties.draftId: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> 'PolicyMetadata': ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["status", "rules", "draftId", "metadata", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - draftId: typing.Union[MetaOapg.properties.draftId, str, ], - metadata: 'PolicyMetadata', - rules: typing.Union[MetaOapg.properties.rules, list, tuple, ], - status: typing.Union[MetaOapg.properties.status, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'DraftResponse': - return super().__new__( - cls, - *_args, - draftId=draftId, - metadata=metadata, - rules=rules, - status=status, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.policy_metadata import PolicyMetadata -from fireblocks_client.model.policy_rule import PolicyRule diff --git a/fireblocks_client/model/draft_response.pyi b/fireblocks_client/model/draft_response.pyi deleted file mode 100644 index 17aa0eca..00000000 --- a/fireblocks_client/model/draft_response.pyi +++ /dev/null @@ -1,153 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class DraftResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Response object for draft operations - """ - - - class MetaOapg: - required = { - "draftId", - "metadata", - "rules", - "status", - } - - class properties: - status = schemas.StrSchema - - - class rules( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['PolicyRule']: - return PolicyRule - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['PolicyRule'], typing.List['PolicyRule']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'rules': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'PolicyRule': - return super().__getitem__(i) - draftId = schemas.StrSchema - - @staticmethod - def metadata() -> typing.Type['PolicyMetadata']: - return PolicyMetadata - __annotations__ = { - "status": status, - "rules": rules, - "draftId": draftId, - "metadata": metadata, - } - - draftId: MetaOapg.properties.draftId - metadata: 'PolicyMetadata' - rules: MetaOapg.properties.rules - status: MetaOapg.properties.status - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["status"]) -> MetaOapg.properties.status: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["rules"]) -> MetaOapg.properties.rules: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["draftId"]) -> MetaOapg.properties.draftId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> 'PolicyMetadata': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["status", "rules", "draftId", "metadata", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> MetaOapg.properties.status: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["rules"]) -> MetaOapg.properties.rules: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["draftId"]) -> MetaOapg.properties.draftId: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> 'PolicyMetadata': ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["status", "rules", "draftId", "metadata", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - draftId: typing.Union[MetaOapg.properties.draftId, str, ], - metadata: 'PolicyMetadata', - rules: typing.Union[MetaOapg.properties.rules, list, tuple, ], - status: typing.Union[MetaOapg.properties.status, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'DraftResponse': - return super().__new__( - cls, - *_args, - draftId=draftId, - metadata=metadata, - rules=rules, - status=status, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.policy_metadata import PolicyMetadata -from fireblocks_client.model.policy_rule import PolicyRule diff --git a/fireblocks_client/model/draft_review_and_validation_response.py b/fireblocks_client/model/draft_review_and_validation_response.py deleted file mode 100644 index 0a0292cc..00000000 --- a/fireblocks_client/model/draft_review_and_validation_response.py +++ /dev/null @@ -1,107 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class DraftReviewAndValidationResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Draft validation - """ - - - class MetaOapg: - required = { - "draftResponse", - "validation", - } - - class properties: - - @staticmethod - def draftResponse() -> typing.Type['DraftResponse']: - return DraftResponse - - @staticmethod - def validation() -> typing.Type['PolicyValidation']: - return PolicyValidation - __annotations__ = { - "draftResponse": draftResponse, - "validation": validation, - } - - draftResponse: 'DraftResponse' - validation: 'PolicyValidation' - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["draftResponse"]) -> 'DraftResponse': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["validation"]) -> 'PolicyValidation': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["draftResponse", "validation", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["draftResponse"]) -> 'DraftResponse': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["validation"]) -> 'PolicyValidation': ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["draftResponse", "validation", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - draftResponse: 'DraftResponse', - validation: 'PolicyValidation', - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'DraftReviewAndValidationResponse': - return super().__new__( - cls, - *_args, - draftResponse=draftResponse, - validation=validation, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.draft_response import DraftResponse -from fireblocks_client.model.policy_validation import PolicyValidation diff --git a/fireblocks_client/model/draft_review_and_validation_response.pyi b/fireblocks_client/model/draft_review_and_validation_response.pyi deleted file mode 100644 index 0a0292cc..00000000 --- a/fireblocks_client/model/draft_review_and_validation_response.pyi +++ /dev/null @@ -1,107 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class DraftReviewAndValidationResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Draft validation - """ - - - class MetaOapg: - required = { - "draftResponse", - "validation", - } - - class properties: - - @staticmethod - def draftResponse() -> typing.Type['DraftResponse']: - return DraftResponse - - @staticmethod - def validation() -> typing.Type['PolicyValidation']: - return PolicyValidation - __annotations__ = { - "draftResponse": draftResponse, - "validation": validation, - } - - draftResponse: 'DraftResponse' - validation: 'PolicyValidation' - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["draftResponse"]) -> 'DraftResponse': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["validation"]) -> 'PolicyValidation': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["draftResponse", "validation", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["draftResponse"]) -> 'DraftResponse': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["validation"]) -> 'PolicyValidation': ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["draftResponse", "validation", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - draftResponse: 'DraftResponse', - validation: 'PolicyValidation', - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'DraftReviewAndValidationResponse': - return super().__new__( - cls, - *_args, - draftResponse=draftResponse, - validation=validation, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.draft_response import DraftResponse -from fireblocks_client.model.policy_validation import PolicyValidation diff --git a/fireblocks_client/model/drop_transaction_request.py b/fireblocks_client/model/drop_transaction_request.py deleted file mode 100644 index 50859045..00000000 --- a/fireblocks_client/model/drop_transaction_request.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class DropTransactionRequest( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - txId = schemas.StrSchema - feeLevel = schemas.StrSchema - gasPrice = schemas.StrSchema - __annotations__ = { - "txId": txId, - "feeLevel": feeLevel, - "gasPrice": gasPrice, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["txId"]) -> MetaOapg.properties.txId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["feeLevel"]) -> MetaOapg.properties.feeLevel: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["gasPrice"]) -> MetaOapg.properties.gasPrice: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["txId", "feeLevel", "gasPrice", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["txId"]) -> typing.Union[MetaOapg.properties.txId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["feeLevel"]) -> typing.Union[MetaOapg.properties.feeLevel, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["gasPrice"]) -> typing.Union[MetaOapg.properties.gasPrice, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["txId", "feeLevel", "gasPrice", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - txId: typing.Union[MetaOapg.properties.txId, str, schemas.Unset] = schemas.unset, - feeLevel: typing.Union[MetaOapg.properties.feeLevel, str, schemas.Unset] = schemas.unset, - gasPrice: typing.Union[MetaOapg.properties.gasPrice, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'DropTransactionRequest': - return super().__new__( - cls, - *_args, - txId=txId, - feeLevel=feeLevel, - gasPrice=gasPrice, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/drop_transaction_request.pyi b/fireblocks_client/model/drop_transaction_request.pyi deleted file mode 100644 index 50859045..00000000 --- a/fireblocks_client/model/drop_transaction_request.pyi +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class DropTransactionRequest( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - txId = schemas.StrSchema - feeLevel = schemas.StrSchema - gasPrice = schemas.StrSchema - __annotations__ = { - "txId": txId, - "feeLevel": feeLevel, - "gasPrice": gasPrice, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["txId"]) -> MetaOapg.properties.txId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["feeLevel"]) -> MetaOapg.properties.feeLevel: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["gasPrice"]) -> MetaOapg.properties.gasPrice: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["txId", "feeLevel", "gasPrice", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["txId"]) -> typing.Union[MetaOapg.properties.txId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["feeLevel"]) -> typing.Union[MetaOapg.properties.feeLevel, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["gasPrice"]) -> typing.Union[MetaOapg.properties.gasPrice, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["txId", "feeLevel", "gasPrice", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - txId: typing.Union[MetaOapg.properties.txId, str, schemas.Unset] = schemas.unset, - feeLevel: typing.Union[MetaOapg.properties.feeLevel, str, schemas.Unset] = schemas.unset, - gasPrice: typing.Union[MetaOapg.properties.gasPrice, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'DropTransactionRequest': - return super().__new__( - cls, - *_args, - txId=txId, - feeLevel=feeLevel, - gasPrice=gasPrice, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/drop_transaction_response.py b/fireblocks_client/model/drop_transaction_response.py deleted file mode 100644 index 766155e4..00000000 --- a/fireblocks_client/model/drop_transaction_response.py +++ /dev/null @@ -1,111 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class DropTransactionResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - success = schemas.BoolSchema - - - class transactions( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.StrSchema - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'transactions': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - __annotations__ = { - "success": success, - "transactions": transactions, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["success"]) -> MetaOapg.properties.success: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["transactions"]) -> MetaOapg.properties.transactions: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["success", "transactions", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["success"]) -> typing.Union[MetaOapg.properties.success, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["transactions"]) -> typing.Union[MetaOapg.properties.transactions, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["success", "transactions", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - success: typing.Union[MetaOapg.properties.success, bool, schemas.Unset] = schemas.unset, - transactions: typing.Union[MetaOapg.properties.transactions, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'DropTransactionResponse': - return super().__new__( - cls, - *_args, - success=success, - transactions=transactions, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/drop_transaction_response.pyi b/fireblocks_client/model/drop_transaction_response.pyi deleted file mode 100644 index 766155e4..00000000 --- a/fireblocks_client/model/drop_transaction_response.pyi +++ /dev/null @@ -1,111 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class DropTransactionResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - success = schemas.BoolSchema - - - class transactions( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.StrSchema - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'transactions': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - __annotations__ = { - "success": success, - "transactions": transactions, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["success"]) -> MetaOapg.properties.success: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["transactions"]) -> MetaOapg.properties.transactions: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["success", "transactions", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["success"]) -> typing.Union[MetaOapg.properties.success, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["transactions"]) -> typing.Union[MetaOapg.properties.transactions, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["success", "transactions", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - success: typing.Union[MetaOapg.properties.success, bool, schemas.Unset] = schemas.unset, - transactions: typing.Union[MetaOapg.properties.transactions, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'DropTransactionResponse': - return super().__new__( - cls, - *_args, - success=success, - transactions=transactions, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/error.py b/fireblocks_client/model/error.py deleted file mode 100644 index 4c29ca5e..00000000 --- a/fireblocks_client/model/error.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class Error( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - message = schemas.StrSchema - code = schemas.NumberSchema - __annotations__ = { - "message": message, - "code": code, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["message"]) -> MetaOapg.properties.message: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["message", "code", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["message"]) -> typing.Union[MetaOapg.properties.message, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["message", "code", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - message: typing.Union[MetaOapg.properties.message, str, schemas.Unset] = schemas.unset, - code: typing.Union[MetaOapg.properties.code, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'Error': - return super().__new__( - cls, - *_args, - message=message, - code=code, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/error.pyi b/fireblocks_client/model/error.pyi deleted file mode 100644 index 4c29ca5e..00000000 --- a/fireblocks_client/model/error.pyi +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class Error( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - message = schemas.StrSchema - code = schemas.NumberSchema - __annotations__ = { - "message": message, - "code": code, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["message"]) -> MetaOapg.properties.message: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["message", "code", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["message"]) -> typing.Union[MetaOapg.properties.message, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["message", "code", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - message: typing.Union[MetaOapg.properties.message, str, schemas.Unset] = schemas.unset, - code: typing.Union[MetaOapg.properties.code, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'Error': - return super().__new__( - cls, - *_args, - message=message, - code=code, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/error_response.py b/fireblocks_client/model/error_response.py deleted file mode 100644 index 66f9c230..00000000 --- a/fireblocks_client/model/error_response.py +++ /dev/null @@ -1,195 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class ErrorResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "error", - } - - class properties: - - - class error( - schemas.DictSchema - ): - - - class MetaOapg: - required = { - "message", - "type", - } - - class properties: - - - class type( - schemas.EnumBase, - schemas.StrSchema - ): - - - class MetaOapg: - enum_value_to_name = { - "INTERNAL": "INTERNAL", - "AUTHENTICATION": "AUTHENTICATION", - "AUTHORIZATION": "AUTHORIZATION", - "VALIDATION": "VALIDATION", - "NOT_FOUND": "NOT_FOUND", - "UNPROCESSABLE_ENTITY": "UNPROCESSABLE_ENTITY", - "FORBIDDEN": "FORBIDDEN", - } - - @schemas.classproperty - def INTERNAL(cls): - return cls("INTERNAL") - - @schemas.classproperty - def AUTHENTICATION(cls): - return cls("AUTHENTICATION") - - @schemas.classproperty - def AUTHORIZATION(cls): - return cls("AUTHORIZATION") - - @schemas.classproperty - def VALIDATION(cls): - return cls("VALIDATION") - - @schemas.classproperty - def NOT_FOUND(cls): - return cls("NOT_FOUND") - - @schemas.classproperty - def UNPROCESSABLE_ENTITY(cls): - return cls("UNPROCESSABLE_ENTITY") - - @schemas.classproperty - def FORBIDDEN(cls): - return cls("FORBIDDEN") - message = schemas.StrSchema - __annotations__ = { - "type": type, - "message": message, - } - - message: MetaOapg.properties.message - type: MetaOapg.properties.type - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["message"]) -> MetaOapg.properties.message: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["type", "message", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["message"]) -> MetaOapg.properties.message: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["type", "message", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - message: typing.Union[MetaOapg.properties.message, str, ], - type: typing.Union[MetaOapg.properties.type, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'error': - return super().__new__( - cls, - *_args, - message=message, - type=type, - _configuration=_configuration, - **kwargs, - ) - __annotations__ = { - "error": error, - } - - error: MetaOapg.properties.error - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["error"]) -> MetaOapg.properties.error: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["error", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["error"]) -> MetaOapg.properties.error: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["error", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - error: typing.Union[MetaOapg.properties.error, dict, frozendict.frozendict, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ErrorResponse': - return super().__new__( - cls, - *_args, - error=error, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/error_response.pyi b/fireblocks_client/model/error_response.pyi deleted file mode 100644 index e23561b5..00000000 --- a/fireblocks_client/model/error_response.pyi +++ /dev/null @@ -1,183 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class ErrorResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "error", - } - - class properties: - - - class error( - schemas.DictSchema - ): - - - class MetaOapg: - required = { - "message", - "type", - } - - class properties: - - - class type( - schemas.EnumBase, - schemas.StrSchema - ): - - @schemas.classproperty - def INTERNAL(cls): - return cls("INTERNAL") - - @schemas.classproperty - def AUTHENTICATION(cls): - return cls("AUTHENTICATION") - - @schemas.classproperty - def AUTHORIZATION(cls): - return cls("AUTHORIZATION") - - @schemas.classproperty - def VALIDATION(cls): - return cls("VALIDATION") - - @schemas.classproperty - def NOT_FOUND(cls): - return cls("NOT_FOUND") - - @schemas.classproperty - def UNPROCESSABLE_ENTITY(cls): - return cls("UNPROCESSABLE_ENTITY") - - @schemas.classproperty - def FORBIDDEN(cls): - return cls("FORBIDDEN") - message = schemas.StrSchema - __annotations__ = { - "type": type, - "message": message, - } - - message: MetaOapg.properties.message - type: MetaOapg.properties.type - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["message"]) -> MetaOapg.properties.message: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["type", "message", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["message"]) -> MetaOapg.properties.message: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["type", "message", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - message: typing.Union[MetaOapg.properties.message, str, ], - type: typing.Union[MetaOapg.properties.type, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'error': - return super().__new__( - cls, - *_args, - message=message, - type=type, - _configuration=_configuration, - **kwargs, - ) - __annotations__ = { - "error": error, - } - - error: MetaOapg.properties.error - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["error"]) -> MetaOapg.properties.error: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["error", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["error"]) -> MetaOapg.properties.error: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["error", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - error: typing.Union[MetaOapg.properties.error, dict, frozendict.frozendict, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ErrorResponse': - return super().__new__( - cls, - *_args, - error=error, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/estimated_network_fee_response.py b/fireblocks_client/model/estimated_network_fee_response.py deleted file mode 100644 index 4235c09a..00000000 --- a/fireblocks_client/model/estimated_network_fee_response.py +++ /dev/null @@ -1,119 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class EstimatedNetworkFeeResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "high", - "low", - "medium", - } - - class properties: - - @staticmethod - def low() -> typing.Type['NetworkFee']: - return NetworkFee - - @staticmethod - def medium() -> typing.Type['NetworkFee']: - return NetworkFee - - @staticmethod - def high() -> typing.Type['NetworkFee']: - return NetworkFee - __annotations__ = { - "low": low, - "medium": medium, - "high": high, - } - - high: 'NetworkFee' - low: 'NetworkFee' - medium: 'NetworkFee' - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["low"]) -> 'NetworkFee': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["medium"]) -> 'NetworkFee': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["high"]) -> 'NetworkFee': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["low", "medium", "high", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["low"]) -> 'NetworkFee': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["medium"]) -> 'NetworkFee': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["high"]) -> 'NetworkFee': ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["low", "medium", "high", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - high: 'NetworkFee', - low: 'NetworkFee', - medium: 'NetworkFee', - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'EstimatedNetworkFeeResponse': - return super().__new__( - cls, - *_args, - high=high, - low=low, - medium=medium, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.network_fee import NetworkFee diff --git a/fireblocks_client/model/estimated_network_fee_response.pyi b/fireblocks_client/model/estimated_network_fee_response.pyi deleted file mode 100644 index 4235c09a..00000000 --- a/fireblocks_client/model/estimated_network_fee_response.pyi +++ /dev/null @@ -1,119 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class EstimatedNetworkFeeResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "high", - "low", - "medium", - } - - class properties: - - @staticmethod - def low() -> typing.Type['NetworkFee']: - return NetworkFee - - @staticmethod - def medium() -> typing.Type['NetworkFee']: - return NetworkFee - - @staticmethod - def high() -> typing.Type['NetworkFee']: - return NetworkFee - __annotations__ = { - "low": low, - "medium": medium, - "high": high, - } - - high: 'NetworkFee' - low: 'NetworkFee' - medium: 'NetworkFee' - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["low"]) -> 'NetworkFee': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["medium"]) -> 'NetworkFee': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["high"]) -> 'NetworkFee': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["low", "medium", "high", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["low"]) -> 'NetworkFee': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["medium"]) -> 'NetworkFee': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["high"]) -> 'NetworkFee': ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["low", "medium", "high", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - high: 'NetworkFee', - low: 'NetworkFee', - medium: 'NetworkFee', - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'EstimatedNetworkFeeResponse': - return super().__new__( - cls, - *_args, - high=high, - low=low, - medium=medium, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.network_fee import NetworkFee diff --git a/fireblocks_client/model/estimated_transaction_fee_response.py b/fireblocks_client/model/estimated_transaction_fee_response.py deleted file mode 100644 index 95829b2d..00000000 --- a/fireblocks_client/model/estimated_transaction_fee_response.py +++ /dev/null @@ -1,119 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class EstimatedTransactionFeeResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "high", - "low", - "medium", - } - - class properties: - - @staticmethod - def low() -> typing.Type['TransactionFee']: - return TransactionFee - - @staticmethod - def medium() -> typing.Type['TransactionFee']: - return TransactionFee - - @staticmethod - def high() -> typing.Type['TransactionFee']: - return TransactionFee - __annotations__ = { - "low": low, - "medium": medium, - "high": high, - } - - high: 'TransactionFee' - low: 'TransactionFee' - medium: 'TransactionFee' - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["low"]) -> 'TransactionFee': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["medium"]) -> 'TransactionFee': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["high"]) -> 'TransactionFee': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["low", "medium", "high", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["low"]) -> 'TransactionFee': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["medium"]) -> 'TransactionFee': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["high"]) -> 'TransactionFee': ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["low", "medium", "high", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - high: 'TransactionFee', - low: 'TransactionFee', - medium: 'TransactionFee', - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'EstimatedTransactionFeeResponse': - return super().__new__( - cls, - *_args, - high=high, - low=low, - medium=medium, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.transaction_fee import TransactionFee diff --git a/fireblocks_client/model/estimated_transaction_fee_response.pyi b/fireblocks_client/model/estimated_transaction_fee_response.pyi deleted file mode 100644 index 95829b2d..00000000 --- a/fireblocks_client/model/estimated_transaction_fee_response.pyi +++ /dev/null @@ -1,119 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class EstimatedTransactionFeeResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "high", - "low", - "medium", - } - - class properties: - - @staticmethod - def low() -> typing.Type['TransactionFee']: - return TransactionFee - - @staticmethod - def medium() -> typing.Type['TransactionFee']: - return TransactionFee - - @staticmethod - def high() -> typing.Type['TransactionFee']: - return TransactionFee - __annotations__ = { - "low": low, - "medium": medium, - "high": high, - } - - high: 'TransactionFee' - low: 'TransactionFee' - medium: 'TransactionFee' - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["low"]) -> 'TransactionFee': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["medium"]) -> 'TransactionFee': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["high"]) -> 'TransactionFee': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["low", "medium", "high", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["low"]) -> 'TransactionFee': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["medium"]) -> 'TransactionFee': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["high"]) -> 'TransactionFee': ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["low", "medium", "high", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - high: 'TransactionFee', - low: 'TransactionFee', - medium: 'TransactionFee', - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'EstimatedTransactionFeeResponse': - return super().__new__( - cls, - *_args, - high=high, - low=low, - medium=medium, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.transaction_fee import TransactionFee diff --git a/fireblocks_client/model/exchange_account.py b/fireblocks_client/model/exchange_account.py deleted file mode 100644 index a03408a7..00000000 --- a/fireblocks_client/model/exchange_account.py +++ /dev/null @@ -1,206 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class ExchangeAccount( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - id = schemas.StrSchema - - @staticmethod - def type() -> typing.Type['ExchangeType']: - return ExchangeType - name = schemas.StrSchema - status = schemas.StrSchema - - - class assets( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['ExchangeAsset']: - return ExchangeAsset - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['ExchangeAsset'], typing.List['ExchangeAsset']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'assets': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'ExchangeAsset': - return super().__getitem__(i) - - - class tradingAccounts( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['ExchangeTradingAccount']: - return ExchangeTradingAccount - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['ExchangeTradingAccount'], typing.List['ExchangeTradingAccount']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'tradingAccounts': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'ExchangeTradingAccount': - return super().__getitem__(i) - isSubaccount = schemas.BoolSchema - mainAccountId = schemas.StrSchema - __annotations__ = { - "id": id, - "type": type, - "name": name, - "status": status, - "assets": assets, - "tradingAccounts": tradingAccounts, - "isSubaccount": isSubaccount, - "mainAccountId": mainAccountId, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["type"]) -> 'ExchangeType': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["status"]) -> MetaOapg.properties.status: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["assets"]) -> MetaOapg.properties.assets: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["tradingAccounts"]) -> MetaOapg.properties.tradingAccounts: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["isSubaccount"]) -> MetaOapg.properties.isSubaccount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["mainAccountId"]) -> MetaOapg.properties.mainAccountId: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "type", "name", "status", "assets", "tradingAccounts", "isSubaccount", "mainAccountId", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> typing.Union['ExchangeType', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> typing.Union[MetaOapg.properties.status, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["assets"]) -> typing.Union[MetaOapg.properties.assets, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["tradingAccounts"]) -> typing.Union[MetaOapg.properties.tradingAccounts, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["isSubaccount"]) -> typing.Union[MetaOapg.properties.isSubaccount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["mainAccountId"]) -> typing.Union[MetaOapg.properties.mainAccountId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "type", "name", "status", "assets", "tradingAccounts", "isSubaccount", "mainAccountId", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - type: typing.Union['ExchangeType', schemas.Unset] = schemas.unset, - name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, - status: typing.Union[MetaOapg.properties.status, str, schemas.Unset] = schemas.unset, - assets: typing.Union[MetaOapg.properties.assets, list, tuple, schemas.Unset] = schemas.unset, - tradingAccounts: typing.Union[MetaOapg.properties.tradingAccounts, list, tuple, schemas.Unset] = schemas.unset, - isSubaccount: typing.Union[MetaOapg.properties.isSubaccount, bool, schemas.Unset] = schemas.unset, - mainAccountId: typing.Union[MetaOapg.properties.mainAccountId, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ExchangeAccount': - return super().__new__( - cls, - *_args, - id=id, - type=type, - name=name, - status=status, - assets=assets, - tradingAccounts=tradingAccounts, - isSubaccount=isSubaccount, - mainAccountId=mainAccountId, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.exchange_asset import ExchangeAsset -from fireblocks_client.model.exchange_trading_account import ExchangeTradingAccount -from fireblocks_client.model.exchange_type import ExchangeType diff --git a/fireblocks_client/model/exchange_account.pyi b/fireblocks_client/model/exchange_account.pyi deleted file mode 100644 index a03408a7..00000000 --- a/fireblocks_client/model/exchange_account.pyi +++ /dev/null @@ -1,206 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class ExchangeAccount( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - id = schemas.StrSchema - - @staticmethod - def type() -> typing.Type['ExchangeType']: - return ExchangeType - name = schemas.StrSchema - status = schemas.StrSchema - - - class assets( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['ExchangeAsset']: - return ExchangeAsset - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['ExchangeAsset'], typing.List['ExchangeAsset']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'assets': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'ExchangeAsset': - return super().__getitem__(i) - - - class tradingAccounts( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['ExchangeTradingAccount']: - return ExchangeTradingAccount - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['ExchangeTradingAccount'], typing.List['ExchangeTradingAccount']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'tradingAccounts': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'ExchangeTradingAccount': - return super().__getitem__(i) - isSubaccount = schemas.BoolSchema - mainAccountId = schemas.StrSchema - __annotations__ = { - "id": id, - "type": type, - "name": name, - "status": status, - "assets": assets, - "tradingAccounts": tradingAccounts, - "isSubaccount": isSubaccount, - "mainAccountId": mainAccountId, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["type"]) -> 'ExchangeType': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["status"]) -> MetaOapg.properties.status: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["assets"]) -> MetaOapg.properties.assets: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["tradingAccounts"]) -> MetaOapg.properties.tradingAccounts: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["isSubaccount"]) -> MetaOapg.properties.isSubaccount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["mainAccountId"]) -> MetaOapg.properties.mainAccountId: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "type", "name", "status", "assets", "tradingAccounts", "isSubaccount", "mainAccountId", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> typing.Union['ExchangeType', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> typing.Union[MetaOapg.properties.status, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["assets"]) -> typing.Union[MetaOapg.properties.assets, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["tradingAccounts"]) -> typing.Union[MetaOapg.properties.tradingAccounts, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["isSubaccount"]) -> typing.Union[MetaOapg.properties.isSubaccount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["mainAccountId"]) -> typing.Union[MetaOapg.properties.mainAccountId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "type", "name", "status", "assets", "tradingAccounts", "isSubaccount", "mainAccountId", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - type: typing.Union['ExchangeType', schemas.Unset] = schemas.unset, - name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, - status: typing.Union[MetaOapg.properties.status, str, schemas.Unset] = schemas.unset, - assets: typing.Union[MetaOapg.properties.assets, list, tuple, schemas.Unset] = schemas.unset, - tradingAccounts: typing.Union[MetaOapg.properties.tradingAccounts, list, tuple, schemas.Unset] = schemas.unset, - isSubaccount: typing.Union[MetaOapg.properties.isSubaccount, bool, schemas.Unset] = schemas.unset, - mainAccountId: typing.Union[MetaOapg.properties.mainAccountId, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ExchangeAccount': - return super().__new__( - cls, - *_args, - id=id, - type=type, - name=name, - status=status, - assets=assets, - tradingAccounts=tradingAccounts, - isSubaccount=isSubaccount, - mainAccountId=mainAccountId, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.exchange_asset import ExchangeAsset -from fireblocks_client.model.exchange_trading_account import ExchangeTradingAccount -from fireblocks_client.model.exchange_type import ExchangeType diff --git a/fireblocks_client/model/exchange_asset.py b/fireblocks_client/model/exchange_asset.py deleted file mode 100644 index 6c93224c..00000000 --- a/fireblocks_client/model/exchange_asset.py +++ /dev/null @@ -1,119 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class ExchangeAsset( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - id = schemas.StrSchema - balance = schemas.StrSchema - lockedAmount = schemas.StrSchema - total = schemas.StrSchema - available = schemas.StrSchema - __annotations__ = { - "id": id, - "balance": balance, - "lockedAmount": lockedAmount, - "total": total, - "available": available, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["balance"]) -> MetaOapg.properties.balance: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["lockedAmount"]) -> MetaOapg.properties.lockedAmount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["total"]) -> MetaOapg.properties.total: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["available"]) -> MetaOapg.properties.available: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "balance", "lockedAmount", "total", "available", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["balance"]) -> typing.Union[MetaOapg.properties.balance, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["lockedAmount"]) -> typing.Union[MetaOapg.properties.lockedAmount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["total"]) -> typing.Union[MetaOapg.properties.total, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["available"]) -> typing.Union[MetaOapg.properties.available, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "balance", "lockedAmount", "total", "available", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - balance: typing.Union[MetaOapg.properties.balance, str, schemas.Unset] = schemas.unset, - lockedAmount: typing.Union[MetaOapg.properties.lockedAmount, str, schemas.Unset] = schemas.unset, - total: typing.Union[MetaOapg.properties.total, str, schemas.Unset] = schemas.unset, - available: typing.Union[MetaOapg.properties.available, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ExchangeAsset': - return super().__new__( - cls, - *_args, - id=id, - balance=balance, - lockedAmount=lockedAmount, - total=total, - available=available, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/exchange_asset.pyi b/fireblocks_client/model/exchange_asset.pyi deleted file mode 100644 index 6c93224c..00000000 --- a/fireblocks_client/model/exchange_asset.pyi +++ /dev/null @@ -1,119 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class ExchangeAsset( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - id = schemas.StrSchema - balance = schemas.StrSchema - lockedAmount = schemas.StrSchema - total = schemas.StrSchema - available = schemas.StrSchema - __annotations__ = { - "id": id, - "balance": balance, - "lockedAmount": lockedAmount, - "total": total, - "available": available, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["balance"]) -> MetaOapg.properties.balance: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["lockedAmount"]) -> MetaOapg.properties.lockedAmount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["total"]) -> MetaOapg.properties.total: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["available"]) -> MetaOapg.properties.available: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "balance", "lockedAmount", "total", "available", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["balance"]) -> typing.Union[MetaOapg.properties.balance, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["lockedAmount"]) -> typing.Union[MetaOapg.properties.lockedAmount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["total"]) -> typing.Union[MetaOapg.properties.total, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["available"]) -> typing.Union[MetaOapg.properties.available, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "balance", "lockedAmount", "total", "available", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - balance: typing.Union[MetaOapg.properties.balance, str, schemas.Unset] = schemas.unset, - lockedAmount: typing.Union[MetaOapg.properties.lockedAmount, str, schemas.Unset] = schemas.unset, - total: typing.Union[MetaOapg.properties.total, str, schemas.Unset] = schemas.unset, - available: typing.Union[MetaOapg.properties.available, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ExchangeAsset': - return super().__new__( - cls, - *_args, - id=id, - balance=balance, - lockedAmount=lockedAmount, - total=total, - available=available, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/exchange_trading_account.py b/fireblocks_client/model/exchange_trading_account.py deleted file mode 100644 index c4ec87f9..00000000 --- a/fireblocks_client/model/exchange_trading_account.py +++ /dev/null @@ -1,126 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class ExchangeTradingAccount( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - type = schemas.StrSchema - name = schemas.StrSchema - - - class assets( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['ExchangeAsset']: - return ExchangeAsset - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['ExchangeAsset'], typing.List['ExchangeAsset']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'assets': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'ExchangeAsset': - return super().__getitem__(i) - __annotations__ = { - "type": type, - "name": name, - "assets": assets, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["assets"]) -> MetaOapg.properties.assets: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["type", "name", "assets", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> typing.Union[MetaOapg.properties.type, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["assets"]) -> typing.Union[MetaOapg.properties.assets, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["type", "name", "assets", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - type: typing.Union[MetaOapg.properties.type, str, schemas.Unset] = schemas.unset, - name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, - assets: typing.Union[MetaOapg.properties.assets, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ExchangeTradingAccount': - return super().__new__( - cls, - *_args, - type=type, - name=name, - assets=assets, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.exchange_asset import ExchangeAsset diff --git a/fireblocks_client/model/exchange_trading_account.pyi b/fireblocks_client/model/exchange_trading_account.pyi deleted file mode 100644 index c4ec87f9..00000000 --- a/fireblocks_client/model/exchange_trading_account.pyi +++ /dev/null @@ -1,126 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class ExchangeTradingAccount( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - type = schemas.StrSchema - name = schemas.StrSchema - - - class assets( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['ExchangeAsset']: - return ExchangeAsset - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['ExchangeAsset'], typing.List['ExchangeAsset']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'assets': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'ExchangeAsset': - return super().__getitem__(i) - __annotations__ = { - "type": type, - "name": name, - "assets": assets, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["assets"]) -> MetaOapg.properties.assets: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["type", "name", "assets", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> typing.Union[MetaOapg.properties.type, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["assets"]) -> typing.Union[MetaOapg.properties.assets, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["type", "name", "assets", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - type: typing.Union[MetaOapg.properties.type, str, schemas.Unset] = schemas.unset, - name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, - assets: typing.Union[MetaOapg.properties.assets, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ExchangeTradingAccount': - return super().__new__( - cls, - *_args, - type=type, - name=name, - assets=assets, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.exchange_asset import ExchangeAsset diff --git a/fireblocks_client/model/exchange_type.py b/fireblocks_client/model/exchange_type.py deleted file mode 100644 index d5b0db72..00000000 --- a/fireblocks_client/model/exchange_type.py +++ /dev/null @@ -1,170 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class ExchangeType( - schemas.EnumBase, - schemas.StrSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - enum_value_to_name = { - "BINANCE": "BINANCE", - "BINANCEUS": "BINANCEUS", - "BITFINEX": "BITFINEX", - "BITHUMB": "BITHUMB", - "BITMEX": "BITMEX", - "BITSO": "BITSO", - "BITSTAMP": "BITSTAMP", - "BITTREX": "BITTREX", - "CIRCLE": "CIRCLE", - "COINBASEPRO": "COINBASEPRO", - "COINMETRO": "COINMETRO", - "COINSPRO": "COINSPRO", - "CRYPTOCOM": "CRYPTOCOM", - "DERIBIT": "DERIBIT", - "FTX": "FTX", - "FIXUS": "FIXUS", - "GEMINI": "GEMINI", - "HITBTC": "HITBTC", - "HUOBI": "HUOBI", - "KORBIT": "KORBIT", - "KRAKEN": "KRAKEN", - "LIQUID": "LIQUID", - "POLONIEX": "POLONIEX", - "OKCOIN": "OKCOIN", - "OKEX": "OKEX", - "SEEDCX": "SEEDCX", - } - - @schemas.classproperty - def BINANCE(cls): - return cls("BINANCE") - - @schemas.classproperty - def BINANCEUS(cls): - return cls("BINANCEUS") - - @schemas.classproperty - def BITFINEX(cls): - return cls("BITFINEX") - - @schemas.classproperty - def BITHUMB(cls): - return cls("BITHUMB") - - @schemas.classproperty - def BITMEX(cls): - return cls("BITMEX") - - @schemas.classproperty - def BITSO(cls): - return cls("BITSO") - - @schemas.classproperty - def BITSTAMP(cls): - return cls("BITSTAMP") - - @schemas.classproperty - def BITTREX(cls): - return cls("BITTREX") - - @schemas.classproperty - def CIRCLE(cls): - return cls("CIRCLE") - - @schemas.classproperty - def COINBASEPRO(cls): - return cls("COINBASEPRO") - - @schemas.classproperty - def COINMETRO(cls): - return cls("COINMETRO") - - @schemas.classproperty - def COINSPRO(cls): - return cls("COINSPRO") - - @schemas.classproperty - def CRYPTOCOM(cls): - return cls("CRYPTOCOM") - - @schemas.classproperty - def DERIBIT(cls): - return cls("DERIBIT") - - @schemas.classproperty - def FTX(cls): - return cls("FTX") - - @schemas.classproperty - def FIXUS(cls): - return cls("FIXUS") - - @schemas.classproperty - def GEMINI(cls): - return cls("GEMINI") - - @schemas.classproperty - def HITBTC(cls): - return cls("HITBTC") - - @schemas.classproperty - def HUOBI(cls): - return cls("HUOBI") - - @schemas.classproperty - def KORBIT(cls): - return cls("KORBIT") - - @schemas.classproperty - def KRAKEN(cls): - return cls("KRAKEN") - - @schemas.classproperty - def LIQUID(cls): - return cls("LIQUID") - - @schemas.classproperty - def POLONIEX(cls): - return cls("POLONIEX") - - @schemas.classproperty - def OKCOIN(cls): - return cls("OKCOIN") - - @schemas.classproperty - def OKEX(cls): - return cls("OKEX") - - @schemas.classproperty - def SEEDCX(cls): - return cls("SEEDCX") diff --git a/fireblocks_client/model/exchange_type.pyi b/fireblocks_client/model/exchange_type.pyi deleted file mode 100644 index 95cacded..00000000 --- a/fireblocks_client/model/exchange_type.pyi +++ /dev/null @@ -1,139 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class ExchangeType( - schemas.EnumBase, - schemas.StrSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - @schemas.classproperty - def BINANCE(cls): - return cls("BINANCE") - - @schemas.classproperty - def BINANCEUS(cls): - return cls("BINANCEUS") - - @schemas.classproperty - def BITFINEX(cls): - return cls("BITFINEX") - - @schemas.classproperty - def BITHUMB(cls): - return cls("BITHUMB") - - @schemas.classproperty - def BITMEX(cls): - return cls("BITMEX") - - @schemas.classproperty - def BITSO(cls): - return cls("BITSO") - - @schemas.classproperty - def BITSTAMP(cls): - return cls("BITSTAMP") - - @schemas.classproperty - def BITTREX(cls): - return cls("BITTREX") - - @schemas.classproperty - def CIRCLE(cls): - return cls("CIRCLE") - - @schemas.classproperty - def COINBASEPRO(cls): - return cls("COINBASEPRO") - - @schemas.classproperty - def COINMETRO(cls): - return cls("COINMETRO") - - @schemas.classproperty - def COINSPRO(cls): - return cls("COINSPRO") - - @schemas.classproperty - def CRYPTOCOM(cls): - return cls("CRYPTOCOM") - - @schemas.classproperty - def DERIBIT(cls): - return cls("DERIBIT") - - @schemas.classproperty - def FTX(cls): - return cls("FTX") - - @schemas.classproperty - def FIXUS(cls): - return cls("FIXUS") - - @schemas.classproperty - def GEMINI(cls): - return cls("GEMINI") - - @schemas.classproperty - def HITBTC(cls): - return cls("HITBTC") - - @schemas.classproperty - def HUOBI(cls): - return cls("HUOBI") - - @schemas.classproperty - def KORBIT(cls): - return cls("KORBIT") - - @schemas.classproperty - def KRAKEN(cls): - return cls("KRAKEN") - - @schemas.classproperty - def LIQUID(cls): - return cls("LIQUID") - - @schemas.classproperty - def POLONIEX(cls): - return cls("POLONIEX") - - @schemas.classproperty - def OKCOIN(cls): - return cls("OKCOIN") - - @schemas.classproperty - def OKEX(cls): - return cls("OKEX") - - @schemas.classproperty - def SEEDCX(cls): - return cls("SEEDCX") diff --git a/fireblocks_client/model/external_wallet_asset.py b/fireblocks_client/model/external_wallet_asset.py deleted file mode 100644 index d4dc8a54..00000000 --- a/fireblocks_client/model/external_wallet_asset.py +++ /dev/null @@ -1,180 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class ExternalWalletAsset( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - id = schemas.StrSchema - - @staticmethod - def status() -> typing.Type['ConfigChangeRequestStatus']: - return ConfigChangeRequestStatus - address = schemas.StrSchema - balance = schemas.StrSchema - lockedAmount = schemas.StrSchema - tag = schemas.StrSchema - activationTime = schemas.StrSchema - - - class additionalInfo( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['WalletAssetAdditionalInfo']: - return WalletAssetAdditionalInfo - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['WalletAssetAdditionalInfo'], typing.List['WalletAssetAdditionalInfo']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'additionalInfo': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'WalletAssetAdditionalInfo': - return super().__getitem__(i) - __annotations__ = { - "id": id, - "status": status, - "address": address, - "balance": balance, - "lockedAmount": lockedAmount, - "tag": tag, - "activationTime": activationTime, - "additionalInfo": additionalInfo, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["status"]) -> 'ConfigChangeRequestStatus': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["address"]) -> MetaOapg.properties.address: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["balance"]) -> MetaOapg.properties.balance: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["lockedAmount"]) -> MetaOapg.properties.lockedAmount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["tag"]) -> MetaOapg.properties.tag: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["activationTime"]) -> MetaOapg.properties.activationTime: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["additionalInfo"]) -> MetaOapg.properties.additionalInfo: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "status", "address", "balance", "lockedAmount", "tag", "activationTime", "additionalInfo", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> typing.Union['ConfigChangeRequestStatus', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["address"]) -> typing.Union[MetaOapg.properties.address, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["balance"]) -> typing.Union[MetaOapg.properties.balance, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["lockedAmount"]) -> typing.Union[MetaOapg.properties.lockedAmount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["tag"]) -> typing.Union[MetaOapg.properties.tag, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["activationTime"]) -> typing.Union[MetaOapg.properties.activationTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["additionalInfo"]) -> typing.Union[MetaOapg.properties.additionalInfo, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "status", "address", "balance", "lockedAmount", "tag", "activationTime", "additionalInfo", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - status: typing.Union['ConfigChangeRequestStatus', schemas.Unset] = schemas.unset, - address: typing.Union[MetaOapg.properties.address, str, schemas.Unset] = schemas.unset, - balance: typing.Union[MetaOapg.properties.balance, str, schemas.Unset] = schemas.unset, - lockedAmount: typing.Union[MetaOapg.properties.lockedAmount, str, schemas.Unset] = schemas.unset, - tag: typing.Union[MetaOapg.properties.tag, str, schemas.Unset] = schemas.unset, - activationTime: typing.Union[MetaOapg.properties.activationTime, str, schemas.Unset] = schemas.unset, - additionalInfo: typing.Union[MetaOapg.properties.additionalInfo, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ExternalWalletAsset': - return super().__new__( - cls, - *_args, - id=id, - status=status, - address=address, - balance=balance, - lockedAmount=lockedAmount, - tag=tag, - activationTime=activationTime, - additionalInfo=additionalInfo, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.config_change_request_status import ConfigChangeRequestStatus -from fireblocks_client.model.wallet_asset_additional_info import WalletAssetAdditionalInfo diff --git a/fireblocks_client/model/external_wallet_asset.pyi b/fireblocks_client/model/external_wallet_asset.pyi deleted file mode 100644 index d4dc8a54..00000000 --- a/fireblocks_client/model/external_wallet_asset.pyi +++ /dev/null @@ -1,180 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class ExternalWalletAsset( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - id = schemas.StrSchema - - @staticmethod - def status() -> typing.Type['ConfigChangeRequestStatus']: - return ConfigChangeRequestStatus - address = schemas.StrSchema - balance = schemas.StrSchema - lockedAmount = schemas.StrSchema - tag = schemas.StrSchema - activationTime = schemas.StrSchema - - - class additionalInfo( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['WalletAssetAdditionalInfo']: - return WalletAssetAdditionalInfo - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['WalletAssetAdditionalInfo'], typing.List['WalletAssetAdditionalInfo']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'additionalInfo': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'WalletAssetAdditionalInfo': - return super().__getitem__(i) - __annotations__ = { - "id": id, - "status": status, - "address": address, - "balance": balance, - "lockedAmount": lockedAmount, - "tag": tag, - "activationTime": activationTime, - "additionalInfo": additionalInfo, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["status"]) -> 'ConfigChangeRequestStatus': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["address"]) -> MetaOapg.properties.address: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["balance"]) -> MetaOapg.properties.balance: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["lockedAmount"]) -> MetaOapg.properties.lockedAmount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["tag"]) -> MetaOapg.properties.tag: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["activationTime"]) -> MetaOapg.properties.activationTime: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["additionalInfo"]) -> MetaOapg.properties.additionalInfo: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "status", "address", "balance", "lockedAmount", "tag", "activationTime", "additionalInfo", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> typing.Union['ConfigChangeRequestStatus', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["address"]) -> typing.Union[MetaOapg.properties.address, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["balance"]) -> typing.Union[MetaOapg.properties.balance, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["lockedAmount"]) -> typing.Union[MetaOapg.properties.lockedAmount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["tag"]) -> typing.Union[MetaOapg.properties.tag, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["activationTime"]) -> typing.Union[MetaOapg.properties.activationTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["additionalInfo"]) -> typing.Union[MetaOapg.properties.additionalInfo, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "status", "address", "balance", "lockedAmount", "tag", "activationTime", "additionalInfo", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - status: typing.Union['ConfigChangeRequestStatus', schemas.Unset] = schemas.unset, - address: typing.Union[MetaOapg.properties.address, str, schemas.Unset] = schemas.unset, - balance: typing.Union[MetaOapg.properties.balance, str, schemas.Unset] = schemas.unset, - lockedAmount: typing.Union[MetaOapg.properties.lockedAmount, str, schemas.Unset] = schemas.unset, - tag: typing.Union[MetaOapg.properties.tag, str, schemas.Unset] = schemas.unset, - activationTime: typing.Union[MetaOapg.properties.activationTime, str, schemas.Unset] = schemas.unset, - additionalInfo: typing.Union[MetaOapg.properties.additionalInfo, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ExternalWalletAsset': - return super().__new__( - cls, - *_args, - id=id, - status=status, - address=address, - balance=balance, - lockedAmount=lockedAmount, - tag=tag, - activationTime=activationTime, - additionalInfo=additionalInfo, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.config_change_request_status import ConfigChangeRequestStatus -from fireblocks_client.model.wallet_asset_additional_info import WalletAssetAdditionalInfo diff --git a/fireblocks_client/model/fee_info.py b/fireblocks_client/model/fee_info.py deleted file mode 100644 index 51c46645..00000000 --- a/fireblocks_client/model/fee_info.py +++ /dev/null @@ -1,101 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class FeeInfo( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Details of the transaction's fee. - """ - - - class MetaOapg: - - class properties: - networkFee = schemas.StrSchema - serviceFee = schemas.StrSchema - gasPrice = schemas.StrSchema - __annotations__ = { - "networkFee": networkFee, - "serviceFee": serviceFee, - "gasPrice": gasPrice, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["networkFee"]) -> MetaOapg.properties.networkFee: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["serviceFee"]) -> MetaOapg.properties.serviceFee: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["gasPrice"]) -> MetaOapg.properties.gasPrice: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["networkFee", "serviceFee", "gasPrice", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["networkFee"]) -> typing.Union[MetaOapg.properties.networkFee, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["serviceFee"]) -> typing.Union[MetaOapg.properties.serviceFee, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["gasPrice"]) -> typing.Union[MetaOapg.properties.gasPrice, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["networkFee", "serviceFee", "gasPrice", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - networkFee: typing.Union[MetaOapg.properties.networkFee, str, schemas.Unset] = schemas.unset, - serviceFee: typing.Union[MetaOapg.properties.serviceFee, str, schemas.Unset] = schemas.unset, - gasPrice: typing.Union[MetaOapg.properties.gasPrice, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'FeeInfo': - return super().__new__( - cls, - *_args, - networkFee=networkFee, - serviceFee=serviceFee, - gasPrice=gasPrice, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/fee_info.pyi b/fireblocks_client/model/fee_info.pyi deleted file mode 100644 index 51c46645..00000000 --- a/fireblocks_client/model/fee_info.pyi +++ /dev/null @@ -1,101 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class FeeInfo( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Details of the transaction's fee. - """ - - - class MetaOapg: - - class properties: - networkFee = schemas.StrSchema - serviceFee = schemas.StrSchema - gasPrice = schemas.StrSchema - __annotations__ = { - "networkFee": networkFee, - "serviceFee": serviceFee, - "gasPrice": gasPrice, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["networkFee"]) -> MetaOapg.properties.networkFee: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["serviceFee"]) -> MetaOapg.properties.serviceFee: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["gasPrice"]) -> MetaOapg.properties.gasPrice: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["networkFee", "serviceFee", "gasPrice", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["networkFee"]) -> typing.Union[MetaOapg.properties.networkFee, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["serviceFee"]) -> typing.Union[MetaOapg.properties.serviceFee, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["gasPrice"]) -> typing.Union[MetaOapg.properties.gasPrice, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["networkFee", "serviceFee", "gasPrice", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - networkFee: typing.Union[MetaOapg.properties.networkFee, str, schemas.Unset] = schemas.unset, - serviceFee: typing.Union[MetaOapg.properties.serviceFee, str, schemas.Unset] = schemas.unset, - gasPrice: typing.Union[MetaOapg.properties.gasPrice, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'FeeInfo': - return super().__new__( - cls, - *_args, - networkFee=networkFee, - serviceFee=serviceFee, - gasPrice=gasPrice, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/fiat_account.py b/fireblocks_client/model/fiat_account.py deleted file mode 100644 index 8536e5f1..00000000 --- a/fireblocks_client/model/fiat_account.py +++ /dev/null @@ -1,150 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class FiatAccount( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - id = schemas.StrSchema - - @staticmethod - def type() -> typing.Type['FiatAccountType']: - return FiatAccountType - name = schemas.StrSchema - address = schemas.StrSchema - - - class assets( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['FiatAsset']: - return FiatAsset - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['FiatAsset'], typing.List['FiatAsset']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'assets': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'FiatAsset': - return super().__getitem__(i) - __annotations__ = { - "id": id, - "type": type, - "name": name, - "address": address, - "assets": assets, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["type"]) -> 'FiatAccountType': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["address"]) -> MetaOapg.properties.address: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["assets"]) -> MetaOapg.properties.assets: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "type", "name", "address", "assets", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> typing.Union['FiatAccountType', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["address"]) -> typing.Union[MetaOapg.properties.address, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["assets"]) -> typing.Union[MetaOapg.properties.assets, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "type", "name", "address", "assets", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - type: typing.Union['FiatAccountType', schemas.Unset] = schemas.unset, - name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, - address: typing.Union[MetaOapg.properties.address, str, schemas.Unset] = schemas.unset, - assets: typing.Union[MetaOapg.properties.assets, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'FiatAccount': - return super().__new__( - cls, - *_args, - id=id, - type=type, - name=name, - address=address, - assets=assets, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.fiat_account_type import FiatAccountType -from fireblocks_client.model.fiat_asset import FiatAsset diff --git a/fireblocks_client/model/fiat_account.pyi b/fireblocks_client/model/fiat_account.pyi deleted file mode 100644 index 8536e5f1..00000000 --- a/fireblocks_client/model/fiat_account.pyi +++ /dev/null @@ -1,150 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class FiatAccount( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - id = schemas.StrSchema - - @staticmethod - def type() -> typing.Type['FiatAccountType']: - return FiatAccountType - name = schemas.StrSchema - address = schemas.StrSchema - - - class assets( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['FiatAsset']: - return FiatAsset - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['FiatAsset'], typing.List['FiatAsset']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'assets': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'FiatAsset': - return super().__getitem__(i) - __annotations__ = { - "id": id, - "type": type, - "name": name, - "address": address, - "assets": assets, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["type"]) -> 'FiatAccountType': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["address"]) -> MetaOapg.properties.address: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["assets"]) -> MetaOapg.properties.assets: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "type", "name", "address", "assets", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> typing.Union['FiatAccountType', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["address"]) -> typing.Union[MetaOapg.properties.address, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["assets"]) -> typing.Union[MetaOapg.properties.assets, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "type", "name", "address", "assets", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - type: typing.Union['FiatAccountType', schemas.Unset] = schemas.unset, - name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, - address: typing.Union[MetaOapg.properties.address, str, schemas.Unset] = schemas.unset, - assets: typing.Union[MetaOapg.properties.assets, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'FiatAccount': - return super().__new__( - cls, - *_args, - id=id, - type=type, - name=name, - address=address, - assets=assets, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.fiat_account_type import FiatAccountType -from fireblocks_client.model.fiat_asset import FiatAsset diff --git a/fireblocks_client/model/fiat_account_type.py b/fireblocks_client/model/fiat_account_type.py deleted file mode 100644 index 20995a88..00000000 --- a/fireblocks_client/model/fiat_account_type.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class FiatAccountType( - schemas.EnumBase, - schemas.StrSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - enum_value_to_name = { - "BLINC": "BLINC", - } - - @schemas.classproperty - def BLINC(cls): - return cls("BLINC") diff --git a/fireblocks_client/model/fiat_account_type.pyi b/fireblocks_client/model/fiat_account_type.pyi deleted file mode 100644 index fe73405b..00000000 --- a/fireblocks_client/model/fiat_account_type.pyi +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class FiatAccountType( - schemas.EnumBase, - schemas.StrSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - @schemas.classproperty - def BLINC(cls): - return cls("BLINC") diff --git a/fireblocks_client/model/fiat_asset.py b/fireblocks_client/model/fiat_asset.py deleted file mode 100644 index 806ba197..00000000 --- a/fireblocks_client/model/fiat_asset.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class FiatAsset( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - id = schemas.StrSchema - balance = schemas.StrSchema - __annotations__ = { - "id": id, - "balance": balance, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["balance"]) -> MetaOapg.properties.balance: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "balance", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["balance"]) -> typing.Union[MetaOapg.properties.balance, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "balance", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - balance: typing.Union[MetaOapg.properties.balance, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'FiatAsset': - return super().__new__( - cls, - *_args, - id=id, - balance=balance, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/fiat_asset.pyi b/fireblocks_client/model/fiat_asset.pyi deleted file mode 100644 index 806ba197..00000000 --- a/fireblocks_client/model/fiat_asset.pyi +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class FiatAsset( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - id = schemas.StrSchema - balance = schemas.StrSchema - __annotations__ = { - "id": id, - "balance": balance, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["balance"]) -> MetaOapg.properties.balance: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "balance", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["balance"]) -> typing.Union[MetaOapg.properties.balance, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "balance", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - balance: typing.Union[MetaOapg.properties.balance, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'FiatAsset': - return super().__new__( - cls, - *_args, - id=id, - balance=balance, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/freeze_transaction_response.py b/fireblocks_client/model/freeze_transaction_response.py deleted file mode 100644 index c3e67bae..00000000 --- a/fireblocks_client/model/freeze_transaction_response.py +++ /dev/null @@ -1,79 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class FreezeTransactionResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - success = schemas.BoolSchema - __annotations__ = { - "success": success, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["success"]) -> MetaOapg.properties.success: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["success", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["success"]) -> typing.Union[MetaOapg.properties.success, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["success", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - success: typing.Union[MetaOapg.properties.success, bool, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'FreezeTransactionResponse': - return super().__new__( - cls, - *_args, - success=success, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/freeze_transaction_response.pyi b/fireblocks_client/model/freeze_transaction_response.pyi deleted file mode 100644 index c3e67bae..00000000 --- a/fireblocks_client/model/freeze_transaction_response.pyi +++ /dev/null @@ -1,79 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class FreezeTransactionResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - success = schemas.BoolSchema - __annotations__ = { - "success": success, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["success"]) -> MetaOapg.properties.success: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["success", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["success"]) -> typing.Union[MetaOapg.properties.success, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["success", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - success: typing.Union[MetaOapg.properties.success, bool, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'FreezeTransactionResponse': - return super().__new__( - cls, - *_args, - success=success, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/gas_station_configuration.py b/fireblocks_client/model/gas_station_configuration.py deleted file mode 100644 index 6c09a49a..00000000 --- a/fireblocks_client/model/gas_station_configuration.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class GasStationConfiguration( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - gasThreshold = schemas.StrSchema - gasCap = schemas.StrSchema - maxGasPrice = schemas.StrSchema - __annotations__ = { - "gasThreshold": gasThreshold, - "gasCap": gasCap, - "maxGasPrice": maxGasPrice, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["gasThreshold"]) -> MetaOapg.properties.gasThreshold: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["gasCap"]) -> MetaOapg.properties.gasCap: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["maxGasPrice"]) -> MetaOapg.properties.maxGasPrice: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["gasThreshold", "gasCap", "maxGasPrice", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["gasThreshold"]) -> typing.Union[MetaOapg.properties.gasThreshold, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["gasCap"]) -> typing.Union[MetaOapg.properties.gasCap, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["maxGasPrice"]) -> typing.Union[MetaOapg.properties.maxGasPrice, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["gasThreshold", "gasCap", "maxGasPrice", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - gasThreshold: typing.Union[MetaOapg.properties.gasThreshold, str, schemas.Unset] = schemas.unset, - gasCap: typing.Union[MetaOapg.properties.gasCap, str, schemas.Unset] = schemas.unset, - maxGasPrice: typing.Union[MetaOapg.properties.maxGasPrice, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'GasStationConfiguration': - return super().__new__( - cls, - *_args, - gasThreshold=gasThreshold, - gasCap=gasCap, - maxGasPrice=maxGasPrice, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/gas_station_configuration.pyi b/fireblocks_client/model/gas_station_configuration.pyi deleted file mode 100644 index 6c09a49a..00000000 --- a/fireblocks_client/model/gas_station_configuration.pyi +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class GasStationConfiguration( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - gasThreshold = schemas.StrSchema - gasCap = schemas.StrSchema - maxGasPrice = schemas.StrSchema - __annotations__ = { - "gasThreshold": gasThreshold, - "gasCap": gasCap, - "maxGasPrice": maxGasPrice, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["gasThreshold"]) -> MetaOapg.properties.gasThreshold: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["gasCap"]) -> MetaOapg.properties.gasCap: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["maxGasPrice"]) -> MetaOapg.properties.maxGasPrice: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["gasThreshold", "gasCap", "maxGasPrice", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["gasThreshold"]) -> typing.Union[MetaOapg.properties.gasThreshold, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["gasCap"]) -> typing.Union[MetaOapg.properties.gasCap, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["maxGasPrice"]) -> typing.Union[MetaOapg.properties.maxGasPrice, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["gasThreshold", "gasCap", "maxGasPrice", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - gasThreshold: typing.Union[MetaOapg.properties.gasThreshold, str, schemas.Unset] = schemas.unset, - gasCap: typing.Union[MetaOapg.properties.gasCap, str, schemas.Unset] = schemas.unset, - maxGasPrice: typing.Union[MetaOapg.properties.maxGasPrice, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'GasStationConfiguration': - return super().__new__( - cls, - *_args, - gasThreshold=gasThreshold, - gasCap=gasCap, - maxGasPrice=maxGasPrice, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/gas_station_properties_response.py b/fireblocks_client/model/gas_station_properties_response.py deleted file mode 100644 index 26c08124..00000000 --- a/fireblocks_client/model/gas_station_properties_response.py +++ /dev/null @@ -1,103 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class GasStationPropertiesResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "high", - "low", - "medium", - } - - class properties: - balance = schemas.DictSchema - - @staticmethod - def configuration() -> typing.Type['GasStationConfiguration']: - return GasStationConfiguration - __annotations__ = { - "balance": balance, - "configuration": configuration, - } - - high: schemas.AnyTypeSchema - low: schemas.AnyTypeSchema - medium: schemas.AnyTypeSchema - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["balance"]) -> MetaOapg.properties.balance: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["configuration"]) -> 'GasStationConfiguration': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["balance", "configuration", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["balance"]) -> typing.Union[MetaOapg.properties.balance, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["configuration"]) -> typing.Union['GasStationConfiguration', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["balance", "configuration", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - balance: typing.Union[MetaOapg.properties.balance, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - configuration: typing.Union['GasStationConfiguration', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'GasStationPropertiesResponse': - return super().__new__( - cls, - *_args, - balance=balance, - configuration=configuration, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.gas_station_configuration import GasStationConfiguration diff --git a/fireblocks_client/model/gas_station_properties_response.pyi b/fireblocks_client/model/gas_station_properties_response.pyi deleted file mode 100644 index 26c08124..00000000 --- a/fireblocks_client/model/gas_station_properties_response.pyi +++ /dev/null @@ -1,103 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class GasStationPropertiesResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "high", - "low", - "medium", - } - - class properties: - balance = schemas.DictSchema - - @staticmethod - def configuration() -> typing.Type['GasStationConfiguration']: - return GasStationConfiguration - __annotations__ = { - "balance": balance, - "configuration": configuration, - } - - high: schemas.AnyTypeSchema - low: schemas.AnyTypeSchema - medium: schemas.AnyTypeSchema - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["balance"]) -> MetaOapg.properties.balance: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["configuration"]) -> 'GasStationConfiguration': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["balance", "configuration", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["balance"]) -> typing.Union[MetaOapg.properties.balance, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["configuration"]) -> typing.Union['GasStationConfiguration', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["balance", "configuration", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - balance: typing.Union[MetaOapg.properties.balance, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - configuration: typing.Union['GasStationConfiguration', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'GasStationPropertiesResponse': - return super().__new__( - cls, - *_args, - balance=balance, - configuration=configuration, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.gas_station_configuration import GasStationConfiguration diff --git a/fireblocks_client/model/get_connections_response.py b/fireblocks_client/model/get_connections_response.py deleted file mode 100644 index fa114be2..00000000 --- a/fireblocks_client/model/get_connections_response.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class GetConnectionsResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "data", - } - - class properties: - - - class data( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['SessionDTO']: - return SessionDTO - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['SessionDTO'], typing.List['SessionDTO']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'data': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'SessionDTO': - return super().__getitem__(i) - - @staticmethod - def paging() -> typing.Type['Paging']: - return Paging - __annotations__ = { - "data": data, - "paging": paging, - } - - data: MetaOapg.properties.data - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["data"]) -> MetaOapg.properties.data: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["paging"]) -> 'Paging': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["data", "paging", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> MetaOapg.properties.data: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["paging"]) -> typing.Union['Paging', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["data", "paging", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - data: typing.Union[MetaOapg.properties.data, list, tuple, ], - paging: typing.Union['Paging', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'GetConnectionsResponse': - return super().__new__( - cls, - *_args, - data=data, - paging=paging, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.paging import Paging -from fireblocks_client.model.session_dto import SessionDTO diff --git a/fireblocks_client/model/get_connections_response.pyi b/fireblocks_client/model/get_connections_response.pyi deleted file mode 100644 index fa114be2..00000000 --- a/fireblocks_client/model/get_connections_response.pyi +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class GetConnectionsResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "data", - } - - class properties: - - - class data( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['SessionDTO']: - return SessionDTO - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['SessionDTO'], typing.List['SessionDTO']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'data': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'SessionDTO': - return super().__getitem__(i) - - @staticmethod - def paging() -> typing.Type['Paging']: - return Paging - __annotations__ = { - "data": data, - "paging": paging, - } - - data: MetaOapg.properties.data - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["data"]) -> MetaOapg.properties.data: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["paging"]) -> 'Paging': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["data", "paging", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> MetaOapg.properties.data: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["paging"]) -> typing.Union['Paging', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["data", "paging", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - data: typing.Union[MetaOapg.properties.data, list, tuple, ], - paging: typing.Union['Paging', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'GetConnectionsResponse': - return super().__new__( - cls, - *_args, - data=data, - paging=paging, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.paging import Paging -from fireblocks_client.model.session_dto import SessionDTO diff --git a/fireblocks_client/model/get_settlement_response.py b/fireblocks_client/model/get_settlement_response.py deleted file mode 100644 index 2e31c0b2..00000000 --- a/fireblocks_client/model/get_settlement_response.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 -GetSettlementResponse = schemas.Schema diff --git a/fireblocks_client/model/get_settlement_response.pyi b/fireblocks_client/model/get_settlement_response.pyi deleted file mode 100644 index 2e31c0b2..00000000 --- a/fireblocks_client/model/get_settlement_response.pyi +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 -GetSettlementResponse = schemas.Schema diff --git a/fireblocks_client/model/get_transaction_operation.py b/fireblocks_client/model/get_transaction_operation.py deleted file mode 100644 index 2eea2cc9..00000000 --- a/fireblocks_client/model/get_transaction_operation.py +++ /dev/null @@ -1,117 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class GetTransactionOperation( - schemas.EnumBase, - schemas.StrSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - * `TRANSFER` - Transfers funds from one account to another. UTXO blockchains allow multi-input and multi-output transfers. All other blockchains allow transfers with one source address and one destination address. -* `MINT` - Mints new tokens. Supported for Stellar, Ripple and EVM-based blockchains. -* `BURN` - Burns tokens. Supported for Stellar, Ripple and EVM-based blockchains. -* `CONTRACT_CALL` - Calls a smart contract method for web3 operations on any EVM blockchain. The Fireblocks [development libraries](https://developers.fireblocks.com/docs/ethereum-development#convenience-libraries) are recommended for building contract call transactions. -* `TYPED_MESSAGE` - An off-chain message in either Ethereum Personal Message or EIP712 format. Use it to sign specific readable messages that are not actual transactions. [Learn more about typed messages](https://developers.fireblocks.com/docs/typed-message-signing). -* `RAW` - An off-chain message with no predefined format. Use it to sign any message with your private key, including protocols such as blockchains and custom transaction types that are not natively supported by Fireblocks. [Learn more about raw signing transactions.](https://developers.fireblocks.com/docs/raw-message-signing) -* `ENABLE_ASSET` - Algorand, DigitalBits, Solana, and Stellar require an on-chain transaction to create an asset wallet and enable the deposit address. This transaction is automatically created when adding assets on these blockchains at a vault account. -* `STAKE` - Assign assets to a staking pool managed by a staking validator. Supported for Stellar and EVM-based blockchains. This transaction is automatically created when performing staking operations. -* `UNSTAKE` - Remove assets from a staking pool managed by a staking validator. Supported for Stellar and EVM-based blockchains. This transaction is automatically created when performing staking operations. -* `WITHDRAW` - Transfer assets from a dedicated staking vault account to another address. Supported for Stellar and EVM-based blockchains. This transaction is automatically created when performing staking operations. - - **Note:** Fireblocks will rename this type from `WITHDRAW` to a different type name soon. There will be a 7-day notice regarding the new type name. - -* `SUPPLY_TO_COMPOUND` - Deprecated since April 1st, 2023. Older transactions may have this as their operation, in case users in the workspace have used the direct integration between Fireblocks and the Compound DeFI protocol. -* `REDEEM_FROM_COMPOUND` - Deprecated since April 1st, 2023. Older transactions may have this as their operation, in case users in the workspace have used the direct integration between Fireblocks and the Compound DeFI protocol. - - """ - - - class MetaOapg: - enum_value_to_name = { - "TRANSFER": "TRANSFER", - "BURN": "BURN", - "CONTRACT_CALL": "CONTRACT_CALL", - "MINT": "MINT", - "RAW": "RAW", - "TYPED_MESSAGE": "TYPED_MESSAGE", - "ENABLE_ASSET": "ENABLE_ASSET", - "STAKE": "STAKE", - "UNSTAKE": "UNSTAKE", - "WITHDRAW": "WITHDRAW", - "REDEEM_FROM_COMPOUND": "REDEEM_FROM_COMPOUND", - "SUPPLY_TO_COMPOUND": "SUPPLY_TO_COMPOUND", - } - - @schemas.classproperty - def TRANSFER(cls): - return cls("TRANSFER") - - @schemas.classproperty - def BURN(cls): - return cls("BURN") - - @schemas.classproperty - def CONTRACT_CALL(cls): - return cls("CONTRACT_CALL") - - @schemas.classproperty - def MINT(cls): - return cls("MINT") - - @schemas.classproperty - def RAW(cls): - return cls("RAW") - - @schemas.classproperty - def TYPED_MESSAGE(cls): - return cls("TYPED_MESSAGE") - - @schemas.classproperty - def ENABLE_ASSET(cls): - return cls("ENABLE_ASSET") - - @schemas.classproperty - def STAKE(cls): - return cls("STAKE") - - @schemas.classproperty - def UNSTAKE(cls): - return cls("UNSTAKE") - - @schemas.classproperty - def WITHDRAW(cls): - return cls("WITHDRAW") - - @schemas.classproperty - def REDEEM_FROM_COMPOUND(cls): - return cls("REDEEM_FROM_COMPOUND") - - @schemas.classproperty - def SUPPLY_TO_COMPOUND(cls): - return cls("SUPPLY_TO_COMPOUND") diff --git a/fireblocks_client/model/get_transaction_operation.pyi b/fireblocks_client/model/get_transaction_operation.pyi deleted file mode 100644 index e7dcf697..00000000 --- a/fireblocks_client/model/get_transaction_operation.pyi +++ /dev/null @@ -1,100 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class GetTransactionOperation( - schemas.EnumBase, - schemas.StrSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - * `TRANSFER` - Transfers funds from one account to another. UTXO blockchains allow multi-input and multi-output transfers. All other blockchains allow transfers with one source address and one destination address. -* `MINT` - Mints new tokens. Supported for Stellar, Ripple and EVM-based blockchains. -* `BURN` - Burns tokens. Supported for Stellar, Ripple and EVM-based blockchains. -* `CONTRACT_CALL` - Calls a smart contract method for web3 operations on any EVM blockchain. The Fireblocks [development libraries](https://developers.fireblocks.com/docs/ethereum-development#convenience-libraries) are recommended for building contract call transactions. -* `TYPED_MESSAGE` - An off-chain message in either Ethereum Personal Message or EIP712 format. Use it to sign specific readable messages that are not actual transactions. [Learn more about typed messages](https://developers.fireblocks.com/docs/typed-message-signing). -* `RAW` - An off-chain message with no predefined format. Use it to sign any message with your private key, including protocols such as blockchains and custom transaction types that are not natively supported by Fireblocks. [Learn more about raw signing transactions.](https://developers.fireblocks.com/docs/raw-message-signing) -* `ENABLE_ASSET` - Algorand, DigitalBits, Solana, and Stellar require an on-chain transaction to create an asset wallet and enable the deposit address. This transaction is automatically created when adding assets on these blockchains at a vault account. -* `STAKE` - Assign assets to a staking pool managed by a staking validator. Supported for Stellar and EVM-based blockchains. This transaction is automatically created when performing staking operations. -* `UNSTAKE` - Remove assets from a staking pool managed by a staking validator. Supported for Stellar and EVM-based blockchains. This transaction is automatically created when performing staking operations. -* `WITHDRAW` - Transfer assets from a dedicated staking vault account to another address. Supported for Stellar and EVM-based blockchains. This transaction is automatically created when performing staking operations. - - **Note:** Fireblocks will rename this type from `WITHDRAW` to a different type name soon. There will be a 7-day notice regarding the new type name. - -* `SUPPLY_TO_COMPOUND` - Deprecated since April 1st, 2023. Older transactions may have this as their operation, in case users in the workspace have used the direct integration between Fireblocks and the Compound DeFI protocol. -* `REDEEM_FROM_COMPOUND` - Deprecated since April 1st, 2023. Older transactions may have this as their operation, in case users in the workspace have used the direct integration between Fireblocks and the Compound DeFI protocol. - - """ - - @schemas.classproperty - def TRANSFER(cls): - return cls("TRANSFER") - - @schemas.classproperty - def BURN(cls): - return cls("BURN") - - @schemas.classproperty - def CONTRACT_CALL(cls): - return cls("CONTRACT_CALL") - - @schemas.classproperty - def MINT(cls): - return cls("MINT") - - @schemas.classproperty - def RAW(cls): - return cls("RAW") - - @schemas.classproperty - def TYPED_MESSAGE(cls): - return cls("TYPED_MESSAGE") - - @schemas.classproperty - def ENABLE_ASSET(cls): - return cls("ENABLE_ASSET") - - @schemas.classproperty - def STAKE(cls): - return cls("STAKE") - - @schemas.classproperty - def UNSTAKE(cls): - return cls("UNSTAKE") - - @schemas.classproperty - def WITHDRAW(cls): - return cls("WITHDRAW") - - @schemas.classproperty - def REDEEM_FROM_COMPOUND(cls): - return cls("REDEEM_FROM_COMPOUND") - - @schemas.classproperty - def SUPPLY_TO_COMPOUND(cls): - return cls("SUPPLY_TO_COMPOUND") diff --git a/fireblocks_client/model/get_users_response.py b/fireblocks_client/model/get_users_response.py deleted file mode 100644 index 9fec575b..00000000 --- a/fireblocks_client/model/get_users_response.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class GetUsersResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class users( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['UserResponse']: - return UserResponse - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['UserResponse'], typing.List['UserResponse']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'users': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'UserResponse': - return super().__getitem__(i) - __annotations__ = { - "users": users, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["users"]) -> MetaOapg.properties.users: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["users", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["users"]) -> typing.Union[MetaOapg.properties.users, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["users", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - users: typing.Union[MetaOapg.properties.users, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'GetUsersResponse': - return super().__new__( - cls, - *_args, - users=users, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.user_response import UserResponse diff --git a/fireblocks_client/model/get_users_response.pyi b/fireblocks_client/model/get_users_response.pyi deleted file mode 100644 index 9fec575b..00000000 --- a/fireblocks_client/model/get_users_response.pyi +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class GetUsersResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class users( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['UserResponse']: - return UserResponse - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['UserResponse'], typing.List['UserResponse']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'users': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'UserResponse': - return super().__getitem__(i) - __annotations__ = { - "users": users, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["users"]) -> MetaOapg.properties.users: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["users", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["users"]) -> typing.Union[MetaOapg.properties.users, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["users", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - users: typing.Union[MetaOapg.properties.users, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'GetUsersResponse': - return super().__new__( - cls, - *_args, - users=users, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.user_response import UserResponse diff --git a/fireblocks_client/model/instruction_amount.py b/fireblocks_client/model/instruction_amount.py deleted file mode 100644 index 48a79a99..00000000 --- a/fireblocks_client/model/instruction_amount.py +++ /dev/null @@ -1,96 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class InstructionAmount( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "amount", - "assetId", - } - - class properties: - amount = schemas.StrSchema - assetId = schemas.StrSchema - __annotations__ = { - "amount": amount, - "assetId": assetId, - } - - amount: MetaOapg.properties.amount - assetId: MetaOapg.properties.assetId - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["amount"]) -> MetaOapg.properties.amount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["assetId"]) -> MetaOapg.properties.assetId: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["amount", "assetId", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["amount"]) -> MetaOapg.properties.amount: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["assetId"]) -> MetaOapg.properties.assetId: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["amount", "assetId", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - amount: typing.Union[MetaOapg.properties.amount, str, ], - assetId: typing.Union[MetaOapg.properties.assetId, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'InstructionAmount': - return super().__new__( - cls, - *_args, - amount=amount, - assetId=assetId, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/instruction_amount.pyi b/fireblocks_client/model/instruction_amount.pyi deleted file mode 100644 index 48a79a99..00000000 --- a/fireblocks_client/model/instruction_amount.pyi +++ /dev/null @@ -1,96 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class InstructionAmount( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "amount", - "assetId", - } - - class properties: - amount = schemas.StrSchema - assetId = schemas.StrSchema - __annotations__ = { - "amount": amount, - "assetId": assetId, - } - - amount: MetaOapg.properties.amount - assetId: MetaOapg.properties.assetId - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["amount"]) -> MetaOapg.properties.amount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["assetId"]) -> MetaOapg.properties.assetId: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["amount", "assetId", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["amount"]) -> MetaOapg.properties.amount: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["assetId"]) -> MetaOapg.properties.assetId: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["amount", "assetId", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - amount: typing.Union[MetaOapg.properties.amount, str, ], - assetId: typing.Union[MetaOapg.properties.assetId, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'InstructionAmount': - return super().__new__( - cls, - *_args, - amount=amount, - assetId=assetId, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/media_entity_response.py b/fireblocks_client/model/media_entity_response.py deleted file mode 100644 index e38f0a7d..00000000 --- a/fireblocks_client/model/media_entity_response.py +++ /dev/null @@ -1,151 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class MediaEntityResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "contentType", - "url", - } - - class properties: - url = schemas.StrSchema - - - class contentType( - schemas.EnumBase, - schemas.StrSchema - ): - - - class MetaOapg: - enum_value_to_name = { - "IMAGE": "IMAGE", - "VIDEO": "VIDEO", - "ANIMATION": "ANIMATION", - "THREE_D": "THREE_D", - "TEXT": "TEXT", - "GIF": "GIF", - "UNKNOWN_TYPE": "UNKNOWN_TYPE", - "SVG": "SVG", - "AUDIO": "AUDIO", - } - - @schemas.classproperty - def IMAGE(cls): - return cls("IMAGE") - - @schemas.classproperty - def VIDEO(cls): - return cls("VIDEO") - - @schemas.classproperty - def ANIMATION(cls): - return cls("ANIMATION") - - @schemas.classproperty - def THREE_D(cls): - return cls("THREE_D") - - @schemas.classproperty - def TEXT(cls): - return cls("TEXT") - - @schemas.classproperty - def GIF(cls): - return cls("GIF") - - @schemas.classproperty - def UNKNOWN_TYPE(cls): - return cls("UNKNOWN_TYPE") - - @schemas.classproperty - def SVG(cls): - return cls("SVG") - - @schemas.classproperty - def AUDIO(cls): - return cls("AUDIO") - __annotations__ = { - "url": url, - "contentType": contentType, - } - - contentType: MetaOapg.properties.contentType - url: MetaOapg.properties.url - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["url"]) -> MetaOapg.properties.url: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["contentType"]) -> MetaOapg.properties.contentType: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["url", "contentType", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["url"]) -> MetaOapg.properties.url: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["contentType"]) -> MetaOapg.properties.contentType: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["url", "contentType", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - contentType: typing.Union[MetaOapg.properties.contentType, str, ], - url: typing.Union[MetaOapg.properties.url, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MediaEntityResponse': - return super().__new__( - cls, - *_args, - contentType=contentType, - url=url, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/media_entity_response.pyi b/fireblocks_client/model/media_entity_response.pyi deleted file mode 100644 index 6085fc93..00000000 --- a/fireblocks_client/model/media_entity_response.pyi +++ /dev/null @@ -1,137 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class MediaEntityResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "contentType", - "url", - } - - class properties: - url = schemas.StrSchema - - - class contentType( - schemas.EnumBase, - schemas.StrSchema - ): - - @schemas.classproperty - def IMAGE(cls): - return cls("IMAGE") - - @schemas.classproperty - def VIDEO(cls): - return cls("VIDEO") - - @schemas.classproperty - def ANIMATION(cls): - return cls("ANIMATION") - - @schemas.classproperty - def THREE_D(cls): - return cls("THREE_D") - - @schemas.classproperty - def TEXT(cls): - return cls("TEXT") - - @schemas.classproperty - def GIF(cls): - return cls("GIF") - - @schemas.classproperty - def UNKNOWN_TYPE(cls): - return cls("UNKNOWN_TYPE") - - @schemas.classproperty - def SVG(cls): - return cls("SVG") - - @schemas.classproperty - def AUDIO(cls): - return cls("AUDIO") - __annotations__ = { - "url": url, - "contentType": contentType, - } - - contentType: MetaOapg.properties.contentType - url: MetaOapg.properties.url - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["url"]) -> MetaOapg.properties.url: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["contentType"]) -> MetaOapg.properties.contentType: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["url", "contentType", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["url"]) -> MetaOapg.properties.url: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["contentType"]) -> MetaOapg.properties.contentType: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["url", "contentType", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - contentType: typing.Union[MetaOapg.properties.contentType, str, ], - url: typing.Union[MetaOapg.properties.url, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MediaEntityResponse': - return super().__new__( - cls, - *_args, - contentType=contentType, - url=url, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/ncw.py b/fireblocks_client/model/ncw.py deleted file mode 100644 index 5caa527e..00000000 --- a/fireblocks_client/model/ncw.py +++ /dev/null @@ -1,79 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class Ncw( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - walletId = schemas.StrSchema - __annotations__ = { - "walletId": walletId, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["walletId"]) -> MetaOapg.properties.walletId: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["walletId", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["walletId"]) -> typing.Union[MetaOapg.properties.walletId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["walletId", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - walletId: typing.Union[MetaOapg.properties.walletId, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'Ncw': - return super().__new__( - cls, - *_args, - walletId=walletId, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/ncw.pyi b/fireblocks_client/model/ncw.pyi deleted file mode 100644 index 5caa527e..00000000 --- a/fireblocks_client/model/ncw.pyi +++ /dev/null @@ -1,79 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class Ncw( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - walletId = schemas.StrSchema - __annotations__ = { - "walletId": walletId, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["walletId"]) -> MetaOapg.properties.walletId: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["walletId", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["walletId"]) -> typing.Union[MetaOapg.properties.walletId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["walletId", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - walletId: typing.Union[MetaOapg.properties.walletId, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'Ncw': - return super().__new__( - cls, - *_args, - walletId=walletId, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/network_channel.py b/fireblocks_client/model/network_channel.py deleted file mode 100644 index 06e05a44..00000000 --- a/fireblocks_client/model/network_channel.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class NetworkChannel( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Deprecated in the only used reference - NetworkConnectionResponse - """ - - - class MetaOapg: - - class properties: - networkId = schemas.StrSchema - name = schemas.StrSchema - __annotations__ = { - "networkId": networkId, - "name": name, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["networkId"]) -> MetaOapg.properties.networkId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["networkId", "name", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["networkId"]) -> typing.Union[MetaOapg.properties.networkId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["networkId", "name", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - networkId: typing.Union[MetaOapg.properties.networkId, str, schemas.Unset] = schemas.unset, - name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'NetworkChannel': - return super().__new__( - cls, - *_args, - networkId=networkId, - name=name, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/network_channel.pyi b/fireblocks_client/model/network_channel.pyi deleted file mode 100644 index 06e05a44..00000000 --- a/fireblocks_client/model/network_channel.pyi +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class NetworkChannel( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Deprecated in the only used reference - NetworkConnectionResponse - """ - - - class MetaOapg: - - class properties: - networkId = schemas.StrSchema - name = schemas.StrSchema - __annotations__ = { - "networkId": networkId, - "name": name, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["networkId"]) -> MetaOapg.properties.networkId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["networkId", "name", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["networkId"]) -> typing.Union[MetaOapg.properties.networkId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["networkId", "name", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - networkId: typing.Union[MetaOapg.properties.networkId, str, schemas.Unset] = schemas.unset, - name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'NetworkChannel': - return super().__new__( - cls, - *_args, - networkId=networkId, - name=name, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/network_connection.py b/fireblocks_client/model/network_connection.py deleted file mode 100644 index 2cc3e5fc..00000000 --- a/fireblocks_client/model/network_connection.py +++ /dev/null @@ -1,111 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class NetworkConnection( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "localNetworkId", - "remoteNetworkId", - } - - class properties: - localNetworkId = schemas.StrSchema - remoteNetworkId = schemas.StrSchema - - @staticmethod - def routingPolicy() -> typing.Type['NetworkConnectionRoutingPolicy']: - return NetworkConnectionRoutingPolicy - __annotations__ = { - "localNetworkId": localNetworkId, - "remoteNetworkId": remoteNetworkId, - "routingPolicy": routingPolicy, - } - - localNetworkId: MetaOapg.properties.localNetworkId - remoteNetworkId: MetaOapg.properties.remoteNetworkId - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["localNetworkId"]) -> MetaOapg.properties.localNetworkId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["remoteNetworkId"]) -> MetaOapg.properties.remoteNetworkId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["routingPolicy"]) -> 'NetworkConnectionRoutingPolicy': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["localNetworkId", "remoteNetworkId", "routingPolicy", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["localNetworkId"]) -> MetaOapg.properties.localNetworkId: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["remoteNetworkId"]) -> MetaOapg.properties.remoteNetworkId: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["routingPolicy"]) -> typing.Union['NetworkConnectionRoutingPolicy', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["localNetworkId", "remoteNetworkId", "routingPolicy", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - localNetworkId: typing.Union[MetaOapg.properties.localNetworkId, str, ], - remoteNetworkId: typing.Union[MetaOapg.properties.remoteNetworkId, str, ], - routingPolicy: typing.Union['NetworkConnectionRoutingPolicy', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'NetworkConnection': - return super().__new__( - cls, - *_args, - localNetworkId=localNetworkId, - remoteNetworkId=remoteNetworkId, - routingPolicy=routingPolicy, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.network_connection_routing_policy import NetworkConnectionRoutingPolicy diff --git a/fireblocks_client/model/network_connection.pyi b/fireblocks_client/model/network_connection.pyi deleted file mode 100644 index 2cc3e5fc..00000000 --- a/fireblocks_client/model/network_connection.pyi +++ /dev/null @@ -1,111 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class NetworkConnection( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "localNetworkId", - "remoteNetworkId", - } - - class properties: - localNetworkId = schemas.StrSchema - remoteNetworkId = schemas.StrSchema - - @staticmethod - def routingPolicy() -> typing.Type['NetworkConnectionRoutingPolicy']: - return NetworkConnectionRoutingPolicy - __annotations__ = { - "localNetworkId": localNetworkId, - "remoteNetworkId": remoteNetworkId, - "routingPolicy": routingPolicy, - } - - localNetworkId: MetaOapg.properties.localNetworkId - remoteNetworkId: MetaOapg.properties.remoteNetworkId - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["localNetworkId"]) -> MetaOapg.properties.localNetworkId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["remoteNetworkId"]) -> MetaOapg.properties.remoteNetworkId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["routingPolicy"]) -> 'NetworkConnectionRoutingPolicy': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["localNetworkId", "remoteNetworkId", "routingPolicy", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["localNetworkId"]) -> MetaOapg.properties.localNetworkId: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["remoteNetworkId"]) -> MetaOapg.properties.remoteNetworkId: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["routingPolicy"]) -> typing.Union['NetworkConnectionRoutingPolicy', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["localNetworkId", "remoteNetworkId", "routingPolicy", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - localNetworkId: typing.Union[MetaOapg.properties.localNetworkId, str, ], - remoteNetworkId: typing.Union[MetaOapg.properties.remoteNetworkId, str, ], - routingPolicy: typing.Union['NetworkConnectionRoutingPolicy', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'NetworkConnection': - return super().__new__( - cls, - *_args, - localNetworkId=localNetworkId, - remoteNetworkId=remoteNetworkId, - routingPolicy=routingPolicy, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.network_connection_routing_policy import NetworkConnectionRoutingPolicy diff --git a/fireblocks_client/model/network_connection_response.py b/fireblocks_client/model/network_connection_response.py deleted file mode 100644 index 4de33067..00000000 --- a/fireblocks_client/model/network_connection_response.py +++ /dev/null @@ -1,239 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class NetworkConnectionResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "localNetworkId", - "remoteNetworkId", - "id", - "routingPolicy", - "status", - } - - class properties: - id = schemas.StrSchema - - @staticmethod - def status() -> typing.Type['ConfigChangeRequestStatus']: - return ConfigChangeRequestStatus - - @staticmethod - def localNetworkId() -> typing.Type['NetworkId']: - return NetworkId - - @staticmethod - def remoteNetworkId() -> typing.Type['NetworkId']: - return NetworkId - - @staticmethod - def routingPolicy() -> typing.Type['NetworkConnectionRoutingPolicy']: - return NetworkConnectionRoutingPolicy - - - class localChannel( - schemas.ComposedSchema, - ): - - - class MetaOapg: - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - NetworkChannel, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'localChannel': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - - - class remoteChannel( - schemas.ComposedSchema, - ): - - - class MetaOapg: - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - NetworkChannel, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'remoteChannel': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - __annotations__ = { - "id": id, - "status": status, - "localNetworkId": localNetworkId, - "remoteNetworkId": remoteNetworkId, - "routingPolicy": routingPolicy, - "localChannel": localChannel, - "remoteChannel": remoteChannel, - } - - localNetworkId: 'NetworkId' - remoteNetworkId: 'NetworkId' - id: MetaOapg.properties.id - routingPolicy: 'NetworkConnectionRoutingPolicy' - status: 'ConfigChangeRequestStatus' - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["status"]) -> 'ConfigChangeRequestStatus': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["localNetworkId"]) -> 'NetworkId': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["remoteNetworkId"]) -> 'NetworkId': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["routingPolicy"]) -> 'NetworkConnectionRoutingPolicy': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["localChannel"]) -> MetaOapg.properties.localChannel: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["remoteChannel"]) -> MetaOapg.properties.remoteChannel: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "status", "localNetworkId", "remoteNetworkId", "routingPolicy", "localChannel", "remoteChannel", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> 'ConfigChangeRequestStatus': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["localNetworkId"]) -> 'NetworkId': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["remoteNetworkId"]) -> 'NetworkId': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["routingPolicy"]) -> 'NetworkConnectionRoutingPolicy': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["localChannel"]) -> typing.Union[MetaOapg.properties.localChannel, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["remoteChannel"]) -> typing.Union[MetaOapg.properties.remoteChannel, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "status", "localNetworkId", "remoteNetworkId", "routingPolicy", "localChannel", "remoteChannel", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - localNetworkId: 'NetworkId', - remoteNetworkId: 'NetworkId', - id: typing.Union[MetaOapg.properties.id, str, ], - routingPolicy: 'NetworkConnectionRoutingPolicy', - status: 'ConfigChangeRequestStatus', - localChannel: typing.Union[MetaOapg.properties.localChannel, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - remoteChannel: typing.Union[MetaOapg.properties.remoteChannel, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'NetworkConnectionResponse': - return super().__new__( - cls, - *_args, - localNetworkId=localNetworkId, - remoteNetworkId=remoteNetworkId, - id=id, - routingPolicy=routingPolicy, - status=status, - localChannel=localChannel, - remoteChannel=remoteChannel, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.config_change_request_status import ConfigChangeRequestStatus -from fireblocks_client.model.network_channel import NetworkChannel -from fireblocks_client.model.network_connection_routing_policy import NetworkConnectionRoutingPolicy -from fireblocks_client.model.network_id import NetworkId diff --git a/fireblocks_client/model/network_connection_response.pyi b/fireblocks_client/model/network_connection_response.pyi deleted file mode 100644 index 4de33067..00000000 --- a/fireblocks_client/model/network_connection_response.pyi +++ /dev/null @@ -1,239 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class NetworkConnectionResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "localNetworkId", - "remoteNetworkId", - "id", - "routingPolicy", - "status", - } - - class properties: - id = schemas.StrSchema - - @staticmethod - def status() -> typing.Type['ConfigChangeRequestStatus']: - return ConfigChangeRequestStatus - - @staticmethod - def localNetworkId() -> typing.Type['NetworkId']: - return NetworkId - - @staticmethod - def remoteNetworkId() -> typing.Type['NetworkId']: - return NetworkId - - @staticmethod - def routingPolicy() -> typing.Type['NetworkConnectionRoutingPolicy']: - return NetworkConnectionRoutingPolicy - - - class localChannel( - schemas.ComposedSchema, - ): - - - class MetaOapg: - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - NetworkChannel, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'localChannel': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - - - class remoteChannel( - schemas.ComposedSchema, - ): - - - class MetaOapg: - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - NetworkChannel, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'remoteChannel': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - __annotations__ = { - "id": id, - "status": status, - "localNetworkId": localNetworkId, - "remoteNetworkId": remoteNetworkId, - "routingPolicy": routingPolicy, - "localChannel": localChannel, - "remoteChannel": remoteChannel, - } - - localNetworkId: 'NetworkId' - remoteNetworkId: 'NetworkId' - id: MetaOapg.properties.id - routingPolicy: 'NetworkConnectionRoutingPolicy' - status: 'ConfigChangeRequestStatus' - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["status"]) -> 'ConfigChangeRequestStatus': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["localNetworkId"]) -> 'NetworkId': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["remoteNetworkId"]) -> 'NetworkId': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["routingPolicy"]) -> 'NetworkConnectionRoutingPolicy': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["localChannel"]) -> MetaOapg.properties.localChannel: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["remoteChannel"]) -> MetaOapg.properties.remoteChannel: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "status", "localNetworkId", "remoteNetworkId", "routingPolicy", "localChannel", "remoteChannel", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> 'ConfigChangeRequestStatus': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["localNetworkId"]) -> 'NetworkId': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["remoteNetworkId"]) -> 'NetworkId': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["routingPolicy"]) -> 'NetworkConnectionRoutingPolicy': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["localChannel"]) -> typing.Union[MetaOapg.properties.localChannel, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["remoteChannel"]) -> typing.Union[MetaOapg.properties.remoteChannel, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "status", "localNetworkId", "remoteNetworkId", "routingPolicy", "localChannel", "remoteChannel", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - localNetworkId: 'NetworkId', - remoteNetworkId: 'NetworkId', - id: typing.Union[MetaOapg.properties.id, str, ], - routingPolicy: 'NetworkConnectionRoutingPolicy', - status: 'ConfigChangeRequestStatus', - localChannel: typing.Union[MetaOapg.properties.localChannel, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - remoteChannel: typing.Union[MetaOapg.properties.remoteChannel, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'NetworkConnectionResponse': - return super().__new__( - cls, - *_args, - localNetworkId=localNetworkId, - remoteNetworkId=remoteNetworkId, - id=id, - routingPolicy=routingPolicy, - status=status, - localChannel=localChannel, - remoteChannel=remoteChannel, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.config_change_request_status import ConfigChangeRequestStatus -from fireblocks_client.model.network_channel import NetworkChannel -from fireblocks_client.model.network_connection_routing_policy import NetworkConnectionRoutingPolicy -from fireblocks_client.model.network_id import NetworkId diff --git a/fireblocks_client/model/network_connection_routing_policy.py b/fireblocks_client/model/network_connection_routing_policy.py deleted file mode 100644 index 9fb41b55..00000000 --- a/fireblocks_client/model/network_connection_routing_policy.py +++ /dev/null @@ -1,309 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class NetworkConnectionRoutingPolicy( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class crypto( - schemas.ComposedSchema, - ): - - - class MetaOapg: - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - CustomCryptoRoutingDest, - DefaultNetworkRoutingDest, - NoneNetworkRoutingDest, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'crypto': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - - - class sen( - schemas.ComposedSchema, - ): - - - class MetaOapg: - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - CustomFiatRoutingDest, - DefaultNetworkRoutingDest, - NoneNetworkRoutingDest, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'sen': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - - - class signet( - schemas.ComposedSchema, - ): - - - class MetaOapg: - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - DefaultNetworkRoutingDest, - CustomFiatRoutingDest, - NoneNetworkRoutingDest, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'signet': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - - - class sen_test( - schemas.ComposedSchema, - ): - - - class MetaOapg: - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - DefaultNetworkRoutingDest, - NoneNetworkRoutingDest, - CustomFiatRoutingDest, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'sen_test': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - - - class signet_test( - schemas.ComposedSchema, - ): - - - class MetaOapg: - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - NoneNetworkRoutingDest, - CustomFiatRoutingDest, - DefaultNetworkRoutingDest, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'signet_test': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - __annotations__ = { - "crypto": crypto, - "sen": sen, - "signet": signet, - "sen_test": sen_test, - "signet_test": signet_test, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["crypto"]) -> MetaOapg.properties.crypto: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["sen"]) -> MetaOapg.properties.sen: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["signet"]) -> MetaOapg.properties.signet: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["sen_test"]) -> MetaOapg.properties.sen_test: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["signet_test"]) -> MetaOapg.properties.signet_test: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["crypto", "sen", "signet", "sen_test", "signet_test", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["crypto"]) -> typing.Union[MetaOapg.properties.crypto, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["sen"]) -> typing.Union[MetaOapg.properties.sen, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["signet"]) -> typing.Union[MetaOapg.properties.signet, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["sen_test"]) -> typing.Union[MetaOapg.properties.sen_test, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["signet_test"]) -> typing.Union[MetaOapg.properties.signet_test, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["crypto", "sen", "signet", "sen_test", "signet_test", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - crypto: typing.Union[MetaOapg.properties.crypto, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - sen: typing.Union[MetaOapg.properties.sen, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - signet: typing.Union[MetaOapg.properties.signet, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - sen_test: typing.Union[MetaOapg.properties.sen_test, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - signet_test: typing.Union[MetaOapg.properties.signet_test, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'NetworkConnectionRoutingPolicy': - return super().__new__( - cls, - *_args, - crypto=crypto, - sen=sen, - signet=signet, - sen_test=sen_test, - signet_test=signet_test, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.custom_crypto_routing_dest import CustomCryptoRoutingDest -from fireblocks_client.model.custom_fiat_routing_dest import CustomFiatRoutingDest -from fireblocks_client.model.default_network_routing_dest import DefaultNetworkRoutingDest -from fireblocks_client.model.none_network_routing_dest import NoneNetworkRoutingDest diff --git a/fireblocks_client/model/network_connection_routing_policy.pyi b/fireblocks_client/model/network_connection_routing_policy.pyi deleted file mode 100644 index 9fb41b55..00000000 --- a/fireblocks_client/model/network_connection_routing_policy.pyi +++ /dev/null @@ -1,309 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class NetworkConnectionRoutingPolicy( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class crypto( - schemas.ComposedSchema, - ): - - - class MetaOapg: - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - CustomCryptoRoutingDest, - DefaultNetworkRoutingDest, - NoneNetworkRoutingDest, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'crypto': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - - - class sen( - schemas.ComposedSchema, - ): - - - class MetaOapg: - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - CustomFiatRoutingDest, - DefaultNetworkRoutingDest, - NoneNetworkRoutingDest, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'sen': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - - - class signet( - schemas.ComposedSchema, - ): - - - class MetaOapg: - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - DefaultNetworkRoutingDest, - CustomFiatRoutingDest, - NoneNetworkRoutingDest, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'signet': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - - - class sen_test( - schemas.ComposedSchema, - ): - - - class MetaOapg: - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - DefaultNetworkRoutingDest, - NoneNetworkRoutingDest, - CustomFiatRoutingDest, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'sen_test': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - - - class signet_test( - schemas.ComposedSchema, - ): - - - class MetaOapg: - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - NoneNetworkRoutingDest, - CustomFiatRoutingDest, - DefaultNetworkRoutingDest, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'signet_test': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - __annotations__ = { - "crypto": crypto, - "sen": sen, - "signet": signet, - "sen_test": sen_test, - "signet_test": signet_test, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["crypto"]) -> MetaOapg.properties.crypto: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["sen"]) -> MetaOapg.properties.sen: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["signet"]) -> MetaOapg.properties.signet: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["sen_test"]) -> MetaOapg.properties.sen_test: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["signet_test"]) -> MetaOapg.properties.signet_test: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["crypto", "sen", "signet", "sen_test", "signet_test", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["crypto"]) -> typing.Union[MetaOapg.properties.crypto, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["sen"]) -> typing.Union[MetaOapg.properties.sen, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["signet"]) -> typing.Union[MetaOapg.properties.signet, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["sen_test"]) -> typing.Union[MetaOapg.properties.sen_test, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["signet_test"]) -> typing.Union[MetaOapg.properties.signet_test, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["crypto", "sen", "signet", "sen_test", "signet_test", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - crypto: typing.Union[MetaOapg.properties.crypto, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - sen: typing.Union[MetaOapg.properties.sen, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - signet: typing.Union[MetaOapg.properties.signet, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - sen_test: typing.Union[MetaOapg.properties.sen_test, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - signet_test: typing.Union[MetaOapg.properties.signet_test, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'NetworkConnectionRoutingPolicy': - return super().__new__( - cls, - *_args, - crypto=crypto, - sen=sen, - signet=signet, - sen_test=sen_test, - signet_test=signet_test, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.custom_crypto_routing_dest import CustomCryptoRoutingDest -from fireblocks_client.model.custom_fiat_routing_dest import CustomFiatRoutingDest -from fireblocks_client.model.default_network_routing_dest import DefaultNetworkRoutingDest -from fireblocks_client.model.none_network_routing_dest import NoneNetworkRoutingDest diff --git a/fireblocks_client/model/network_fee.py b/fireblocks_client/model/network_fee.py deleted file mode 100644 index 85371f6c..00000000 --- a/fireblocks_client/model/network_fee.py +++ /dev/null @@ -1,119 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class NetworkFee( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - feePerByte = schemas.StrSchema - gasPrice = schemas.StrSchema - networkFee = schemas.StrSchema - baseFee = schemas.StrSchema - priorityFee = schemas.StrSchema - __annotations__ = { - "feePerByte": feePerByte, - "gasPrice": gasPrice, - "networkFee": networkFee, - "baseFee": baseFee, - "priorityFee": priorityFee, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["feePerByte"]) -> MetaOapg.properties.feePerByte: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["gasPrice"]) -> MetaOapg.properties.gasPrice: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["networkFee"]) -> MetaOapg.properties.networkFee: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["baseFee"]) -> MetaOapg.properties.baseFee: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["priorityFee"]) -> MetaOapg.properties.priorityFee: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["feePerByte", "gasPrice", "networkFee", "baseFee", "priorityFee", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["feePerByte"]) -> typing.Union[MetaOapg.properties.feePerByte, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["gasPrice"]) -> typing.Union[MetaOapg.properties.gasPrice, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["networkFee"]) -> typing.Union[MetaOapg.properties.networkFee, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["baseFee"]) -> typing.Union[MetaOapg.properties.baseFee, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["priorityFee"]) -> typing.Union[MetaOapg.properties.priorityFee, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["feePerByte", "gasPrice", "networkFee", "baseFee", "priorityFee", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - feePerByte: typing.Union[MetaOapg.properties.feePerByte, str, schemas.Unset] = schemas.unset, - gasPrice: typing.Union[MetaOapg.properties.gasPrice, str, schemas.Unset] = schemas.unset, - networkFee: typing.Union[MetaOapg.properties.networkFee, str, schemas.Unset] = schemas.unset, - baseFee: typing.Union[MetaOapg.properties.baseFee, str, schemas.Unset] = schemas.unset, - priorityFee: typing.Union[MetaOapg.properties.priorityFee, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'NetworkFee': - return super().__new__( - cls, - *_args, - feePerByte=feePerByte, - gasPrice=gasPrice, - networkFee=networkFee, - baseFee=baseFee, - priorityFee=priorityFee, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/network_fee.pyi b/fireblocks_client/model/network_fee.pyi deleted file mode 100644 index 85371f6c..00000000 --- a/fireblocks_client/model/network_fee.pyi +++ /dev/null @@ -1,119 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class NetworkFee( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - feePerByte = schemas.StrSchema - gasPrice = schemas.StrSchema - networkFee = schemas.StrSchema - baseFee = schemas.StrSchema - priorityFee = schemas.StrSchema - __annotations__ = { - "feePerByte": feePerByte, - "gasPrice": gasPrice, - "networkFee": networkFee, - "baseFee": baseFee, - "priorityFee": priorityFee, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["feePerByte"]) -> MetaOapg.properties.feePerByte: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["gasPrice"]) -> MetaOapg.properties.gasPrice: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["networkFee"]) -> MetaOapg.properties.networkFee: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["baseFee"]) -> MetaOapg.properties.baseFee: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["priorityFee"]) -> MetaOapg.properties.priorityFee: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["feePerByte", "gasPrice", "networkFee", "baseFee", "priorityFee", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["feePerByte"]) -> typing.Union[MetaOapg.properties.feePerByte, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["gasPrice"]) -> typing.Union[MetaOapg.properties.gasPrice, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["networkFee"]) -> typing.Union[MetaOapg.properties.networkFee, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["baseFee"]) -> typing.Union[MetaOapg.properties.baseFee, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["priorityFee"]) -> typing.Union[MetaOapg.properties.priorityFee, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["feePerByte", "gasPrice", "networkFee", "baseFee", "priorityFee", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - feePerByte: typing.Union[MetaOapg.properties.feePerByte, str, schemas.Unset] = schemas.unset, - gasPrice: typing.Union[MetaOapg.properties.gasPrice, str, schemas.Unset] = schemas.unset, - networkFee: typing.Union[MetaOapg.properties.networkFee, str, schemas.Unset] = schemas.unset, - baseFee: typing.Union[MetaOapg.properties.baseFee, str, schemas.Unset] = schemas.unset, - priorityFee: typing.Union[MetaOapg.properties.priorityFee, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'NetworkFee': - return super().__new__( - cls, - *_args, - feePerByte=feePerByte, - gasPrice=gasPrice, - networkFee=networkFee, - baseFee=baseFee, - priorityFee=priorityFee, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/network_id.py b/fireblocks_client/model/network_id.py deleted file mode 100644 index 7ebc6290..00000000 --- a/fireblocks_client/model/network_id.py +++ /dev/null @@ -1,96 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class NetworkId( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "name", - "id", - } - - class properties: - id = schemas.StrSchema - name = schemas.StrSchema - __annotations__ = { - "id": id, - "name": name, - } - - name: MetaOapg.properties.name - id: MetaOapg.properties.id - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "name", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "name", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - name: typing.Union[MetaOapg.properties.name, str, ], - id: typing.Union[MetaOapg.properties.id, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'NetworkId': - return super().__new__( - cls, - *_args, - name=name, - id=id, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/network_id.pyi b/fireblocks_client/model/network_id.pyi deleted file mode 100644 index 7ebc6290..00000000 --- a/fireblocks_client/model/network_id.pyi +++ /dev/null @@ -1,96 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class NetworkId( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "name", - "id", - } - - class properties: - id = schemas.StrSchema - name = schemas.StrSchema - __annotations__ = { - "id": id, - "name": name, - } - - name: MetaOapg.properties.name - id: MetaOapg.properties.id - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "name", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "name", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - name: typing.Union[MetaOapg.properties.name, str, ], - id: typing.Union[MetaOapg.properties.id, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'NetworkId': - return super().__new__( - cls, - *_args, - name=name, - id=id, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/network_id_response.py b/fireblocks_client/model/network_id_response.py deleted file mode 100644 index 77a0d34d..00000000 --- a/fireblocks_client/model/network_id_response.py +++ /dev/null @@ -1,132 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class NetworkIdResponse( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - - class all_of_1( - schemas.DictSchema - ): - - - class MetaOapg: - - class properties: - - @staticmethod - def routingPolicy() -> typing.Type['NetworkIdRoutingPolicy']: - return NetworkIdRoutingPolicy - isDiscoverable = schemas.BoolSchema - __annotations__ = { - "routingPolicy": routingPolicy, - "isDiscoverable": isDiscoverable, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["routingPolicy"]) -> 'NetworkIdRoutingPolicy': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["isDiscoverable"]) -> MetaOapg.properties.isDiscoverable: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["routingPolicy", "isDiscoverable", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["routingPolicy"]) -> typing.Union['NetworkIdRoutingPolicy', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["isDiscoverable"]) -> typing.Union[MetaOapg.properties.isDiscoverable, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["routingPolicy", "isDiscoverable", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - routingPolicy: typing.Union['NetworkIdRoutingPolicy', schemas.Unset] = schemas.unset, - isDiscoverable: typing.Union[MetaOapg.properties.isDiscoverable, bool, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'all_of_1': - return super().__new__( - cls, - *_args, - routingPolicy=routingPolicy, - isDiscoverable=isDiscoverable, - _configuration=_configuration, - **kwargs, - ) - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - NetworkId, - cls.all_of_1, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'NetworkIdResponse': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.network_id import NetworkId -from fireblocks_client.model.network_id_routing_policy import NetworkIdRoutingPolicy diff --git a/fireblocks_client/model/network_id_response.pyi b/fireblocks_client/model/network_id_response.pyi deleted file mode 100644 index 77a0d34d..00000000 --- a/fireblocks_client/model/network_id_response.pyi +++ /dev/null @@ -1,132 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class NetworkIdResponse( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - - class all_of_1( - schemas.DictSchema - ): - - - class MetaOapg: - - class properties: - - @staticmethod - def routingPolicy() -> typing.Type['NetworkIdRoutingPolicy']: - return NetworkIdRoutingPolicy - isDiscoverable = schemas.BoolSchema - __annotations__ = { - "routingPolicy": routingPolicy, - "isDiscoverable": isDiscoverable, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["routingPolicy"]) -> 'NetworkIdRoutingPolicy': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["isDiscoverable"]) -> MetaOapg.properties.isDiscoverable: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["routingPolicy", "isDiscoverable", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["routingPolicy"]) -> typing.Union['NetworkIdRoutingPolicy', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["isDiscoverable"]) -> typing.Union[MetaOapg.properties.isDiscoverable, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["routingPolicy", "isDiscoverable", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - routingPolicy: typing.Union['NetworkIdRoutingPolicy', schemas.Unset] = schemas.unset, - isDiscoverable: typing.Union[MetaOapg.properties.isDiscoverable, bool, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'all_of_1': - return super().__new__( - cls, - *_args, - routingPolicy=routingPolicy, - isDiscoverable=isDiscoverable, - _configuration=_configuration, - **kwargs, - ) - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - NetworkId, - cls.all_of_1, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'NetworkIdResponse': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.network_id import NetworkId -from fireblocks_client.model.network_id_routing_policy import NetworkIdRoutingPolicy diff --git a/fireblocks_client/model/network_id_routing_policy.py b/fireblocks_client/model/network_id_routing_policy.py deleted file mode 100644 index d5b6f725..00000000 --- a/fireblocks_client/model/network_id_routing_policy.py +++ /dev/null @@ -1,303 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class NetworkIdRoutingPolicy( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class crypto( - schemas.ComposedSchema, - ): - - - class MetaOapg: - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - CustomCryptoRoutingDest, - NoneNetworkRoutingDest, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'crypto': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - - - class sen( - schemas.ComposedSchema, - ): - - - class MetaOapg: - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - CustomFiatRoutingDest, - NoneNetworkRoutingDest, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'sen': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - - - class signet( - schemas.ComposedSchema, - ): - - - class MetaOapg: - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - CustomFiatRoutingDest, - NoneNetworkRoutingDest, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'signet': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - - - class sen_test( - schemas.ComposedSchema, - ): - - - class MetaOapg: - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - NoneNetworkRoutingDest, - CustomFiatRoutingDest, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'sen_test': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - - - class signet_test( - schemas.ComposedSchema, - ): - - - class MetaOapg: - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - NoneNetworkRoutingDest, - CustomFiatRoutingDest, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'signet_test': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - __annotations__ = { - "crypto": crypto, - "sen": sen, - "signet": signet, - "sen_test": sen_test, - "signet_test": signet_test, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["crypto"]) -> MetaOapg.properties.crypto: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["sen"]) -> MetaOapg.properties.sen: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["signet"]) -> MetaOapg.properties.signet: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["sen_test"]) -> MetaOapg.properties.sen_test: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["signet_test"]) -> MetaOapg.properties.signet_test: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["crypto", "sen", "signet", "sen_test", "signet_test", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["crypto"]) -> typing.Union[MetaOapg.properties.crypto, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["sen"]) -> typing.Union[MetaOapg.properties.sen, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["signet"]) -> typing.Union[MetaOapg.properties.signet, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["sen_test"]) -> typing.Union[MetaOapg.properties.sen_test, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["signet_test"]) -> typing.Union[MetaOapg.properties.signet_test, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["crypto", "sen", "signet", "sen_test", "signet_test", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - crypto: typing.Union[MetaOapg.properties.crypto, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - sen: typing.Union[MetaOapg.properties.sen, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - signet: typing.Union[MetaOapg.properties.signet, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - sen_test: typing.Union[MetaOapg.properties.sen_test, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - signet_test: typing.Union[MetaOapg.properties.signet_test, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'NetworkIdRoutingPolicy': - return super().__new__( - cls, - *_args, - crypto=crypto, - sen=sen, - signet=signet, - sen_test=sen_test, - signet_test=signet_test, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.custom_crypto_routing_dest import CustomCryptoRoutingDest -from fireblocks_client.model.custom_fiat_routing_dest import CustomFiatRoutingDest -from fireblocks_client.model.none_network_routing_dest import NoneNetworkRoutingDest diff --git a/fireblocks_client/model/network_id_routing_policy.pyi b/fireblocks_client/model/network_id_routing_policy.pyi deleted file mode 100644 index d5b6f725..00000000 --- a/fireblocks_client/model/network_id_routing_policy.pyi +++ /dev/null @@ -1,303 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class NetworkIdRoutingPolicy( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class crypto( - schemas.ComposedSchema, - ): - - - class MetaOapg: - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - CustomCryptoRoutingDest, - NoneNetworkRoutingDest, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'crypto': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - - - class sen( - schemas.ComposedSchema, - ): - - - class MetaOapg: - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - CustomFiatRoutingDest, - NoneNetworkRoutingDest, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'sen': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - - - class signet( - schemas.ComposedSchema, - ): - - - class MetaOapg: - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - CustomFiatRoutingDest, - NoneNetworkRoutingDest, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'signet': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - - - class sen_test( - schemas.ComposedSchema, - ): - - - class MetaOapg: - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - NoneNetworkRoutingDest, - CustomFiatRoutingDest, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'sen_test': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - - - class signet_test( - schemas.ComposedSchema, - ): - - - class MetaOapg: - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - NoneNetworkRoutingDest, - CustomFiatRoutingDest, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'signet_test': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - __annotations__ = { - "crypto": crypto, - "sen": sen, - "signet": signet, - "sen_test": sen_test, - "signet_test": signet_test, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["crypto"]) -> MetaOapg.properties.crypto: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["sen"]) -> MetaOapg.properties.sen: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["signet"]) -> MetaOapg.properties.signet: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["sen_test"]) -> MetaOapg.properties.sen_test: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["signet_test"]) -> MetaOapg.properties.signet_test: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["crypto", "sen", "signet", "sen_test", "signet_test", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["crypto"]) -> typing.Union[MetaOapg.properties.crypto, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["sen"]) -> typing.Union[MetaOapg.properties.sen, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["signet"]) -> typing.Union[MetaOapg.properties.signet, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["sen_test"]) -> typing.Union[MetaOapg.properties.sen_test, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["signet_test"]) -> typing.Union[MetaOapg.properties.signet_test, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["crypto", "sen", "signet", "sen_test", "signet_test", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - crypto: typing.Union[MetaOapg.properties.crypto, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - sen: typing.Union[MetaOapg.properties.sen, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - signet: typing.Union[MetaOapg.properties.signet, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - sen_test: typing.Union[MetaOapg.properties.sen_test, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - signet_test: typing.Union[MetaOapg.properties.signet_test, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'NetworkIdRoutingPolicy': - return super().__new__( - cls, - *_args, - crypto=crypto, - sen=sen, - signet=signet, - sen_test=sen_test, - signet_test=signet_test, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.custom_crypto_routing_dest import CustomCryptoRoutingDest -from fireblocks_client.model.custom_fiat_routing_dest import CustomFiatRoutingDest -from fireblocks_client.model.none_network_routing_dest import NoneNetworkRoutingDest diff --git a/fireblocks_client/model/network_record.py b/fireblocks_client/model/network_record.py deleted file mode 100644 index bd631eb0..00000000 --- a/fireblocks_client/model/network_record.py +++ /dev/null @@ -1,212 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class NetworkRecord( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def source() -> typing.Type['SourceTransferPeerPathResponse']: - return SourceTransferPeerPathResponse - - @staticmethod - def destination() -> typing.Type['DestinationTransferPeerPathResponse']: - return DestinationTransferPeerPathResponse - txHash = schemas.StrSchema - networkFee = schemas.StrSchema - assetId = schemas.StrSchema - netAmount = schemas.StrSchema - isDropped = schemas.BoolSchema - type = schemas.StrSchema - destinationAddress = schemas.StrSchema - sourceAddress = schemas.StrSchema - amountUSD = schemas.StrSchema - index = schemas.NumberSchema - - @staticmethod - def rewardInfo() -> typing.Type['RewardInfo']: - return RewardInfo - __annotations__ = { - "source": source, - "destination": destination, - "txHash": txHash, - "networkFee": networkFee, - "assetId": assetId, - "netAmount": netAmount, - "isDropped": isDropped, - "type": type, - "destinationAddress": destinationAddress, - "sourceAddress": sourceAddress, - "amountUSD": amountUSD, - "index": index, - "rewardInfo": rewardInfo, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["source"]) -> 'SourceTransferPeerPathResponse': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["destination"]) -> 'DestinationTransferPeerPathResponse': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["txHash"]) -> MetaOapg.properties.txHash: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["networkFee"]) -> MetaOapg.properties.networkFee: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["assetId"]) -> MetaOapg.properties.assetId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["netAmount"]) -> MetaOapg.properties.netAmount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["isDropped"]) -> MetaOapg.properties.isDropped: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["destinationAddress"]) -> MetaOapg.properties.destinationAddress: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["sourceAddress"]) -> MetaOapg.properties.sourceAddress: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["amountUSD"]) -> MetaOapg.properties.amountUSD: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["index"]) -> MetaOapg.properties.index: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["rewardInfo"]) -> 'RewardInfo': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["source", "destination", "txHash", "networkFee", "assetId", "netAmount", "isDropped", "type", "destinationAddress", "sourceAddress", "amountUSD", "index", "rewardInfo", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["source"]) -> typing.Union['SourceTransferPeerPathResponse', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["destination"]) -> typing.Union['DestinationTransferPeerPathResponse', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["txHash"]) -> typing.Union[MetaOapg.properties.txHash, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["networkFee"]) -> typing.Union[MetaOapg.properties.networkFee, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["assetId"]) -> typing.Union[MetaOapg.properties.assetId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["netAmount"]) -> typing.Union[MetaOapg.properties.netAmount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["isDropped"]) -> typing.Union[MetaOapg.properties.isDropped, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> typing.Union[MetaOapg.properties.type, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["destinationAddress"]) -> typing.Union[MetaOapg.properties.destinationAddress, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["sourceAddress"]) -> typing.Union[MetaOapg.properties.sourceAddress, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["amountUSD"]) -> typing.Union[MetaOapg.properties.amountUSD, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["index"]) -> typing.Union[MetaOapg.properties.index, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["rewardInfo"]) -> typing.Union['RewardInfo', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["source", "destination", "txHash", "networkFee", "assetId", "netAmount", "isDropped", "type", "destinationAddress", "sourceAddress", "amountUSD", "index", "rewardInfo", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - source: typing.Union['SourceTransferPeerPathResponse', schemas.Unset] = schemas.unset, - destination: typing.Union['DestinationTransferPeerPathResponse', schemas.Unset] = schemas.unset, - txHash: typing.Union[MetaOapg.properties.txHash, str, schemas.Unset] = schemas.unset, - networkFee: typing.Union[MetaOapg.properties.networkFee, str, schemas.Unset] = schemas.unset, - assetId: typing.Union[MetaOapg.properties.assetId, str, schemas.Unset] = schemas.unset, - netAmount: typing.Union[MetaOapg.properties.netAmount, str, schemas.Unset] = schemas.unset, - isDropped: typing.Union[MetaOapg.properties.isDropped, bool, schemas.Unset] = schemas.unset, - type: typing.Union[MetaOapg.properties.type, str, schemas.Unset] = schemas.unset, - destinationAddress: typing.Union[MetaOapg.properties.destinationAddress, str, schemas.Unset] = schemas.unset, - sourceAddress: typing.Union[MetaOapg.properties.sourceAddress, str, schemas.Unset] = schemas.unset, - amountUSD: typing.Union[MetaOapg.properties.amountUSD, str, schemas.Unset] = schemas.unset, - index: typing.Union[MetaOapg.properties.index, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, - rewardInfo: typing.Union['RewardInfo', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'NetworkRecord': - return super().__new__( - cls, - *_args, - source=source, - destination=destination, - txHash=txHash, - networkFee=networkFee, - assetId=assetId, - netAmount=netAmount, - isDropped=isDropped, - type=type, - destinationAddress=destinationAddress, - sourceAddress=sourceAddress, - amountUSD=amountUSD, - index=index, - rewardInfo=rewardInfo, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.destination_transfer_peer_path_response import DestinationTransferPeerPathResponse -from fireblocks_client.model.reward_info import RewardInfo -from fireblocks_client.model.source_transfer_peer_path_response import SourceTransferPeerPathResponse diff --git a/fireblocks_client/model/network_record.pyi b/fireblocks_client/model/network_record.pyi deleted file mode 100644 index bd631eb0..00000000 --- a/fireblocks_client/model/network_record.pyi +++ /dev/null @@ -1,212 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class NetworkRecord( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def source() -> typing.Type['SourceTransferPeerPathResponse']: - return SourceTransferPeerPathResponse - - @staticmethod - def destination() -> typing.Type['DestinationTransferPeerPathResponse']: - return DestinationTransferPeerPathResponse - txHash = schemas.StrSchema - networkFee = schemas.StrSchema - assetId = schemas.StrSchema - netAmount = schemas.StrSchema - isDropped = schemas.BoolSchema - type = schemas.StrSchema - destinationAddress = schemas.StrSchema - sourceAddress = schemas.StrSchema - amountUSD = schemas.StrSchema - index = schemas.NumberSchema - - @staticmethod - def rewardInfo() -> typing.Type['RewardInfo']: - return RewardInfo - __annotations__ = { - "source": source, - "destination": destination, - "txHash": txHash, - "networkFee": networkFee, - "assetId": assetId, - "netAmount": netAmount, - "isDropped": isDropped, - "type": type, - "destinationAddress": destinationAddress, - "sourceAddress": sourceAddress, - "amountUSD": amountUSD, - "index": index, - "rewardInfo": rewardInfo, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["source"]) -> 'SourceTransferPeerPathResponse': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["destination"]) -> 'DestinationTransferPeerPathResponse': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["txHash"]) -> MetaOapg.properties.txHash: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["networkFee"]) -> MetaOapg.properties.networkFee: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["assetId"]) -> MetaOapg.properties.assetId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["netAmount"]) -> MetaOapg.properties.netAmount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["isDropped"]) -> MetaOapg.properties.isDropped: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["destinationAddress"]) -> MetaOapg.properties.destinationAddress: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["sourceAddress"]) -> MetaOapg.properties.sourceAddress: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["amountUSD"]) -> MetaOapg.properties.amountUSD: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["index"]) -> MetaOapg.properties.index: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["rewardInfo"]) -> 'RewardInfo': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["source", "destination", "txHash", "networkFee", "assetId", "netAmount", "isDropped", "type", "destinationAddress", "sourceAddress", "amountUSD", "index", "rewardInfo", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["source"]) -> typing.Union['SourceTransferPeerPathResponse', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["destination"]) -> typing.Union['DestinationTransferPeerPathResponse', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["txHash"]) -> typing.Union[MetaOapg.properties.txHash, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["networkFee"]) -> typing.Union[MetaOapg.properties.networkFee, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["assetId"]) -> typing.Union[MetaOapg.properties.assetId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["netAmount"]) -> typing.Union[MetaOapg.properties.netAmount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["isDropped"]) -> typing.Union[MetaOapg.properties.isDropped, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> typing.Union[MetaOapg.properties.type, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["destinationAddress"]) -> typing.Union[MetaOapg.properties.destinationAddress, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["sourceAddress"]) -> typing.Union[MetaOapg.properties.sourceAddress, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["amountUSD"]) -> typing.Union[MetaOapg.properties.amountUSD, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["index"]) -> typing.Union[MetaOapg.properties.index, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["rewardInfo"]) -> typing.Union['RewardInfo', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["source", "destination", "txHash", "networkFee", "assetId", "netAmount", "isDropped", "type", "destinationAddress", "sourceAddress", "amountUSD", "index", "rewardInfo", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - source: typing.Union['SourceTransferPeerPathResponse', schemas.Unset] = schemas.unset, - destination: typing.Union['DestinationTransferPeerPathResponse', schemas.Unset] = schemas.unset, - txHash: typing.Union[MetaOapg.properties.txHash, str, schemas.Unset] = schemas.unset, - networkFee: typing.Union[MetaOapg.properties.networkFee, str, schemas.Unset] = schemas.unset, - assetId: typing.Union[MetaOapg.properties.assetId, str, schemas.Unset] = schemas.unset, - netAmount: typing.Union[MetaOapg.properties.netAmount, str, schemas.Unset] = schemas.unset, - isDropped: typing.Union[MetaOapg.properties.isDropped, bool, schemas.Unset] = schemas.unset, - type: typing.Union[MetaOapg.properties.type, str, schemas.Unset] = schemas.unset, - destinationAddress: typing.Union[MetaOapg.properties.destinationAddress, str, schemas.Unset] = schemas.unset, - sourceAddress: typing.Union[MetaOapg.properties.sourceAddress, str, schemas.Unset] = schemas.unset, - amountUSD: typing.Union[MetaOapg.properties.amountUSD, str, schemas.Unset] = schemas.unset, - index: typing.Union[MetaOapg.properties.index, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, - rewardInfo: typing.Union['RewardInfo', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'NetworkRecord': - return super().__new__( - cls, - *_args, - source=source, - destination=destination, - txHash=txHash, - networkFee=networkFee, - assetId=assetId, - netAmount=netAmount, - isDropped=isDropped, - type=type, - destinationAddress=destinationAddress, - sourceAddress=sourceAddress, - amountUSD=amountUSD, - index=index, - rewardInfo=rewardInfo, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.destination_transfer_peer_path_response import DestinationTransferPeerPathResponse -from fireblocks_client.model.reward_info import RewardInfo -from fireblocks_client.model.source_transfer_peer_path_response import SourceTransferPeerPathResponse diff --git a/fireblocks_client/model/none_network_routing_dest.py b/fireblocks_client/model/none_network_routing_dest.py deleted file mode 100644 index a845413c..00000000 --- a/fireblocks_client/model/none_network_routing_dest.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class NoneNetworkRoutingDest( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "scheme", - } - - class properties: - - - class scheme( - schemas.EnumBase, - schemas.StrSchema - ): - - - class MetaOapg: - enum_value_to_name = { - "NONE": "NONE", - } - - @schemas.classproperty - def NONE(cls): - return cls("NONE") - __annotations__ = { - "scheme": scheme, - } - - scheme: MetaOapg.properties.scheme - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["scheme"]) -> MetaOapg.properties.scheme: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["scheme", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["scheme"]) -> MetaOapg.properties.scheme: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["scheme", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - scheme: typing.Union[MetaOapg.properties.scheme, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'NoneNetworkRoutingDest': - return super().__new__( - cls, - *_args, - scheme=scheme, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/none_network_routing_dest.pyi b/fireblocks_client/model/none_network_routing_dest.pyi deleted file mode 100644 index 8b1669a3..00000000 --- a/fireblocks_client/model/none_network_routing_dest.pyi +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class NoneNetworkRoutingDest( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "scheme", - } - - class properties: - - - class scheme( - schemas.EnumBase, - schemas.StrSchema - ): - - @schemas.classproperty - def NONE(cls): - return cls("NONE") - __annotations__ = { - "scheme": scheme, - } - - scheme: MetaOapg.properties.scheme - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["scheme"]) -> MetaOapg.properties.scheme: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["scheme", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["scheme"]) -> MetaOapg.properties.scheme: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["scheme", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - scheme: typing.Union[MetaOapg.properties.scheme, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'NoneNetworkRoutingDest': - return super().__new__( - cls, - *_args, - scheme=scheme, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/one_time_address.py b/fireblocks_client/model/one_time_address.py deleted file mode 100644 index 4f255342..00000000 --- a/fireblocks_client/model/one_time_address.py +++ /dev/null @@ -1,94 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class OneTimeAddress( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "address", - } - - class properties: - address = schemas.StrSchema - tag = schemas.StrSchema - __annotations__ = { - "address": address, - "tag": tag, - } - - address: MetaOapg.properties.address - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["address"]) -> MetaOapg.properties.address: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["tag"]) -> MetaOapg.properties.tag: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["address", "tag", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["address"]) -> MetaOapg.properties.address: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["tag"]) -> typing.Union[MetaOapg.properties.tag, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["address", "tag", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - address: typing.Union[MetaOapg.properties.address, str, ], - tag: typing.Union[MetaOapg.properties.tag, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'OneTimeAddress': - return super().__new__( - cls, - *_args, - address=address, - tag=tag, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/one_time_address.pyi b/fireblocks_client/model/one_time_address.pyi deleted file mode 100644 index 4f255342..00000000 --- a/fireblocks_client/model/one_time_address.pyi +++ /dev/null @@ -1,94 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class OneTimeAddress( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "address", - } - - class properties: - address = schemas.StrSchema - tag = schemas.StrSchema - __annotations__ = { - "address": address, - "tag": tag, - } - - address: MetaOapg.properties.address - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["address"]) -> MetaOapg.properties.address: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["tag"]) -> MetaOapg.properties.tag: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["address", "tag", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["address"]) -> MetaOapg.properties.address: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["tag"]) -> typing.Union[MetaOapg.properties.tag, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["address", "tag", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - address: typing.Union[MetaOapg.properties.address, str, ], - tag: typing.Union[MetaOapg.properties.tag, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'OneTimeAddress': - return super().__new__( - cls, - *_args, - address=address, - tag=tag, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/paginated_asset_wallet_response.py b/fireblocks_client/model/paginated_asset_wallet_response.py deleted file mode 100644 index 22aeaa2f..00000000 --- a/fireblocks_client/model/paginated_asset_wallet_response.py +++ /dev/null @@ -1,175 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class PaginatedAssetWalletResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class assetWallets( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['AssetWallet']: - return AssetWallet - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['AssetWallet'], typing.List['AssetWallet']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'assetWallets': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'AssetWallet': - return super().__getitem__(i) - - - class paging( - schemas.DictSchema - ): - - - class MetaOapg: - - class properties: - before = schemas.StrSchema - after = schemas.StrSchema - __annotations__ = { - "before": before, - "after": after, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["before"]) -> MetaOapg.properties.before: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["after"]) -> MetaOapg.properties.after: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["before", "after", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["before"]) -> typing.Union[MetaOapg.properties.before, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["after"]) -> typing.Union[MetaOapg.properties.after, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["before", "after", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - before: typing.Union[MetaOapg.properties.before, str, schemas.Unset] = schemas.unset, - after: typing.Union[MetaOapg.properties.after, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'paging': - return super().__new__( - cls, - *_args, - before=before, - after=after, - _configuration=_configuration, - **kwargs, - ) - __annotations__ = { - "assetWallets": assetWallets, - "paging": paging, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["assetWallets"]) -> MetaOapg.properties.assetWallets: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["paging"]) -> MetaOapg.properties.paging: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["assetWallets", "paging", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["assetWallets"]) -> typing.Union[MetaOapg.properties.assetWallets, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["paging"]) -> typing.Union[MetaOapg.properties.paging, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["assetWallets", "paging", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - assetWallets: typing.Union[MetaOapg.properties.assetWallets, list, tuple, schemas.Unset] = schemas.unset, - paging: typing.Union[MetaOapg.properties.paging, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'PaginatedAssetWalletResponse': - return super().__new__( - cls, - *_args, - assetWallets=assetWallets, - paging=paging, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.asset_wallet import AssetWallet diff --git a/fireblocks_client/model/paginated_asset_wallet_response.pyi b/fireblocks_client/model/paginated_asset_wallet_response.pyi deleted file mode 100644 index 22aeaa2f..00000000 --- a/fireblocks_client/model/paginated_asset_wallet_response.pyi +++ /dev/null @@ -1,175 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class PaginatedAssetWalletResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class assetWallets( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['AssetWallet']: - return AssetWallet - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['AssetWallet'], typing.List['AssetWallet']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'assetWallets': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'AssetWallet': - return super().__getitem__(i) - - - class paging( - schemas.DictSchema - ): - - - class MetaOapg: - - class properties: - before = schemas.StrSchema - after = schemas.StrSchema - __annotations__ = { - "before": before, - "after": after, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["before"]) -> MetaOapg.properties.before: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["after"]) -> MetaOapg.properties.after: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["before", "after", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["before"]) -> typing.Union[MetaOapg.properties.before, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["after"]) -> typing.Union[MetaOapg.properties.after, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["before", "after", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - before: typing.Union[MetaOapg.properties.before, str, schemas.Unset] = schemas.unset, - after: typing.Union[MetaOapg.properties.after, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'paging': - return super().__new__( - cls, - *_args, - before=before, - after=after, - _configuration=_configuration, - **kwargs, - ) - __annotations__ = { - "assetWallets": assetWallets, - "paging": paging, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["assetWallets"]) -> MetaOapg.properties.assetWallets: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["paging"]) -> MetaOapg.properties.paging: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["assetWallets", "paging", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["assetWallets"]) -> typing.Union[MetaOapg.properties.assetWallets, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["paging"]) -> typing.Union[MetaOapg.properties.paging, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["assetWallets", "paging", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - assetWallets: typing.Union[MetaOapg.properties.assetWallets, list, tuple, schemas.Unset] = schemas.unset, - paging: typing.Union[MetaOapg.properties.paging, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'PaginatedAssetWalletResponse': - return super().__new__( - cls, - *_args, - assetWallets=assetWallets, - paging=paging, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.asset_wallet import AssetWallet diff --git a/fireblocks_client/model/paging.py b/fireblocks_client/model/paging.py deleted file mode 100644 index 851b07f2..00000000 --- a/fireblocks_client/model/paging.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class Paging( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "next", - } - - class properties: - next = schemas.StrSchema - __annotations__ = { - "next": next, - } - - next: MetaOapg.properties.next - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["next"]) -> MetaOapg.properties.next: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["next", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["next"]) -> MetaOapg.properties.next: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["next", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - next: typing.Union[MetaOapg.properties.next, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'Paging': - return super().__new__( - cls, - *_args, - next=next, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/paging.pyi b/fireblocks_client/model/paging.pyi deleted file mode 100644 index 851b07f2..00000000 --- a/fireblocks_client/model/paging.pyi +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class Paging( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "next", - } - - class properties: - next = schemas.StrSchema - __annotations__ = { - "next": next, - } - - next: MetaOapg.properties.next - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["next"]) -> MetaOapg.properties.next: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["next", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["next"]) -> MetaOapg.properties.next: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["next", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - next: typing.Union[MetaOapg.properties.next, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'Paging': - return super().__new__( - cls, - *_args, - next=next, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/payee_account.py b/fireblocks_client/model/payee_account.py deleted file mode 100644 index 68f30ed3..00000000 --- a/fireblocks_client/model/payee_account.py +++ /dev/null @@ -1,101 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class PayeeAccount( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "id", - "type", - } - - class properties: - id = schemas.StrSchema - - @staticmethod - def type() -> typing.Type['PayeeAccountType']: - return PayeeAccountType - __annotations__ = { - "id": id, - "type": type, - } - - id: MetaOapg.properties.id - type: 'PayeeAccountType' - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["type"]) -> 'PayeeAccountType': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "type", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> 'PayeeAccountType': ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "type", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, str, ], - type: 'PayeeAccountType', - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'PayeeAccount': - return super().__new__( - cls, - *_args, - id=id, - type=type, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.payee_account_type import PayeeAccountType diff --git a/fireblocks_client/model/payee_account.pyi b/fireblocks_client/model/payee_account.pyi deleted file mode 100644 index 68f30ed3..00000000 --- a/fireblocks_client/model/payee_account.pyi +++ /dev/null @@ -1,101 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class PayeeAccount( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "id", - "type", - } - - class properties: - id = schemas.StrSchema - - @staticmethod - def type() -> typing.Type['PayeeAccountType']: - return PayeeAccountType - __annotations__ = { - "id": id, - "type": type, - } - - id: MetaOapg.properties.id - type: 'PayeeAccountType' - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["type"]) -> 'PayeeAccountType': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "type", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> 'PayeeAccountType': ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "type", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, str, ], - type: 'PayeeAccountType', - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'PayeeAccount': - return super().__new__( - cls, - *_args, - id=id, - type=type, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.payee_account_type import PayeeAccountType diff --git a/fireblocks_client/model/payee_account_response.py b/fireblocks_client/model/payee_account_response.py deleted file mode 100644 index 21a38ad4..00000000 --- a/fireblocks_client/model/payee_account_response.py +++ /dev/null @@ -1,94 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class PayeeAccountResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - id = schemas.StrSchema - - @staticmethod - def type() -> typing.Type['PayeeAccountType']: - return PayeeAccountType - __annotations__ = { - "id": id, - "type": type, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["type"]) -> 'PayeeAccountType': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "type", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> typing.Union['PayeeAccountType', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "type", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - type: typing.Union['PayeeAccountType', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'PayeeAccountResponse': - return super().__new__( - cls, - *_args, - id=id, - type=type, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.payee_account_type import PayeeAccountType diff --git a/fireblocks_client/model/payee_account_response.pyi b/fireblocks_client/model/payee_account_response.pyi deleted file mode 100644 index 21a38ad4..00000000 --- a/fireblocks_client/model/payee_account_response.pyi +++ /dev/null @@ -1,94 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class PayeeAccountResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - id = schemas.StrSchema - - @staticmethod - def type() -> typing.Type['PayeeAccountType']: - return PayeeAccountType - __annotations__ = { - "id": id, - "type": type, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["type"]) -> 'PayeeAccountType': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "type", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> typing.Union['PayeeAccountType', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "type", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - type: typing.Union['PayeeAccountType', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'PayeeAccountResponse': - return super().__new__( - cls, - *_args, - id=id, - type=type, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.payee_account_type import PayeeAccountType diff --git a/fireblocks_client/model/payee_account_type.py b/fireblocks_client/model/payee_account_type.py deleted file mode 100644 index dba9cb6f..00000000 --- a/fireblocks_client/model/payee_account_type.py +++ /dev/null @@ -1,78 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class PayeeAccountType( - schemas.EnumBase, - schemas.StrSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - - VAULT_ACCOUNT a native Fireblocks vault account -- EXCHANGE_ACCOUNT a third-party exchange account -- INTERNAL_WALLET a whitelisted address marked as internal to the workspace/organization -- EXTERNAL_WALLET a whitelisted address marked as external -- NETWORK_CONNECTION a member of the Fireblocks network -- FIAT_ACCOUNT a third-party account of a fiat bank (Signature, BCB, etc) - - """ - - - class MetaOapg: - enum_value_to_name = { - "VAULT_ACCOUNT": "VAULT_ACCOUNT", - "EXCHANGE_ACCOUNT": "EXCHANGE_ACCOUNT", - "INTERNAL_WALLET": "INTERNAL_WALLET", - "EXTERNAL_WALLET": "EXTERNAL_WALLET", - "NETWORK_CONNECTION": "NETWORK_CONNECTION", - "FIAT_ACCOUNT": "FIAT_ACCOUNT", - } - - @schemas.classproperty - def VAULT_ACCOUNT(cls): - return cls("VAULT_ACCOUNT") - - @schemas.classproperty - def EXCHANGE_ACCOUNT(cls): - return cls("EXCHANGE_ACCOUNT") - - @schemas.classproperty - def INTERNAL_WALLET(cls): - return cls("INTERNAL_WALLET") - - @schemas.classproperty - def EXTERNAL_WALLET(cls): - return cls("EXTERNAL_WALLET") - - @schemas.classproperty - def NETWORK_CONNECTION(cls): - return cls("NETWORK_CONNECTION") - - @schemas.classproperty - def FIAT_ACCOUNT(cls): - return cls("FIAT_ACCOUNT") diff --git a/fireblocks_client/model/payee_account_type.pyi b/fireblocks_client/model/payee_account_type.pyi deleted file mode 100644 index f2bbd8a5..00000000 --- a/fireblocks_client/model/payee_account_type.pyi +++ /dev/null @@ -1,67 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class PayeeAccountType( - schemas.EnumBase, - schemas.StrSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - - VAULT_ACCOUNT a native Fireblocks vault account -- EXCHANGE_ACCOUNT a third-party exchange account -- INTERNAL_WALLET a whitelisted address marked as internal to the workspace/organization -- EXTERNAL_WALLET a whitelisted address marked as external -- NETWORK_CONNECTION a member of the Fireblocks network -- FIAT_ACCOUNT a third-party account of a fiat bank (Signature, BCB, etc) - - """ - - @schemas.classproperty - def VAULT_ACCOUNT(cls): - return cls("VAULT_ACCOUNT") - - @schemas.classproperty - def EXCHANGE_ACCOUNT(cls): - return cls("EXCHANGE_ACCOUNT") - - @schemas.classproperty - def INTERNAL_WALLET(cls): - return cls("INTERNAL_WALLET") - - @schemas.classproperty - def EXTERNAL_WALLET(cls): - return cls("EXTERNAL_WALLET") - - @schemas.classproperty - def NETWORK_CONNECTION(cls): - return cls("NETWORK_CONNECTION") - - @schemas.classproperty - def FIAT_ACCOUNT(cls): - return cls("FIAT_ACCOUNT") diff --git a/fireblocks_client/model/payment_account.py b/fireblocks_client/model/payment_account.py deleted file mode 100644 index 67b4a62d..00000000 --- a/fireblocks_client/model/payment_account.py +++ /dev/null @@ -1,101 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class PaymentAccount( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "id", - "type", - } - - class properties: - id = schemas.StrSchema - - @staticmethod - def type() -> typing.Type['PaymentAccountType']: - return PaymentAccountType - __annotations__ = { - "id": id, - "type": type, - } - - id: MetaOapg.properties.id - type: 'PaymentAccountType' - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["type"]) -> 'PaymentAccountType': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "type", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> 'PaymentAccountType': ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "type", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, str, ], - type: 'PaymentAccountType', - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'PaymentAccount': - return super().__new__( - cls, - *_args, - id=id, - type=type, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.payment_account_type import PaymentAccountType diff --git a/fireblocks_client/model/payment_account.pyi b/fireblocks_client/model/payment_account.pyi deleted file mode 100644 index 67b4a62d..00000000 --- a/fireblocks_client/model/payment_account.pyi +++ /dev/null @@ -1,101 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class PaymentAccount( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "id", - "type", - } - - class properties: - id = schemas.StrSchema - - @staticmethod - def type() -> typing.Type['PaymentAccountType']: - return PaymentAccountType - __annotations__ = { - "id": id, - "type": type, - } - - id: MetaOapg.properties.id - type: 'PaymentAccountType' - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["type"]) -> 'PaymentAccountType': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "type", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> 'PaymentAccountType': ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "type", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, str, ], - type: 'PaymentAccountType', - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'PaymentAccount': - return super().__new__( - cls, - *_args, - id=id, - type=type, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.payment_account_type import PaymentAccountType diff --git a/fireblocks_client/model/payment_account_response.py b/fireblocks_client/model/payment_account_response.py deleted file mode 100644 index eba4bb25..00000000 --- a/fireblocks_client/model/payment_account_response.py +++ /dev/null @@ -1,94 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class PaymentAccountResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - id = schemas.StrSchema - - @staticmethod - def type() -> typing.Type['PaymentAccountType']: - return PaymentAccountType - __annotations__ = { - "id": id, - "type": type, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["type"]) -> 'PaymentAccountType': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "type", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> typing.Union['PaymentAccountType', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "type", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - type: typing.Union['PaymentAccountType', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'PaymentAccountResponse': - return super().__new__( - cls, - *_args, - id=id, - type=type, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.payment_account_type import PaymentAccountType diff --git a/fireblocks_client/model/payment_account_response.pyi b/fireblocks_client/model/payment_account_response.pyi deleted file mode 100644 index eba4bb25..00000000 --- a/fireblocks_client/model/payment_account_response.pyi +++ /dev/null @@ -1,94 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class PaymentAccountResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - id = schemas.StrSchema - - @staticmethod - def type() -> typing.Type['PaymentAccountType']: - return PaymentAccountType - __annotations__ = { - "id": id, - "type": type, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["type"]) -> 'PaymentAccountType': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "type", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> typing.Union['PaymentAccountType', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "type", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - type: typing.Union['PaymentAccountType', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'PaymentAccountResponse': - return super().__new__( - cls, - *_args, - id=id, - type=type, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.payment_account_type import PaymentAccountType diff --git a/fireblocks_client/model/payment_account_type.py b/fireblocks_client/model/payment_account_type.py deleted file mode 100644 index 2659314b..00000000 --- a/fireblocks_client/model/payment_account_type.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class PaymentAccountType( - schemas.EnumBase, - schemas.StrSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - enum_value_to_name = { - "VAULT_ACCOUNT": "VAULT_ACCOUNT", - "EXCHANGE_ACCOUNT": "EXCHANGE_ACCOUNT", - "FIAT_ACCOUNT": "FIAT_ACCOUNT", - } - - @schemas.classproperty - def VAULT_ACCOUNT(cls): - return cls("VAULT_ACCOUNT") - - @schemas.classproperty - def EXCHANGE_ACCOUNT(cls): - return cls("EXCHANGE_ACCOUNT") - - @schemas.classproperty - def FIAT_ACCOUNT(cls): - return cls("FIAT_ACCOUNT") diff --git a/fireblocks_client/model/payment_account_type.pyi b/fireblocks_client/model/payment_account_type.pyi deleted file mode 100644 index 63176434..00000000 --- a/fireblocks_client/model/payment_account_type.pyi +++ /dev/null @@ -1,47 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class PaymentAccountType( - schemas.EnumBase, - schemas.StrSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - @schemas.classproperty - def VAULT_ACCOUNT(cls): - return cls("VAULT_ACCOUNT") - - @schemas.classproperty - def EXCHANGE_ACCOUNT(cls): - return cls("EXCHANGE_ACCOUNT") - - @schemas.classproperty - def FIAT_ACCOUNT(cls): - return cls("FIAT_ACCOUNT") diff --git a/fireblocks_client/model/payout_init_method.py b/fireblocks_client/model/payout_init_method.py deleted file mode 100644 index bb550cc3..00000000 --- a/fireblocks_client/model/payout_init_method.py +++ /dev/null @@ -1,50 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class PayoutInitMethod( - schemas.EnumBase, - schemas.StrSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - enum_value_to_name = { - "FILE": "FILE", - "API": "API", - } - - @schemas.classproperty - def FILE(cls): - return cls("FILE") - - @schemas.classproperty - def API(cls): - return cls("API") diff --git a/fireblocks_client/model/payout_init_method.pyi b/fireblocks_client/model/payout_init_method.pyi deleted file mode 100644 index d00fc548..00000000 --- a/fireblocks_client/model/payout_init_method.pyi +++ /dev/null @@ -1,43 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class PayoutInitMethod( - schemas.EnumBase, - schemas.StrSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - @schemas.classproperty - def FILE(cls): - return cls("FILE") - - @schemas.classproperty - def API(cls): - return cls("API") diff --git a/fireblocks_client/model/payout_instruction.py b/fireblocks_client/model/payout_instruction.py deleted file mode 100644 index dc236d68..00000000 --- a/fireblocks_client/model/payout_instruction.py +++ /dev/null @@ -1,115 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class PayoutInstruction( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "amount", - "payeeAccount", - } - - class properties: - - @staticmethod - def payeeAccount() -> typing.Type['PayeeAccount']: - return PayeeAccount - - @staticmethod - def amount() -> typing.Type['InstructionAmount']: - return InstructionAmount - id = schemas.StrSchema - __annotations__ = { - "payeeAccount": payeeAccount, - "amount": amount, - "id": id, - } - - amount: 'InstructionAmount' - payeeAccount: 'PayeeAccount' - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["payeeAccount"]) -> 'PayeeAccount': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["amount"]) -> 'InstructionAmount': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["payeeAccount", "amount", "id", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["payeeAccount"]) -> 'PayeeAccount': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["amount"]) -> 'InstructionAmount': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["payeeAccount", "amount", "id", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - amount: 'InstructionAmount', - payeeAccount: 'PayeeAccount', - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'PayoutInstruction': - return super().__new__( - cls, - *_args, - amount=amount, - payeeAccount=payeeAccount, - id=id, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.instruction_amount import InstructionAmount -from fireblocks_client.model.payee_account import PayeeAccount diff --git a/fireblocks_client/model/payout_instruction.pyi b/fireblocks_client/model/payout_instruction.pyi deleted file mode 100644 index dc236d68..00000000 --- a/fireblocks_client/model/payout_instruction.pyi +++ /dev/null @@ -1,115 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class PayoutInstruction( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "amount", - "payeeAccount", - } - - class properties: - - @staticmethod - def payeeAccount() -> typing.Type['PayeeAccount']: - return PayeeAccount - - @staticmethod - def amount() -> typing.Type['InstructionAmount']: - return InstructionAmount - id = schemas.StrSchema - __annotations__ = { - "payeeAccount": payeeAccount, - "amount": amount, - "id": id, - } - - amount: 'InstructionAmount' - payeeAccount: 'PayeeAccount' - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["payeeAccount"]) -> 'PayeeAccount': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["amount"]) -> 'InstructionAmount': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["payeeAccount", "amount", "id", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["payeeAccount"]) -> 'PayeeAccount': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["amount"]) -> 'InstructionAmount': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["payeeAccount", "amount", "id", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - amount: 'InstructionAmount', - payeeAccount: 'PayeeAccount', - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'PayoutInstruction': - return super().__new__( - cls, - *_args, - amount=amount, - payeeAccount=payeeAccount, - id=id, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.instruction_amount import InstructionAmount -from fireblocks_client.model.payee_account import PayeeAccount diff --git a/fireblocks_client/model/payout_instruction_response.py b/fireblocks_client/model/payout_instruction_response.py deleted file mode 100644 index 2c80233f..00000000 --- a/fireblocks_client/model/payout_instruction_response.py +++ /dev/null @@ -1,169 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class PayoutInstructionResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "amount", - "state", - "payeeAccount", - "transactions", - } - - class properties: - - @staticmethod - def payeeAccount() -> typing.Type['PayeeAccountResponse']: - return PayeeAccountResponse - - @staticmethod - def amount() -> typing.Type['InstructionAmount']: - return InstructionAmount - - @staticmethod - def state() -> typing.Type['PayoutInstructionState']: - return PayoutInstructionState - - - class transactions( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['Transaction']: - return Transaction - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['Transaction'], typing.List['Transaction']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'transactions': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'Transaction': - return super().__getitem__(i) - id = schemas.StrSchema - __annotations__ = { - "payeeAccount": payeeAccount, - "amount": amount, - "state": state, - "transactions": transactions, - "id": id, - } - - amount: 'InstructionAmount' - state: 'PayoutInstructionState' - payeeAccount: 'PayeeAccountResponse' - transactions: MetaOapg.properties.transactions - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["payeeAccount"]) -> 'PayeeAccountResponse': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["amount"]) -> 'InstructionAmount': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["state"]) -> 'PayoutInstructionState': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["transactions"]) -> MetaOapg.properties.transactions: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["payeeAccount", "amount", "state", "transactions", "id", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["payeeAccount"]) -> 'PayeeAccountResponse': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["amount"]) -> 'InstructionAmount': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["state"]) -> 'PayoutInstructionState': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["transactions"]) -> MetaOapg.properties.transactions: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["payeeAccount", "amount", "state", "transactions", "id", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - amount: 'InstructionAmount', - state: 'PayoutInstructionState', - payeeAccount: 'PayeeAccountResponse', - transactions: typing.Union[MetaOapg.properties.transactions, list, tuple, ], - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'PayoutInstructionResponse': - return super().__new__( - cls, - *_args, - amount=amount, - state=state, - payeeAccount=payeeAccount, - transactions=transactions, - id=id, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.instruction_amount import InstructionAmount -from fireblocks_client.model.payee_account_response import PayeeAccountResponse -from fireblocks_client.model.payout_instruction_state import PayoutInstructionState -from fireblocks_client.model.transaction import Transaction diff --git a/fireblocks_client/model/payout_instruction_response.pyi b/fireblocks_client/model/payout_instruction_response.pyi deleted file mode 100644 index 2c80233f..00000000 --- a/fireblocks_client/model/payout_instruction_response.pyi +++ /dev/null @@ -1,169 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class PayoutInstructionResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "amount", - "state", - "payeeAccount", - "transactions", - } - - class properties: - - @staticmethod - def payeeAccount() -> typing.Type['PayeeAccountResponse']: - return PayeeAccountResponse - - @staticmethod - def amount() -> typing.Type['InstructionAmount']: - return InstructionAmount - - @staticmethod - def state() -> typing.Type['PayoutInstructionState']: - return PayoutInstructionState - - - class transactions( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['Transaction']: - return Transaction - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['Transaction'], typing.List['Transaction']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'transactions': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'Transaction': - return super().__getitem__(i) - id = schemas.StrSchema - __annotations__ = { - "payeeAccount": payeeAccount, - "amount": amount, - "state": state, - "transactions": transactions, - "id": id, - } - - amount: 'InstructionAmount' - state: 'PayoutInstructionState' - payeeAccount: 'PayeeAccountResponse' - transactions: MetaOapg.properties.transactions - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["payeeAccount"]) -> 'PayeeAccountResponse': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["amount"]) -> 'InstructionAmount': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["state"]) -> 'PayoutInstructionState': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["transactions"]) -> MetaOapg.properties.transactions: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["payeeAccount", "amount", "state", "transactions", "id", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["payeeAccount"]) -> 'PayeeAccountResponse': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["amount"]) -> 'InstructionAmount': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["state"]) -> 'PayoutInstructionState': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["transactions"]) -> MetaOapg.properties.transactions: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["payeeAccount", "amount", "state", "transactions", "id", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - amount: 'InstructionAmount', - state: 'PayoutInstructionState', - payeeAccount: 'PayeeAccountResponse', - transactions: typing.Union[MetaOapg.properties.transactions, list, tuple, ], - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'PayoutInstructionResponse': - return super().__new__( - cls, - *_args, - amount=amount, - state=state, - payeeAccount=payeeAccount, - transactions=transactions, - id=id, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.instruction_amount import InstructionAmount -from fireblocks_client.model.payee_account_response import PayeeAccountResponse -from fireblocks_client.model.payout_instruction_state import PayoutInstructionState -from fireblocks_client.model.transaction import Transaction diff --git a/fireblocks_client/model/payout_instruction_state.py b/fireblocks_client/model/payout_instruction_state.py deleted file mode 100644 index 67e97dcb..00000000 --- a/fireblocks_client/model/payout_instruction_state.py +++ /dev/null @@ -1,78 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class PayoutInstructionState( - schemas.EnumBase, - schemas.StrSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - - NOT_STARTED - waiting to start -- TRANSACTION_SENT - an underlying transaction was sent -- COMPLETED - completed successfully -- FAILED - failed -- TRANSLATION_ERROR -lookup of the destination failed (due to changes in the underlying whitelisted external wallet or similar) -- SKIPPED- no transaction(s) created for this instruction - - """ - - - class MetaOapg: - enum_value_to_name = { - "NOT_STARTED": "NOT_STARTED", - "TRANSACTION_SENT": "TRANSACTION_SENT", - "COMPLETED": "COMPLETED", - "FAILED": "FAILED", - "TRANSLATION_ERROR": "TRANSLATION_ERROR", - "SKIPPED": "SKIPPED", - } - - @schemas.classproperty - def NOT_STARTED(cls): - return cls("NOT_STARTED") - - @schemas.classproperty - def TRANSACTION_SENT(cls): - return cls("TRANSACTION_SENT") - - @schemas.classproperty - def COMPLETED(cls): - return cls("COMPLETED") - - @schemas.classproperty - def FAILED(cls): - return cls("FAILED") - - @schemas.classproperty - def TRANSLATION_ERROR(cls): - return cls("TRANSLATION_ERROR") - - @schemas.classproperty - def SKIPPED(cls): - return cls("SKIPPED") diff --git a/fireblocks_client/model/payout_instruction_state.pyi b/fireblocks_client/model/payout_instruction_state.pyi deleted file mode 100644 index 09adf3b2..00000000 --- a/fireblocks_client/model/payout_instruction_state.pyi +++ /dev/null @@ -1,67 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class PayoutInstructionState( - schemas.EnumBase, - schemas.StrSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - - NOT_STARTED - waiting to start -- TRANSACTION_SENT - an underlying transaction was sent -- COMPLETED - completed successfully -- FAILED - failed -- TRANSLATION_ERROR -lookup of the destination failed (due to changes in the underlying whitelisted external wallet or similar) -- SKIPPED- no transaction(s) created for this instruction - - """ - - @schemas.classproperty - def NOT_STARTED(cls): - return cls("NOT_STARTED") - - @schemas.classproperty - def TRANSACTION_SENT(cls): - return cls("TRANSACTION_SENT") - - @schemas.classproperty - def COMPLETED(cls): - return cls("COMPLETED") - - @schemas.classproperty - def FAILED(cls): - return cls("FAILED") - - @schemas.classproperty - def TRANSLATION_ERROR(cls): - return cls("TRANSLATION_ERROR") - - @schemas.classproperty - def SKIPPED(cls): - return cls("SKIPPED") diff --git a/fireblocks_client/model/payout_response.py b/fireblocks_client/model/payout_response.py deleted file mode 100644 index 4a4bcd4e..00000000 --- a/fireblocks_client/model/payout_response.py +++ /dev/null @@ -1,217 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class PayoutResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "createdAt", - "instructionSet", - "state", - "payoutId", - "paymentAccount", - "status", - } - - class properties: - payoutId = schemas.StrSchema - - @staticmethod - def paymentAccount() -> typing.Type['PaymentAccountResponse']: - return PaymentAccountResponse - createdAt = schemas.NumberSchema - - @staticmethod - def state() -> typing.Type['PayoutState']: - return PayoutState - - @staticmethod - def status() -> typing.Type['PayoutStatus']: - return PayoutStatus - - - class instructionSet( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['PayoutInstructionResponse']: - return PayoutInstructionResponse - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['PayoutInstructionResponse'], typing.List['PayoutInstructionResponse']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'instructionSet': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'PayoutInstructionResponse': - return super().__getitem__(i) - reasonOfFailure = schemas.StrSchema - - @staticmethod - def initMethod() -> typing.Type['PayoutInitMethod']: - return PayoutInitMethod - reportUrl = schemas.StrSchema - __annotations__ = { - "payoutId": payoutId, - "paymentAccount": paymentAccount, - "createdAt": createdAt, - "state": state, - "status": status, - "instructionSet": instructionSet, - "reasonOfFailure": reasonOfFailure, - "initMethod": initMethod, - "reportUrl": reportUrl, - } - - createdAt: MetaOapg.properties.createdAt - instructionSet: MetaOapg.properties.instructionSet - state: 'PayoutState' - payoutId: MetaOapg.properties.payoutId - paymentAccount: 'PaymentAccountResponse' - status: 'PayoutStatus' - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["payoutId"]) -> MetaOapg.properties.payoutId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["paymentAccount"]) -> 'PaymentAccountResponse': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["createdAt"]) -> MetaOapg.properties.createdAt: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["state"]) -> 'PayoutState': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["status"]) -> 'PayoutStatus': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["instructionSet"]) -> MetaOapg.properties.instructionSet: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["reasonOfFailure"]) -> MetaOapg.properties.reasonOfFailure: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["initMethod"]) -> 'PayoutInitMethod': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["reportUrl"]) -> MetaOapg.properties.reportUrl: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["payoutId", "paymentAccount", "createdAt", "state", "status", "instructionSet", "reasonOfFailure", "initMethod", "reportUrl", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["payoutId"]) -> MetaOapg.properties.payoutId: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["paymentAccount"]) -> 'PaymentAccountResponse': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["createdAt"]) -> MetaOapg.properties.createdAt: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["state"]) -> 'PayoutState': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> 'PayoutStatus': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["instructionSet"]) -> MetaOapg.properties.instructionSet: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["reasonOfFailure"]) -> typing.Union[MetaOapg.properties.reasonOfFailure, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["initMethod"]) -> typing.Union['PayoutInitMethod', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["reportUrl"]) -> typing.Union[MetaOapg.properties.reportUrl, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["payoutId", "paymentAccount", "createdAt", "state", "status", "instructionSet", "reasonOfFailure", "initMethod", "reportUrl", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - createdAt: typing.Union[MetaOapg.properties.createdAt, decimal.Decimal, int, float, ], - instructionSet: typing.Union[MetaOapg.properties.instructionSet, list, tuple, ], - state: 'PayoutState', - payoutId: typing.Union[MetaOapg.properties.payoutId, str, ], - paymentAccount: 'PaymentAccountResponse', - status: 'PayoutStatus', - reasonOfFailure: typing.Union[MetaOapg.properties.reasonOfFailure, str, schemas.Unset] = schemas.unset, - initMethod: typing.Union['PayoutInitMethod', schemas.Unset] = schemas.unset, - reportUrl: typing.Union[MetaOapg.properties.reportUrl, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'PayoutResponse': - return super().__new__( - cls, - *_args, - createdAt=createdAt, - instructionSet=instructionSet, - state=state, - payoutId=payoutId, - paymentAccount=paymentAccount, - status=status, - reasonOfFailure=reasonOfFailure, - initMethod=initMethod, - reportUrl=reportUrl, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.payment_account_response import PaymentAccountResponse -from fireblocks_client.model.payout_init_method import PayoutInitMethod -from fireblocks_client.model.payout_instruction_response import PayoutInstructionResponse -from fireblocks_client.model.payout_state import PayoutState -from fireblocks_client.model.payout_status import PayoutStatus diff --git a/fireblocks_client/model/payout_response.pyi b/fireblocks_client/model/payout_response.pyi deleted file mode 100644 index 4a4bcd4e..00000000 --- a/fireblocks_client/model/payout_response.pyi +++ /dev/null @@ -1,217 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class PayoutResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "createdAt", - "instructionSet", - "state", - "payoutId", - "paymentAccount", - "status", - } - - class properties: - payoutId = schemas.StrSchema - - @staticmethod - def paymentAccount() -> typing.Type['PaymentAccountResponse']: - return PaymentAccountResponse - createdAt = schemas.NumberSchema - - @staticmethod - def state() -> typing.Type['PayoutState']: - return PayoutState - - @staticmethod - def status() -> typing.Type['PayoutStatus']: - return PayoutStatus - - - class instructionSet( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['PayoutInstructionResponse']: - return PayoutInstructionResponse - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['PayoutInstructionResponse'], typing.List['PayoutInstructionResponse']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'instructionSet': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'PayoutInstructionResponse': - return super().__getitem__(i) - reasonOfFailure = schemas.StrSchema - - @staticmethod - def initMethod() -> typing.Type['PayoutInitMethod']: - return PayoutInitMethod - reportUrl = schemas.StrSchema - __annotations__ = { - "payoutId": payoutId, - "paymentAccount": paymentAccount, - "createdAt": createdAt, - "state": state, - "status": status, - "instructionSet": instructionSet, - "reasonOfFailure": reasonOfFailure, - "initMethod": initMethod, - "reportUrl": reportUrl, - } - - createdAt: MetaOapg.properties.createdAt - instructionSet: MetaOapg.properties.instructionSet - state: 'PayoutState' - payoutId: MetaOapg.properties.payoutId - paymentAccount: 'PaymentAccountResponse' - status: 'PayoutStatus' - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["payoutId"]) -> MetaOapg.properties.payoutId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["paymentAccount"]) -> 'PaymentAccountResponse': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["createdAt"]) -> MetaOapg.properties.createdAt: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["state"]) -> 'PayoutState': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["status"]) -> 'PayoutStatus': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["instructionSet"]) -> MetaOapg.properties.instructionSet: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["reasonOfFailure"]) -> MetaOapg.properties.reasonOfFailure: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["initMethod"]) -> 'PayoutInitMethod': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["reportUrl"]) -> MetaOapg.properties.reportUrl: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["payoutId", "paymentAccount", "createdAt", "state", "status", "instructionSet", "reasonOfFailure", "initMethod", "reportUrl", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["payoutId"]) -> MetaOapg.properties.payoutId: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["paymentAccount"]) -> 'PaymentAccountResponse': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["createdAt"]) -> MetaOapg.properties.createdAt: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["state"]) -> 'PayoutState': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> 'PayoutStatus': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["instructionSet"]) -> MetaOapg.properties.instructionSet: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["reasonOfFailure"]) -> typing.Union[MetaOapg.properties.reasonOfFailure, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["initMethod"]) -> typing.Union['PayoutInitMethod', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["reportUrl"]) -> typing.Union[MetaOapg.properties.reportUrl, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["payoutId", "paymentAccount", "createdAt", "state", "status", "instructionSet", "reasonOfFailure", "initMethod", "reportUrl", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - createdAt: typing.Union[MetaOapg.properties.createdAt, decimal.Decimal, int, float, ], - instructionSet: typing.Union[MetaOapg.properties.instructionSet, list, tuple, ], - state: 'PayoutState', - payoutId: typing.Union[MetaOapg.properties.payoutId, str, ], - paymentAccount: 'PaymentAccountResponse', - status: 'PayoutStatus', - reasonOfFailure: typing.Union[MetaOapg.properties.reasonOfFailure, str, schemas.Unset] = schemas.unset, - initMethod: typing.Union['PayoutInitMethod', schemas.Unset] = schemas.unset, - reportUrl: typing.Union[MetaOapg.properties.reportUrl, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'PayoutResponse': - return super().__new__( - cls, - *_args, - createdAt=createdAt, - instructionSet=instructionSet, - state=state, - payoutId=payoutId, - paymentAccount=paymentAccount, - status=status, - reasonOfFailure=reasonOfFailure, - initMethod=initMethod, - reportUrl=reportUrl, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.payment_account_response import PaymentAccountResponse -from fireblocks_client.model.payout_init_method import PayoutInitMethod -from fireblocks_client.model.payout_instruction_response import PayoutInstructionResponse -from fireblocks_client.model.payout_state import PayoutState -from fireblocks_client.model.payout_status import PayoutStatus diff --git a/fireblocks_client/model/payout_state.py b/fireblocks_client/model/payout_state.py deleted file mode 100644 index 94a85746..00000000 --- a/fireblocks_client/model/payout_state.py +++ /dev/null @@ -1,96 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class PayoutState( - schemas.EnumBase, - schemas.StrSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - - CREATED - payout instruction set created with all its details -- FILE_FOUND - new file found in the FTP -- REQUESTED - payout requested with all its details -- TRANSLATED - payout instruction account IDs identified and translated -- PROCESSING - payout instruction set executed and is processing -- SUBMITTED - transactions submitted for payout instructions -- FINALIZED - payout finished processing, all transactions processed successfully -- INSUFFICIENT_BALANCE - insufficient balance in the payment account (can be a temporary state) -- FAILED - one or more of the payout instructions failed - - """ - - - class MetaOapg: - enum_value_to_name = { - "CREATED": "CREATED", - "FILE_FOUND": "FILE_FOUND", - "REQUESTED": "REQUESTED", - "TRANSLATED": "TRANSLATED", - "PROCESSING": "PROCESSING", - "SUBMITTED": "SUBMITTED", - "FINALIZED": "FINALIZED", - "INSUFFICIENT_BALANCE": "INSUFFICIENT_BALANCE", - "FAILED": "FAILED", - } - - @schemas.classproperty - def CREATED(cls): - return cls("CREATED") - - @schemas.classproperty - def FILE_FOUND(cls): - return cls("FILE_FOUND") - - @schemas.classproperty - def REQUESTED(cls): - return cls("REQUESTED") - - @schemas.classproperty - def TRANSLATED(cls): - return cls("TRANSLATED") - - @schemas.classproperty - def PROCESSING(cls): - return cls("PROCESSING") - - @schemas.classproperty - def SUBMITTED(cls): - return cls("SUBMITTED") - - @schemas.classproperty - def FINALIZED(cls): - return cls("FINALIZED") - - @schemas.classproperty - def INSUFFICIENT_BALANCE(cls): - return cls("INSUFFICIENT_BALANCE") - - @schemas.classproperty - def FAILED(cls): - return cls("FAILED") diff --git a/fireblocks_client/model/payout_state.pyi b/fireblocks_client/model/payout_state.pyi deleted file mode 100644 index 29e8ca3b..00000000 --- a/fireblocks_client/model/payout_state.pyi +++ /dev/null @@ -1,82 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class PayoutState( - schemas.EnumBase, - schemas.StrSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - - CREATED - payout instruction set created with all its details -- FILE_FOUND - new file found in the FTP -- REQUESTED - payout requested with all its details -- TRANSLATED - payout instruction account IDs identified and translated -- PROCESSING - payout instruction set executed and is processing -- SUBMITTED - transactions submitted for payout instructions -- FINALIZED - payout finished processing, all transactions processed successfully -- INSUFFICIENT_BALANCE - insufficient balance in the payment account (can be a temporary state) -- FAILED - one or more of the payout instructions failed - - """ - - @schemas.classproperty - def CREATED(cls): - return cls("CREATED") - - @schemas.classproperty - def FILE_FOUND(cls): - return cls("FILE_FOUND") - - @schemas.classproperty - def REQUESTED(cls): - return cls("REQUESTED") - - @schemas.classproperty - def TRANSLATED(cls): - return cls("TRANSLATED") - - @schemas.classproperty - def PROCESSING(cls): - return cls("PROCESSING") - - @schemas.classproperty - def SUBMITTED(cls): - return cls("SUBMITTED") - - @schemas.classproperty - def FINALIZED(cls): - return cls("FINALIZED") - - @schemas.classproperty - def INSUFFICIENT_BALANCE(cls): - return cls("INSUFFICIENT_BALANCE") - - @schemas.classproperty - def FAILED(cls): - return cls("FAILED") diff --git a/fireblocks_client/model/payout_status.py b/fireblocks_client/model/payout_status.py deleted file mode 100644 index 8b17917a..00000000 --- a/fireblocks_client/model/payout_status.py +++ /dev/null @@ -1,78 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class PayoutStatus( - schemas.EnumBase, - schemas.StrSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - - REQUESTED payout requested with all its details -- VERIFIED payout instruction set details were verified -- PROCESSING payout instruction set executed and is processing -- FINALIZED payout done (all payout instructions completed successfully) -- INSUFFICIENT_BALANCE insufficient balance in the payment account (can be a temporary state) -- FAILED one or more of the payout instructions failed - - """ - - - class MetaOapg: - enum_value_to_name = { - "REGISTERED": "REGISTERED", - "VERIFYING": "VERIFYING", - "IN_PROGRESS": "IN_PROGRESS", - "DONE": "DONE", - "INSUFFICIENT_BALANCE": "INSUFFICIENT_BALANCE", - "FAILED": "FAILED", - } - - @schemas.classproperty - def REGISTERED(cls): - return cls("REGISTERED") - - @schemas.classproperty - def VERIFYING(cls): - return cls("VERIFYING") - - @schemas.classproperty - def IN_PROGRESS(cls): - return cls("IN_PROGRESS") - - @schemas.classproperty - def DONE(cls): - return cls("DONE") - - @schemas.classproperty - def INSUFFICIENT_BALANCE(cls): - return cls("INSUFFICIENT_BALANCE") - - @schemas.classproperty - def FAILED(cls): - return cls("FAILED") diff --git a/fireblocks_client/model/payout_status.pyi b/fireblocks_client/model/payout_status.pyi deleted file mode 100644 index 4123d72f..00000000 --- a/fireblocks_client/model/payout_status.pyi +++ /dev/null @@ -1,67 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class PayoutStatus( - schemas.EnumBase, - schemas.StrSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - - REQUESTED payout requested with all its details -- VERIFIED payout instruction set details were verified -- PROCESSING payout instruction set executed and is processing -- FINALIZED payout done (all payout instructions completed successfully) -- INSUFFICIENT_BALANCE insufficient balance in the payment account (can be a temporary state) -- FAILED one or more of the payout instructions failed - - """ - - @schemas.classproperty - def REGISTERED(cls): - return cls("REGISTERED") - - @schemas.classproperty - def VERIFYING(cls): - return cls("VERIFYING") - - @schemas.classproperty - def IN_PROGRESS(cls): - return cls("IN_PROGRESS") - - @schemas.classproperty - def DONE(cls): - return cls("DONE") - - @schemas.classproperty - def INSUFFICIENT_BALANCE(cls): - return cls("INSUFFICIENT_BALANCE") - - @schemas.classproperty - def FAILED(cls): - return cls("FAILED") diff --git a/fireblocks_client/model/policy_and_validation_response.py b/fireblocks_client/model/policy_and_validation_response.py deleted file mode 100644 index ea856324..00000000 --- a/fireblocks_client/model/policy_and_validation_response.py +++ /dev/null @@ -1,107 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class PolicyAndValidationResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Policy validation - """ - - - class MetaOapg: - required = { - "validation", - "policy", - } - - class properties: - - @staticmethod - def policy() -> typing.Type['PolicyResponse']: - return PolicyResponse - - @staticmethod - def validation() -> typing.Type['PolicyValidation']: - return PolicyValidation - __annotations__ = { - "policy": policy, - "validation": validation, - } - - validation: 'PolicyValidation' - policy: 'PolicyResponse' - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["policy"]) -> 'PolicyResponse': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["validation"]) -> 'PolicyValidation': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["policy", "validation", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["policy"]) -> 'PolicyResponse': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["validation"]) -> 'PolicyValidation': ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["policy", "validation", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - validation: 'PolicyValidation', - policy: 'PolicyResponse', - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'PolicyAndValidationResponse': - return super().__new__( - cls, - *_args, - validation=validation, - policy=policy, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.policy_response import PolicyResponse -from fireblocks_client.model.policy_validation import PolicyValidation diff --git a/fireblocks_client/model/policy_and_validation_response.pyi b/fireblocks_client/model/policy_and_validation_response.pyi deleted file mode 100644 index ea856324..00000000 --- a/fireblocks_client/model/policy_and_validation_response.pyi +++ /dev/null @@ -1,107 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class PolicyAndValidationResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Policy validation - """ - - - class MetaOapg: - required = { - "validation", - "policy", - } - - class properties: - - @staticmethod - def policy() -> typing.Type['PolicyResponse']: - return PolicyResponse - - @staticmethod - def validation() -> typing.Type['PolicyValidation']: - return PolicyValidation - __annotations__ = { - "policy": policy, - "validation": validation, - } - - validation: 'PolicyValidation' - policy: 'PolicyResponse' - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["policy"]) -> 'PolicyResponse': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["validation"]) -> 'PolicyValidation': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["policy", "validation", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["policy"]) -> 'PolicyResponse': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["validation"]) -> 'PolicyValidation': ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["policy", "validation", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - validation: 'PolicyValidation', - policy: 'PolicyResponse', - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'PolicyAndValidationResponse': - return super().__new__( - cls, - *_args, - validation=validation, - policy=policy, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.policy_response import PolicyResponse -from fireblocks_client.model.policy_validation import PolicyValidation diff --git a/fireblocks_client/model/policy_check_result.py b/fireblocks_client/model/policy_check_result.py deleted file mode 100644 index d23ccae3..00000000 --- a/fireblocks_client/model/policy_check_result.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class PolicyCheckResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Policy rules validation result - """ - - - class MetaOapg: - required = { - "result", - "errors", - } - - class properties: - errors = schemas.NumberSchema - - - class result( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['PolicyRuleCheckResult']: - return PolicyRuleCheckResult - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['PolicyRuleCheckResult'], typing.List['PolicyRuleCheckResult']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'result': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'PolicyRuleCheckResult': - return super().__getitem__(i) - __annotations__ = { - "errors": errors, - "result": result, - } - - result: MetaOapg.properties.result - errors: MetaOapg.properties.errors - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["errors"]) -> MetaOapg.properties.errors: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["result"]) -> MetaOapg.properties.result: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["errors", "result", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["errors"]) -> MetaOapg.properties.errors: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["result"]) -> MetaOapg.properties.result: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["errors", "result", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - result: typing.Union[MetaOapg.properties.result, list, tuple, ], - errors: typing.Union[MetaOapg.properties.errors, decimal.Decimal, int, float, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'PolicyCheckResult': - return super().__new__( - cls, - *_args, - result=result, - errors=errors, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.policy_rule_check_result import PolicyRuleCheckResult diff --git a/fireblocks_client/model/policy_check_result.pyi b/fireblocks_client/model/policy_check_result.pyi deleted file mode 100644 index d23ccae3..00000000 --- a/fireblocks_client/model/policy_check_result.pyi +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class PolicyCheckResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Policy rules validation result - """ - - - class MetaOapg: - required = { - "result", - "errors", - } - - class properties: - errors = schemas.NumberSchema - - - class result( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['PolicyRuleCheckResult']: - return PolicyRuleCheckResult - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['PolicyRuleCheckResult'], typing.List['PolicyRuleCheckResult']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'result': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'PolicyRuleCheckResult': - return super().__getitem__(i) - __annotations__ = { - "errors": errors, - "result": result, - } - - result: MetaOapg.properties.result - errors: MetaOapg.properties.errors - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["errors"]) -> MetaOapg.properties.errors: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["result"]) -> MetaOapg.properties.result: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["errors", "result", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["errors"]) -> MetaOapg.properties.errors: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["result"]) -> MetaOapg.properties.result: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["errors", "result", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - result: typing.Union[MetaOapg.properties.result, list, tuple, ], - errors: typing.Union[MetaOapg.properties.errors, decimal.Decimal, int, float, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'PolicyCheckResult': - return super().__new__( - cls, - *_args, - result=result, - errors=errors, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.policy_rule_check_result import PolicyRuleCheckResult diff --git a/fireblocks_client/model/policy_metadata.py b/fireblocks_client/model/policy_metadata.py deleted file mode 100644 index d1f1812d..00000000 --- a/fireblocks_client/model/policy_metadata.py +++ /dev/null @@ -1,111 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class PolicyMetadata( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Policy related metadata - """ - - - class MetaOapg: - - class properties: - editedBy = schemas.StrSchema - editedAt = schemas.StrSchema - publishedBy = schemas.StrSchema - publishedAt = schemas.StrSchema - __annotations__ = { - "editedBy": editedBy, - "editedAt": editedAt, - "publishedBy": publishedBy, - "publishedAt": publishedAt, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["editedBy"]) -> MetaOapg.properties.editedBy: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["editedAt"]) -> MetaOapg.properties.editedAt: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["publishedBy"]) -> MetaOapg.properties.publishedBy: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["publishedAt"]) -> MetaOapg.properties.publishedAt: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["editedBy", "editedAt", "publishedBy", "publishedAt", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["editedBy"]) -> typing.Union[MetaOapg.properties.editedBy, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["editedAt"]) -> typing.Union[MetaOapg.properties.editedAt, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["publishedBy"]) -> typing.Union[MetaOapg.properties.publishedBy, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["publishedAt"]) -> typing.Union[MetaOapg.properties.publishedAt, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["editedBy", "editedAt", "publishedBy", "publishedAt", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - editedBy: typing.Union[MetaOapg.properties.editedBy, str, schemas.Unset] = schemas.unset, - editedAt: typing.Union[MetaOapg.properties.editedAt, str, schemas.Unset] = schemas.unset, - publishedBy: typing.Union[MetaOapg.properties.publishedBy, str, schemas.Unset] = schemas.unset, - publishedAt: typing.Union[MetaOapg.properties.publishedAt, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'PolicyMetadata': - return super().__new__( - cls, - *_args, - editedBy=editedBy, - editedAt=editedAt, - publishedBy=publishedBy, - publishedAt=publishedAt, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/policy_metadata.pyi b/fireblocks_client/model/policy_metadata.pyi deleted file mode 100644 index d1f1812d..00000000 --- a/fireblocks_client/model/policy_metadata.pyi +++ /dev/null @@ -1,111 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class PolicyMetadata( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Policy related metadata - """ - - - class MetaOapg: - - class properties: - editedBy = schemas.StrSchema - editedAt = schemas.StrSchema - publishedBy = schemas.StrSchema - publishedAt = schemas.StrSchema - __annotations__ = { - "editedBy": editedBy, - "editedAt": editedAt, - "publishedBy": publishedBy, - "publishedAt": publishedAt, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["editedBy"]) -> MetaOapg.properties.editedBy: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["editedAt"]) -> MetaOapg.properties.editedAt: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["publishedBy"]) -> MetaOapg.properties.publishedBy: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["publishedAt"]) -> MetaOapg.properties.publishedAt: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["editedBy", "editedAt", "publishedBy", "publishedAt", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["editedBy"]) -> typing.Union[MetaOapg.properties.editedBy, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["editedAt"]) -> typing.Union[MetaOapg.properties.editedAt, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["publishedBy"]) -> typing.Union[MetaOapg.properties.publishedBy, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["publishedAt"]) -> typing.Union[MetaOapg.properties.publishedAt, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["editedBy", "editedAt", "publishedBy", "publishedAt", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - editedBy: typing.Union[MetaOapg.properties.editedBy, str, schemas.Unset] = schemas.unset, - editedAt: typing.Union[MetaOapg.properties.editedAt, str, schemas.Unset] = schemas.unset, - publishedBy: typing.Union[MetaOapg.properties.publishedBy, str, schemas.Unset] = schemas.unset, - publishedAt: typing.Union[MetaOapg.properties.publishedAt, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'PolicyMetadata': - return super().__new__( - cls, - *_args, - editedBy=editedBy, - editedAt=editedAt, - publishedBy=publishedBy, - publishedAt=publishedAt, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/policy_response.py b/fireblocks_client/model/policy_response.py deleted file mode 100644 index 99cfd3a4..00000000 --- a/fireblocks_client/model/policy_response.py +++ /dev/null @@ -1,129 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class PolicyResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Response object for policy operations - """ - - - class MetaOapg: - required = { - "metadata", - "rules", - } - - class properties: - - - class rules( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['PolicyRule']: - return PolicyRule - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['PolicyRule'], typing.List['PolicyRule']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'rules': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'PolicyRule': - return super().__getitem__(i) - - @staticmethod - def metadata() -> typing.Type['PolicyMetadata']: - return PolicyMetadata - __annotations__ = { - "rules": rules, - "metadata": metadata, - } - - metadata: 'PolicyMetadata' - rules: MetaOapg.properties.rules - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["rules"]) -> MetaOapg.properties.rules: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> 'PolicyMetadata': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["rules", "metadata", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["rules"]) -> MetaOapg.properties.rules: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> 'PolicyMetadata': ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["rules", "metadata", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - metadata: 'PolicyMetadata', - rules: typing.Union[MetaOapg.properties.rules, list, tuple, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'PolicyResponse': - return super().__new__( - cls, - *_args, - metadata=metadata, - rules=rules, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.policy_metadata import PolicyMetadata -from fireblocks_client.model.policy_rule import PolicyRule diff --git a/fireblocks_client/model/policy_response.pyi b/fireblocks_client/model/policy_response.pyi deleted file mode 100644 index 99cfd3a4..00000000 --- a/fireblocks_client/model/policy_response.pyi +++ /dev/null @@ -1,129 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class PolicyResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Response object for policy operations - """ - - - class MetaOapg: - required = { - "metadata", - "rules", - } - - class properties: - - - class rules( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['PolicyRule']: - return PolicyRule - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['PolicyRule'], typing.List['PolicyRule']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'rules': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'PolicyRule': - return super().__getitem__(i) - - @staticmethod - def metadata() -> typing.Type['PolicyMetadata']: - return PolicyMetadata - __annotations__ = { - "rules": rules, - "metadata": metadata, - } - - metadata: 'PolicyMetadata' - rules: MetaOapg.properties.rules - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["rules"]) -> MetaOapg.properties.rules: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> 'PolicyMetadata': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["rules", "metadata", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["rules"]) -> MetaOapg.properties.rules: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> 'PolicyMetadata': ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["rules", "metadata", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - metadata: 'PolicyMetadata', - rules: typing.Union[MetaOapg.properties.rules, list, tuple, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'PolicyResponse': - return super().__new__( - cls, - *_args, - metadata=metadata, - rules=rules, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.policy_metadata import PolicyMetadata -from fireblocks_client.model.policy_rule import PolicyRule diff --git a/fireblocks_client/model/policy_rule.py b/fireblocks_client/model/policy_rule.py deleted file mode 100644 index bb83971a..00000000 --- a/fireblocks_client/model/policy_rule.py +++ /dev/null @@ -1,1749 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class PolicyRule( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Policy rule which is enforced on transactions - """ - - - class MetaOapg: - required = { - "externalDescriptor", - "amount", - "periodSec", - "action", - "asset", - "type", - "amountScope", - "amountCurrency", - } - - class properties: - - - class type( - schemas.EnumBase, - schemas.StrSchema - ): - - - class MetaOapg: - enum_value_to_name = { - "TRANSFER": "TRANSFER", - } - - @schemas.classproperty - def TRANSFER(cls): - return cls("TRANSFER") - - - class action( - schemas.EnumBase, - schemas.StrSchema - ): - - - class MetaOapg: - enum_value_to_name = { - "ALLOW": "ALLOW", - "BLOCK": "BLOCK", - "2-TIER": "TIER", - } - - @schemas.classproperty - def ALLOW(cls): - return cls("ALLOW") - - @schemas.classproperty - def BLOCK(cls): - return cls("BLOCK") - - @schemas.classproperty - def TIER(cls): - return cls("2-TIER") - asset = schemas.StrSchema - - - class amountCurrency( - schemas.EnumBase, - schemas.StrSchema - ): - - - class MetaOapg: - enum_value_to_name = { - "USD": "USD", - "EUR": "EUR", - "NATIVE": "NATIVE", - } - - @schemas.classproperty - def USD(cls): - return cls("USD") - - @schemas.classproperty - def EUR(cls): - return cls("EUR") - - @schemas.classproperty - def NATIVE(cls): - return cls("NATIVE") - - - class amountScope( - schemas.EnumBase, - schemas.StrSchema - ): - - - class MetaOapg: - enum_value_to_name = { - "SINGLE_TX": "SINGLE_TX", - "TIMEFRAME": "TIMEFRAME", - } - - @schemas.classproperty - def SINGLE_TX(cls): - return cls("SINGLE_TX") - - @schemas.classproperty - def TIMEFRAME(cls): - return cls("TIMEFRAME") - amount = schemas.NumberSchema - periodSec = schemas.NumberSchema - externalDescriptor = schemas.StrSchema - operator = schemas.StrSchema - - - class operators( - schemas.DictSchema - ): - - - class MetaOapg: - - class properties: - - - class wildcard( - schemas.EnumBase, - schemas.StrSchema - ): - - - class MetaOapg: - enum_value_to_name = { - "*": "ASTERISK", - } - - @schemas.classproperty - def ASTERISK(cls): - return cls("*") - - - class users( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.StrSchema - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'users': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - - - class usersGroups( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.StrSchema - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'usersGroups': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - - - class services( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.StrSchema - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'services': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - __annotations__ = { - "wildcard": wildcard, - "users": users, - "usersGroups": usersGroups, - "services": services, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["wildcard"]) -> MetaOapg.properties.wildcard: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["users"]) -> MetaOapg.properties.users: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["usersGroups"]) -> MetaOapg.properties.usersGroups: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["services"]) -> MetaOapg.properties.services: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["wildcard", "users", "usersGroups", "services", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["wildcard"]) -> typing.Union[MetaOapg.properties.wildcard, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["users"]) -> typing.Union[MetaOapg.properties.users, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["usersGroups"]) -> typing.Union[MetaOapg.properties.usersGroups, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["services"]) -> typing.Union[MetaOapg.properties.services, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["wildcard", "users", "usersGroups", "services", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - wildcard: typing.Union[MetaOapg.properties.wildcard, str, schemas.Unset] = schemas.unset, - users: typing.Union[MetaOapg.properties.users, list, tuple, schemas.Unset] = schemas.unset, - usersGroups: typing.Union[MetaOapg.properties.usersGroups, list, tuple, schemas.Unset] = schemas.unset, - services: typing.Union[MetaOapg.properties.services, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'operators': - return super().__new__( - cls, - *_args, - wildcard=wildcard, - users=users, - usersGroups=usersGroups, - services=services, - _configuration=_configuration, - **kwargs, - ) - - - class transactionType( - schemas.EnumBase, - schemas.StrSchema - ): - - - class MetaOapg: - enum_value_to_name = { - "TRANSFER": "TRANSFER", - "CONTRACT_CALL": "CONTRACT_CALL", - "APPROVE": "APPROVE", - "MINT": "MINT", - "BURN": "BURN", - "SUPPLY": "SUPPLY", - "REDEEM": "REDEEM", - "STAKE": "STAKE", - "RAW": "RAW", - "TYPED_MESSAGE": "TYPED_MESSAGE", - } - - @schemas.classproperty - def TRANSFER(cls): - return cls("TRANSFER") - - @schemas.classproperty - def CONTRACT_CALL(cls): - return cls("CONTRACT_CALL") - - @schemas.classproperty - def APPROVE(cls): - return cls("APPROVE") - - @schemas.classproperty - def MINT(cls): - return cls("MINT") - - @schemas.classproperty - def BURN(cls): - return cls("BURN") - - @schemas.classproperty - def SUPPLY(cls): - return cls("SUPPLY") - - @schemas.classproperty - def REDEEM(cls): - return cls("REDEEM") - - @schemas.classproperty - def STAKE(cls): - return cls("STAKE") - - @schemas.classproperty - def RAW(cls): - return cls("RAW") - - @schemas.classproperty - def TYPED_MESSAGE(cls): - return cls("TYPED_MESSAGE") - designatedSigner = schemas.StrSchema - - - class designatedSigners( - schemas.DictSchema - ): - - - class MetaOapg: - - class properties: - - - class users( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.StrSchema - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'users': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - - - class usersGroups( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.StrSchema - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'usersGroups': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - __annotations__ = { - "users": users, - "usersGroups": usersGroups, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["users"]) -> MetaOapg.properties.users: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["usersGroups"]) -> MetaOapg.properties.usersGroups: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["users", "usersGroups", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["users"]) -> typing.Union[MetaOapg.properties.users, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["usersGroups"]) -> typing.Union[MetaOapg.properties.usersGroups, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["users", "usersGroups", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - users: typing.Union[MetaOapg.properties.users, list, tuple, schemas.Unset] = schemas.unset, - usersGroups: typing.Union[MetaOapg.properties.usersGroups, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'designatedSigners': - return super().__new__( - cls, - *_args, - users=users, - usersGroups=usersGroups, - _configuration=_configuration, - **kwargs, - ) - - - class srcType( - schemas.ComposedSchema, - ): - - - class MetaOapg: - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - PolicySrcOrDestType, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'srcType': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - - - class srcSubType( - schemas.ComposedSchema, - ): - - - class MetaOapg: - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - PolicySrcOrDestSubType, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'srcSubType': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - - - class srcId( - schemas.ComposedSchema, - ): - - - class MetaOapg: - all_of_0 = schemas.StrSchema - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.all_of_0, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'srcId': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - - - class src( - schemas.DictSchema - ): - - - class MetaOapg: - - class properties: - - - class ids( - schemas.ListSchema - ): - - - class MetaOapg: - - - class items( - schemas.ListSchema - ): - - - class MetaOapg: - max_items = 3 - min_items = 1 - - - class items( - schemas.ComposedSchema, - ): - - - class MetaOapg: - one_of_0 = schemas.StrSchema - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.one_of_0, - PolicySrcOrDestType, - PolicySrcOrDestSubType, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'items': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ]], typing.List[typing.Union[MetaOapg.items, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'items': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, list, tuple, ]], typing.List[typing.Union[MetaOapg.items, list, tuple, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'ids': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - __annotations__ = { - "ids": ids, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["ids"]) -> MetaOapg.properties.ids: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["ids", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["ids"]) -> typing.Union[MetaOapg.properties.ids, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["ids", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - ids: typing.Union[MetaOapg.properties.ids, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'src': - return super().__new__( - cls, - *_args, - ids=ids, - _configuration=_configuration, - **kwargs, - ) - - - class dstType( - schemas.ComposedSchema, - ): - - - class MetaOapg: - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - PolicySrcOrDestType, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'dstType': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - - - class dstSubType( - schemas.ComposedSchema, - ): - - - class MetaOapg: - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - PolicySrcOrDestSubType, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'dstSubType': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - - - class dstId( - schemas.ComposedSchema, - ): - - - class MetaOapg: - all_of_0 = schemas.StrSchema - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.all_of_0, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'dstId': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - - - class dst( - schemas.DictSchema - ): - - - class MetaOapg: - - class properties: - - - class ids( - schemas.ListSchema - ): - - - class MetaOapg: - - - class items( - schemas.ListSchema - ): - - - class MetaOapg: - max_items = 3 - min_items = 1 - - - class items( - schemas.ComposedSchema, - ): - - - class MetaOapg: - one_of_0 = schemas.StrSchema - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.one_of_0, - PolicySrcOrDestType, - PolicySrcOrDestSubType, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'items': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ]], typing.List[typing.Union[MetaOapg.items, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'items': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, list, tuple, ]], typing.List[typing.Union[MetaOapg.items, list, tuple, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'ids': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - __annotations__ = { - "ids": ids, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["ids"]) -> MetaOapg.properties.ids: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["ids", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["ids"]) -> typing.Union[MetaOapg.properties.ids, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["ids", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - ids: typing.Union[MetaOapg.properties.ids, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'dst': - return super().__new__( - cls, - *_args, - ids=ids, - _configuration=_configuration, - **kwargs, - ) - - - class dstAddressType( - schemas.EnumBase, - schemas.StrSchema - ): - - - class MetaOapg: - enum_value_to_name = { - "WHITELISTED": "WHITELISTED", - "ONE_TIME": "ONE_TIME", - "*": "ASTERISK", - } - - @schemas.classproperty - def WHITELISTED(cls): - return cls("WHITELISTED") - - @schemas.classproperty - def ONE_TIME(cls): - return cls("ONE_TIME") - - @schemas.classproperty - def ASTERISK(cls): - return cls("*") - - - class authorizers( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.StrSchema - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'authorizers': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - authorizersCount = schemas.NumberSchema - - - class authorizationGroups( - schemas.DictSchema - ): - - - class MetaOapg: - - class properties: - - - class logic( - schemas.EnumBase, - schemas.StrSchema - ): - - - class MetaOapg: - enum_value_to_name = { - "AND": "AND", - "OR": "OR", - } - - @schemas.classproperty - def AND(cls): - return cls("AND") - - @schemas.classproperty - def OR(cls): - return cls("OR") - allowOperatorAsAuthorizer = schemas.BoolSchema - - - class groups( - schemas.ListSchema - ): - - - class MetaOapg: - - - class items( - schemas.DictSchema - ): - - - class MetaOapg: - - class properties: - - - class users( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.StrSchema - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'users': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - - - class usersGroups( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.StrSchema - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'usersGroups': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - th = schemas.NumberSchema - __annotations__ = { - "users": users, - "usersGroups": usersGroups, - "th": th, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["users"]) -> MetaOapg.properties.users: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["usersGroups"]) -> MetaOapg.properties.usersGroups: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["th"]) -> MetaOapg.properties.th: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["users", "usersGroups", "th", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["users"]) -> typing.Union[MetaOapg.properties.users, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["usersGroups"]) -> typing.Union[MetaOapg.properties.usersGroups, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["th"]) -> typing.Union[MetaOapg.properties.th, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["users", "usersGroups", "th", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - users: typing.Union[MetaOapg.properties.users, list, tuple, schemas.Unset] = schemas.unset, - usersGroups: typing.Union[MetaOapg.properties.usersGroups, list, tuple, schemas.Unset] = schemas.unset, - th: typing.Union[MetaOapg.properties.th, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'items': - return super().__new__( - cls, - *_args, - users=users, - usersGroups=usersGroups, - th=th, - _configuration=_configuration, - **kwargs, - ) - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, dict, frozendict.frozendict, ]], typing.List[typing.Union[MetaOapg.items, dict, frozendict.frozendict, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'groups': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - __annotations__ = { - "logic": logic, - "allowOperatorAsAuthorizer": allowOperatorAsAuthorizer, - "groups": groups, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["logic"]) -> MetaOapg.properties.logic: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["allowOperatorAsAuthorizer"]) -> MetaOapg.properties.allowOperatorAsAuthorizer: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["groups"]) -> MetaOapg.properties.groups: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["logic", "allowOperatorAsAuthorizer", "groups", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["logic"]) -> typing.Union[MetaOapg.properties.logic, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["allowOperatorAsAuthorizer"]) -> typing.Union[MetaOapg.properties.allowOperatorAsAuthorizer, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["groups"]) -> typing.Union[MetaOapg.properties.groups, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["logic", "allowOperatorAsAuthorizer", "groups", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - logic: typing.Union[MetaOapg.properties.logic, str, schemas.Unset] = schemas.unset, - allowOperatorAsAuthorizer: typing.Union[MetaOapg.properties.allowOperatorAsAuthorizer, bool, schemas.Unset] = schemas.unset, - groups: typing.Union[MetaOapg.properties.groups, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'authorizationGroups': - return super().__new__( - cls, - *_args, - logic=logic, - allowOperatorAsAuthorizer=allowOperatorAsAuthorizer, - groups=groups, - _configuration=_configuration, - **kwargs, - ) - - - class amountAggregation( - schemas.DictSchema - ): - - - class MetaOapg: - - class properties: - - @staticmethod - def operators() -> typing.Type['AmountAggregationTimePeriodMethod']: - return AmountAggregationTimePeriodMethod - - @staticmethod - def srcTransferPeers() -> typing.Type['AmountAggregationTimePeriodMethod']: - return AmountAggregationTimePeriodMethod - - @staticmethod - def dstTransferPeers() -> typing.Type['AmountAggregationTimePeriodMethod']: - return AmountAggregationTimePeriodMethod - __annotations__ = { - "operators": operators, - "srcTransferPeers": srcTransferPeers, - "dstTransferPeers": dstTransferPeers, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["operators"]) -> 'AmountAggregationTimePeriodMethod': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["srcTransferPeers"]) -> 'AmountAggregationTimePeriodMethod': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["dstTransferPeers"]) -> 'AmountAggregationTimePeriodMethod': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["operators", "srcTransferPeers", "dstTransferPeers", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["operators"]) -> typing.Union['AmountAggregationTimePeriodMethod', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["srcTransferPeers"]) -> typing.Union['AmountAggregationTimePeriodMethod', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["dstTransferPeers"]) -> typing.Union['AmountAggregationTimePeriodMethod', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["operators", "srcTransferPeers", "dstTransferPeers", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - operators: typing.Union['AmountAggregationTimePeriodMethod', schemas.Unset] = schemas.unset, - srcTransferPeers: typing.Union['AmountAggregationTimePeriodMethod', schemas.Unset] = schemas.unset, - dstTransferPeers: typing.Union['AmountAggregationTimePeriodMethod', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'amountAggregation': - return super().__new__( - cls, - *_args, - operators=operators, - srcTransferPeers=srcTransferPeers, - dstTransferPeers=dstTransferPeers, - _configuration=_configuration, - **kwargs, - ) - - - class rawMessageSigning( - schemas.DictSchema - ): - - - class MetaOapg: - - class properties: - algorithm = schemas.StrSchema - - - class derivationPath( - schemas.DictSchema - ): - - - class MetaOapg: - - class properties: - - - class path( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.NumberSchema - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, decimal.Decimal, int, float, ]], typing.List[typing.Union[MetaOapg.items, decimal.Decimal, int, float, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'path': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - __annotations__ = { - "path": path, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["path"]) -> MetaOapg.properties.path: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["path", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["path"]) -> typing.Union[MetaOapg.properties.path, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["path", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - path: typing.Union[MetaOapg.properties.path, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'derivationPath': - return super().__new__( - cls, - *_args, - path=path, - _configuration=_configuration, - **kwargs, - ) - __annotations__ = { - "algorithm": algorithm, - "derivationPath": derivationPath, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["algorithm"]) -> MetaOapg.properties.algorithm: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["derivationPath"]) -> MetaOapg.properties.derivationPath: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["algorithm", "derivationPath", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["algorithm"]) -> typing.Union[MetaOapg.properties.algorithm, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["derivationPath"]) -> typing.Union[MetaOapg.properties.derivationPath, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["algorithm", "derivationPath", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - algorithm: typing.Union[MetaOapg.properties.algorithm, str, schemas.Unset] = schemas.unset, - derivationPath: typing.Union[MetaOapg.properties.derivationPath, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'rawMessageSigning': - return super().__new__( - cls, - *_args, - algorithm=algorithm, - derivationPath=derivationPath, - _configuration=_configuration, - **kwargs, - ) - applyForApprove = schemas.BoolSchema - applyForTypedMessage = schemas.BoolSchema - __annotations__ = { - "type": type, - "action": action, - "asset": asset, - "amountCurrency": amountCurrency, - "amountScope": amountScope, - "amount": amount, - "periodSec": periodSec, - "externalDescriptor": externalDescriptor, - "operator": operator, - "operators": operators, - "transactionType": transactionType, - "designatedSigner": designatedSigner, - "designatedSigners": designatedSigners, - "srcType": srcType, - "srcSubType": srcSubType, - "srcId": srcId, - "src": src, - "dstType": dstType, - "dstSubType": dstSubType, - "dstId": dstId, - "dst": dst, - "dstAddressType": dstAddressType, - "authorizers": authorizers, - "authorizersCount": authorizersCount, - "authorizationGroups": authorizationGroups, - "amountAggregation": amountAggregation, - "rawMessageSigning": rawMessageSigning, - "applyForApprove": applyForApprove, - "applyForTypedMessage": applyForTypedMessage, - } - - externalDescriptor: MetaOapg.properties.externalDescriptor - amount: MetaOapg.properties.amount - periodSec: MetaOapg.properties.periodSec - action: MetaOapg.properties.action - asset: MetaOapg.properties.asset - type: MetaOapg.properties.type - amountScope: MetaOapg.properties.amountScope - amountCurrency: MetaOapg.properties.amountCurrency - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["action"]) -> MetaOapg.properties.action: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["asset"]) -> MetaOapg.properties.asset: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["amountCurrency"]) -> MetaOapg.properties.amountCurrency: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["amountScope"]) -> MetaOapg.properties.amountScope: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["amount"]) -> MetaOapg.properties.amount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["periodSec"]) -> MetaOapg.properties.periodSec: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["externalDescriptor"]) -> MetaOapg.properties.externalDescriptor: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["operator"]) -> MetaOapg.properties.operator: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["operators"]) -> MetaOapg.properties.operators: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["transactionType"]) -> MetaOapg.properties.transactionType: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["designatedSigner"]) -> MetaOapg.properties.designatedSigner: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["designatedSigners"]) -> MetaOapg.properties.designatedSigners: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["srcType"]) -> MetaOapg.properties.srcType: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["srcSubType"]) -> MetaOapg.properties.srcSubType: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["srcId"]) -> MetaOapg.properties.srcId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["src"]) -> MetaOapg.properties.src: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["dstType"]) -> MetaOapg.properties.dstType: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["dstSubType"]) -> MetaOapg.properties.dstSubType: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["dstId"]) -> MetaOapg.properties.dstId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["dst"]) -> MetaOapg.properties.dst: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["dstAddressType"]) -> MetaOapg.properties.dstAddressType: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["authorizers"]) -> MetaOapg.properties.authorizers: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["authorizersCount"]) -> MetaOapg.properties.authorizersCount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["authorizationGroups"]) -> MetaOapg.properties.authorizationGroups: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["amountAggregation"]) -> MetaOapg.properties.amountAggregation: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["rawMessageSigning"]) -> MetaOapg.properties.rawMessageSigning: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["applyForApprove"]) -> MetaOapg.properties.applyForApprove: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["applyForTypedMessage"]) -> MetaOapg.properties.applyForTypedMessage: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["type", "action", "asset", "amountCurrency", "amountScope", "amount", "periodSec", "externalDescriptor", "operator", "operators", "transactionType", "designatedSigner", "designatedSigners", "srcType", "srcSubType", "srcId", "src", "dstType", "dstSubType", "dstId", "dst", "dstAddressType", "authorizers", "authorizersCount", "authorizationGroups", "amountAggregation", "rawMessageSigning", "applyForApprove", "applyForTypedMessage", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["action"]) -> MetaOapg.properties.action: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["asset"]) -> MetaOapg.properties.asset: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["amountCurrency"]) -> MetaOapg.properties.amountCurrency: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["amountScope"]) -> MetaOapg.properties.amountScope: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["amount"]) -> MetaOapg.properties.amount: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["periodSec"]) -> MetaOapg.properties.periodSec: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["externalDescriptor"]) -> MetaOapg.properties.externalDescriptor: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["operator"]) -> typing.Union[MetaOapg.properties.operator, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["operators"]) -> typing.Union[MetaOapg.properties.operators, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["transactionType"]) -> typing.Union[MetaOapg.properties.transactionType, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["designatedSigner"]) -> typing.Union[MetaOapg.properties.designatedSigner, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["designatedSigners"]) -> typing.Union[MetaOapg.properties.designatedSigners, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["srcType"]) -> typing.Union[MetaOapg.properties.srcType, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["srcSubType"]) -> typing.Union[MetaOapg.properties.srcSubType, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["srcId"]) -> typing.Union[MetaOapg.properties.srcId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["src"]) -> typing.Union[MetaOapg.properties.src, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["dstType"]) -> typing.Union[MetaOapg.properties.dstType, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["dstSubType"]) -> typing.Union[MetaOapg.properties.dstSubType, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["dstId"]) -> typing.Union[MetaOapg.properties.dstId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["dst"]) -> typing.Union[MetaOapg.properties.dst, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["dstAddressType"]) -> typing.Union[MetaOapg.properties.dstAddressType, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["authorizers"]) -> typing.Union[MetaOapg.properties.authorizers, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["authorizersCount"]) -> typing.Union[MetaOapg.properties.authorizersCount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["authorizationGroups"]) -> typing.Union[MetaOapg.properties.authorizationGroups, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["amountAggregation"]) -> typing.Union[MetaOapg.properties.amountAggregation, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["rawMessageSigning"]) -> typing.Union[MetaOapg.properties.rawMessageSigning, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["applyForApprove"]) -> typing.Union[MetaOapg.properties.applyForApprove, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["applyForTypedMessage"]) -> typing.Union[MetaOapg.properties.applyForTypedMessage, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["type", "action", "asset", "amountCurrency", "amountScope", "amount", "periodSec", "externalDescriptor", "operator", "operators", "transactionType", "designatedSigner", "designatedSigners", "srcType", "srcSubType", "srcId", "src", "dstType", "dstSubType", "dstId", "dst", "dstAddressType", "authorizers", "authorizersCount", "authorizationGroups", "amountAggregation", "rawMessageSigning", "applyForApprove", "applyForTypedMessage", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - externalDescriptor: typing.Union[MetaOapg.properties.externalDescriptor, str, ], - amount: typing.Union[MetaOapg.properties.amount, decimal.Decimal, int, float, ], - periodSec: typing.Union[MetaOapg.properties.periodSec, decimal.Decimal, int, float, ], - action: typing.Union[MetaOapg.properties.action, str, ], - asset: typing.Union[MetaOapg.properties.asset, str, ], - type: typing.Union[MetaOapg.properties.type, str, ], - amountScope: typing.Union[MetaOapg.properties.amountScope, str, ], - amountCurrency: typing.Union[MetaOapg.properties.amountCurrency, str, ], - operator: typing.Union[MetaOapg.properties.operator, str, schemas.Unset] = schemas.unset, - operators: typing.Union[MetaOapg.properties.operators, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - transactionType: typing.Union[MetaOapg.properties.transactionType, str, schemas.Unset] = schemas.unset, - designatedSigner: typing.Union[MetaOapg.properties.designatedSigner, str, schemas.Unset] = schemas.unset, - designatedSigners: typing.Union[MetaOapg.properties.designatedSigners, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - srcType: typing.Union[MetaOapg.properties.srcType, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - srcSubType: typing.Union[MetaOapg.properties.srcSubType, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - srcId: typing.Union[MetaOapg.properties.srcId, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - src: typing.Union[MetaOapg.properties.src, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - dstType: typing.Union[MetaOapg.properties.dstType, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - dstSubType: typing.Union[MetaOapg.properties.dstSubType, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - dstId: typing.Union[MetaOapg.properties.dstId, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - dst: typing.Union[MetaOapg.properties.dst, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - dstAddressType: typing.Union[MetaOapg.properties.dstAddressType, str, schemas.Unset] = schemas.unset, - authorizers: typing.Union[MetaOapg.properties.authorizers, list, tuple, schemas.Unset] = schemas.unset, - authorizersCount: typing.Union[MetaOapg.properties.authorizersCount, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, - authorizationGroups: typing.Union[MetaOapg.properties.authorizationGroups, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - amountAggregation: typing.Union[MetaOapg.properties.amountAggregation, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - rawMessageSigning: typing.Union[MetaOapg.properties.rawMessageSigning, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - applyForApprove: typing.Union[MetaOapg.properties.applyForApprove, bool, schemas.Unset] = schemas.unset, - applyForTypedMessage: typing.Union[MetaOapg.properties.applyForTypedMessage, bool, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'PolicyRule': - return super().__new__( - cls, - *_args, - externalDescriptor=externalDescriptor, - amount=amount, - periodSec=periodSec, - action=action, - asset=asset, - type=type, - amountScope=amountScope, - amountCurrency=amountCurrency, - operator=operator, - operators=operators, - transactionType=transactionType, - designatedSigner=designatedSigner, - designatedSigners=designatedSigners, - srcType=srcType, - srcSubType=srcSubType, - srcId=srcId, - src=src, - dstType=dstType, - dstSubType=dstSubType, - dstId=dstId, - dst=dst, - dstAddressType=dstAddressType, - authorizers=authorizers, - authorizersCount=authorizersCount, - authorizationGroups=authorizationGroups, - amountAggregation=amountAggregation, - rawMessageSigning=rawMessageSigning, - applyForApprove=applyForApprove, - applyForTypedMessage=applyForTypedMessage, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.amount_aggregation_time_period_method import AmountAggregationTimePeriodMethod -from fireblocks_client.model.policy_src_or_dest_sub_type import PolicySrcOrDestSubType -from fireblocks_client.model.policy_src_or_dest_type import PolicySrcOrDestType diff --git a/fireblocks_client/model/policy_rule.pyi b/fireblocks_client/model/policy_rule.pyi deleted file mode 100644 index 9d5e7286..00000000 --- a/fireblocks_client/model/policy_rule.pyi +++ /dev/null @@ -1,1680 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class PolicyRule( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Policy rule which is enforced on transactions - """ - - - class MetaOapg: - required = { - "externalDescriptor", - "amount", - "periodSec", - "action", - "asset", - "type", - "amountScope", - "amountCurrency", - } - - class properties: - - - class type( - schemas.EnumBase, - schemas.StrSchema - ): - - @schemas.classproperty - def TRANSFER(cls): - return cls("TRANSFER") - - - class action( - schemas.EnumBase, - schemas.StrSchema - ): - - @schemas.classproperty - def ALLOW(cls): - return cls("ALLOW") - - @schemas.classproperty - def BLOCK(cls): - return cls("BLOCK") - - @schemas.classproperty - def TIER(cls): - return cls("2-TIER") - asset = schemas.StrSchema - - - class amountCurrency( - schemas.EnumBase, - schemas.StrSchema - ): - - @schemas.classproperty - def USD(cls): - return cls("USD") - - @schemas.classproperty - def EUR(cls): - return cls("EUR") - - @schemas.classproperty - def NATIVE(cls): - return cls("NATIVE") - - - class amountScope( - schemas.EnumBase, - schemas.StrSchema - ): - - @schemas.classproperty - def SINGLE_TX(cls): - return cls("SINGLE_TX") - - @schemas.classproperty - def TIMEFRAME(cls): - return cls("TIMEFRAME") - amount = schemas.NumberSchema - periodSec = schemas.NumberSchema - externalDescriptor = schemas.StrSchema - operator = schemas.StrSchema - - - class operators( - schemas.DictSchema - ): - - - class MetaOapg: - - class properties: - - - class wildcard( - schemas.EnumBase, - schemas.StrSchema - ): - - @schemas.classproperty - def ASTERISK(cls): - return cls("*") - - - class users( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.StrSchema - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'users': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - - - class usersGroups( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.StrSchema - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'usersGroups': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - - - class services( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.StrSchema - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'services': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - __annotations__ = { - "wildcard": wildcard, - "users": users, - "usersGroups": usersGroups, - "services": services, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["wildcard"]) -> MetaOapg.properties.wildcard: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["users"]) -> MetaOapg.properties.users: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["usersGroups"]) -> MetaOapg.properties.usersGroups: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["services"]) -> MetaOapg.properties.services: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["wildcard", "users", "usersGroups", "services", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["wildcard"]) -> typing.Union[MetaOapg.properties.wildcard, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["users"]) -> typing.Union[MetaOapg.properties.users, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["usersGroups"]) -> typing.Union[MetaOapg.properties.usersGroups, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["services"]) -> typing.Union[MetaOapg.properties.services, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["wildcard", "users", "usersGroups", "services", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - wildcard: typing.Union[MetaOapg.properties.wildcard, str, schemas.Unset] = schemas.unset, - users: typing.Union[MetaOapg.properties.users, list, tuple, schemas.Unset] = schemas.unset, - usersGroups: typing.Union[MetaOapg.properties.usersGroups, list, tuple, schemas.Unset] = schemas.unset, - services: typing.Union[MetaOapg.properties.services, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'operators': - return super().__new__( - cls, - *_args, - wildcard=wildcard, - users=users, - usersGroups=usersGroups, - services=services, - _configuration=_configuration, - **kwargs, - ) - - - class transactionType( - schemas.EnumBase, - schemas.StrSchema - ): - - @schemas.classproperty - def TRANSFER(cls): - return cls("TRANSFER") - - @schemas.classproperty - def CONTRACT_CALL(cls): - return cls("CONTRACT_CALL") - - @schemas.classproperty - def APPROVE(cls): - return cls("APPROVE") - - @schemas.classproperty - def MINT(cls): - return cls("MINT") - - @schemas.classproperty - def BURN(cls): - return cls("BURN") - - @schemas.classproperty - def SUPPLY(cls): - return cls("SUPPLY") - - @schemas.classproperty - def REDEEM(cls): - return cls("REDEEM") - - @schemas.classproperty - def STAKE(cls): - return cls("STAKE") - - @schemas.classproperty - def RAW(cls): - return cls("RAW") - - @schemas.classproperty - def TYPED_MESSAGE(cls): - return cls("TYPED_MESSAGE") - designatedSigner = schemas.StrSchema - - - class designatedSigners( - schemas.DictSchema - ): - - - class MetaOapg: - - class properties: - - - class users( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.StrSchema - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'users': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - - - class usersGroups( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.StrSchema - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'usersGroups': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - __annotations__ = { - "users": users, - "usersGroups": usersGroups, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["users"]) -> MetaOapg.properties.users: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["usersGroups"]) -> MetaOapg.properties.usersGroups: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["users", "usersGroups", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["users"]) -> typing.Union[MetaOapg.properties.users, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["usersGroups"]) -> typing.Union[MetaOapg.properties.usersGroups, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["users", "usersGroups", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - users: typing.Union[MetaOapg.properties.users, list, tuple, schemas.Unset] = schemas.unset, - usersGroups: typing.Union[MetaOapg.properties.usersGroups, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'designatedSigners': - return super().__new__( - cls, - *_args, - users=users, - usersGroups=usersGroups, - _configuration=_configuration, - **kwargs, - ) - - - class srcType( - schemas.ComposedSchema, - ): - - - class MetaOapg: - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - PolicySrcOrDestType, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'srcType': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - - - class srcSubType( - schemas.ComposedSchema, - ): - - - class MetaOapg: - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - PolicySrcOrDestSubType, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'srcSubType': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - - - class srcId( - schemas.ComposedSchema, - ): - - - class MetaOapg: - all_of_0 = schemas.StrSchema - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.all_of_0, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'srcId': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - - - class src( - schemas.DictSchema - ): - - - class MetaOapg: - - class properties: - - - class ids( - schemas.ListSchema - ): - - - class MetaOapg: - - - class items( - schemas.ListSchema - ): - - - class MetaOapg: - - - class items( - schemas.ComposedSchema, - ): - - - class MetaOapg: - one_of_0 = schemas.StrSchema - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.one_of_0, - PolicySrcOrDestType, - PolicySrcOrDestSubType, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'items': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ]], typing.List[typing.Union[MetaOapg.items, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'items': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, list, tuple, ]], typing.List[typing.Union[MetaOapg.items, list, tuple, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'ids': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - __annotations__ = { - "ids": ids, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["ids"]) -> MetaOapg.properties.ids: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["ids", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["ids"]) -> typing.Union[MetaOapg.properties.ids, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["ids", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - ids: typing.Union[MetaOapg.properties.ids, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'src': - return super().__new__( - cls, - *_args, - ids=ids, - _configuration=_configuration, - **kwargs, - ) - - - class dstType( - schemas.ComposedSchema, - ): - - - class MetaOapg: - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - PolicySrcOrDestType, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'dstType': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - - - class dstSubType( - schemas.ComposedSchema, - ): - - - class MetaOapg: - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - PolicySrcOrDestSubType, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'dstSubType': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - - - class dstId( - schemas.ComposedSchema, - ): - - - class MetaOapg: - all_of_0 = schemas.StrSchema - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.all_of_0, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'dstId': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - - - class dst( - schemas.DictSchema - ): - - - class MetaOapg: - - class properties: - - - class ids( - schemas.ListSchema - ): - - - class MetaOapg: - - - class items( - schemas.ListSchema - ): - - - class MetaOapg: - - - class items( - schemas.ComposedSchema, - ): - - - class MetaOapg: - one_of_0 = schemas.StrSchema - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.one_of_0, - PolicySrcOrDestType, - PolicySrcOrDestSubType, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'items': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ]], typing.List[typing.Union[MetaOapg.items, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'items': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, list, tuple, ]], typing.List[typing.Union[MetaOapg.items, list, tuple, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'ids': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - __annotations__ = { - "ids": ids, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["ids"]) -> MetaOapg.properties.ids: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["ids", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["ids"]) -> typing.Union[MetaOapg.properties.ids, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["ids", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - ids: typing.Union[MetaOapg.properties.ids, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'dst': - return super().__new__( - cls, - *_args, - ids=ids, - _configuration=_configuration, - **kwargs, - ) - - - class dstAddressType( - schemas.EnumBase, - schemas.StrSchema - ): - - @schemas.classproperty - def WHITELISTED(cls): - return cls("WHITELISTED") - - @schemas.classproperty - def ONE_TIME(cls): - return cls("ONE_TIME") - - @schemas.classproperty - def ASTERISK(cls): - return cls("*") - - - class authorizers( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.StrSchema - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'authorizers': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - authorizersCount = schemas.NumberSchema - - - class authorizationGroups( - schemas.DictSchema - ): - - - class MetaOapg: - - class properties: - - - class logic( - schemas.EnumBase, - schemas.StrSchema - ): - - @schemas.classproperty - def AND(cls): - return cls("AND") - - @schemas.classproperty - def OR(cls): - return cls("OR") - allowOperatorAsAuthorizer = schemas.BoolSchema - - - class groups( - schemas.ListSchema - ): - - - class MetaOapg: - - - class items( - schemas.DictSchema - ): - - - class MetaOapg: - - class properties: - - - class users( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.StrSchema - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'users': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - - - class usersGroups( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.StrSchema - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'usersGroups': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - th = schemas.NumberSchema - __annotations__ = { - "users": users, - "usersGroups": usersGroups, - "th": th, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["users"]) -> MetaOapg.properties.users: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["usersGroups"]) -> MetaOapg.properties.usersGroups: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["th"]) -> MetaOapg.properties.th: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["users", "usersGroups", "th", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["users"]) -> typing.Union[MetaOapg.properties.users, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["usersGroups"]) -> typing.Union[MetaOapg.properties.usersGroups, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["th"]) -> typing.Union[MetaOapg.properties.th, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["users", "usersGroups", "th", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - users: typing.Union[MetaOapg.properties.users, list, tuple, schemas.Unset] = schemas.unset, - usersGroups: typing.Union[MetaOapg.properties.usersGroups, list, tuple, schemas.Unset] = schemas.unset, - th: typing.Union[MetaOapg.properties.th, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'items': - return super().__new__( - cls, - *_args, - users=users, - usersGroups=usersGroups, - th=th, - _configuration=_configuration, - **kwargs, - ) - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, dict, frozendict.frozendict, ]], typing.List[typing.Union[MetaOapg.items, dict, frozendict.frozendict, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'groups': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - __annotations__ = { - "logic": logic, - "allowOperatorAsAuthorizer": allowOperatorAsAuthorizer, - "groups": groups, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["logic"]) -> MetaOapg.properties.logic: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["allowOperatorAsAuthorizer"]) -> MetaOapg.properties.allowOperatorAsAuthorizer: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["groups"]) -> MetaOapg.properties.groups: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["logic", "allowOperatorAsAuthorizer", "groups", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["logic"]) -> typing.Union[MetaOapg.properties.logic, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["allowOperatorAsAuthorizer"]) -> typing.Union[MetaOapg.properties.allowOperatorAsAuthorizer, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["groups"]) -> typing.Union[MetaOapg.properties.groups, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["logic", "allowOperatorAsAuthorizer", "groups", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - logic: typing.Union[MetaOapg.properties.logic, str, schemas.Unset] = schemas.unset, - allowOperatorAsAuthorizer: typing.Union[MetaOapg.properties.allowOperatorAsAuthorizer, bool, schemas.Unset] = schemas.unset, - groups: typing.Union[MetaOapg.properties.groups, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'authorizationGroups': - return super().__new__( - cls, - *_args, - logic=logic, - allowOperatorAsAuthorizer=allowOperatorAsAuthorizer, - groups=groups, - _configuration=_configuration, - **kwargs, - ) - - - class amountAggregation( - schemas.DictSchema - ): - - - class MetaOapg: - - class properties: - - @staticmethod - def operators() -> typing.Type['AmountAggregationTimePeriodMethod']: - return AmountAggregationTimePeriodMethod - - @staticmethod - def srcTransferPeers() -> typing.Type['AmountAggregationTimePeriodMethod']: - return AmountAggregationTimePeriodMethod - - @staticmethod - def dstTransferPeers() -> typing.Type['AmountAggregationTimePeriodMethod']: - return AmountAggregationTimePeriodMethod - __annotations__ = { - "operators": operators, - "srcTransferPeers": srcTransferPeers, - "dstTransferPeers": dstTransferPeers, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["operators"]) -> 'AmountAggregationTimePeriodMethod': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["srcTransferPeers"]) -> 'AmountAggregationTimePeriodMethod': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["dstTransferPeers"]) -> 'AmountAggregationTimePeriodMethod': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["operators", "srcTransferPeers", "dstTransferPeers", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["operators"]) -> typing.Union['AmountAggregationTimePeriodMethod', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["srcTransferPeers"]) -> typing.Union['AmountAggregationTimePeriodMethod', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["dstTransferPeers"]) -> typing.Union['AmountAggregationTimePeriodMethod', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["operators", "srcTransferPeers", "dstTransferPeers", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - operators: typing.Union['AmountAggregationTimePeriodMethod', schemas.Unset] = schemas.unset, - srcTransferPeers: typing.Union['AmountAggregationTimePeriodMethod', schemas.Unset] = schemas.unset, - dstTransferPeers: typing.Union['AmountAggregationTimePeriodMethod', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'amountAggregation': - return super().__new__( - cls, - *_args, - operators=operators, - srcTransferPeers=srcTransferPeers, - dstTransferPeers=dstTransferPeers, - _configuration=_configuration, - **kwargs, - ) - - - class rawMessageSigning( - schemas.DictSchema - ): - - - class MetaOapg: - - class properties: - algorithm = schemas.StrSchema - - - class derivationPath( - schemas.DictSchema - ): - - - class MetaOapg: - - class properties: - - - class path( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.NumberSchema - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, decimal.Decimal, int, float, ]], typing.List[typing.Union[MetaOapg.items, decimal.Decimal, int, float, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'path': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - __annotations__ = { - "path": path, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["path"]) -> MetaOapg.properties.path: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["path", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["path"]) -> typing.Union[MetaOapg.properties.path, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["path", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - path: typing.Union[MetaOapg.properties.path, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'derivationPath': - return super().__new__( - cls, - *_args, - path=path, - _configuration=_configuration, - **kwargs, - ) - __annotations__ = { - "algorithm": algorithm, - "derivationPath": derivationPath, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["algorithm"]) -> MetaOapg.properties.algorithm: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["derivationPath"]) -> MetaOapg.properties.derivationPath: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["algorithm", "derivationPath", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["algorithm"]) -> typing.Union[MetaOapg.properties.algorithm, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["derivationPath"]) -> typing.Union[MetaOapg.properties.derivationPath, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["algorithm", "derivationPath", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - algorithm: typing.Union[MetaOapg.properties.algorithm, str, schemas.Unset] = schemas.unset, - derivationPath: typing.Union[MetaOapg.properties.derivationPath, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'rawMessageSigning': - return super().__new__( - cls, - *_args, - algorithm=algorithm, - derivationPath=derivationPath, - _configuration=_configuration, - **kwargs, - ) - applyForApprove = schemas.BoolSchema - applyForTypedMessage = schemas.BoolSchema - __annotations__ = { - "type": type, - "action": action, - "asset": asset, - "amountCurrency": amountCurrency, - "amountScope": amountScope, - "amount": amount, - "periodSec": periodSec, - "externalDescriptor": externalDescriptor, - "operator": operator, - "operators": operators, - "transactionType": transactionType, - "designatedSigner": designatedSigner, - "designatedSigners": designatedSigners, - "srcType": srcType, - "srcSubType": srcSubType, - "srcId": srcId, - "src": src, - "dstType": dstType, - "dstSubType": dstSubType, - "dstId": dstId, - "dst": dst, - "dstAddressType": dstAddressType, - "authorizers": authorizers, - "authorizersCount": authorizersCount, - "authorizationGroups": authorizationGroups, - "amountAggregation": amountAggregation, - "rawMessageSigning": rawMessageSigning, - "applyForApprove": applyForApprove, - "applyForTypedMessage": applyForTypedMessage, - } - - externalDescriptor: MetaOapg.properties.externalDescriptor - amount: MetaOapg.properties.amount - periodSec: MetaOapg.properties.periodSec - action: MetaOapg.properties.action - asset: MetaOapg.properties.asset - type: MetaOapg.properties.type - amountScope: MetaOapg.properties.amountScope - amountCurrency: MetaOapg.properties.amountCurrency - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["action"]) -> MetaOapg.properties.action: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["asset"]) -> MetaOapg.properties.asset: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["amountCurrency"]) -> MetaOapg.properties.amountCurrency: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["amountScope"]) -> MetaOapg.properties.amountScope: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["amount"]) -> MetaOapg.properties.amount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["periodSec"]) -> MetaOapg.properties.periodSec: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["externalDescriptor"]) -> MetaOapg.properties.externalDescriptor: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["operator"]) -> MetaOapg.properties.operator: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["operators"]) -> MetaOapg.properties.operators: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["transactionType"]) -> MetaOapg.properties.transactionType: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["designatedSigner"]) -> MetaOapg.properties.designatedSigner: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["designatedSigners"]) -> MetaOapg.properties.designatedSigners: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["srcType"]) -> MetaOapg.properties.srcType: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["srcSubType"]) -> MetaOapg.properties.srcSubType: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["srcId"]) -> MetaOapg.properties.srcId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["src"]) -> MetaOapg.properties.src: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["dstType"]) -> MetaOapg.properties.dstType: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["dstSubType"]) -> MetaOapg.properties.dstSubType: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["dstId"]) -> MetaOapg.properties.dstId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["dst"]) -> MetaOapg.properties.dst: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["dstAddressType"]) -> MetaOapg.properties.dstAddressType: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["authorizers"]) -> MetaOapg.properties.authorizers: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["authorizersCount"]) -> MetaOapg.properties.authorizersCount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["authorizationGroups"]) -> MetaOapg.properties.authorizationGroups: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["amountAggregation"]) -> MetaOapg.properties.amountAggregation: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["rawMessageSigning"]) -> MetaOapg.properties.rawMessageSigning: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["applyForApprove"]) -> MetaOapg.properties.applyForApprove: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["applyForTypedMessage"]) -> MetaOapg.properties.applyForTypedMessage: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["type", "action", "asset", "amountCurrency", "amountScope", "amount", "periodSec", "externalDescriptor", "operator", "operators", "transactionType", "designatedSigner", "designatedSigners", "srcType", "srcSubType", "srcId", "src", "dstType", "dstSubType", "dstId", "dst", "dstAddressType", "authorizers", "authorizersCount", "authorizationGroups", "amountAggregation", "rawMessageSigning", "applyForApprove", "applyForTypedMessage", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["action"]) -> MetaOapg.properties.action: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["asset"]) -> MetaOapg.properties.asset: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["amountCurrency"]) -> MetaOapg.properties.amountCurrency: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["amountScope"]) -> MetaOapg.properties.amountScope: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["amount"]) -> MetaOapg.properties.amount: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["periodSec"]) -> MetaOapg.properties.periodSec: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["externalDescriptor"]) -> MetaOapg.properties.externalDescriptor: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["operator"]) -> typing.Union[MetaOapg.properties.operator, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["operators"]) -> typing.Union[MetaOapg.properties.operators, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["transactionType"]) -> typing.Union[MetaOapg.properties.transactionType, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["designatedSigner"]) -> typing.Union[MetaOapg.properties.designatedSigner, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["designatedSigners"]) -> typing.Union[MetaOapg.properties.designatedSigners, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["srcType"]) -> typing.Union[MetaOapg.properties.srcType, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["srcSubType"]) -> typing.Union[MetaOapg.properties.srcSubType, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["srcId"]) -> typing.Union[MetaOapg.properties.srcId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["src"]) -> typing.Union[MetaOapg.properties.src, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["dstType"]) -> typing.Union[MetaOapg.properties.dstType, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["dstSubType"]) -> typing.Union[MetaOapg.properties.dstSubType, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["dstId"]) -> typing.Union[MetaOapg.properties.dstId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["dst"]) -> typing.Union[MetaOapg.properties.dst, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["dstAddressType"]) -> typing.Union[MetaOapg.properties.dstAddressType, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["authorizers"]) -> typing.Union[MetaOapg.properties.authorizers, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["authorizersCount"]) -> typing.Union[MetaOapg.properties.authorizersCount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["authorizationGroups"]) -> typing.Union[MetaOapg.properties.authorizationGroups, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["amountAggregation"]) -> typing.Union[MetaOapg.properties.amountAggregation, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["rawMessageSigning"]) -> typing.Union[MetaOapg.properties.rawMessageSigning, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["applyForApprove"]) -> typing.Union[MetaOapg.properties.applyForApprove, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["applyForTypedMessage"]) -> typing.Union[MetaOapg.properties.applyForTypedMessage, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["type", "action", "asset", "amountCurrency", "amountScope", "amount", "periodSec", "externalDescriptor", "operator", "operators", "transactionType", "designatedSigner", "designatedSigners", "srcType", "srcSubType", "srcId", "src", "dstType", "dstSubType", "dstId", "dst", "dstAddressType", "authorizers", "authorizersCount", "authorizationGroups", "amountAggregation", "rawMessageSigning", "applyForApprove", "applyForTypedMessage", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - externalDescriptor: typing.Union[MetaOapg.properties.externalDescriptor, str, ], - amount: typing.Union[MetaOapg.properties.amount, decimal.Decimal, int, float, ], - periodSec: typing.Union[MetaOapg.properties.periodSec, decimal.Decimal, int, float, ], - action: typing.Union[MetaOapg.properties.action, str, ], - asset: typing.Union[MetaOapg.properties.asset, str, ], - type: typing.Union[MetaOapg.properties.type, str, ], - amountScope: typing.Union[MetaOapg.properties.amountScope, str, ], - amountCurrency: typing.Union[MetaOapg.properties.amountCurrency, str, ], - operator: typing.Union[MetaOapg.properties.operator, str, schemas.Unset] = schemas.unset, - operators: typing.Union[MetaOapg.properties.operators, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - transactionType: typing.Union[MetaOapg.properties.transactionType, str, schemas.Unset] = schemas.unset, - designatedSigner: typing.Union[MetaOapg.properties.designatedSigner, str, schemas.Unset] = schemas.unset, - designatedSigners: typing.Union[MetaOapg.properties.designatedSigners, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - srcType: typing.Union[MetaOapg.properties.srcType, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - srcSubType: typing.Union[MetaOapg.properties.srcSubType, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - srcId: typing.Union[MetaOapg.properties.srcId, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - src: typing.Union[MetaOapg.properties.src, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - dstType: typing.Union[MetaOapg.properties.dstType, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - dstSubType: typing.Union[MetaOapg.properties.dstSubType, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - dstId: typing.Union[MetaOapg.properties.dstId, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - dst: typing.Union[MetaOapg.properties.dst, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - dstAddressType: typing.Union[MetaOapg.properties.dstAddressType, str, schemas.Unset] = schemas.unset, - authorizers: typing.Union[MetaOapg.properties.authorizers, list, tuple, schemas.Unset] = schemas.unset, - authorizersCount: typing.Union[MetaOapg.properties.authorizersCount, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, - authorizationGroups: typing.Union[MetaOapg.properties.authorizationGroups, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - amountAggregation: typing.Union[MetaOapg.properties.amountAggregation, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - rawMessageSigning: typing.Union[MetaOapg.properties.rawMessageSigning, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - applyForApprove: typing.Union[MetaOapg.properties.applyForApprove, bool, schemas.Unset] = schemas.unset, - applyForTypedMessage: typing.Union[MetaOapg.properties.applyForTypedMessage, bool, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'PolicyRule': - return super().__new__( - cls, - *_args, - externalDescriptor=externalDescriptor, - amount=amount, - periodSec=periodSec, - action=action, - asset=asset, - type=type, - amountScope=amountScope, - amountCurrency=amountCurrency, - operator=operator, - operators=operators, - transactionType=transactionType, - designatedSigner=designatedSigner, - designatedSigners=designatedSigners, - srcType=srcType, - srcSubType=srcSubType, - srcId=srcId, - src=src, - dstType=dstType, - dstSubType=dstSubType, - dstId=dstId, - dst=dst, - dstAddressType=dstAddressType, - authorizers=authorizers, - authorizersCount=authorizersCount, - authorizationGroups=authorizationGroups, - amountAggregation=amountAggregation, - rawMessageSigning=rawMessageSigning, - applyForApprove=applyForApprove, - applyForTypedMessage=applyForTypedMessage, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.amount_aggregation_time_period_method import AmountAggregationTimePeriodMethod -from fireblocks_client.model.policy_src_or_dest_sub_type import PolicySrcOrDestSubType -from fireblocks_client.model.policy_src_or_dest_type import PolicySrcOrDestType diff --git a/fireblocks_client/model/policy_rule_check_result.py b/fireblocks_client/model/policy_rule_check_result.py deleted file mode 100644 index 1cef1ae9..00000000 --- a/fireblocks_client/model/policy_rule_check_result.py +++ /dev/null @@ -1,157 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class PolicyRuleCheckResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - The rule validation result - """ - - - class MetaOapg: - required = { - "index", - "errors", - "status", - } - - class properties: - index = schemas.NumberSchema - - - class status( - schemas.EnumBase, - schemas.StrSchema - ): - - - class MetaOapg: - enum_value_to_name = { - "ok": "OK", - "failure": "FAILURE", - } - - @schemas.classproperty - def OK(cls): - return cls("ok") - - @schemas.classproperty - def FAILURE(cls): - return cls("failure") - - - class errors( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['PolicyRuleError']: - return PolicyRuleError - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['PolicyRuleError'], typing.List['PolicyRuleError']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'errors': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'PolicyRuleError': - return super().__getitem__(i) - __annotations__ = { - "index": index, - "status": status, - "errors": errors, - } - - index: MetaOapg.properties.index - errors: MetaOapg.properties.errors - status: MetaOapg.properties.status - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["index"]) -> MetaOapg.properties.index: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["status"]) -> MetaOapg.properties.status: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["errors"]) -> MetaOapg.properties.errors: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["index", "status", "errors", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["index"]) -> MetaOapg.properties.index: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> MetaOapg.properties.status: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["errors"]) -> MetaOapg.properties.errors: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["index", "status", "errors", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - index: typing.Union[MetaOapg.properties.index, decimal.Decimal, int, float, ], - errors: typing.Union[MetaOapg.properties.errors, list, tuple, ], - status: typing.Union[MetaOapg.properties.status, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'PolicyRuleCheckResult': - return super().__new__( - cls, - *_args, - index=index, - errors=errors, - status=status, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.policy_rule_error import PolicyRuleError diff --git a/fireblocks_client/model/policy_rule_check_result.pyi b/fireblocks_client/model/policy_rule_check_result.pyi deleted file mode 100644 index 155f9ca5..00000000 --- a/fireblocks_client/model/policy_rule_check_result.pyi +++ /dev/null @@ -1,150 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class PolicyRuleCheckResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - The rule validation result - """ - - - class MetaOapg: - required = { - "index", - "errors", - "status", - } - - class properties: - index = schemas.NumberSchema - - - class status( - schemas.EnumBase, - schemas.StrSchema - ): - - @schemas.classproperty - def OK(cls): - return cls("ok") - - @schemas.classproperty - def FAILURE(cls): - return cls("failure") - - - class errors( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['PolicyRuleError']: - return PolicyRuleError - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['PolicyRuleError'], typing.List['PolicyRuleError']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'errors': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'PolicyRuleError': - return super().__getitem__(i) - __annotations__ = { - "index": index, - "status": status, - "errors": errors, - } - - index: MetaOapg.properties.index - errors: MetaOapg.properties.errors - status: MetaOapg.properties.status - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["index"]) -> MetaOapg.properties.index: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["status"]) -> MetaOapg.properties.status: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["errors"]) -> MetaOapg.properties.errors: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["index", "status", "errors", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["index"]) -> MetaOapg.properties.index: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> MetaOapg.properties.status: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["errors"]) -> MetaOapg.properties.errors: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["index", "status", "errors", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - index: typing.Union[MetaOapg.properties.index, decimal.Decimal, int, float, ], - errors: typing.Union[MetaOapg.properties.errors, list, tuple, ], - status: typing.Union[MetaOapg.properties.status, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'PolicyRuleCheckResult': - return super().__new__( - cls, - *_args, - index=index, - errors=errors, - status=status, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.policy_rule_error import PolicyRuleError diff --git a/fireblocks_client/model/policy_rule_error.py b/fireblocks_client/model/policy_rule_error.py deleted file mode 100644 index edd75cd6..00000000 --- a/fireblocks_client/model/policy_rule_error.py +++ /dev/null @@ -1,177 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class PolicyRuleError( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Rule validation result error - """ - - - class MetaOapg: - required = { - "errorCodeName", - "errorField", - "errorMessage", - "errorCode", - } - - class properties: - errorMessage = schemas.StrSchema - errorCode = schemas.NumberSchema - errorCodeName = schemas.StrSchema - - - class errorField( - schemas.EnumBase, - schemas.StrSchema - ): - - - class MetaOapg: - enum_value_to_name = { - "operator": "OPERATOR", - "operators": "OPERATORS", - "authorizationGroups": "AUTHORIZATION_GROUPS", - "designatedSigner": "DESIGNATED_SIGNER", - "designatedSigners": "DESIGNATED_SIGNERS", - "contractMethods": "CONTRACT_METHODS", - "amountAggregation": "AMOUNT_AGGREGATION", - "src": "SRC", - "dst": "DST", - } - - @schemas.classproperty - def OPERATOR(cls): - return cls("operator") - - @schemas.classproperty - def OPERATORS(cls): - return cls("operators") - - @schemas.classproperty - def AUTHORIZATION_GROUPS(cls): - return cls("authorizationGroups") - - @schemas.classproperty - def DESIGNATED_SIGNER(cls): - return cls("designatedSigner") - - @schemas.classproperty - def DESIGNATED_SIGNERS(cls): - return cls("designatedSigners") - - @schemas.classproperty - def CONTRACT_METHODS(cls): - return cls("contractMethods") - - @schemas.classproperty - def AMOUNT_AGGREGATION(cls): - return cls("amountAggregation") - - @schemas.classproperty - def SRC(cls): - return cls("src") - - @schemas.classproperty - def DST(cls): - return cls("dst") - __annotations__ = { - "errorMessage": errorMessage, - "errorCode": errorCode, - "errorCodeName": errorCodeName, - "errorField": errorField, - } - - errorCodeName: MetaOapg.properties.errorCodeName - errorField: MetaOapg.properties.errorField - errorMessage: MetaOapg.properties.errorMessage - errorCode: MetaOapg.properties.errorCode - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["errorMessage"]) -> MetaOapg.properties.errorMessage: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["errorCode"]) -> MetaOapg.properties.errorCode: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["errorCodeName"]) -> MetaOapg.properties.errorCodeName: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["errorField"]) -> MetaOapg.properties.errorField: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["errorMessage", "errorCode", "errorCodeName", "errorField", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["errorMessage"]) -> MetaOapg.properties.errorMessage: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["errorCode"]) -> MetaOapg.properties.errorCode: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["errorCodeName"]) -> MetaOapg.properties.errorCodeName: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["errorField"]) -> MetaOapg.properties.errorField: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["errorMessage", "errorCode", "errorCodeName", "errorField", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - errorCodeName: typing.Union[MetaOapg.properties.errorCodeName, str, ], - errorField: typing.Union[MetaOapg.properties.errorField, str, ], - errorMessage: typing.Union[MetaOapg.properties.errorMessage, str, ], - errorCode: typing.Union[MetaOapg.properties.errorCode, decimal.Decimal, int, float, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'PolicyRuleError': - return super().__new__( - cls, - *_args, - errorCodeName=errorCodeName, - errorField=errorField, - errorMessage=errorMessage, - errorCode=errorCode, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/policy_rule_error.pyi b/fireblocks_client/model/policy_rule_error.pyi deleted file mode 100644 index 03147f09..00000000 --- a/fireblocks_client/model/policy_rule_error.pyi +++ /dev/null @@ -1,163 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class PolicyRuleError( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Rule validation result error - """ - - - class MetaOapg: - required = { - "errorCodeName", - "errorField", - "errorMessage", - "errorCode", - } - - class properties: - errorMessage = schemas.StrSchema - errorCode = schemas.NumberSchema - errorCodeName = schemas.StrSchema - - - class errorField( - schemas.EnumBase, - schemas.StrSchema - ): - - @schemas.classproperty - def OPERATOR(cls): - return cls("operator") - - @schemas.classproperty - def OPERATORS(cls): - return cls("operators") - - @schemas.classproperty - def AUTHORIZATION_GROUPS(cls): - return cls("authorizationGroups") - - @schemas.classproperty - def DESIGNATED_SIGNER(cls): - return cls("designatedSigner") - - @schemas.classproperty - def DESIGNATED_SIGNERS(cls): - return cls("designatedSigners") - - @schemas.classproperty - def CONTRACT_METHODS(cls): - return cls("contractMethods") - - @schemas.classproperty - def AMOUNT_AGGREGATION(cls): - return cls("amountAggregation") - - @schemas.classproperty - def SRC(cls): - return cls("src") - - @schemas.classproperty - def DST(cls): - return cls("dst") - __annotations__ = { - "errorMessage": errorMessage, - "errorCode": errorCode, - "errorCodeName": errorCodeName, - "errorField": errorField, - } - - errorCodeName: MetaOapg.properties.errorCodeName - errorField: MetaOapg.properties.errorField - errorMessage: MetaOapg.properties.errorMessage - errorCode: MetaOapg.properties.errorCode - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["errorMessage"]) -> MetaOapg.properties.errorMessage: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["errorCode"]) -> MetaOapg.properties.errorCode: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["errorCodeName"]) -> MetaOapg.properties.errorCodeName: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["errorField"]) -> MetaOapg.properties.errorField: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["errorMessage", "errorCode", "errorCodeName", "errorField", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["errorMessage"]) -> MetaOapg.properties.errorMessage: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["errorCode"]) -> MetaOapg.properties.errorCode: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["errorCodeName"]) -> MetaOapg.properties.errorCodeName: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["errorField"]) -> MetaOapg.properties.errorField: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["errorMessage", "errorCode", "errorCodeName", "errorField", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - errorCodeName: typing.Union[MetaOapg.properties.errorCodeName, str, ], - errorField: typing.Union[MetaOapg.properties.errorField, str, ], - errorMessage: typing.Union[MetaOapg.properties.errorMessage, str, ], - errorCode: typing.Union[MetaOapg.properties.errorCode, decimal.Decimal, int, float, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'PolicyRuleError': - return super().__new__( - cls, - *_args, - errorCodeName=errorCodeName, - errorField=errorField, - errorMessage=errorMessage, - errorCode=errorCode, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/policy_src_or_dest_id.py b/fireblocks_client/model/policy_src_or_dest_id.py deleted file mode 100644 index 30dfec56..00000000 --- a/fireblocks_client/model/policy_src_or_dest_id.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 -PolicySrcOrDestId = schemas.StrSchema diff --git a/fireblocks_client/model/policy_src_or_dest_id.pyi b/fireblocks_client/model/policy_src_or_dest_id.pyi deleted file mode 100644 index 30dfec56..00000000 --- a/fireblocks_client/model/policy_src_or_dest_id.pyi +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 -PolicySrcOrDestId = schemas.StrSchema diff --git a/fireblocks_client/model/policy_src_or_dest_sub_type.py b/fireblocks_client/model/policy_src_or_dest_sub_type.py deleted file mode 100644 index 2015adf4..00000000 --- a/fireblocks_client/model/policy_src_or_dest_sub_type.py +++ /dev/null @@ -1,72 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class PolicySrcOrDestSubType( - schemas.EnumBase, - schemas.StrSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - * EXTERNAL - A whitelisted wallet assigned as external is typically used for addresses managed by your clients and counterparties -* INTERNAL - A whitelisted wallet assigned as internal, is typically used for addresses that you control outside of your Fireblocks workspace -* CONTRACT - A whitelisted wallet assigned as contract is for identifying and managing external smart contracts -* EXCHANGETEST - Exchanges which operate only on testnet assets -* "*" - All subtypes - - """ - - - class MetaOapg: - enum_value_to_name = { - "EXTERNAL": "EXTERNAL", - "INTERNAL": "INTERNAL", - "CONTRACT": "CONTRACT", - "EXCHANGETEST": "EXCHANGETEST", - "*": "ASTERISK", - } - - @schemas.classproperty - def EXTERNAL(cls): - return cls("EXTERNAL") - - @schemas.classproperty - def INTERNAL(cls): - return cls("INTERNAL") - - @schemas.classproperty - def CONTRACT(cls): - return cls("CONTRACT") - - @schemas.classproperty - def EXCHANGETEST(cls): - return cls("EXCHANGETEST") - - @schemas.classproperty - def ASTERISK(cls): - return cls("*") diff --git a/fireblocks_client/model/policy_src_or_dest_sub_type.pyi b/fireblocks_client/model/policy_src_or_dest_sub_type.pyi deleted file mode 100644 index bfbad98a..00000000 --- a/fireblocks_client/model/policy_src_or_dest_sub_type.pyi +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class PolicySrcOrDestSubType( - schemas.EnumBase, - schemas.StrSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - * EXTERNAL - A whitelisted wallet assigned as external is typically used for addresses managed by your clients and counterparties -* INTERNAL - A whitelisted wallet assigned as internal, is typically used for addresses that you control outside of your Fireblocks workspace -* CONTRACT - A whitelisted wallet assigned as contract is for identifying and managing external smart contracts -* EXCHANGETEST - Exchanges which operate only on testnet assets -* "*" - All subtypes - - """ - - @schemas.classproperty - def EXTERNAL(cls): - return cls("EXTERNAL") - - @schemas.classproperty - def INTERNAL(cls): - return cls("INTERNAL") - - @schemas.classproperty - def CONTRACT(cls): - return cls("CONTRACT") - - @schemas.classproperty - def EXCHANGETEST(cls): - return cls("EXCHANGETEST") - - @schemas.classproperty - def ASTERISK(cls): - return cls("*") diff --git a/fireblocks_client/model/policy_src_or_dest_type.py b/fireblocks_client/model/policy_src_or_dest_type.py deleted file mode 100644 index c0019b79..00000000 --- a/fireblocks_client/model/policy_src_or_dest_type.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class PolicySrcOrDestType( - schemas.EnumBase, - schemas.StrSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - * EXCHANGE - A third-party exchange account connected to your workspace -* UNMANAGED - A unmanaged wallet outside of Fireblocks workspace -* VAULT - An account in your Fireblocks Vault -* NETWORK_CONNECTION - A connection in your Fireblocks network -* COMPOUND - (deprecated) An asset retrieved by using the Compound DeFI protocol -* FIAT_ACCOUNT - A third-party fiat account connected to your workspace -* ONE_TIME_ADDRESS - A non-whitelisted asset from your Fireblocks Workspace -* "*" - All types - - """ - - - class MetaOapg: - enum_value_to_name = { - "EXCHANGE": "EXCHANGE", - "UNMANAGED": "UNMANAGED", - "VAULT": "VAULT", - "NETWORK_CONNECTION": "NETWORK_CONNECTION", - "COMPOUND": "COMPOUND", - "FIAT_ACCOUNT": "FIAT_ACCOUNT", - "ONE_TIME_ADDRESS": "ONE_TIME_ADDRESS", - "*": "ASTERISK", - } - - @schemas.classproperty - def EXCHANGE(cls): - return cls("EXCHANGE") - - @schemas.classproperty - def UNMANAGED(cls): - return cls("UNMANAGED") - - @schemas.classproperty - def VAULT(cls): - return cls("VAULT") - - @schemas.classproperty - def NETWORK_CONNECTION(cls): - return cls("NETWORK_CONNECTION") - - @schemas.classproperty - def COMPOUND(cls): - return cls("COMPOUND") - - @schemas.classproperty - def FIAT_ACCOUNT(cls): - return cls("FIAT_ACCOUNT") - - @schemas.classproperty - def ONE_TIME_ADDRESS(cls): - return cls("ONE_TIME_ADDRESS") - - @schemas.classproperty - def ASTERISK(cls): - return cls("*") diff --git a/fireblocks_client/model/policy_src_or_dest_type.pyi b/fireblocks_client/model/policy_src_or_dest_type.pyi deleted file mode 100644 index 13ab03fc..00000000 --- a/fireblocks_client/model/policy_src_or_dest_type.pyi +++ /dev/null @@ -1,77 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class PolicySrcOrDestType( - schemas.EnumBase, - schemas.StrSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - * EXCHANGE - A third-party exchange account connected to your workspace -* UNMANAGED - A unmanaged wallet outside of Fireblocks workspace -* VAULT - An account in your Fireblocks Vault -* NETWORK_CONNECTION - A connection in your Fireblocks network -* COMPOUND - (deprecated) An asset retrieved by using the Compound DeFI protocol -* FIAT_ACCOUNT - A third-party fiat account connected to your workspace -* ONE_TIME_ADDRESS - A non-whitelisted asset from your Fireblocks Workspace -* "*" - All types - - """ - - @schemas.classproperty - def EXCHANGE(cls): - return cls("EXCHANGE") - - @schemas.classproperty - def UNMANAGED(cls): - return cls("UNMANAGED") - - @schemas.classproperty - def VAULT(cls): - return cls("VAULT") - - @schemas.classproperty - def NETWORK_CONNECTION(cls): - return cls("NETWORK_CONNECTION") - - @schemas.classproperty - def COMPOUND(cls): - return cls("COMPOUND") - - @schemas.classproperty - def FIAT_ACCOUNT(cls): - return cls("FIAT_ACCOUNT") - - @schemas.classproperty - def ONE_TIME_ADDRESS(cls): - return cls("ONE_TIME_ADDRESS") - - @schemas.classproperty - def ASTERISK(cls): - return cls("*") diff --git a/fireblocks_client/model/policy_status.py b/fireblocks_client/model/policy_status.py deleted file mode 100644 index 574bb719..00000000 --- a/fireblocks_client/model/policy_status.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class PolicyStatus( - schemas.EnumBase, - schemas.StrSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - * SUCCESS - success -* UNVALIDATED - not validated yet -* INVALID_CONFIGURATION - at least one rule is invalid -* PENDING - pending approval -* PENDING_CONSOLE_APPROVAL - pending approval from the console app -* AWAITING_QUORUM - pending quorum approval -* UNHANDLED_ERROR - unhandled error - - """ - - - class MetaOapg: - enum_value_to_name = { - "SUCCESS": "SUCCESS", - "UNVALIDATED": "UNVALIDATED", - "INVALID_CONFIGURATION": "INVALID_CONFIGURATION", - "PENDING": "PENDING", - "PENDING_CONSOLE_APPROVAL": "PENDING_CONSOLE_APPROVAL", - "AWAITING_QUORUM": "AWAITING_QUORUM", - "UNHANDLED_ERROR": "UNHANDLED_ERROR", - } - - @schemas.classproperty - def SUCCESS(cls): - return cls("SUCCESS") - - @schemas.classproperty - def UNVALIDATED(cls): - return cls("UNVALIDATED") - - @schemas.classproperty - def INVALID_CONFIGURATION(cls): - return cls("INVALID_CONFIGURATION") - - @schemas.classproperty - def PENDING(cls): - return cls("PENDING") - - @schemas.classproperty - def PENDING_CONSOLE_APPROVAL(cls): - return cls("PENDING_CONSOLE_APPROVAL") - - @schemas.classproperty - def AWAITING_QUORUM(cls): - return cls("AWAITING_QUORUM") - - @schemas.classproperty - def UNHANDLED_ERROR(cls): - return cls("UNHANDLED_ERROR") diff --git a/fireblocks_client/model/policy_status.pyi b/fireblocks_client/model/policy_status.pyi deleted file mode 100644 index 05fc87c8..00000000 --- a/fireblocks_client/model/policy_status.pyi +++ /dev/null @@ -1,72 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class PolicyStatus( - schemas.EnumBase, - schemas.StrSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - * SUCCESS - success -* UNVALIDATED - not validated yet -* INVALID_CONFIGURATION - at least one rule is invalid -* PENDING - pending approval -* PENDING_CONSOLE_APPROVAL - pending approval from the console app -* AWAITING_QUORUM - pending quorum approval -* UNHANDLED_ERROR - unhandled error - - """ - - @schemas.classproperty - def SUCCESS(cls): - return cls("SUCCESS") - - @schemas.classproperty - def UNVALIDATED(cls): - return cls("UNVALIDATED") - - @schemas.classproperty - def INVALID_CONFIGURATION(cls): - return cls("INVALID_CONFIGURATION") - - @schemas.classproperty - def PENDING(cls): - return cls("PENDING") - - @schemas.classproperty - def PENDING_CONSOLE_APPROVAL(cls): - return cls("PENDING_CONSOLE_APPROVAL") - - @schemas.classproperty - def AWAITING_QUORUM(cls): - return cls("AWAITING_QUORUM") - - @schemas.classproperty - def UNHANDLED_ERROR(cls): - return cls("UNHANDLED_ERROR") diff --git a/fireblocks_client/model/policy_validation.py b/fireblocks_client/model/policy_validation.py deleted file mode 100644 index 03ba655b..00000000 --- a/fireblocks_client/model/policy_validation.py +++ /dev/null @@ -1,103 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class PolicyValidation( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Policy validation object - """ - - - class MetaOapg: - required = { - "checkResult", - "status", - } - - class properties: - status = schemas.StrSchema - - @staticmethod - def checkResult() -> typing.Type['PolicyCheckResult']: - return PolicyCheckResult - __annotations__ = { - "status": status, - "checkResult": checkResult, - } - - checkResult: 'PolicyCheckResult' - status: MetaOapg.properties.status - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["status"]) -> MetaOapg.properties.status: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["checkResult"]) -> 'PolicyCheckResult': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["status", "checkResult", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> MetaOapg.properties.status: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["checkResult"]) -> 'PolicyCheckResult': ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["status", "checkResult", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - checkResult: 'PolicyCheckResult', - status: typing.Union[MetaOapg.properties.status, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'PolicyValidation': - return super().__new__( - cls, - *_args, - checkResult=checkResult, - status=status, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.policy_check_result import PolicyCheckResult diff --git a/fireblocks_client/model/policy_validation.pyi b/fireblocks_client/model/policy_validation.pyi deleted file mode 100644 index 03ba655b..00000000 --- a/fireblocks_client/model/policy_validation.pyi +++ /dev/null @@ -1,103 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class PolicyValidation( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Policy validation object - """ - - - class MetaOapg: - required = { - "checkResult", - "status", - } - - class properties: - status = schemas.StrSchema - - @staticmethod - def checkResult() -> typing.Type['PolicyCheckResult']: - return PolicyCheckResult - __annotations__ = { - "status": status, - "checkResult": checkResult, - } - - checkResult: 'PolicyCheckResult' - status: MetaOapg.properties.status - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["status"]) -> MetaOapg.properties.status: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["checkResult"]) -> 'PolicyCheckResult': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["status", "checkResult", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> MetaOapg.properties.status: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["checkResult"]) -> 'PolicyCheckResult': ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["status", "checkResult", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - checkResult: 'PolicyCheckResult', - status: typing.Union[MetaOapg.properties.status, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'PolicyValidation': - return super().__new__( - cls, - *_args, - checkResult=checkResult, - status=status, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.policy_check_result import PolicyCheckResult diff --git a/fireblocks_client/model/public_key_information.py b/fireblocks_client/model/public_key_information.py deleted file mode 100644 index 59cebf9f..00000000 --- a/fireblocks_client/model/public_key_information.py +++ /dev/null @@ -1,121 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class PublicKeyInformation( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - algorithm = schemas.StrSchema - - - class derivationPath( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.NumberSchema - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, decimal.Decimal, int, float, ]], typing.List[typing.Union[MetaOapg.items, decimal.Decimal, int, float, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'derivationPath': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - publicKey = schemas.StrSchema - __annotations__ = { - "algorithm": algorithm, - "derivationPath": derivationPath, - "publicKey": publicKey, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["algorithm"]) -> MetaOapg.properties.algorithm: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["derivationPath"]) -> MetaOapg.properties.derivationPath: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["publicKey"]) -> MetaOapg.properties.publicKey: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["algorithm", "derivationPath", "publicKey", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["algorithm"]) -> typing.Union[MetaOapg.properties.algorithm, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["derivationPath"]) -> typing.Union[MetaOapg.properties.derivationPath, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["publicKey"]) -> typing.Union[MetaOapg.properties.publicKey, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["algorithm", "derivationPath", "publicKey", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - algorithm: typing.Union[MetaOapg.properties.algorithm, str, schemas.Unset] = schemas.unset, - derivationPath: typing.Union[MetaOapg.properties.derivationPath, list, tuple, schemas.Unset] = schemas.unset, - publicKey: typing.Union[MetaOapg.properties.publicKey, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'PublicKeyInformation': - return super().__new__( - cls, - *_args, - algorithm=algorithm, - derivationPath=derivationPath, - publicKey=publicKey, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/public_key_information.pyi b/fireblocks_client/model/public_key_information.pyi deleted file mode 100644 index 59cebf9f..00000000 --- a/fireblocks_client/model/public_key_information.pyi +++ /dev/null @@ -1,121 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class PublicKeyInformation( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - algorithm = schemas.StrSchema - - - class derivationPath( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.NumberSchema - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, decimal.Decimal, int, float, ]], typing.List[typing.Union[MetaOapg.items, decimal.Decimal, int, float, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'derivationPath': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - publicKey = schemas.StrSchema - __annotations__ = { - "algorithm": algorithm, - "derivationPath": derivationPath, - "publicKey": publicKey, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["algorithm"]) -> MetaOapg.properties.algorithm: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["derivationPath"]) -> MetaOapg.properties.derivationPath: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["publicKey"]) -> MetaOapg.properties.publicKey: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["algorithm", "derivationPath", "publicKey", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["algorithm"]) -> typing.Union[MetaOapg.properties.algorithm, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["derivationPath"]) -> typing.Union[MetaOapg.properties.derivationPath, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["publicKey"]) -> typing.Union[MetaOapg.properties.publicKey, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["algorithm", "derivationPath", "publicKey", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - algorithm: typing.Union[MetaOapg.properties.algorithm, str, schemas.Unset] = schemas.unset, - derivationPath: typing.Union[MetaOapg.properties.derivationPath, list, tuple, schemas.Unset] = schemas.unset, - publicKey: typing.Union[MetaOapg.properties.publicKey, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'PublicKeyInformation': - return super().__new__( - cls, - *_args, - algorithm=algorithm, - derivationPath=derivationPath, - publicKey=publicKey, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/publish_result.py b/fireblocks_client/model/publish_result.py deleted file mode 100644 index c413e54e..00000000 --- a/fireblocks_client/model/publish_result.py +++ /dev/null @@ -1,161 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class PublishResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Response object of the publish policy operation - """ - - - class MetaOapg: - required = { - "metadata", - "rules", - "checkResult", - "status", - } - - class properties: - - @staticmethod - def status() -> typing.Type['PolicyStatus']: - return PolicyStatus - - - class rules( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['PolicyRule']: - return PolicyRule - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['PolicyRule'], typing.List['PolicyRule']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'rules': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'PolicyRule': - return super().__getitem__(i) - - @staticmethod - def checkResult() -> typing.Type['PolicyCheckResult']: - return PolicyCheckResult - - @staticmethod - def metadata() -> typing.Type['PolicyMetadata']: - return PolicyMetadata - __annotations__ = { - "status": status, - "rules": rules, - "checkResult": checkResult, - "metadata": metadata, - } - - metadata: 'PolicyMetadata' - rules: MetaOapg.properties.rules - checkResult: 'PolicyCheckResult' - status: 'PolicyStatus' - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["status"]) -> 'PolicyStatus': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["rules"]) -> MetaOapg.properties.rules: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["checkResult"]) -> 'PolicyCheckResult': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> 'PolicyMetadata': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["status", "rules", "checkResult", "metadata", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> 'PolicyStatus': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["rules"]) -> MetaOapg.properties.rules: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["checkResult"]) -> 'PolicyCheckResult': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> 'PolicyMetadata': ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["status", "rules", "checkResult", "metadata", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - metadata: 'PolicyMetadata', - rules: typing.Union[MetaOapg.properties.rules, list, tuple, ], - checkResult: 'PolicyCheckResult', - status: 'PolicyStatus', - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'PublishResult': - return super().__new__( - cls, - *_args, - metadata=metadata, - rules=rules, - checkResult=checkResult, - status=status, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.policy_check_result import PolicyCheckResult -from fireblocks_client.model.policy_metadata import PolicyMetadata -from fireblocks_client.model.policy_rule import PolicyRule -from fireblocks_client.model.policy_status import PolicyStatus diff --git a/fireblocks_client/model/publish_result.pyi b/fireblocks_client/model/publish_result.pyi deleted file mode 100644 index c413e54e..00000000 --- a/fireblocks_client/model/publish_result.pyi +++ /dev/null @@ -1,161 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class PublishResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Response object of the publish policy operation - """ - - - class MetaOapg: - required = { - "metadata", - "rules", - "checkResult", - "status", - } - - class properties: - - @staticmethod - def status() -> typing.Type['PolicyStatus']: - return PolicyStatus - - - class rules( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['PolicyRule']: - return PolicyRule - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['PolicyRule'], typing.List['PolicyRule']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'rules': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'PolicyRule': - return super().__getitem__(i) - - @staticmethod - def checkResult() -> typing.Type['PolicyCheckResult']: - return PolicyCheckResult - - @staticmethod - def metadata() -> typing.Type['PolicyMetadata']: - return PolicyMetadata - __annotations__ = { - "status": status, - "rules": rules, - "checkResult": checkResult, - "metadata": metadata, - } - - metadata: 'PolicyMetadata' - rules: MetaOapg.properties.rules - checkResult: 'PolicyCheckResult' - status: 'PolicyStatus' - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["status"]) -> 'PolicyStatus': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["rules"]) -> MetaOapg.properties.rules: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["checkResult"]) -> 'PolicyCheckResult': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> 'PolicyMetadata': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["status", "rules", "checkResult", "metadata", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> 'PolicyStatus': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["rules"]) -> MetaOapg.properties.rules: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["checkResult"]) -> 'PolicyCheckResult': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> 'PolicyMetadata': ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["status", "rules", "checkResult", "metadata", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - metadata: 'PolicyMetadata', - rules: typing.Union[MetaOapg.properties.rules, list, tuple, ], - checkResult: 'PolicyCheckResult', - status: 'PolicyStatus', - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'PublishResult': - return super().__new__( - cls, - *_args, - metadata=metadata, - rules=rules, - checkResult=checkResult, - status=status, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.policy_check_result import PolicyCheckResult -from fireblocks_client.model.policy_metadata import PolicyMetadata -from fireblocks_client.model.policy_rule import PolicyRule -from fireblocks_client.model.policy_status import PolicyStatus diff --git a/fireblocks_client/model/remove_collateral_request_body.py b/fireblocks_client/model/remove_collateral_request_body.py deleted file mode 100644 index 39b98601..00000000 --- a/fireblocks_client/model/remove_collateral_request_body.py +++ /dev/null @@ -1,94 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class RemoveCollateralRequestBody( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def transactionRequest() -> typing.Type['TransactionRequest']: - return TransactionRequest - isDstCollateral = schemas.BoolSchema - __annotations__ = { - "transactionRequest": transactionRequest, - "isDstCollateral": isDstCollateral, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["transactionRequest"]) -> 'TransactionRequest': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["isDstCollateral"]) -> MetaOapg.properties.isDstCollateral: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["transactionRequest", "isDstCollateral", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["transactionRequest"]) -> typing.Union['TransactionRequest', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["isDstCollateral"]) -> typing.Union[MetaOapg.properties.isDstCollateral, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["transactionRequest", "isDstCollateral", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - transactionRequest: typing.Union['TransactionRequest', schemas.Unset] = schemas.unset, - isDstCollateral: typing.Union[MetaOapg.properties.isDstCollateral, bool, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'RemoveCollateralRequestBody': - return super().__new__( - cls, - *_args, - transactionRequest=transactionRequest, - isDstCollateral=isDstCollateral, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.transaction_request import TransactionRequest diff --git a/fireblocks_client/model/remove_collateral_request_body.pyi b/fireblocks_client/model/remove_collateral_request_body.pyi deleted file mode 100644 index 39b98601..00000000 --- a/fireblocks_client/model/remove_collateral_request_body.pyi +++ /dev/null @@ -1,94 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class RemoveCollateralRequestBody( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def transactionRequest() -> typing.Type['TransactionRequest']: - return TransactionRequest - isDstCollateral = schemas.BoolSchema - __annotations__ = { - "transactionRequest": transactionRequest, - "isDstCollateral": isDstCollateral, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["transactionRequest"]) -> 'TransactionRequest': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["isDstCollateral"]) -> MetaOapg.properties.isDstCollateral: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["transactionRequest", "isDstCollateral", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["transactionRequest"]) -> typing.Union['TransactionRequest', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["isDstCollateral"]) -> typing.Union[MetaOapg.properties.isDstCollateral, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["transactionRequest", "isDstCollateral", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - transactionRequest: typing.Union['TransactionRequest', schemas.Unset] = schemas.unset, - isDstCollateral: typing.Union[MetaOapg.properties.isDstCollateral, bool, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'RemoveCollateralRequestBody': - return super().__new__( - cls, - *_args, - transactionRequest=transactionRequest, - isDstCollateral=isDstCollateral, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.transaction_request import TransactionRequest diff --git a/fireblocks_client/model/request_options.py b/fireblocks_client/model/request_options.py deleted file mode 100644 index 0a0e7a64..00000000 --- a/fireblocks_client/model/request_options.py +++ /dev/null @@ -1,94 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class RequestOptions( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - idempotencyKey = schemas.StrSchema - - @staticmethod - def ncw() -> typing.Type['Ncw']: - return Ncw - __annotations__ = { - "idempotencyKey": idempotencyKey, - "ncw": ncw, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["idempotencyKey"]) -> MetaOapg.properties.idempotencyKey: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["ncw"]) -> 'Ncw': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["idempotencyKey", "ncw", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["idempotencyKey"]) -> typing.Union[MetaOapg.properties.idempotencyKey, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["ncw"]) -> typing.Union['Ncw', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["idempotencyKey", "ncw", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - idempotencyKey: typing.Union[MetaOapg.properties.idempotencyKey, str, schemas.Unset] = schemas.unset, - ncw: typing.Union['Ncw', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'RequestOptions': - return super().__new__( - cls, - *_args, - idempotencyKey=idempotencyKey, - ncw=ncw, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.ncw import Ncw diff --git a/fireblocks_client/model/request_options.pyi b/fireblocks_client/model/request_options.pyi deleted file mode 100644 index 0a0e7a64..00000000 --- a/fireblocks_client/model/request_options.pyi +++ /dev/null @@ -1,94 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class RequestOptions( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - idempotencyKey = schemas.StrSchema - - @staticmethod - def ncw() -> typing.Type['Ncw']: - return Ncw - __annotations__ = { - "idempotencyKey": idempotencyKey, - "ncw": ncw, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["idempotencyKey"]) -> MetaOapg.properties.idempotencyKey: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["ncw"]) -> 'Ncw': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["idempotencyKey", "ncw", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["idempotencyKey"]) -> typing.Union[MetaOapg.properties.idempotencyKey, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["ncw"]) -> typing.Union['Ncw', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["idempotencyKey", "ncw", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - idempotencyKey: typing.Union[MetaOapg.properties.idempotencyKey, str, schemas.Unset] = schemas.unset, - ncw: typing.Union['Ncw', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'RequestOptions': - return super().__new__( - cls, - *_args, - idempotencyKey=idempotencyKey, - ncw=ncw, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.ncw import Ncw diff --git a/fireblocks_client/model/resend_webhooks_response.py b/fireblocks_client/model/resend_webhooks_response.py deleted file mode 100644 index fbbf5893..00000000 --- a/fireblocks_client/model/resend_webhooks_response.py +++ /dev/null @@ -1,79 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class ResendWebhooksResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - messagesCount = schemas.NumberSchema - __annotations__ = { - "messagesCount": messagesCount, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["messagesCount"]) -> MetaOapg.properties.messagesCount: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["messagesCount", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["messagesCount"]) -> typing.Union[MetaOapg.properties.messagesCount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["messagesCount", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - messagesCount: typing.Union[MetaOapg.properties.messagesCount, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ResendWebhooksResponse': - return super().__new__( - cls, - *_args, - messagesCount=messagesCount, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/resend_webhooks_response.pyi b/fireblocks_client/model/resend_webhooks_response.pyi deleted file mode 100644 index fbbf5893..00000000 --- a/fireblocks_client/model/resend_webhooks_response.pyi +++ /dev/null @@ -1,79 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class ResendWebhooksResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - messagesCount = schemas.NumberSchema - __annotations__ = { - "messagesCount": messagesCount, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["messagesCount"]) -> MetaOapg.properties.messagesCount: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["messagesCount", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["messagesCount"]) -> typing.Union[MetaOapg.properties.messagesCount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["messagesCount", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - messagesCount: typing.Union[MetaOapg.properties.messagesCount, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ResendWebhooksResponse': - return super().__new__( - cls, - *_args, - messagesCount=messagesCount, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/respond_to_connection_request.py b/fireblocks_client/model/respond_to_connection_request.py deleted file mode 100644 index 25ba6247..00000000 --- a/fireblocks_client/model/respond_to_connection_request.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class RespondToConnectionRequest( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "approve", - } - - class properties: - approve = schemas.BoolSchema - __annotations__ = { - "approve": approve, - } - - approve: MetaOapg.properties.approve - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["approve"]) -> MetaOapg.properties.approve: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["approve", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["approve"]) -> MetaOapg.properties.approve: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["approve", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - approve: typing.Union[MetaOapg.properties.approve, bool, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'RespondToConnectionRequest': - return super().__new__( - cls, - *_args, - approve=approve, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/respond_to_connection_request.pyi b/fireblocks_client/model/respond_to_connection_request.pyi deleted file mode 100644 index 25ba6247..00000000 --- a/fireblocks_client/model/respond_to_connection_request.pyi +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class RespondToConnectionRequest( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "approve", - } - - class properties: - approve = schemas.BoolSchema - __annotations__ = { - "approve": approve, - } - - approve: MetaOapg.properties.approve - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["approve"]) -> MetaOapg.properties.approve: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["approve", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["approve"]) -> MetaOapg.properties.approve: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["approve", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - approve: typing.Union[MetaOapg.properties.approve, bool, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'RespondToConnectionRequest': - return super().__new__( - cls, - *_args, - approve=approve, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/reward_info.py b/fireblocks_client/model/reward_info.py deleted file mode 100644 index 08fd7ed3..00000000 --- a/fireblocks_client/model/reward_info.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class RewardInfo( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - This field is relevant only for Algorand transactions. Both `srcRewards` and `destRewards` will appear only for Vault to Vault transactions, otherwise you will receive only the Fireblocks’ side of the transaction. - """ - - - class MetaOapg: - - class properties: - srcRewards = schemas.StrSchema - destRewards = schemas.StrSchema - __annotations__ = { - "srcRewards": srcRewards, - "destRewards": destRewards, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["srcRewards"]) -> MetaOapg.properties.srcRewards: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["destRewards"]) -> MetaOapg.properties.destRewards: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["srcRewards", "destRewards", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["srcRewards"]) -> typing.Union[MetaOapg.properties.srcRewards, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["destRewards"]) -> typing.Union[MetaOapg.properties.destRewards, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["srcRewards", "destRewards", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - srcRewards: typing.Union[MetaOapg.properties.srcRewards, str, schemas.Unset] = schemas.unset, - destRewards: typing.Union[MetaOapg.properties.destRewards, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'RewardInfo': - return super().__new__( - cls, - *_args, - srcRewards=srcRewards, - destRewards=destRewards, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/reward_info.pyi b/fireblocks_client/model/reward_info.pyi deleted file mode 100644 index 08fd7ed3..00000000 --- a/fireblocks_client/model/reward_info.pyi +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class RewardInfo( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - This field is relevant only for Algorand transactions. Both `srcRewards` and `destRewards` will appear only for Vault to Vault transactions, otherwise you will receive only the Fireblocks’ side of the transaction. - """ - - - class MetaOapg: - - class properties: - srcRewards = schemas.StrSchema - destRewards = schemas.StrSchema - __annotations__ = { - "srcRewards": srcRewards, - "destRewards": destRewards, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["srcRewards"]) -> MetaOapg.properties.srcRewards: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["destRewards"]) -> MetaOapg.properties.destRewards: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["srcRewards", "destRewards", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["srcRewards"]) -> typing.Union[MetaOapg.properties.srcRewards, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["destRewards"]) -> typing.Union[MetaOapg.properties.destRewards, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["srcRewards", "destRewards", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - srcRewards: typing.Union[MetaOapg.properties.srcRewards, str, schemas.Unset] = schemas.unset, - destRewards: typing.Union[MetaOapg.properties.destRewards, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'RewardInfo': - return super().__new__( - cls, - *_args, - srcRewards=srcRewards, - destRewards=destRewards, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/rewards_info.py b/fireblocks_client/model/rewards_info.py deleted file mode 100644 index c0122ea3..00000000 --- a/fireblocks_client/model/rewards_info.py +++ /dev/null @@ -1,79 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class RewardsInfo( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - pendingRewards = schemas.StrSchema - __annotations__ = { - "pendingRewards": pendingRewards, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["pendingRewards"]) -> MetaOapg.properties.pendingRewards: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["pendingRewards", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["pendingRewards"]) -> typing.Union[MetaOapg.properties.pendingRewards, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["pendingRewards", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - pendingRewards: typing.Union[MetaOapg.properties.pendingRewards, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'RewardsInfo': - return super().__new__( - cls, - *_args, - pendingRewards=pendingRewards, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/rewards_info.pyi b/fireblocks_client/model/rewards_info.pyi deleted file mode 100644 index c0122ea3..00000000 --- a/fireblocks_client/model/rewards_info.pyi +++ /dev/null @@ -1,79 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class RewardsInfo( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - pendingRewards = schemas.StrSchema - __annotations__ = { - "pendingRewards": pendingRewards, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["pendingRewards"]) -> MetaOapg.properties.pendingRewards: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["pendingRewards", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["pendingRewards"]) -> typing.Union[MetaOapg.properties.pendingRewards, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["pendingRewards", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - pendingRewards: typing.Union[MetaOapg.properties.pendingRewards, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'RewardsInfo': - return super().__new__( - cls, - *_args, - pendingRewards=pendingRewards, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/session_dto.py b/fireblocks_client/model/session_dto.py deleted file mode 100644 index b616ddad..00000000 --- a/fireblocks_client/model/session_dto.py +++ /dev/null @@ -1,299 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class SessionDTO( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "vaultAccountId", - "chainIds", - "sessionMetadata", - "feeLevel", - "id", - "creationDate", - "connectionType", - "userId", - "connectionMethod", - } - - class properties: - id = schemas.StrSchema - userId = schemas.StrSchema - - - class sessionMetadata( - schemas.ComposedSchema, - ): - - - class MetaOapg: - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - SessionMetadata, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'sessionMetadata': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - vaultAccountId = schemas.NumberSchema - - - class feeLevel( - schemas.EnumBase, - schemas.StrSchema - ): - - - class MetaOapg: - enum_value_to_name = { - "MEDIUM": "MEDIUM", - "HIGH": "HIGH", - } - - @schemas.classproperty - def MEDIUM(cls): - return cls("MEDIUM") - - @schemas.classproperty - def HIGH(cls): - return cls("HIGH") - - - class chainIds( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.StrSchema - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'chainIds': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - - - class connectionType( - schemas.EnumBase, - schemas.StrSchema - ): - - - class MetaOapg: - enum_value_to_name = { - "WalletConnect": "WALLET_CONNECT", - } - - @schemas.classproperty - def WALLET_CONNECT(cls): - return cls("WalletConnect") - - - class connectionMethod( - schemas.EnumBase, - schemas.StrSchema - ): - - - class MetaOapg: - enum_value_to_name = { - "DESKTOP": "DESKTOP", - "MOBILE": "MOBILE", - "API": "API", - } - - @schemas.classproperty - def DESKTOP(cls): - return cls("DESKTOP") - - @schemas.classproperty - def MOBILE(cls): - return cls("MOBILE") - - @schemas.classproperty - def API(cls): - return cls("API") - creationDate = schemas.DateTimeSchema - __annotations__ = { - "id": id, - "userId": userId, - "sessionMetadata": sessionMetadata, - "vaultAccountId": vaultAccountId, - "feeLevel": feeLevel, - "chainIds": chainIds, - "connectionType": connectionType, - "connectionMethod": connectionMethod, - "creationDate": creationDate, - } - - vaultAccountId: MetaOapg.properties.vaultAccountId - chainIds: MetaOapg.properties.chainIds - sessionMetadata: MetaOapg.properties.sessionMetadata - feeLevel: MetaOapg.properties.feeLevel - id: MetaOapg.properties.id - creationDate: MetaOapg.properties.creationDate - connectionType: MetaOapg.properties.connectionType - userId: MetaOapg.properties.userId - connectionMethod: MetaOapg.properties.connectionMethod - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["userId"]) -> MetaOapg.properties.userId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["sessionMetadata"]) -> MetaOapg.properties.sessionMetadata: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["vaultAccountId"]) -> MetaOapg.properties.vaultAccountId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["feeLevel"]) -> MetaOapg.properties.feeLevel: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["chainIds"]) -> MetaOapg.properties.chainIds: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["connectionType"]) -> MetaOapg.properties.connectionType: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["connectionMethod"]) -> MetaOapg.properties.connectionMethod: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["creationDate"]) -> MetaOapg.properties.creationDate: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "userId", "sessionMetadata", "vaultAccountId", "feeLevel", "chainIds", "connectionType", "connectionMethod", "creationDate", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["userId"]) -> MetaOapg.properties.userId: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["sessionMetadata"]) -> MetaOapg.properties.sessionMetadata: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["vaultAccountId"]) -> MetaOapg.properties.vaultAccountId: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["feeLevel"]) -> MetaOapg.properties.feeLevel: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["chainIds"]) -> MetaOapg.properties.chainIds: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["connectionType"]) -> MetaOapg.properties.connectionType: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["connectionMethod"]) -> MetaOapg.properties.connectionMethod: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["creationDate"]) -> MetaOapg.properties.creationDate: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "userId", "sessionMetadata", "vaultAccountId", "feeLevel", "chainIds", "connectionType", "connectionMethod", "creationDate", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - vaultAccountId: typing.Union[MetaOapg.properties.vaultAccountId, decimal.Decimal, int, float, ], - chainIds: typing.Union[MetaOapg.properties.chainIds, list, tuple, ], - sessionMetadata: typing.Union[MetaOapg.properties.sessionMetadata, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - feeLevel: typing.Union[MetaOapg.properties.feeLevel, str, ], - id: typing.Union[MetaOapg.properties.id, str, ], - creationDate: typing.Union[MetaOapg.properties.creationDate, str, datetime, ], - connectionType: typing.Union[MetaOapg.properties.connectionType, str, ], - userId: typing.Union[MetaOapg.properties.userId, str, ], - connectionMethod: typing.Union[MetaOapg.properties.connectionMethod, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SessionDTO': - return super().__new__( - cls, - *_args, - vaultAccountId=vaultAccountId, - chainIds=chainIds, - sessionMetadata=sessionMetadata, - feeLevel=feeLevel, - id=id, - creationDate=creationDate, - connectionType=connectionType, - userId=userId, - connectionMethod=connectionMethod, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.session_metadata import SessionMetadata diff --git a/fireblocks_client/model/session_dto.pyi b/fireblocks_client/model/session_dto.pyi deleted file mode 100644 index b5e3169f..00000000 --- a/fireblocks_client/model/session_dto.pyi +++ /dev/null @@ -1,278 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class SessionDTO( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "vaultAccountId", - "chainIds", - "sessionMetadata", - "feeLevel", - "id", - "creationDate", - "connectionType", - "userId", - "connectionMethod", - } - - class properties: - id = schemas.StrSchema - userId = schemas.StrSchema - - - class sessionMetadata( - schemas.ComposedSchema, - ): - - - class MetaOapg: - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - SessionMetadata, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'sessionMetadata': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - vaultAccountId = schemas.NumberSchema - - - class feeLevel( - schemas.EnumBase, - schemas.StrSchema - ): - - @schemas.classproperty - def MEDIUM(cls): - return cls("MEDIUM") - - @schemas.classproperty - def HIGH(cls): - return cls("HIGH") - - - class chainIds( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.StrSchema - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'chainIds': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - - - class connectionType( - schemas.EnumBase, - schemas.StrSchema - ): - - @schemas.classproperty - def WALLET_CONNECT(cls): - return cls("WalletConnect") - - - class connectionMethod( - schemas.EnumBase, - schemas.StrSchema - ): - - @schemas.classproperty - def DESKTOP(cls): - return cls("DESKTOP") - - @schemas.classproperty - def MOBILE(cls): - return cls("MOBILE") - - @schemas.classproperty - def API(cls): - return cls("API") - creationDate = schemas.DateTimeSchema - __annotations__ = { - "id": id, - "userId": userId, - "sessionMetadata": sessionMetadata, - "vaultAccountId": vaultAccountId, - "feeLevel": feeLevel, - "chainIds": chainIds, - "connectionType": connectionType, - "connectionMethod": connectionMethod, - "creationDate": creationDate, - } - - vaultAccountId: MetaOapg.properties.vaultAccountId - chainIds: MetaOapg.properties.chainIds - sessionMetadata: MetaOapg.properties.sessionMetadata - feeLevel: MetaOapg.properties.feeLevel - id: MetaOapg.properties.id - creationDate: MetaOapg.properties.creationDate - connectionType: MetaOapg.properties.connectionType - userId: MetaOapg.properties.userId - connectionMethod: MetaOapg.properties.connectionMethod - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["userId"]) -> MetaOapg.properties.userId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["sessionMetadata"]) -> MetaOapg.properties.sessionMetadata: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["vaultAccountId"]) -> MetaOapg.properties.vaultAccountId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["feeLevel"]) -> MetaOapg.properties.feeLevel: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["chainIds"]) -> MetaOapg.properties.chainIds: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["connectionType"]) -> MetaOapg.properties.connectionType: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["connectionMethod"]) -> MetaOapg.properties.connectionMethod: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["creationDate"]) -> MetaOapg.properties.creationDate: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "userId", "sessionMetadata", "vaultAccountId", "feeLevel", "chainIds", "connectionType", "connectionMethod", "creationDate", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["userId"]) -> MetaOapg.properties.userId: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["sessionMetadata"]) -> MetaOapg.properties.sessionMetadata: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["vaultAccountId"]) -> MetaOapg.properties.vaultAccountId: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["feeLevel"]) -> MetaOapg.properties.feeLevel: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["chainIds"]) -> MetaOapg.properties.chainIds: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["connectionType"]) -> MetaOapg.properties.connectionType: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["connectionMethod"]) -> MetaOapg.properties.connectionMethod: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["creationDate"]) -> MetaOapg.properties.creationDate: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "userId", "sessionMetadata", "vaultAccountId", "feeLevel", "chainIds", "connectionType", "connectionMethod", "creationDate", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - vaultAccountId: typing.Union[MetaOapg.properties.vaultAccountId, decimal.Decimal, int, float, ], - chainIds: typing.Union[MetaOapg.properties.chainIds, list, tuple, ], - sessionMetadata: typing.Union[MetaOapg.properties.sessionMetadata, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - feeLevel: typing.Union[MetaOapg.properties.feeLevel, str, ], - id: typing.Union[MetaOapg.properties.id, str, ], - creationDate: typing.Union[MetaOapg.properties.creationDate, str, datetime, ], - connectionType: typing.Union[MetaOapg.properties.connectionType, str, ], - userId: typing.Union[MetaOapg.properties.userId, str, ], - connectionMethod: typing.Union[MetaOapg.properties.connectionMethod, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SessionDTO': - return super().__new__( - cls, - *_args, - vaultAccountId=vaultAccountId, - chainIds=chainIds, - sessionMetadata=sessionMetadata, - feeLevel=feeLevel, - id=id, - creationDate=creationDate, - connectionType=connectionType, - userId=userId, - connectionMethod=connectionMethod, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.session_metadata import SessionMetadata diff --git a/fireblocks_client/model/session_metadata.py b/fireblocks_client/model/session_metadata.py deleted file mode 100644 index 885d22bf..00000000 --- a/fireblocks_client/model/session_metadata.py +++ /dev/null @@ -1,114 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class SessionMetadata( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "appUrl", - } - - class properties: - appUrl = schemas.StrSchema - appName = schemas.StrSchema - appDescription = schemas.StrSchema - appIcon = schemas.StrSchema - __annotations__ = { - "appUrl": appUrl, - "appName": appName, - "appDescription": appDescription, - "appIcon": appIcon, - } - - appUrl: MetaOapg.properties.appUrl - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["appUrl"]) -> MetaOapg.properties.appUrl: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["appName"]) -> MetaOapg.properties.appName: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["appDescription"]) -> MetaOapg.properties.appDescription: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["appIcon"]) -> MetaOapg.properties.appIcon: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["appUrl", "appName", "appDescription", "appIcon", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["appUrl"]) -> MetaOapg.properties.appUrl: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["appName"]) -> typing.Union[MetaOapg.properties.appName, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["appDescription"]) -> typing.Union[MetaOapg.properties.appDescription, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["appIcon"]) -> typing.Union[MetaOapg.properties.appIcon, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["appUrl", "appName", "appDescription", "appIcon", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - appUrl: typing.Union[MetaOapg.properties.appUrl, str, ], - appName: typing.Union[MetaOapg.properties.appName, str, schemas.Unset] = schemas.unset, - appDescription: typing.Union[MetaOapg.properties.appDescription, str, schemas.Unset] = schemas.unset, - appIcon: typing.Union[MetaOapg.properties.appIcon, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SessionMetadata': - return super().__new__( - cls, - *_args, - appUrl=appUrl, - appName=appName, - appDescription=appDescription, - appIcon=appIcon, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/session_metadata.pyi b/fireblocks_client/model/session_metadata.pyi deleted file mode 100644 index 885d22bf..00000000 --- a/fireblocks_client/model/session_metadata.pyi +++ /dev/null @@ -1,114 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class SessionMetadata( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "appUrl", - } - - class properties: - appUrl = schemas.StrSchema - appName = schemas.StrSchema - appDescription = schemas.StrSchema - appIcon = schemas.StrSchema - __annotations__ = { - "appUrl": appUrl, - "appName": appName, - "appDescription": appDescription, - "appIcon": appIcon, - } - - appUrl: MetaOapg.properties.appUrl - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["appUrl"]) -> MetaOapg.properties.appUrl: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["appName"]) -> MetaOapg.properties.appName: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["appDescription"]) -> MetaOapg.properties.appDescription: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["appIcon"]) -> MetaOapg.properties.appIcon: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["appUrl", "appName", "appDescription", "appIcon", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["appUrl"]) -> MetaOapg.properties.appUrl: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["appName"]) -> typing.Union[MetaOapg.properties.appName, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["appDescription"]) -> typing.Union[MetaOapg.properties.appDescription, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["appIcon"]) -> typing.Union[MetaOapg.properties.appIcon, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["appUrl", "appName", "appDescription", "appIcon", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - appUrl: typing.Union[MetaOapg.properties.appUrl, str, ], - appName: typing.Union[MetaOapg.properties.appName, str, schemas.Unset] = schemas.unset, - appDescription: typing.Union[MetaOapg.properties.appDescription, str, schemas.Unset] = schemas.unset, - appIcon: typing.Union[MetaOapg.properties.appIcon, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SessionMetadata': - return super().__new__( - cls, - *_args, - appUrl=appUrl, - appName=appName, - appDescription=appDescription, - appIcon=appIcon, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/set_confirmations_threshold_request.py b/fireblocks_client/model/set_confirmations_threshold_request.py deleted file mode 100644 index d1b8416b..00000000 --- a/fireblocks_client/model/set_confirmations_threshold_request.py +++ /dev/null @@ -1,79 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class SetConfirmationsThresholdRequest( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - numOfConfirmations = schemas.NumberSchema - __annotations__ = { - "numOfConfirmations": numOfConfirmations, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["numOfConfirmations"]) -> MetaOapg.properties.numOfConfirmations: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["numOfConfirmations", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["numOfConfirmations"]) -> typing.Union[MetaOapg.properties.numOfConfirmations, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["numOfConfirmations", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - numOfConfirmations: typing.Union[MetaOapg.properties.numOfConfirmations, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SetConfirmationsThresholdRequest': - return super().__new__( - cls, - *_args, - numOfConfirmations=numOfConfirmations, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/set_confirmations_threshold_request.pyi b/fireblocks_client/model/set_confirmations_threshold_request.pyi deleted file mode 100644 index d1b8416b..00000000 --- a/fireblocks_client/model/set_confirmations_threshold_request.pyi +++ /dev/null @@ -1,79 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class SetConfirmationsThresholdRequest( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - numOfConfirmations = schemas.NumberSchema - __annotations__ = { - "numOfConfirmations": numOfConfirmations, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["numOfConfirmations"]) -> MetaOapg.properties.numOfConfirmations: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["numOfConfirmations", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["numOfConfirmations"]) -> typing.Union[MetaOapg.properties.numOfConfirmations, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["numOfConfirmations", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - numOfConfirmations: typing.Union[MetaOapg.properties.numOfConfirmations, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SetConfirmationsThresholdRequest': - return super().__new__( - cls, - *_args, - numOfConfirmations=numOfConfirmations, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/set_confirmations_threshold_response.py b/fireblocks_client/model/set_confirmations_threshold_response.py deleted file mode 100644 index 7bcd96ab..00000000 --- a/fireblocks_client/model/set_confirmations_threshold_response.py +++ /dev/null @@ -1,111 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class SetConfirmationsThresholdResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - success = schemas.BoolSchema - - - class transactions( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.StrSchema - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'transactions': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - __annotations__ = { - "success": success, - "transactions": transactions, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["success"]) -> MetaOapg.properties.success: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["transactions"]) -> MetaOapg.properties.transactions: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["success", "transactions", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["success"]) -> typing.Union[MetaOapg.properties.success, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["transactions"]) -> typing.Union[MetaOapg.properties.transactions, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["success", "transactions", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - success: typing.Union[MetaOapg.properties.success, bool, schemas.Unset] = schemas.unset, - transactions: typing.Union[MetaOapg.properties.transactions, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SetConfirmationsThresholdResponse': - return super().__new__( - cls, - *_args, - success=success, - transactions=transactions, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/set_confirmations_threshold_response.pyi b/fireblocks_client/model/set_confirmations_threshold_response.pyi deleted file mode 100644 index 7bcd96ab..00000000 --- a/fireblocks_client/model/set_confirmations_threshold_response.pyi +++ /dev/null @@ -1,111 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class SetConfirmationsThresholdResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - success = schemas.BoolSchema - - - class transactions( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.StrSchema - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'transactions': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - __annotations__ = { - "success": success, - "transactions": transactions, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["success"]) -> MetaOapg.properties.success: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["transactions"]) -> MetaOapg.properties.transactions: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["success", "transactions", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["success"]) -> typing.Union[MetaOapg.properties.success, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["transactions"]) -> typing.Union[MetaOapg.properties.transactions, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["success", "transactions", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - success: typing.Union[MetaOapg.properties.success, bool, schemas.Unset] = schemas.unset, - transactions: typing.Union[MetaOapg.properties.transactions, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SetConfirmationsThresholdResponse': - return super().__new__( - cls, - *_args, - success=success, - transactions=transactions, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/settlement_request_body.py b/fireblocks_client/model/settlement_request_body.py deleted file mode 100644 index 0e592234..00000000 --- a/fireblocks_client/model/settlement_request_body.py +++ /dev/null @@ -1,79 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class SettlementRequestBody( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - mainExchangeAccountId = schemas.StrSchema - __annotations__ = { - "mainExchangeAccountId": mainExchangeAccountId, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["mainExchangeAccountId"]) -> MetaOapg.properties.mainExchangeAccountId: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["mainExchangeAccountId", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["mainExchangeAccountId"]) -> typing.Union[MetaOapg.properties.mainExchangeAccountId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["mainExchangeAccountId", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - mainExchangeAccountId: typing.Union[MetaOapg.properties.mainExchangeAccountId, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SettlementRequestBody': - return super().__new__( - cls, - *_args, - mainExchangeAccountId=mainExchangeAccountId, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/settlement_request_body.pyi b/fireblocks_client/model/settlement_request_body.pyi deleted file mode 100644 index 0e592234..00000000 --- a/fireblocks_client/model/settlement_request_body.pyi +++ /dev/null @@ -1,79 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class SettlementRequestBody( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - mainExchangeAccountId = schemas.StrSchema - __annotations__ = { - "mainExchangeAccountId": mainExchangeAccountId, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["mainExchangeAccountId"]) -> MetaOapg.properties.mainExchangeAccountId: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["mainExchangeAccountId", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["mainExchangeAccountId"]) -> typing.Union[MetaOapg.properties.mainExchangeAccountId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["mainExchangeAccountId", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - mainExchangeAccountId: typing.Union[MetaOapg.properties.mainExchangeAccountId, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SettlementRequestBody': - return super().__new__( - cls, - *_args, - mainExchangeAccountId=mainExchangeAccountId, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/settlement_response.py b/fireblocks_client/model/settlement_response.py deleted file mode 100644 index 4a8f7d68..00000000 --- a/fireblocks_client/model/settlement_response.py +++ /dev/null @@ -1,122 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class SettlementResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - id = schemas.StrSchema - initiator = schemas.StrSchema - exchangeReply = schemas.StrSchema - fireblocksInitiatedTransactions = schemas.DictSchema - - @staticmethod - def exchangeRequestedTransactions() -> typing.Type['SettlementResponse']: - return SettlementResponse - __annotations__ = { - "id": id, - "initiator": initiator, - "exchangeReply": exchangeReply, - "fireblocksInitiatedTransactions": fireblocksInitiatedTransactions, - "exchangeRequestedTransactions": exchangeRequestedTransactions, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["initiator"]) -> MetaOapg.properties.initiator: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["exchangeReply"]) -> MetaOapg.properties.exchangeReply: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["fireblocksInitiatedTransactions"]) -> MetaOapg.properties.fireblocksInitiatedTransactions: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["exchangeRequestedTransactions"]) -> 'SettlementResponse': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "initiator", "exchangeReply", "fireblocksInitiatedTransactions", "exchangeRequestedTransactions", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["initiator"]) -> typing.Union[MetaOapg.properties.initiator, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["exchangeReply"]) -> typing.Union[MetaOapg.properties.exchangeReply, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["fireblocksInitiatedTransactions"]) -> typing.Union[MetaOapg.properties.fireblocksInitiatedTransactions, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["exchangeRequestedTransactions"]) -> typing.Union['SettlementResponse', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "initiator", "exchangeReply", "fireblocksInitiatedTransactions", "exchangeRequestedTransactions", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - initiator: typing.Union[MetaOapg.properties.initiator, str, schemas.Unset] = schemas.unset, - exchangeReply: typing.Union[MetaOapg.properties.exchangeReply, str, schemas.Unset] = schemas.unset, - fireblocksInitiatedTransactions: typing.Union[MetaOapg.properties.fireblocksInitiatedTransactions, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - exchangeRequestedTransactions: typing.Union['SettlementResponse', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SettlementResponse': - return super().__new__( - cls, - *_args, - id=id, - initiator=initiator, - exchangeReply=exchangeReply, - fireblocksInitiatedTransactions=fireblocksInitiatedTransactions, - exchangeRequestedTransactions=exchangeRequestedTransactions, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/settlement_response.pyi b/fireblocks_client/model/settlement_response.pyi deleted file mode 100644 index 4a8f7d68..00000000 --- a/fireblocks_client/model/settlement_response.pyi +++ /dev/null @@ -1,122 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class SettlementResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - id = schemas.StrSchema - initiator = schemas.StrSchema - exchangeReply = schemas.StrSchema - fireblocksInitiatedTransactions = schemas.DictSchema - - @staticmethod - def exchangeRequestedTransactions() -> typing.Type['SettlementResponse']: - return SettlementResponse - __annotations__ = { - "id": id, - "initiator": initiator, - "exchangeReply": exchangeReply, - "fireblocksInitiatedTransactions": fireblocksInitiatedTransactions, - "exchangeRequestedTransactions": exchangeRequestedTransactions, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["initiator"]) -> MetaOapg.properties.initiator: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["exchangeReply"]) -> MetaOapg.properties.exchangeReply: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["fireblocksInitiatedTransactions"]) -> MetaOapg.properties.fireblocksInitiatedTransactions: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["exchangeRequestedTransactions"]) -> 'SettlementResponse': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "initiator", "exchangeReply", "fireblocksInitiatedTransactions", "exchangeRequestedTransactions", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["initiator"]) -> typing.Union[MetaOapg.properties.initiator, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["exchangeReply"]) -> typing.Union[MetaOapg.properties.exchangeReply, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["fireblocksInitiatedTransactions"]) -> typing.Union[MetaOapg.properties.fireblocksInitiatedTransactions, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["exchangeRequestedTransactions"]) -> typing.Union['SettlementResponse', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "initiator", "exchangeReply", "fireblocksInitiatedTransactions", "exchangeRequestedTransactions", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - initiator: typing.Union[MetaOapg.properties.initiator, str, schemas.Unset] = schemas.unset, - exchangeReply: typing.Union[MetaOapg.properties.exchangeReply, str, schemas.Unset] = schemas.unset, - fireblocksInitiatedTransactions: typing.Union[MetaOapg.properties.fireblocksInitiatedTransactions, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - exchangeRequestedTransactions: typing.Union['SettlementResponse', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SettlementResponse': - return super().__new__( - cls, - *_args, - id=id, - initiator=initiator, - exchangeReply=exchangeReply, - fireblocksInitiatedTransactions=fireblocksInitiatedTransactions, - exchangeRequestedTransactions=exchangeRequestedTransactions, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/signed_message.py b/fireblocks_client/model/signed_message.py deleted file mode 100644 index f4c144a6..00000000 --- a/fireblocks_client/model/signed_message.py +++ /dev/null @@ -1,242 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class SignedMessage( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - A list of signed messages returned for raw signing. - """ - - - class MetaOapg: - - class properties: - content = schemas.StrSchema - - - class algorithm( - schemas.EnumBase, - schemas.StrSchema - ): - - - class MetaOapg: - enum_value_to_name = { - "MPC_ECDSA_SECP256K1": "ECDSA_SECP256K1", - "MPC_EDDSA_ED25519": "EDDSA_ED25519", - } - - @schemas.classproperty - def ECDSA_SECP256K1(cls): - return cls("MPC_ECDSA_SECP256K1") - - @schemas.classproperty - def EDDSA_ED25519(cls): - return cls("MPC_EDDSA_ED25519") - - - class derivationPath( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.NumberSchema - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, decimal.Decimal, int, float, ]], typing.List[typing.Union[MetaOapg.items, decimal.Decimal, int, float, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'derivationPath': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - - - class signature( - schemas.DictSchema - ): - - - class MetaOapg: - - class properties: - fullSig = schemas.StrSchema - r = schemas.StrSchema - s = schemas.StrSchema - v = schemas.NumberSchema - __annotations__ = { - "fullSig": fullSig, - "r": r, - "s": s, - "v": v, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["fullSig"]) -> MetaOapg.properties.fullSig: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["r"]) -> MetaOapg.properties.r: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["s"]) -> MetaOapg.properties.s: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["v"]) -> MetaOapg.properties.v: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["fullSig", "r", "s", "v", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["fullSig"]) -> typing.Union[MetaOapg.properties.fullSig, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["r"]) -> typing.Union[MetaOapg.properties.r, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["s"]) -> typing.Union[MetaOapg.properties.s, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["v"]) -> typing.Union[MetaOapg.properties.v, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["fullSig", "r", "s", "v", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - fullSig: typing.Union[MetaOapg.properties.fullSig, str, schemas.Unset] = schemas.unset, - r: typing.Union[MetaOapg.properties.r, str, schemas.Unset] = schemas.unset, - s: typing.Union[MetaOapg.properties.s, str, schemas.Unset] = schemas.unset, - v: typing.Union[MetaOapg.properties.v, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'signature': - return super().__new__( - cls, - *_args, - fullSig=fullSig, - r=r, - s=s, - v=v, - _configuration=_configuration, - **kwargs, - ) - publicKey = schemas.StrSchema - __annotations__ = { - "content": content, - "algorithm": algorithm, - "derivationPath": derivationPath, - "signature": signature, - "publicKey": publicKey, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["content"]) -> MetaOapg.properties.content: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["algorithm"]) -> MetaOapg.properties.algorithm: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["derivationPath"]) -> MetaOapg.properties.derivationPath: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["signature"]) -> MetaOapg.properties.signature: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["publicKey"]) -> MetaOapg.properties.publicKey: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["content", "algorithm", "derivationPath", "signature", "publicKey", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["content"]) -> typing.Union[MetaOapg.properties.content, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["algorithm"]) -> typing.Union[MetaOapg.properties.algorithm, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["derivationPath"]) -> typing.Union[MetaOapg.properties.derivationPath, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["signature"]) -> typing.Union[MetaOapg.properties.signature, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["publicKey"]) -> typing.Union[MetaOapg.properties.publicKey, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["content", "algorithm", "derivationPath", "signature", "publicKey", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - content: typing.Union[MetaOapg.properties.content, str, schemas.Unset] = schemas.unset, - algorithm: typing.Union[MetaOapg.properties.algorithm, str, schemas.Unset] = schemas.unset, - derivationPath: typing.Union[MetaOapg.properties.derivationPath, list, tuple, schemas.Unset] = schemas.unset, - signature: typing.Union[MetaOapg.properties.signature, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - publicKey: typing.Union[MetaOapg.properties.publicKey, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SignedMessage': - return super().__new__( - cls, - *_args, - content=content, - algorithm=algorithm, - derivationPath=derivationPath, - signature=signature, - publicKey=publicKey, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/signed_message.pyi b/fireblocks_client/model/signed_message.pyi deleted file mode 100644 index 46e42186..00000000 --- a/fireblocks_client/model/signed_message.pyi +++ /dev/null @@ -1,235 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class SignedMessage( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - A list of signed messages returned for raw signing. - """ - - - class MetaOapg: - - class properties: - content = schemas.StrSchema - - - class algorithm( - schemas.EnumBase, - schemas.StrSchema - ): - - @schemas.classproperty - def ECDSA_SECP256K1(cls): - return cls("MPC_ECDSA_SECP256K1") - - @schemas.classproperty - def EDDSA_ED25519(cls): - return cls("MPC_EDDSA_ED25519") - - - class derivationPath( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.NumberSchema - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, decimal.Decimal, int, float, ]], typing.List[typing.Union[MetaOapg.items, decimal.Decimal, int, float, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'derivationPath': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - - - class signature( - schemas.DictSchema - ): - - - class MetaOapg: - - class properties: - fullSig = schemas.StrSchema - r = schemas.StrSchema - s = schemas.StrSchema - v = schemas.NumberSchema - __annotations__ = { - "fullSig": fullSig, - "r": r, - "s": s, - "v": v, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["fullSig"]) -> MetaOapg.properties.fullSig: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["r"]) -> MetaOapg.properties.r: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["s"]) -> MetaOapg.properties.s: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["v"]) -> MetaOapg.properties.v: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["fullSig", "r", "s", "v", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["fullSig"]) -> typing.Union[MetaOapg.properties.fullSig, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["r"]) -> typing.Union[MetaOapg.properties.r, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["s"]) -> typing.Union[MetaOapg.properties.s, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["v"]) -> typing.Union[MetaOapg.properties.v, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["fullSig", "r", "s", "v", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - fullSig: typing.Union[MetaOapg.properties.fullSig, str, schemas.Unset] = schemas.unset, - r: typing.Union[MetaOapg.properties.r, str, schemas.Unset] = schemas.unset, - s: typing.Union[MetaOapg.properties.s, str, schemas.Unset] = schemas.unset, - v: typing.Union[MetaOapg.properties.v, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'signature': - return super().__new__( - cls, - *_args, - fullSig=fullSig, - r=r, - s=s, - v=v, - _configuration=_configuration, - **kwargs, - ) - publicKey = schemas.StrSchema - __annotations__ = { - "content": content, - "algorithm": algorithm, - "derivationPath": derivationPath, - "signature": signature, - "publicKey": publicKey, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["content"]) -> MetaOapg.properties.content: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["algorithm"]) -> MetaOapg.properties.algorithm: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["derivationPath"]) -> MetaOapg.properties.derivationPath: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["signature"]) -> MetaOapg.properties.signature: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["publicKey"]) -> MetaOapg.properties.publicKey: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["content", "algorithm", "derivationPath", "signature", "publicKey", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["content"]) -> typing.Union[MetaOapg.properties.content, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["algorithm"]) -> typing.Union[MetaOapg.properties.algorithm, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["derivationPath"]) -> typing.Union[MetaOapg.properties.derivationPath, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["signature"]) -> typing.Union[MetaOapg.properties.signature, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["publicKey"]) -> typing.Union[MetaOapg.properties.publicKey, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["content", "algorithm", "derivationPath", "signature", "publicKey", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - content: typing.Union[MetaOapg.properties.content, str, schemas.Unset] = schemas.unset, - algorithm: typing.Union[MetaOapg.properties.algorithm, str, schemas.Unset] = schemas.unset, - derivationPath: typing.Union[MetaOapg.properties.derivationPath, list, tuple, schemas.Unset] = schemas.unset, - signature: typing.Union[MetaOapg.properties.signature, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - publicKey: typing.Union[MetaOapg.properties.publicKey, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SignedMessage': - return super().__new__( - cls, - *_args, - content=content, - algorithm=algorithm, - derivationPath=derivationPath, - signature=signature, - publicKey=publicKey, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/source_transfer_peer_path_response.py b/fireblocks_client/model/source_transfer_peer_path_response.py deleted file mode 100644 index 7500c5bf..00000000 --- a/fireblocks_client/model/source_transfer_peer_path_response.py +++ /dev/null @@ -1,148 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class SourceTransferPeerPathResponse( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - - class all_of_1( - schemas.DictSchema - ): - - - class MetaOapg: - - class properties: - type = schemas.StrSchema - subType = schemas.StrSchema - id = schemas.StrSchema - name = schemas.StrSchema - __annotations__ = { - "type": type, - "subType": subType, - "id": id, - "name": name, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["subType"]) -> MetaOapg.properties.subType: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["type", "subType", "id", "name", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> typing.Union[MetaOapg.properties.type, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["subType"]) -> typing.Union[MetaOapg.properties.subType, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["type", "subType", "id", "name", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - type: typing.Union[MetaOapg.properties.type, str, schemas.Unset] = schemas.unset, - subType: typing.Union[MetaOapg.properties.subType, str, schemas.Unset] = schemas.unset, - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'all_of_1': - return super().__new__( - cls, - *_args, - type=type, - subType=subType, - id=id, - name=name, - _configuration=_configuration, - **kwargs, - ) - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - TransferPeerPath, - cls.all_of_1, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SourceTransferPeerPathResponse': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.transfer_peer_path import TransferPeerPath diff --git a/fireblocks_client/model/source_transfer_peer_path_response.pyi b/fireblocks_client/model/source_transfer_peer_path_response.pyi deleted file mode 100644 index 7500c5bf..00000000 --- a/fireblocks_client/model/source_transfer_peer_path_response.pyi +++ /dev/null @@ -1,148 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class SourceTransferPeerPathResponse( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - - class all_of_1( - schemas.DictSchema - ): - - - class MetaOapg: - - class properties: - type = schemas.StrSchema - subType = schemas.StrSchema - id = schemas.StrSchema - name = schemas.StrSchema - __annotations__ = { - "type": type, - "subType": subType, - "id": id, - "name": name, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["subType"]) -> MetaOapg.properties.subType: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["type", "subType", "id", "name", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> typing.Union[MetaOapg.properties.type, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["subType"]) -> typing.Union[MetaOapg.properties.subType, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["type", "subType", "id", "name", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - type: typing.Union[MetaOapg.properties.type, str, schemas.Unset] = schemas.unset, - subType: typing.Union[MetaOapg.properties.subType, str, schemas.Unset] = schemas.unset, - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'all_of_1': - return super().__new__( - cls, - *_args, - type=type, - subType=subType, - id=id, - name=name, - _configuration=_configuration, - **kwargs, - ) - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - TransferPeerPath, - cls.all_of_1, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SourceTransferPeerPathResponse': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.transfer_peer_path import TransferPeerPath diff --git a/fireblocks_client/model/system_message_info.py b/fireblocks_client/model/system_message_info.py deleted file mode 100644 index 34eb2607..00000000 --- a/fireblocks_client/model/system_message_info.py +++ /dev/null @@ -1,109 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class SystemMessageInfo( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class type( - schemas.EnumBase, - schemas.StrSchema - ): - - - class MetaOapg: - enum_value_to_name = { - "WARN": "WARN", - "BLOCK": "BLOCK", - } - - @schemas.classproperty - def WARN(cls): - return cls("WARN") - - @schemas.classproperty - def BLOCK(cls): - return cls("BLOCK") - message = schemas.StrSchema - __annotations__ = { - "type": type, - "message": message, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["message"]) -> MetaOapg.properties.message: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["type", "message", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> typing.Union[MetaOapg.properties.type, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["message"]) -> typing.Union[MetaOapg.properties.message, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["type", "message", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - type: typing.Union[MetaOapg.properties.type, str, schemas.Unset] = schemas.unset, - message: typing.Union[MetaOapg.properties.message, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SystemMessageInfo': - return super().__new__( - cls, - *_args, - type=type, - message=message, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/system_message_info.pyi b/fireblocks_client/model/system_message_info.pyi deleted file mode 100644 index e7672734..00000000 --- a/fireblocks_client/model/system_message_info.pyi +++ /dev/null @@ -1,102 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class SystemMessageInfo( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class type( - schemas.EnumBase, - schemas.StrSchema - ): - - @schemas.classproperty - def WARN(cls): - return cls("WARN") - - @schemas.classproperty - def BLOCK(cls): - return cls("BLOCK") - message = schemas.StrSchema - __annotations__ = { - "type": type, - "message": message, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["message"]) -> MetaOapg.properties.message: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["type", "message", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> typing.Union[MetaOapg.properties.type, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["message"]) -> typing.Union[MetaOapg.properties.message, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["type", "message", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - type: typing.Union[MetaOapg.properties.type, str, schemas.Unset] = schemas.unset, - message: typing.Union[MetaOapg.properties.message, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SystemMessageInfo': - return super().__new__( - cls, - *_args, - type=type, - message=message, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/term.py b/fireblocks_client/model/term.py deleted file mode 100644 index 64b87739..00000000 --- a/fireblocks_client/model/term.py +++ /dev/null @@ -1,129 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class Term( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - networkConnectionId = schemas.StrSchema - outgoing = schemas.BoolSchema - asset = schemas.StrSchema - amount = schemas.StrSchema - note = schemas.StrSchema - operation = schemas.StrSchema - __annotations__ = { - "networkConnectionId": networkConnectionId, - "outgoing": outgoing, - "asset": asset, - "amount": amount, - "note": note, - "operation": operation, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["networkConnectionId"]) -> MetaOapg.properties.networkConnectionId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["outgoing"]) -> MetaOapg.properties.outgoing: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["asset"]) -> MetaOapg.properties.asset: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["amount"]) -> MetaOapg.properties.amount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["note"]) -> MetaOapg.properties.note: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["operation"]) -> MetaOapg.properties.operation: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["networkConnectionId", "outgoing", "asset", "amount", "note", "operation", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["networkConnectionId"]) -> typing.Union[MetaOapg.properties.networkConnectionId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["outgoing"]) -> typing.Union[MetaOapg.properties.outgoing, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["asset"]) -> typing.Union[MetaOapg.properties.asset, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["amount"]) -> typing.Union[MetaOapg.properties.amount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["note"]) -> typing.Union[MetaOapg.properties.note, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["operation"]) -> typing.Union[MetaOapg.properties.operation, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["networkConnectionId", "outgoing", "asset", "amount", "note", "operation", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - networkConnectionId: typing.Union[MetaOapg.properties.networkConnectionId, str, schemas.Unset] = schemas.unset, - outgoing: typing.Union[MetaOapg.properties.outgoing, bool, schemas.Unset] = schemas.unset, - asset: typing.Union[MetaOapg.properties.asset, str, schemas.Unset] = schemas.unset, - amount: typing.Union[MetaOapg.properties.amount, str, schemas.Unset] = schemas.unset, - note: typing.Union[MetaOapg.properties.note, str, schemas.Unset] = schemas.unset, - operation: typing.Union[MetaOapg.properties.operation, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'Term': - return super().__new__( - cls, - *_args, - networkConnectionId=networkConnectionId, - outgoing=outgoing, - asset=asset, - amount=amount, - note=note, - operation=operation, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/term.pyi b/fireblocks_client/model/term.pyi deleted file mode 100644 index 64b87739..00000000 --- a/fireblocks_client/model/term.pyi +++ /dev/null @@ -1,129 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class Term( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - networkConnectionId = schemas.StrSchema - outgoing = schemas.BoolSchema - asset = schemas.StrSchema - amount = schemas.StrSchema - note = schemas.StrSchema - operation = schemas.StrSchema - __annotations__ = { - "networkConnectionId": networkConnectionId, - "outgoing": outgoing, - "asset": asset, - "amount": amount, - "note": note, - "operation": operation, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["networkConnectionId"]) -> MetaOapg.properties.networkConnectionId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["outgoing"]) -> MetaOapg.properties.outgoing: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["asset"]) -> MetaOapg.properties.asset: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["amount"]) -> MetaOapg.properties.amount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["note"]) -> MetaOapg.properties.note: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["operation"]) -> MetaOapg.properties.operation: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["networkConnectionId", "outgoing", "asset", "amount", "note", "operation", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["networkConnectionId"]) -> typing.Union[MetaOapg.properties.networkConnectionId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["outgoing"]) -> typing.Union[MetaOapg.properties.outgoing, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["asset"]) -> typing.Union[MetaOapg.properties.asset, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["amount"]) -> typing.Union[MetaOapg.properties.amount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["note"]) -> typing.Union[MetaOapg.properties.note, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["operation"]) -> typing.Union[MetaOapg.properties.operation, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["networkConnectionId", "outgoing", "asset", "amount", "note", "operation", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - networkConnectionId: typing.Union[MetaOapg.properties.networkConnectionId, str, schemas.Unset] = schemas.unset, - outgoing: typing.Union[MetaOapg.properties.outgoing, bool, schemas.Unset] = schemas.unset, - asset: typing.Union[MetaOapg.properties.asset, str, schemas.Unset] = schemas.unset, - amount: typing.Union[MetaOapg.properties.amount, str, schemas.Unset] = schemas.unset, - note: typing.Union[MetaOapg.properties.note, str, schemas.Unset] = schemas.unset, - operation: typing.Union[MetaOapg.properties.operation, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'Term': - return super().__new__( - cls, - *_args, - networkConnectionId=networkConnectionId, - outgoing=outgoing, - asset=asset, - amount=amount, - note=note, - operation=operation, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/to_collateral_transaction.py b/fireblocks_client/model/to_collateral_transaction.py deleted file mode 100644 index c374ce2a..00000000 --- a/fireblocks_client/model/to_collateral_transaction.py +++ /dev/null @@ -1,119 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class ToCollateralTransaction( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - asset = schemas.StrSchema - amount = schemas.StrSchema - srcAddress = schemas.StrSchema - srcTag = schemas.StrSchema - fee = schemas.StrSchema - __annotations__ = { - "asset": asset, - "amount": amount, - "srcAddress": srcAddress, - "srcTag": srcTag, - "fee": fee, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["asset"]) -> MetaOapg.properties.asset: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["amount"]) -> MetaOapg.properties.amount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["srcAddress"]) -> MetaOapg.properties.srcAddress: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["srcTag"]) -> MetaOapg.properties.srcTag: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["fee"]) -> MetaOapg.properties.fee: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["asset", "amount", "srcAddress", "srcTag", "fee", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["asset"]) -> typing.Union[MetaOapg.properties.asset, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["amount"]) -> typing.Union[MetaOapg.properties.amount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["srcAddress"]) -> typing.Union[MetaOapg.properties.srcAddress, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["srcTag"]) -> typing.Union[MetaOapg.properties.srcTag, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["fee"]) -> typing.Union[MetaOapg.properties.fee, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["asset", "amount", "srcAddress", "srcTag", "fee", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - asset: typing.Union[MetaOapg.properties.asset, str, schemas.Unset] = schemas.unset, - amount: typing.Union[MetaOapg.properties.amount, str, schemas.Unset] = schemas.unset, - srcAddress: typing.Union[MetaOapg.properties.srcAddress, str, schemas.Unset] = schemas.unset, - srcTag: typing.Union[MetaOapg.properties.srcTag, str, schemas.Unset] = schemas.unset, - fee: typing.Union[MetaOapg.properties.fee, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ToCollateralTransaction': - return super().__new__( - cls, - *_args, - asset=asset, - amount=amount, - srcAddress=srcAddress, - srcTag=srcTag, - fee=fee, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/to_collateral_transaction.pyi b/fireblocks_client/model/to_collateral_transaction.pyi deleted file mode 100644 index c374ce2a..00000000 --- a/fireblocks_client/model/to_collateral_transaction.pyi +++ /dev/null @@ -1,119 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class ToCollateralTransaction( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - asset = schemas.StrSchema - amount = schemas.StrSchema - srcAddress = schemas.StrSchema - srcTag = schemas.StrSchema - fee = schemas.StrSchema - __annotations__ = { - "asset": asset, - "amount": amount, - "srcAddress": srcAddress, - "srcTag": srcTag, - "fee": fee, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["asset"]) -> MetaOapg.properties.asset: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["amount"]) -> MetaOapg.properties.amount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["srcAddress"]) -> MetaOapg.properties.srcAddress: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["srcTag"]) -> MetaOapg.properties.srcTag: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["fee"]) -> MetaOapg.properties.fee: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["asset", "amount", "srcAddress", "srcTag", "fee", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["asset"]) -> typing.Union[MetaOapg.properties.asset, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["amount"]) -> typing.Union[MetaOapg.properties.amount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["srcAddress"]) -> typing.Union[MetaOapg.properties.srcAddress, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["srcTag"]) -> typing.Union[MetaOapg.properties.srcTag, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["fee"]) -> typing.Union[MetaOapg.properties.fee, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["asset", "amount", "srcAddress", "srcTag", "fee", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - asset: typing.Union[MetaOapg.properties.asset, str, schemas.Unset] = schemas.unset, - amount: typing.Union[MetaOapg.properties.amount, str, schemas.Unset] = schemas.unset, - srcAddress: typing.Union[MetaOapg.properties.srcAddress, str, schemas.Unset] = schemas.unset, - srcTag: typing.Union[MetaOapg.properties.srcTag, str, schemas.Unset] = schemas.unset, - fee: typing.Union[MetaOapg.properties.fee, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ToCollateralTransaction': - return super().__new__( - cls, - *_args, - asset=asset, - amount=amount, - srcAddress=srcAddress, - srcTag=srcTag, - fee=fee, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/to_exchange_transaction.py b/fireblocks_client/model/to_exchange_transaction.py deleted file mode 100644 index d420b5b6..00000000 --- a/fireblocks_client/model/to_exchange_transaction.py +++ /dev/null @@ -1,109 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class ToExchangeTransaction( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - assetId = schemas.StrSchema - amount = schemas.StrSchema - dstAddress = schemas.StrSchema - dstTag = schemas.StrSchema - __annotations__ = { - "assetId": assetId, - "amount": amount, - "dstAddress": dstAddress, - "dstTag": dstTag, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["assetId"]) -> MetaOapg.properties.assetId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["amount"]) -> MetaOapg.properties.amount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["dstAddress"]) -> MetaOapg.properties.dstAddress: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["dstTag"]) -> MetaOapg.properties.dstTag: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["assetId", "amount", "dstAddress", "dstTag", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["assetId"]) -> typing.Union[MetaOapg.properties.assetId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["amount"]) -> typing.Union[MetaOapg.properties.amount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["dstAddress"]) -> typing.Union[MetaOapg.properties.dstAddress, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["dstTag"]) -> typing.Union[MetaOapg.properties.dstTag, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["assetId", "amount", "dstAddress", "dstTag", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - assetId: typing.Union[MetaOapg.properties.assetId, str, schemas.Unset] = schemas.unset, - amount: typing.Union[MetaOapg.properties.amount, str, schemas.Unset] = schemas.unset, - dstAddress: typing.Union[MetaOapg.properties.dstAddress, str, schemas.Unset] = schemas.unset, - dstTag: typing.Union[MetaOapg.properties.dstTag, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ToExchangeTransaction': - return super().__new__( - cls, - *_args, - assetId=assetId, - amount=amount, - dstAddress=dstAddress, - dstTag=dstTag, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/to_exchange_transaction.pyi b/fireblocks_client/model/to_exchange_transaction.pyi deleted file mode 100644 index d420b5b6..00000000 --- a/fireblocks_client/model/to_exchange_transaction.pyi +++ /dev/null @@ -1,109 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class ToExchangeTransaction( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - assetId = schemas.StrSchema - amount = schemas.StrSchema - dstAddress = schemas.StrSchema - dstTag = schemas.StrSchema - __annotations__ = { - "assetId": assetId, - "amount": amount, - "dstAddress": dstAddress, - "dstTag": dstTag, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["assetId"]) -> MetaOapg.properties.assetId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["amount"]) -> MetaOapg.properties.amount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["dstAddress"]) -> MetaOapg.properties.dstAddress: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["dstTag"]) -> MetaOapg.properties.dstTag: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["assetId", "amount", "dstAddress", "dstTag", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["assetId"]) -> typing.Union[MetaOapg.properties.assetId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["amount"]) -> typing.Union[MetaOapg.properties.amount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["dstAddress"]) -> typing.Union[MetaOapg.properties.dstAddress, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["dstTag"]) -> typing.Union[MetaOapg.properties.dstTag, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["assetId", "amount", "dstAddress", "dstTag", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - assetId: typing.Union[MetaOapg.properties.assetId, str, schemas.Unset] = schemas.unset, - amount: typing.Union[MetaOapg.properties.amount, str, schemas.Unset] = schemas.unset, - dstAddress: typing.Union[MetaOapg.properties.dstAddress, str, schemas.Unset] = schemas.unset, - dstTag: typing.Union[MetaOapg.properties.dstTag, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ToExchangeTransaction': - return super().__new__( - cls, - *_args, - assetId=assetId, - amount=amount, - dstAddress=dstAddress, - dstTag=dstTag, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/token_collection_response.py b/fireblocks_client/model/token_collection_response.py deleted file mode 100644 index 1771165f..00000000 --- a/fireblocks_client/model/token_collection_response.py +++ /dev/null @@ -1,108 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class TokenCollectionResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "symbol", - "name", - "id", - } - - class properties: - id = schemas.StrSchema - name = schemas.StrSchema - symbol = schemas.StrSchema - __annotations__ = { - "id": id, - "name": name, - "symbol": symbol, - } - - symbol: MetaOapg.properties.symbol - name: MetaOapg.properties.name - id: MetaOapg.properties.id - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["symbol"]) -> MetaOapg.properties.symbol: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "name", "symbol", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["symbol"]) -> MetaOapg.properties.symbol: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "name", "symbol", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - symbol: typing.Union[MetaOapg.properties.symbol, str, ], - name: typing.Union[MetaOapg.properties.name, str, ], - id: typing.Union[MetaOapg.properties.id, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'TokenCollectionResponse': - return super().__new__( - cls, - *_args, - symbol=symbol, - name=name, - id=id, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/token_collection_response.pyi b/fireblocks_client/model/token_collection_response.pyi deleted file mode 100644 index 1771165f..00000000 --- a/fireblocks_client/model/token_collection_response.pyi +++ /dev/null @@ -1,108 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class TokenCollectionResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "symbol", - "name", - "id", - } - - class properties: - id = schemas.StrSchema - name = schemas.StrSchema - symbol = schemas.StrSchema - __annotations__ = { - "id": id, - "name": name, - "symbol": symbol, - } - - symbol: MetaOapg.properties.symbol - name: MetaOapg.properties.name - id: MetaOapg.properties.id - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["symbol"]) -> MetaOapg.properties.symbol: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "name", "symbol", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["symbol"]) -> MetaOapg.properties.symbol: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "name", "symbol", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - symbol: typing.Union[MetaOapg.properties.symbol, str, ], - name: typing.Union[MetaOapg.properties.name, str, ], - id: typing.Union[MetaOapg.properties.id, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'TokenCollectionResponse': - return super().__new__( - cls, - *_args, - symbol=symbol, - name=name, - id=id, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/token_ownership_response.py b/fireblocks_client/model/token_ownership_response.py deleted file mode 100644 index bab61bff..00000000 --- a/fireblocks_client/model/token_ownership_response.py +++ /dev/null @@ -1,327 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class TokenOwnershipResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "standard", - "blockchainDescriptor", - "balance", - "tokenId", - "ownershipStartTime", - "name", - "description", - "vaultAccountId", - "id", - "media", - "ownershipLastUpdateTime", - } - - class properties: - id = schemas.StrSchema - tokenId = schemas.StrSchema - standard = schemas.StrSchema - - - class media( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['MediaEntityResponse']: - return MediaEntityResponse - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['MediaEntityResponse'], typing.List['MediaEntityResponse']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'media': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'MediaEntityResponse': - return super().__getitem__(i) - balance = schemas.StrSchema - vaultAccountId = schemas.StrSchema - ownershipStartTime = schemas.NumberSchema - ownershipLastUpdateTime = schemas.NumberSchema - - - class blockchainDescriptor( - schemas.EnumBase, - schemas.StrSchema - ): - - - class MetaOapg: - enum_value_to_name = { - "ETH": "ETH", - "ETH_TEST3": "ETH_TEST3", - "POLYGON": "POLYGON", - "POLYGON_TEST_MUMBAI": "POLYGON_TEST_MUMBAI", - } - - @schemas.classproperty - def ETH(cls): - return cls("ETH") - - @schemas.classproperty - def ETH_TEST3(cls): - return cls("ETH_TEST3") - - @schemas.classproperty - def POLYGON(cls): - return cls("POLYGON") - - @schemas.classproperty - def POLYGON_TEST_MUMBAI(cls): - return cls("POLYGON_TEST_MUMBAI") - description = schemas.StrSchema - name = schemas.StrSchema - metadataURI = schemas.StrSchema - cachedMetadataURI = schemas.StrSchema - - - class collection( - schemas.ComposedSchema, - ): - - - class MetaOapg: - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - TokenCollectionResponse, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'collection': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - __annotations__ = { - "id": id, - "tokenId": tokenId, - "standard": standard, - "media": media, - "balance": balance, - "vaultAccountId": vaultAccountId, - "ownershipStartTime": ownershipStartTime, - "ownershipLastUpdateTime": ownershipLastUpdateTime, - "blockchainDescriptor": blockchainDescriptor, - "description": description, - "name": name, - "metadataURI": metadataURI, - "cachedMetadataURI": cachedMetadataURI, - "collection": collection, - } - - standard: MetaOapg.properties.standard - blockchainDescriptor: MetaOapg.properties.blockchainDescriptor - balance: MetaOapg.properties.balance - tokenId: MetaOapg.properties.tokenId - ownershipStartTime: MetaOapg.properties.ownershipStartTime - name: MetaOapg.properties.name - description: MetaOapg.properties.description - vaultAccountId: MetaOapg.properties.vaultAccountId - id: MetaOapg.properties.id - media: MetaOapg.properties.media - ownershipLastUpdateTime: MetaOapg.properties.ownershipLastUpdateTime - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["tokenId"]) -> MetaOapg.properties.tokenId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["standard"]) -> MetaOapg.properties.standard: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["media"]) -> MetaOapg.properties.media: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["balance"]) -> MetaOapg.properties.balance: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["vaultAccountId"]) -> MetaOapg.properties.vaultAccountId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["ownershipStartTime"]) -> MetaOapg.properties.ownershipStartTime: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["ownershipLastUpdateTime"]) -> MetaOapg.properties.ownershipLastUpdateTime: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["blockchainDescriptor"]) -> MetaOapg.properties.blockchainDescriptor: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["description"]) -> MetaOapg.properties.description: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadataURI"]) -> MetaOapg.properties.metadataURI: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["cachedMetadataURI"]) -> MetaOapg.properties.cachedMetadataURI: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["collection"]) -> MetaOapg.properties.collection: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "tokenId", "standard", "media", "balance", "vaultAccountId", "ownershipStartTime", "ownershipLastUpdateTime", "blockchainDescriptor", "description", "name", "metadataURI", "cachedMetadataURI", "collection", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["tokenId"]) -> MetaOapg.properties.tokenId: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["standard"]) -> MetaOapg.properties.standard: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["media"]) -> MetaOapg.properties.media: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["balance"]) -> MetaOapg.properties.balance: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["vaultAccountId"]) -> MetaOapg.properties.vaultAccountId: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["ownershipStartTime"]) -> MetaOapg.properties.ownershipStartTime: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["ownershipLastUpdateTime"]) -> MetaOapg.properties.ownershipLastUpdateTime: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["blockchainDescriptor"]) -> MetaOapg.properties.blockchainDescriptor: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["description"]) -> MetaOapg.properties.description: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metadataURI"]) -> typing.Union[MetaOapg.properties.metadataURI, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["cachedMetadataURI"]) -> typing.Union[MetaOapg.properties.cachedMetadataURI, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["collection"]) -> typing.Union[MetaOapg.properties.collection, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "tokenId", "standard", "media", "balance", "vaultAccountId", "ownershipStartTime", "ownershipLastUpdateTime", "blockchainDescriptor", "description", "name", "metadataURI", "cachedMetadataURI", "collection", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - standard: typing.Union[MetaOapg.properties.standard, str, ], - blockchainDescriptor: typing.Union[MetaOapg.properties.blockchainDescriptor, str, ], - balance: typing.Union[MetaOapg.properties.balance, str, ], - tokenId: typing.Union[MetaOapg.properties.tokenId, str, ], - ownershipStartTime: typing.Union[MetaOapg.properties.ownershipStartTime, decimal.Decimal, int, float, ], - name: typing.Union[MetaOapg.properties.name, str, ], - description: typing.Union[MetaOapg.properties.description, str, ], - vaultAccountId: typing.Union[MetaOapg.properties.vaultAccountId, str, ], - id: typing.Union[MetaOapg.properties.id, str, ], - media: typing.Union[MetaOapg.properties.media, list, tuple, ], - ownershipLastUpdateTime: typing.Union[MetaOapg.properties.ownershipLastUpdateTime, decimal.Decimal, int, float, ], - metadataURI: typing.Union[MetaOapg.properties.metadataURI, str, schemas.Unset] = schemas.unset, - cachedMetadataURI: typing.Union[MetaOapg.properties.cachedMetadataURI, str, schemas.Unset] = schemas.unset, - collection: typing.Union[MetaOapg.properties.collection, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'TokenOwnershipResponse': - return super().__new__( - cls, - *_args, - standard=standard, - blockchainDescriptor=blockchainDescriptor, - balance=balance, - tokenId=tokenId, - ownershipStartTime=ownershipStartTime, - name=name, - description=description, - vaultAccountId=vaultAccountId, - id=id, - media=media, - ownershipLastUpdateTime=ownershipLastUpdateTime, - metadataURI=metadataURI, - cachedMetadataURI=cachedMetadataURI, - collection=collection, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.media_entity_response import MediaEntityResponse -from fireblocks_client.model.token_collection_response import TokenCollectionResponse diff --git a/fireblocks_client/model/token_ownership_response.pyi b/fireblocks_client/model/token_ownership_response.pyi deleted file mode 100644 index 017f78f7..00000000 --- a/fireblocks_client/model/token_ownership_response.pyi +++ /dev/null @@ -1,318 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class TokenOwnershipResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "standard", - "blockchainDescriptor", - "balance", - "tokenId", - "ownershipStartTime", - "name", - "description", - "vaultAccountId", - "id", - "media", - "ownershipLastUpdateTime", - } - - class properties: - id = schemas.StrSchema - tokenId = schemas.StrSchema - standard = schemas.StrSchema - - - class media( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['MediaEntityResponse']: - return MediaEntityResponse - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['MediaEntityResponse'], typing.List['MediaEntityResponse']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'media': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'MediaEntityResponse': - return super().__getitem__(i) - balance = schemas.StrSchema - vaultAccountId = schemas.StrSchema - ownershipStartTime = schemas.NumberSchema - ownershipLastUpdateTime = schemas.NumberSchema - - - class blockchainDescriptor( - schemas.EnumBase, - schemas.StrSchema - ): - - @schemas.classproperty - def ETH(cls): - return cls("ETH") - - @schemas.classproperty - def ETH_TEST3(cls): - return cls("ETH_TEST3") - - @schemas.classproperty - def POLYGON(cls): - return cls("POLYGON") - - @schemas.classproperty - def POLYGON_TEST_MUMBAI(cls): - return cls("POLYGON_TEST_MUMBAI") - description = schemas.StrSchema - name = schemas.StrSchema - metadataURI = schemas.StrSchema - cachedMetadataURI = schemas.StrSchema - - - class collection( - schemas.ComposedSchema, - ): - - - class MetaOapg: - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - TokenCollectionResponse, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'collection': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - __annotations__ = { - "id": id, - "tokenId": tokenId, - "standard": standard, - "media": media, - "balance": balance, - "vaultAccountId": vaultAccountId, - "ownershipStartTime": ownershipStartTime, - "ownershipLastUpdateTime": ownershipLastUpdateTime, - "blockchainDescriptor": blockchainDescriptor, - "description": description, - "name": name, - "metadataURI": metadataURI, - "cachedMetadataURI": cachedMetadataURI, - "collection": collection, - } - - standard: MetaOapg.properties.standard - blockchainDescriptor: MetaOapg.properties.blockchainDescriptor - balance: MetaOapg.properties.balance - tokenId: MetaOapg.properties.tokenId - ownershipStartTime: MetaOapg.properties.ownershipStartTime - name: MetaOapg.properties.name - description: MetaOapg.properties.description - vaultAccountId: MetaOapg.properties.vaultAccountId - id: MetaOapg.properties.id - media: MetaOapg.properties.media - ownershipLastUpdateTime: MetaOapg.properties.ownershipLastUpdateTime - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["tokenId"]) -> MetaOapg.properties.tokenId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["standard"]) -> MetaOapg.properties.standard: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["media"]) -> MetaOapg.properties.media: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["balance"]) -> MetaOapg.properties.balance: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["vaultAccountId"]) -> MetaOapg.properties.vaultAccountId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["ownershipStartTime"]) -> MetaOapg.properties.ownershipStartTime: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["ownershipLastUpdateTime"]) -> MetaOapg.properties.ownershipLastUpdateTime: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["blockchainDescriptor"]) -> MetaOapg.properties.blockchainDescriptor: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["description"]) -> MetaOapg.properties.description: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadataURI"]) -> MetaOapg.properties.metadataURI: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["cachedMetadataURI"]) -> MetaOapg.properties.cachedMetadataURI: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["collection"]) -> MetaOapg.properties.collection: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "tokenId", "standard", "media", "balance", "vaultAccountId", "ownershipStartTime", "ownershipLastUpdateTime", "blockchainDescriptor", "description", "name", "metadataURI", "cachedMetadataURI", "collection", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["tokenId"]) -> MetaOapg.properties.tokenId: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["standard"]) -> MetaOapg.properties.standard: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["media"]) -> MetaOapg.properties.media: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["balance"]) -> MetaOapg.properties.balance: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["vaultAccountId"]) -> MetaOapg.properties.vaultAccountId: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["ownershipStartTime"]) -> MetaOapg.properties.ownershipStartTime: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["ownershipLastUpdateTime"]) -> MetaOapg.properties.ownershipLastUpdateTime: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["blockchainDescriptor"]) -> MetaOapg.properties.blockchainDescriptor: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["description"]) -> MetaOapg.properties.description: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metadataURI"]) -> typing.Union[MetaOapg.properties.metadataURI, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["cachedMetadataURI"]) -> typing.Union[MetaOapg.properties.cachedMetadataURI, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["collection"]) -> typing.Union[MetaOapg.properties.collection, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "tokenId", "standard", "media", "balance", "vaultAccountId", "ownershipStartTime", "ownershipLastUpdateTime", "blockchainDescriptor", "description", "name", "metadataURI", "cachedMetadataURI", "collection", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - standard: typing.Union[MetaOapg.properties.standard, str, ], - blockchainDescriptor: typing.Union[MetaOapg.properties.blockchainDescriptor, str, ], - balance: typing.Union[MetaOapg.properties.balance, str, ], - tokenId: typing.Union[MetaOapg.properties.tokenId, str, ], - ownershipStartTime: typing.Union[MetaOapg.properties.ownershipStartTime, decimal.Decimal, int, float, ], - name: typing.Union[MetaOapg.properties.name, str, ], - description: typing.Union[MetaOapg.properties.description, str, ], - vaultAccountId: typing.Union[MetaOapg.properties.vaultAccountId, str, ], - id: typing.Union[MetaOapg.properties.id, str, ], - media: typing.Union[MetaOapg.properties.media, list, tuple, ], - ownershipLastUpdateTime: typing.Union[MetaOapg.properties.ownershipLastUpdateTime, decimal.Decimal, int, float, ], - metadataURI: typing.Union[MetaOapg.properties.metadataURI, str, schemas.Unset] = schemas.unset, - cachedMetadataURI: typing.Union[MetaOapg.properties.cachedMetadataURI, str, schemas.Unset] = schemas.unset, - collection: typing.Union[MetaOapg.properties.collection, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'TokenOwnershipResponse': - return super().__new__( - cls, - *_args, - standard=standard, - blockchainDescriptor=blockchainDescriptor, - balance=balance, - tokenId=tokenId, - ownershipStartTime=ownershipStartTime, - name=name, - description=description, - vaultAccountId=vaultAccountId, - id=id, - media=media, - ownershipLastUpdateTime=ownershipLastUpdateTime, - metadataURI=metadataURI, - cachedMetadataURI=cachedMetadataURI, - collection=collection, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.media_entity_response import MediaEntityResponse -from fireblocks_client.model.token_collection_response import TokenCollectionResponse diff --git a/fireblocks_client/model/token_response.py b/fireblocks_client/model/token_response.py deleted file mode 100644 index 9fd8dfa6..00000000 --- a/fireblocks_client/model/token_response.py +++ /dev/null @@ -1,279 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class TokenResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "standard", - "blockchainDescriptor", - "tokenId", - "name", - "description", - "id", - "media", - } - - class properties: - id = schemas.StrSchema - tokenId = schemas.StrSchema - standard = schemas.StrSchema - - - class media( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['MediaEntityResponse']: - return MediaEntityResponse - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['MediaEntityResponse'], typing.List['MediaEntityResponse']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'media': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'MediaEntityResponse': - return super().__getitem__(i) - - - class blockchainDescriptor( - schemas.EnumBase, - schemas.StrSchema - ): - - - class MetaOapg: - enum_value_to_name = { - "ETH": "ETH", - "ETH_TEST3": "ETH_TEST3", - "POLYGON": "POLYGON", - "POLYGON_TEST_MUMBAI": "POLYGON_TEST_MUMBAI", - } - - @schemas.classproperty - def ETH(cls): - return cls("ETH") - - @schemas.classproperty - def ETH_TEST3(cls): - return cls("ETH_TEST3") - - @schemas.classproperty - def POLYGON(cls): - return cls("POLYGON") - - @schemas.classproperty - def POLYGON_TEST_MUMBAI(cls): - return cls("POLYGON_TEST_MUMBAI") - description = schemas.StrSchema - name = schemas.StrSchema - metadataURI = schemas.StrSchema - cachedMetadataURI = schemas.StrSchema - - - class collection( - schemas.ComposedSchema, - ): - - - class MetaOapg: - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - TokenCollectionResponse, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'collection': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - __annotations__ = { - "id": id, - "tokenId": tokenId, - "standard": standard, - "media": media, - "blockchainDescriptor": blockchainDescriptor, - "description": description, - "name": name, - "metadataURI": metadataURI, - "cachedMetadataURI": cachedMetadataURI, - "collection": collection, - } - - standard: MetaOapg.properties.standard - blockchainDescriptor: MetaOapg.properties.blockchainDescriptor - tokenId: MetaOapg.properties.tokenId - name: MetaOapg.properties.name - description: MetaOapg.properties.description - id: MetaOapg.properties.id - media: MetaOapg.properties.media - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["tokenId"]) -> MetaOapg.properties.tokenId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["standard"]) -> MetaOapg.properties.standard: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["media"]) -> MetaOapg.properties.media: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["blockchainDescriptor"]) -> MetaOapg.properties.blockchainDescriptor: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["description"]) -> MetaOapg.properties.description: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadataURI"]) -> MetaOapg.properties.metadataURI: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["cachedMetadataURI"]) -> MetaOapg.properties.cachedMetadataURI: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["collection"]) -> MetaOapg.properties.collection: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "tokenId", "standard", "media", "blockchainDescriptor", "description", "name", "metadataURI", "cachedMetadataURI", "collection", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["tokenId"]) -> MetaOapg.properties.tokenId: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["standard"]) -> MetaOapg.properties.standard: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["media"]) -> MetaOapg.properties.media: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["blockchainDescriptor"]) -> MetaOapg.properties.blockchainDescriptor: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["description"]) -> MetaOapg.properties.description: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metadataURI"]) -> typing.Union[MetaOapg.properties.metadataURI, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["cachedMetadataURI"]) -> typing.Union[MetaOapg.properties.cachedMetadataURI, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["collection"]) -> typing.Union[MetaOapg.properties.collection, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "tokenId", "standard", "media", "blockchainDescriptor", "description", "name", "metadataURI", "cachedMetadataURI", "collection", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - standard: typing.Union[MetaOapg.properties.standard, str, ], - blockchainDescriptor: typing.Union[MetaOapg.properties.blockchainDescriptor, str, ], - tokenId: typing.Union[MetaOapg.properties.tokenId, str, ], - name: typing.Union[MetaOapg.properties.name, str, ], - description: typing.Union[MetaOapg.properties.description, str, ], - id: typing.Union[MetaOapg.properties.id, str, ], - media: typing.Union[MetaOapg.properties.media, list, tuple, ], - metadataURI: typing.Union[MetaOapg.properties.metadataURI, str, schemas.Unset] = schemas.unset, - cachedMetadataURI: typing.Union[MetaOapg.properties.cachedMetadataURI, str, schemas.Unset] = schemas.unset, - collection: typing.Union[MetaOapg.properties.collection, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'TokenResponse': - return super().__new__( - cls, - *_args, - standard=standard, - blockchainDescriptor=blockchainDescriptor, - tokenId=tokenId, - name=name, - description=description, - id=id, - media=media, - metadataURI=metadataURI, - cachedMetadataURI=cachedMetadataURI, - collection=collection, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.media_entity_response import MediaEntityResponse -from fireblocks_client.model.token_collection_response import TokenCollectionResponse diff --git a/fireblocks_client/model/token_response.pyi b/fireblocks_client/model/token_response.pyi deleted file mode 100644 index 8af03b9d..00000000 --- a/fireblocks_client/model/token_response.pyi +++ /dev/null @@ -1,270 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class TokenResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "standard", - "blockchainDescriptor", - "tokenId", - "name", - "description", - "id", - "media", - } - - class properties: - id = schemas.StrSchema - tokenId = schemas.StrSchema - standard = schemas.StrSchema - - - class media( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['MediaEntityResponse']: - return MediaEntityResponse - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['MediaEntityResponse'], typing.List['MediaEntityResponse']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'media': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'MediaEntityResponse': - return super().__getitem__(i) - - - class blockchainDescriptor( - schemas.EnumBase, - schemas.StrSchema - ): - - @schemas.classproperty - def ETH(cls): - return cls("ETH") - - @schemas.classproperty - def ETH_TEST3(cls): - return cls("ETH_TEST3") - - @schemas.classproperty - def POLYGON(cls): - return cls("POLYGON") - - @schemas.classproperty - def POLYGON_TEST_MUMBAI(cls): - return cls("POLYGON_TEST_MUMBAI") - description = schemas.StrSchema - name = schemas.StrSchema - metadataURI = schemas.StrSchema - cachedMetadataURI = schemas.StrSchema - - - class collection( - schemas.ComposedSchema, - ): - - - class MetaOapg: - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - TokenCollectionResponse, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'collection': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - __annotations__ = { - "id": id, - "tokenId": tokenId, - "standard": standard, - "media": media, - "blockchainDescriptor": blockchainDescriptor, - "description": description, - "name": name, - "metadataURI": metadataURI, - "cachedMetadataURI": cachedMetadataURI, - "collection": collection, - } - - standard: MetaOapg.properties.standard - blockchainDescriptor: MetaOapg.properties.blockchainDescriptor - tokenId: MetaOapg.properties.tokenId - name: MetaOapg.properties.name - description: MetaOapg.properties.description - id: MetaOapg.properties.id - media: MetaOapg.properties.media - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["tokenId"]) -> MetaOapg.properties.tokenId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["standard"]) -> MetaOapg.properties.standard: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["media"]) -> MetaOapg.properties.media: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["blockchainDescriptor"]) -> MetaOapg.properties.blockchainDescriptor: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["description"]) -> MetaOapg.properties.description: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadataURI"]) -> MetaOapg.properties.metadataURI: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["cachedMetadataURI"]) -> MetaOapg.properties.cachedMetadataURI: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["collection"]) -> MetaOapg.properties.collection: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "tokenId", "standard", "media", "blockchainDescriptor", "description", "name", "metadataURI", "cachedMetadataURI", "collection", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["tokenId"]) -> MetaOapg.properties.tokenId: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["standard"]) -> MetaOapg.properties.standard: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["media"]) -> MetaOapg.properties.media: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["blockchainDescriptor"]) -> MetaOapg.properties.blockchainDescriptor: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["description"]) -> MetaOapg.properties.description: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metadataURI"]) -> typing.Union[MetaOapg.properties.metadataURI, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["cachedMetadataURI"]) -> typing.Union[MetaOapg.properties.cachedMetadataURI, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["collection"]) -> typing.Union[MetaOapg.properties.collection, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "tokenId", "standard", "media", "blockchainDescriptor", "description", "name", "metadataURI", "cachedMetadataURI", "collection", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - standard: typing.Union[MetaOapg.properties.standard, str, ], - blockchainDescriptor: typing.Union[MetaOapg.properties.blockchainDescriptor, str, ], - tokenId: typing.Union[MetaOapg.properties.tokenId, str, ], - name: typing.Union[MetaOapg.properties.name, str, ], - description: typing.Union[MetaOapg.properties.description, str, ], - id: typing.Union[MetaOapg.properties.id, str, ], - media: typing.Union[MetaOapg.properties.media, list, tuple, ], - metadataURI: typing.Union[MetaOapg.properties.metadataURI, str, schemas.Unset] = schemas.unset, - cachedMetadataURI: typing.Union[MetaOapg.properties.cachedMetadataURI, str, schemas.Unset] = schemas.unset, - collection: typing.Union[MetaOapg.properties.collection, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'TokenResponse': - return super().__new__( - cls, - *_args, - standard=standard, - blockchainDescriptor=blockchainDescriptor, - tokenId=tokenId, - name=name, - description=description, - id=id, - media=media, - metadataURI=metadataURI, - cachedMetadataURI=cachedMetadataURI, - collection=collection, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.media_entity_response import MediaEntityResponse -from fireblocks_client.model.token_collection_response import TokenCollectionResponse diff --git a/fireblocks_client/model/trading_account_type.py b/fireblocks_client/model/trading_account_type.py deleted file mode 100644 index 09a22bf7..00000000 --- a/fireblocks_client/model/trading_account_type.py +++ /dev/null @@ -1,110 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class TradingAccountType( - schemas.EnumBase, - schemas.StrSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - enum_value_to_name = { - "COIN_FUTURES": "COIN_FUTURES", - "COIN_MARGINED_SWAP": "COIN_MARGINED_SWAP", - "EXCHANGE": "EXCHANGE", - "FUNDING": "FUNDING", - "FUNDABLE": "FUNDABLE", - "FUTURES": "FUTURES", - "FUTURES_CROSS": "FUTURES_CROSS", - "MARGIN": "MARGIN", - "MARGIN_CROSS": "MARGIN_CROSS", - "OPTIONS": "OPTIONS", - "SPOT": "SPOT", - "USDT_MARGINED_SWAP_CROSS": "USDT_MARGINED_SWAP_CROSS", - "USDT_FUTURES": "USDT_FUTURES", - "UNIFIED": "UNIFIED", - } - - @schemas.classproperty - def COIN_FUTURES(cls): - return cls("COIN_FUTURES") - - @schemas.classproperty - def COIN_MARGINED_SWAP(cls): - return cls("COIN_MARGINED_SWAP") - - @schemas.classproperty - def EXCHANGE(cls): - return cls("EXCHANGE") - - @schemas.classproperty - def FUNDING(cls): - return cls("FUNDING") - - @schemas.classproperty - def FUNDABLE(cls): - return cls("FUNDABLE") - - @schemas.classproperty - def FUTURES(cls): - return cls("FUTURES") - - @schemas.classproperty - def FUTURES_CROSS(cls): - return cls("FUTURES_CROSS") - - @schemas.classproperty - def MARGIN(cls): - return cls("MARGIN") - - @schemas.classproperty - def MARGIN_CROSS(cls): - return cls("MARGIN_CROSS") - - @schemas.classproperty - def OPTIONS(cls): - return cls("OPTIONS") - - @schemas.classproperty - def SPOT(cls): - return cls("SPOT") - - @schemas.classproperty - def USDT_MARGINED_SWAP_CROSS(cls): - return cls("USDT_MARGINED_SWAP_CROSS") - - @schemas.classproperty - def USDT_FUTURES(cls): - return cls("USDT_FUTURES") - - @schemas.classproperty - def UNIFIED(cls): - return cls("UNIFIED") diff --git a/fireblocks_client/model/trading_account_type.pyi b/fireblocks_client/model/trading_account_type.pyi deleted file mode 100644 index 0b5aeeb3..00000000 --- a/fireblocks_client/model/trading_account_type.pyi +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class TradingAccountType( - schemas.EnumBase, - schemas.StrSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - @schemas.classproperty - def COIN_FUTURES(cls): - return cls("COIN_FUTURES") - - @schemas.classproperty - def COIN_MARGINED_SWAP(cls): - return cls("COIN_MARGINED_SWAP") - - @schemas.classproperty - def EXCHANGE(cls): - return cls("EXCHANGE") - - @schemas.classproperty - def FUNDING(cls): - return cls("FUNDING") - - @schemas.classproperty - def FUNDABLE(cls): - return cls("FUNDABLE") - - @schemas.classproperty - def FUTURES(cls): - return cls("FUTURES") - - @schemas.classproperty - def FUTURES_CROSS(cls): - return cls("FUTURES_CROSS") - - @schemas.classproperty - def MARGIN(cls): - return cls("MARGIN") - - @schemas.classproperty - def MARGIN_CROSS(cls): - return cls("MARGIN_CROSS") - - @schemas.classproperty - def OPTIONS(cls): - return cls("OPTIONS") - - @schemas.classproperty - def SPOT(cls): - return cls("SPOT") - - @schemas.classproperty - def USDT_MARGINED_SWAP_CROSS(cls): - return cls("USDT_MARGINED_SWAP_CROSS") - - @schemas.classproperty - def USDT_FUTURES(cls): - return cls("USDT_FUTURES") - - @schemas.classproperty - def UNIFIED(cls): - return cls("UNIFIED") diff --git a/fireblocks_client/model/transaction.py b/fireblocks_client/model/transaction.py deleted file mode 100644 index ac74eead..00000000 --- a/fireblocks_client/model/transaction.py +++ /dev/null @@ -1,221 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class Transaction( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "id", - "state", - } - - class properties: - id = schemas.StrSchema - - - class state( - schemas.EnumBase, - schemas.StrSchema - ): - - - class MetaOapg: - enum_value_to_name = { - "SUBMITTED": "SUBMITTED", - "QUEUED": "QUEUED", - "PENDING_AUTHORIZATION": "PENDING_AUTHORIZATION", - "PENDING_SIGNATURE": "PENDING_SIGNATURE", - "BROADCASTING": "BROADCASTING", - "PENDING_3RD_PARTY_MANUAL_APPROVAL": "PENDING_3RD_PARTY_MANUAL_APPROVAL", - "PENDING_3RD_PARTY": "PENDING_3RD_PARTY", - "PENDING": "PENDING", - "CONFIRMING": "CONFIRMING", - "CONFIRMED": "CONFIRMED", - "COMPLETED": "COMPLETED", - "PARTIALLY_COMPLETED": "PARTIALLY_COMPLETED", - "PENDING_AML_SCREENING": "PENDING_AML_SCREENING", - "CANCELLING": "CANCELLING", - "CANCELLED": "CANCELLED", - "REJECTED": "REJECTED", - "BLOCKED": "BLOCKED", - "FAILED": "FAILED", - "TIMEOUT": "TIMEOUT", - } - - @schemas.classproperty - def SUBMITTED(cls): - return cls("SUBMITTED") - - @schemas.classproperty - def QUEUED(cls): - return cls("QUEUED") - - @schemas.classproperty - def PENDING_AUTHORIZATION(cls): - return cls("PENDING_AUTHORIZATION") - - @schemas.classproperty - def PENDING_SIGNATURE(cls): - return cls("PENDING_SIGNATURE") - - @schemas.classproperty - def BROADCASTING(cls): - return cls("BROADCASTING") - - @schemas.classproperty - def PENDING_3RD_PARTY_MANUAL_APPROVAL(cls): - return cls("PENDING_3RD_PARTY_MANUAL_APPROVAL") - - @schemas.classproperty - def PENDING_3RD_PARTY(cls): - return cls("PENDING_3RD_PARTY") - - @schemas.classproperty - def PENDING(cls): - return cls("PENDING") - - @schemas.classproperty - def CONFIRMING(cls): - return cls("CONFIRMING") - - @schemas.classproperty - def CONFIRMED(cls): - return cls("CONFIRMED") - - @schemas.classproperty - def COMPLETED(cls): - return cls("COMPLETED") - - @schemas.classproperty - def PARTIALLY_COMPLETED(cls): - return cls("PARTIALLY_COMPLETED") - - @schemas.classproperty - def PENDING_AML_SCREENING(cls): - return cls("PENDING_AML_SCREENING") - - @schemas.classproperty - def CANCELLING(cls): - return cls("CANCELLING") - - @schemas.classproperty - def CANCELLED(cls): - return cls("CANCELLED") - - @schemas.classproperty - def REJECTED(cls): - return cls("REJECTED") - - @schemas.classproperty - def BLOCKED(cls): - return cls("BLOCKED") - - @schemas.classproperty - def FAILED(cls): - return cls("FAILED") - - @schemas.classproperty - def TIMEOUT(cls): - return cls("TIMEOUT") - timestamp = schemas.NumberSchema - instructionId = schemas.StrSchema - __annotations__ = { - "id": id, - "state": state, - "timestamp": timestamp, - "instructionId": instructionId, - } - - id: MetaOapg.properties.id - state: MetaOapg.properties.state - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["state"]) -> MetaOapg.properties.state: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["timestamp"]) -> MetaOapg.properties.timestamp: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["instructionId"]) -> MetaOapg.properties.instructionId: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "state", "timestamp", "instructionId", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["state"]) -> MetaOapg.properties.state: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["timestamp"]) -> typing.Union[MetaOapg.properties.timestamp, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["instructionId"]) -> typing.Union[MetaOapg.properties.instructionId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "state", "timestamp", "instructionId", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, str, ], - state: typing.Union[MetaOapg.properties.state, str, ], - timestamp: typing.Union[MetaOapg.properties.timestamp, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, - instructionId: typing.Union[MetaOapg.properties.instructionId, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'Transaction': - return super().__new__( - cls, - *_args, - id=id, - state=state, - timestamp=timestamp, - instructionId=instructionId, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/transaction.pyi b/fireblocks_client/model/transaction.pyi deleted file mode 100644 index a3c425f2..00000000 --- a/fireblocks_client/model/transaction.pyi +++ /dev/null @@ -1,197 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class Transaction( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "id", - "state", - } - - class properties: - id = schemas.StrSchema - - - class state( - schemas.EnumBase, - schemas.StrSchema - ): - - @schemas.classproperty - def SUBMITTED(cls): - return cls("SUBMITTED") - - @schemas.classproperty - def QUEUED(cls): - return cls("QUEUED") - - @schemas.classproperty - def PENDING_AUTHORIZATION(cls): - return cls("PENDING_AUTHORIZATION") - - @schemas.classproperty - def PENDING_SIGNATURE(cls): - return cls("PENDING_SIGNATURE") - - @schemas.classproperty - def BROADCASTING(cls): - return cls("BROADCASTING") - - @schemas.classproperty - def PENDING_3RD_PARTY_MANUAL_APPROVAL(cls): - return cls("PENDING_3RD_PARTY_MANUAL_APPROVAL") - - @schemas.classproperty - def PENDING_3RD_PARTY(cls): - return cls("PENDING_3RD_PARTY") - - @schemas.classproperty - def PENDING(cls): - return cls("PENDING") - - @schemas.classproperty - def CONFIRMING(cls): - return cls("CONFIRMING") - - @schemas.classproperty - def CONFIRMED(cls): - return cls("CONFIRMED") - - @schemas.classproperty - def COMPLETED(cls): - return cls("COMPLETED") - - @schemas.classproperty - def PARTIALLY_COMPLETED(cls): - return cls("PARTIALLY_COMPLETED") - - @schemas.classproperty - def PENDING_AML_SCREENING(cls): - return cls("PENDING_AML_SCREENING") - - @schemas.classproperty - def CANCELLING(cls): - return cls("CANCELLING") - - @schemas.classproperty - def CANCELLED(cls): - return cls("CANCELLED") - - @schemas.classproperty - def REJECTED(cls): - return cls("REJECTED") - - @schemas.classproperty - def BLOCKED(cls): - return cls("BLOCKED") - - @schemas.classproperty - def FAILED(cls): - return cls("FAILED") - - @schemas.classproperty - def TIMEOUT(cls): - return cls("TIMEOUT") - timestamp = schemas.NumberSchema - instructionId = schemas.StrSchema - __annotations__ = { - "id": id, - "state": state, - "timestamp": timestamp, - "instructionId": instructionId, - } - - id: MetaOapg.properties.id - state: MetaOapg.properties.state - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["state"]) -> MetaOapg.properties.state: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["timestamp"]) -> MetaOapg.properties.timestamp: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["instructionId"]) -> MetaOapg.properties.instructionId: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "state", "timestamp", "instructionId", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["state"]) -> MetaOapg.properties.state: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["timestamp"]) -> typing.Union[MetaOapg.properties.timestamp, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["instructionId"]) -> typing.Union[MetaOapg.properties.instructionId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "state", "timestamp", "instructionId", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, str, ], - state: typing.Union[MetaOapg.properties.state, str, ], - timestamp: typing.Union[MetaOapg.properties.timestamp, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, - instructionId: typing.Union[MetaOapg.properties.instructionId, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'Transaction': - return super().__new__( - cls, - *_args, - id=id, - state=state, - timestamp=timestamp, - instructionId=instructionId, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/transaction_fee.py b/fireblocks_client/model/transaction_fee.py deleted file mode 100644 index 411788ba..00000000 --- a/fireblocks_client/model/transaction_fee.py +++ /dev/null @@ -1,129 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class TransactionFee( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - feePerByte = schemas.StrSchema - gasPrice = schemas.StrSchema - gasLimit = schemas.StrSchema - networkFee = schemas.StrSchema - baseFee = schemas.StrSchema - priorityFee = schemas.StrSchema - __annotations__ = { - "feePerByte": feePerByte, - "gasPrice": gasPrice, - "gasLimit": gasLimit, - "networkFee": networkFee, - "baseFee": baseFee, - "priorityFee": priorityFee, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["feePerByte"]) -> MetaOapg.properties.feePerByte: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["gasPrice"]) -> MetaOapg.properties.gasPrice: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["gasLimit"]) -> MetaOapg.properties.gasLimit: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["networkFee"]) -> MetaOapg.properties.networkFee: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["baseFee"]) -> MetaOapg.properties.baseFee: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["priorityFee"]) -> MetaOapg.properties.priorityFee: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["feePerByte", "gasPrice", "gasLimit", "networkFee", "baseFee", "priorityFee", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["feePerByte"]) -> typing.Union[MetaOapg.properties.feePerByte, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["gasPrice"]) -> typing.Union[MetaOapg.properties.gasPrice, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["gasLimit"]) -> typing.Union[MetaOapg.properties.gasLimit, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["networkFee"]) -> typing.Union[MetaOapg.properties.networkFee, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["baseFee"]) -> typing.Union[MetaOapg.properties.baseFee, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["priorityFee"]) -> typing.Union[MetaOapg.properties.priorityFee, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["feePerByte", "gasPrice", "gasLimit", "networkFee", "baseFee", "priorityFee", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - feePerByte: typing.Union[MetaOapg.properties.feePerByte, str, schemas.Unset] = schemas.unset, - gasPrice: typing.Union[MetaOapg.properties.gasPrice, str, schemas.Unset] = schemas.unset, - gasLimit: typing.Union[MetaOapg.properties.gasLimit, str, schemas.Unset] = schemas.unset, - networkFee: typing.Union[MetaOapg.properties.networkFee, str, schemas.Unset] = schemas.unset, - baseFee: typing.Union[MetaOapg.properties.baseFee, str, schemas.Unset] = schemas.unset, - priorityFee: typing.Union[MetaOapg.properties.priorityFee, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'TransactionFee': - return super().__new__( - cls, - *_args, - feePerByte=feePerByte, - gasPrice=gasPrice, - gasLimit=gasLimit, - networkFee=networkFee, - baseFee=baseFee, - priorityFee=priorityFee, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/transaction_fee.pyi b/fireblocks_client/model/transaction_fee.pyi deleted file mode 100644 index 411788ba..00000000 --- a/fireblocks_client/model/transaction_fee.pyi +++ /dev/null @@ -1,129 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class TransactionFee( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - feePerByte = schemas.StrSchema - gasPrice = schemas.StrSchema - gasLimit = schemas.StrSchema - networkFee = schemas.StrSchema - baseFee = schemas.StrSchema - priorityFee = schemas.StrSchema - __annotations__ = { - "feePerByte": feePerByte, - "gasPrice": gasPrice, - "gasLimit": gasLimit, - "networkFee": networkFee, - "baseFee": baseFee, - "priorityFee": priorityFee, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["feePerByte"]) -> MetaOapg.properties.feePerByte: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["gasPrice"]) -> MetaOapg.properties.gasPrice: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["gasLimit"]) -> MetaOapg.properties.gasLimit: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["networkFee"]) -> MetaOapg.properties.networkFee: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["baseFee"]) -> MetaOapg.properties.baseFee: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["priorityFee"]) -> MetaOapg.properties.priorityFee: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["feePerByte", "gasPrice", "gasLimit", "networkFee", "baseFee", "priorityFee", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["feePerByte"]) -> typing.Union[MetaOapg.properties.feePerByte, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["gasPrice"]) -> typing.Union[MetaOapg.properties.gasPrice, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["gasLimit"]) -> typing.Union[MetaOapg.properties.gasLimit, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["networkFee"]) -> typing.Union[MetaOapg.properties.networkFee, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["baseFee"]) -> typing.Union[MetaOapg.properties.baseFee, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["priorityFee"]) -> typing.Union[MetaOapg.properties.priorityFee, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["feePerByte", "gasPrice", "gasLimit", "networkFee", "baseFee", "priorityFee", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - feePerByte: typing.Union[MetaOapg.properties.feePerByte, str, schemas.Unset] = schemas.unset, - gasPrice: typing.Union[MetaOapg.properties.gasPrice, str, schemas.Unset] = schemas.unset, - gasLimit: typing.Union[MetaOapg.properties.gasLimit, str, schemas.Unset] = schemas.unset, - networkFee: typing.Union[MetaOapg.properties.networkFee, str, schemas.Unset] = schemas.unset, - baseFee: typing.Union[MetaOapg.properties.baseFee, str, schemas.Unset] = schemas.unset, - priorityFee: typing.Union[MetaOapg.properties.priorityFee, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'TransactionFee': - return super().__new__( - cls, - *_args, - feePerByte=feePerByte, - gasPrice=gasPrice, - gasLimit=gasLimit, - networkFee=networkFee, - baseFee=baseFee, - priorityFee=priorityFee, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/transaction_operation.py b/fireblocks_client/model/transaction_operation.py deleted file mode 100644 index edd5ea4d..00000000 --- a/fireblocks_client/model/transaction_operation.py +++ /dev/null @@ -1,78 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class TransactionOperation( - schemas.EnumBase, - schemas.StrSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - * `TRANSFER` - The default value for an operation. Transfers funds from one account to another. UTXO blockchains allow multi-input and multi-output transfers. All other blockchains allow transfers with one source address and one destination address. -* `MINT` - Mints new tokens. Supported for Stellar, Ripple and EVM-based blockchains. -* `BURN` - Burns tokens. Supported for Stellar, Ripple and EVM-based blockchains. -* `CONTRACT_CALL` - Calls a smart contract method for web3 operations on any EVM blockchain. The Fireblocks [development libraries](https://developers.fireblocks.com/docs/ethereum-development#convenience-libraries) are recommended for building contract call transactions. -* `TYPED_MESSAGE` - An off-chain message in either Ethereum Personal Message or EIP712 format. Use it to sign specific readable messages that are not actual transactions. [Learn more about typed messages](https://developers.fireblocks.com/docs/typed-message-signing). -* `RAW` - An off-chain message with no predefined format. Use it to sign any message with your private key, including protocols such as blockchains and custom transaction types that are not natively supported by Fireblocks. [Learn more about raw signing transactions.](https://developers.fireblocks.com/docs/raw-message-signing) - - """ - - - class MetaOapg: - enum_value_to_name = { - "TRANSFER": "TRANSFER", - "BURN": "BURN", - "CONTRACT_CALL": "CONTRACT_CALL", - "MINT": "MINT", - "RAW": "RAW", - "TYPED_MESSAGE": "TYPED_MESSAGE", - } - - @schemas.classproperty - def TRANSFER(cls): - return cls("TRANSFER") - - @schemas.classproperty - def BURN(cls): - return cls("BURN") - - @schemas.classproperty - def CONTRACT_CALL(cls): - return cls("CONTRACT_CALL") - - @schemas.classproperty - def MINT(cls): - return cls("MINT") - - @schemas.classproperty - def RAW(cls): - return cls("RAW") - - @schemas.classproperty - def TYPED_MESSAGE(cls): - return cls("TYPED_MESSAGE") diff --git a/fireblocks_client/model/transaction_operation.pyi b/fireblocks_client/model/transaction_operation.pyi deleted file mode 100644 index 4f2d4373..00000000 --- a/fireblocks_client/model/transaction_operation.pyi +++ /dev/null @@ -1,67 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class TransactionOperation( - schemas.EnumBase, - schemas.StrSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - * `TRANSFER` - The default value for an operation. Transfers funds from one account to another. UTXO blockchains allow multi-input and multi-output transfers. All other blockchains allow transfers with one source address and one destination address. -* `MINT` - Mints new tokens. Supported for Stellar, Ripple and EVM-based blockchains. -* `BURN` - Burns tokens. Supported for Stellar, Ripple and EVM-based blockchains. -* `CONTRACT_CALL` - Calls a smart contract method for web3 operations on any EVM blockchain. The Fireblocks [development libraries](https://developers.fireblocks.com/docs/ethereum-development#convenience-libraries) are recommended for building contract call transactions. -* `TYPED_MESSAGE` - An off-chain message in either Ethereum Personal Message or EIP712 format. Use it to sign specific readable messages that are not actual transactions. [Learn more about typed messages](https://developers.fireblocks.com/docs/typed-message-signing). -* `RAW` - An off-chain message with no predefined format. Use it to sign any message with your private key, including protocols such as blockchains and custom transaction types that are not natively supported by Fireblocks. [Learn more about raw signing transactions.](https://developers.fireblocks.com/docs/raw-message-signing) - - """ - - @schemas.classproperty - def TRANSFER(cls): - return cls("TRANSFER") - - @schemas.classproperty - def BURN(cls): - return cls("BURN") - - @schemas.classproperty - def CONTRACT_CALL(cls): - return cls("CONTRACT_CALL") - - @schemas.classproperty - def MINT(cls): - return cls("MINT") - - @schemas.classproperty - def RAW(cls): - return cls("RAW") - - @schemas.classproperty - def TYPED_MESSAGE(cls): - return cls("TYPED_MESSAGE") diff --git a/fireblocks_client/model/transaction_request.py b/fireblocks_client/model/transaction_request.py deleted file mode 100644 index 537a51fd..00000000 --- a/fireblocks_client/model/transaction_request.py +++ /dev/null @@ -1,677 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class TransactionRequest( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def operation() -> typing.Type['TransactionOperation']: - return TransactionOperation - note = schemas.StrSchema - externalTxId = schemas.StrSchema - assetId = schemas.StrSchema - - @staticmethod - def source() -> typing.Type['TransferPeerPath']: - return TransferPeerPath - - @staticmethod - def destination() -> typing.Type['DestinationTransferPeerPath']: - return DestinationTransferPeerPath - - - class destinations( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['TransactionRequestDestination']: - return TransactionRequestDestination - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['TransactionRequestDestination'], typing.List['TransactionRequestDestination']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'destinations': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'TransactionRequestDestination': - return super().__getitem__(i) - - - class amount( - schemas.ComposedSchema, - ): - - - class MetaOapg: - one_of_0 = schemas.StrSchema - one_of_1 = schemas.NumberSchema - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.one_of_0, - cls.one_of_1, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'amount': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - treatAsGrossAmount = schemas.BoolSchema - forceSweep = schemas.BoolSchema - - - class feeLevel( - schemas.EnumBase, - schemas.StrSchema - ): - - - class MetaOapg: - enum_value_to_name = { - "LOW": "LOW", - "MEDIUM": "MEDIUM", - "HIGH": "HIGH", - } - - @schemas.classproperty - def LOW(cls): - return cls("LOW") - - @schemas.classproperty - def MEDIUM(cls): - return cls("MEDIUM") - - @schemas.classproperty - def HIGH(cls): - return cls("HIGH") - - - class fee( - schemas.ComposedSchema, - ): - - - class MetaOapg: - one_of_0 = schemas.StrSchema - one_of_1 = schemas.NumberSchema - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.one_of_0, - cls.one_of_1, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'fee': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - - - class priorityFee( - schemas.ComposedSchema, - ): - - - class MetaOapg: - one_of_0 = schemas.StrSchema - one_of_1 = schemas.NumberSchema - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.one_of_0, - cls.one_of_1, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'priorityFee': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - failOnLowFee = schemas.BoolSchema - maxFee = schemas.StrSchema - - - class gasLimit( - schemas.ComposedSchema, - ): - - - class MetaOapg: - one_of_0 = schemas.StrSchema - one_of_1 = schemas.NumberSchema - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.one_of_0, - cls.one_of_1, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'gasLimit': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - - - class gasPrice( - schemas.ComposedSchema, - ): - - - class MetaOapg: - one_of_0 = schemas.StrSchema - one_of_1 = schemas.NumberSchema - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.one_of_0, - cls.one_of_1, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'gasPrice': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - - - class networkFee( - schemas.ComposedSchema, - ): - - - class MetaOapg: - one_of_0 = schemas.StrSchema - one_of_1 = schemas.NumberSchema - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.one_of_0, - cls.one_of_1, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'networkFee': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - replaceTxByHash = schemas.StrSchema - extraParameters = schemas.DictSchema - customerRefId = schemas.StrSchema - autoStaking = schemas.BoolSchema - - - class networkStaking( - schemas.ComposedSchema, - ): - - - class MetaOapg: - one_of_0 = schemas.StrSchema - one_of_1 = schemas.NumberSchema - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.one_of_0, - cls.one_of_1, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'networkStaking': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - - - class cpuStaking( - schemas.ComposedSchema, - ): - - - class MetaOapg: - one_of_0 = schemas.StrSchema - one_of_1 = schemas.NumberSchema - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.one_of_0, - cls.one_of_1, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'cpuStaking': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - __annotations__ = { - "operation": operation, - "note": note, - "externalTxId": externalTxId, - "assetId": assetId, - "source": source, - "destination": destination, - "destinations": destinations, - "amount": amount, - "treatAsGrossAmount": treatAsGrossAmount, - "forceSweep": forceSweep, - "feeLevel": feeLevel, - "fee": fee, - "priorityFee": priorityFee, - "failOnLowFee": failOnLowFee, - "maxFee": maxFee, - "gasLimit": gasLimit, - "gasPrice": gasPrice, - "networkFee": networkFee, - "replaceTxByHash": replaceTxByHash, - "extraParameters": extraParameters, - "customerRefId": customerRefId, - "autoStaking": autoStaking, - "networkStaking": networkStaking, - "cpuStaking": cpuStaking, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["operation"]) -> 'TransactionOperation': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["note"]) -> MetaOapg.properties.note: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["externalTxId"]) -> MetaOapg.properties.externalTxId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["assetId"]) -> MetaOapg.properties.assetId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["source"]) -> 'TransferPeerPath': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["destination"]) -> 'DestinationTransferPeerPath': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["destinations"]) -> MetaOapg.properties.destinations: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["amount"]) -> MetaOapg.properties.amount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["treatAsGrossAmount"]) -> MetaOapg.properties.treatAsGrossAmount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["forceSweep"]) -> MetaOapg.properties.forceSweep: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["feeLevel"]) -> MetaOapg.properties.feeLevel: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["fee"]) -> MetaOapg.properties.fee: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["priorityFee"]) -> MetaOapg.properties.priorityFee: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["failOnLowFee"]) -> MetaOapg.properties.failOnLowFee: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["maxFee"]) -> MetaOapg.properties.maxFee: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["gasLimit"]) -> MetaOapg.properties.gasLimit: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["gasPrice"]) -> MetaOapg.properties.gasPrice: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["networkFee"]) -> MetaOapg.properties.networkFee: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["replaceTxByHash"]) -> MetaOapg.properties.replaceTxByHash: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["extraParameters"]) -> MetaOapg.properties.extraParameters: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["customerRefId"]) -> MetaOapg.properties.customerRefId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["autoStaking"]) -> MetaOapg.properties.autoStaking: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["networkStaking"]) -> MetaOapg.properties.networkStaking: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["cpuStaking"]) -> MetaOapg.properties.cpuStaking: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["operation", "note", "externalTxId", "assetId", "source", "destination", "destinations", "amount", "treatAsGrossAmount", "forceSweep", "feeLevel", "fee", "priorityFee", "failOnLowFee", "maxFee", "gasLimit", "gasPrice", "networkFee", "replaceTxByHash", "extraParameters", "customerRefId", "autoStaking", "networkStaking", "cpuStaking", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["operation"]) -> typing.Union['TransactionOperation', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["note"]) -> typing.Union[MetaOapg.properties.note, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["externalTxId"]) -> typing.Union[MetaOapg.properties.externalTxId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["assetId"]) -> typing.Union[MetaOapg.properties.assetId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["source"]) -> typing.Union['TransferPeerPath', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["destination"]) -> typing.Union['DestinationTransferPeerPath', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["destinations"]) -> typing.Union[MetaOapg.properties.destinations, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["amount"]) -> typing.Union[MetaOapg.properties.amount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["treatAsGrossAmount"]) -> typing.Union[MetaOapg.properties.treatAsGrossAmount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["forceSweep"]) -> typing.Union[MetaOapg.properties.forceSweep, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["feeLevel"]) -> typing.Union[MetaOapg.properties.feeLevel, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["fee"]) -> typing.Union[MetaOapg.properties.fee, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["priorityFee"]) -> typing.Union[MetaOapg.properties.priorityFee, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["failOnLowFee"]) -> typing.Union[MetaOapg.properties.failOnLowFee, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["maxFee"]) -> typing.Union[MetaOapg.properties.maxFee, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["gasLimit"]) -> typing.Union[MetaOapg.properties.gasLimit, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["gasPrice"]) -> typing.Union[MetaOapg.properties.gasPrice, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["networkFee"]) -> typing.Union[MetaOapg.properties.networkFee, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["replaceTxByHash"]) -> typing.Union[MetaOapg.properties.replaceTxByHash, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["extraParameters"]) -> typing.Union[MetaOapg.properties.extraParameters, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["customerRefId"]) -> typing.Union[MetaOapg.properties.customerRefId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["autoStaking"]) -> typing.Union[MetaOapg.properties.autoStaking, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["networkStaking"]) -> typing.Union[MetaOapg.properties.networkStaking, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["cpuStaking"]) -> typing.Union[MetaOapg.properties.cpuStaking, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["operation", "note", "externalTxId", "assetId", "source", "destination", "destinations", "amount", "treatAsGrossAmount", "forceSweep", "feeLevel", "fee", "priorityFee", "failOnLowFee", "maxFee", "gasLimit", "gasPrice", "networkFee", "replaceTxByHash", "extraParameters", "customerRefId", "autoStaking", "networkStaking", "cpuStaking", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - operation: typing.Union['TransactionOperation', schemas.Unset] = schemas.unset, - note: typing.Union[MetaOapg.properties.note, str, schemas.Unset] = schemas.unset, - externalTxId: typing.Union[MetaOapg.properties.externalTxId, str, schemas.Unset] = schemas.unset, - assetId: typing.Union[MetaOapg.properties.assetId, str, schemas.Unset] = schemas.unset, - source: typing.Union['TransferPeerPath', schemas.Unset] = schemas.unset, - destination: typing.Union['DestinationTransferPeerPath', schemas.Unset] = schemas.unset, - destinations: typing.Union[MetaOapg.properties.destinations, list, tuple, schemas.Unset] = schemas.unset, - amount: typing.Union[MetaOapg.properties.amount, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - treatAsGrossAmount: typing.Union[MetaOapg.properties.treatAsGrossAmount, bool, schemas.Unset] = schemas.unset, - forceSweep: typing.Union[MetaOapg.properties.forceSweep, bool, schemas.Unset] = schemas.unset, - feeLevel: typing.Union[MetaOapg.properties.feeLevel, str, schemas.Unset] = schemas.unset, - fee: typing.Union[MetaOapg.properties.fee, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - priorityFee: typing.Union[MetaOapg.properties.priorityFee, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - failOnLowFee: typing.Union[MetaOapg.properties.failOnLowFee, bool, schemas.Unset] = schemas.unset, - maxFee: typing.Union[MetaOapg.properties.maxFee, str, schemas.Unset] = schemas.unset, - gasLimit: typing.Union[MetaOapg.properties.gasLimit, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - gasPrice: typing.Union[MetaOapg.properties.gasPrice, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - networkFee: typing.Union[MetaOapg.properties.networkFee, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - replaceTxByHash: typing.Union[MetaOapg.properties.replaceTxByHash, str, schemas.Unset] = schemas.unset, - extraParameters: typing.Union[MetaOapg.properties.extraParameters, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - customerRefId: typing.Union[MetaOapg.properties.customerRefId, str, schemas.Unset] = schemas.unset, - autoStaking: typing.Union[MetaOapg.properties.autoStaking, bool, schemas.Unset] = schemas.unset, - networkStaking: typing.Union[MetaOapg.properties.networkStaking, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - cpuStaking: typing.Union[MetaOapg.properties.cpuStaking, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'TransactionRequest': - return super().__new__( - cls, - *_args, - operation=operation, - note=note, - externalTxId=externalTxId, - assetId=assetId, - source=source, - destination=destination, - destinations=destinations, - amount=amount, - treatAsGrossAmount=treatAsGrossAmount, - forceSweep=forceSweep, - feeLevel=feeLevel, - fee=fee, - priorityFee=priorityFee, - failOnLowFee=failOnLowFee, - maxFee=maxFee, - gasLimit=gasLimit, - gasPrice=gasPrice, - networkFee=networkFee, - replaceTxByHash=replaceTxByHash, - extraParameters=extraParameters, - customerRefId=customerRefId, - autoStaking=autoStaking, - networkStaking=networkStaking, - cpuStaking=cpuStaking, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.destination_transfer_peer_path import DestinationTransferPeerPath -from fireblocks_client.model.transaction_operation import TransactionOperation -from fireblocks_client.model.transaction_request_destination import TransactionRequestDestination -from fireblocks_client.model.transfer_peer_path import TransferPeerPath diff --git a/fireblocks_client/model/transaction_request.pyi b/fireblocks_client/model/transaction_request.pyi deleted file mode 100644 index cab6370d..00000000 --- a/fireblocks_client/model/transaction_request.pyi +++ /dev/null @@ -1,669 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class TransactionRequest( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def operation() -> typing.Type['TransactionOperation']: - return TransactionOperation - note = schemas.StrSchema - externalTxId = schemas.StrSchema - assetId = schemas.StrSchema - - @staticmethod - def source() -> typing.Type['TransferPeerPath']: - return TransferPeerPath - - @staticmethod - def destination() -> typing.Type['DestinationTransferPeerPath']: - return DestinationTransferPeerPath - - - class destinations( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['TransactionRequestDestination']: - return TransactionRequestDestination - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['TransactionRequestDestination'], typing.List['TransactionRequestDestination']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'destinations': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'TransactionRequestDestination': - return super().__getitem__(i) - - - class amount( - schemas.ComposedSchema, - ): - - - class MetaOapg: - one_of_0 = schemas.StrSchema - one_of_1 = schemas.NumberSchema - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.one_of_0, - cls.one_of_1, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'amount': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - treatAsGrossAmount = schemas.BoolSchema - forceSweep = schemas.BoolSchema - - - class feeLevel( - schemas.EnumBase, - schemas.StrSchema - ): - - @schemas.classproperty - def LOW(cls): - return cls("LOW") - - @schemas.classproperty - def MEDIUM(cls): - return cls("MEDIUM") - - @schemas.classproperty - def HIGH(cls): - return cls("HIGH") - - - class fee( - schemas.ComposedSchema, - ): - - - class MetaOapg: - one_of_0 = schemas.StrSchema - one_of_1 = schemas.NumberSchema - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.one_of_0, - cls.one_of_1, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'fee': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - - - class priorityFee( - schemas.ComposedSchema, - ): - - - class MetaOapg: - one_of_0 = schemas.StrSchema - one_of_1 = schemas.NumberSchema - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.one_of_0, - cls.one_of_1, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'priorityFee': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - failOnLowFee = schemas.BoolSchema - maxFee = schemas.StrSchema - - - class gasLimit( - schemas.ComposedSchema, - ): - - - class MetaOapg: - one_of_0 = schemas.StrSchema - one_of_1 = schemas.NumberSchema - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.one_of_0, - cls.one_of_1, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'gasLimit': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - - - class gasPrice( - schemas.ComposedSchema, - ): - - - class MetaOapg: - one_of_0 = schemas.StrSchema - one_of_1 = schemas.NumberSchema - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.one_of_0, - cls.one_of_1, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'gasPrice': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - - - class networkFee( - schemas.ComposedSchema, - ): - - - class MetaOapg: - one_of_0 = schemas.StrSchema - one_of_1 = schemas.NumberSchema - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.one_of_0, - cls.one_of_1, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'networkFee': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - replaceTxByHash = schemas.StrSchema - extraParameters = schemas.DictSchema - customerRefId = schemas.StrSchema - autoStaking = schemas.BoolSchema - - - class networkStaking( - schemas.ComposedSchema, - ): - - - class MetaOapg: - one_of_0 = schemas.StrSchema - one_of_1 = schemas.NumberSchema - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.one_of_0, - cls.one_of_1, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'networkStaking': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - - - class cpuStaking( - schemas.ComposedSchema, - ): - - - class MetaOapg: - one_of_0 = schemas.StrSchema - one_of_1 = schemas.NumberSchema - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.one_of_0, - cls.one_of_1, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'cpuStaking': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - __annotations__ = { - "operation": operation, - "note": note, - "externalTxId": externalTxId, - "assetId": assetId, - "source": source, - "destination": destination, - "destinations": destinations, - "amount": amount, - "treatAsGrossAmount": treatAsGrossAmount, - "forceSweep": forceSweep, - "feeLevel": feeLevel, - "fee": fee, - "priorityFee": priorityFee, - "failOnLowFee": failOnLowFee, - "maxFee": maxFee, - "gasLimit": gasLimit, - "gasPrice": gasPrice, - "networkFee": networkFee, - "replaceTxByHash": replaceTxByHash, - "extraParameters": extraParameters, - "customerRefId": customerRefId, - "autoStaking": autoStaking, - "networkStaking": networkStaking, - "cpuStaking": cpuStaking, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["operation"]) -> 'TransactionOperation': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["note"]) -> MetaOapg.properties.note: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["externalTxId"]) -> MetaOapg.properties.externalTxId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["assetId"]) -> MetaOapg.properties.assetId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["source"]) -> 'TransferPeerPath': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["destination"]) -> 'DestinationTransferPeerPath': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["destinations"]) -> MetaOapg.properties.destinations: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["amount"]) -> MetaOapg.properties.amount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["treatAsGrossAmount"]) -> MetaOapg.properties.treatAsGrossAmount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["forceSweep"]) -> MetaOapg.properties.forceSweep: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["feeLevel"]) -> MetaOapg.properties.feeLevel: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["fee"]) -> MetaOapg.properties.fee: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["priorityFee"]) -> MetaOapg.properties.priorityFee: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["failOnLowFee"]) -> MetaOapg.properties.failOnLowFee: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["maxFee"]) -> MetaOapg.properties.maxFee: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["gasLimit"]) -> MetaOapg.properties.gasLimit: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["gasPrice"]) -> MetaOapg.properties.gasPrice: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["networkFee"]) -> MetaOapg.properties.networkFee: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["replaceTxByHash"]) -> MetaOapg.properties.replaceTxByHash: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["extraParameters"]) -> MetaOapg.properties.extraParameters: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["customerRefId"]) -> MetaOapg.properties.customerRefId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["autoStaking"]) -> MetaOapg.properties.autoStaking: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["networkStaking"]) -> MetaOapg.properties.networkStaking: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["cpuStaking"]) -> MetaOapg.properties.cpuStaking: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["operation", "note", "externalTxId", "assetId", "source", "destination", "destinations", "amount", "treatAsGrossAmount", "forceSweep", "feeLevel", "fee", "priorityFee", "failOnLowFee", "maxFee", "gasLimit", "gasPrice", "networkFee", "replaceTxByHash", "extraParameters", "customerRefId", "autoStaking", "networkStaking", "cpuStaking", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["operation"]) -> typing.Union['TransactionOperation', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["note"]) -> typing.Union[MetaOapg.properties.note, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["externalTxId"]) -> typing.Union[MetaOapg.properties.externalTxId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["assetId"]) -> typing.Union[MetaOapg.properties.assetId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["source"]) -> typing.Union['TransferPeerPath', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["destination"]) -> typing.Union['DestinationTransferPeerPath', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["destinations"]) -> typing.Union[MetaOapg.properties.destinations, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["amount"]) -> typing.Union[MetaOapg.properties.amount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["treatAsGrossAmount"]) -> typing.Union[MetaOapg.properties.treatAsGrossAmount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["forceSweep"]) -> typing.Union[MetaOapg.properties.forceSweep, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["feeLevel"]) -> typing.Union[MetaOapg.properties.feeLevel, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["fee"]) -> typing.Union[MetaOapg.properties.fee, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["priorityFee"]) -> typing.Union[MetaOapg.properties.priorityFee, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["failOnLowFee"]) -> typing.Union[MetaOapg.properties.failOnLowFee, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["maxFee"]) -> typing.Union[MetaOapg.properties.maxFee, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["gasLimit"]) -> typing.Union[MetaOapg.properties.gasLimit, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["gasPrice"]) -> typing.Union[MetaOapg.properties.gasPrice, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["networkFee"]) -> typing.Union[MetaOapg.properties.networkFee, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["replaceTxByHash"]) -> typing.Union[MetaOapg.properties.replaceTxByHash, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["extraParameters"]) -> typing.Union[MetaOapg.properties.extraParameters, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["customerRefId"]) -> typing.Union[MetaOapg.properties.customerRefId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["autoStaking"]) -> typing.Union[MetaOapg.properties.autoStaking, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["networkStaking"]) -> typing.Union[MetaOapg.properties.networkStaking, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["cpuStaking"]) -> typing.Union[MetaOapg.properties.cpuStaking, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["operation", "note", "externalTxId", "assetId", "source", "destination", "destinations", "amount", "treatAsGrossAmount", "forceSweep", "feeLevel", "fee", "priorityFee", "failOnLowFee", "maxFee", "gasLimit", "gasPrice", "networkFee", "replaceTxByHash", "extraParameters", "customerRefId", "autoStaking", "networkStaking", "cpuStaking", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - operation: typing.Union['TransactionOperation', schemas.Unset] = schemas.unset, - note: typing.Union[MetaOapg.properties.note, str, schemas.Unset] = schemas.unset, - externalTxId: typing.Union[MetaOapg.properties.externalTxId, str, schemas.Unset] = schemas.unset, - assetId: typing.Union[MetaOapg.properties.assetId, str, schemas.Unset] = schemas.unset, - source: typing.Union['TransferPeerPath', schemas.Unset] = schemas.unset, - destination: typing.Union['DestinationTransferPeerPath', schemas.Unset] = schemas.unset, - destinations: typing.Union[MetaOapg.properties.destinations, list, tuple, schemas.Unset] = schemas.unset, - amount: typing.Union[MetaOapg.properties.amount, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - treatAsGrossAmount: typing.Union[MetaOapg.properties.treatAsGrossAmount, bool, schemas.Unset] = schemas.unset, - forceSweep: typing.Union[MetaOapg.properties.forceSweep, bool, schemas.Unset] = schemas.unset, - feeLevel: typing.Union[MetaOapg.properties.feeLevel, str, schemas.Unset] = schemas.unset, - fee: typing.Union[MetaOapg.properties.fee, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - priorityFee: typing.Union[MetaOapg.properties.priorityFee, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - failOnLowFee: typing.Union[MetaOapg.properties.failOnLowFee, bool, schemas.Unset] = schemas.unset, - maxFee: typing.Union[MetaOapg.properties.maxFee, str, schemas.Unset] = schemas.unset, - gasLimit: typing.Union[MetaOapg.properties.gasLimit, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - gasPrice: typing.Union[MetaOapg.properties.gasPrice, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - networkFee: typing.Union[MetaOapg.properties.networkFee, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - replaceTxByHash: typing.Union[MetaOapg.properties.replaceTxByHash, str, schemas.Unset] = schemas.unset, - extraParameters: typing.Union[MetaOapg.properties.extraParameters, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - customerRefId: typing.Union[MetaOapg.properties.customerRefId, str, schemas.Unset] = schemas.unset, - autoStaking: typing.Union[MetaOapg.properties.autoStaking, bool, schemas.Unset] = schemas.unset, - networkStaking: typing.Union[MetaOapg.properties.networkStaking, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - cpuStaking: typing.Union[MetaOapg.properties.cpuStaking, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'TransactionRequest': - return super().__new__( - cls, - *_args, - operation=operation, - note=note, - externalTxId=externalTxId, - assetId=assetId, - source=source, - destination=destination, - destinations=destinations, - amount=amount, - treatAsGrossAmount=treatAsGrossAmount, - forceSweep=forceSweep, - feeLevel=feeLevel, - fee=fee, - priorityFee=priorityFee, - failOnLowFee=failOnLowFee, - maxFee=maxFee, - gasLimit=gasLimit, - gasPrice=gasPrice, - networkFee=networkFee, - replaceTxByHash=replaceTxByHash, - extraParameters=extraParameters, - customerRefId=customerRefId, - autoStaking=autoStaking, - networkStaking=networkStaking, - cpuStaking=cpuStaking, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.destination_transfer_peer_path import DestinationTransferPeerPath -from fireblocks_client.model.transaction_operation import TransactionOperation -from fireblocks_client.model.transaction_request_destination import TransactionRequestDestination -from fireblocks_client.model.transfer_peer_path import TransferPeerPath diff --git a/fireblocks_client/model/transaction_request_destination.py b/fireblocks_client/model/transaction_request_destination.py deleted file mode 100644 index 0a5444f2..00000000 --- a/fireblocks_client/model/transaction_request_destination.py +++ /dev/null @@ -1,94 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class TransactionRequestDestination( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - amount = schemas.StrSchema - - @staticmethod - def destination() -> typing.Type['DestinationTransferPeerPath']: - return DestinationTransferPeerPath - __annotations__ = { - "amount": amount, - "destination": destination, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["amount"]) -> MetaOapg.properties.amount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["destination"]) -> 'DestinationTransferPeerPath': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["amount", "destination", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["amount"]) -> typing.Union[MetaOapg.properties.amount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["destination"]) -> typing.Union['DestinationTransferPeerPath', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["amount", "destination", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - amount: typing.Union[MetaOapg.properties.amount, str, schemas.Unset] = schemas.unset, - destination: typing.Union['DestinationTransferPeerPath', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'TransactionRequestDestination': - return super().__new__( - cls, - *_args, - amount=amount, - destination=destination, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.destination_transfer_peer_path import DestinationTransferPeerPath diff --git a/fireblocks_client/model/transaction_request_destination.pyi b/fireblocks_client/model/transaction_request_destination.pyi deleted file mode 100644 index 0a5444f2..00000000 --- a/fireblocks_client/model/transaction_request_destination.pyi +++ /dev/null @@ -1,94 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class TransactionRequestDestination( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - amount = schemas.StrSchema - - @staticmethod - def destination() -> typing.Type['DestinationTransferPeerPath']: - return DestinationTransferPeerPath - __annotations__ = { - "amount": amount, - "destination": destination, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["amount"]) -> MetaOapg.properties.amount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["destination"]) -> 'DestinationTransferPeerPath': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["amount", "destination", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["amount"]) -> typing.Union[MetaOapg.properties.amount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["destination"]) -> typing.Union['DestinationTransferPeerPath', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["amount", "destination", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - amount: typing.Union[MetaOapg.properties.amount, str, schemas.Unset] = schemas.unset, - destination: typing.Union['DestinationTransferPeerPath', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'TransactionRequestDestination': - return super().__new__( - cls, - *_args, - amount=amount, - destination=destination, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.destination_transfer_peer_path import DestinationTransferPeerPath diff --git a/fireblocks_client/model/transaction_response.py b/fireblocks_client/model/transaction_response.py deleted file mode 100644 index 48538063..00000000 --- a/fireblocks_client/model/transaction_response.py +++ /dev/null @@ -1,768 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class TransactionResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - id = schemas.StrSchema - externalTxId = schemas.StrSchema - status = schemas.StrSchema - subStatus = schemas.StrSchema - txHash = schemas.StrSchema - - @staticmethod - def operation() -> typing.Type['GetTransactionOperation']: - return GetTransactionOperation - note = schemas.StrSchema - assetId = schemas.StrSchema - - @staticmethod - def source() -> typing.Type['SourceTransferPeerPathResponse']: - return SourceTransferPeerPathResponse - sourceAddress = schemas.StrSchema - tag = schemas.StrSchema - - @staticmethod - def destination() -> typing.Type['DestinationTransferPeerPathResponse']: - return DestinationTransferPeerPathResponse - - - class destinations( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['TransactionResponseDestination']: - return TransactionResponseDestination - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['TransactionResponseDestination'], typing.List['TransactionResponseDestination']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'destinations': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'TransactionResponseDestination': - return super().__getitem__(i) - destinationAddress = schemas.StrSchema - destinationAddressDescription = schemas.StrSchema - destinationTag = schemas.StrSchema - - - class contractCallDecodedData( - schemas.DictSchema - ): - - - class MetaOapg: - - class properties: - contractName = schemas.StrSchema - - - class functionCalls( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.DictSchema - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, dict, frozendict.frozendict, ]], typing.List[typing.Union[MetaOapg.items, dict, frozendict.frozendict, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'functionCalls': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - __annotations__ = { - "contractName": contractName, - "functionCalls": functionCalls, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["contractName"]) -> MetaOapg.properties.contractName: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["functionCalls"]) -> MetaOapg.properties.functionCalls: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["contractName", "functionCalls", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["contractName"]) -> typing.Union[MetaOapg.properties.contractName, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["functionCalls"]) -> typing.Union[MetaOapg.properties.functionCalls, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["contractName", "functionCalls", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - contractName: typing.Union[MetaOapg.properties.contractName, str, schemas.Unset] = schemas.unset, - functionCalls: typing.Union[MetaOapg.properties.functionCalls, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'contractCallDecodedData': - return super().__new__( - cls, - *_args, - contractName=contractName, - functionCalls=functionCalls, - _configuration=_configuration, - **kwargs, - ) - - @staticmethod - def amountInfo() -> typing.Type['AmountInfo']: - return AmountInfo - treatAsGrossAmount = schemas.BoolSchema - - @staticmethod - def feeInfo() -> typing.Type['FeeInfo']: - return FeeInfo - feeCurrency = schemas.StrSchema - - - class networkRecords( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['NetworkRecord']: - return NetworkRecord - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['NetworkRecord'], typing.List['NetworkRecord']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'networkRecords': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'NetworkRecord': - return super().__getitem__(i) - createdAt = schemas.NumberSchema - lastUpdated = schemas.NumberSchema - createdBy = schemas.StrSchema - - - class signedBy( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.StrSchema - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'signedBy': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - rejectedBy = schemas.StrSchema - - @staticmethod - def authorizationInfo() -> typing.Type['AuthorizationInfo']: - return AuthorizationInfo - exchangeTxId = schemas.StrSchema - customerRefId = schemas.StrSchema - - @staticmethod - def amlScreeningResult() -> typing.Type['AmlScreeningResult']: - return AmlScreeningResult - extraParameters = schemas.DictSchema - - @staticmethod - def signedMessages() -> typing.Type['SignedMessage']: - return SignedMessage - numOfConfirmations = schemas.NumberSchema - - @staticmethod - def blockInfo() -> typing.Type['BlockInfo']: - return BlockInfo - index = schemas.NumberSchema - - @staticmethod - def rewardInfo() -> typing.Type['RewardInfo']: - return RewardInfo - - @staticmethod - def systemMessages() -> typing.Type['SystemMessageInfo']: - return SystemMessageInfo - - - class addressType( - schemas.EnumBase, - schemas.StrSchema - ): - - - class MetaOapg: - enum_value_to_name = { - "WHITELISTED": "WHITELISTED", - "ONE_TIME": "ONE_TIME", - } - - @schemas.classproperty - def WHITELISTED(cls): - return cls("WHITELISTED") - - @schemas.classproperty - def ONE_TIME(cls): - return cls("ONE_TIME") - requestedAmount = schemas.NumberSchema - amount = schemas.NumberSchema - netAmount = schemas.NumberSchema - - - class amountUSD( - schemas.NumberBase, - schemas.NoneBase, - schemas.Schema, - schemas.NoneDecimalMixin - ): - - - def __new__( - cls, - *_args: typing.Union[None, decimal.Decimal, int, float, ], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'amountUSD': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - ) - serviceFee = schemas.NumberSchema - fee = schemas.NumberSchema - networkFee = schemas.NumberSchema - __annotations__ = { - "id": id, - "externalTxId": externalTxId, - "status": status, - "subStatus": subStatus, - "txHash": txHash, - "operation": operation, - "note": note, - "assetId": assetId, - "source": source, - "sourceAddress": sourceAddress, - "tag": tag, - "destination": destination, - "destinations": destinations, - "destinationAddress": destinationAddress, - "destinationAddressDescription": destinationAddressDescription, - "destinationTag": destinationTag, - "contractCallDecodedData": contractCallDecodedData, - "amountInfo": amountInfo, - "treatAsGrossAmount": treatAsGrossAmount, - "feeInfo": feeInfo, - "feeCurrency": feeCurrency, - "networkRecords": networkRecords, - "createdAt": createdAt, - "lastUpdated": lastUpdated, - "createdBy": createdBy, - "signedBy": signedBy, - "rejectedBy": rejectedBy, - "authorizationInfo": authorizationInfo, - "exchangeTxId": exchangeTxId, - "customerRefId": customerRefId, - "amlScreeningResult": amlScreeningResult, - "extraParameters": extraParameters, - "signedMessages": signedMessages, - "numOfConfirmations": numOfConfirmations, - "blockInfo": blockInfo, - "index": index, - "rewardInfo": rewardInfo, - "systemMessages": systemMessages, - "addressType": addressType, - "requestedAmount": requestedAmount, - "amount": amount, - "netAmount": netAmount, - "amountUSD": amountUSD, - "serviceFee": serviceFee, - "fee": fee, - "networkFee": networkFee, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["externalTxId"]) -> MetaOapg.properties.externalTxId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["status"]) -> MetaOapg.properties.status: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["subStatus"]) -> MetaOapg.properties.subStatus: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["txHash"]) -> MetaOapg.properties.txHash: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["operation"]) -> 'GetTransactionOperation': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["note"]) -> MetaOapg.properties.note: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["assetId"]) -> MetaOapg.properties.assetId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["source"]) -> 'SourceTransferPeerPathResponse': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["sourceAddress"]) -> MetaOapg.properties.sourceAddress: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["tag"]) -> MetaOapg.properties.tag: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["destination"]) -> 'DestinationTransferPeerPathResponse': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["destinations"]) -> MetaOapg.properties.destinations: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["destinationAddress"]) -> MetaOapg.properties.destinationAddress: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["destinationAddressDescription"]) -> MetaOapg.properties.destinationAddressDescription: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["destinationTag"]) -> MetaOapg.properties.destinationTag: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["contractCallDecodedData"]) -> MetaOapg.properties.contractCallDecodedData: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["amountInfo"]) -> 'AmountInfo': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["treatAsGrossAmount"]) -> MetaOapg.properties.treatAsGrossAmount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["feeInfo"]) -> 'FeeInfo': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["feeCurrency"]) -> MetaOapg.properties.feeCurrency: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["networkRecords"]) -> MetaOapg.properties.networkRecords: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["createdAt"]) -> MetaOapg.properties.createdAt: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["lastUpdated"]) -> MetaOapg.properties.lastUpdated: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["createdBy"]) -> MetaOapg.properties.createdBy: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["signedBy"]) -> MetaOapg.properties.signedBy: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["rejectedBy"]) -> MetaOapg.properties.rejectedBy: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["authorizationInfo"]) -> 'AuthorizationInfo': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["exchangeTxId"]) -> MetaOapg.properties.exchangeTxId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["customerRefId"]) -> MetaOapg.properties.customerRefId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["amlScreeningResult"]) -> 'AmlScreeningResult': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["extraParameters"]) -> MetaOapg.properties.extraParameters: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["signedMessages"]) -> 'SignedMessage': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["numOfConfirmations"]) -> MetaOapg.properties.numOfConfirmations: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["blockInfo"]) -> 'BlockInfo': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["index"]) -> MetaOapg.properties.index: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["rewardInfo"]) -> 'RewardInfo': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["systemMessages"]) -> 'SystemMessageInfo': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["addressType"]) -> MetaOapg.properties.addressType: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requestedAmount"]) -> MetaOapg.properties.requestedAmount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["amount"]) -> MetaOapg.properties.amount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["netAmount"]) -> MetaOapg.properties.netAmount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["amountUSD"]) -> MetaOapg.properties.amountUSD: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["serviceFee"]) -> MetaOapg.properties.serviceFee: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["fee"]) -> MetaOapg.properties.fee: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["networkFee"]) -> MetaOapg.properties.networkFee: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "externalTxId", "status", "subStatus", "txHash", "operation", "note", "assetId", "source", "sourceAddress", "tag", "destination", "destinations", "destinationAddress", "destinationAddressDescription", "destinationTag", "contractCallDecodedData", "amountInfo", "treatAsGrossAmount", "feeInfo", "feeCurrency", "networkRecords", "createdAt", "lastUpdated", "createdBy", "signedBy", "rejectedBy", "authorizationInfo", "exchangeTxId", "customerRefId", "amlScreeningResult", "extraParameters", "signedMessages", "numOfConfirmations", "blockInfo", "index", "rewardInfo", "systemMessages", "addressType", "requestedAmount", "amount", "netAmount", "amountUSD", "serviceFee", "fee", "networkFee", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["externalTxId"]) -> typing.Union[MetaOapg.properties.externalTxId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> typing.Union[MetaOapg.properties.status, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["subStatus"]) -> typing.Union[MetaOapg.properties.subStatus, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["txHash"]) -> typing.Union[MetaOapg.properties.txHash, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["operation"]) -> typing.Union['GetTransactionOperation', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["note"]) -> typing.Union[MetaOapg.properties.note, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["assetId"]) -> typing.Union[MetaOapg.properties.assetId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["source"]) -> typing.Union['SourceTransferPeerPathResponse', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["sourceAddress"]) -> typing.Union[MetaOapg.properties.sourceAddress, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["tag"]) -> typing.Union[MetaOapg.properties.tag, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["destination"]) -> typing.Union['DestinationTransferPeerPathResponse', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["destinations"]) -> typing.Union[MetaOapg.properties.destinations, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["destinationAddress"]) -> typing.Union[MetaOapg.properties.destinationAddress, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["destinationAddressDescription"]) -> typing.Union[MetaOapg.properties.destinationAddressDescription, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["destinationTag"]) -> typing.Union[MetaOapg.properties.destinationTag, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["contractCallDecodedData"]) -> typing.Union[MetaOapg.properties.contractCallDecodedData, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["amountInfo"]) -> typing.Union['AmountInfo', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["treatAsGrossAmount"]) -> typing.Union[MetaOapg.properties.treatAsGrossAmount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["feeInfo"]) -> typing.Union['FeeInfo', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["feeCurrency"]) -> typing.Union[MetaOapg.properties.feeCurrency, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["networkRecords"]) -> typing.Union[MetaOapg.properties.networkRecords, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["createdAt"]) -> typing.Union[MetaOapg.properties.createdAt, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["lastUpdated"]) -> typing.Union[MetaOapg.properties.lastUpdated, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["createdBy"]) -> typing.Union[MetaOapg.properties.createdBy, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["signedBy"]) -> typing.Union[MetaOapg.properties.signedBy, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["rejectedBy"]) -> typing.Union[MetaOapg.properties.rejectedBy, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["authorizationInfo"]) -> typing.Union['AuthorizationInfo', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["exchangeTxId"]) -> typing.Union[MetaOapg.properties.exchangeTxId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["customerRefId"]) -> typing.Union[MetaOapg.properties.customerRefId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["amlScreeningResult"]) -> typing.Union['AmlScreeningResult', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["extraParameters"]) -> typing.Union[MetaOapg.properties.extraParameters, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["signedMessages"]) -> typing.Union['SignedMessage', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["numOfConfirmations"]) -> typing.Union[MetaOapg.properties.numOfConfirmations, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["blockInfo"]) -> typing.Union['BlockInfo', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["index"]) -> typing.Union[MetaOapg.properties.index, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["rewardInfo"]) -> typing.Union['RewardInfo', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["systemMessages"]) -> typing.Union['SystemMessageInfo', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["addressType"]) -> typing.Union[MetaOapg.properties.addressType, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requestedAmount"]) -> typing.Union[MetaOapg.properties.requestedAmount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["amount"]) -> typing.Union[MetaOapg.properties.amount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["netAmount"]) -> typing.Union[MetaOapg.properties.netAmount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["amountUSD"]) -> typing.Union[MetaOapg.properties.amountUSD, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["serviceFee"]) -> typing.Union[MetaOapg.properties.serviceFee, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["fee"]) -> typing.Union[MetaOapg.properties.fee, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["networkFee"]) -> typing.Union[MetaOapg.properties.networkFee, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "externalTxId", "status", "subStatus", "txHash", "operation", "note", "assetId", "source", "sourceAddress", "tag", "destination", "destinations", "destinationAddress", "destinationAddressDescription", "destinationTag", "contractCallDecodedData", "amountInfo", "treatAsGrossAmount", "feeInfo", "feeCurrency", "networkRecords", "createdAt", "lastUpdated", "createdBy", "signedBy", "rejectedBy", "authorizationInfo", "exchangeTxId", "customerRefId", "amlScreeningResult", "extraParameters", "signedMessages", "numOfConfirmations", "blockInfo", "index", "rewardInfo", "systemMessages", "addressType", "requestedAmount", "amount", "netAmount", "amountUSD", "serviceFee", "fee", "networkFee", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - externalTxId: typing.Union[MetaOapg.properties.externalTxId, str, schemas.Unset] = schemas.unset, - status: typing.Union[MetaOapg.properties.status, str, schemas.Unset] = schemas.unset, - subStatus: typing.Union[MetaOapg.properties.subStatus, str, schemas.Unset] = schemas.unset, - txHash: typing.Union[MetaOapg.properties.txHash, str, schemas.Unset] = schemas.unset, - operation: typing.Union['GetTransactionOperation', schemas.Unset] = schemas.unset, - note: typing.Union[MetaOapg.properties.note, str, schemas.Unset] = schemas.unset, - assetId: typing.Union[MetaOapg.properties.assetId, str, schemas.Unset] = schemas.unset, - source: typing.Union['SourceTransferPeerPathResponse', schemas.Unset] = schemas.unset, - sourceAddress: typing.Union[MetaOapg.properties.sourceAddress, str, schemas.Unset] = schemas.unset, - tag: typing.Union[MetaOapg.properties.tag, str, schemas.Unset] = schemas.unset, - destination: typing.Union['DestinationTransferPeerPathResponse', schemas.Unset] = schemas.unset, - destinations: typing.Union[MetaOapg.properties.destinations, list, tuple, schemas.Unset] = schemas.unset, - destinationAddress: typing.Union[MetaOapg.properties.destinationAddress, str, schemas.Unset] = schemas.unset, - destinationAddressDescription: typing.Union[MetaOapg.properties.destinationAddressDescription, str, schemas.Unset] = schemas.unset, - destinationTag: typing.Union[MetaOapg.properties.destinationTag, str, schemas.Unset] = schemas.unset, - contractCallDecodedData: typing.Union[MetaOapg.properties.contractCallDecodedData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - amountInfo: typing.Union['AmountInfo', schemas.Unset] = schemas.unset, - treatAsGrossAmount: typing.Union[MetaOapg.properties.treatAsGrossAmount, bool, schemas.Unset] = schemas.unset, - feeInfo: typing.Union['FeeInfo', schemas.Unset] = schemas.unset, - feeCurrency: typing.Union[MetaOapg.properties.feeCurrency, str, schemas.Unset] = schemas.unset, - networkRecords: typing.Union[MetaOapg.properties.networkRecords, list, tuple, schemas.Unset] = schemas.unset, - createdAt: typing.Union[MetaOapg.properties.createdAt, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, - lastUpdated: typing.Union[MetaOapg.properties.lastUpdated, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, - createdBy: typing.Union[MetaOapg.properties.createdBy, str, schemas.Unset] = schemas.unset, - signedBy: typing.Union[MetaOapg.properties.signedBy, list, tuple, schemas.Unset] = schemas.unset, - rejectedBy: typing.Union[MetaOapg.properties.rejectedBy, str, schemas.Unset] = schemas.unset, - authorizationInfo: typing.Union['AuthorizationInfo', schemas.Unset] = schemas.unset, - exchangeTxId: typing.Union[MetaOapg.properties.exchangeTxId, str, schemas.Unset] = schemas.unset, - customerRefId: typing.Union[MetaOapg.properties.customerRefId, str, schemas.Unset] = schemas.unset, - amlScreeningResult: typing.Union['AmlScreeningResult', schemas.Unset] = schemas.unset, - extraParameters: typing.Union[MetaOapg.properties.extraParameters, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - signedMessages: typing.Union['SignedMessage', schemas.Unset] = schemas.unset, - numOfConfirmations: typing.Union[MetaOapg.properties.numOfConfirmations, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, - blockInfo: typing.Union['BlockInfo', schemas.Unset] = schemas.unset, - index: typing.Union[MetaOapg.properties.index, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, - rewardInfo: typing.Union['RewardInfo', schemas.Unset] = schemas.unset, - systemMessages: typing.Union['SystemMessageInfo', schemas.Unset] = schemas.unset, - addressType: typing.Union[MetaOapg.properties.addressType, str, schemas.Unset] = schemas.unset, - requestedAmount: typing.Union[MetaOapg.properties.requestedAmount, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, - amount: typing.Union[MetaOapg.properties.amount, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, - netAmount: typing.Union[MetaOapg.properties.netAmount, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, - amountUSD: typing.Union[MetaOapg.properties.amountUSD, None, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, - serviceFee: typing.Union[MetaOapg.properties.serviceFee, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, - fee: typing.Union[MetaOapg.properties.fee, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, - networkFee: typing.Union[MetaOapg.properties.networkFee, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'TransactionResponse': - return super().__new__( - cls, - *_args, - id=id, - externalTxId=externalTxId, - status=status, - subStatus=subStatus, - txHash=txHash, - operation=operation, - note=note, - assetId=assetId, - source=source, - sourceAddress=sourceAddress, - tag=tag, - destination=destination, - destinations=destinations, - destinationAddress=destinationAddress, - destinationAddressDescription=destinationAddressDescription, - destinationTag=destinationTag, - contractCallDecodedData=contractCallDecodedData, - amountInfo=amountInfo, - treatAsGrossAmount=treatAsGrossAmount, - feeInfo=feeInfo, - feeCurrency=feeCurrency, - networkRecords=networkRecords, - createdAt=createdAt, - lastUpdated=lastUpdated, - createdBy=createdBy, - signedBy=signedBy, - rejectedBy=rejectedBy, - authorizationInfo=authorizationInfo, - exchangeTxId=exchangeTxId, - customerRefId=customerRefId, - amlScreeningResult=amlScreeningResult, - extraParameters=extraParameters, - signedMessages=signedMessages, - numOfConfirmations=numOfConfirmations, - blockInfo=blockInfo, - index=index, - rewardInfo=rewardInfo, - systemMessages=systemMessages, - addressType=addressType, - requestedAmount=requestedAmount, - amount=amount, - netAmount=netAmount, - amountUSD=amountUSD, - serviceFee=serviceFee, - fee=fee, - networkFee=networkFee, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.aml_screening_result import AmlScreeningResult -from fireblocks_client.model.amount_info import AmountInfo -from fireblocks_client.model.authorization_info import AuthorizationInfo -from fireblocks_client.model.block_info import BlockInfo -from fireblocks_client.model.destination_transfer_peer_path_response import DestinationTransferPeerPathResponse -from fireblocks_client.model.fee_info import FeeInfo -from fireblocks_client.model.get_transaction_operation import GetTransactionOperation -from fireblocks_client.model.network_record import NetworkRecord -from fireblocks_client.model.reward_info import RewardInfo -from fireblocks_client.model.signed_message import SignedMessage -from fireblocks_client.model.source_transfer_peer_path_response import SourceTransferPeerPathResponse -from fireblocks_client.model.system_message_info import SystemMessageInfo -from fireblocks_client.model.transaction_response_destination import TransactionResponseDestination diff --git a/fireblocks_client/model/transaction_response.pyi b/fireblocks_client/model/transaction_response.pyi deleted file mode 100644 index c5f0f137..00000000 --- a/fireblocks_client/model/transaction_response.pyi +++ /dev/null @@ -1,761 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class TransactionResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - id = schemas.StrSchema - externalTxId = schemas.StrSchema - status = schemas.StrSchema - subStatus = schemas.StrSchema - txHash = schemas.StrSchema - - @staticmethod - def operation() -> typing.Type['GetTransactionOperation']: - return GetTransactionOperation - note = schemas.StrSchema - assetId = schemas.StrSchema - - @staticmethod - def source() -> typing.Type['SourceTransferPeerPathResponse']: - return SourceTransferPeerPathResponse - sourceAddress = schemas.StrSchema - tag = schemas.StrSchema - - @staticmethod - def destination() -> typing.Type['DestinationTransferPeerPathResponse']: - return DestinationTransferPeerPathResponse - - - class destinations( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['TransactionResponseDestination']: - return TransactionResponseDestination - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['TransactionResponseDestination'], typing.List['TransactionResponseDestination']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'destinations': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'TransactionResponseDestination': - return super().__getitem__(i) - destinationAddress = schemas.StrSchema - destinationAddressDescription = schemas.StrSchema - destinationTag = schemas.StrSchema - - - class contractCallDecodedData( - schemas.DictSchema - ): - - - class MetaOapg: - - class properties: - contractName = schemas.StrSchema - - - class functionCalls( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.DictSchema - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, dict, frozendict.frozendict, ]], typing.List[typing.Union[MetaOapg.items, dict, frozendict.frozendict, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'functionCalls': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - __annotations__ = { - "contractName": contractName, - "functionCalls": functionCalls, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["contractName"]) -> MetaOapg.properties.contractName: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["functionCalls"]) -> MetaOapg.properties.functionCalls: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["contractName", "functionCalls", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["contractName"]) -> typing.Union[MetaOapg.properties.contractName, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["functionCalls"]) -> typing.Union[MetaOapg.properties.functionCalls, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["contractName", "functionCalls", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - contractName: typing.Union[MetaOapg.properties.contractName, str, schemas.Unset] = schemas.unset, - functionCalls: typing.Union[MetaOapg.properties.functionCalls, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'contractCallDecodedData': - return super().__new__( - cls, - *_args, - contractName=contractName, - functionCalls=functionCalls, - _configuration=_configuration, - **kwargs, - ) - - @staticmethod - def amountInfo() -> typing.Type['AmountInfo']: - return AmountInfo - treatAsGrossAmount = schemas.BoolSchema - - @staticmethod - def feeInfo() -> typing.Type['FeeInfo']: - return FeeInfo - feeCurrency = schemas.StrSchema - - - class networkRecords( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['NetworkRecord']: - return NetworkRecord - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['NetworkRecord'], typing.List['NetworkRecord']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'networkRecords': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'NetworkRecord': - return super().__getitem__(i) - createdAt = schemas.NumberSchema - lastUpdated = schemas.NumberSchema - createdBy = schemas.StrSchema - - - class signedBy( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.StrSchema - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'signedBy': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - rejectedBy = schemas.StrSchema - - @staticmethod - def authorizationInfo() -> typing.Type['AuthorizationInfo']: - return AuthorizationInfo - exchangeTxId = schemas.StrSchema - customerRefId = schemas.StrSchema - - @staticmethod - def amlScreeningResult() -> typing.Type['AmlScreeningResult']: - return AmlScreeningResult - extraParameters = schemas.DictSchema - - @staticmethod - def signedMessages() -> typing.Type['SignedMessage']: - return SignedMessage - numOfConfirmations = schemas.NumberSchema - - @staticmethod - def blockInfo() -> typing.Type['BlockInfo']: - return BlockInfo - index = schemas.NumberSchema - - @staticmethod - def rewardInfo() -> typing.Type['RewardInfo']: - return RewardInfo - - @staticmethod - def systemMessages() -> typing.Type['SystemMessageInfo']: - return SystemMessageInfo - - - class addressType( - schemas.EnumBase, - schemas.StrSchema - ): - - @schemas.classproperty - def WHITELISTED(cls): - return cls("WHITELISTED") - - @schemas.classproperty - def ONE_TIME(cls): - return cls("ONE_TIME") - requestedAmount = schemas.NumberSchema - amount = schemas.NumberSchema - netAmount = schemas.NumberSchema - - - class amountUSD( - schemas.NumberBase, - schemas.NoneBase, - schemas.Schema, - schemas.NoneDecimalMixin - ): - - - def __new__( - cls, - *_args: typing.Union[None, decimal.Decimal, int, float, ], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'amountUSD': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - ) - serviceFee = schemas.NumberSchema - fee = schemas.NumberSchema - networkFee = schemas.NumberSchema - __annotations__ = { - "id": id, - "externalTxId": externalTxId, - "status": status, - "subStatus": subStatus, - "txHash": txHash, - "operation": operation, - "note": note, - "assetId": assetId, - "source": source, - "sourceAddress": sourceAddress, - "tag": tag, - "destination": destination, - "destinations": destinations, - "destinationAddress": destinationAddress, - "destinationAddressDescription": destinationAddressDescription, - "destinationTag": destinationTag, - "contractCallDecodedData": contractCallDecodedData, - "amountInfo": amountInfo, - "treatAsGrossAmount": treatAsGrossAmount, - "feeInfo": feeInfo, - "feeCurrency": feeCurrency, - "networkRecords": networkRecords, - "createdAt": createdAt, - "lastUpdated": lastUpdated, - "createdBy": createdBy, - "signedBy": signedBy, - "rejectedBy": rejectedBy, - "authorizationInfo": authorizationInfo, - "exchangeTxId": exchangeTxId, - "customerRefId": customerRefId, - "amlScreeningResult": amlScreeningResult, - "extraParameters": extraParameters, - "signedMessages": signedMessages, - "numOfConfirmations": numOfConfirmations, - "blockInfo": blockInfo, - "index": index, - "rewardInfo": rewardInfo, - "systemMessages": systemMessages, - "addressType": addressType, - "requestedAmount": requestedAmount, - "amount": amount, - "netAmount": netAmount, - "amountUSD": amountUSD, - "serviceFee": serviceFee, - "fee": fee, - "networkFee": networkFee, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["externalTxId"]) -> MetaOapg.properties.externalTxId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["status"]) -> MetaOapg.properties.status: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["subStatus"]) -> MetaOapg.properties.subStatus: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["txHash"]) -> MetaOapg.properties.txHash: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["operation"]) -> 'GetTransactionOperation': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["note"]) -> MetaOapg.properties.note: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["assetId"]) -> MetaOapg.properties.assetId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["source"]) -> 'SourceTransferPeerPathResponse': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["sourceAddress"]) -> MetaOapg.properties.sourceAddress: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["tag"]) -> MetaOapg.properties.tag: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["destination"]) -> 'DestinationTransferPeerPathResponse': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["destinations"]) -> MetaOapg.properties.destinations: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["destinationAddress"]) -> MetaOapg.properties.destinationAddress: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["destinationAddressDescription"]) -> MetaOapg.properties.destinationAddressDescription: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["destinationTag"]) -> MetaOapg.properties.destinationTag: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["contractCallDecodedData"]) -> MetaOapg.properties.contractCallDecodedData: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["amountInfo"]) -> 'AmountInfo': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["treatAsGrossAmount"]) -> MetaOapg.properties.treatAsGrossAmount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["feeInfo"]) -> 'FeeInfo': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["feeCurrency"]) -> MetaOapg.properties.feeCurrency: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["networkRecords"]) -> MetaOapg.properties.networkRecords: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["createdAt"]) -> MetaOapg.properties.createdAt: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["lastUpdated"]) -> MetaOapg.properties.lastUpdated: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["createdBy"]) -> MetaOapg.properties.createdBy: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["signedBy"]) -> MetaOapg.properties.signedBy: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["rejectedBy"]) -> MetaOapg.properties.rejectedBy: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["authorizationInfo"]) -> 'AuthorizationInfo': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["exchangeTxId"]) -> MetaOapg.properties.exchangeTxId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["customerRefId"]) -> MetaOapg.properties.customerRefId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["amlScreeningResult"]) -> 'AmlScreeningResult': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["extraParameters"]) -> MetaOapg.properties.extraParameters: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["signedMessages"]) -> 'SignedMessage': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["numOfConfirmations"]) -> MetaOapg.properties.numOfConfirmations: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["blockInfo"]) -> 'BlockInfo': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["index"]) -> MetaOapg.properties.index: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["rewardInfo"]) -> 'RewardInfo': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["systemMessages"]) -> 'SystemMessageInfo': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["addressType"]) -> MetaOapg.properties.addressType: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requestedAmount"]) -> MetaOapg.properties.requestedAmount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["amount"]) -> MetaOapg.properties.amount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["netAmount"]) -> MetaOapg.properties.netAmount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["amountUSD"]) -> MetaOapg.properties.amountUSD: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["serviceFee"]) -> MetaOapg.properties.serviceFee: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["fee"]) -> MetaOapg.properties.fee: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["networkFee"]) -> MetaOapg.properties.networkFee: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "externalTxId", "status", "subStatus", "txHash", "operation", "note", "assetId", "source", "sourceAddress", "tag", "destination", "destinations", "destinationAddress", "destinationAddressDescription", "destinationTag", "contractCallDecodedData", "amountInfo", "treatAsGrossAmount", "feeInfo", "feeCurrency", "networkRecords", "createdAt", "lastUpdated", "createdBy", "signedBy", "rejectedBy", "authorizationInfo", "exchangeTxId", "customerRefId", "amlScreeningResult", "extraParameters", "signedMessages", "numOfConfirmations", "blockInfo", "index", "rewardInfo", "systemMessages", "addressType", "requestedAmount", "amount", "netAmount", "amountUSD", "serviceFee", "fee", "networkFee", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["externalTxId"]) -> typing.Union[MetaOapg.properties.externalTxId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> typing.Union[MetaOapg.properties.status, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["subStatus"]) -> typing.Union[MetaOapg.properties.subStatus, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["txHash"]) -> typing.Union[MetaOapg.properties.txHash, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["operation"]) -> typing.Union['GetTransactionOperation', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["note"]) -> typing.Union[MetaOapg.properties.note, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["assetId"]) -> typing.Union[MetaOapg.properties.assetId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["source"]) -> typing.Union['SourceTransferPeerPathResponse', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["sourceAddress"]) -> typing.Union[MetaOapg.properties.sourceAddress, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["tag"]) -> typing.Union[MetaOapg.properties.tag, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["destination"]) -> typing.Union['DestinationTransferPeerPathResponse', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["destinations"]) -> typing.Union[MetaOapg.properties.destinations, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["destinationAddress"]) -> typing.Union[MetaOapg.properties.destinationAddress, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["destinationAddressDescription"]) -> typing.Union[MetaOapg.properties.destinationAddressDescription, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["destinationTag"]) -> typing.Union[MetaOapg.properties.destinationTag, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["contractCallDecodedData"]) -> typing.Union[MetaOapg.properties.contractCallDecodedData, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["amountInfo"]) -> typing.Union['AmountInfo', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["treatAsGrossAmount"]) -> typing.Union[MetaOapg.properties.treatAsGrossAmount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["feeInfo"]) -> typing.Union['FeeInfo', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["feeCurrency"]) -> typing.Union[MetaOapg.properties.feeCurrency, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["networkRecords"]) -> typing.Union[MetaOapg.properties.networkRecords, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["createdAt"]) -> typing.Union[MetaOapg.properties.createdAt, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["lastUpdated"]) -> typing.Union[MetaOapg.properties.lastUpdated, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["createdBy"]) -> typing.Union[MetaOapg.properties.createdBy, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["signedBy"]) -> typing.Union[MetaOapg.properties.signedBy, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["rejectedBy"]) -> typing.Union[MetaOapg.properties.rejectedBy, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["authorizationInfo"]) -> typing.Union['AuthorizationInfo', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["exchangeTxId"]) -> typing.Union[MetaOapg.properties.exchangeTxId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["customerRefId"]) -> typing.Union[MetaOapg.properties.customerRefId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["amlScreeningResult"]) -> typing.Union['AmlScreeningResult', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["extraParameters"]) -> typing.Union[MetaOapg.properties.extraParameters, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["signedMessages"]) -> typing.Union['SignedMessage', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["numOfConfirmations"]) -> typing.Union[MetaOapg.properties.numOfConfirmations, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["blockInfo"]) -> typing.Union['BlockInfo', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["index"]) -> typing.Union[MetaOapg.properties.index, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["rewardInfo"]) -> typing.Union['RewardInfo', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["systemMessages"]) -> typing.Union['SystemMessageInfo', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["addressType"]) -> typing.Union[MetaOapg.properties.addressType, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requestedAmount"]) -> typing.Union[MetaOapg.properties.requestedAmount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["amount"]) -> typing.Union[MetaOapg.properties.amount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["netAmount"]) -> typing.Union[MetaOapg.properties.netAmount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["amountUSD"]) -> typing.Union[MetaOapg.properties.amountUSD, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["serviceFee"]) -> typing.Union[MetaOapg.properties.serviceFee, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["fee"]) -> typing.Union[MetaOapg.properties.fee, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["networkFee"]) -> typing.Union[MetaOapg.properties.networkFee, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "externalTxId", "status", "subStatus", "txHash", "operation", "note", "assetId", "source", "sourceAddress", "tag", "destination", "destinations", "destinationAddress", "destinationAddressDescription", "destinationTag", "contractCallDecodedData", "amountInfo", "treatAsGrossAmount", "feeInfo", "feeCurrency", "networkRecords", "createdAt", "lastUpdated", "createdBy", "signedBy", "rejectedBy", "authorizationInfo", "exchangeTxId", "customerRefId", "amlScreeningResult", "extraParameters", "signedMessages", "numOfConfirmations", "blockInfo", "index", "rewardInfo", "systemMessages", "addressType", "requestedAmount", "amount", "netAmount", "amountUSD", "serviceFee", "fee", "networkFee", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - externalTxId: typing.Union[MetaOapg.properties.externalTxId, str, schemas.Unset] = schemas.unset, - status: typing.Union[MetaOapg.properties.status, str, schemas.Unset] = schemas.unset, - subStatus: typing.Union[MetaOapg.properties.subStatus, str, schemas.Unset] = schemas.unset, - txHash: typing.Union[MetaOapg.properties.txHash, str, schemas.Unset] = schemas.unset, - operation: typing.Union['GetTransactionOperation', schemas.Unset] = schemas.unset, - note: typing.Union[MetaOapg.properties.note, str, schemas.Unset] = schemas.unset, - assetId: typing.Union[MetaOapg.properties.assetId, str, schemas.Unset] = schemas.unset, - source: typing.Union['SourceTransferPeerPathResponse', schemas.Unset] = schemas.unset, - sourceAddress: typing.Union[MetaOapg.properties.sourceAddress, str, schemas.Unset] = schemas.unset, - tag: typing.Union[MetaOapg.properties.tag, str, schemas.Unset] = schemas.unset, - destination: typing.Union['DestinationTransferPeerPathResponse', schemas.Unset] = schemas.unset, - destinations: typing.Union[MetaOapg.properties.destinations, list, tuple, schemas.Unset] = schemas.unset, - destinationAddress: typing.Union[MetaOapg.properties.destinationAddress, str, schemas.Unset] = schemas.unset, - destinationAddressDescription: typing.Union[MetaOapg.properties.destinationAddressDescription, str, schemas.Unset] = schemas.unset, - destinationTag: typing.Union[MetaOapg.properties.destinationTag, str, schemas.Unset] = schemas.unset, - contractCallDecodedData: typing.Union[MetaOapg.properties.contractCallDecodedData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - amountInfo: typing.Union['AmountInfo', schemas.Unset] = schemas.unset, - treatAsGrossAmount: typing.Union[MetaOapg.properties.treatAsGrossAmount, bool, schemas.Unset] = schemas.unset, - feeInfo: typing.Union['FeeInfo', schemas.Unset] = schemas.unset, - feeCurrency: typing.Union[MetaOapg.properties.feeCurrency, str, schemas.Unset] = schemas.unset, - networkRecords: typing.Union[MetaOapg.properties.networkRecords, list, tuple, schemas.Unset] = schemas.unset, - createdAt: typing.Union[MetaOapg.properties.createdAt, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, - lastUpdated: typing.Union[MetaOapg.properties.lastUpdated, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, - createdBy: typing.Union[MetaOapg.properties.createdBy, str, schemas.Unset] = schemas.unset, - signedBy: typing.Union[MetaOapg.properties.signedBy, list, tuple, schemas.Unset] = schemas.unset, - rejectedBy: typing.Union[MetaOapg.properties.rejectedBy, str, schemas.Unset] = schemas.unset, - authorizationInfo: typing.Union['AuthorizationInfo', schemas.Unset] = schemas.unset, - exchangeTxId: typing.Union[MetaOapg.properties.exchangeTxId, str, schemas.Unset] = schemas.unset, - customerRefId: typing.Union[MetaOapg.properties.customerRefId, str, schemas.Unset] = schemas.unset, - amlScreeningResult: typing.Union['AmlScreeningResult', schemas.Unset] = schemas.unset, - extraParameters: typing.Union[MetaOapg.properties.extraParameters, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - signedMessages: typing.Union['SignedMessage', schemas.Unset] = schemas.unset, - numOfConfirmations: typing.Union[MetaOapg.properties.numOfConfirmations, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, - blockInfo: typing.Union['BlockInfo', schemas.Unset] = schemas.unset, - index: typing.Union[MetaOapg.properties.index, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, - rewardInfo: typing.Union['RewardInfo', schemas.Unset] = schemas.unset, - systemMessages: typing.Union['SystemMessageInfo', schemas.Unset] = schemas.unset, - addressType: typing.Union[MetaOapg.properties.addressType, str, schemas.Unset] = schemas.unset, - requestedAmount: typing.Union[MetaOapg.properties.requestedAmount, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, - amount: typing.Union[MetaOapg.properties.amount, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, - netAmount: typing.Union[MetaOapg.properties.netAmount, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, - amountUSD: typing.Union[MetaOapg.properties.amountUSD, None, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, - serviceFee: typing.Union[MetaOapg.properties.serviceFee, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, - fee: typing.Union[MetaOapg.properties.fee, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, - networkFee: typing.Union[MetaOapg.properties.networkFee, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'TransactionResponse': - return super().__new__( - cls, - *_args, - id=id, - externalTxId=externalTxId, - status=status, - subStatus=subStatus, - txHash=txHash, - operation=operation, - note=note, - assetId=assetId, - source=source, - sourceAddress=sourceAddress, - tag=tag, - destination=destination, - destinations=destinations, - destinationAddress=destinationAddress, - destinationAddressDescription=destinationAddressDescription, - destinationTag=destinationTag, - contractCallDecodedData=contractCallDecodedData, - amountInfo=amountInfo, - treatAsGrossAmount=treatAsGrossAmount, - feeInfo=feeInfo, - feeCurrency=feeCurrency, - networkRecords=networkRecords, - createdAt=createdAt, - lastUpdated=lastUpdated, - createdBy=createdBy, - signedBy=signedBy, - rejectedBy=rejectedBy, - authorizationInfo=authorizationInfo, - exchangeTxId=exchangeTxId, - customerRefId=customerRefId, - amlScreeningResult=amlScreeningResult, - extraParameters=extraParameters, - signedMessages=signedMessages, - numOfConfirmations=numOfConfirmations, - blockInfo=blockInfo, - index=index, - rewardInfo=rewardInfo, - systemMessages=systemMessages, - addressType=addressType, - requestedAmount=requestedAmount, - amount=amount, - netAmount=netAmount, - amountUSD=amountUSD, - serviceFee=serviceFee, - fee=fee, - networkFee=networkFee, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.aml_screening_result import AmlScreeningResult -from fireblocks_client.model.amount_info import AmountInfo -from fireblocks_client.model.authorization_info import AuthorizationInfo -from fireblocks_client.model.block_info import BlockInfo -from fireblocks_client.model.destination_transfer_peer_path_response import DestinationTransferPeerPathResponse -from fireblocks_client.model.fee_info import FeeInfo -from fireblocks_client.model.get_transaction_operation import GetTransactionOperation -from fireblocks_client.model.network_record import NetworkRecord -from fireblocks_client.model.reward_info import RewardInfo -from fireblocks_client.model.signed_message import SignedMessage -from fireblocks_client.model.source_transfer_peer_path_response import SourceTransferPeerPathResponse -from fireblocks_client.model.system_message_info import SystemMessageInfo -from fireblocks_client.model.transaction_response_destination import TransactionResponseDestination diff --git a/fireblocks_client/model/transaction_response_destination.py b/fireblocks_client/model/transaction_response_destination.py deleted file mode 100644 index 36d1beb2..00000000 --- a/fireblocks_client/model/transaction_response_destination.py +++ /dev/null @@ -1,152 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class TransactionResponseDestination( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - destinationAddress = schemas.AnyTypeSchema - destinationAddressDescription = schemas.AnyTypeSchema - amount = schemas.StrSchema - amountUSD = schemas.StrSchema - - @staticmethod - def amlScreeningResult() -> typing.Type['AmlScreeningResult']: - return AmlScreeningResult - - @staticmethod - def destination() -> typing.Type['DestinationTransferPeerPathResponse']: - return DestinationTransferPeerPathResponse - - @staticmethod - def authorizationInfo() -> typing.Type['AuthorizationInfo']: - return AuthorizationInfo - __annotations__ = { - "destinationAddress": destinationAddress, - "destinationAddressDescription": destinationAddressDescription, - "amount": amount, - "amountUSD": amountUSD, - "amlScreeningResult": amlScreeningResult, - "destination": destination, - "authorizationInfo": authorizationInfo, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["destinationAddress"]) -> MetaOapg.properties.destinationAddress: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["destinationAddressDescription"]) -> MetaOapg.properties.destinationAddressDescription: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["amount"]) -> MetaOapg.properties.amount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["amountUSD"]) -> MetaOapg.properties.amountUSD: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["amlScreeningResult"]) -> 'AmlScreeningResult': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["destination"]) -> 'DestinationTransferPeerPathResponse': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["authorizationInfo"]) -> 'AuthorizationInfo': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["destinationAddress", "destinationAddressDescription", "amount", "amountUSD", "amlScreeningResult", "destination", "authorizationInfo", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["destinationAddress"]) -> typing.Union[MetaOapg.properties.destinationAddress, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["destinationAddressDescription"]) -> typing.Union[MetaOapg.properties.destinationAddressDescription, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["amount"]) -> typing.Union[MetaOapg.properties.amount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["amountUSD"]) -> typing.Union[MetaOapg.properties.amountUSD, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["amlScreeningResult"]) -> typing.Union['AmlScreeningResult', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["destination"]) -> typing.Union['DestinationTransferPeerPathResponse', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["authorizationInfo"]) -> typing.Union['AuthorizationInfo', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["destinationAddress", "destinationAddressDescription", "amount", "amountUSD", "amlScreeningResult", "destination", "authorizationInfo", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - destinationAddress: typing.Union[MetaOapg.properties.destinationAddress, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - destinationAddressDescription: typing.Union[MetaOapg.properties.destinationAddressDescription, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - amount: typing.Union[MetaOapg.properties.amount, str, schemas.Unset] = schemas.unset, - amountUSD: typing.Union[MetaOapg.properties.amountUSD, str, schemas.Unset] = schemas.unset, - amlScreeningResult: typing.Union['AmlScreeningResult', schemas.Unset] = schemas.unset, - destination: typing.Union['DestinationTransferPeerPathResponse', schemas.Unset] = schemas.unset, - authorizationInfo: typing.Union['AuthorizationInfo', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'TransactionResponseDestination': - return super().__new__( - cls, - *_args, - destinationAddress=destinationAddress, - destinationAddressDescription=destinationAddressDescription, - amount=amount, - amountUSD=amountUSD, - amlScreeningResult=amlScreeningResult, - destination=destination, - authorizationInfo=authorizationInfo, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.aml_screening_result import AmlScreeningResult -from fireblocks_client.model.authorization_info import AuthorizationInfo -from fireblocks_client.model.destination_transfer_peer_path_response import DestinationTransferPeerPathResponse diff --git a/fireblocks_client/model/transaction_response_destination.pyi b/fireblocks_client/model/transaction_response_destination.pyi deleted file mode 100644 index 36d1beb2..00000000 --- a/fireblocks_client/model/transaction_response_destination.pyi +++ /dev/null @@ -1,152 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class TransactionResponseDestination( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - destinationAddress = schemas.AnyTypeSchema - destinationAddressDescription = schemas.AnyTypeSchema - amount = schemas.StrSchema - amountUSD = schemas.StrSchema - - @staticmethod - def amlScreeningResult() -> typing.Type['AmlScreeningResult']: - return AmlScreeningResult - - @staticmethod - def destination() -> typing.Type['DestinationTransferPeerPathResponse']: - return DestinationTransferPeerPathResponse - - @staticmethod - def authorizationInfo() -> typing.Type['AuthorizationInfo']: - return AuthorizationInfo - __annotations__ = { - "destinationAddress": destinationAddress, - "destinationAddressDescription": destinationAddressDescription, - "amount": amount, - "amountUSD": amountUSD, - "amlScreeningResult": amlScreeningResult, - "destination": destination, - "authorizationInfo": authorizationInfo, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["destinationAddress"]) -> MetaOapg.properties.destinationAddress: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["destinationAddressDescription"]) -> MetaOapg.properties.destinationAddressDescription: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["amount"]) -> MetaOapg.properties.amount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["amountUSD"]) -> MetaOapg.properties.amountUSD: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["amlScreeningResult"]) -> 'AmlScreeningResult': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["destination"]) -> 'DestinationTransferPeerPathResponse': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["authorizationInfo"]) -> 'AuthorizationInfo': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["destinationAddress", "destinationAddressDescription", "amount", "amountUSD", "amlScreeningResult", "destination", "authorizationInfo", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["destinationAddress"]) -> typing.Union[MetaOapg.properties.destinationAddress, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["destinationAddressDescription"]) -> typing.Union[MetaOapg.properties.destinationAddressDescription, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["amount"]) -> typing.Union[MetaOapg.properties.amount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["amountUSD"]) -> typing.Union[MetaOapg.properties.amountUSD, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["amlScreeningResult"]) -> typing.Union['AmlScreeningResult', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["destination"]) -> typing.Union['DestinationTransferPeerPathResponse', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["authorizationInfo"]) -> typing.Union['AuthorizationInfo', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["destinationAddress", "destinationAddressDescription", "amount", "amountUSD", "amlScreeningResult", "destination", "authorizationInfo", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - destinationAddress: typing.Union[MetaOapg.properties.destinationAddress, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - destinationAddressDescription: typing.Union[MetaOapg.properties.destinationAddressDescription, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - amount: typing.Union[MetaOapg.properties.amount, str, schemas.Unset] = schemas.unset, - amountUSD: typing.Union[MetaOapg.properties.amountUSD, str, schemas.Unset] = schemas.unset, - amlScreeningResult: typing.Union['AmlScreeningResult', schemas.Unset] = schemas.unset, - destination: typing.Union['DestinationTransferPeerPathResponse', schemas.Unset] = schemas.unset, - authorizationInfo: typing.Union['AuthorizationInfo', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'TransactionResponseDestination': - return super().__new__( - cls, - *_args, - destinationAddress=destinationAddress, - destinationAddressDescription=destinationAddressDescription, - amount=amount, - amountUSD=amountUSD, - amlScreeningResult=amlScreeningResult, - destination=destination, - authorizationInfo=authorizationInfo, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.aml_screening_result import AmlScreeningResult -from fireblocks_client.model.authorization_info import AuthorizationInfo -from fireblocks_client.model.destination_transfer_peer_path_response import DestinationTransferPeerPathResponse diff --git a/fireblocks_client/model/transfer_peer_path.py b/fireblocks_client/model/transfer_peer_path.py deleted file mode 100644 index 34e765ab..00000000 --- a/fireblocks_client/model/transfer_peer_path.py +++ /dev/null @@ -1,359 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class TransferPeerPath( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "type", - } - - class properties: - - - class type( - schemas.EnumBase, - schemas.StrSchema - ): - - - class MetaOapg: - enum_value_to_name = { - "VAULT_ACCOUNT": "VAULT_ACCOUNT", - "EXCHANGE_ACCOUNT": "EXCHANGE_ACCOUNT", - "INTERNAL_WALLET": "INTERNAL_WALLET", - "EXTERNAL_WALLET": "EXTERNAL_WALLET", - "NETWORK_CONNECTION": "NETWORK_CONNECTION", - "FIAT_ACCOUNT": "FIAT_ACCOUNT", - "COMPOUND": "COMPOUND", - "GAS_STATION": "GAS_STATION", - "ONE_TIME_ADDRESS": "ONE_TIME_ADDRESS", - "UNKNOWN": "UNKNOWN", - "END_USER_WALLET": "END_USER_WALLET", - } - - @schemas.classproperty - def VAULT_ACCOUNT(cls): - return cls("VAULT_ACCOUNT") - - @schemas.classproperty - def EXCHANGE_ACCOUNT(cls): - return cls("EXCHANGE_ACCOUNT") - - @schemas.classproperty - def INTERNAL_WALLET(cls): - return cls("INTERNAL_WALLET") - - @schemas.classproperty - def EXTERNAL_WALLET(cls): - return cls("EXTERNAL_WALLET") - - @schemas.classproperty - def NETWORK_CONNECTION(cls): - return cls("NETWORK_CONNECTION") - - @schemas.classproperty - def FIAT_ACCOUNT(cls): - return cls("FIAT_ACCOUNT") - - @schemas.classproperty - def COMPOUND(cls): - return cls("COMPOUND") - - @schemas.classproperty - def GAS_STATION(cls): - return cls("GAS_STATION") - - @schemas.classproperty - def ONE_TIME_ADDRESS(cls): - return cls("ONE_TIME_ADDRESS") - - @schemas.classproperty - def UNKNOWN(cls): - return cls("UNKNOWN") - - @schemas.classproperty - def END_USER_WALLET(cls): - return cls("END_USER_WALLET") - - - class subType( - schemas.EnumBase, - schemas.StrSchema - ): - - - class MetaOapg: - enum_value_to_name = { - "BINANCE": "BINANCE", - "BINANCEUS": "BINANCEUS", - "BITFINEX": "BITFINEX", - "BITHUMB": "BITHUMB", - "BITMEX": "BITMEX", - "BITSO": "BITSO", - "BITSTAMP": "BITSTAMP", - "BITTREX": "BITTREX", - "BLINC": "BLINC", - "BYBIT": "BYBIT", - "CIRCLE": "CIRCLE", - "COINBASEEXCHANGE": "COINBASEEXCHANGE", - "COINBASEPRO": "COINBASEPRO", - "COINMETRO": "COINMETRO", - "COINSPRO": "COINSPRO", - "CRYPTOCOM": "CRYPTOCOM", - "DERIBIT": "DERIBIT", - "GEMINI": "GEMINI", - "HITBTC": "HITBTC", - "HUOBI": "HUOBI", - "INDEPENDENTRESERVE": "INDEPENDENTRESERVE", - "KORBIT": "KORBIT", - "KRAKEN": "KRAKEN", - "KRAKENINTL": "KRAKENINTL", - "KUCOIN": "KUCOIN", - "LIQUID": "LIQUID", - "OKCOIN": "OKCOIN", - "OKEX": "OKEX", - "PAXOS": "PAXOS", - "POLONIEX": "POLONIEX", - "External": "EXTERNAL", - "Internal": "INTERNAL", - } - - @schemas.classproperty - def BINANCE(cls): - return cls("BINANCE") - - @schemas.classproperty - def BINANCEUS(cls): - return cls("BINANCEUS") - - @schemas.classproperty - def BITFINEX(cls): - return cls("BITFINEX") - - @schemas.classproperty - def BITHUMB(cls): - return cls("BITHUMB") - - @schemas.classproperty - def BITMEX(cls): - return cls("BITMEX") - - @schemas.classproperty - def BITSO(cls): - return cls("BITSO") - - @schemas.classproperty - def BITSTAMP(cls): - return cls("BITSTAMP") - - @schemas.classproperty - def BITTREX(cls): - return cls("BITTREX") - - @schemas.classproperty - def BLINC(cls): - return cls("BLINC") - - @schemas.classproperty - def BYBIT(cls): - return cls("BYBIT") - - @schemas.classproperty - def CIRCLE(cls): - return cls("CIRCLE") - - @schemas.classproperty - def COINBASEEXCHANGE(cls): - return cls("COINBASEEXCHANGE") - - @schemas.classproperty - def COINBASEPRO(cls): - return cls("COINBASEPRO") - - @schemas.classproperty - def COINMETRO(cls): - return cls("COINMETRO") - - @schemas.classproperty - def COINSPRO(cls): - return cls("COINSPRO") - - @schemas.classproperty - def CRYPTOCOM(cls): - return cls("CRYPTOCOM") - - @schemas.classproperty - def DERIBIT(cls): - return cls("DERIBIT") - - @schemas.classproperty - def GEMINI(cls): - return cls("GEMINI") - - @schemas.classproperty - def HITBTC(cls): - return cls("HITBTC") - - @schemas.classproperty - def HUOBI(cls): - return cls("HUOBI") - - @schemas.classproperty - def INDEPENDENTRESERVE(cls): - return cls("INDEPENDENTRESERVE") - - @schemas.classproperty - def KORBIT(cls): - return cls("KORBIT") - - @schemas.classproperty - def KRAKEN(cls): - return cls("KRAKEN") - - @schemas.classproperty - def KRAKENINTL(cls): - return cls("KRAKENINTL") - - @schemas.classproperty - def KUCOIN(cls): - return cls("KUCOIN") - - @schemas.classproperty - def LIQUID(cls): - return cls("LIQUID") - - @schemas.classproperty - def OKCOIN(cls): - return cls("OKCOIN") - - @schemas.classproperty - def OKEX(cls): - return cls("OKEX") - - @schemas.classproperty - def PAXOS(cls): - return cls("PAXOS") - - @schemas.classproperty - def POLONIEX(cls): - return cls("POLONIEX") - - @schemas.classproperty - def EXTERNAL(cls): - return cls("External") - - @schemas.classproperty - def INTERNAL(cls): - return cls("Internal") - id = schemas.StrSchema - name = schemas.StrSchema - walletId = schemas.UUIDSchema - __annotations__ = { - "type": type, - "subType": subType, - "id": id, - "name": name, - "walletId": walletId, - } - - type: MetaOapg.properties.type - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["subType"]) -> MetaOapg.properties.subType: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["walletId"]) -> MetaOapg.properties.walletId: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["type", "subType", "id", "name", "walletId", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["subType"]) -> typing.Union[MetaOapg.properties.subType, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["walletId"]) -> typing.Union[MetaOapg.properties.walletId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["type", "subType", "id", "name", "walletId", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - type: typing.Union[MetaOapg.properties.type, str, ], - subType: typing.Union[MetaOapg.properties.subType, str, schemas.Unset] = schemas.unset, - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, - walletId: typing.Union[MetaOapg.properties.walletId, str, uuid.UUID, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'TransferPeerPath': - return super().__new__( - cls, - *_args, - type=type, - subType=subType, - id=id, - name=name, - walletId=walletId, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/transfer_peer_path.pyi b/fireblocks_client/model/transfer_peer_path.pyi deleted file mode 100644 index 5aaeeca4..00000000 --- a/fireblocks_client/model/transfer_peer_path.pyi +++ /dev/null @@ -1,306 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class TransferPeerPath( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "type", - } - - class properties: - - - class type( - schemas.EnumBase, - schemas.StrSchema - ): - - @schemas.classproperty - def VAULT_ACCOUNT(cls): - return cls("VAULT_ACCOUNT") - - @schemas.classproperty - def EXCHANGE_ACCOUNT(cls): - return cls("EXCHANGE_ACCOUNT") - - @schemas.classproperty - def INTERNAL_WALLET(cls): - return cls("INTERNAL_WALLET") - - @schemas.classproperty - def EXTERNAL_WALLET(cls): - return cls("EXTERNAL_WALLET") - - @schemas.classproperty - def NETWORK_CONNECTION(cls): - return cls("NETWORK_CONNECTION") - - @schemas.classproperty - def FIAT_ACCOUNT(cls): - return cls("FIAT_ACCOUNT") - - @schemas.classproperty - def COMPOUND(cls): - return cls("COMPOUND") - - @schemas.classproperty - def GAS_STATION(cls): - return cls("GAS_STATION") - - @schemas.classproperty - def ONE_TIME_ADDRESS(cls): - return cls("ONE_TIME_ADDRESS") - - @schemas.classproperty - def UNKNOWN(cls): - return cls("UNKNOWN") - - @schemas.classproperty - def END_USER_WALLET(cls): - return cls("END_USER_WALLET") - - - class subType( - schemas.EnumBase, - schemas.StrSchema - ): - - @schemas.classproperty - def BINANCE(cls): - return cls("BINANCE") - - @schemas.classproperty - def BINANCEUS(cls): - return cls("BINANCEUS") - - @schemas.classproperty - def BITFINEX(cls): - return cls("BITFINEX") - - @schemas.classproperty - def BITHUMB(cls): - return cls("BITHUMB") - - @schemas.classproperty - def BITMEX(cls): - return cls("BITMEX") - - @schemas.classproperty - def BITSO(cls): - return cls("BITSO") - - @schemas.classproperty - def BITSTAMP(cls): - return cls("BITSTAMP") - - @schemas.classproperty - def BITTREX(cls): - return cls("BITTREX") - - @schemas.classproperty - def BLINC(cls): - return cls("BLINC") - - @schemas.classproperty - def BYBIT(cls): - return cls("BYBIT") - - @schemas.classproperty - def CIRCLE(cls): - return cls("CIRCLE") - - @schemas.classproperty - def COINBASEEXCHANGE(cls): - return cls("COINBASEEXCHANGE") - - @schemas.classproperty - def COINBASEPRO(cls): - return cls("COINBASEPRO") - - @schemas.classproperty - def COINMETRO(cls): - return cls("COINMETRO") - - @schemas.classproperty - def COINSPRO(cls): - return cls("COINSPRO") - - @schemas.classproperty - def CRYPTOCOM(cls): - return cls("CRYPTOCOM") - - @schemas.classproperty - def DERIBIT(cls): - return cls("DERIBIT") - - @schemas.classproperty - def GEMINI(cls): - return cls("GEMINI") - - @schemas.classproperty - def HITBTC(cls): - return cls("HITBTC") - - @schemas.classproperty - def HUOBI(cls): - return cls("HUOBI") - - @schemas.classproperty - def INDEPENDENTRESERVE(cls): - return cls("INDEPENDENTRESERVE") - - @schemas.classproperty - def KORBIT(cls): - return cls("KORBIT") - - @schemas.classproperty - def KRAKEN(cls): - return cls("KRAKEN") - - @schemas.classproperty - def KRAKENINTL(cls): - return cls("KRAKENINTL") - - @schemas.classproperty - def KUCOIN(cls): - return cls("KUCOIN") - - @schemas.classproperty - def LIQUID(cls): - return cls("LIQUID") - - @schemas.classproperty - def OKCOIN(cls): - return cls("OKCOIN") - - @schemas.classproperty - def OKEX(cls): - return cls("OKEX") - - @schemas.classproperty - def PAXOS(cls): - return cls("PAXOS") - - @schemas.classproperty - def POLONIEX(cls): - return cls("POLONIEX") - - @schemas.classproperty - def EXTERNAL(cls): - return cls("External") - - @schemas.classproperty - def INTERNAL(cls): - return cls("Internal") - id = schemas.StrSchema - name = schemas.StrSchema - walletId = schemas.UUIDSchema - __annotations__ = { - "type": type, - "subType": subType, - "id": id, - "name": name, - "walletId": walletId, - } - - type: MetaOapg.properties.type - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["subType"]) -> MetaOapg.properties.subType: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["walletId"]) -> MetaOapg.properties.walletId: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["type", "subType", "id", "name", "walletId", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["subType"]) -> typing.Union[MetaOapg.properties.subType, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["walletId"]) -> typing.Union[MetaOapg.properties.walletId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["type", "subType", "id", "name", "walletId", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - type: typing.Union[MetaOapg.properties.type, str, ], - subType: typing.Union[MetaOapg.properties.subType, str, schemas.Unset] = schemas.unset, - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, - walletId: typing.Union[MetaOapg.properties.walletId, str, uuid.UUID, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'TransferPeerPath': - return super().__new__( - cls, - *_args, - type=type, - subType=subType, - id=id, - name=name, - walletId=walletId, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/travel_rule_address.py b/fireblocks_client/model/travel_rule_address.py deleted file mode 100644 index 232f1da8..00000000 --- a/fireblocks_client/model/travel_rule_address.py +++ /dev/null @@ -1,120 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class TravelRuleAddress( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "city", - "street", - "postalCode", - "state", - } - - class properties: - street = schemas.StrSchema - city = schemas.StrSchema - state = schemas.StrSchema - postalCode = schemas.StrSchema - __annotations__ = { - "street": street, - "city": city, - "state": state, - "postalCode": postalCode, - } - - city: MetaOapg.properties.city - street: MetaOapg.properties.street - postalCode: MetaOapg.properties.postalCode - state: MetaOapg.properties.state - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["street"]) -> MetaOapg.properties.street: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["city"]) -> MetaOapg.properties.city: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["state"]) -> MetaOapg.properties.state: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["postalCode"]) -> MetaOapg.properties.postalCode: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["street", "city", "state", "postalCode", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["street"]) -> MetaOapg.properties.street: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["city"]) -> MetaOapg.properties.city: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["state"]) -> MetaOapg.properties.state: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["postalCode"]) -> MetaOapg.properties.postalCode: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["street", "city", "state", "postalCode", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - city: typing.Union[MetaOapg.properties.city, str, ], - street: typing.Union[MetaOapg.properties.street, str, ], - postalCode: typing.Union[MetaOapg.properties.postalCode, str, ], - state: typing.Union[MetaOapg.properties.state, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'TravelRuleAddress': - return super().__new__( - cls, - *_args, - city=city, - street=street, - postalCode=postalCode, - state=state, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/travel_rule_address.pyi b/fireblocks_client/model/travel_rule_address.pyi deleted file mode 100644 index 232f1da8..00000000 --- a/fireblocks_client/model/travel_rule_address.pyi +++ /dev/null @@ -1,120 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class TravelRuleAddress( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "city", - "street", - "postalCode", - "state", - } - - class properties: - street = schemas.StrSchema - city = schemas.StrSchema - state = schemas.StrSchema - postalCode = schemas.StrSchema - __annotations__ = { - "street": street, - "city": city, - "state": state, - "postalCode": postalCode, - } - - city: MetaOapg.properties.city - street: MetaOapg.properties.street - postalCode: MetaOapg.properties.postalCode - state: MetaOapg.properties.state - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["street"]) -> MetaOapg.properties.street: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["city"]) -> MetaOapg.properties.city: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["state"]) -> MetaOapg.properties.state: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["postalCode"]) -> MetaOapg.properties.postalCode: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["street", "city", "state", "postalCode", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["street"]) -> MetaOapg.properties.street: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["city"]) -> MetaOapg.properties.city: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["state"]) -> MetaOapg.properties.state: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["postalCode"]) -> MetaOapg.properties.postalCode: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["street", "city", "state", "postalCode", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - city: typing.Union[MetaOapg.properties.city, str, ], - street: typing.Union[MetaOapg.properties.street, str, ], - postalCode: typing.Union[MetaOapg.properties.postalCode, str, ], - state: typing.Union[MetaOapg.properties.state, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'TravelRuleAddress': - return super().__new__( - cls, - *_args, - city=city, - street=street, - postalCode=postalCode, - state=state, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/travel_rule_get_all_vasps_response.py b/fireblocks_client/model/travel_rule_get_all_vasps_response.py deleted file mode 100644 index f2b0e6b5..00000000 --- a/fireblocks_client/model/travel_rule_get_all_vasps_response.py +++ /dev/null @@ -1,111 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class TravelRuleGetAllVASPsResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "vasps", - } - - class properties: - - - class vasps( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['TravelRuleVASP']: - return TravelRuleVASP - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['TravelRuleVASP'], typing.List['TravelRuleVASP']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'vasps': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'TravelRuleVASP': - return super().__getitem__(i) - __annotations__ = { - "vasps": vasps, - } - - vasps: MetaOapg.properties.vasps - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["vasps"]) -> MetaOapg.properties.vasps: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["vasps", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["vasps"]) -> MetaOapg.properties.vasps: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["vasps", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - vasps: typing.Union[MetaOapg.properties.vasps, list, tuple, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'TravelRuleGetAllVASPsResponse': - return super().__new__( - cls, - *_args, - vasps=vasps, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.travel_rule_vasp import TravelRuleVASP diff --git a/fireblocks_client/model/travel_rule_get_all_vasps_response.pyi b/fireblocks_client/model/travel_rule_get_all_vasps_response.pyi deleted file mode 100644 index f2b0e6b5..00000000 --- a/fireblocks_client/model/travel_rule_get_all_vasps_response.pyi +++ /dev/null @@ -1,111 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class TravelRuleGetAllVASPsResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "vasps", - } - - class properties: - - - class vasps( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['TravelRuleVASP']: - return TravelRuleVASP - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['TravelRuleVASP'], typing.List['TravelRuleVASP']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'vasps': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'TravelRuleVASP': - return super().__getitem__(i) - __annotations__ = { - "vasps": vasps, - } - - vasps: MetaOapg.properties.vasps - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["vasps"]) -> MetaOapg.properties.vasps: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["vasps", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["vasps"]) -> MetaOapg.properties.vasps: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["vasps", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - vasps: typing.Union[MetaOapg.properties.vasps, list, tuple, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'TravelRuleGetAllVASPsResponse': - return super().__new__( - cls, - *_args, - vasps=vasps, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.travel_rule_vasp import TravelRuleVASP diff --git a/fireblocks_client/model/travel_rule_issuer.py b/fireblocks_client/model/travel_rule_issuer.py deleted file mode 100644 index 7f08e64a..00000000 --- a/fireblocks_client/model/travel_rule_issuer.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class TravelRuleIssuer( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "issuerDid", - } - - class properties: - issuerDid = schemas.StrSchema - __annotations__ = { - "issuerDid": issuerDid, - } - - issuerDid: MetaOapg.properties.issuerDid - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["issuerDid"]) -> MetaOapg.properties.issuerDid: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["issuerDid", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["issuerDid"]) -> MetaOapg.properties.issuerDid: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["issuerDid", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - issuerDid: typing.Union[MetaOapg.properties.issuerDid, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'TravelRuleIssuer': - return super().__new__( - cls, - *_args, - issuerDid=issuerDid, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/travel_rule_issuer.pyi b/fireblocks_client/model/travel_rule_issuer.pyi deleted file mode 100644 index 7f08e64a..00000000 --- a/fireblocks_client/model/travel_rule_issuer.pyi +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class TravelRuleIssuer( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "issuerDid", - } - - class properties: - issuerDid = schemas.StrSchema - __annotations__ = { - "issuerDid": issuerDid, - } - - issuerDid: MetaOapg.properties.issuerDid - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["issuerDid"]) -> MetaOapg.properties.issuerDid: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["issuerDid", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["issuerDid"]) -> MetaOapg.properties.issuerDid: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["issuerDid", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - issuerDid: typing.Union[MetaOapg.properties.issuerDid, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'TravelRuleIssuer': - return super().__new__( - cls, - *_args, - issuerDid=issuerDid, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/travel_rule_issuers.py b/fireblocks_client/model/travel_rule_issuers.py deleted file mode 100644 index 71319637..00000000 --- a/fireblocks_client/model/travel_rule_issuers.py +++ /dev/null @@ -1,284 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class TravelRuleIssuers( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "country", - "website", - "city", - "isRegulated", - "description", - "businessNumber", - "yearFounded", - "legalName", - "legalStructure", - "regulatoryAuthorities", - "name", - "addressLine1", - "logo", - "incorporationCountry", - } - - class properties: - - @staticmethod - def yearFounded() -> typing.Type['TravelRuleIssuer']: - return TravelRuleIssuer - - @staticmethod - def isRegulated() -> typing.Type['TravelRuleIssuer']: - return TravelRuleIssuer - - @staticmethod - def regulatoryAuthorities() -> typing.Type['TravelRuleIssuer']: - return TravelRuleIssuer - - @staticmethod - def name() -> typing.Type['TravelRuleIssuer']: - return TravelRuleIssuer - - @staticmethod - def logo() -> typing.Type['TravelRuleIssuer']: - return TravelRuleIssuer - - @staticmethod - def website() -> typing.Type['TravelRuleIssuer']: - return TravelRuleIssuer - - @staticmethod - def legalName() -> typing.Type['TravelRuleIssuer']: - return TravelRuleIssuer - - @staticmethod - def legalStructure() -> typing.Type['TravelRuleIssuer']: - return TravelRuleIssuer - - @staticmethod - def incorporationCountry() -> typing.Type['TravelRuleIssuer']: - return TravelRuleIssuer - - @staticmethod - def businessNumber() -> typing.Type['TravelRuleIssuer']: - return TravelRuleIssuer - - @staticmethod - def addressLine1() -> typing.Type['TravelRuleIssuer']: - return TravelRuleIssuer - - @staticmethod - def city() -> typing.Type['TravelRuleIssuer']: - return TravelRuleIssuer - - @staticmethod - def country() -> typing.Type['TravelRuleIssuer']: - return TravelRuleIssuer - - @staticmethod - def description() -> typing.Type['TravelRuleIssuer']: - return TravelRuleIssuer - __annotations__ = { - "yearFounded": yearFounded, - "isRegulated": isRegulated, - "regulatoryAuthorities": regulatoryAuthorities, - "name": name, - "logo": logo, - "website": website, - "legalName": legalName, - "legalStructure": legalStructure, - "incorporationCountry": incorporationCountry, - "businessNumber": businessNumber, - "addressLine1": addressLine1, - "city": city, - "country": country, - "description": description, - } - - country: 'TravelRuleIssuer' - website: 'TravelRuleIssuer' - city: 'TravelRuleIssuer' - isRegulated: 'TravelRuleIssuer' - description: 'TravelRuleIssuer' - businessNumber: 'TravelRuleIssuer' - yearFounded: 'TravelRuleIssuer' - legalName: 'TravelRuleIssuer' - legalStructure: 'TravelRuleIssuer' - regulatoryAuthorities: 'TravelRuleIssuer' - name: 'TravelRuleIssuer' - addressLine1: 'TravelRuleIssuer' - logo: 'TravelRuleIssuer' - incorporationCountry: 'TravelRuleIssuer' - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["yearFounded"]) -> 'TravelRuleIssuer': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["isRegulated"]) -> 'TravelRuleIssuer': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["regulatoryAuthorities"]) -> 'TravelRuleIssuer': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> 'TravelRuleIssuer': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["logo"]) -> 'TravelRuleIssuer': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["website"]) -> 'TravelRuleIssuer': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["legalName"]) -> 'TravelRuleIssuer': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["legalStructure"]) -> 'TravelRuleIssuer': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["incorporationCountry"]) -> 'TravelRuleIssuer': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["businessNumber"]) -> 'TravelRuleIssuer': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["addressLine1"]) -> 'TravelRuleIssuer': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["city"]) -> 'TravelRuleIssuer': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["country"]) -> 'TravelRuleIssuer': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["description"]) -> 'TravelRuleIssuer': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["yearFounded", "isRegulated", "regulatoryAuthorities", "name", "logo", "website", "legalName", "legalStructure", "incorporationCountry", "businessNumber", "addressLine1", "city", "country", "description", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["yearFounded"]) -> 'TravelRuleIssuer': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["isRegulated"]) -> 'TravelRuleIssuer': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["regulatoryAuthorities"]) -> 'TravelRuleIssuer': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> 'TravelRuleIssuer': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["logo"]) -> 'TravelRuleIssuer': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["website"]) -> 'TravelRuleIssuer': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["legalName"]) -> 'TravelRuleIssuer': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["legalStructure"]) -> 'TravelRuleIssuer': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["incorporationCountry"]) -> 'TravelRuleIssuer': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["businessNumber"]) -> 'TravelRuleIssuer': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["addressLine1"]) -> 'TravelRuleIssuer': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["city"]) -> 'TravelRuleIssuer': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["country"]) -> 'TravelRuleIssuer': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["description"]) -> 'TravelRuleIssuer': ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["yearFounded", "isRegulated", "regulatoryAuthorities", "name", "logo", "website", "legalName", "legalStructure", "incorporationCountry", "businessNumber", "addressLine1", "city", "country", "description", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - country: 'TravelRuleIssuer', - website: 'TravelRuleIssuer', - city: 'TravelRuleIssuer', - isRegulated: 'TravelRuleIssuer', - description: 'TravelRuleIssuer', - businessNumber: 'TravelRuleIssuer', - yearFounded: 'TravelRuleIssuer', - legalName: 'TravelRuleIssuer', - legalStructure: 'TravelRuleIssuer', - regulatoryAuthorities: 'TravelRuleIssuer', - name: 'TravelRuleIssuer', - addressLine1: 'TravelRuleIssuer', - logo: 'TravelRuleIssuer', - incorporationCountry: 'TravelRuleIssuer', - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'TravelRuleIssuers': - return super().__new__( - cls, - *_args, - country=country, - website=website, - city=city, - isRegulated=isRegulated, - description=description, - businessNumber=businessNumber, - yearFounded=yearFounded, - legalName=legalName, - legalStructure=legalStructure, - regulatoryAuthorities=regulatoryAuthorities, - name=name, - addressLine1=addressLine1, - logo=logo, - incorporationCountry=incorporationCountry, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.travel_rule_issuer import TravelRuleIssuer diff --git a/fireblocks_client/model/travel_rule_issuers.pyi b/fireblocks_client/model/travel_rule_issuers.pyi deleted file mode 100644 index 71319637..00000000 --- a/fireblocks_client/model/travel_rule_issuers.pyi +++ /dev/null @@ -1,284 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class TravelRuleIssuers( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "country", - "website", - "city", - "isRegulated", - "description", - "businessNumber", - "yearFounded", - "legalName", - "legalStructure", - "regulatoryAuthorities", - "name", - "addressLine1", - "logo", - "incorporationCountry", - } - - class properties: - - @staticmethod - def yearFounded() -> typing.Type['TravelRuleIssuer']: - return TravelRuleIssuer - - @staticmethod - def isRegulated() -> typing.Type['TravelRuleIssuer']: - return TravelRuleIssuer - - @staticmethod - def regulatoryAuthorities() -> typing.Type['TravelRuleIssuer']: - return TravelRuleIssuer - - @staticmethod - def name() -> typing.Type['TravelRuleIssuer']: - return TravelRuleIssuer - - @staticmethod - def logo() -> typing.Type['TravelRuleIssuer']: - return TravelRuleIssuer - - @staticmethod - def website() -> typing.Type['TravelRuleIssuer']: - return TravelRuleIssuer - - @staticmethod - def legalName() -> typing.Type['TravelRuleIssuer']: - return TravelRuleIssuer - - @staticmethod - def legalStructure() -> typing.Type['TravelRuleIssuer']: - return TravelRuleIssuer - - @staticmethod - def incorporationCountry() -> typing.Type['TravelRuleIssuer']: - return TravelRuleIssuer - - @staticmethod - def businessNumber() -> typing.Type['TravelRuleIssuer']: - return TravelRuleIssuer - - @staticmethod - def addressLine1() -> typing.Type['TravelRuleIssuer']: - return TravelRuleIssuer - - @staticmethod - def city() -> typing.Type['TravelRuleIssuer']: - return TravelRuleIssuer - - @staticmethod - def country() -> typing.Type['TravelRuleIssuer']: - return TravelRuleIssuer - - @staticmethod - def description() -> typing.Type['TravelRuleIssuer']: - return TravelRuleIssuer - __annotations__ = { - "yearFounded": yearFounded, - "isRegulated": isRegulated, - "regulatoryAuthorities": regulatoryAuthorities, - "name": name, - "logo": logo, - "website": website, - "legalName": legalName, - "legalStructure": legalStructure, - "incorporationCountry": incorporationCountry, - "businessNumber": businessNumber, - "addressLine1": addressLine1, - "city": city, - "country": country, - "description": description, - } - - country: 'TravelRuleIssuer' - website: 'TravelRuleIssuer' - city: 'TravelRuleIssuer' - isRegulated: 'TravelRuleIssuer' - description: 'TravelRuleIssuer' - businessNumber: 'TravelRuleIssuer' - yearFounded: 'TravelRuleIssuer' - legalName: 'TravelRuleIssuer' - legalStructure: 'TravelRuleIssuer' - regulatoryAuthorities: 'TravelRuleIssuer' - name: 'TravelRuleIssuer' - addressLine1: 'TravelRuleIssuer' - logo: 'TravelRuleIssuer' - incorporationCountry: 'TravelRuleIssuer' - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["yearFounded"]) -> 'TravelRuleIssuer': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["isRegulated"]) -> 'TravelRuleIssuer': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["regulatoryAuthorities"]) -> 'TravelRuleIssuer': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> 'TravelRuleIssuer': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["logo"]) -> 'TravelRuleIssuer': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["website"]) -> 'TravelRuleIssuer': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["legalName"]) -> 'TravelRuleIssuer': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["legalStructure"]) -> 'TravelRuleIssuer': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["incorporationCountry"]) -> 'TravelRuleIssuer': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["businessNumber"]) -> 'TravelRuleIssuer': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["addressLine1"]) -> 'TravelRuleIssuer': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["city"]) -> 'TravelRuleIssuer': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["country"]) -> 'TravelRuleIssuer': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["description"]) -> 'TravelRuleIssuer': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["yearFounded", "isRegulated", "regulatoryAuthorities", "name", "logo", "website", "legalName", "legalStructure", "incorporationCountry", "businessNumber", "addressLine1", "city", "country", "description", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["yearFounded"]) -> 'TravelRuleIssuer': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["isRegulated"]) -> 'TravelRuleIssuer': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["regulatoryAuthorities"]) -> 'TravelRuleIssuer': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> 'TravelRuleIssuer': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["logo"]) -> 'TravelRuleIssuer': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["website"]) -> 'TravelRuleIssuer': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["legalName"]) -> 'TravelRuleIssuer': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["legalStructure"]) -> 'TravelRuleIssuer': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["incorporationCountry"]) -> 'TravelRuleIssuer': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["businessNumber"]) -> 'TravelRuleIssuer': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["addressLine1"]) -> 'TravelRuleIssuer': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["city"]) -> 'TravelRuleIssuer': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["country"]) -> 'TravelRuleIssuer': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["description"]) -> 'TravelRuleIssuer': ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["yearFounded", "isRegulated", "regulatoryAuthorities", "name", "logo", "website", "legalName", "legalStructure", "incorporationCountry", "businessNumber", "addressLine1", "city", "country", "description", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - country: 'TravelRuleIssuer', - website: 'TravelRuleIssuer', - city: 'TravelRuleIssuer', - isRegulated: 'TravelRuleIssuer', - description: 'TravelRuleIssuer', - businessNumber: 'TravelRuleIssuer', - yearFounded: 'TravelRuleIssuer', - legalName: 'TravelRuleIssuer', - legalStructure: 'TravelRuleIssuer', - regulatoryAuthorities: 'TravelRuleIssuer', - name: 'TravelRuleIssuer', - addressLine1: 'TravelRuleIssuer', - logo: 'TravelRuleIssuer', - incorporationCountry: 'TravelRuleIssuer', - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'TravelRuleIssuers': - return super().__new__( - cls, - *_args, - country=country, - website=website, - city=city, - isRegulated=isRegulated, - description=description, - businessNumber=businessNumber, - yearFounded=yearFounded, - legalName=legalName, - legalStructure=legalStructure, - regulatoryAuthorities=regulatoryAuthorities, - name=name, - addressLine1=addressLine1, - logo=logo, - incorporationCountry=incorporationCountry, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.travel_rule_issuer import TravelRuleIssuer diff --git a/fireblocks_client/model/travel_rule_ownership_proof.py b/fireblocks_client/model/travel_rule_ownership_proof.py deleted file mode 100644 index a3ba2087..00000000 --- a/fireblocks_client/model/travel_rule_ownership_proof.py +++ /dev/null @@ -1,144 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class TravelRuleOwnershipProof( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "country", - "name", - "id", - "issueDate", - "type", - "issuer", - } - - class properties: - type = schemas.StrSchema - id = schemas.StrSchema - name = schemas.StrSchema - country = schemas.StrSchema - issueDate = schemas.StrSchema - issuer = schemas.StrSchema - __annotations__ = { - "type": type, - "id": id, - "name": name, - "country": country, - "issueDate": issueDate, - "issuer": issuer, - } - - country: MetaOapg.properties.country - name: MetaOapg.properties.name - id: MetaOapg.properties.id - issueDate: MetaOapg.properties.issueDate - type: MetaOapg.properties.type - issuer: MetaOapg.properties.issuer - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["country"]) -> MetaOapg.properties.country: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["issueDate"]) -> MetaOapg.properties.issueDate: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["issuer"]) -> MetaOapg.properties.issuer: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["type", "id", "name", "country", "issueDate", "issuer", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["country"]) -> MetaOapg.properties.country: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["issueDate"]) -> MetaOapg.properties.issueDate: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["issuer"]) -> MetaOapg.properties.issuer: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["type", "id", "name", "country", "issueDate", "issuer", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - country: typing.Union[MetaOapg.properties.country, str, ], - name: typing.Union[MetaOapg.properties.name, str, ], - id: typing.Union[MetaOapg.properties.id, str, ], - issueDate: typing.Union[MetaOapg.properties.issueDate, str, ], - type: typing.Union[MetaOapg.properties.type, str, ], - issuer: typing.Union[MetaOapg.properties.issuer, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'TravelRuleOwnershipProof': - return super().__new__( - cls, - *_args, - country=country, - name=name, - id=id, - issueDate=issueDate, - type=type, - issuer=issuer, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/travel_rule_ownership_proof.pyi b/fireblocks_client/model/travel_rule_ownership_proof.pyi deleted file mode 100644 index a3ba2087..00000000 --- a/fireblocks_client/model/travel_rule_ownership_proof.pyi +++ /dev/null @@ -1,144 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class TravelRuleOwnershipProof( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "country", - "name", - "id", - "issueDate", - "type", - "issuer", - } - - class properties: - type = schemas.StrSchema - id = schemas.StrSchema - name = schemas.StrSchema - country = schemas.StrSchema - issueDate = schemas.StrSchema - issuer = schemas.StrSchema - __annotations__ = { - "type": type, - "id": id, - "name": name, - "country": country, - "issueDate": issueDate, - "issuer": issuer, - } - - country: MetaOapg.properties.country - name: MetaOapg.properties.name - id: MetaOapg.properties.id - issueDate: MetaOapg.properties.issueDate - type: MetaOapg.properties.type - issuer: MetaOapg.properties.issuer - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["country"]) -> MetaOapg.properties.country: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["issueDate"]) -> MetaOapg.properties.issueDate: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["issuer"]) -> MetaOapg.properties.issuer: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["type", "id", "name", "country", "issueDate", "issuer", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["country"]) -> MetaOapg.properties.country: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["issueDate"]) -> MetaOapg.properties.issueDate: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["issuer"]) -> MetaOapg.properties.issuer: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["type", "id", "name", "country", "issueDate", "issuer", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - country: typing.Union[MetaOapg.properties.country, str, ], - name: typing.Union[MetaOapg.properties.name, str, ], - id: typing.Union[MetaOapg.properties.id, str, ], - issueDate: typing.Union[MetaOapg.properties.issueDate, str, ], - type: typing.Union[MetaOapg.properties.type, str, ], - issuer: typing.Union[MetaOapg.properties.issuer, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'TravelRuleOwnershipProof': - return super().__new__( - cls, - *_args, - country=country, - name=name, - id=id, - issueDate=issueDate, - type=type, - issuer=issuer, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/travel_rule_pii_ivms.py b/fireblocks_client/model/travel_rule_pii_ivms.py deleted file mode 100644 index ae95e3fc..00000000 --- a/fireblocks_client/model/travel_rule_pii_ivms.py +++ /dev/null @@ -1,180 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class TravelRulePiiIVMS( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "placeOfBirth", - "address", - "nationality", - "fullName", - "identificationNumber", - "dateOfBirth", - "countryOfResidence", - "customerNumber", - "taxIdentificationNumber", - } - - class properties: - fullName = schemas.StrSchema - dateOfBirth = schemas.StrSchema - placeOfBirth = schemas.StrSchema - address = schemas.StrSchema - identificationNumber = schemas.StrSchema - nationality = schemas.StrSchema - countryOfResidence = schemas.StrSchema - taxIdentificationNumber = schemas.StrSchema - customerNumber = schemas.StrSchema - __annotations__ = { - "fullName": fullName, - "dateOfBirth": dateOfBirth, - "placeOfBirth": placeOfBirth, - "address": address, - "identificationNumber": identificationNumber, - "nationality": nationality, - "countryOfResidence": countryOfResidence, - "taxIdentificationNumber": taxIdentificationNumber, - "customerNumber": customerNumber, - } - - placeOfBirth: MetaOapg.properties.placeOfBirth - address: MetaOapg.properties.address - nationality: MetaOapg.properties.nationality - fullName: MetaOapg.properties.fullName - identificationNumber: MetaOapg.properties.identificationNumber - dateOfBirth: MetaOapg.properties.dateOfBirth - countryOfResidence: MetaOapg.properties.countryOfResidence - customerNumber: MetaOapg.properties.customerNumber - taxIdentificationNumber: MetaOapg.properties.taxIdentificationNumber - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["fullName"]) -> MetaOapg.properties.fullName: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["dateOfBirth"]) -> MetaOapg.properties.dateOfBirth: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["placeOfBirth"]) -> MetaOapg.properties.placeOfBirth: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["address"]) -> MetaOapg.properties.address: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["identificationNumber"]) -> MetaOapg.properties.identificationNumber: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["nationality"]) -> MetaOapg.properties.nationality: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["countryOfResidence"]) -> MetaOapg.properties.countryOfResidence: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["taxIdentificationNumber"]) -> MetaOapg.properties.taxIdentificationNumber: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["customerNumber"]) -> MetaOapg.properties.customerNumber: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["fullName", "dateOfBirth", "placeOfBirth", "address", "identificationNumber", "nationality", "countryOfResidence", "taxIdentificationNumber", "customerNumber", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["fullName"]) -> MetaOapg.properties.fullName: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["dateOfBirth"]) -> MetaOapg.properties.dateOfBirth: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["placeOfBirth"]) -> MetaOapg.properties.placeOfBirth: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["address"]) -> MetaOapg.properties.address: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["identificationNumber"]) -> MetaOapg.properties.identificationNumber: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["nationality"]) -> MetaOapg.properties.nationality: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["countryOfResidence"]) -> MetaOapg.properties.countryOfResidence: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["taxIdentificationNumber"]) -> MetaOapg.properties.taxIdentificationNumber: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["customerNumber"]) -> MetaOapg.properties.customerNumber: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["fullName", "dateOfBirth", "placeOfBirth", "address", "identificationNumber", "nationality", "countryOfResidence", "taxIdentificationNumber", "customerNumber", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - placeOfBirth: typing.Union[MetaOapg.properties.placeOfBirth, str, ], - address: typing.Union[MetaOapg.properties.address, str, ], - nationality: typing.Union[MetaOapg.properties.nationality, str, ], - fullName: typing.Union[MetaOapg.properties.fullName, str, ], - identificationNumber: typing.Union[MetaOapg.properties.identificationNumber, str, ], - dateOfBirth: typing.Union[MetaOapg.properties.dateOfBirth, str, ], - countryOfResidence: typing.Union[MetaOapg.properties.countryOfResidence, str, ], - customerNumber: typing.Union[MetaOapg.properties.customerNumber, str, ], - taxIdentificationNumber: typing.Union[MetaOapg.properties.taxIdentificationNumber, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'TravelRulePiiIVMS': - return super().__new__( - cls, - *_args, - placeOfBirth=placeOfBirth, - address=address, - nationality=nationality, - fullName=fullName, - identificationNumber=identificationNumber, - dateOfBirth=dateOfBirth, - countryOfResidence=countryOfResidence, - customerNumber=customerNumber, - taxIdentificationNumber=taxIdentificationNumber, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/travel_rule_pii_ivms.pyi b/fireblocks_client/model/travel_rule_pii_ivms.pyi deleted file mode 100644 index ae95e3fc..00000000 --- a/fireblocks_client/model/travel_rule_pii_ivms.pyi +++ /dev/null @@ -1,180 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class TravelRulePiiIVMS( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "placeOfBirth", - "address", - "nationality", - "fullName", - "identificationNumber", - "dateOfBirth", - "countryOfResidence", - "customerNumber", - "taxIdentificationNumber", - } - - class properties: - fullName = schemas.StrSchema - dateOfBirth = schemas.StrSchema - placeOfBirth = schemas.StrSchema - address = schemas.StrSchema - identificationNumber = schemas.StrSchema - nationality = schemas.StrSchema - countryOfResidence = schemas.StrSchema - taxIdentificationNumber = schemas.StrSchema - customerNumber = schemas.StrSchema - __annotations__ = { - "fullName": fullName, - "dateOfBirth": dateOfBirth, - "placeOfBirth": placeOfBirth, - "address": address, - "identificationNumber": identificationNumber, - "nationality": nationality, - "countryOfResidence": countryOfResidence, - "taxIdentificationNumber": taxIdentificationNumber, - "customerNumber": customerNumber, - } - - placeOfBirth: MetaOapg.properties.placeOfBirth - address: MetaOapg.properties.address - nationality: MetaOapg.properties.nationality - fullName: MetaOapg.properties.fullName - identificationNumber: MetaOapg.properties.identificationNumber - dateOfBirth: MetaOapg.properties.dateOfBirth - countryOfResidence: MetaOapg.properties.countryOfResidence - customerNumber: MetaOapg.properties.customerNumber - taxIdentificationNumber: MetaOapg.properties.taxIdentificationNumber - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["fullName"]) -> MetaOapg.properties.fullName: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["dateOfBirth"]) -> MetaOapg.properties.dateOfBirth: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["placeOfBirth"]) -> MetaOapg.properties.placeOfBirth: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["address"]) -> MetaOapg.properties.address: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["identificationNumber"]) -> MetaOapg.properties.identificationNumber: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["nationality"]) -> MetaOapg.properties.nationality: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["countryOfResidence"]) -> MetaOapg.properties.countryOfResidence: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["taxIdentificationNumber"]) -> MetaOapg.properties.taxIdentificationNumber: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["customerNumber"]) -> MetaOapg.properties.customerNumber: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["fullName", "dateOfBirth", "placeOfBirth", "address", "identificationNumber", "nationality", "countryOfResidence", "taxIdentificationNumber", "customerNumber", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["fullName"]) -> MetaOapg.properties.fullName: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["dateOfBirth"]) -> MetaOapg.properties.dateOfBirth: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["placeOfBirth"]) -> MetaOapg.properties.placeOfBirth: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["address"]) -> MetaOapg.properties.address: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["identificationNumber"]) -> MetaOapg.properties.identificationNumber: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["nationality"]) -> MetaOapg.properties.nationality: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["countryOfResidence"]) -> MetaOapg.properties.countryOfResidence: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["taxIdentificationNumber"]) -> MetaOapg.properties.taxIdentificationNumber: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["customerNumber"]) -> MetaOapg.properties.customerNumber: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["fullName", "dateOfBirth", "placeOfBirth", "address", "identificationNumber", "nationality", "countryOfResidence", "taxIdentificationNumber", "customerNumber", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - placeOfBirth: typing.Union[MetaOapg.properties.placeOfBirth, str, ], - address: typing.Union[MetaOapg.properties.address, str, ], - nationality: typing.Union[MetaOapg.properties.nationality, str, ], - fullName: typing.Union[MetaOapg.properties.fullName, str, ], - identificationNumber: typing.Union[MetaOapg.properties.identificationNumber, str, ], - dateOfBirth: typing.Union[MetaOapg.properties.dateOfBirth, str, ], - countryOfResidence: typing.Union[MetaOapg.properties.countryOfResidence, str, ], - customerNumber: typing.Union[MetaOapg.properties.customerNumber, str, ], - taxIdentificationNumber: typing.Union[MetaOapg.properties.taxIdentificationNumber, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'TravelRulePiiIVMS': - return super().__new__( - cls, - *_args, - placeOfBirth=placeOfBirth, - address=address, - nationality=nationality, - fullName=fullName, - identificationNumber=identificationNumber, - dateOfBirth=dateOfBirth, - countryOfResidence=countryOfResidence, - customerNumber=customerNumber, - taxIdentificationNumber=taxIdentificationNumber, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/travel_rule_transaction_blockchain_info.py b/fireblocks_client/model/travel_rule_transaction_blockchain_info.py deleted file mode 100644 index f568f41b..00000000 --- a/fireblocks_client/model/travel_rule_transaction_blockchain_info.py +++ /dev/null @@ -1,108 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class TravelRuleTransactionBlockchainInfo( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "origin", - "destination", - "txHash", - } - - class properties: - txHash = schemas.StrSchema - origin = schemas.StrSchema - destination = schemas.StrSchema - __annotations__ = { - "txHash": txHash, - "origin": origin, - "destination": destination, - } - - origin: MetaOapg.properties.origin - destination: MetaOapg.properties.destination - txHash: MetaOapg.properties.txHash - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["txHash"]) -> MetaOapg.properties.txHash: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["origin"]) -> MetaOapg.properties.origin: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["destination"]) -> MetaOapg.properties.destination: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["txHash", "origin", "destination", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["txHash"]) -> MetaOapg.properties.txHash: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["origin"]) -> MetaOapg.properties.origin: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["destination"]) -> MetaOapg.properties.destination: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["txHash", "origin", "destination", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - origin: typing.Union[MetaOapg.properties.origin, str, ], - destination: typing.Union[MetaOapg.properties.destination, str, ], - txHash: typing.Union[MetaOapg.properties.txHash, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'TravelRuleTransactionBlockchainInfo': - return super().__new__( - cls, - *_args, - origin=origin, - destination=destination, - txHash=txHash, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/travel_rule_transaction_blockchain_info.pyi b/fireblocks_client/model/travel_rule_transaction_blockchain_info.pyi deleted file mode 100644 index f568f41b..00000000 --- a/fireblocks_client/model/travel_rule_transaction_blockchain_info.pyi +++ /dev/null @@ -1,108 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class TravelRuleTransactionBlockchainInfo( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "origin", - "destination", - "txHash", - } - - class properties: - txHash = schemas.StrSchema - origin = schemas.StrSchema - destination = schemas.StrSchema - __annotations__ = { - "txHash": txHash, - "origin": origin, - "destination": destination, - } - - origin: MetaOapg.properties.origin - destination: MetaOapg.properties.destination - txHash: MetaOapg.properties.txHash - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["txHash"]) -> MetaOapg.properties.txHash: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["origin"]) -> MetaOapg.properties.origin: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["destination"]) -> MetaOapg.properties.destination: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["txHash", "origin", "destination", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["txHash"]) -> MetaOapg.properties.txHash: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["origin"]) -> MetaOapg.properties.origin: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["destination"]) -> MetaOapg.properties.destination: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["txHash", "origin", "destination", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - origin: typing.Union[MetaOapg.properties.origin, str, ], - destination: typing.Union[MetaOapg.properties.destination, str, ], - txHash: typing.Union[MetaOapg.properties.txHash, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'TravelRuleTransactionBlockchainInfo': - return super().__new__( - cls, - *_args, - origin=origin, - destination=destination, - txHash=txHash, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/travel_rule_update_vasp_details.py b/fireblocks_client/model/travel_rule_update_vasp_details.py deleted file mode 100644 index aafdc743..00000000 --- a/fireblocks_client/model/travel_rule_update_vasp_details.py +++ /dev/null @@ -1,96 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class TravelRuleUpdateVASPDetails( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "pii_didkey", - "did", - } - - class properties: - did = schemas.StrSchema - pii_didkey = schemas.StrSchema - __annotations__ = { - "did": did, - "pii_didkey": pii_didkey, - } - - pii_didkey: MetaOapg.properties.pii_didkey - did: MetaOapg.properties.did - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["did"]) -> MetaOapg.properties.did: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["pii_didkey"]) -> MetaOapg.properties.pii_didkey: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["did", "pii_didkey", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["did"]) -> MetaOapg.properties.did: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["pii_didkey"]) -> MetaOapg.properties.pii_didkey: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["did", "pii_didkey", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - pii_didkey: typing.Union[MetaOapg.properties.pii_didkey, str, ], - did: typing.Union[MetaOapg.properties.did, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'TravelRuleUpdateVASPDetails': - return super().__new__( - cls, - *_args, - pii_didkey=pii_didkey, - did=did, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/travel_rule_update_vasp_details.pyi b/fireblocks_client/model/travel_rule_update_vasp_details.pyi deleted file mode 100644 index aafdc743..00000000 --- a/fireblocks_client/model/travel_rule_update_vasp_details.pyi +++ /dev/null @@ -1,96 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class TravelRuleUpdateVASPDetails( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "pii_didkey", - "did", - } - - class properties: - did = schemas.StrSchema - pii_didkey = schemas.StrSchema - __annotations__ = { - "did": did, - "pii_didkey": pii_didkey, - } - - pii_didkey: MetaOapg.properties.pii_didkey - did: MetaOapg.properties.did - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["did"]) -> MetaOapg.properties.did: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["pii_didkey"]) -> MetaOapg.properties.pii_didkey: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["did", "pii_didkey", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["did"]) -> MetaOapg.properties.did: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["pii_didkey"]) -> MetaOapg.properties.pii_didkey: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["did", "pii_didkey", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - pii_didkey: typing.Union[MetaOapg.properties.pii_didkey, str, ], - did: typing.Union[MetaOapg.properties.did, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'TravelRuleUpdateVASPDetails': - return super().__new__( - cls, - *_args, - pii_didkey=pii_didkey, - did=did, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/travel_rule_validate_full_transaction_request.py b/fireblocks_client/model/travel_rule_validate_full_transaction_request.py deleted file mode 100644 index f89f44da..00000000 --- a/fireblocks_client/model/travel_rule_validate_full_transaction_request.py +++ /dev/null @@ -1,502 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class TravelRuleValidateFullTransactionRequest( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "originatorProof", - "transactionAsset", - "originator", - "notificationEmail", - "beneficiaryVASPname", - "pii", - "protocol", - "skipBeneficiaryDataValidation", - "beneficiary", - "encrypted", - "originatorDid", - "transactionAmount", - "travelRuleBehavior", - "transactionBlockchainInfo", - "beneficiaryProof", - "beneficiaryDid", - "originatorVASPdid", - "beneficiaryVASPdid", - } - - class properties: - transactionAsset = schemas.StrSchema - transactionAmount = schemas.StrSchema - originatorDid = schemas.StrSchema - beneficiaryDid = schemas.StrSchema - originatorVASPdid = schemas.StrSchema - beneficiaryVASPdid = schemas.StrSchema - beneficiaryVASPname = schemas.StrSchema - - - class transactionBlockchainInfo( - schemas.ComposedSchema, - ): - - - class MetaOapg: - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - TravelRuleTransactionBlockchainInfo, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'transactionBlockchainInfo': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - - - class originator( - schemas.ComposedSchema, - ): - - - class MetaOapg: - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - TravelRulePiiIVMS, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'originator': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - - - class beneficiary( - schemas.ComposedSchema, - ): - - - class MetaOapg: - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - TravelRulePiiIVMS, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'beneficiary': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - encrypted = schemas.StrSchema - protocol = schemas.StrSchema - notificationEmail = schemas.StrSchema - skipBeneficiaryDataValidation = schemas.BoolSchema - travelRuleBehavior = schemas.BoolSchema - - - class originatorProof( - schemas.ComposedSchema, - ): - - - class MetaOapg: - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - TravelRuleOwnershipProof, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'originatorProof': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - - - class beneficiaryProof( - schemas.ComposedSchema, - ): - - - class MetaOapg: - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - TravelRuleOwnershipProof, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'beneficiaryProof': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - - - class pii( - schemas.ComposedSchema, - ): - - - class MetaOapg: - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - TravelRulePiiIVMS, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'pii': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - __annotations__ = { - "transactionAsset": transactionAsset, - "transactionAmount": transactionAmount, - "originatorDid": originatorDid, - "beneficiaryDid": beneficiaryDid, - "originatorVASPdid": originatorVASPdid, - "beneficiaryVASPdid": beneficiaryVASPdid, - "beneficiaryVASPname": beneficiaryVASPname, - "transactionBlockchainInfo": transactionBlockchainInfo, - "originator": originator, - "beneficiary": beneficiary, - "encrypted": encrypted, - "protocol": protocol, - "notificationEmail": notificationEmail, - "skipBeneficiaryDataValidation": skipBeneficiaryDataValidation, - "travelRuleBehavior": travelRuleBehavior, - "originatorProof": originatorProof, - "beneficiaryProof": beneficiaryProof, - "pii": pii, - } - - originatorProof: MetaOapg.properties.originatorProof - transactionAsset: MetaOapg.properties.transactionAsset - originator: MetaOapg.properties.originator - notificationEmail: MetaOapg.properties.notificationEmail - beneficiaryVASPname: MetaOapg.properties.beneficiaryVASPname - pii: MetaOapg.properties.pii - protocol: MetaOapg.properties.protocol - skipBeneficiaryDataValidation: MetaOapg.properties.skipBeneficiaryDataValidation - beneficiary: MetaOapg.properties.beneficiary - encrypted: MetaOapg.properties.encrypted - originatorDid: MetaOapg.properties.originatorDid - transactionAmount: MetaOapg.properties.transactionAmount - travelRuleBehavior: MetaOapg.properties.travelRuleBehavior - transactionBlockchainInfo: MetaOapg.properties.transactionBlockchainInfo - beneficiaryProof: MetaOapg.properties.beneficiaryProof - beneficiaryDid: MetaOapg.properties.beneficiaryDid - originatorVASPdid: MetaOapg.properties.originatorVASPdid - beneficiaryVASPdid: MetaOapg.properties.beneficiaryVASPdid - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["transactionAsset"]) -> MetaOapg.properties.transactionAsset: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["transactionAmount"]) -> MetaOapg.properties.transactionAmount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["originatorDid"]) -> MetaOapg.properties.originatorDid: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["beneficiaryDid"]) -> MetaOapg.properties.beneficiaryDid: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["originatorVASPdid"]) -> MetaOapg.properties.originatorVASPdid: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["beneficiaryVASPdid"]) -> MetaOapg.properties.beneficiaryVASPdid: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["beneficiaryVASPname"]) -> MetaOapg.properties.beneficiaryVASPname: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["transactionBlockchainInfo"]) -> MetaOapg.properties.transactionBlockchainInfo: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["originator"]) -> MetaOapg.properties.originator: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["beneficiary"]) -> MetaOapg.properties.beneficiary: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["encrypted"]) -> MetaOapg.properties.encrypted: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["protocol"]) -> MetaOapg.properties.protocol: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["notificationEmail"]) -> MetaOapg.properties.notificationEmail: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["skipBeneficiaryDataValidation"]) -> MetaOapg.properties.skipBeneficiaryDataValidation: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["travelRuleBehavior"]) -> MetaOapg.properties.travelRuleBehavior: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["originatorProof"]) -> MetaOapg.properties.originatorProof: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["beneficiaryProof"]) -> MetaOapg.properties.beneficiaryProof: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["pii"]) -> MetaOapg.properties.pii: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["transactionAsset", "transactionAmount", "originatorDid", "beneficiaryDid", "originatorVASPdid", "beneficiaryVASPdid", "beneficiaryVASPname", "transactionBlockchainInfo", "originator", "beneficiary", "encrypted", "protocol", "notificationEmail", "skipBeneficiaryDataValidation", "travelRuleBehavior", "originatorProof", "beneficiaryProof", "pii", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["transactionAsset"]) -> MetaOapg.properties.transactionAsset: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["transactionAmount"]) -> MetaOapg.properties.transactionAmount: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["originatorDid"]) -> MetaOapg.properties.originatorDid: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["beneficiaryDid"]) -> MetaOapg.properties.beneficiaryDid: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["originatorVASPdid"]) -> MetaOapg.properties.originatorVASPdid: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["beneficiaryVASPdid"]) -> MetaOapg.properties.beneficiaryVASPdid: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["beneficiaryVASPname"]) -> MetaOapg.properties.beneficiaryVASPname: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["transactionBlockchainInfo"]) -> MetaOapg.properties.transactionBlockchainInfo: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["originator"]) -> MetaOapg.properties.originator: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["beneficiary"]) -> MetaOapg.properties.beneficiary: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["encrypted"]) -> MetaOapg.properties.encrypted: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["protocol"]) -> MetaOapg.properties.protocol: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["notificationEmail"]) -> MetaOapg.properties.notificationEmail: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["skipBeneficiaryDataValidation"]) -> MetaOapg.properties.skipBeneficiaryDataValidation: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["travelRuleBehavior"]) -> MetaOapg.properties.travelRuleBehavior: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["originatorProof"]) -> MetaOapg.properties.originatorProof: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["beneficiaryProof"]) -> MetaOapg.properties.beneficiaryProof: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["pii"]) -> MetaOapg.properties.pii: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["transactionAsset", "transactionAmount", "originatorDid", "beneficiaryDid", "originatorVASPdid", "beneficiaryVASPdid", "beneficiaryVASPname", "transactionBlockchainInfo", "originator", "beneficiary", "encrypted", "protocol", "notificationEmail", "skipBeneficiaryDataValidation", "travelRuleBehavior", "originatorProof", "beneficiaryProof", "pii", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - originatorProof: typing.Union[MetaOapg.properties.originatorProof, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - transactionAsset: typing.Union[MetaOapg.properties.transactionAsset, str, ], - originator: typing.Union[MetaOapg.properties.originator, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - notificationEmail: typing.Union[MetaOapg.properties.notificationEmail, str, ], - beneficiaryVASPname: typing.Union[MetaOapg.properties.beneficiaryVASPname, str, ], - pii: typing.Union[MetaOapg.properties.pii, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - protocol: typing.Union[MetaOapg.properties.protocol, str, ], - skipBeneficiaryDataValidation: typing.Union[MetaOapg.properties.skipBeneficiaryDataValidation, bool, ], - beneficiary: typing.Union[MetaOapg.properties.beneficiary, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - encrypted: typing.Union[MetaOapg.properties.encrypted, str, ], - originatorDid: typing.Union[MetaOapg.properties.originatorDid, str, ], - transactionAmount: typing.Union[MetaOapg.properties.transactionAmount, str, ], - travelRuleBehavior: typing.Union[MetaOapg.properties.travelRuleBehavior, bool, ], - transactionBlockchainInfo: typing.Union[MetaOapg.properties.transactionBlockchainInfo, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - beneficiaryProof: typing.Union[MetaOapg.properties.beneficiaryProof, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - beneficiaryDid: typing.Union[MetaOapg.properties.beneficiaryDid, str, ], - originatorVASPdid: typing.Union[MetaOapg.properties.originatorVASPdid, str, ], - beneficiaryVASPdid: typing.Union[MetaOapg.properties.beneficiaryVASPdid, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'TravelRuleValidateFullTransactionRequest': - return super().__new__( - cls, - *_args, - originatorProof=originatorProof, - transactionAsset=transactionAsset, - originator=originator, - notificationEmail=notificationEmail, - beneficiaryVASPname=beneficiaryVASPname, - pii=pii, - protocol=protocol, - skipBeneficiaryDataValidation=skipBeneficiaryDataValidation, - beneficiary=beneficiary, - encrypted=encrypted, - originatorDid=originatorDid, - transactionAmount=transactionAmount, - travelRuleBehavior=travelRuleBehavior, - transactionBlockchainInfo=transactionBlockchainInfo, - beneficiaryProof=beneficiaryProof, - beneficiaryDid=beneficiaryDid, - originatorVASPdid=originatorVASPdid, - beneficiaryVASPdid=beneficiaryVASPdid, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.travel_rule_ownership_proof import TravelRuleOwnershipProof -from fireblocks_client.model.travel_rule_pii_ivms import TravelRulePiiIVMS -from fireblocks_client.model.travel_rule_transaction_blockchain_info import TravelRuleTransactionBlockchainInfo diff --git a/fireblocks_client/model/travel_rule_validate_full_transaction_request.pyi b/fireblocks_client/model/travel_rule_validate_full_transaction_request.pyi deleted file mode 100644 index f89f44da..00000000 --- a/fireblocks_client/model/travel_rule_validate_full_transaction_request.pyi +++ /dev/null @@ -1,502 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class TravelRuleValidateFullTransactionRequest( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "originatorProof", - "transactionAsset", - "originator", - "notificationEmail", - "beneficiaryVASPname", - "pii", - "protocol", - "skipBeneficiaryDataValidation", - "beneficiary", - "encrypted", - "originatorDid", - "transactionAmount", - "travelRuleBehavior", - "transactionBlockchainInfo", - "beneficiaryProof", - "beneficiaryDid", - "originatorVASPdid", - "beneficiaryVASPdid", - } - - class properties: - transactionAsset = schemas.StrSchema - transactionAmount = schemas.StrSchema - originatorDid = schemas.StrSchema - beneficiaryDid = schemas.StrSchema - originatorVASPdid = schemas.StrSchema - beneficiaryVASPdid = schemas.StrSchema - beneficiaryVASPname = schemas.StrSchema - - - class transactionBlockchainInfo( - schemas.ComposedSchema, - ): - - - class MetaOapg: - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - TravelRuleTransactionBlockchainInfo, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'transactionBlockchainInfo': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - - - class originator( - schemas.ComposedSchema, - ): - - - class MetaOapg: - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - TravelRulePiiIVMS, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'originator': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - - - class beneficiary( - schemas.ComposedSchema, - ): - - - class MetaOapg: - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - TravelRulePiiIVMS, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'beneficiary': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - encrypted = schemas.StrSchema - protocol = schemas.StrSchema - notificationEmail = schemas.StrSchema - skipBeneficiaryDataValidation = schemas.BoolSchema - travelRuleBehavior = schemas.BoolSchema - - - class originatorProof( - schemas.ComposedSchema, - ): - - - class MetaOapg: - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - TravelRuleOwnershipProof, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'originatorProof': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - - - class beneficiaryProof( - schemas.ComposedSchema, - ): - - - class MetaOapg: - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - TravelRuleOwnershipProof, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'beneficiaryProof': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - - - class pii( - schemas.ComposedSchema, - ): - - - class MetaOapg: - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - TravelRulePiiIVMS, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'pii': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - __annotations__ = { - "transactionAsset": transactionAsset, - "transactionAmount": transactionAmount, - "originatorDid": originatorDid, - "beneficiaryDid": beneficiaryDid, - "originatorVASPdid": originatorVASPdid, - "beneficiaryVASPdid": beneficiaryVASPdid, - "beneficiaryVASPname": beneficiaryVASPname, - "transactionBlockchainInfo": transactionBlockchainInfo, - "originator": originator, - "beneficiary": beneficiary, - "encrypted": encrypted, - "protocol": protocol, - "notificationEmail": notificationEmail, - "skipBeneficiaryDataValidation": skipBeneficiaryDataValidation, - "travelRuleBehavior": travelRuleBehavior, - "originatorProof": originatorProof, - "beneficiaryProof": beneficiaryProof, - "pii": pii, - } - - originatorProof: MetaOapg.properties.originatorProof - transactionAsset: MetaOapg.properties.transactionAsset - originator: MetaOapg.properties.originator - notificationEmail: MetaOapg.properties.notificationEmail - beneficiaryVASPname: MetaOapg.properties.beneficiaryVASPname - pii: MetaOapg.properties.pii - protocol: MetaOapg.properties.protocol - skipBeneficiaryDataValidation: MetaOapg.properties.skipBeneficiaryDataValidation - beneficiary: MetaOapg.properties.beneficiary - encrypted: MetaOapg.properties.encrypted - originatorDid: MetaOapg.properties.originatorDid - transactionAmount: MetaOapg.properties.transactionAmount - travelRuleBehavior: MetaOapg.properties.travelRuleBehavior - transactionBlockchainInfo: MetaOapg.properties.transactionBlockchainInfo - beneficiaryProof: MetaOapg.properties.beneficiaryProof - beneficiaryDid: MetaOapg.properties.beneficiaryDid - originatorVASPdid: MetaOapg.properties.originatorVASPdid - beneficiaryVASPdid: MetaOapg.properties.beneficiaryVASPdid - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["transactionAsset"]) -> MetaOapg.properties.transactionAsset: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["transactionAmount"]) -> MetaOapg.properties.transactionAmount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["originatorDid"]) -> MetaOapg.properties.originatorDid: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["beneficiaryDid"]) -> MetaOapg.properties.beneficiaryDid: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["originatorVASPdid"]) -> MetaOapg.properties.originatorVASPdid: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["beneficiaryVASPdid"]) -> MetaOapg.properties.beneficiaryVASPdid: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["beneficiaryVASPname"]) -> MetaOapg.properties.beneficiaryVASPname: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["transactionBlockchainInfo"]) -> MetaOapg.properties.transactionBlockchainInfo: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["originator"]) -> MetaOapg.properties.originator: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["beneficiary"]) -> MetaOapg.properties.beneficiary: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["encrypted"]) -> MetaOapg.properties.encrypted: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["protocol"]) -> MetaOapg.properties.protocol: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["notificationEmail"]) -> MetaOapg.properties.notificationEmail: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["skipBeneficiaryDataValidation"]) -> MetaOapg.properties.skipBeneficiaryDataValidation: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["travelRuleBehavior"]) -> MetaOapg.properties.travelRuleBehavior: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["originatorProof"]) -> MetaOapg.properties.originatorProof: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["beneficiaryProof"]) -> MetaOapg.properties.beneficiaryProof: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["pii"]) -> MetaOapg.properties.pii: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["transactionAsset", "transactionAmount", "originatorDid", "beneficiaryDid", "originatorVASPdid", "beneficiaryVASPdid", "beneficiaryVASPname", "transactionBlockchainInfo", "originator", "beneficiary", "encrypted", "protocol", "notificationEmail", "skipBeneficiaryDataValidation", "travelRuleBehavior", "originatorProof", "beneficiaryProof", "pii", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["transactionAsset"]) -> MetaOapg.properties.transactionAsset: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["transactionAmount"]) -> MetaOapg.properties.transactionAmount: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["originatorDid"]) -> MetaOapg.properties.originatorDid: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["beneficiaryDid"]) -> MetaOapg.properties.beneficiaryDid: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["originatorVASPdid"]) -> MetaOapg.properties.originatorVASPdid: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["beneficiaryVASPdid"]) -> MetaOapg.properties.beneficiaryVASPdid: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["beneficiaryVASPname"]) -> MetaOapg.properties.beneficiaryVASPname: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["transactionBlockchainInfo"]) -> MetaOapg.properties.transactionBlockchainInfo: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["originator"]) -> MetaOapg.properties.originator: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["beneficiary"]) -> MetaOapg.properties.beneficiary: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["encrypted"]) -> MetaOapg.properties.encrypted: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["protocol"]) -> MetaOapg.properties.protocol: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["notificationEmail"]) -> MetaOapg.properties.notificationEmail: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["skipBeneficiaryDataValidation"]) -> MetaOapg.properties.skipBeneficiaryDataValidation: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["travelRuleBehavior"]) -> MetaOapg.properties.travelRuleBehavior: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["originatorProof"]) -> MetaOapg.properties.originatorProof: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["beneficiaryProof"]) -> MetaOapg.properties.beneficiaryProof: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["pii"]) -> MetaOapg.properties.pii: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["transactionAsset", "transactionAmount", "originatorDid", "beneficiaryDid", "originatorVASPdid", "beneficiaryVASPdid", "beneficiaryVASPname", "transactionBlockchainInfo", "originator", "beneficiary", "encrypted", "protocol", "notificationEmail", "skipBeneficiaryDataValidation", "travelRuleBehavior", "originatorProof", "beneficiaryProof", "pii", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - originatorProof: typing.Union[MetaOapg.properties.originatorProof, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - transactionAsset: typing.Union[MetaOapg.properties.transactionAsset, str, ], - originator: typing.Union[MetaOapg.properties.originator, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - notificationEmail: typing.Union[MetaOapg.properties.notificationEmail, str, ], - beneficiaryVASPname: typing.Union[MetaOapg.properties.beneficiaryVASPname, str, ], - pii: typing.Union[MetaOapg.properties.pii, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - protocol: typing.Union[MetaOapg.properties.protocol, str, ], - skipBeneficiaryDataValidation: typing.Union[MetaOapg.properties.skipBeneficiaryDataValidation, bool, ], - beneficiary: typing.Union[MetaOapg.properties.beneficiary, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - encrypted: typing.Union[MetaOapg.properties.encrypted, str, ], - originatorDid: typing.Union[MetaOapg.properties.originatorDid, str, ], - transactionAmount: typing.Union[MetaOapg.properties.transactionAmount, str, ], - travelRuleBehavior: typing.Union[MetaOapg.properties.travelRuleBehavior, bool, ], - transactionBlockchainInfo: typing.Union[MetaOapg.properties.transactionBlockchainInfo, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - beneficiaryProof: typing.Union[MetaOapg.properties.beneficiaryProof, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - beneficiaryDid: typing.Union[MetaOapg.properties.beneficiaryDid, str, ], - originatorVASPdid: typing.Union[MetaOapg.properties.originatorVASPdid, str, ], - beneficiaryVASPdid: typing.Union[MetaOapg.properties.beneficiaryVASPdid, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'TravelRuleValidateFullTransactionRequest': - return super().__new__( - cls, - *_args, - originatorProof=originatorProof, - transactionAsset=transactionAsset, - originator=originator, - notificationEmail=notificationEmail, - beneficiaryVASPname=beneficiaryVASPname, - pii=pii, - protocol=protocol, - skipBeneficiaryDataValidation=skipBeneficiaryDataValidation, - beneficiary=beneficiary, - encrypted=encrypted, - originatorDid=originatorDid, - transactionAmount=transactionAmount, - travelRuleBehavior=travelRuleBehavior, - transactionBlockchainInfo=transactionBlockchainInfo, - beneficiaryProof=beneficiaryProof, - beneficiaryDid=beneficiaryDid, - originatorVASPdid=originatorVASPdid, - beneficiaryVASPdid=beneficiaryVASPdid, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.travel_rule_ownership_proof import TravelRuleOwnershipProof -from fireblocks_client.model.travel_rule_pii_ivms import TravelRulePiiIVMS -from fireblocks_client.model.travel_rule_transaction_blockchain_info import TravelRuleTransactionBlockchainInfo diff --git a/fireblocks_client/model/travel_rule_validate_transaction_request.py b/fireblocks_client/model/travel_rule_validate_transaction_request.py deleted file mode 100644 index 669654ee..00000000 --- a/fireblocks_client/model/travel_rule_validate_transaction_request.py +++ /dev/null @@ -1,241 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class TravelRuleValidateTransactionRequest( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "beneficiaryVASPname", - "originatorEqualsBeneficiary", - "transactionAsset", - "beneficiaryAccountNumber", - "beneficiaryName", - "transactionAmount", - "travelRuleBehavior", - "destination", - "beneficiaryAddress", - "originatorVASPdid", - "beneficiaryVASPdid", - } - - class properties: - transactionAsset = schemas.StrSchema - destination = schemas.StrSchema - transactionAmount = schemas.StrSchema - originatorVASPdid = schemas.StrSchema - originatorEqualsBeneficiary = schemas.BoolSchema - travelRuleBehavior = schemas.BoolSchema - beneficiaryVASPdid = schemas.StrSchema - beneficiaryVASPname = schemas.StrSchema - beneficiaryName = schemas.StrSchema - beneficiaryAccountNumber = schemas.StrSchema - - - class beneficiaryAddress( - schemas.ComposedSchema, - ): - - - class MetaOapg: - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - TravelRuleAddress, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'beneficiaryAddress': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - __annotations__ = { - "transactionAsset": transactionAsset, - "destination": destination, - "transactionAmount": transactionAmount, - "originatorVASPdid": originatorVASPdid, - "originatorEqualsBeneficiary": originatorEqualsBeneficiary, - "travelRuleBehavior": travelRuleBehavior, - "beneficiaryVASPdid": beneficiaryVASPdid, - "beneficiaryVASPname": beneficiaryVASPname, - "beneficiaryName": beneficiaryName, - "beneficiaryAccountNumber": beneficiaryAccountNumber, - "beneficiaryAddress": beneficiaryAddress, - } - - beneficiaryVASPname: MetaOapg.properties.beneficiaryVASPname - originatorEqualsBeneficiary: MetaOapg.properties.originatorEqualsBeneficiary - transactionAsset: MetaOapg.properties.transactionAsset - beneficiaryAccountNumber: MetaOapg.properties.beneficiaryAccountNumber - beneficiaryName: MetaOapg.properties.beneficiaryName - transactionAmount: MetaOapg.properties.transactionAmount - travelRuleBehavior: MetaOapg.properties.travelRuleBehavior - destination: MetaOapg.properties.destination - beneficiaryAddress: MetaOapg.properties.beneficiaryAddress - originatorVASPdid: MetaOapg.properties.originatorVASPdid - beneficiaryVASPdid: MetaOapg.properties.beneficiaryVASPdid - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["transactionAsset"]) -> MetaOapg.properties.transactionAsset: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["destination"]) -> MetaOapg.properties.destination: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["transactionAmount"]) -> MetaOapg.properties.transactionAmount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["originatorVASPdid"]) -> MetaOapg.properties.originatorVASPdid: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["originatorEqualsBeneficiary"]) -> MetaOapg.properties.originatorEqualsBeneficiary: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["travelRuleBehavior"]) -> MetaOapg.properties.travelRuleBehavior: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["beneficiaryVASPdid"]) -> MetaOapg.properties.beneficiaryVASPdid: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["beneficiaryVASPname"]) -> MetaOapg.properties.beneficiaryVASPname: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["beneficiaryName"]) -> MetaOapg.properties.beneficiaryName: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["beneficiaryAccountNumber"]) -> MetaOapg.properties.beneficiaryAccountNumber: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["beneficiaryAddress"]) -> MetaOapg.properties.beneficiaryAddress: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["transactionAsset", "destination", "transactionAmount", "originatorVASPdid", "originatorEqualsBeneficiary", "travelRuleBehavior", "beneficiaryVASPdid", "beneficiaryVASPname", "beneficiaryName", "beneficiaryAccountNumber", "beneficiaryAddress", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["transactionAsset"]) -> MetaOapg.properties.transactionAsset: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["destination"]) -> MetaOapg.properties.destination: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["transactionAmount"]) -> MetaOapg.properties.transactionAmount: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["originatorVASPdid"]) -> MetaOapg.properties.originatorVASPdid: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["originatorEqualsBeneficiary"]) -> MetaOapg.properties.originatorEqualsBeneficiary: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["travelRuleBehavior"]) -> MetaOapg.properties.travelRuleBehavior: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["beneficiaryVASPdid"]) -> MetaOapg.properties.beneficiaryVASPdid: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["beneficiaryVASPname"]) -> MetaOapg.properties.beneficiaryVASPname: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["beneficiaryName"]) -> MetaOapg.properties.beneficiaryName: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["beneficiaryAccountNumber"]) -> MetaOapg.properties.beneficiaryAccountNumber: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["beneficiaryAddress"]) -> MetaOapg.properties.beneficiaryAddress: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["transactionAsset", "destination", "transactionAmount", "originatorVASPdid", "originatorEqualsBeneficiary", "travelRuleBehavior", "beneficiaryVASPdid", "beneficiaryVASPname", "beneficiaryName", "beneficiaryAccountNumber", "beneficiaryAddress", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - beneficiaryVASPname: typing.Union[MetaOapg.properties.beneficiaryVASPname, str, ], - originatorEqualsBeneficiary: typing.Union[MetaOapg.properties.originatorEqualsBeneficiary, bool, ], - transactionAsset: typing.Union[MetaOapg.properties.transactionAsset, str, ], - beneficiaryAccountNumber: typing.Union[MetaOapg.properties.beneficiaryAccountNumber, str, ], - beneficiaryName: typing.Union[MetaOapg.properties.beneficiaryName, str, ], - transactionAmount: typing.Union[MetaOapg.properties.transactionAmount, str, ], - travelRuleBehavior: typing.Union[MetaOapg.properties.travelRuleBehavior, bool, ], - destination: typing.Union[MetaOapg.properties.destination, str, ], - beneficiaryAddress: typing.Union[MetaOapg.properties.beneficiaryAddress, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - originatorVASPdid: typing.Union[MetaOapg.properties.originatorVASPdid, str, ], - beneficiaryVASPdid: typing.Union[MetaOapg.properties.beneficiaryVASPdid, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'TravelRuleValidateTransactionRequest': - return super().__new__( - cls, - *_args, - beneficiaryVASPname=beneficiaryVASPname, - originatorEqualsBeneficiary=originatorEqualsBeneficiary, - transactionAsset=transactionAsset, - beneficiaryAccountNumber=beneficiaryAccountNumber, - beneficiaryName=beneficiaryName, - transactionAmount=transactionAmount, - travelRuleBehavior=travelRuleBehavior, - destination=destination, - beneficiaryAddress=beneficiaryAddress, - originatorVASPdid=originatorVASPdid, - beneficiaryVASPdid=beneficiaryVASPdid, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.travel_rule_address import TravelRuleAddress diff --git a/fireblocks_client/model/travel_rule_validate_transaction_request.pyi b/fireblocks_client/model/travel_rule_validate_transaction_request.pyi deleted file mode 100644 index 669654ee..00000000 --- a/fireblocks_client/model/travel_rule_validate_transaction_request.pyi +++ /dev/null @@ -1,241 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class TravelRuleValidateTransactionRequest( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "beneficiaryVASPname", - "originatorEqualsBeneficiary", - "transactionAsset", - "beneficiaryAccountNumber", - "beneficiaryName", - "transactionAmount", - "travelRuleBehavior", - "destination", - "beneficiaryAddress", - "originatorVASPdid", - "beneficiaryVASPdid", - } - - class properties: - transactionAsset = schemas.StrSchema - destination = schemas.StrSchema - transactionAmount = schemas.StrSchema - originatorVASPdid = schemas.StrSchema - originatorEqualsBeneficiary = schemas.BoolSchema - travelRuleBehavior = schemas.BoolSchema - beneficiaryVASPdid = schemas.StrSchema - beneficiaryVASPname = schemas.StrSchema - beneficiaryName = schemas.StrSchema - beneficiaryAccountNumber = schemas.StrSchema - - - class beneficiaryAddress( - schemas.ComposedSchema, - ): - - - class MetaOapg: - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - TravelRuleAddress, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'beneficiaryAddress': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - __annotations__ = { - "transactionAsset": transactionAsset, - "destination": destination, - "transactionAmount": transactionAmount, - "originatorVASPdid": originatorVASPdid, - "originatorEqualsBeneficiary": originatorEqualsBeneficiary, - "travelRuleBehavior": travelRuleBehavior, - "beneficiaryVASPdid": beneficiaryVASPdid, - "beneficiaryVASPname": beneficiaryVASPname, - "beneficiaryName": beneficiaryName, - "beneficiaryAccountNumber": beneficiaryAccountNumber, - "beneficiaryAddress": beneficiaryAddress, - } - - beneficiaryVASPname: MetaOapg.properties.beneficiaryVASPname - originatorEqualsBeneficiary: MetaOapg.properties.originatorEqualsBeneficiary - transactionAsset: MetaOapg.properties.transactionAsset - beneficiaryAccountNumber: MetaOapg.properties.beneficiaryAccountNumber - beneficiaryName: MetaOapg.properties.beneficiaryName - transactionAmount: MetaOapg.properties.transactionAmount - travelRuleBehavior: MetaOapg.properties.travelRuleBehavior - destination: MetaOapg.properties.destination - beneficiaryAddress: MetaOapg.properties.beneficiaryAddress - originatorVASPdid: MetaOapg.properties.originatorVASPdid - beneficiaryVASPdid: MetaOapg.properties.beneficiaryVASPdid - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["transactionAsset"]) -> MetaOapg.properties.transactionAsset: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["destination"]) -> MetaOapg.properties.destination: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["transactionAmount"]) -> MetaOapg.properties.transactionAmount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["originatorVASPdid"]) -> MetaOapg.properties.originatorVASPdid: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["originatorEqualsBeneficiary"]) -> MetaOapg.properties.originatorEqualsBeneficiary: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["travelRuleBehavior"]) -> MetaOapg.properties.travelRuleBehavior: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["beneficiaryVASPdid"]) -> MetaOapg.properties.beneficiaryVASPdid: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["beneficiaryVASPname"]) -> MetaOapg.properties.beneficiaryVASPname: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["beneficiaryName"]) -> MetaOapg.properties.beneficiaryName: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["beneficiaryAccountNumber"]) -> MetaOapg.properties.beneficiaryAccountNumber: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["beneficiaryAddress"]) -> MetaOapg.properties.beneficiaryAddress: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["transactionAsset", "destination", "transactionAmount", "originatorVASPdid", "originatorEqualsBeneficiary", "travelRuleBehavior", "beneficiaryVASPdid", "beneficiaryVASPname", "beneficiaryName", "beneficiaryAccountNumber", "beneficiaryAddress", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["transactionAsset"]) -> MetaOapg.properties.transactionAsset: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["destination"]) -> MetaOapg.properties.destination: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["transactionAmount"]) -> MetaOapg.properties.transactionAmount: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["originatorVASPdid"]) -> MetaOapg.properties.originatorVASPdid: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["originatorEqualsBeneficiary"]) -> MetaOapg.properties.originatorEqualsBeneficiary: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["travelRuleBehavior"]) -> MetaOapg.properties.travelRuleBehavior: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["beneficiaryVASPdid"]) -> MetaOapg.properties.beneficiaryVASPdid: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["beneficiaryVASPname"]) -> MetaOapg.properties.beneficiaryVASPname: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["beneficiaryName"]) -> MetaOapg.properties.beneficiaryName: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["beneficiaryAccountNumber"]) -> MetaOapg.properties.beneficiaryAccountNumber: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["beneficiaryAddress"]) -> MetaOapg.properties.beneficiaryAddress: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["transactionAsset", "destination", "transactionAmount", "originatorVASPdid", "originatorEqualsBeneficiary", "travelRuleBehavior", "beneficiaryVASPdid", "beneficiaryVASPname", "beneficiaryName", "beneficiaryAccountNumber", "beneficiaryAddress", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - beneficiaryVASPname: typing.Union[MetaOapg.properties.beneficiaryVASPname, str, ], - originatorEqualsBeneficiary: typing.Union[MetaOapg.properties.originatorEqualsBeneficiary, bool, ], - transactionAsset: typing.Union[MetaOapg.properties.transactionAsset, str, ], - beneficiaryAccountNumber: typing.Union[MetaOapg.properties.beneficiaryAccountNumber, str, ], - beneficiaryName: typing.Union[MetaOapg.properties.beneficiaryName, str, ], - transactionAmount: typing.Union[MetaOapg.properties.transactionAmount, str, ], - travelRuleBehavior: typing.Union[MetaOapg.properties.travelRuleBehavior, bool, ], - destination: typing.Union[MetaOapg.properties.destination, str, ], - beneficiaryAddress: typing.Union[MetaOapg.properties.beneficiaryAddress, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - originatorVASPdid: typing.Union[MetaOapg.properties.originatorVASPdid, str, ], - beneficiaryVASPdid: typing.Union[MetaOapg.properties.beneficiaryVASPdid, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'TravelRuleValidateTransactionRequest': - return super().__new__( - cls, - *_args, - beneficiaryVASPname=beneficiaryVASPname, - originatorEqualsBeneficiary=originatorEqualsBeneficiary, - transactionAsset=transactionAsset, - beneficiaryAccountNumber=beneficiaryAccountNumber, - beneficiaryName=beneficiaryName, - transactionAmount=transactionAmount, - travelRuleBehavior=travelRuleBehavior, - destination=destination, - beneficiaryAddress=beneficiaryAddress, - originatorVASPdid=originatorVASPdid, - beneficiaryVASPdid=beneficiaryVASPdid, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.travel_rule_address import TravelRuleAddress diff --git a/fireblocks_client/model/travel_rule_validate_transaction_response.py b/fireblocks_client/model/travel_rule_validate_transaction_response.py deleted file mode 100644 index 054d20c4..00000000 --- a/fireblocks_client/model/travel_rule_validate_transaction_response.py +++ /dev/null @@ -1,178 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class TravelRuleValidateTransactionResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "beneficiaryVASPname", - "addressSource", - "beneficiaryAddressType", - "isValid", - "warnings", - "type", - "beneficiaryVASPdid", - } - - class properties: - isValid = schemas.BoolSchema - type = schemas.StrSchema - beneficiaryAddressType = schemas.StrSchema - addressSource = schemas.StrSchema - beneficiaryVASPdid = schemas.StrSchema - beneficiaryVASPname = schemas.StrSchema - - - class warnings( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.StrSchema - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'warnings': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - __annotations__ = { - "isValid": isValid, - "type": type, - "beneficiaryAddressType": beneficiaryAddressType, - "addressSource": addressSource, - "beneficiaryVASPdid": beneficiaryVASPdid, - "beneficiaryVASPname": beneficiaryVASPname, - "warnings": warnings, - } - - beneficiaryVASPname: MetaOapg.properties.beneficiaryVASPname - addressSource: MetaOapg.properties.addressSource - beneficiaryAddressType: MetaOapg.properties.beneficiaryAddressType - isValid: MetaOapg.properties.isValid - warnings: MetaOapg.properties.warnings - type: MetaOapg.properties.type - beneficiaryVASPdid: MetaOapg.properties.beneficiaryVASPdid - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["isValid"]) -> MetaOapg.properties.isValid: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["beneficiaryAddressType"]) -> MetaOapg.properties.beneficiaryAddressType: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["addressSource"]) -> MetaOapg.properties.addressSource: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["beneficiaryVASPdid"]) -> MetaOapg.properties.beneficiaryVASPdid: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["beneficiaryVASPname"]) -> MetaOapg.properties.beneficiaryVASPname: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["warnings"]) -> MetaOapg.properties.warnings: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["isValid", "type", "beneficiaryAddressType", "addressSource", "beneficiaryVASPdid", "beneficiaryVASPname", "warnings", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["isValid"]) -> MetaOapg.properties.isValid: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["beneficiaryAddressType"]) -> MetaOapg.properties.beneficiaryAddressType: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["addressSource"]) -> MetaOapg.properties.addressSource: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["beneficiaryVASPdid"]) -> MetaOapg.properties.beneficiaryVASPdid: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["beneficiaryVASPname"]) -> MetaOapg.properties.beneficiaryVASPname: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["warnings"]) -> MetaOapg.properties.warnings: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["isValid", "type", "beneficiaryAddressType", "addressSource", "beneficiaryVASPdid", "beneficiaryVASPname", "warnings", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - beneficiaryVASPname: typing.Union[MetaOapg.properties.beneficiaryVASPname, str, ], - addressSource: typing.Union[MetaOapg.properties.addressSource, str, ], - beneficiaryAddressType: typing.Union[MetaOapg.properties.beneficiaryAddressType, str, ], - isValid: typing.Union[MetaOapg.properties.isValid, bool, ], - warnings: typing.Union[MetaOapg.properties.warnings, list, tuple, ], - type: typing.Union[MetaOapg.properties.type, str, ], - beneficiaryVASPdid: typing.Union[MetaOapg.properties.beneficiaryVASPdid, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'TravelRuleValidateTransactionResponse': - return super().__new__( - cls, - *_args, - beneficiaryVASPname=beneficiaryVASPname, - addressSource=addressSource, - beneficiaryAddressType=beneficiaryAddressType, - isValid=isValid, - warnings=warnings, - type=type, - beneficiaryVASPdid=beneficiaryVASPdid, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/travel_rule_validate_transaction_response.pyi b/fireblocks_client/model/travel_rule_validate_transaction_response.pyi deleted file mode 100644 index 054d20c4..00000000 --- a/fireblocks_client/model/travel_rule_validate_transaction_response.pyi +++ /dev/null @@ -1,178 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class TravelRuleValidateTransactionResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "beneficiaryVASPname", - "addressSource", - "beneficiaryAddressType", - "isValid", - "warnings", - "type", - "beneficiaryVASPdid", - } - - class properties: - isValid = schemas.BoolSchema - type = schemas.StrSchema - beneficiaryAddressType = schemas.StrSchema - addressSource = schemas.StrSchema - beneficiaryVASPdid = schemas.StrSchema - beneficiaryVASPname = schemas.StrSchema - - - class warnings( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.StrSchema - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'warnings': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - __annotations__ = { - "isValid": isValid, - "type": type, - "beneficiaryAddressType": beneficiaryAddressType, - "addressSource": addressSource, - "beneficiaryVASPdid": beneficiaryVASPdid, - "beneficiaryVASPname": beneficiaryVASPname, - "warnings": warnings, - } - - beneficiaryVASPname: MetaOapg.properties.beneficiaryVASPname - addressSource: MetaOapg.properties.addressSource - beneficiaryAddressType: MetaOapg.properties.beneficiaryAddressType - isValid: MetaOapg.properties.isValid - warnings: MetaOapg.properties.warnings - type: MetaOapg.properties.type - beneficiaryVASPdid: MetaOapg.properties.beneficiaryVASPdid - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["isValid"]) -> MetaOapg.properties.isValid: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["beneficiaryAddressType"]) -> MetaOapg.properties.beneficiaryAddressType: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["addressSource"]) -> MetaOapg.properties.addressSource: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["beneficiaryVASPdid"]) -> MetaOapg.properties.beneficiaryVASPdid: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["beneficiaryVASPname"]) -> MetaOapg.properties.beneficiaryVASPname: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["warnings"]) -> MetaOapg.properties.warnings: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["isValid", "type", "beneficiaryAddressType", "addressSource", "beneficiaryVASPdid", "beneficiaryVASPname", "warnings", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["isValid"]) -> MetaOapg.properties.isValid: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["beneficiaryAddressType"]) -> MetaOapg.properties.beneficiaryAddressType: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["addressSource"]) -> MetaOapg.properties.addressSource: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["beneficiaryVASPdid"]) -> MetaOapg.properties.beneficiaryVASPdid: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["beneficiaryVASPname"]) -> MetaOapg.properties.beneficiaryVASPname: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["warnings"]) -> MetaOapg.properties.warnings: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["isValid", "type", "beneficiaryAddressType", "addressSource", "beneficiaryVASPdid", "beneficiaryVASPname", "warnings", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - beneficiaryVASPname: typing.Union[MetaOapg.properties.beneficiaryVASPname, str, ], - addressSource: typing.Union[MetaOapg.properties.addressSource, str, ], - beneficiaryAddressType: typing.Union[MetaOapg.properties.beneficiaryAddressType, str, ], - isValid: typing.Union[MetaOapg.properties.isValid, bool, ], - warnings: typing.Union[MetaOapg.properties.warnings, list, tuple, ], - type: typing.Union[MetaOapg.properties.type, str, ], - beneficiaryVASPdid: typing.Union[MetaOapg.properties.beneficiaryVASPdid, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'TravelRuleValidateTransactionResponse': - return super().__new__( - cls, - *_args, - beneficiaryVASPname=beneficiaryVASPname, - addressSource=addressSource, - beneficiaryAddressType=beneficiaryAddressType, - isValid=isValid, - warnings=warnings, - type=type, - beneficiaryVASPdid=beneficiaryVASPdid, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/travel_rule_vasp.py b/fireblocks_client/model/travel_rule_vasp.py deleted file mode 100644 index 3b068584..00000000 --- a/fireblocks_client/model/travel_rule_vasp.py +++ /dev/null @@ -1,629 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class TravelRuleVASP( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "country", - "travelRule_TRISA", - "isNotifiable", - "travelRule_TRP", - "city", - "documents", - "isRegulated", - "travelRule_EMAIL", - "description", - "identificationType", - "identificationCountry", - "travelRule_SYGNA", - "lastReceivedDate", - "legalName", - "createdAt", - "number", - "legalStructure", - "street", - "travelRule_SHYFT", - "regulatoryAuthorities", - "addressLine1", - "logo", - "addressLine2", - "state", - "jurisdictions", - "travelRule_TRLIGHT", - "updatedAt", - "hasAdmin", - "website", - "updatedBy", - "verificationStatus", - "emailDomains", - "businessNumber", - "issuers", - "yearFounded", - "travelRule_OPENVASP", - "travelRule_USTRAVELRULEWG", - "unit", - "otherNames", - "certificates", - "lastSentDate", - "createdBy", - "name", - "postCode", - "did", - "incorporationCountry", - } - - class properties: - did = schemas.StrSchema - name = schemas.StrSchema - verificationStatus = schemas.StrSchema - addressLine1 = schemas.StrSchema - addressLine2 = schemas.StrSchema - city = schemas.StrSchema - country = schemas.StrSchema - emailDomains = schemas.StrSchema - website = schemas.StrSchema - logo = schemas.StrSchema - legalStructure = schemas.StrSchema - legalName = schemas.StrSchema - yearFounded = schemas.StrSchema - incorporationCountry = schemas.StrSchema - isRegulated = schemas.StrSchema - otherNames = schemas.StrSchema - identificationType = schemas.StrSchema - identificationCountry = schemas.StrSchema - businessNumber = schemas.StrSchema - regulatoryAuthorities = schemas.StrSchema - jurisdictions = schemas.StrSchema - street = schemas.StrSchema - number = schemas.StrSchema - unit = schemas.StrSchema - postCode = schemas.StrSchema - state = schemas.StrSchema - certificates = schemas.StrSchema - description = schemas.StrSchema - travelRule_OPENVASP = schemas.StrSchema - travelRule_SYGNA = schemas.StrSchema - travelRule_TRISA = schemas.StrSchema - travelRule_TRLIGHT = schemas.StrSchema - travelRule_EMAIL = schemas.StrSchema - travelRule_TRP = schemas.StrSchema - travelRule_SHYFT = schemas.StrSchema - travelRule_USTRAVELRULEWG = schemas.StrSchema - createdAt = schemas.StrSchema - createdBy = schemas.StrSchema - updatedAt = schemas.StrSchema - updatedBy = schemas.StrSchema - lastSentDate = schemas.StrSchema - lastReceivedDate = schemas.StrSchema - documents = schemas.StrSchema - hasAdmin = schemas.BoolSchema - isNotifiable = schemas.BoolSchema - - @staticmethod - def issuers() -> typing.Type['TravelRuleIssuers']: - return TravelRuleIssuers - __annotations__ = { - "did": did, - "name": name, - "verificationStatus": verificationStatus, - "addressLine1": addressLine1, - "addressLine2": addressLine2, - "city": city, - "country": country, - "emailDomains": emailDomains, - "website": website, - "logo": logo, - "legalStructure": legalStructure, - "legalName": legalName, - "yearFounded": yearFounded, - "incorporationCountry": incorporationCountry, - "isRegulated": isRegulated, - "otherNames": otherNames, - "identificationType": identificationType, - "identificationCountry": identificationCountry, - "businessNumber": businessNumber, - "regulatoryAuthorities": regulatoryAuthorities, - "jurisdictions": jurisdictions, - "street": street, - "number": number, - "unit": unit, - "postCode": postCode, - "state": state, - "certificates": certificates, - "description": description, - "travelRule_OPENVASP": travelRule_OPENVASP, - "travelRule_SYGNA": travelRule_SYGNA, - "travelRule_TRISA": travelRule_TRISA, - "travelRule_TRLIGHT": travelRule_TRLIGHT, - "travelRule_EMAIL": travelRule_EMAIL, - "travelRule_TRP": travelRule_TRP, - "travelRule_SHYFT": travelRule_SHYFT, - "travelRule_USTRAVELRULEWG": travelRule_USTRAVELRULEWG, - "createdAt": createdAt, - "createdBy": createdBy, - "updatedAt": updatedAt, - "updatedBy": updatedBy, - "lastSentDate": lastSentDate, - "lastReceivedDate": lastReceivedDate, - "documents": documents, - "hasAdmin": hasAdmin, - "isNotifiable": isNotifiable, - "issuers": issuers, - } - - country: MetaOapg.properties.country - travelRule_TRISA: MetaOapg.properties.travelRule_TRISA - isNotifiable: MetaOapg.properties.isNotifiable - travelRule_TRP: MetaOapg.properties.travelRule_TRP - city: MetaOapg.properties.city - documents: MetaOapg.properties.documents - isRegulated: MetaOapg.properties.isRegulated - travelRule_EMAIL: MetaOapg.properties.travelRule_EMAIL - description: MetaOapg.properties.description - identificationType: MetaOapg.properties.identificationType - identificationCountry: MetaOapg.properties.identificationCountry - travelRule_SYGNA: MetaOapg.properties.travelRule_SYGNA - lastReceivedDate: MetaOapg.properties.lastReceivedDate - legalName: MetaOapg.properties.legalName - createdAt: MetaOapg.properties.createdAt - number: MetaOapg.properties.number - legalStructure: MetaOapg.properties.legalStructure - street: MetaOapg.properties.street - travelRule_SHYFT: MetaOapg.properties.travelRule_SHYFT - regulatoryAuthorities: MetaOapg.properties.regulatoryAuthorities - addressLine1: MetaOapg.properties.addressLine1 - logo: MetaOapg.properties.logo - addressLine2: MetaOapg.properties.addressLine2 - state: MetaOapg.properties.state - jurisdictions: MetaOapg.properties.jurisdictions - travelRule_TRLIGHT: MetaOapg.properties.travelRule_TRLIGHT - updatedAt: MetaOapg.properties.updatedAt - hasAdmin: MetaOapg.properties.hasAdmin - website: MetaOapg.properties.website - updatedBy: MetaOapg.properties.updatedBy - verificationStatus: MetaOapg.properties.verificationStatus - emailDomains: MetaOapg.properties.emailDomains - businessNumber: MetaOapg.properties.businessNumber - issuers: 'TravelRuleIssuers' - yearFounded: MetaOapg.properties.yearFounded - travelRule_OPENVASP: MetaOapg.properties.travelRule_OPENVASP - travelRule_USTRAVELRULEWG: MetaOapg.properties.travelRule_USTRAVELRULEWG - unit: MetaOapg.properties.unit - otherNames: MetaOapg.properties.otherNames - certificates: MetaOapg.properties.certificates - lastSentDate: MetaOapg.properties.lastSentDate - createdBy: MetaOapg.properties.createdBy - name: MetaOapg.properties.name - postCode: MetaOapg.properties.postCode - did: MetaOapg.properties.did - incorporationCountry: MetaOapg.properties.incorporationCountry - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["did"]) -> MetaOapg.properties.did: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["verificationStatus"]) -> MetaOapg.properties.verificationStatus: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["addressLine1"]) -> MetaOapg.properties.addressLine1: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["addressLine2"]) -> MetaOapg.properties.addressLine2: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["city"]) -> MetaOapg.properties.city: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["country"]) -> MetaOapg.properties.country: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["emailDomains"]) -> MetaOapg.properties.emailDomains: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["website"]) -> MetaOapg.properties.website: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["logo"]) -> MetaOapg.properties.logo: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["legalStructure"]) -> MetaOapg.properties.legalStructure: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["legalName"]) -> MetaOapg.properties.legalName: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["yearFounded"]) -> MetaOapg.properties.yearFounded: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["incorporationCountry"]) -> MetaOapg.properties.incorporationCountry: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["isRegulated"]) -> MetaOapg.properties.isRegulated: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["otherNames"]) -> MetaOapg.properties.otherNames: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["identificationType"]) -> MetaOapg.properties.identificationType: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["identificationCountry"]) -> MetaOapg.properties.identificationCountry: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["businessNumber"]) -> MetaOapg.properties.businessNumber: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["regulatoryAuthorities"]) -> MetaOapg.properties.regulatoryAuthorities: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["jurisdictions"]) -> MetaOapg.properties.jurisdictions: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["street"]) -> MetaOapg.properties.street: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["number"]) -> MetaOapg.properties.number: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["unit"]) -> MetaOapg.properties.unit: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["postCode"]) -> MetaOapg.properties.postCode: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["state"]) -> MetaOapg.properties.state: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["certificates"]) -> MetaOapg.properties.certificates: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["description"]) -> MetaOapg.properties.description: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["travelRule_OPENVASP"]) -> MetaOapg.properties.travelRule_OPENVASP: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["travelRule_SYGNA"]) -> MetaOapg.properties.travelRule_SYGNA: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["travelRule_TRISA"]) -> MetaOapg.properties.travelRule_TRISA: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["travelRule_TRLIGHT"]) -> MetaOapg.properties.travelRule_TRLIGHT: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["travelRule_EMAIL"]) -> MetaOapg.properties.travelRule_EMAIL: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["travelRule_TRP"]) -> MetaOapg.properties.travelRule_TRP: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["travelRule_SHYFT"]) -> MetaOapg.properties.travelRule_SHYFT: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["travelRule_USTRAVELRULEWG"]) -> MetaOapg.properties.travelRule_USTRAVELRULEWG: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["createdAt"]) -> MetaOapg.properties.createdAt: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["createdBy"]) -> MetaOapg.properties.createdBy: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["updatedAt"]) -> MetaOapg.properties.updatedAt: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["updatedBy"]) -> MetaOapg.properties.updatedBy: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["lastSentDate"]) -> MetaOapg.properties.lastSentDate: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["lastReceivedDate"]) -> MetaOapg.properties.lastReceivedDate: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["documents"]) -> MetaOapg.properties.documents: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["hasAdmin"]) -> MetaOapg.properties.hasAdmin: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["isNotifiable"]) -> MetaOapg.properties.isNotifiable: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["issuers"]) -> 'TravelRuleIssuers': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["did", "name", "verificationStatus", "addressLine1", "addressLine2", "city", "country", "emailDomains", "website", "logo", "legalStructure", "legalName", "yearFounded", "incorporationCountry", "isRegulated", "otherNames", "identificationType", "identificationCountry", "businessNumber", "regulatoryAuthorities", "jurisdictions", "street", "number", "unit", "postCode", "state", "certificates", "description", "travelRule_OPENVASP", "travelRule_SYGNA", "travelRule_TRISA", "travelRule_TRLIGHT", "travelRule_EMAIL", "travelRule_TRP", "travelRule_SHYFT", "travelRule_USTRAVELRULEWG", "createdAt", "createdBy", "updatedAt", "updatedBy", "lastSentDate", "lastReceivedDate", "documents", "hasAdmin", "isNotifiable", "issuers", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["did"]) -> MetaOapg.properties.did: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["verificationStatus"]) -> MetaOapg.properties.verificationStatus: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["addressLine1"]) -> MetaOapg.properties.addressLine1: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["addressLine2"]) -> MetaOapg.properties.addressLine2: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["city"]) -> MetaOapg.properties.city: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["country"]) -> MetaOapg.properties.country: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["emailDomains"]) -> MetaOapg.properties.emailDomains: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["website"]) -> MetaOapg.properties.website: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["logo"]) -> MetaOapg.properties.logo: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["legalStructure"]) -> MetaOapg.properties.legalStructure: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["legalName"]) -> MetaOapg.properties.legalName: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["yearFounded"]) -> MetaOapg.properties.yearFounded: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["incorporationCountry"]) -> MetaOapg.properties.incorporationCountry: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["isRegulated"]) -> MetaOapg.properties.isRegulated: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["otherNames"]) -> MetaOapg.properties.otherNames: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["identificationType"]) -> MetaOapg.properties.identificationType: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["identificationCountry"]) -> MetaOapg.properties.identificationCountry: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["businessNumber"]) -> MetaOapg.properties.businessNumber: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["regulatoryAuthorities"]) -> MetaOapg.properties.regulatoryAuthorities: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["jurisdictions"]) -> MetaOapg.properties.jurisdictions: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["street"]) -> MetaOapg.properties.street: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["number"]) -> MetaOapg.properties.number: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["unit"]) -> MetaOapg.properties.unit: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["postCode"]) -> MetaOapg.properties.postCode: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["state"]) -> MetaOapg.properties.state: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["certificates"]) -> MetaOapg.properties.certificates: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["description"]) -> MetaOapg.properties.description: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["travelRule_OPENVASP"]) -> MetaOapg.properties.travelRule_OPENVASP: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["travelRule_SYGNA"]) -> MetaOapg.properties.travelRule_SYGNA: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["travelRule_TRISA"]) -> MetaOapg.properties.travelRule_TRISA: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["travelRule_TRLIGHT"]) -> MetaOapg.properties.travelRule_TRLIGHT: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["travelRule_EMAIL"]) -> MetaOapg.properties.travelRule_EMAIL: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["travelRule_TRP"]) -> MetaOapg.properties.travelRule_TRP: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["travelRule_SHYFT"]) -> MetaOapg.properties.travelRule_SHYFT: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["travelRule_USTRAVELRULEWG"]) -> MetaOapg.properties.travelRule_USTRAVELRULEWG: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["createdAt"]) -> MetaOapg.properties.createdAt: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["createdBy"]) -> MetaOapg.properties.createdBy: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["updatedAt"]) -> MetaOapg.properties.updatedAt: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["updatedBy"]) -> MetaOapg.properties.updatedBy: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["lastSentDate"]) -> MetaOapg.properties.lastSentDate: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["lastReceivedDate"]) -> MetaOapg.properties.lastReceivedDate: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["documents"]) -> MetaOapg.properties.documents: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["hasAdmin"]) -> MetaOapg.properties.hasAdmin: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["isNotifiable"]) -> MetaOapg.properties.isNotifiable: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["issuers"]) -> 'TravelRuleIssuers': ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["did", "name", "verificationStatus", "addressLine1", "addressLine2", "city", "country", "emailDomains", "website", "logo", "legalStructure", "legalName", "yearFounded", "incorporationCountry", "isRegulated", "otherNames", "identificationType", "identificationCountry", "businessNumber", "regulatoryAuthorities", "jurisdictions", "street", "number", "unit", "postCode", "state", "certificates", "description", "travelRule_OPENVASP", "travelRule_SYGNA", "travelRule_TRISA", "travelRule_TRLIGHT", "travelRule_EMAIL", "travelRule_TRP", "travelRule_SHYFT", "travelRule_USTRAVELRULEWG", "createdAt", "createdBy", "updatedAt", "updatedBy", "lastSentDate", "lastReceivedDate", "documents", "hasAdmin", "isNotifiable", "issuers", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - country: typing.Union[MetaOapg.properties.country, str, ], - travelRule_TRISA: typing.Union[MetaOapg.properties.travelRule_TRISA, str, ], - isNotifiable: typing.Union[MetaOapg.properties.isNotifiable, bool, ], - travelRule_TRP: typing.Union[MetaOapg.properties.travelRule_TRP, str, ], - city: typing.Union[MetaOapg.properties.city, str, ], - documents: typing.Union[MetaOapg.properties.documents, str, ], - isRegulated: typing.Union[MetaOapg.properties.isRegulated, str, ], - travelRule_EMAIL: typing.Union[MetaOapg.properties.travelRule_EMAIL, str, ], - description: typing.Union[MetaOapg.properties.description, str, ], - identificationType: typing.Union[MetaOapg.properties.identificationType, str, ], - identificationCountry: typing.Union[MetaOapg.properties.identificationCountry, str, ], - travelRule_SYGNA: typing.Union[MetaOapg.properties.travelRule_SYGNA, str, ], - lastReceivedDate: typing.Union[MetaOapg.properties.lastReceivedDate, str, ], - legalName: typing.Union[MetaOapg.properties.legalName, str, ], - createdAt: typing.Union[MetaOapg.properties.createdAt, str, ], - number: typing.Union[MetaOapg.properties.number, str, ], - legalStructure: typing.Union[MetaOapg.properties.legalStructure, str, ], - street: typing.Union[MetaOapg.properties.street, str, ], - travelRule_SHYFT: typing.Union[MetaOapg.properties.travelRule_SHYFT, str, ], - regulatoryAuthorities: typing.Union[MetaOapg.properties.regulatoryAuthorities, str, ], - addressLine1: typing.Union[MetaOapg.properties.addressLine1, str, ], - logo: typing.Union[MetaOapg.properties.logo, str, ], - addressLine2: typing.Union[MetaOapg.properties.addressLine2, str, ], - state: typing.Union[MetaOapg.properties.state, str, ], - jurisdictions: typing.Union[MetaOapg.properties.jurisdictions, str, ], - travelRule_TRLIGHT: typing.Union[MetaOapg.properties.travelRule_TRLIGHT, str, ], - updatedAt: typing.Union[MetaOapg.properties.updatedAt, str, ], - hasAdmin: typing.Union[MetaOapg.properties.hasAdmin, bool, ], - website: typing.Union[MetaOapg.properties.website, str, ], - updatedBy: typing.Union[MetaOapg.properties.updatedBy, str, ], - verificationStatus: typing.Union[MetaOapg.properties.verificationStatus, str, ], - emailDomains: typing.Union[MetaOapg.properties.emailDomains, str, ], - businessNumber: typing.Union[MetaOapg.properties.businessNumber, str, ], - issuers: 'TravelRuleIssuers', - yearFounded: typing.Union[MetaOapg.properties.yearFounded, str, ], - travelRule_OPENVASP: typing.Union[MetaOapg.properties.travelRule_OPENVASP, str, ], - travelRule_USTRAVELRULEWG: typing.Union[MetaOapg.properties.travelRule_USTRAVELRULEWG, str, ], - unit: typing.Union[MetaOapg.properties.unit, str, ], - otherNames: typing.Union[MetaOapg.properties.otherNames, str, ], - certificates: typing.Union[MetaOapg.properties.certificates, str, ], - lastSentDate: typing.Union[MetaOapg.properties.lastSentDate, str, ], - createdBy: typing.Union[MetaOapg.properties.createdBy, str, ], - name: typing.Union[MetaOapg.properties.name, str, ], - postCode: typing.Union[MetaOapg.properties.postCode, str, ], - did: typing.Union[MetaOapg.properties.did, str, ], - incorporationCountry: typing.Union[MetaOapg.properties.incorporationCountry, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'TravelRuleVASP': - return super().__new__( - cls, - *_args, - country=country, - travelRule_TRISA=travelRule_TRISA, - isNotifiable=isNotifiable, - travelRule_TRP=travelRule_TRP, - city=city, - documents=documents, - isRegulated=isRegulated, - travelRule_EMAIL=travelRule_EMAIL, - description=description, - identificationType=identificationType, - identificationCountry=identificationCountry, - travelRule_SYGNA=travelRule_SYGNA, - lastReceivedDate=lastReceivedDate, - legalName=legalName, - createdAt=createdAt, - number=number, - legalStructure=legalStructure, - street=street, - travelRule_SHYFT=travelRule_SHYFT, - regulatoryAuthorities=regulatoryAuthorities, - addressLine1=addressLine1, - logo=logo, - addressLine2=addressLine2, - state=state, - jurisdictions=jurisdictions, - travelRule_TRLIGHT=travelRule_TRLIGHT, - updatedAt=updatedAt, - hasAdmin=hasAdmin, - website=website, - updatedBy=updatedBy, - verificationStatus=verificationStatus, - emailDomains=emailDomains, - businessNumber=businessNumber, - issuers=issuers, - yearFounded=yearFounded, - travelRule_OPENVASP=travelRule_OPENVASP, - travelRule_USTRAVELRULEWG=travelRule_USTRAVELRULEWG, - unit=unit, - otherNames=otherNames, - certificates=certificates, - lastSentDate=lastSentDate, - createdBy=createdBy, - name=name, - postCode=postCode, - did=did, - incorporationCountry=incorporationCountry, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.travel_rule_issuers import TravelRuleIssuers diff --git a/fireblocks_client/model/travel_rule_vasp.pyi b/fireblocks_client/model/travel_rule_vasp.pyi deleted file mode 100644 index 3b068584..00000000 --- a/fireblocks_client/model/travel_rule_vasp.pyi +++ /dev/null @@ -1,629 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class TravelRuleVASP( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "country", - "travelRule_TRISA", - "isNotifiable", - "travelRule_TRP", - "city", - "documents", - "isRegulated", - "travelRule_EMAIL", - "description", - "identificationType", - "identificationCountry", - "travelRule_SYGNA", - "lastReceivedDate", - "legalName", - "createdAt", - "number", - "legalStructure", - "street", - "travelRule_SHYFT", - "regulatoryAuthorities", - "addressLine1", - "logo", - "addressLine2", - "state", - "jurisdictions", - "travelRule_TRLIGHT", - "updatedAt", - "hasAdmin", - "website", - "updatedBy", - "verificationStatus", - "emailDomains", - "businessNumber", - "issuers", - "yearFounded", - "travelRule_OPENVASP", - "travelRule_USTRAVELRULEWG", - "unit", - "otherNames", - "certificates", - "lastSentDate", - "createdBy", - "name", - "postCode", - "did", - "incorporationCountry", - } - - class properties: - did = schemas.StrSchema - name = schemas.StrSchema - verificationStatus = schemas.StrSchema - addressLine1 = schemas.StrSchema - addressLine2 = schemas.StrSchema - city = schemas.StrSchema - country = schemas.StrSchema - emailDomains = schemas.StrSchema - website = schemas.StrSchema - logo = schemas.StrSchema - legalStructure = schemas.StrSchema - legalName = schemas.StrSchema - yearFounded = schemas.StrSchema - incorporationCountry = schemas.StrSchema - isRegulated = schemas.StrSchema - otherNames = schemas.StrSchema - identificationType = schemas.StrSchema - identificationCountry = schemas.StrSchema - businessNumber = schemas.StrSchema - regulatoryAuthorities = schemas.StrSchema - jurisdictions = schemas.StrSchema - street = schemas.StrSchema - number = schemas.StrSchema - unit = schemas.StrSchema - postCode = schemas.StrSchema - state = schemas.StrSchema - certificates = schemas.StrSchema - description = schemas.StrSchema - travelRule_OPENVASP = schemas.StrSchema - travelRule_SYGNA = schemas.StrSchema - travelRule_TRISA = schemas.StrSchema - travelRule_TRLIGHT = schemas.StrSchema - travelRule_EMAIL = schemas.StrSchema - travelRule_TRP = schemas.StrSchema - travelRule_SHYFT = schemas.StrSchema - travelRule_USTRAVELRULEWG = schemas.StrSchema - createdAt = schemas.StrSchema - createdBy = schemas.StrSchema - updatedAt = schemas.StrSchema - updatedBy = schemas.StrSchema - lastSentDate = schemas.StrSchema - lastReceivedDate = schemas.StrSchema - documents = schemas.StrSchema - hasAdmin = schemas.BoolSchema - isNotifiable = schemas.BoolSchema - - @staticmethod - def issuers() -> typing.Type['TravelRuleIssuers']: - return TravelRuleIssuers - __annotations__ = { - "did": did, - "name": name, - "verificationStatus": verificationStatus, - "addressLine1": addressLine1, - "addressLine2": addressLine2, - "city": city, - "country": country, - "emailDomains": emailDomains, - "website": website, - "logo": logo, - "legalStructure": legalStructure, - "legalName": legalName, - "yearFounded": yearFounded, - "incorporationCountry": incorporationCountry, - "isRegulated": isRegulated, - "otherNames": otherNames, - "identificationType": identificationType, - "identificationCountry": identificationCountry, - "businessNumber": businessNumber, - "regulatoryAuthorities": regulatoryAuthorities, - "jurisdictions": jurisdictions, - "street": street, - "number": number, - "unit": unit, - "postCode": postCode, - "state": state, - "certificates": certificates, - "description": description, - "travelRule_OPENVASP": travelRule_OPENVASP, - "travelRule_SYGNA": travelRule_SYGNA, - "travelRule_TRISA": travelRule_TRISA, - "travelRule_TRLIGHT": travelRule_TRLIGHT, - "travelRule_EMAIL": travelRule_EMAIL, - "travelRule_TRP": travelRule_TRP, - "travelRule_SHYFT": travelRule_SHYFT, - "travelRule_USTRAVELRULEWG": travelRule_USTRAVELRULEWG, - "createdAt": createdAt, - "createdBy": createdBy, - "updatedAt": updatedAt, - "updatedBy": updatedBy, - "lastSentDate": lastSentDate, - "lastReceivedDate": lastReceivedDate, - "documents": documents, - "hasAdmin": hasAdmin, - "isNotifiable": isNotifiable, - "issuers": issuers, - } - - country: MetaOapg.properties.country - travelRule_TRISA: MetaOapg.properties.travelRule_TRISA - isNotifiable: MetaOapg.properties.isNotifiable - travelRule_TRP: MetaOapg.properties.travelRule_TRP - city: MetaOapg.properties.city - documents: MetaOapg.properties.documents - isRegulated: MetaOapg.properties.isRegulated - travelRule_EMAIL: MetaOapg.properties.travelRule_EMAIL - description: MetaOapg.properties.description - identificationType: MetaOapg.properties.identificationType - identificationCountry: MetaOapg.properties.identificationCountry - travelRule_SYGNA: MetaOapg.properties.travelRule_SYGNA - lastReceivedDate: MetaOapg.properties.lastReceivedDate - legalName: MetaOapg.properties.legalName - createdAt: MetaOapg.properties.createdAt - number: MetaOapg.properties.number - legalStructure: MetaOapg.properties.legalStructure - street: MetaOapg.properties.street - travelRule_SHYFT: MetaOapg.properties.travelRule_SHYFT - regulatoryAuthorities: MetaOapg.properties.regulatoryAuthorities - addressLine1: MetaOapg.properties.addressLine1 - logo: MetaOapg.properties.logo - addressLine2: MetaOapg.properties.addressLine2 - state: MetaOapg.properties.state - jurisdictions: MetaOapg.properties.jurisdictions - travelRule_TRLIGHT: MetaOapg.properties.travelRule_TRLIGHT - updatedAt: MetaOapg.properties.updatedAt - hasAdmin: MetaOapg.properties.hasAdmin - website: MetaOapg.properties.website - updatedBy: MetaOapg.properties.updatedBy - verificationStatus: MetaOapg.properties.verificationStatus - emailDomains: MetaOapg.properties.emailDomains - businessNumber: MetaOapg.properties.businessNumber - issuers: 'TravelRuleIssuers' - yearFounded: MetaOapg.properties.yearFounded - travelRule_OPENVASP: MetaOapg.properties.travelRule_OPENVASP - travelRule_USTRAVELRULEWG: MetaOapg.properties.travelRule_USTRAVELRULEWG - unit: MetaOapg.properties.unit - otherNames: MetaOapg.properties.otherNames - certificates: MetaOapg.properties.certificates - lastSentDate: MetaOapg.properties.lastSentDate - createdBy: MetaOapg.properties.createdBy - name: MetaOapg.properties.name - postCode: MetaOapg.properties.postCode - did: MetaOapg.properties.did - incorporationCountry: MetaOapg.properties.incorporationCountry - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["did"]) -> MetaOapg.properties.did: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["verificationStatus"]) -> MetaOapg.properties.verificationStatus: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["addressLine1"]) -> MetaOapg.properties.addressLine1: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["addressLine2"]) -> MetaOapg.properties.addressLine2: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["city"]) -> MetaOapg.properties.city: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["country"]) -> MetaOapg.properties.country: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["emailDomains"]) -> MetaOapg.properties.emailDomains: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["website"]) -> MetaOapg.properties.website: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["logo"]) -> MetaOapg.properties.logo: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["legalStructure"]) -> MetaOapg.properties.legalStructure: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["legalName"]) -> MetaOapg.properties.legalName: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["yearFounded"]) -> MetaOapg.properties.yearFounded: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["incorporationCountry"]) -> MetaOapg.properties.incorporationCountry: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["isRegulated"]) -> MetaOapg.properties.isRegulated: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["otherNames"]) -> MetaOapg.properties.otherNames: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["identificationType"]) -> MetaOapg.properties.identificationType: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["identificationCountry"]) -> MetaOapg.properties.identificationCountry: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["businessNumber"]) -> MetaOapg.properties.businessNumber: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["regulatoryAuthorities"]) -> MetaOapg.properties.regulatoryAuthorities: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["jurisdictions"]) -> MetaOapg.properties.jurisdictions: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["street"]) -> MetaOapg.properties.street: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["number"]) -> MetaOapg.properties.number: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["unit"]) -> MetaOapg.properties.unit: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["postCode"]) -> MetaOapg.properties.postCode: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["state"]) -> MetaOapg.properties.state: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["certificates"]) -> MetaOapg.properties.certificates: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["description"]) -> MetaOapg.properties.description: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["travelRule_OPENVASP"]) -> MetaOapg.properties.travelRule_OPENVASP: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["travelRule_SYGNA"]) -> MetaOapg.properties.travelRule_SYGNA: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["travelRule_TRISA"]) -> MetaOapg.properties.travelRule_TRISA: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["travelRule_TRLIGHT"]) -> MetaOapg.properties.travelRule_TRLIGHT: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["travelRule_EMAIL"]) -> MetaOapg.properties.travelRule_EMAIL: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["travelRule_TRP"]) -> MetaOapg.properties.travelRule_TRP: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["travelRule_SHYFT"]) -> MetaOapg.properties.travelRule_SHYFT: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["travelRule_USTRAVELRULEWG"]) -> MetaOapg.properties.travelRule_USTRAVELRULEWG: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["createdAt"]) -> MetaOapg.properties.createdAt: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["createdBy"]) -> MetaOapg.properties.createdBy: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["updatedAt"]) -> MetaOapg.properties.updatedAt: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["updatedBy"]) -> MetaOapg.properties.updatedBy: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["lastSentDate"]) -> MetaOapg.properties.lastSentDate: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["lastReceivedDate"]) -> MetaOapg.properties.lastReceivedDate: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["documents"]) -> MetaOapg.properties.documents: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["hasAdmin"]) -> MetaOapg.properties.hasAdmin: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["isNotifiable"]) -> MetaOapg.properties.isNotifiable: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["issuers"]) -> 'TravelRuleIssuers': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["did", "name", "verificationStatus", "addressLine1", "addressLine2", "city", "country", "emailDomains", "website", "logo", "legalStructure", "legalName", "yearFounded", "incorporationCountry", "isRegulated", "otherNames", "identificationType", "identificationCountry", "businessNumber", "regulatoryAuthorities", "jurisdictions", "street", "number", "unit", "postCode", "state", "certificates", "description", "travelRule_OPENVASP", "travelRule_SYGNA", "travelRule_TRISA", "travelRule_TRLIGHT", "travelRule_EMAIL", "travelRule_TRP", "travelRule_SHYFT", "travelRule_USTRAVELRULEWG", "createdAt", "createdBy", "updatedAt", "updatedBy", "lastSentDate", "lastReceivedDate", "documents", "hasAdmin", "isNotifiable", "issuers", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["did"]) -> MetaOapg.properties.did: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["verificationStatus"]) -> MetaOapg.properties.verificationStatus: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["addressLine1"]) -> MetaOapg.properties.addressLine1: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["addressLine2"]) -> MetaOapg.properties.addressLine2: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["city"]) -> MetaOapg.properties.city: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["country"]) -> MetaOapg.properties.country: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["emailDomains"]) -> MetaOapg.properties.emailDomains: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["website"]) -> MetaOapg.properties.website: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["logo"]) -> MetaOapg.properties.logo: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["legalStructure"]) -> MetaOapg.properties.legalStructure: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["legalName"]) -> MetaOapg.properties.legalName: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["yearFounded"]) -> MetaOapg.properties.yearFounded: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["incorporationCountry"]) -> MetaOapg.properties.incorporationCountry: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["isRegulated"]) -> MetaOapg.properties.isRegulated: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["otherNames"]) -> MetaOapg.properties.otherNames: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["identificationType"]) -> MetaOapg.properties.identificationType: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["identificationCountry"]) -> MetaOapg.properties.identificationCountry: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["businessNumber"]) -> MetaOapg.properties.businessNumber: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["regulatoryAuthorities"]) -> MetaOapg.properties.regulatoryAuthorities: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["jurisdictions"]) -> MetaOapg.properties.jurisdictions: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["street"]) -> MetaOapg.properties.street: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["number"]) -> MetaOapg.properties.number: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["unit"]) -> MetaOapg.properties.unit: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["postCode"]) -> MetaOapg.properties.postCode: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["state"]) -> MetaOapg.properties.state: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["certificates"]) -> MetaOapg.properties.certificates: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["description"]) -> MetaOapg.properties.description: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["travelRule_OPENVASP"]) -> MetaOapg.properties.travelRule_OPENVASP: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["travelRule_SYGNA"]) -> MetaOapg.properties.travelRule_SYGNA: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["travelRule_TRISA"]) -> MetaOapg.properties.travelRule_TRISA: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["travelRule_TRLIGHT"]) -> MetaOapg.properties.travelRule_TRLIGHT: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["travelRule_EMAIL"]) -> MetaOapg.properties.travelRule_EMAIL: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["travelRule_TRP"]) -> MetaOapg.properties.travelRule_TRP: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["travelRule_SHYFT"]) -> MetaOapg.properties.travelRule_SHYFT: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["travelRule_USTRAVELRULEWG"]) -> MetaOapg.properties.travelRule_USTRAVELRULEWG: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["createdAt"]) -> MetaOapg.properties.createdAt: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["createdBy"]) -> MetaOapg.properties.createdBy: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["updatedAt"]) -> MetaOapg.properties.updatedAt: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["updatedBy"]) -> MetaOapg.properties.updatedBy: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["lastSentDate"]) -> MetaOapg.properties.lastSentDate: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["lastReceivedDate"]) -> MetaOapg.properties.lastReceivedDate: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["documents"]) -> MetaOapg.properties.documents: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["hasAdmin"]) -> MetaOapg.properties.hasAdmin: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["isNotifiable"]) -> MetaOapg.properties.isNotifiable: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["issuers"]) -> 'TravelRuleIssuers': ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["did", "name", "verificationStatus", "addressLine1", "addressLine2", "city", "country", "emailDomains", "website", "logo", "legalStructure", "legalName", "yearFounded", "incorporationCountry", "isRegulated", "otherNames", "identificationType", "identificationCountry", "businessNumber", "regulatoryAuthorities", "jurisdictions", "street", "number", "unit", "postCode", "state", "certificates", "description", "travelRule_OPENVASP", "travelRule_SYGNA", "travelRule_TRISA", "travelRule_TRLIGHT", "travelRule_EMAIL", "travelRule_TRP", "travelRule_SHYFT", "travelRule_USTRAVELRULEWG", "createdAt", "createdBy", "updatedAt", "updatedBy", "lastSentDate", "lastReceivedDate", "documents", "hasAdmin", "isNotifiable", "issuers", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - country: typing.Union[MetaOapg.properties.country, str, ], - travelRule_TRISA: typing.Union[MetaOapg.properties.travelRule_TRISA, str, ], - isNotifiable: typing.Union[MetaOapg.properties.isNotifiable, bool, ], - travelRule_TRP: typing.Union[MetaOapg.properties.travelRule_TRP, str, ], - city: typing.Union[MetaOapg.properties.city, str, ], - documents: typing.Union[MetaOapg.properties.documents, str, ], - isRegulated: typing.Union[MetaOapg.properties.isRegulated, str, ], - travelRule_EMAIL: typing.Union[MetaOapg.properties.travelRule_EMAIL, str, ], - description: typing.Union[MetaOapg.properties.description, str, ], - identificationType: typing.Union[MetaOapg.properties.identificationType, str, ], - identificationCountry: typing.Union[MetaOapg.properties.identificationCountry, str, ], - travelRule_SYGNA: typing.Union[MetaOapg.properties.travelRule_SYGNA, str, ], - lastReceivedDate: typing.Union[MetaOapg.properties.lastReceivedDate, str, ], - legalName: typing.Union[MetaOapg.properties.legalName, str, ], - createdAt: typing.Union[MetaOapg.properties.createdAt, str, ], - number: typing.Union[MetaOapg.properties.number, str, ], - legalStructure: typing.Union[MetaOapg.properties.legalStructure, str, ], - street: typing.Union[MetaOapg.properties.street, str, ], - travelRule_SHYFT: typing.Union[MetaOapg.properties.travelRule_SHYFT, str, ], - regulatoryAuthorities: typing.Union[MetaOapg.properties.regulatoryAuthorities, str, ], - addressLine1: typing.Union[MetaOapg.properties.addressLine1, str, ], - logo: typing.Union[MetaOapg.properties.logo, str, ], - addressLine2: typing.Union[MetaOapg.properties.addressLine2, str, ], - state: typing.Union[MetaOapg.properties.state, str, ], - jurisdictions: typing.Union[MetaOapg.properties.jurisdictions, str, ], - travelRule_TRLIGHT: typing.Union[MetaOapg.properties.travelRule_TRLIGHT, str, ], - updatedAt: typing.Union[MetaOapg.properties.updatedAt, str, ], - hasAdmin: typing.Union[MetaOapg.properties.hasAdmin, bool, ], - website: typing.Union[MetaOapg.properties.website, str, ], - updatedBy: typing.Union[MetaOapg.properties.updatedBy, str, ], - verificationStatus: typing.Union[MetaOapg.properties.verificationStatus, str, ], - emailDomains: typing.Union[MetaOapg.properties.emailDomains, str, ], - businessNumber: typing.Union[MetaOapg.properties.businessNumber, str, ], - issuers: 'TravelRuleIssuers', - yearFounded: typing.Union[MetaOapg.properties.yearFounded, str, ], - travelRule_OPENVASP: typing.Union[MetaOapg.properties.travelRule_OPENVASP, str, ], - travelRule_USTRAVELRULEWG: typing.Union[MetaOapg.properties.travelRule_USTRAVELRULEWG, str, ], - unit: typing.Union[MetaOapg.properties.unit, str, ], - otherNames: typing.Union[MetaOapg.properties.otherNames, str, ], - certificates: typing.Union[MetaOapg.properties.certificates, str, ], - lastSentDate: typing.Union[MetaOapg.properties.lastSentDate, str, ], - createdBy: typing.Union[MetaOapg.properties.createdBy, str, ], - name: typing.Union[MetaOapg.properties.name, str, ], - postCode: typing.Union[MetaOapg.properties.postCode, str, ], - did: typing.Union[MetaOapg.properties.did, str, ], - incorporationCountry: typing.Union[MetaOapg.properties.incorporationCountry, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'TravelRuleVASP': - return super().__new__( - cls, - *_args, - country=country, - travelRule_TRISA=travelRule_TRISA, - isNotifiable=isNotifiable, - travelRule_TRP=travelRule_TRP, - city=city, - documents=documents, - isRegulated=isRegulated, - travelRule_EMAIL=travelRule_EMAIL, - description=description, - identificationType=identificationType, - identificationCountry=identificationCountry, - travelRule_SYGNA=travelRule_SYGNA, - lastReceivedDate=lastReceivedDate, - legalName=legalName, - createdAt=createdAt, - number=number, - legalStructure=legalStructure, - street=street, - travelRule_SHYFT=travelRule_SHYFT, - regulatoryAuthorities=regulatoryAuthorities, - addressLine1=addressLine1, - logo=logo, - addressLine2=addressLine2, - state=state, - jurisdictions=jurisdictions, - travelRule_TRLIGHT=travelRule_TRLIGHT, - updatedAt=updatedAt, - hasAdmin=hasAdmin, - website=website, - updatedBy=updatedBy, - verificationStatus=verificationStatus, - emailDomains=emailDomains, - businessNumber=businessNumber, - issuers=issuers, - yearFounded=yearFounded, - travelRule_OPENVASP=travelRule_OPENVASP, - travelRule_USTRAVELRULEWG=travelRule_USTRAVELRULEWG, - unit=unit, - otherNames=otherNames, - certificates=certificates, - lastSentDate=lastSentDate, - createdBy=createdBy, - name=name, - postCode=postCode, - did=did, - incorporationCountry=incorporationCountry, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.travel_rule_issuers import TravelRuleIssuers diff --git a/fireblocks_client/model/unfreeze_transaction_response.py b/fireblocks_client/model/unfreeze_transaction_response.py deleted file mode 100644 index 1cd22920..00000000 --- a/fireblocks_client/model/unfreeze_transaction_response.py +++ /dev/null @@ -1,79 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class UnfreezeTransactionResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - success = schemas.BoolSchema - __annotations__ = { - "success": success, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["success"]) -> MetaOapg.properties.success: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["success", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["success"]) -> typing.Union[MetaOapg.properties.success, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["success", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - success: typing.Union[MetaOapg.properties.success, bool, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'UnfreezeTransactionResponse': - return super().__new__( - cls, - *_args, - success=success, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/unfreeze_transaction_response.pyi b/fireblocks_client/model/unfreeze_transaction_response.pyi deleted file mode 100644 index 1cd22920..00000000 --- a/fireblocks_client/model/unfreeze_transaction_response.pyi +++ /dev/null @@ -1,79 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class UnfreezeTransactionResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - success = schemas.BoolSchema - __annotations__ = { - "success": success, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["success"]) -> MetaOapg.properties.success: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["success", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["success"]) -> typing.Union[MetaOapg.properties.success, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["success", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - success: typing.Union[MetaOapg.properties.success, bool, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'UnfreezeTransactionResponse': - return super().__new__( - cls, - *_args, - success=success, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/unmanaged_wallet.py b/fireblocks_client/model/unmanaged_wallet.py deleted file mode 100644 index 1be5d9d3..00000000 --- a/fireblocks_client/model/unmanaged_wallet.py +++ /dev/null @@ -1,147 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class UnmanagedWallet( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "name", - "id", - "status", - } - - class properties: - id = schemas.StrSchema - name = schemas.StrSchema - customerRefId = schemas.StrSchema - - - class assets( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['WalletAsset']: - return WalletAsset - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['WalletAsset'], typing.List['WalletAsset']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'assets': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'WalletAsset': - return super().__getitem__(i) - __annotations__ = { - "id": id, - "name": name, - "customerRefId": customerRefId, - "assets": assets, - } - - name: MetaOapg.properties.name - id: MetaOapg.properties.id - status: schemas.AnyTypeSchema - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["customerRefId"]) -> MetaOapg.properties.customerRefId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["assets"]) -> MetaOapg.properties.assets: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "name", "customerRefId", "assets", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["customerRefId"]) -> typing.Union[MetaOapg.properties.customerRefId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["assets"]) -> typing.Union[MetaOapg.properties.assets, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "name", "customerRefId", "assets", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - name: typing.Union[MetaOapg.properties.name, str, ], - id: typing.Union[MetaOapg.properties.id, str, ], - status: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - customerRefId: typing.Union[MetaOapg.properties.customerRefId, str, schemas.Unset] = schemas.unset, - assets: typing.Union[MetaOapg.properties.assets, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'UnmanagedWallet': - return super().__new__( - cls, - *_args, - name=name, - id=id, - status=status, - customerRefId=customerRefId, - assets=assets, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.wallet_asset import WalletAsset diff --git a/fireblocks_client/model/unmanaged_wallet.pyi b/fireblocks_client/model/unmanaged_wallet.pyi deleted file mode 100644 index 1be5d9d3..00000000 --- a/fireblocks_client/model/unmanaged_wallet.pyi +++ /dev/null @@ -1,147 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class UnmanagedWallet( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "name", - "id", - "status", - } - - class properties: - id = schemas.StrSchema - name = schemas.StrSchema - customerRefId = schemas.StrSchema - - - class assets( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['WalletAsset']: - return WalletAsset - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['WalletAsset'], typing.List['WalletAsset']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'assets': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'WalletAsset': - return super().__getitem__(i) - __annotations__ = { - "id": id, - "name": name, - "customerRefId": customerRefId, - "assets": assets, - } - - name: MetaOapg.properties.name - id: MetaOapg.properties.id - status: schemas.AnyTypeSchema - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["customerRefId"]) -> MetaOapg.properties.customerRefId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["assets"]) -> MetaOapg.properties.assets: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "name", "customerRefId", "assets", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["customerRefId"]) -> typing.Union[MetaOapg.properties.customerRefId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["assets"]) -> typing.Union[MetaOapg.properties.assets, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "name", "customerRefId", "assets", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - name: typing.Union[MetaOapg.properties.name, str, ], - id: typing.Union[MetaOapg.properties.id, str, ], - status: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - customerRefId: typing.Union[MetaOapg.properties.customerRefId, str, schemas.Unset] = schemas.unset, - assets: typing.Union[MetaOapg.properties.assets, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'UnmanagedWallet': - return super().__new__( - cls, - *_args, - name=name, - id=id, - status=status, - customerRefId=customerRefId, - assets=assets, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.wallet_asset import WalletAsset diff --git a/fireblocks_client/model/unsigned_message.py b/fireblocks_client/model/unsigned_message.py deleted file mode 100644 index 15756662..00000000 --- a/fireblocks_client/model/unsigned_message.py +++ /dev/null @@ -1,136 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class UnsignedMessage( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "content", - } - - class properties: - content = schemas.StrSchema - bip44addressIndex = schemas.IntSchema - bip44change = schemas.NumberSchema - - - class derivationPath( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.NumberSchema - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, decimal.Decimal, int, float, ]], typing.List[typing.Union[MetaOapg.items, decimal.Decimal, int, float, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'derivationPath': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - __annotations__ = { - "content": content, - "bip44addressIndex": bip44addressIndex, - "bip44change": bip44change, - "derivationPath": derivationPath, - } - - content: MetaOapg.properties.content - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["content"]) -> MetaOapg.properties.content: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["bip44addressIndex"]) -> MetaOapg.properties.bip44addressIndex: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["bip44change"]) -> MetaOapg.properties.bip44change: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["derivationPath"]) -> MetaOapg.properties.derivationPath: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["content", "bip44addressIndex", "bip44change", "derivationPath", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["content"]) -> MetaOapg.properties.content: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["bip44addressIndex"]) -> typing.Union[MetaOapg.properties.bip44addressIndex, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["bip44change"]) -> typing.Union[MetaOapg.properties.bip44change, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["derivationPath"]) -> typing.Union[MetaOapg.properties.derivationPath, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["content", "bip44addressIndex", "bip44change", "derivationPath", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - content: typing.Union[MetaOapg.properties.content, str, ], - bip44addressIndex: typing.Union[MetaOapg.properties.bip44addressIndex, decimal.Decimal, int, schemas.Unset] = schemas.unset, - bip44change: typing.Union[MetaOapg.properties.bip44change, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, - derivationPath: typing.Union[MetaOapg.properties.derivationPath, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'UnsignedMessage': - return super().__new__( - cls, - *_args, - content=content, - bip44addressIndex=bip44addressIndex, - bip44change=bip44change, - derivationPath=derivationPath, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/unsigned_message.pyi b/fireblocks_client/model/unsigned_message.pyi deleted file mode 100644 index 15756662..00000000 --- a/fireblocks_client/model/unsigned_message.pyi +++ /dev/null @@ -1,136 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class UnsignedMessage( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "content", - } - - class properties: - content = schemas.StrSchema - bip44addressIndex = schemas.IntSchema - bip44change = schemas.NumberSchema - - - class derivationPath( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.NumberSchema - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, decimal.Decimal, int, float, ]], typing.List[typing.Union[MetaOapg.items, decimal.Decimal, int, float, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'derivationPath': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - __annotations__ = { - "content": content, - "bip44addressIndex": bip44addressIndex, - "bip44change": bip44change, - "derivationPath": derivationPath, - } - - content: MetaOapg.properties.content - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["content"]) -> MetaOapg.properties.content: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["bip44addressIndex"]) -> MetaOapg.properties.bip44addressIndex: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["bip44change"]) -> MetaOapg.properties.bip44change: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["derivationPath"]) -> MetaOapg.properties.derivationPath: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["content", "bip44addressIndex", "bip44change", "derivationPath", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["content"]) -> MetaOapg.properties.content: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["bip44addressIndex"]) -> typing.Union[MetaOapg.properties.bip44addressIndex, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["bip44change"]) -> typing.Union[MetaOapg.properties.bip44change, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["derivationPath"]) -> typing.Union[MetaOapg.properties.derivationPath, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["content", "bip44addressIndex", "bip44change", "derivationPath", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - content: typing.Union[MetaOapg.properties.content, str, ], - bip44addressIndex: typing.Union[MetaOapg.properties.bip44addressIndex, decimal.Decimal, int, schemas.Unset] = schemas.unset, - bip44change: typing.Union[MetaOapg.properties.bip44change, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, - derivationPath: typing.Union[MetaOapg.properties.derivationPath, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'UnsignedMessage': - return super().__new__( - cls, - *_args, - content=content, - bip44addressIndex=bip44addressIndex, - bip44change=bip44change, - derivationPath=derivationPath, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/unspent_input.py b/fireblocks_client/model/unspent_input.py deleted file mode 100644 index d3ff23d3..00000000 --- a/fireblocks_client/model/unspent_input.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class UnspentInput( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - txHash = schemas.StrSchema - index = schemas.NumberSchema - __annotations__ = { - "txHash": txHash, - "index": index, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["txHash"]) -> MetaOapg.properties.txHash: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["index"]) -> MetaOapg.properties.index: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["txHash", "index", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["txHash"]) -> typing.Union[MetaOapg.properties.txHash, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["index"]) -> typing.Union[MetaOapg.properties.index, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["txHash", "index", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - txHash: typing.Union[MetaOapg.properties.txHash, str, schemas.Unset] = schemas.unset, - index: typing.Union[MetaOapg.properties.index, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'UnspentInput': - return super().__new__( - cls, - *_args, - txHash=txHash, - index=index, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/unspent_input.pyi b/fireblocks_client/model/unspent_input.pyi deleted file mode 100644 index d3ff23d3..00000000 --- a/fireblocks_client/model/unspent_input.pyi +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class UnspentInput( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - txHash = schemas.StrSchema - index = schemas.NumberSchema - __annotations__ = { - "txHash": txHash, - "index": index, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["txHash"]) -> MetaOapg.properties.txHash: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["index"]) -> MetaOapg.properties.index: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["txHash", "index", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["txHash"]) -> typing.Union[MetaOapg.properties.txHash, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["index"]) -> typing.Union[MetaOapg.properties.index, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["txHash", "index", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - txHash: typing.Union[MetaOapg.properties.txHash, str, schemas.Unset] = schemas.unset, - index: typing.Union[MetaOapg.properties.index, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'UnspentInput': - return super().__new__( - cls, - *_args, - txHash=txHash, - index=index, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/unspent_inputs_response.py b/fireblocks_client/model/unspent_inputs_response.py deleted file mode 100644 index 139fdfc7..00000000 --- a/fireblocks_client/model/unspent_inputs_response.py +++ /dev/null @@ -1,124 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class UnspentInputsResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def input() -> typing.Type['UnspentInput']: - return UnspentInput - address = schemas.StrSchema - amount = schemas.StrSchema - confirmations = schemas.NumberSchema - status = schemas.StrSchema - __annotations__ = { - "input": input, - "address": address, - "amount": amount, - "confirmations": confirmations, - "status": status, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["input"]) -> 'UnspentInput': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["address"]) -> MetaOapg.properties.address: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["amount"]) -> MetaOapg.properties.amount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["confirmations"]) -> MetaOapg.properties.confirmations: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["status"]) -> MetaOapg.properties.status: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["input", "address", "amount", "confirmations", "status", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["input"]) -> typing.Union['UnspentInput', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["address"]) -> typing.Union[MetaOapg.properties.address, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["amount"]) -> typing.Union[MetaOapg.properties.amount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["confirmations"]) -> typing.Union[MetaOapg.properties.confirmations, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> typing.Union[MetaOapg.properties.status, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["input", "address", "amount", "confirmations", "status", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - input: typing.Union['UnspentInput', schemas.Unset] = schemas.unset, - address: typing.Union[MetaOapg.properties.address, str, schemas.Unset] = schemas.unset, - amount: typing.Union[MetaOapg.properties.amount, str, schemas.Unset] = schemas.unset, - confirmations: typing.Union[MetaOapg.properties.confirmations, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, - status: typing.Union[MetaOapg.properties.status, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'UnspentInputsResponse': - return super().__new__( - cls, - *_args, - input=input, - address=address, - amount=amount, - confirmations=confirmations, - status=status, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.unspent_input import UnspentInput diff --git a/fireblocks_client/model/unspent_inputs_response.pyi b/fireblocks_client/model/unspent_inputs_response.pyi deleted file mode 100644 index 139fdfc7..00000000 --- a/fireblocks_client/model/unspent_inputs_response.pyi +++ /dev/null @@ -1,124 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class UnspentInputsResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def input() -> typing.Type['UnspentInput']: - return UnspentInput - address = schemas.StrSchema - amount = schemas.StrSchema - confirmations = schemas.NumberSchema - status = schemas.StrSchema - __annotations__ = { - "input": input, - "address": address, - "amount": amount, - "confirmations": confirmations, - "status": status, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["input"]) -> 'UnspentInput': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["address"]) -> MetaOapg.properties.address: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["amount"]) -> MetaOapg.properties.amount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["confirmations"]) -> MetaOapg.properties.confirmations: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["status"]) -> MetaOapg.properties.status: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["input", "address", "amount", "confirmations", "status", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["input"]) -> typing.Union['UnspentInput', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["address"]) -> typing.Union[MetaOapg.properties.address, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["amount"]) -> typing.Union[MetaOapg.properties.amount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["confirmations"]) -> typing.Union[MetaOapg.properties.confirmations, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> typing.Union[MetaOapg.properties.status, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["input", "address", "amount", "confirmations", "status", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - input: typing.Union['UnspentInput', schemas.Unset] = schemas.unset, - address: typing.Union[MetaOapg.properties.address, str, schemas.Unset] = schemas.unset, - amount: typing.Union[MetaOapg.properties.amount, str, schemas.Unset] = schemas.unset, - confirmations: typing.Union[MetaOapg.properties.confirmations, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, - status: typing.Union[MetaOapg.properties.status, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'UnspentInputsResponse': - return super().__new__( - cls, - *_args, - input=input, - address=address, - amount=amount, - confirmations=confirmations, - status=status, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.unspent_input import UnspentInput diff --git a/fireblocks_client/model/update_token_ownership_status_dto.py b/fireblocks_client/model/update_token_ownership_status_dto.py deleted file mode 100644 index 020c1140..00000000 --- a/fireblocks_client/model/update_token_ownership_status_dto.py +++ /dev/null @@ -1,104 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class UpdateTokenOwnershipStatusDto( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "status", - } - - class properties: - - - class status( - schemas.EnumBase, - schemas.StrSchema - ): - - - class MetaOapg: - enum_value_to_name = { - "LISTED": "LISTED", - "ARCHIVED": "ARCHIVED", - } - - @schemas.classproperty - def LISTED(cls): - return cls("LISTED") - - @schemas.classproperty - def ARCHIVED(cls): - return cls("ARCHIVED") - __annotations__ = { - "status": status, - } - - status: MetaOapg.properties.status - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["status"]) -> MetaOapg.properties.status: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["status", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> MetaOapg.properties.status: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["status", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - status: typing.Union[MetaOapg.properties.status, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'UpdateTokenOwnershipStatusDto': - return super().__new__( - cls, - *_args, - status=status, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/update_token_ownership_status_dto.pyi b/fireblocks_client/model/update_token_ownership_status_dto.pyi deleted file mode 100644 index 3d153e56..00000000 --- a/fireblocks_client/model/update_token_ownership_status_dto.pyi +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class UpdateTokenOwnershipStatusDto( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "status", - } - - class properties: - - - class status( - schemas.EnumBase, - schemas.StrSchema - ): - - @schemas.classproperty - def LISTED(cls): - return cls("LISTED") - - @schemas.classproperty - def ARCHIVED(cls): - return cls("ARCHIVED") - __annotations__ = { - "status": status, - } - - status: MetaOapg.properties.status - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["status"]) -> MetaOapg.properties.status: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["status", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> MetaOapg.properties.status: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["status", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - status: typing.Union[MetaOapg.properties.status, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'UpdateTokenOwnershipStatusDto': - return super().__new__( - cls, - *_args, - status=status, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/user_group_create_request.py b/fireblocks_client/model/user_group_create_request.py deleted file mode 100644 index 743e7770..00000000 --- a/fireblocks_client/model/user_group_create_request.py +++ /dev/null @@ -1,111 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class UserGroupCreateRequest( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - groupName = schemas.StrSchema - - - class memberIds( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.StrSchema - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'memberIds': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - __annotations__ = { - "groupName": groupName, - "memberIds": memberIds, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["groupName"]) -> MetaOapg.properties.groupName: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["memberIds"]) -> MetaOapg.properties.memberIds: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["groupName", "memberIds", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["groupName"]) -> typing.Union[MetaOapg.properties.groupName, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["memberIds"]) -> typing.Union[MetaOapg.properties.memberIds, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["groupName", "memberIds", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - groupName: typing.Union[MetaOapg.properties.groupName, str, schemas.Unset] = schemas.unset, - memberIds: typing.Union[MetaOapg.properties.memberIds, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'UserGroupCreateRequest': - return super().__new__( - cls, - *_args, - groupName=groupName, - memberIds=memberIds, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/user_group_create_request.pyi b/fireblocks_client/model/user_group_create_request.pyi deleted file mode 100644 index 743e7770..00000000 --- a/fireblocks_client/model/user_group_create_request.pyi +++ /dev/null @@ -1,111 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class UserGroupCreateRequest( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - groupName = schemas.StrSchema - - - class memberIds( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.StrSchema - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'memberIds': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - __annotations__ = { - "groupName": groupName, - "memberIds": memberIds, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["groupName"]) -> MetaOapg.properties.groupName: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["memberIds"]) -> MetaOapg.properties.memberIds: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["groupName", "memberIds", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["groupName"]) -> typing.Union[MetaOapg.properties.groupName, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["memberIds"]) -> typing.Union[MetaOapg.properties.memberIds, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["groupName", "memberIds", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - groupName: typing.Union[MetaOapg.properties.groupName, str, schemas.Unset] = schemas.unset, - memberIds: typing.Union[MetaOapg.properties.memberIds, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'UserGroupCreateRequest': - return super().__new__( - cls, - *_args, - groupName=groupName, - memberIds=memberIds, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/user_group_create_response.py b/fireblocks_client/model/user_group_create_response.py deleted file mode 100644 index fe2ec63d..00000000 --- a/fireblocks_client/model/user_group_create_response.py +++ /dev/null @@ -1,131 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class UserGroupCreateResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - name = schemas.StrSchema - id = schemas.StrSchema - - - class memberIds( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.StrSchema - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'memberIds': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - status = schemas.StrSchema - __annotations__ = { - "name": name, - "id": id, - "memberIds": memberIds, - "status": status, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["memberIds"]) -> MetaOapg.properties.memberIds: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["status"]) -> MetaOapg.properties.status: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "id", "memberIds", "status", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["memberIds"]) -> typing.Union[MetaOapg.properties.memberIds, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> typing.Union[MetaOapg.properties.status, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "id", "memberIds", "status", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - memberIds: typing.Union[MetaOapg.properties.memberIds, list, tuple, schemas.Unset] = schemas.unset, - status: typing.Union[MetaOapg.properties.status, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'UserGroupCreateResponse': - return super().__new__( - cls, - *_args, - name=name, - id=id, - memberIds=memberIds, - status=status, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/user_group_create_response.pyi b/fireblocks_client/model/user_group_create_response.pyi deleted file mode 100644 index fe2ec63d..00000000 --- a/fireblocks_client/model/user_group_create_response.pyi +++ /dev/null @@ -1,131 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class UserGroupCreateResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - name = schemas.StrSchema - id = schemas.StrSchema - - - class memberIds( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.StrSchema - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'memberIds': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - status = schemas.StrSchema - __annotations__ = { - "name": name, - "id": id, - "memberIds": memberIds, - "status": status, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["memberIds"]) -> MetaOapg.properties.memberIds: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["status"]) -> MetaOapg.properties.status: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "id", "memberIds", "status", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["memberIds"]) -> typing.Union[MetaOapg.properties.memberIds, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> typing.Union[MetaOapg.properties.status, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "id", "memberIds", "status", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - memberIds: typing.Union[MetaOapg.properties.memberIds, list, tuple, schemas.Unset] = schemas.unset, - status: typing.Union[MetaOapg.properties.status, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'UserGroupCreateResponse': - return super().__new__( - cls, - *_args, - name=name, - id=id, - memberIds=memberIds, - status=status, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/user_group_update_request.py b/fireblocks_client/model/user_group_update_request.py deleted file mode 100644 index 247d05f5..00000000 --- a/fireblocks_client/model/user_group_update_request.py +++ /dev/null @@ -1,111 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class UserGroupUpdateRequest( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - groupName = schemas.StrSchema - - - class memberIds( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.StrSchema - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'memberIds': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - __annotations__ = { - "groupName": groupName, - "memberIds": memberIds, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["groupName"]) -> MetaOapg.properties.groupName: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["memberIds"]) -> MetaOapg.properties.memberIds: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["groupName", "memberIds", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["groupName"]) -> typing.Union[MetaOapg.properties.groupName, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["memberIds"]) -> typing.Union[MetaOapg.properties.memberIds, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["groupName", "memberIds", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - groupName: typing.Union[MetaOapg.properties.groupName, str, schemas.Unset] = schemas.unset, - memberIds: typing.Union[MetaOapg.properties.memberIds, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'UserGroupUpdateRequest': - return super().__new__( - cls, - *_args, - groupName=groupName, - memberIds=memberIds, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/user_group_update_request.pyi b/fireblocks_client/model/user_group_update_request.pyi deleted file mode 100644 index 247d05f5..00000000 --- a/fireblocks_client/model/user_group_update_request.pyi +++ /dev/null @@ -1,111 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class UserGroupUpdateRequest( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - groupName = schemas.StrSchema - - - class memberIds( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.StrSchema - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'memberIds': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - __annotations__ = { - "groupName": groupName, - "memberIds": memberIds, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["groupName"]) -> MetaOapg.properties.groupName: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["memberIds"]) -> MetaOapg.properties.memberIds: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["groupName", "memberIds", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["groupName"]) -> typing.Union[MetaOapg.properties.groupName, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["memberIds"]) -> typing.Union[MetaOapg.properties.memberIds, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["groupName", "memberIds", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - groupName: typing.Union[MetaOapg.properties.groupName, str, schemas.Unset] = schemas.unset, - memberIds: typing.Union[MetaOapg.properties.memberIds, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'UserGroupUpdateRequest': - return super().__new__( - cls, - *_args, - groupName=groupName, - memberIds=memberIds, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/user_response.py b/fireblocks_client/model/user_response.py deleted file mode 100644 index b45f2304..00000000 --- a/fireblocks_client/model/user_response.py +++ /dev/null @@ -1,129 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class UserResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - id = schemas.StrSchema - firstName = schemas.StrSchema - lastName = schemas.StrSchema - role = schemas.StrSchema - email = schemas.StrSchema - enabled = schemas.BoolSchema - __annotations__ = { - "id": id, - "firstName": firstName, - "lastName": lastName, - "role": role, - "email": email, - "enabled": enabled, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["firstName"]) -> MetaOapg.properties.firstName: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["lastName"]) -> MetaOapg.properties.lastName: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["role"]) -> MetaOapg.properties.role: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["email"]) -> MetaOapg.properties.email: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["enabled"]) -> MetaOapg.properties.enabled: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "firstName", "lastName", "role", "email", "enabled", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["firstName"]) -> typing.Union[MetaOapg.properties.firstName, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["lastName"]) -> typing.Union[MetaOapg.properties.lastName, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["role"]) -> typing.Union[MetaOapg.properties.role, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["email"]) -> typing.Union[MetaOapg.properties.email, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["enabled"]) -> typing.Union[MetaOapg.properties.enabled, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "firstName", "lastName", "role", "email", "enabled", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - firstName: typing.Union[MetaOapg.properties.firstName, str, schemas.Unset] = schemas.unset, - lastName: typing.Union[MetaOapg.properties.lastName, str, schemas.Unset] = schemas.unset, - role: typing.Union[MetaOapg.properties.role, str, schemas.Unset] = schemas.unset, - email: typing.Union[MetaOapg.properties.email, str, schemas.Unset] = schemas.unset, - enabled: typing.Union[MetaOapg.properties.enabled, bool, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'UserResponse': - return super().__new__( - cls, - *_args, - id=id, - firstName=firstName, - lastName=lastName, - role=role, - email=email, - enabled=enabled, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/user_response.pyi b/fireblocks_client/model/user_response.pyi deleted file mode 100644 index b45f2304..00000000 --- a/fireblocks_client/model/user_response.pyi +++ /dev/null @@ -1,129 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class UserResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - id = schemas.StrSchema - firstName = schemas.StrSchema - lastName = schemas.StrSchema - role = schemas.StrSchema - email = schemas.StrSchema - enabled = schemas.BoolSchema - __annotations__ = { - "id": id, - "firstName": firstName, - "lastName": lastName, - "role": role, - "email": email, - "enabled": enabled, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["firstName"]) -> MetaOapg.properties.firstName: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["lastName"]) -> MetaOapg.properties.lastName: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["role"]) -> MetaOapg.properties.role: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["email"]) -> MetaOapg.properties.email: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["enabled"]) -> MetaOapg.properties.enabled: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "firstName", "lastName", "role", "email", "enabled", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["firstName"]) -> typing.Union[MetaOapg.properties.firstName, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["lastName"]) -> typing.Union[MetaOapg.properties.lastName, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["role"]) -> typing.Union[MetaOapg.properties.role, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["email"]) -> typing.Union[MetaOapg.properties.email, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["enabled"]) -> typing.Union[MetaOapg.properties.enabled, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "firstName", "lastName", "role", "email", "enabled", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - firstName: typing.Union[MetaOapg.properties.firstName, str, schemas.Unset] = schemas.unset, - lastName: typing.Union[MetaOapg.properties.lastName, str, schemas.Unset] = schemas.unset, - role: typing.Union[MetaOapg.properties.role, str, schemas.Unset] = schemas.unset, - email: typing.Union[MetaOapg.properties.email, str, schemas.Unset] = schemas.unset, - enabled: typing.Union[MetaOapg.properties.enabled, bool, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'UserResponse': - return super().__new__( - cls, - *_args, - id=id, - firstName=firstName, - lastName=lastName, - role=role, - email=email, - enabled=enabled, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/users_group_response.py b/fireblocks_client/model/users_group_response.py deleted file mode 100644 index 710f3f81..00000000 --- a/fireblocks_client/model/users_group_response.py +++ /dev/null @@ -1,131 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class UsersGroupResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - id = schemas.StrSchema - name = schemas.StrSchema - status = schemas.StrSchema - - - class memberIds( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.StrSchema - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'memberIds': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - __annotations__ = { - "id": id, - "name": name, - "status": status, - "memberIds": memberIds, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["status"]) -> MetaOapg.properties.status: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["memberIds"]) -> MetaOapg.properties.memberIds: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "name", "status", "memberIds", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> typing.Union[MetaOapg.properties.status, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["memberIds"]) -> typing.Union[MetaOapg.properties.memberIds, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "name", "status", "memberIds", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, - status: typing.Union[MetaOapg.properties.status, str, schemas.Unset] = schemas.unset, - memberIds: typing.Union[MetaOapg.properties.memberIds, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'UsersGroupResponse': - return super().__new__( - cls, - *_args, - id=id, - name=name, - status=status, - memberIds=memberIds, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/users_group_response.pyi b/fireblocks_client/model/users_group_response.pyi deleted file mode 100644 index 710f3f81..00000000 --- a/fireblocks_client/model/users_group_response.pyi +++ /dev/null @@ -1,131 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class UsersGroupResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - id = schemas.StrSchema - name = schemas.StrSchema - status = schemas.StrSchema - - - class memberIds( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.StrSchema - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'memberIds': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - __annotations__ = { - "id": id, - "name": name, - "status": status, - "memberIds": memberIds, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["status"]) -> MetaOapg.properties.status: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["memberIds"]) -> MetaOapg.properties.memberIds: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "name", "status", "memberIds", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> typing.Union[MetaOapg.properties.status, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["memberIds"]) -> typing.Union[MetaOapg.properties.memberIds, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "name", "status", "memberIds", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, - status: typing.Union[MetaOapg.properties.status, str, schemas.Unset] = schemas.unset, - memberIds: typing.Union[MetaOapg.properties.memberIds, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'UsersGroupResponse': - return super().__new__( - cls, - *_args, - id=id, - name=name, - status=status, - memberIds=memberIds, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/users_groups_response.py b/fireblocks_client/model/users_groups_response.py deleted file mode 100644 index 42f44040..00000000 --- a/fireblocks_client/model/users_groups_response.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class UsersGroupsResponse( - schemas.ListSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['UsersGroupResponse']: - return UsersGroupResponse - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['UsersGroupResponse'], typing.List['UsersGroupResponse']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'UsersGroupsResponse': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'UsersGroupResponse': - return super().__getitem__(i) - -from fireblocks_client.model.users_group_response import UsersGroupResponse diff --git a/fireblocks_client/model/users_groups_response.pyi b/fireblocks_client/model/users_groups_response.pyi deleted file mode 100644 index 42f44040..00000000 --- a/fireblocks_client/model/users_groups_response.pyi +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class UsersGroupsResponse( - schemas.ListSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['UsersGroupResponse']: - return UsersGroupResponse - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['UsersGroupResponse'], typing.List['UsersGroupResponse']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'UsersGroupsResponse': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'UsersGroupResponse': - return super().__getitem__(i) - -from fireblocks_client.model.users_group_response import UsersGroupResponse diff --git a/fireblocks_client/model/validate_address_response.py b/fireblocks_client/model/validate_address_response.py deleted file mode 100644 index 614ce2fc..00000000 --- a/fireblocks_client/model/validate_address_response.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class ValidateAddressResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - isValid = schemas.BoolSchema - isActive = schemas.BoolSchema - requiresTag = schemas.BoolSchema - __annotations__ = { - "isValid": isValid, - "isActive": isActive, - "requiresTag": requiresTag, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["isValid"]) -> MetaOapg.properties.isValid: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["isActive"]) -> MetaOapg.properties.isActive: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requiresTag"]) -> MetaOapg.properties.requiresTag: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["isValid", "isActive", "requiresTag", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["isValid"]) -> typing.Union[MetaOapg.properties.isValid, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["isActive"]) -> typing.Union[MetaOapg.properties.isActive, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requiresTag"]) -> typing.Union[MetaOapg.properties.requiresTag, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["isValid", "isActive", "requiresTag", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - isValid: typing.Union[MetaOapg.properties.isValid, bool, schemas.Unset] = schemas.unset, - isActive: typing.Union[MetaOapg.properties.isActive, bool, schemas.Unset] = schemas.unset, - requiresTag: typing.Union[MetaOapg.properties.requiresTag, bool, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ValidateAddressResponse': - return super().__new__( - cls, - *_args, - isValid=isValid, - isActive=isActive, - requiresTag=requiresTag, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/validate_address_response.pyi b/fireblocks_client/model/validate_address_response.pyi deleted file mode 100644 index 614ce2fc..00000000 --- a/fireblocks_client/model/validate_address_response.pyi +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class ValidateAddressResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - isValid = schemas.BoolSchema - isActive = schemas.BoolSchema - requiresTag = schemas.BoolSchema - __annotations__ = { - "isValid": isValid, - "isActive": isActive, - "requiresTag": requiresTag, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["isValid"]) -> MetaOapg.properties.isValid: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["isActive"]) -> MetaOapg.properties.isActive: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requiresTag"]) -> MetaOapg.properties.requiresTag: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["isValid", "isActive", "requiresTag", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["isValid"]) -> typing.Union[MetaOapg.properties.isValid, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["isActive"]) -> typing.Union[MetaOapg.properties.isActive, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requiresTag"]) -> typing.Union[MetaOapg.properties.requiresTag, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["isValid", "isActive", "requiresTag", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - isValid: typing.Union[MetaOapg.properties.isValid, bool, schemas.Unset] = schemas.unset, - isActive: typing.Union[MetaOapg.properties.isActive, bool, schemas.Unset] = schemas.unset, - requiresTag: typing.Union[MetaOapg.properties.requiresTag, bool, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ValidateAddressResponse': - return super().__new__( - cls, - *_args, - isValid=isValid, - isActive=isActive, - requiresTag=requiresTag, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/vault_account.py b/fireblocks_client/model/vault_account.py deleted file mode 100644 index 1539c9f2..00000000 --- a/fireblocks_client/model/vault_account.py +++ /dev/null @@ -1,156 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class VaultAccount( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - id = schemas.StrSchema - name = schemas.StrSchema - - - class assets( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['VaultAsset']: - return VaultAsset - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['VaultAsset'], typing.List['VaultAsset']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'assets': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'VaultAsset': - return super().__getitem__(i) - hiddenOnUI = schemas.BoolSchema - customerRefId = schemas.StrSchema - autoFuel = schemas.BoolSchema - __annotations__ = { - "id": id, - "name": name, - "assets": assets, - "hiddenOnUI": hiddenOnUI, - "customerRefId": customerRefId, - "autoFuel": autoFuel, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["assets"]) -> MetaOapg.properties.assets: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["hiddenOnUI"]) -> MetaOapg.properties.hiddenOnUI: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["customerRefId"]) -> MetaOapg.properties.customerRefId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["autoFuel"]) -> MetaOapg.properties.autoFuel: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "name", "assets", "hiddenOnUI", "customerRefId", "autoFuel", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["assets"]) -> typing.Union[MetaOapg.properties.assets, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["hiddenOnUI"]) -> typing.Union[MetaOapg.properties.hiddenOnUI, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["customerRefId"]) -> typing.Union[MetaOapg.properties.customerRefId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["autoFuel"]) -> typing.Union[MetaOapg.properties.autoFuel, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "name", "assets", "hiddenOnUI", "customerRefId", "autoFuel", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, - assets: typing.Union[MetaOapg.properties.assets, list, tuple, schemas.Unset] = schemas.unset, - hiddenOnUI: typing.Union[MetaOapg.properties.hiddenOnUI, bool, schemas.Unset] = schemas.unset, - customerRefId: typing.Union[MetaOapg.properties.customerRefId, str, schemas.Unset] = schemas.unset, - autoFuel: typing.Union[MetaOapg.properties.autoFuel, bool, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'VaultAccount': - return super().__new__( - cls, - *_args, - id=id, - name=name, - assets=assets, - hiddenOnUI=hiddenOnUI, - customerRefId=customerRefId, - autoFuel=autoFuel, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.vault_asset import VaultAsset diff --git a/fireblocks_client/model/vault_account.pyi b/fireblocks_client/model/vault_account.pyi deleted file mode 100644 index 1539c9f2..00000000 --- a/fireblocks_client/model/vault_account.pyi +++ /dev/null @@ -1,156 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class VaultAccount( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - id = schemas.StrSchema - name = schemas.StrSchema - - - class assets( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['VaultAsset']: - return VaultAsset - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['VaultAsset'], typing.List['VaultAsset']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'assets': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'VaultAsset': - return super().__getitem__(i) - hiddenOnUI = schemas.BoolSchema - customerRefId = schemas.StrSchema - autoFuel = schemas.BoolSchema - __annotations__ = { - "id": id, - "name": name, - "assets": assets, - "hiddenOnUI": hiddenOnUI, - "customerRefId": customerRefId, - "autoFuel": autoFuel, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["assets"]) -> MetaOapg.properties.assets: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["hiddenOnUI"]) -> MetaOapg.properties.hiddenOnUI: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["customerRefId"]) -> MetaOapg.properties.customerRefId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["autoFuel"]) -> MetaOapg.properties.autoFuel: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "name", "assets", "hiddenOnUI", "customerRefId", "autoFuel", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["assets"]) -> typing.Union[MetaOapg.properties.assets, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["hiddenOnUI"]) -> typing.Union[MetaOapg.properties.hiddenOnUI, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["customerRefId"]) -> typing.Union[MetaOapg.properties.customerRefId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["autoFuel"]) -> typing.Union[MetaOapg.properties.autoFuel, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "name", "assets", "hiddenOnUI", "customerRefId", "autoFuel", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, - assets: typing.Union[MetaOapg.properties.assets, list, tuple, schemas.Unset] = schemas.unset, - hiddenOnUI: typing.Union[MetaOapg.properties.hiddenOnUI, bool, schemas.Unset] = schemas.unset, - customerRefId: typing.Union[MetaOapg.properties.customerRefId, str, schemas.Unset] = schemas.unset, - autoFuel: typing.Union[MetaOapg.properties.autoFuel, bool, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'VaultAccount': - return super().__new__( - cls, - *_args, - id=id, - name=name, - assets=assets, - hiddenOnUI=hiddenOnUI, - customerRefId=customerRefId, - autoFuel=autoFuel, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.vault_asset import VaultAsset diff --git a/fireblocks_client/model/vault_accounts_paged_response.py b/fireblocks_client/model/vault_accounts_paged_response.py deleted file mode 100644 index d2150a6d..00000000 --- a/fireblocks_client/model/vault_accounts_paged_response.py +++ /dev/null @@ -1,195 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class VaultAccountsPagedResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class accounts( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['VaultAccount']: - return VaultAccount - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['VaultAccount'], typing.List['VaultAccount']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'accounts': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'VaultAccount': - return super().__getitem__(i) - - - class paging( - schemas.DictSchema - ): - - - class MetaOapg: - - class properties: - before = schemas.StrSchema - after = schemas.StrSchema - __annotations__ = { - "before": before, - "after": after, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["before"]) -> MetaOapg.properties.before: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["after"]) -> MetaOapg.properties.after: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["before", "after", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["before"]) -> typing.Union[MetaOapg.properties.before, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["after"]) -> typing.Union[MetaOapg.properties.after, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["before", "after", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - before: typing.Union[MetaOapg.properties.before, str, schemas.Unset] = schemas.unset, - after: typing.Union[MetaOapg.properties.after, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'paging': - return super().__new__( - cls, - *_args, - before=before, - after=after, - _configuration=_configuration, - **kwargs, - ) - previousUrl = schemas.StrSchema - nextUrl = schemas.StrSchema - __annotations__ = { - "accounts": accounts, - "paging": paging, - "previousUrl": previousUrl, - "nextUrl": nextUrl, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["accounts"]) -> MetaOapg.properties.accounts: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["paging"]) -> MetaOapg.properties.paging: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["previousUrl"]) -> MetaOapg.properties.previousUrl: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["nextUrl"]) -> MetaOapg.properties.nextUrl: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["accounts", "paging", "previousUrl", "nextUrl", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["accounts"]) -> typing.Union[MetaOapg.properties.accounts, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["paging"]) -> typing.Union[MetaOapg.properties.paging, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["previousUrl"]) -> typing.Union[MetaOapg.properties.previousUrl, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["nextUrl"]) -> typing.Union[MetaOapg.properties.nextUrl, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["accounts", "paging", "previousUrl", "nextUrl", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - accounts: typing.Union[MetaOapg.properties.accounts, list, tuple, schemas.Unset] = schemas.unset, - paging: typing.Union[MetaOapg.properties.paging, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - previousUrl: typing.Union[MetaOapg.properties.previousUrl, str, schemas.Unset] = schemas.unset, - nextUrl: typing.Union[MetaOapg.properties.nextUrl, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'VaultAccountsPagedResponse': - return super().__new__( - cls, - *_args, - accounts=accounts, - paging=paging, - previousUrl=previousUrl, - nextUrl=nextUrl, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.vault_account import VaultAccount diff --git a/fireblocks_client/model/vault_accounts_paged_response.pyi b/fireblocks_client/model/vault_accounts_paged_response.pyi deleted file mode 100644 index d2150a6d..00000000 --- a/fireblocks_client/model/vault_accounts_paged_response.pyi +++ /dev/null @@ -1,195 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class VaultAccountsPagedResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class accounts( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['VaultAccount']: - return VaultAccount - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['VaultAccount'], typing.List['VaultAccount']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'accounts': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'VaultAccount': - return super().__getitem__(i) - - - class paging( - schemas.DictSchema - ): - - - class MetaOapg: - - class properties: - before = schemas.StrSchema - after = schemas.StrSchema - __annotations__ = { - "before": before, - "after": after, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["before"]) -> MetaOapg.properties.before: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["after"]) -> MetaOapg.properties.after: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["before", "after", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["before"]) -> typing.Union[MetaOapg.properties.before, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["after"]) -> typing.Union[MetaOapg.properties.after, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["before", "after", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - before: typing.Union[MetaOapg.properties.before, str, schemas.Unset] = schemas.unset, - after: typing.Union[MetaOapg.properties.after, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'paging': - return super().__new__( - cls, - *_args, - before=before, - after=after, - _configuration=_configuration, - **kwargs, - ) - previousUrl = schemas.StrSchema - nextUrl = schemas.StrSchema - __annotations__ = { - "accounts": accounts, - "paging": paging, - "previousUrl": previousUrl, - "nextUrl": nextUrl, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["accounts"]) -> MetaOapg.properties.accounts: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["paging"]) -> MetaOapg.properties.paging: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["previousUrl"]) -> MetaOapg.properties.previousUrl: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["nextUrl"]) -> MetaOapg.properties.nextUrl: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["accounts", "paging", "previousUrl", "nextUrl", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["accounts"]) -> typing.Union[MetaOapg.properties.accounts, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["paging"]) -> typing.Union[MetaOapg.properties.paging, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["previousUrl"]) -> typing.Union[MetaOapg.properties.previousUrl, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["nextUrl"]) -> typing.Union[MetaOapg.properties.nextUrl, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["accounts", "paging", "previousUrl", "nextUrl", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - accounts: typing.Union[MetaOapg.properties.accounts, list, tuple, schemas.Unset] = schemas.unset, - paging: typing.Union[MetaOapg.properties.paging, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - previousUrl: typing.Union[MetaOapg.properties.previousUrl, str, schemas.Unset] = schemas.unset, - nextUrl: typing.Union[MetaOapg.properties.nextUrl, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'VaultAccountsPagedResponse': - return super().__new__( - cls, - *_args, - accounts=accounts, - paging=paging, - previousUrl=previousUrl, - nextUrl=nextUrl, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.vault_account import VaultAccount diff --git a/fireblocks_client/model/vault_asset.py b/fireblocks_client/model/vault_asset.py deleted file mode 100644 index 7f277bd7..00000000 --- a/fireblocks_client/model/vault_asset.py +++ /dev/null @@ -1,244 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class VaultAsset( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - id = schemas.StrSchema - total = schemas.StrSchema - balance = schemas.StrSchema - available = schemas.StrSchema - pending = schemas.StrSchema - frozen = schemas.StrSchema - lockedAmount = schemas.StrSchema - staked = schemas.StrSchema - totalStakedCPU = schemas.NumberSchema - totalStakedNetwork = schemas.StrSchema - selfStakedCPU = schemas.StrSchema - selfStakedNetwork = schemas.StrSchema - pendingRefundCPU = schemas.StrSchema - pendingRefundNetwork = schemas.StrSchema - blockHeight = schemas.StrSchema - blockHash = schemas.StrSchema - - @staticmethod - def rewardsInfo() -> typing.Type['RewardsInfo']: - return RewardsInfo - __annotations__ = { - "id": id, - "total": total, - "balance": balance, - "available": available, - "pending": pending, - "frozen": frozen, - "lockedAmount": lockedAmount, - "staked": staked, - "totalStakedCPU": totalStakedCPU, - "totalStakedNetwork": totalStakedNetwork, - "selfStakedCPU": selfStakedCPU, - "selfStakedNetwork": selfStakedNetwork, - "pendingRefundCPU": pendingRefundCPU, - "pendingRefundNetwork": pendingRefundNetwork, - "blockHeight": blockHeight, - "blockHash": blockHash, - "rewardsInfo": rewardsInfo, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["total"]) -> MetaOapg.properties.total: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["balance"]) -> MetaOapg.properties.balance: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["available"]) -> MetaOapg.properties.available: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["pending"]) -> MetaOapg.properties.pending: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["frozen"]) -> MetaOapg.properties.frozen: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["lockedAmount"]) -> MetaOapg.properties.lockedAmount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["staked"]) -> MetaOapg.properties.staked: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["totalStakedCPU"]) -> MetaOapg.properties.totalStakedCPU: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["totalStakedNetwork"]) -> MetaOapg.properties.totalStakedNetwork: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["selfStakedCPU"]) -> MetaOapg.properties.selfStakedCPU: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["selfStakedNetwork"]) -> MetaOapg.properties.selfStakedNetwork: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["pendingRefundCPU"]) -> MetaOapg.properties.pendingRefundCPU: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["pendingRefundNetwork"]) -> MetaOapg.properties.pendingRefundNetwork: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["blockHeight"]) -> MetaOapg.properties.blockHeight: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["blockHash"]) -> MetaOapg.properties.blockHash: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["rewardsInfo"]) -> 'RewardsInfo': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "total", "balance", "available", "pending", "frozen", "lockedAmount", "staked", "totalStakedCPU", "totalStakedNetwork", "selfStakedCPU", "selfStakedNetwork", "pendingRefundCPU", "pendingRefundNetwork", "blockHeight", "blockHash", "rewardsInfo", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["total"]) -> typing.Union[MetaOapg.properties.total, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["balance"]) -> typing.Union[MetaOapg.properties.balance, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["available"]) -> typing.Union[MetaOapg.properties.available, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["pending"]) -> typing.Union[MetaOapg.properties.pending, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["frozen"]) -> typing.Union[MetaOapg.properties.frozen, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["lockedAmount"]) -> typing.Union[MetaOapg.properties.lockedAmount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["staked"]) -> typing.Union[MetaOapg.properties.staked, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["totalStakedCPU"]) -> typing.Union[MetaOapg.properties.totalStakedCPU, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["totalStakedNetwork"]) -> typing.Union[MetaOapg.properties.totalStakedNetwork, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["selfStakedCPU"]) -> typing.Union[MetaOapg.properties.selfStakedCPU, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["selfStakedNetwork"]) -> typing.Union[MetaOapg.properties.selfStakedNetwork, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["pendingRefundCPU"]) -> typing.Union[MetaOapg.properties.pendingRefundCPU, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["pendingRefundNetwork"]) -> typing.Union[MetaOapg.properties.pendingRefundNetwork, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["blockHeight"]) -> typing.Union[MetaOapg.properties.blockHeight, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["blockHash"]) -> typing.Union[MetaOapg.properties.blockHash, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["rewardsInfo"]) -> typing.Union['RewardsInfo', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "total", "balance", "available", "pending", "frozen", "lockedAmount", "staked", "totalStakedCPU", "totalStakedNetwork", "selfStakedCPU", "selfStakedNetwork", "pendingRefundCPU", "pendingRefundNetwork", "blockHeight", "blockHash", "rewardsInfo", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - total: typing.Union[MetaOapg.properties.total, str, schemas.Unset] = schemas.unset, - balance: typing.Union[MetaOapg.properties.balance, str, schemas.Unset] = schemas.unset, - available: typing.Union[MetaOapg.properties.available, str, schemas.Unset] = schemas.unset, - pending: typing.Union[MetaOapg.properties.pending, str, schemas.Unset] = schemas.unset, - frozen: typing.Union[MetaOapg.properties.frozen, str, schemas.Unset] = schemas.unset, - lockedAmount: typing.Union[MetaOapg.properties.lockedAmount, str, schemas.Unset] = schemas.unset, - staked: typing.Union[MetaOapg.properties.staked, str, schemas.Unset] = schemas.unset, - totalStakedCPU: typing.Union[MetaOapg.properties.totalStakedCPU, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, - totalStakedNetwork: typing.Union[MetaOapg.properties.totalStakedNetwork, str, schemas.Unset] = schemas.unset, - selfStakedCPU: typing.Union[MetaOapg.properties.selfStakedCPU, str, schemas.Unset] = schemas.unset, - selfStakedNetwork: typing.Union[MetaOapg.properties.selfStakedNetwork, str, schemas.Unset] = schemas.unset, - pendingRefundCPU: typing.Union[MetaOapg.properties.pendingRefundCPU, str, schemas.Unset] = schemas.unset, - pendingRefundNetwork: typing.Union[MetaOapg.properties.pendingRefundNetwork, str, schemas.Unset] = schemas.unset, - blockHeight: typing.Union[MetaOapg.properties.blockHeight, str, schemas.Unset] = schemas.unset, - blockHash: typing.Union[MetaOapg.properties.blockHash, str, schemas.Unset] = schemas.unset, - rewardsInfo: typing.Union['RewardsInfo', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'VaultAsset': - return super().__new__( - cls, - *_args, - id=id, - total=total, - balance=balance, - available=available, - pending=pending, - frozen=frozen, - lockedAmount=lockedAmount, - staked=staked, - totalStakedCPU=totalStakedCPU, - totalStakedNetwork=totalStakedNetwork, - selfStakedCPU=selfStakedCPU, - selfStakedNetwork=selfStakedNetwork, - pendingRefundCPU=pendingRefundCPU, - pendingRefundNetwork=pendingRefundNetwork, - blockHeight=blockHeight, - blockHash=blockHash, - rewardsInfo=rewardsInfo, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.rewards_info import RewardsInfo diff --git a/fireblocks_client/model/vault_asset.pyi b/fireblocks_client/model/vault_asset.pyi deleted file mode 100644 index 7f277bd7..00000000 --- a/fireblocks_client/model/vault_asset.pyi +++ /dev/null @@ -1,244 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class VaultAsset( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - id = schemas.StrSchema - total = schemas.StrSchema - balance = schemas.StrSchema - available = schemas.StrSchema - pending = schemas.StrSchema - frozen = schemas.StrSchema - lockedAmount = schemas.StrSchema - staked = schemas.StrSchema - totalStakedCPU = schemas.NumberSchema - totalStakedNetwork = schemas.StrSchema - selfStakedCPU = schemas.StrSchema - selfStakedNetwork = schemas.StrSchema - pendingRefundCPU = schemas.StrSchema - pendingRefundNetwork = schemas.StrSchema - blockHeight = schemas.StrSchema - blockHash = schemas.StrSchema - - @staticmethod - def rewardsInfo() -> typing.Type['RewardsInfo']: - return RewardsInfo - __annotations__ = { - "id": id, - "total": total, - "balance": balance, - "available": available, - "pending": pending, - "frozen": frozen, - "lockedAmount": lockedAmount, - "staked": staked, - "totalStakedCPU": totalStakedCPU, - "totalStakedNetwork": totalStakedNetwork, - "selfStakedCPU": selfStakedCPU, - "selfStakedNetwork": selfStakedNetwork, - "pendingRefundCPU": pendingRefundCPU, - "pendingRefundNetwork": pendingRefundNetwork, - "blockHeight": blockHeight, - "blockHash": blockHash, - "rewardsInfo": rewardsInfo, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["total"]) -> MetaOapg.properties.total: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["balance"]) -> MetaOapg.properties.balance: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["available"]) -> MetaOapg.properties.available: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["pending"]) -> MetaOapg.properties.pending: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["frozen"]) -> MetaOapg.properties.frozen: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["lockedAmount"]) -> MetaOapg.properties.lockedAmount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["staked"]) -> MetaOapg.properties.staked: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["totalStakedCPU"]) -> MetaOapg.properties.totalStakedCPU: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["totalStakedNetwork"]) -> MetaOapg.properties.totalStakedNetwork: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["selfStakedCPU"]) -> MetaOapg.properties.selfStakedCPU: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["selfStakedNetwork"]) -> MetaOapg.properties.selfStakedNetwork: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["pendingRefundCPU"]) -> MetaOapg.properties.pendingRefundCPU: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["pendingRefundNetwork"]) -> MetaOapg.properties.pendingRefundNetwork: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["blockHeight"]) -> MetaOapg.properties.blockHeight: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["blockHash"]) -> MetaOapg.properties.blockHash: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["rewardsInfo"]) -> 'RewardsInfo': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "total", "balance", "available", "pending", "frozen", "lockedAmount", "staked", "totalStakedCPU", "totalStakedNetwork", "selfStakedCPU", "selfStakedNetwork", "pendingRefundCPU", "pendingRefundNetwork", "blockHeight", "blockHash", "rewardsInfo", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["total"]) -> typing.Union[MetaOapg.properties.total, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["balance"]) -> typing.Union[MetaOapg.properties.balance, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["available"]) -> typing.Union[MetaOapg.properties.available, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["pending"]) -> typing.Union[MetaOapg.properties.pending, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["frozen"]) -> typing.Union[MetaOapg.properties.frozen, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["lockedAmount"]) -> typing.Union[MetaOapg.properties.lockedAmount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["staked"]) -> typing.Union[MetaOapg.properties.staked, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["totalStakedCPU"]) -> typing.Union[MetaOapg.properties.totalStakedCPU, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["totalStakedNetwork"]) -> typing.Union[MetaOapg.properties.totalStakedNetwork, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["selfStakedCPU"]) -> typing.Union[MetaOapg.properties.selfStakedCPU, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["selfStakedNetwork"]) -> typing.Union[MetaOapg.properties.selfStakedNetwork, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["pendingRefundCPU"]) -> typing.Union[MetaOapg.properties.pendingRefundCPU, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["pendingRefundNetwork"]) -> typing.Union[MetaOapg.properties.pendingRefundNetwork, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["blockHeight"]) -> typing.Union[MetaOapg.properties.blockHeight, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["blockHash"]) -> typing.Union[MetaOapg.properties.blockHash, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["rewardsInfo"]) -> typing.Union['RewardsInfo', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "total", "balance", "available", "pending", "frozen", "lockedAmount", "staked", "totalStakedCPU", "totalStakedNetwork", "selfStakedCPU", "selfStakedNetwork", "pendingRefundCPU", "pendingRefundNetwork", "blockHeight", "blockHash", "rewardsInfo", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - total: typing.Union[MetaOapg.properties.total, str, schemas.Unset] = schemas.unset, - balance: typing.Union[MetaOapg.properties.balance, str, schemas.Unset] = schemas.unset, - available: typing.Union[MetaOapg.properties.available, str, schemas.Unset] = schemas.unset, - pending: typing.Union[MetaOapg.properties.pending, str, schemas.Unset] = schemas.unset, - frozen: typing.Union[MetaOapg.properties.frozen, str, schemas.Unset] = schemas.unset, - lockedAmount: typing.Union[MetaOapg.properties.lockedAmount, str, schemas.Unset] = schemas.unset, - staked: typing.Union[MetaOapg.properties.staked, str, schemas.Unset] = schemas.unset, - totalStakedCPU: typing.Union[MetaOapg.properties.totalStakedCPU, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, - totalStakedNetwork: typing.Union[MetaOapg.properties.totalStakedNetwork, str, schemas.Unset] = schemas.unset, - selfStakedCPU: typing.Union[MetaOapg.properties.selfStakedCPU, str, schemas.Unset] = schemas.unset, - selfStakedNetwork: typing.Union[MetaOapg.properties.selfStakedNetwork, str, schemas.Unset] = schemas.unset, - pendingRefundCPU: typing.Union[MetaOapg.properties.pendingRefundCPU, str, schemas.Unset] = schemas.unset, - pendingRefundNetwork: typing.Union[MetaOapg.properties.pendingRefundNetwork, str, schemas.Unset] = schemas.unset, - blockHeight: typing.Union[MetaOapg.properties.blockHeight, str, schemas.Unset] = schemas.unset, - blockHash: typing.Union[MetaOapg.properties.blockHash, str, schemas.Unset] = schemas.unset, - rewardsInfo: typing.Union['RewardsInfo', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'VaultAsset': - return super().__new__( - cls, - *_args, - id=id, - total=total, - balance=balance, - available=available, - pending=pending, - frozen=frozen, - lockedAmount=lockedAmount, - staked=staked, - totalStakedCPU=totalStakedCPU, - totalStakedNetwork=totalStakedNetwork, - selfStakedCPU=selfStakedCPU, - selfStakedNetwork=selfStakedNetwork, - pendingRefundCPU=pendingRefundCPU, - pendingRefundNetwork=pendingRefundNetwork, - blockHeight=blockHeight, - blockHash=blockHash, - rewardsInfo=rewardsInfo, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.rewards_info import RewardsInfo diff --git a/fireblocks_client/model/vault_wallet_address.py b/fireblocks_client/model/vault_wallet_address.py deleted file mode 100644 index 10f4d93b..00000000 --- a/fireblocks_client/model/vault_wallet_address.py +++ /dev/null @@ -1,199 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class VaultWalletAddress( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - assetId = schemas.StrSchema - address = schemas.StrSchema - description = schemas.StrSchema - tag = schemas.StrSchema - type = schemas.StrSchema - customerRefId = schemas.StrSchema - - - class addressFormat( - schemas.EnumBase, - schemas.StrSchema - ): - - - class MetaOapg: - enum_value_to_name = { - "SEGWIT": "SEGWIT", - "LEGACY": "LEGACY", - } - - @schemas.classproperty - def SEGWIT(cls): - return cls("SEGWIT") - - @schemas.classproperty - def LEGACY(cls): - return cls("LEGACY") - legacyAddress = schemas.StrSchema - enterpriseAddress = schemas.StrSchema - bip44AddressIndex = schemas.IntSchema - userDefined = schemas.BoolSchema - __annotations__ = { - "assetId": assetId, - "address": address, - "description": description, - "tag": tag, - "type": type, - "customerRefId": customerRefId, - "addressFormat": addressFormat, - "legacyAddress": legacyAddress, - "enterpriseAddress": enterpriseAddress, - "bip44AddressIndex": bip44AddressIndex, - "userDefined": userDefined, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["assetId"]) -> MetaOapg.properties.assetId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["address"]) -> MetaOapg.properties.address: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["description"]) -> MetaOapg.properties.description: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["tag"]) -> MetaOapg.properties.tag: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["customerRefId"]) -> MetaOapg.properties.customerRefId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["addressFormat"]) -> MetaOapg.properties.addressFormat: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["legacyAddress"]) -> MetaOapg.properties.legacyAddress: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["enterpriseAddress"]) -> MetaOapg.properties.enterpriseAddress: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["bip44AddressIndex"]) -> MetaOapg.properties.bip44AddressIndex: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["userDefined"]) -> MetaOapg.properties.userDefined: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["assetId", "address", "description", "tag", "type", "customerRefId", "addressFormat", "legacyAddress", "enterpriseAddress", "bip44AddressIndex", "userDefined", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["assetId"]) -> typing.Union[MetaOapg.properties.assetId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["address"]) -> typing.Union[MetaOapg.properties.address, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["description"]) -> typing.Union[MetaOapg.properties.description, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["tag"]) -> typing.Union[MetaOapg.properties.tag, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> typing.Union[MetaOapg.properties.type, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["customerRefId"]) -> typing.Union[MetaOapg.properties.customerRefId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["addressFormat"]) -> typing.Union[MetaOapg.properties.addressFormat, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["legacyAddress"]) -> typing.Union[MetaOapg.properties.legacyAddress, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["enterpriseAddress"]) -> typing.Union[MetaOapg.properties.enterpriseAddress, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["bip44AddressIndex"]) -> typing.Union[MetaOapg.properties.bip44AddressIndex, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["userDefined"]) -> typing.Union[MetaOapg.properties.userDefined, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["assetId", "address", "description", "tag", "type", "customerRefId", "addressFormat", "legacyAddress", "enterpriseAddress", "bip44AddressIndex", "userDefined", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - assetId: typing.Union[MetaOapg.properties.assetId, str, schemas.Unset] = schemas.unset, - address: typing.Union[MetaOapg.properties.address, str, schemas.Unset] = schemas.unset, - description: typing.Union[MetaOapg.properties.description, str, schemas.Unset] = schemas.unset, - tag: typing.Union[MetaOapg.properties.tag, str, schemas.Unset] = schemas.unset, - type: typing.Union[MetaOapg.properties.type, str, schemas.Unset] = schemas.unset, - customerRefId: typing.Union[MetaOapg.properties.customerRefId, str, schemas.Unset] = schemas.unset, - addressFormat: typing.Union[MetaOapg.properties.addressFormat, str, schemas.Unset] = schemas.unset, - legacyAddress: typing.Union[MetaOapg.properties.legacyAddress, str, schemas.Unset] = schemas.unset, - enterpriseAddress: typing.Union[MetaOapg.properties.enterpriseAddress, str, schemas.Unset] = schemas.unset, - bip44AddressIndex: typing.Union[MetaOapg.properties.bip44AddressIndex, decimal.Decimal, int, schemas.Unset] = schemas.unset, - userDefined: typing.Union[MetaOapg.properties.userDefined, bool, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'VaultWalletAddress': - return super().__new__( - cls, - *_args, - assetId=assetId, - address=address, - description=description, - tag=tag, - type=type, - customerRefId=customerRefId, - addressFormat=addressFormat, - legacyAddress=legacyAddress, - enterpriseAddress=enterpriseAddress, - bip44AddressIndex=bip44AddressIndex, - userDefined=userDefined, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/vault_wallet_address.pyi b/fireblocks_client/model/vault_wallet_address.pyi deleted file mode 100644 index 17d47295..00000000 --- a/fireblocks_client/model/vault_wallet_address.pyi +++ /dev/null @@ -1,192 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class VaultWalletAddress( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - assetId = schemas.StrSchema - address = schemas.StrSchema - description = schemas.StrSchema - tag = schemas.StrSchema - type = schemas.StrSchema - customerRefId = schemas.StrSchema - - - class addressFormat( - schemas.EnumBase, - schemas.StrSchema - ): - - @schemas.classproperty - def SEGWIT(cls): - return cls("SEGWIT") - - @schemas.classproperty - def LEGACY(cls): - return cls("LEGACY") - legacyAddress = schemas.StrSchema - enterpriseAddress = schemas.StrSchema - bip44AddressIndex = schemas.IntSchema - userDefined = schemas.BoolSchema - __annotations__ = { - "assetId": assetId, - "address": address, - "description": description, - "tag": tag, - "type": type, - "customerRefId": customerRefId, - "addressFormat": addressFormat, - "legacyAddress": legacyAddress, - "enterpriseAddress": enterpriseAddress, - "bip44AddressIndex": bip44AddressIndex, - "userDefined": userDefined, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["assetId"]) -> MetaOapg.properties.assetId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["address"]) -> MetaOapg.properties.address: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["description"]) -> MetaOapg.properties.description: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["tag"]) -> MetaOapg.properties.tag: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["customerRefId"]) -> MetaOapg.properties.customerRefId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["addressFormat"]) -> MetaOapg.properties.addressFormat: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["legacyAddress"]) -> MetaOapg.properties.legacyAddress: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["enterpriseAddress"]) -> MetaOapg.properties.enterpriseAddress: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["bip44AddressIndex"]) -> MetaOapg.properties.bip44AddressIndex: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["userDefined"]) -> MetaOapg.properties.userDefined: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["assetId", "address", "description", "tag", "type", "customerRefId", "addressFormat", "legacyAddress", "enterpriseAddress", "bip44AddressIndex", "userDefined", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["assetId"]) -> typing.Union[MetaOapg.properties.assetId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["address"]) -> typing.Union[MetaOapg.properties.address, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["description"]) -> typing.Union[MetaOapg.properties.description, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["tag"]) -> typing.Union[MetaOapg.properties.tag, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> typing.Union[MetaOapg.properties.type, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["customerRefId"]) -> typing.Union[MetaOapg.properties.customerRefId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["addressFormat"]) -> typing.Union[MetaOapg.properties.addressFormat, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["legacyAddress"]) -> typing.Union[MetaOapg.properties.legacyAddress, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["enterpriseAddress"]) -> typing.Union[MetaOapg.properties.enterpriseAddress, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["bip44AddressIndex"]) -> typing.Union[MetaOapg.properties.bip44AddressIndex, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["userDefined"]) -> typing.Union[MetaOapg.properties.userDefined, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["assetId", "address", "description", "tag", "type", "customerRefId", "addressFormat", "legacyAddress", "enterpriseAddress", "bip44AddressIndex", "userDefined", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - assetId: typing.Union[MetaOapg.properties.assetId, str, schemas.Unset] = schemas.unset, - address: typing.Union[MetaOapg.properties.address, str, schemas.Unset] = schemas.unset, - description: typing.Union[MetaOapg.properties.description, str, schemas.Unset] = schemas.unset, - tag: typing.Union[MetaOapg.properties.tag, str, schemas.Unset] = schemas.unset, - type: typing.Union[MetaOapg.properties.type, str, schemas.Unset] = schemas.unset, - customerRefId: typing.Union[MetaOapg.properties.customerRefId, str, schemas.Unset] = schemas.unset, - addressFormat: typing.Union[MetaOapg.properties.addressFormat, str, schemas.Unset] = schemas.unset, - legacyAddress: typing.Union[MetaOapg.properties.legacyAddress, str, schemas.Unset] = schemas.unset, - enterpriseAddress: typing.Union[MetaOapg.properties.enterpriseAddress, str, schemas.Unset] = schemas.unset, - bip44AddressIndex: typing.Union[MetaOapg.properties.bip44AddressIndex, decimal.Decimal, int, schemas.Unset] = schemas.unset, - userDefined: typing.Union[MetaOapg.properties.userDefined, bool, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'VaultWalletAddress': - return super().__new__( - cls, - *_args, - assetId=assetId, - address=address, - description=description, - tag=tag, - type=type, - customerRefId=customerRefId, - addressFormat=addressFormat, - legacyAddress=legacyAddress, - enterpriseAddress=enterpriseAddress, - bip44AddressIndex=bip44AddressIndex, - userDefined=userDefined, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/wallet_asset.py b/fireblocks_client/model/wallet_asset.py deleted file mode 100644 index 65ffc3bf..00000000 --- a/fireblocks_client/model/wallet_asset.py +++ /dev/null @@ -1,144 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class WalletAsset( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - id = schemas.StrSchema - balance = schemas.StrSchema - lockedAmount = schemas.StrSchema - - @staticmethod - def status() -> typing.Type['ConfigChangeRequestStatus']: - return ConfigChangeRequestStatus - address = schemas.StrSchema - tag = schemas.StrSchema - activationTime = schemas.StrSchema - __annotations__ = { - "id": id, - "balance": balance, - "lockedAmount": lockedAmount, - "status": status, - "address": address, - "tag": tag, - "activationTime": activationTime, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["balance"]) -> MetaOapg.properties.balance: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["lockedAmount"]) -> MetaOapg.properties.lockedAmount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["status"]) -> 'ConfigChangeRequestStatus': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["address"]) -> MetaOapg.properties.address: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["tag"]) -> MetaOapg.properties.tag: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["activationTime"]) -> MetaOapg.properties.activationTime: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "balance", "lockedAmount", "status", "address", "tag", "activationTime", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["balance"]) -> typing.Union[MetaOapg.properties.balance, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["lockedAmount"]) -> typing.Union[MetaOapg.properties.lockedAmount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> typing.Union['ConfigChangeRequestStatus', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["address"]) -> typing.Union[MetaOapg.properties.address, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["tag"]) -> typing.Union[MetaOapg.properties.tag, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["activationTime"]) -> typing.Union[MetaOapg.properties.activationTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "balance", "lockedAmount", "status", "address", "tag", "activationTime", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - balance: typing.Union[MetaOapg.properties.balance, str, schemas.Unset] = schemas.unset, - lockedAmount: typing.Union[MetaOapg.properties.lockedAmount, str, schemas.Unset] = schemas.unset, - status: typing.Union['ConfigChangeRequestStatus', schemas.Unset] = schemas.unset, - address: typing.Union[MetaOapg.properties.address, str, schemas.Unset] = schemas.unset, - tag: typing.Union[MetaOapg.properties.tag, str, schemas.Unset] = schemas.unset, - activationTime: typing.Union[MetaOapg.properties.activationTime, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'WalletAsset': - return super().__new__( - cls, - *_args, - id=id, - balance=balance, - lockedAmount=lockedAmount, - status=status, - address=address, - tag=tag, - activationTime=activationTime, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.config_change_request_status import ConfigChangeRequestStatus diff --git a/fireblocks_client/model/wallet_asset.pyi b/fireblocks_client/model/wallet_asset.pyi deleted file mode 100644 index 65ffc3bf..00000000 --- a/fireblocks_client/model/wallet_asset.pyi +++ /dev/null @@ -1,144 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class WalletAsset( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - id = schemas.StrSchema - balance = schemas.StrSchema - lockedAmount = schemas.StrSchema - - @staticmethod - def status() -> typing.Type['ConfigChangeRequestStatus']: - return ConfigChangeRequestStatus - address = schemas.StrSchema - tag = schemas.StrSchema - activationTime = schemas.StrSchema - __annotations__ = { - "id": id, - "balance": balance, - "lockedAmount": lockedAmount, - "status": status, - "address": address, - "tag": tag, - "activationTime": activationTime, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["balance"]) -> MetaOapg.properties.balance: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["lockedAmount"]) -> MetaOapg.properties.lockedAmount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["status"]) -> 'ConfigChangeRequestStatus': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["address"]) -> MetaOapg.properties.address: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["tag"]) -> MetaOapg.properties.tag: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["activationTime"]) -> MetaOapg.properties.activationTime: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "balance", "lockedAmount", "status", "address", "tag", "activationTime", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["balance"]) -> typing.Union[MetaOapg.properties.balance, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["lockedAmount"]) -> typing.Union[MetaOapg.properties.lockedAmount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> typing.Union['ConfigChangeRequestStatus', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["address"]) -> typing.Union[MetaOapg.properties.address, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["tag"]) -> typing.Union[MetaOapg.properties.tag, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["activationTime"]) -> typing.Union[MetaOapg.properties.activationTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "balance", "lockedAmount", "status", "address", "tag", "activationTime", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - balance: typing.Union[MetaOapg.properties.balance, str, schemas.Unset] = schemas.unset, - lockedAmount: typing.Union[MetaOapg.properties.lockedAmount, str, schemas.Unset] = schemas.unset, - status: typing.Union['ConfigChangeRequestStatus', schemas.Unset] = schemas.unset, - address: typing.Union[MetaOapg.properties.address, str, schemas.Unset] = schemas.unset, - tag: typing.Union[MetaOapg.properties.tag, str, schemas.Unset] = schemas.unset, - activationTime: typing.Union[MetaOapg.properties.activationTime, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'WalletAsset': - return super().__new__( - cls, - *_args, - id=id, - balance=balance, - lockedAmount=lockedAmount, - status=status, - address=address, - tag=tag, - activationTime=activationTime, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.config_change_request_status import ConfigChangeRequestStatus diff --git a/fireblocks_client/model/wallet_asset_additional_info.py b/fireblocks_client/model/wallet_asset_additional_info.py deleted file mode 100644 index 0ad77156..00000000 --- a/fireblocks_client/model/wallet_asset_additional_info.py +++ /dev/null @@ -1,229 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class WalletAssetAdditionalInfo( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - accountHolderGivenName = schemas.StrSchema - accountHolderSurname = schemas.StrSchema - accountHolderCity = schemas.StrSchema - accountHolderCountry = schemas.StrSchema - accountHolderAddress1 = schemas.StrSchema - accountHolderAddress2 = schemas.StrSchema - accountHolderDistrict = schemas.StrSchema - accountHolderPostalCode = schemas.StrSchema - abaRoutingNumber = schemas.StrSchema - abaAccountNumber = schemas.StrSchema - abaCountry = schemas.StrSchema - iban = schemas.StrSchema - ibanCity = schemas.StrSchema - ibanCountry = schemas.StrSchema - speiClabe = schemas.StrSchema - speiName = schemas.StrSchema - __annotations__ = { - "accountHolderGivenName": accountHolderGivenName, - "accountHolderSurname": accountHolderSurname, - "accountHolderCity": accountHolderCity, - "accountHolderCountry": accountHolderCountry, - "accountHolderAddress1": accountHolderAddress1, - "accountHolderAddress2": accountHolderAddress2, - "accountHolderDistrict": accountHolderDistrict, - "accountHolderPostalCode": accountHolderPostalCode, - "abaRoutingNumber": abaRoutingNumber, - "abaAccountNumber": abaAccountNumber, - "abaCountry": abaCountry, - "iban": iban, - "ibanCity": ibanCity, - "ibanCountry": ibanCountry, - "speiClabe": speiClabe, - "speiName": speiName, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["accountHolderGivenName"]) -> MetaOapg.properties.accountHolderGivenName: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["accountHolderSurname"]) -> MetaOapg.properties.accountHolderSurname: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["accountHolderCity"]) -> MetaOapg.properties.accountHolderCity: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["accountHolderCountry"]) -> MetaOapg.properties.accountHolderCountry: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["accountHolderAddress1"]) -> MetaOapg.properties.accountHolderAddress1: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["accountHolderAddress2"]) -> MetaOapg.properties.accountHolderAddress2: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["accountHolderDistrict"]) -> MetaOapg.properties.accountHolderDistrict: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["accountHolderPostalCode"]) -> MetaOapg.properties.accountHolderPostalCode: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["abaRoutingNumber"]) -> MetaOapg.properties.abaRoutingNumber: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["abaAccountNumber"]) -> MetaOapg.properties.abaAccountNumber: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["abaCountry"]) -> MetaOapg.properties.abaCountry: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["iban"]) -> MetaOapg.properties.iban: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["ibanCity"]) -> MetaOapg.properties.ibanCity: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["ibanCountry"]) -> MetaOapg.properties.ibanCountry: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["speiClabe"]) -> MetaOapg.properties.speiClabe: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["speiName"]) -> MetaOapg.properties.speiName: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["accountHolderGivenName", "accountHolderSurname", "accountHolderCity", "accountHolderCountry", "accountHolderAddress1", "accountHolderAddress2", "accountHolderDistrict", "accountHolderPostalCode", "abaRoutingNumber", "abaAccountNumber", "abaCountry", "iban", "ibanCity", "ibanCountry", "speiClabe", "speiName", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["accountHolderGivenName"]) -> typing.Union[MetaOapg.properties.accountHolderGivenName, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["accountHolderSurname"]) -> typing.Union[MetaOapg.properties.accountHolderSurname, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["accountHolderCity"]) -> typing.Union[MetaOapg.properties.accountHolderCity, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["accountHolderCountry"]) -> typing.Union[MetaOapg.properties.accountHolderCountry, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["accountHolderAddress1"]) -> typing.Union[MetaOapg.properties.accountHolderAddress1, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["accountHolderAddress2"]) -> typing.Union[MetaOapg.properties.accountHolderAddress2, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["accountHolderDistrict"]) -> typing.Union[MetaOapg.properties.accountHolderDistrict, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["accountHolderPostalCode"]) -> typing.Union[MetaOapg.properties.accountHolderPostalCode, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["abaRoutingNumber"]) -> typing.Union[MetaOapg.properties.abaRoutingNumber, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["abaAccountNumber"]) -> typing.Union[MetaOapg.properties.abaAccountNumber, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["abaCountry"]) -> typing.Union[MetaOapg.properties.abaCountry, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["iban"]) -> typing.Union[MetaOapg.properties.iban, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["ibanCity"]) -> typing.Union[MetaOapg.properties.ibanCity, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["ibanCountry"]) -> typing.Union[MetaOapg.properties.ibanCountry, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["speiClabe"]) -> typing.Union[MetaOapg.properties.speiClabe, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["speiName"]) -> typing.Union[MetaOapg.properties.speiName, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["accountHolderGivenName", "accountHolderSurname", "accountHolderCity", "accountHolderCountry", "accountHolderAddress1", "accountHolderAddress2", "accountHolderDistrict", "accountHolderPostalCode", "abaRoutingNumber", "abaAccountNumber", "abaCountry", "iban", "ibanCity", "ibanCountry", "speiClabe", "speiName", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - accountHolderGivenName: typing.Union[MetaOapg.properties.accountHolderGivenName, str, schemas.Unset] = schemas.unset, - accountHolderSurname: typing.Union[MetaOapg.properties.accountHolderSurname, str, schemas.Unset] = schemas.unset, - accountHolderCity: typing.Union[MetaOapg.properties.accountHolderCity, str, schemas.Unset] = schemas.unset, - accountHolderCountry: typing.Union[MetaOapg.properties.accountHolderCountry, str, schemas.Unset] = schemas.unset, - accountHolderAddress1: typing.Union[MetaOapg.properties.accountHolderAddress1, str, schemas.Unset] = schemas.unset, - accountHolderAddress2: typing.Union[MetaOapg.properties.accountHolderAddress2, str, schemas.Unset] = schemas.unset, - accountHolderDistrict: typing.Union[MetaOapg.properties.accountHolderDistrict, str, schemas.Unset] = schemas.unset, - accountHolderPostalCode: typing.Union[MetaOapg.properties.accountHolderPostalCode, str, schemas.Unset] = schemas.unset, - abaRoutingNumber: typing.Union[MetaOapg.properties.abaRoutingNumber, str, schemas.Unset] = schemas.unset, - abaAccountNumber: typing.Union[MetaOapg.properties.abaAccountNumber, str, schemas.Unset] = schemas.unset, - abaCountry: typing.Union[MetaOapg.properties.abaCountry, str, schemas.Unset] = schemas.unset, - iban: typing.Union[MetaOapg.properties.iban, str, schemas.Unset] = schemas.unset, - ibanCity: typing.Union[MetaOapg.properties.ibanCity, str, schemas.Unset] = schemas.unset, - ibanCountry: typing.Union[MetaOapg.properties.ibanCountry, str, schemas.Unset] = schemas.unset, - speiClabe: typing.Union[MetaOapg.properties.speiClabe, str, schemas.Unset] = schemas.unset, - speiName: typing.Union[MetaOapg.properties.speiName, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'WalletAssetAdditionalInfo': - return super().__new__( - cls, - *_args, - accountHolderGivenName=accountHolderGivenName, - accountHolderSurname=accountHolderSurname, - accountHolderCity=accountHolderCity, - accountHolderCountry=accountHolderCountry, - accountHolderAddress1=accountHolderAddress1, - accountHolderAddress2=accountHolderAddress2, - accountHolderDistrict=accountHolderDistrict, - accountHolderPostalCode=accountHolderPostalCode, - abaRoutingNumber=abaRoutingNumber, - abaAccountNumber=abaAccountNumber, - abaCountry=abaCountry, - iban=iban, - ibanCity=ibanCity, - ibanCountry=ibanCountry, - speiClabe=speiClabe, - speiName=speiName, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/wallet_asset_additional_info.pyi b/fireblocks_client/model/wallet_asset_additional_info.pyi deleted file mode 100644 index 0ad77156..00000000 --- a/fireblocks_client/model/wallet_asset_additional_info.pyi +++ /dev/null @@ -1,229 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class WalletAssetAdditionalInfo( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - accountHolderGivenName = schemas.StrSchema - accountHolderSurname = schemas.StrSchema - accountHolderCity = schemas.StrSchema - accountHolderCountry = schemas.StrSchema - accountHolderAddress1 = schemas.StrSchema - accountHolderAddress2 = schemas.StrSchema - accountHolderDistrict = schemas.StrSchema - accountHolderPostalCode = schemas.StrSchema - abaRoutingNumber = schemas.StrSchema - abaAccountNumber = schemas.StrSchema - abaCountry = schemas.StrSchema - iban = schemas.StrSchema - ibanCity = schemas.StrSchema - ibanCountry = schemas.StrSchema - speiClabe = schemas.StrSchema - speiName = schemas.StrSchema - __annotations__ = { - "accountHolderGivenName": accountHolderGivenName, - "accountHolderSurname": accountHolderSurname, - "accountHolderCity": accountHolderCity, - "accountHolderCountry": accountHolderCountry, - "accountHolderAddress1": accountHolderAddress1, - "accountHolderAddress2": accountHolderAddress2, - "accountHolderDistrict": accountHolderDistrict, - "accountHolderPostalCode": accountHolderPostalCode, - "abaRoutingNumber": abaRoutingNumber, - "abaAccountNumber": abaAccountNumber, - "abaCountry": abaCountry, - "iban": iban, - "ibanCity": ibanCity, - "ibanCountry": ibanCountry, - "speiClabe": speiClabe, - "speiName": speiName, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["accountHolderGivenName"]) -> MetaOapg.properties.accountHolderGivenName: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["accountHolderSurname"]) -> MetaOapg.properties.accountHolderSurname: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["accountHolderCity"]) -> MetaOapg.properties.accountHolderCity: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["accountHolderCountry"]) -> MetaOapg.properties.accountHolderCountry: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["accountHolderAddress1"]) -> MetaOapg.properties.accountHolderAddress1: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["accountHolderAddress2"]) -> MetaOapg.properties.accountHolderAddress2: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["accountHolderDistrict"]) -> MetaOapg.properties.accountHolderDistrict: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["accountHolderPostalCode"]) -> MetaOapg.properties.accountHolderPostalCode: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["abaRoutingNumber"]) -> MetaOapg.properties.abaRoutingNumber: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["abaAccountNumber"]) -> MetaOapg.properties.abaAccountNumber: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["abaCountry"]) -> MetaOapg.properties.abaCountry: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["iban"]) -> MetaOapg.properties.iban: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["ibanCity"]) -> MetaOapg.properties.ibanCity: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["ibanCountry"]) -> MetaOapg.properties.ibanCountry: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["speiClabe"]) -> MetaOapg.properties.speiClabe: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["speiName"]) -> MetaOapg.properties.speiName: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["accountHolderGivenName", "accountHolderSurname", "accountHolderCity", "accountHolderCountry", "accountHolderAddress1", "accountHolderAddress2", "accountHolderDistrict", "accountHolderPostalCode", "abaRoutingNumber", "abaAccountNumber", "abaCountry", "iban", "ibanCity", "ibanCountry", "speiClabe", "speiName", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["accountHolderGivenName"]) -> typing.Union[MetaOapg.properties.accountHolderGivenName, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["accountHolderSurname"]) -> typing.Union[MetaOapg.properties.accountHolderSurname, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["accountHolderCity"]) -> typing.Union[MetaOapg.properties.accountHolderCity, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["accountHolderCountry"]) -> typing.Union[MetaOapg.properties.accountHolderCountry, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["accountHolderAddress1"]) -> typing.Union[MetaOapg.properties.accountHolderAddress1, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["accountHolderAddress2"]) -> typing.Union[MetaOapg.properties.accountHolderAddress2, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["accountHolderDistrict"]) -> typing.Union[MetaOapg.properties.accountHolderDistrict, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["accountHolderPostalCode"]) -> typing.Union[MetaOapg.properties.accountHolderPostalCode, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["abaRoutingNumber"]) -> typing.Union[MetaOapg.properties.abaRoutingNumber, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["abaAccountNumber"]) -> typing.Union[MetaOapg.properties.abaAccountNumber, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["abaCountry"]) -> typing.Union[MetaOapg.properties.abaCountry, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["iban"]) -> typing.Union[MetaOapg.properties.iban, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["ibanCity"]) -> typing.Union[MetaOapg.properties.ibanCity, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["ibanCountry"]) -> typing.Union[MetaOapg.properties.ibanCountry, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["speiClabe"]) -> typing.Union[MetaOapg.properties.speiClabe, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["speiName"]) -> typing.Union[MetaOapg.properties.speiName, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["accountHolderGivenName", "accountHolderSurname", "accountHolderCity", "accountHolderCountry", "accountHolderAddress1", "accountHolderAddress2", "accountHolderDistrict", "accountHolderPostalCode", "abaRoutingNumber", "abaAccountNumber", "abaCountry", "iban", "ibanCity", "ibanCountry", "speiClabe", "speiName", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - accountHolderGivenName: typing.Union[MetaOapg.properties.accountHolderGivenName, str, schemas.Unset] = schemas.unset, - accountHolderSurname: typing.Union[MetaOapg.properties.accountHolderSurname, str, schemas.Unset] = schemas.unset, - accountHolderCity: typing.Union[MetaOapg.properties.accountHolderCity, str, schemas.Unset] = schemas.unset, - accountHolderCountry: typing.Union[MetaOapg.properties.accountHolderCountry, str, schemas.Unset] = schemas.unset, - accountHolderAddress1: typing.Union[MetaOapg.properties.accountHolderAddress1, str, schemas.Unset] = schemas.unset, - accountHolderAddress2: typing.Union[MetaOapg.properties.accountHolderAddress2, str, schemas.Unset] = schemas.unset, - accountHolderDistrict: typing.Union[MetaOapg.properties.accountHolderDistrict, str, schemas.Unset] = schemas.unset, - accountHolderPostalCode: typing.Union[MetaOapg.properties.accountHolderPostalCode, str, schemas.Unset] = schemas.unset, - abaRoutingNumber: typing.Union[MetaOapg.properties.abaRoutingNumber, str, schemas.Unset] = schemas.unset, - abaAccountNumber: typing.Union[MetaOapg.properties.abaAccountNumber, str, schemas.Unset] = schemas.unset, - abaCountry: typing.Union[MetaOapg.properties.abaCountry, str, schemas.Unset] = schemas.unset, - iban: typing.Union[MetaOapg.properties.iban, str, schemas.Unset] = schemas.unset, - ibanCity: typing.Union[MetaOapg.properties.ibanCity, str, schemas.Unset] = schemas.unset, - ibanCountry: typing.Union[MetaOapg.properties.ibanCountry, str, schemas.Unset] = schemas.unset, - speiClabe: typing.Union[MetaOapg.properties.speiClabe, str, schemas.Unset] = schemas.unset, - speiName: typing.Union[MetaOapg.properties.speiName, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'WalletAssetAdditionalInfo': - return super().__new__( - cls, - *_args, - accountHolderGivenName=accountHolderGivenName, - accountHolderSurname=accountHolderSurname, - accountHolderCity=accountHolderCity, - accountHolderCountry=accountHolderCountry, - accountHolderAddress1=accountHolderAddress1, - accountHolderAddress2=accountHolderAddress2, - accountHolderDistrict=accountHolderDistrict, - accountHolderPostalCode=accountHolderPostalCode, - abaRoutingNumber=abaRoutingNumber, - abaAccountNumber=abaAccountNumber, - abaCountry=abaCountry, - iban=iban, - ibanCity=ibanCity, - ibanCountry=ibanCountry, - speiClabe=speiClabe, - speiName=speiName, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/xb_settlement_asset.py b/fireblocks_client/model/xb_settlement_asset.py deleted file mode 100644 index fd943199..00000000 --- a/fireblocks_client/model/xb_settlement_asset.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class XBSettlementAsset( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "amount", - } - - class properties: - amount = schemas.StrSchema - - @staticmethod - def assetId() -> typing.Type['XBSettlementAssetID']: - return XBSettlementAssetID - __annotations__ = { - "amount": amount, - "assetId": assetId, - } - - amount: MetaOapg.properties.amount - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["amount"]) -> MetaOapg.properties.amount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["assetId"]) -> 'XBSettlementAssetID': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["amount", "assetId", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["amount"]) -> MetaOapg.properties.amount: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["assetId"]) -> typing.Union['XBSettlementAssetID', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["amount", "assetId", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - amount: typing.Union[MetaOapg.properties.amount, str, ], - assetId: typing.Union['XBSettlementAssetID', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'XBSettlementAsset': - return super().__new__( - cls, - *_args, - amount=amount, - assetId=assetId, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.xb_settlement_asset_id import XBSettlementAssetID diff --git a/fireblocks_client/model/xb_settlement_asset.pyi b/fireblocks_client/model/xb_settlement_asset.pyi deleted file mode 100644 index fd943199..00000000 --- a/fireblocks_client/model/xb_settlement_asset.pyi +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class XBSettlementAsset( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "amount", - } - - class properties: - amount = schemas.StrSchema - - @staticmethod - def assetId() -> typing.Type['XBSettlementAssetID']: - return XBSettlementAssetID - __annotations__ = { - "amount": amount, - "assetId": assetId, - } - - amount: MetaOapg.properties.amount - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["amount"]) -> MetaOapg.properties.amount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["assetId"]) -> 'XBSettlementAssetID': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["amount", "assetId", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["amount"]) -> MetaOapg.properties.amount: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["assetId"]) -> typing.Union['XBSettlementAssetID', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["amount", "assetId", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - amount: typing.Union[MetaOapg.properties.amount, str, ], - assetId: typing.Union['XBSettlementAssetID', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'XBSettlementAsset': - return super().__new__( - cls, - *_args, - amount=amount, - assetId=assetId, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.xb_settlement_asset_id import XBSettlementAssetID diff --git a/fireblocks_client/model/xb_settlement_asset_id.py b/fireblocks_client/model/xb_settlement_asset_id.py deleted file mode 100644 index 91c0332f..00000000 --- a/fireblocks_client/model/xb_settlement_asset_id.py +++ /dev/null @@ -1,69 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class XBSettlementAssetID( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - XBSettlementFiatAsset, - XBSettlementCryptoAsset, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'XBSettlementAssetID': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.xb_settlement_crypto_asset import XBSettlementCryptoAsset -from fireblocks_client.model.xb_settlement_fiat_asset import XBSettlementFiatAsset diff --git a/fireblocks_client/model/xb_settlement_asset_id.pyi b/fireblocks_client/model/xb_settlement_asset_id.pyi deleted file mode 100644 index 91c0332f..00000000 --- a/fireblocks_client/model/xb_settlement_asset_id.pyi +++ /dev/null @@ -1,69 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class XBSettlementAssetID( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - XBSettlementFiatAsset, - XBSettlementCryptoAsset, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'XBSettlementAssetID': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.xb_settlement_crypto_asset import XBSettlementCryptoAsset -from fireblocks_client.model.xb_settlement_fiat_asset import XBSettlementFiatAsset diff --git a/fireblocks_client/model/xb_settlement_config_creation_request_body.py b/fireblocks_client/model/xb_settlement_config_creation_request_body.py deleted file mode 100644 index 9fe74e9c..00000000 --- a/fireblocks_client/model/xb_settlement_config_creation_request_body.py +++ /dev/null @@ -1,131 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class XBSettlementConfigCreationRequestBody( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "corridorId", - "name", - "steps", - } - - class properties: - name = schemas.StrSchema - - @staticmethod - def corridorId() -> typing.Type['XBSettlementCorridorId']: - return XBSettlementCorridorId - - @staticmethod - def steps() -> typing.Type['XBSettlementConfigStepsRecord']: - return XBSettlementConfigStepsRecord - - @staticmethod - def conversionSlippageBasisPoints() -> typing.Type['XBSettlementConversionSlippageBasisPoints']: - return XBSettlementConversionSlippageBasisPoints - __annotations__ = { - "name": name, - "corridorId": corridorId, - "steps": steps, - "conversionSlippageBasisPoints": conversionSlippageBasisPoints, - } - - corridorId: 'XBSettlementCorridorId' - name: MetaOapg.properties.name - steps: 'XBSettlementConfigStepsRecord' - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["corridorId"]) -> 'XBSettlementCorridorId': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["steps"]) -> 'XBSettlementConfigStepsRecord': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["conversionSlippageBasisPoints"]) -> 'XBSettlementConversionSlippageBasisPoints': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "corridorId", "steps", "conversionSlippageBasisPoints", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["corridorId"]) -> 'XBSettlementCorridorId': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["steps"]) -> 'XBSettlementConfigStepsRecord': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["conversionSlippageBasisPoints"]) -> typing.Union['XBSettlementConversionSlippageBasisPoints', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "corridorId", "steps", "conversionSlippageBasisPoints", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - corridorId: 'XBSettlementCorridorId', - name: typing.Union[MetaOapg.properties.name, str, ], - steps: 'XBSettlementConfigStepsRecord', - conversionSlippageBasisPoints: typing.Union['XBSettlementConversionSlippageBasisPoints', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'XBSettlementConfigCreationRequestBody': - return super().__new__( - cls, - *_args, - corridorId=corridorId, - name=name, - steps=steps, - conversionSlippageBasisPoints=conversionSlippageBasisPoints, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.xb_settlement_config_steps_record import XBSettlementConfigStepsRecord -from fireblocks_client.model.xb_settlement_conversion_slippage_basis_points import XBSettlementConversionSlippageBasisPoints -from fireblocks_client.model.xb_settlement_corridor_id import XBSettlementCorridorId diff --git a/fireblocks_client/model/xb_settlement_config_creation_request_body.pyi b/fireblocks_client/model/xb_settlement_config_creation_request_body.pyi deleted file mode 100644 index 9fe74e9c..00000000 --- a/fireblocks_client/model/xb_settlement_config_creation_request_body.pyi +++ /dev/null @@ -1,131 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class XBSettlementConfigCreationRequestBody( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "corridorId", - "name", - "steps", - } - - class properties: - name = schemas.StrSchema - - @staticmethod - def corridorId() -> typing.Type['XBSettlementCorridorId']: - return XBSettlementCorridorId - - @staticmethod - def steps() -> typing.Type['XBSettlementConfigStepsRecord']: - return XBSettlementConfigStepsRecord - - @staticmethod - def conversionSlippageBasisPoints() -> typing.Type['XBSettlementConversionSlippageBasisPoints']: - return XBSettlementConversionSlippageBasisPoints - __annotations__ = { - "name": name, - "corridorId": corridorId, - "steps": steps, - "conversionSlippageBasisPoints": conversionSlippageBasisPoints, - } - - corridorId: 'XBSettlementCorridorId' - name: MetaOapg.properties.name - steps: 'XBSettlementConfigStepsRecord' - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["corridorId"]) -> 'XBSettlementCorridorId': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["steps"]) -> 'XBSettlementConfigStepsRecord': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["conversionSlippageBasisPoints"]) -> 'XBSettlementConversionSlippageBasisPoints': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "corridorId", "steps", "conversionSlippageBasisPoints", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["corridorId"]) -> 'XBSettlementCorridorId': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["steps"]) -> 'XBSettlementConfigStepsRecord': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["conversionSlippageBasisPoints"]) -> typing.Union['XBSettlementConversionSlippageBasisPoints', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "corridorId", "steps", "conversionSlippageBasisPoints", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - corridorId: 'XBSettlementCorridorId', - name: typing.Union[MetaOapg.properties.name, str, ], - steps: 'XBSettlementConfigStepsRecord', - conversionSlippageBasisPoints: typing.Union['XBSettlementConversionSlippageBasisPoints', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'XBSettlementConfigCreationRequestBody': - return super().__new__( - cls, - *_args, - corridorId=corridorId, - name=name, - steps=steps, - conversionSlippageBasisPoints=conversionSlippageBasisPoints, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.xb_settlement_config_steps_record import XBSettlementConfigStepsRecord -from fireblocks_client.model.xb_settlement_conversion_slippage_basis_points import XBSettlementConversionSlippageBasisPoints -from fireblocks_client.model.xb_settlement_corridor_id import XBSettlementCorridorId diff --git a/fireblocks_client/model/xb_settlement_config_creation_response.py b/fireblocks_client/model/xb_settlement_config_creation_response.py deleted file mode 100644 index 72ab57c7..00000000 --- a/fireblocks_client/model/xb_settlement_config_creation_response.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 -XBSettlementConfigCreationResponse = schemas.Schema diff --git a/fireblocks_client/model/xb_settlement_config_creation_response.pyi b/fireblocks_client/model/xb_settlement_config_creation_response.pyi deleted file mode 100644 index 72ab57c7..00000000 --- a/fireblocks_client/model/xb_settlement_config_creation_response.pyi +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 -XBSettlementConfigCreationResponse = schemas.Schema diff --git a/fireblocks_client/model/xb_settlement_config_deletion_response.py b/fireblocks_client/model/xb_settlement_config_deletion_response.py deleted file mode 100644 index cb12a6cc..00000000 --- a/fireblocks_client/model/xb_settlement_config_deletion_response.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 -XBSettlementConfigDeletionResponse = schemas.Schema diff --git a/fireblocks_client/model/xb_settlement_config_deletion_response.pyi b/fireblocks_client/model/xb_settlement_config_deletion_response.pyi deleted file mode 100644 index cb12a6cc..00000000 --- a/fireblocks_client/model/xb_settlement_config_deletion_response.pyi +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 -XBSettlementConfigDeletionResponse = schemas.Schema diff --git a/fireblocks_client/model/xb_settlement_config_edit_request_body.py b/fireblocks_client/model/xb_settlement_config_edit_request_body.py deleted file mode 100644 index 760a673d..00000000 --- a/fireblocks_client/model/xb_settlement_config_edit_request_body.py +++ /dev/null @@ -1,115 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class XBSettlementConfigEditRequestBody( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "name", - "steps", - } - - class properties: - name = schemas.StrSchema - - @staticmethod - def steps() -> typing.Type['XBSettlementConfigStepsRecord']: - return XBSettlementConfigStepsRecord - - @staticmethod - def conversionSlippageBasisPoints() -> typing.Type['XBSettlementConversionSlippageBasisPoints']: - return XBSettlementConversionSlippageBasisPoints - __annotations__ = { - "name": name, - "steps": steps, - "conversionSlippageBasisPoints": conversionSlippageBasisPoints, - } - - name: MetaOapg.properties.name - steps: 'XBSettlementConfigStepsRecord' - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["steps"]) -> 'XBSettlementConfigStepsRecord': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["conversionSlippageBasisPoints"]) -> 'XBSettlementConversionSlippageBasisPoints': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "steps", "conversionSlippageBasisPoints", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["steps"]) -> 'XBSettlementConfigStepsRecord': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["conversionSlippageBasisPoints"]) -> typing.Union['XBSettlementConversionSlippageBasisPoints', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "steps", "conversionSlippageBasisPoints", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - name: typing.Union[MetaOapg.properties.name, str, ], - steps: 'XBSettlementConfigStepsRecord', - conversionSlippageBasisPoints: typing.Union['XBSettlementConversionSlippageBasisPoints', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'XBSettlementConfigEditRequestBody': - return super().__new__( - cls, - *_args, - name=name, - steps=steps, - conversionSlippageBasisPoints=conversionSlippageBasisPoints, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.xb_settlement_config_steps_record import XBSettlementConfigStepsRecord -from fireblocks_client.model.xb_settlement_conversion_slippage_basis_points import XBSettlementConversionSlippageBasisPoints diff --git a/fireblocks_client/model/xb_settlement_config_edit_request_body.pyi b/fireblocks_client/model/xb_settlement_config_edit_request_body.pyi deleted file mode 100644 index 760a673d..00000000 --- a/fireblocks_client/model/xb_settlement_config_edit_request_body.pyi +++ /dev/null @@ -1,115 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class XBSettlementConfigEditRequestBody( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "name", - "steps", - } - - class properties: - name = schemas.StrSchema - - @staticmethod - def steps() -> typing.Type['XBSettlementConfigStepsRecord']: - return XBSettlementConfigStepsRecord - - @staticmethod - def conversionSlippageBasisPoints() -> typing.Type['XBSettlementConversionSlippageBasisPoints']: - return XBSettlementConversionSlippageBasisPoints - __annotations__ = { - "name": name, - "steps": steps, - "conversionSlippageBasisPoints": conversionSlippageBasisPoints, - } - - name: MetaOapg.properties.name - steps: 'XBSettlementConfigStepsRecord' - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["steps"]) -> 'XBSettlementConfigStepsRecord': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["conversionSlippageBasisPoints"]) -> 'XBSettlementConversionSlippageBasisPoints': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "steps", "conversionSlippageBasisPoints", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["steps"]) -> 'XBSettlementConfigStepsRecord': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["conversionSlippageBasisPoints"]) -> typing.Union['XBSettlementConversionSlippageBasisPoints', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "steps", "conversionSlippageBasisPoints", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - name: typing.Union[MetaOapg.properties.name, str, ], - steps: 'XBSettlementConfigStepsRecord', - conversionSlippageBasisPoints: typing.Union['XBSettlementConversionSlippageBasisPoints', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'XBSettlementConfigEditRequestBody': - return super().__new__( - cls, - *_args, - name=name, - steps=steps, - conversionSlippageBasisPoints=conversionSlippageBasisPoints, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.xb_settlement_config_steps_record import XBSettlementConfigStepsRecord -from fireblocks_client.model.xb_settlement_conversion_slippage_basis_points import XBSettlementConversionSlippageBasisPoints diff --git a/fireblocks_client/model/xb_settlement_config_edit_response.py b/fireblocks_client/model/xb_settlement_config_edit_response.py deleted file mode 100644 index 760d74e5..00000000 --- a/fireblocks_client/model/xb_settlement_config_edit_response.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 -XBSettlementConfigEditResponse = schemas.Schema diff --git a/fireblocks_client/model/xb_settlement_config_edit_response.pyi b/fireblocks_client/model/xb_settlement_config_edit_response.pyi deleted file mode 100644 index 760d74e5..00000000 --- a/fireblocks_client/model/xb_settlement_config_edit_response.pyi +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 -XBSettlementConfigEditResponse = schemas.Schema diff --git a/fireblocks_client/model/xb_settlement_config_id.py b/fireblocks_client/model/xb_settlement_config_id.py deleted file mode 100644 index 64cccf38..00000000 --- a/fireblocks_client/model/xb_settlement_config_id.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 -XBSettlementConfigId = schemas.UUIDSchema diff --git a/fireblocks_client/model/xb_settlement_config_id.pyi b/fireblocks_client/model/xb_settlement_config_id.pyi deleted file mode 100644 index 64cccf38..00000000 --- a/fireblocks_client/model/xb_settlement_config_id.pyi +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 -XBSettlementConfigId = schemas.UUIDSchema diff --git a/fireblocks_client/model/xb_settlement_config_model.py b/fireblocks_client/model/xb_settlement_config_model.py deleted file mode 100644 index 8a625c16..00000000 --- a/fireblocks_client/model/xb_settlement_config_model.py +++ /dev/null @@ -1,157 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class XBSettlementConfigModel( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "createdAt", - "corridorId", - "configId", - "conversionSlippageBasisPoints", - "name", - "steps", - } - - class properties: - configId = schemas.UUIDSchema - - @staticmethod - def corridorId() -> typing.Type['XBSettlementCorridorId']: - return XBSettlementCorridorId - name = schemas.StrSchema - - @staticmethod - def steps() -> typing.Type['XBSettlementConfigStepsRecord']: - return XBSettlementConfigStepsRecord - - @staticmethod - def conversionSlippageBasisPoints() -> typing.Type['XBSettlementConversionSlippageBasisPoints']: - return XBSettlementConversionSlippageBasisPoints - createdAt = schemas.NumberSchema - __annotations__ = { - "configId": configId, - "corridorId": corridorId, - "name": name, - "steps": steps, - "conversionSlippageBasisPoints": conversionSlippageBasisPoints, - "createdAt": createdAt, - } - - createdAt: MetaOapg.properties.createdAt - corridorId: 'XBSettlementCorridorId' - configId: MetaOapg.properties.configId - conversionSlippageBasisPoints: 'XBSettlementConversionSlippageBasisPoints' - name: MetaOapg.properties.name - steps: 'XBSettlementConfigStepsRecord' - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["configId"]) -> MetaOapg.properties.configId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["corridorId"]) -> 'XBSettlementCorridorId': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["steps"]) -> 'XBSettlementConfigStepsRecord': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["conversionSlippageBasisPoints"]) -> 'XBSettlementConversionSlippageBasisPoints': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["createdAt"]) -> MetaOapg.properties.createdAt: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["configId", "corridorId", "name", "steps", "conversionSlippageBasisPoints", "createdAt", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["configId"]) -> MetaOapg.properties.configId: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["corridorId"]) -> 'XBSettlementCorridorId': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["steps"]) -> 'XBSettlementConfigStepsRecord': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["conversionSlippageBasisPoints"]) -> 'XBSettlementConversionSlippageBasisPoints': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["createdAt"]) -> MetaOapg.properties.createdAt: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["configId", "corridorId", "name", "steps", "conversionSlippageBasisPoints", "createdAt", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - createdAt: typing.Union[MetaOapg.properties.createdAt, decimal.Decimal, int, float, ], - corridorId: 'XBSettlementCorridorId', - configId: typing.Union[MetaOapg.properties.configId, str, uuid.UUID, ], - conversionSlippageBasisPoints: 'XBSettlementConversionSlippageBasisPoints', - name: typing.Union[MetaOapg.properties.name, str, ], - steps: 'XBSettlementConfigStepsRecord', - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'XBSettlementConfigModel': - return super().__new__( - cls, - *_args, - createdAt=createdAt, - corridorId=corridorId, - configId=configId, - conversionSlippageBasisPoints=conversionSlippageBasisPoints, - name=name, - steps=steps, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.xb_settlement_config_steps_record import XBSettlementConfigStepsRecord -from fireblocks_client.model.xb_settlement_conversion_slippage_basis_points import XBSettlementConversionSlippageBasisPoints -from fireblocks_client.model.xb_settlement_corridor_id import XBSettlementCorridorId diff --git a/fireblocks_client/model/xb_settlement_config_model.pyi b/fireblocks_client/model/xb_settlement_config_model.pyi deleted file mode 100644 index 8a625c16..00000000 --- a/fireblocks_client/model/xb_settlement_config_model.pyi +++ /dev/null @@ -1,157 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class XBSettlementConfigModel( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "createdAt", - "corridorId", - "configId", - "conversionSlippageBasisPoints", - "name", - "steps", - } - - class properties: - configId = schemas.UUIDSchema - - @staticmethod - def corridorId() -> typing.Type['XBSettlementCorridorId']: - return XBSettlementCorridorId - name = schemas.StrSchema - - @staticmethod - def steps() -> typing.Type['XBSettlementConfigStepsRecord']: - return XBSettlementConfigStepsRecord - - @staticmethod - def conversionSlippageBasisPoints() -> typing.Type['XBSettlementConversionSlippageBasisPoints']: - return XBSettlementConversionSlippageBasisPoints - createdAt = schemas.NumberSchema - __annotations__ = { - "configId": configId, - "corridorId": corridorId, - "name": name, - "steps": steps, - "conversionSlippageBasisPoints": conversionSlippageBasisPoints, - "createdAt": createdAt, - } - - createdAt: MetaOapg.properties.createdAt - corridorId: 'XBSettlementCorridorId' - configId: MetaOapg.properties.configId - conversionSlippageBasisPoints: 'XBSettlementConversionSlippageBasisPoints' - name: MetaOapg.properties.name - steps: 'XBSettlementConfigStepsRecord' - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["configId"]) -> MetaOapg.properties.configId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["corridorId"]) -> 'XBSettlementCorridorId': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["steps"]) -> 'XBSettlementConfigStepsRecord': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["conversionSlippageBasisPoints"]) -> 'XBSettlementConversionSlippageBasisPoints': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["createdAt"]) -> MetaOapg.properties.createdAt: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["configId", "corridorId", "name", "steps", "conversionSlippageBasisPoints", "createdAt", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["configId"]) -> MetaOapg.properties.configId: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["corridorId"]) -> 'XBSettlementCorridorId': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["steps"]) -> 'XBSettlementConfigStepsRecord': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["conversionSlippageBasisPoints"]) -> 'XBSettlementConversionSlippageBasisPoints': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["createdAt"]) -> MetaOapg.properties.createdAt: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["configId", "corridorId", "name", "steps", "conversionSlippageBasisPoints", "createdAt", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - createdAt: typing.Union[MetaOapg.properties.createdAt, decimal.Decimal, int, float, ], - corridorId: 'XBSettlementCorridorId', - configId: typing.Union[MetaOapg.properties.configId, str, uuid.UUID, ], - conversionSlippageBasisPoints: 'XBSettlementConversionSlippageBasisPoints', - name: typing.Union[MetaOapg.properties.name, str, ], - steps: 'XBSettlementConfigStepsRecord', - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'XBSettlementConfigModel': - return super().__new__( - cls, - *_args, - createdAt=createdAt, - corridorId=corridorId, - configId=configId, - conversionSlippageBasisPoints=conversionSlippageBasisPoints, - name=name, - steps=steps, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.xb_settlement_config_steps_record import XBSettlementConfigStepsRecord -from fireblocks_client.model.xb_settlement_conversion_slippage_basis_points import XBSettlementConversionSlippageBasisPoints -from fireblocks_client.model.xb_settlement_corridor_id import XBSettlementCorridorId diff --git a/fireblocks_client/model/xb_settlement_config_step.py b/fireblocks_client/model/xb_settlement_config_step.py deleted file mode 100644 index 06e2ba1e..00000000 --- a/fireblocks_client/model/xb_settlement_config_step.py +++ /dev/null @@ -1,101 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class XBSettlementConfigStep( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "accountId", - "stepType", - } - - class properties: - - @staticmethod - def stepType() -> typing.Type['XBSettlementStepType']: - return XBSettlementStepType - accountId = schemas.StrSchema - __annotations__ = { - "stepType": stepType, - "accountId": accountId, - } - - accountId: MetaOapg.properties.accountId - stepType: 'XBSettlementStepType' - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["stepType"]) -> 'XBSettlementStepType': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["accountId"]) -> MetaOapg.properties.accountId: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["stepType", "accountId", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["stepType"]) -> 'XBSettlementStepType': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["accountId"]) -> MetaOapg.properties.accountId: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["stepType", "accountId", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - accountId: typing.Union[MetaOapg.properties.accountId, str, ], - stepType: 'XBSettlementStepType', - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'XBSettlementConfigStep': - return super().__new__( - cls, - *_args, - accountId=accountId, - stepType=stepType, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.xb_settlement_step_type import XBSettlementStepType diff --git a/fireblocks_client/model/xb_settlement_config_step.pyi b/fireblocks_client/model/xb_settlement_config_step.pyi deleted file mode 100644 index 06e2ba1e..00000000 --- a/fireblocks_client/model/xb_settlement_config_step.pyi +++ /dev/null @@ -1,101 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class XBSettlementConfigStep( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "accountId", - "stepType", - } - - class properties: - - @staticmethod - def stepType() -> typing.Type['XBSettlementStepType']: - return XBSettlementStepType - accountId = schemas.StrSchema - __annotations__ = { - "stepType": stepType, - "accountId": accountId, - } - - accountId: MetaOapg.properties.accountId - stepType: 'XBSettlementStepType' - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["stepType"]) -> 'XBSettlementStepType': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["accountId"]) -> MetaOapg.properties.accountId: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["stepType", "accountId", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["stepType"]) -> 'XBSettlementStepType': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["accountId"]) -> MetaOapg.properties.accountId: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["stepType", "accountId", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - accountId: typing.Union[MetaOapg.properties.accountId, str, ], - stepType: 'XBSettlementStepType', - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'XBSettlementConfigStep': - return super().__new__( - cls, - *_args, - accountId=accountId, - stepType=stepType, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.xb_settlement_step_type import XBSettlementStepType diff --git a/fireblocks_client/model/xb_settlement_config_steps_record.py b/fireblocks_client/model/xb_settlement_config_steps_record.py deleted file mode 100644 index 54842e58..00000000 --- a/fireblocks_client/model/xb_settlement_config_steps_record.py +++ /dev/null @@ -1,164 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class XBSettlementConfigStepsRecord( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def stepType() -> typing.Type['XBSettlementStepType']: - return XBSettlementStepType - __annotations__ = { - "stepType": stepType, - } - - - class additional_properties( - schemas.DictSchema - ): - - - class MetaOapg: - required = { - "accountId", - } - - class properties: - accountId = schemas.StrSchema - - @staticmethod - def inputAssetId() -> typing.Type['XBSettlementAssetID']: - return XBSettlementAssetID - - @staticmethod - def outputAssetId() -> typing.Type['XBSettlementAssetID']: - return XBSettlementAssetID - __annotations__ = { - "accountId": accountId, - "inputAssetId": inputAssetId, - "outputAssetId": outputAssetId, - } - - accountId: MetaOapg.properties.accountId - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["accountId"]) -> MetaOapg.properties.accountId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["inputAssetId"]) -> 'XBSettlementAssetID': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["outputAssetId"]) -> 'XBSettlementAssetID': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["accountId", "inputAssetId", "outputAssetId", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["accountId"]) -> MetaOapg.properties.accountId: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["inputAssetId"]) -> typing.Union['XBSettlementAssetID', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["outputAssetId"]) -> typing.Union['XBSettlementAssetID', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["accountId", "inputAssetId", "outputAssetId", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - accountId: typing.Union[MetaOapg.properties.accountId, str, ], - inputAssetId: typing.Union['XBSettlementAssetID', schemas.Unset] = schemas.unset, - outputAssetId: typing.Union['XBSettlementAssetID', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'additional_properties': - return super().__new__( - cls, - *_args, - accountId=accountId, - inputAssetId=inputAssetId, - outputAssetId=outputAssetId, - _configuration=_configuration, - **kwargs, - ) - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["stepType"]) -> 'XBSettlementStepType': ... - - @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["stepType"], str, ]): - # dict_instance[name] accessor - return super().__getitem__(name) - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["stepType"]) -> typing.Union['XBSettlementStepType', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["stepType"], str, ]): - return super().get_item_oapg(name) - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - stepType: typing.Union['XBSettlementStepType', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[MetaOapg.additional_properties, dict, frozendict.frozendict, ], - ) -> 'XBSettlementConfigStepsRecord': - return super().__new__( - cls, - *_args, - stepType=stepType, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.xb_settlement_asset_id import XBSettlementAssetID -from fireblocks_client.model.xb_settlement_step_type import XBSettlementStepType diff --git a/fireblocks_client/model/xb_settlement_config_steps_record.pyi b/fireblocks_client/model/xb_settlement_config_steps_record.pyi deleted file mode 100644 index 54842e58..00000000 --- a/fireblocks_client/model/xb_settlement_config_steps_record.pyi +++ /dev/null @@ -1,164 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class XBSettlementConfigStepsRecord( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def stepType() -> typing.Type['XBSettlementStepType']: - return XBSettlementStepType - __annotations__ = { - "stepType": stepType, - } - - - class additional_properties( - schemas.DictSchema - ): - - - class MetaOapg: - required = { - "accountId", - } - - class properties: - accountId = schemas.StrSchema - - @staticmethod - def inputAssetId() -> typing.Type['XBSettlementAssetID']: - return XBSettlementAssetID - - @staticmethod - def outputAssetId() -> typing.Type['XBSettlementAssetID']: - return XBSettlementAssetID - __annotations__ = { - "accountId": accountId, - "inputAssetId": inputAssetId, - "outputAssetId": outputAssetId, - } - - accountId: MetaOapg.properties.accountId - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["accountId"]) -> MetaOapg.properties.accountId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["inputAssetId"]) -> 'XBSettlementAssetID': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["outputAssetId"]) -> 'XBSettlementAssetID': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["accountId", "inputAssetId", "outputAssetId", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["accountId"]) -> MetaOapg.properties.accountId: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["inputAssetId"]) -> typing.Union['XBSettlementAssetID', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["outputAssetId"]) -> typing.Union['XBSettlementAssetID', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["accountId", "inputAssetId", "outputAssetId", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - accountId: typing.Union[MetaOapg.properties.accountId, str, ], - inputAssetId: typing.Union['XBSettlementAssetID', schemas.Unset] = schemas.unset, - outputAssetId: typing.Union['XBSettlementAssetID', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'additional_properties': - return super().__new__( - cls, - *_args, - accountId=accountId, - inputAssetId=inputAssetId, - outputAssetId=outputAssetId, - _configuration=_configuration, - **kwargs, - ) - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["stepType"]) -> 'XBSettlementStepType': ... - - @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["stepType"], str, ]): - # dict_instance[name] accessor - return super().__getitem__(name) - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["stepType"]) -> typing.Union['XBSettlementStepType', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["stepType"], str, ]): - return super().get_item_oapg(name) - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - stepType: typing.Union['XBSettlementStepType', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[MetaOapg.additional_properties, dict, frozendict.frozendict, ], - ) -> 'XBSettlementConfigStepsRecord': - return super().__new__( - cls, - *_args, - stepType=stepType, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.xb_settlement_asset_id import XBSettlementAssetID -from fireblocks_client.model.xb_settlement_step_type import XBSettlementStepType diff --git a/fireblocks_client/model/xb_settlement_conversion_slippage_basis_points.py b/fireblocks_client/model/xb_settlement_conversion_slippage_basis_points.py deleted file mode 100644 index 9e0a2d17..00000000 --- a/fireblocks_client/model/xb_settlement_conversion_slippage_basis_points.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class XBSettlementConversionSlippageBasisPoints( - schemas.IntSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Slippage configuarion in basis points, the default value is 10% - - """ - - - class MetaOapg: - inclusive_maximum = 10000 - inclusive_minimum = 0 diff --git a/fireblocks_client/model/xb_settlement_conversion_slippage_basis_points.pyi b/fireblocks_client/model/xb_settlement_conversion_slippage_basis_points.pyi deleted file mode 100644 index 7a91dad9..00000000 --- a/fireblocks_client/model/xb_settlement_conversion_slippage_basis_points.pyi +++ /dev/null @@ -1,38 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class XBSettlementConversionSlippageBasisPoints( - schemas.IntSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Slippage configuarion in basis points, the default value is 10% - - """ - pass diff --git a/fireblocks_client/model/xb_settlement_corridor_id.py b/fireblocks_client/model/xb_settlement_corridor_id.py deleted file mode 100644 index 355e5262..00000000 --- a/fireblocks_client/model/xb_settlement_corridor_id.py +++ /dev/null @@ -1,72 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class XBSettlementCorridorId( - schemas.EnumBase, - schemas.StrSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - - MX_US : Mexico (MXN) to USA (USD) -- CO_US : Colombia (COP) to USA (USD) -- US_MX : USA (USD) to Mexico (MXN) -- US_EU : USA (USD) to Europe Union (EUR) -- US_UK : USA (USD) to United Kingdon (GBP) - - """ - - - class MetaOapg: - enum_value_to_name = { - "MX_US": "MX_US", - "CO_US": "CO_US", - "US_MX": "US_MX", - "US_EU": "US_EU", - "US_UK": "US_UK", - } - - @schemas.classproperty - def MX_US(cls): - return cls("MX_US") - - @schemas.classproperty - def CO_US(cls): - return cls("CO_US") - - @schemas.classproperty - def US_MX(cls): - return cls("US_MX") - - @schemas.classproperty - def US_EU(cls): - return cls("US_EU") - - @schemas.classproperty - def US_UK(cls): - return cls("US_UK") diff --git a/fireblocks_client/model/xb_settlement_corridor_id.pyi b/fireblocks_client/model/xb_settlement_corridor_id.pyi deleted file mode 100644 index c616e291..00000000 --- a/fireblocks_client/model/xb_settlement_corridor_id.pyi +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class XBSettlementCorridorId( - schemas.EnumBase, - schemas.StrSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - - MX_US : Mexico (MXN) to USA (USD) -- CO_US : Colombia (COP) to USA (USD) -- US_MX : USA (USD) to Mexico (MXN) -- US_EU : USA (USD) to Europe Union (EUR) -- US_UK : USA (USD) to United Kingdon (GBP) - - """ - - @schemas.classproperty - def MX_US(cls): - return cls("MX_US") - - @schemas.classproperty - def CO_US(cls): - return cls("CO_US") - - @schemas.classproperty - def US_MX(cls): - return cls("US_MX") - - @schemas.classproperty - def US_EU(cls): - return cls("US_EU") - - @schemas.classproperty - def US_UK(cls): - return cls("US_UK") diff --git a/fireblocks_client/model/xb_settlement_create_flow_request_body.py b/fireblocks_client/model/xb_settlement_create_flow_request_body.py deleted file mode 100644 index d57e78e5..00000000 --- a/fireblocks_client/model/xb_settlement_create_flow_request_body.py +++ /dev/null @@ -1,96 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class XBSettlementCreateFlowRequestBody( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "amount", - "configId", - } - - class properties: - configId = schemas.UUIDSchema - amount = schemas.StrSchema - __annotations__ = { - "configId": configId, - "amount": amount, - } - - amount: MetaOapg.properties.amount - configId: MetaOapg.properties.configId - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["configId"]) -> MetaOapg.properties.configId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["amount"]) -> MetaOapg.properties.amount: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["configId", "amount", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["configId"]) -> MetaOapg.properties.configId: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["amount"]) -> MetaOapg.properties.amount: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["configId", "amount", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - amount: typing.Union[MetaOapg.properties.amount, str, ], - configId: typing.Union[MetaOapg.properties.configId, str, uuid.UUID, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'XBSettlementCreateFlowRequestBody': - return super().__new__( - cls, - *_args, - amount=amount, - configId=configId, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/xb_settlement_create_flow_request_body.pyi b/fireblocks_client/model/xb_settlement_create_flow_request_body.pyi deleted file mode 100644 index d57e78e5..00000000 --- a/fireblocks_client/model/xb_settlement_create_flow_request_body.pyi +++ /dev/null @@ -1,96 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class XBSettlementCreateFlowRequestBody( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "amount", - "configId", - } - - class properties: - configId = schemas.UUIDSchema - amount = schemas.StrSchema - __annotations__ = { - "configId": configId, - "amount": amount, - } - - amount: MetaOapg.properties.amount - configId: MetaOapg.properties.configId - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["configId"]) -> MetaOapg.properties.configId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["amount"]) -> MetaOapg.properties.amount: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["configId", "amount", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["configId"]) -> MetaOapg.properties.configId: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["amount"]) -> MetaOapg.properties.amount: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["configId", "amount", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - amount: typing.Union[MetaOapg.properties.amount, str, ], - configId: typing.Union[MetaOapg.properties.configId, str, uuid.UUID, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'XBSettlementCreateFlowRequestBody': - return super().__new__( - cls, - *_args, - amount=amount, - configId=configId, - _configuration=_configuration, - **kwargs, - ) diff --git a/fireblocks_client/model/xb_settlement_create_flow_response.py b/fireblocks_client/model/xb_settlement_create_flow_response.py deleted file mode 100644 index 08c159fd..00000000 --- a/fireblocks_client/model/xb_settlement_create_flow_response.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 -XBSettlementCreateFlowResponse = schemas.Schema diff --git a/fireblocks_client/model/xb_settlement_create_flow_response.pyi b/fireblocks_client/model/xb_settlement_create_flow_response.pyi deleted file mode 100644 index 08c159fd..00000000 --- a/fireblocks_client/model/xb_settlement_create_flow_response.pyi +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 -XBSettlementCreateFlowResponse = schemas.Schema diff --git a/fireblocks_client/model/xb_settlement_crypto_asset.py b/fireblocks_client/model/xb_settlement_crypto_asset.py deleted file mode 100644 index 8c2254d3..00000000 --- a/fireblocks_client/model/xb_settlement_crypto_asset.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class XBSettlementCryptoAsset( - schemas.EnumBase, - schemas.StrSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - - XLM_USDC_5F3T : USDC over Stellar network - - """ - - - class MetaOapg: - enum_value_to_name = { - "XLM_USDC_5F3T": "XLM_USDC_5F3T", - "XLM": "XLM", - } - - @schemas.classproperty - def XLM_USDC_5F3T(cls): - return cls("XLM_USDC_5F3T") - - @schemas.classproperty - def XLM(cls): - return cls("XLM") diff --git a/fireblocks_client/model/xb_settlement_crypto_asset.pyi b/fireblocks_client/model/xb_settlement_crypto_asset.pyi deleted file mode 100644 index 32ffb844..00000000 --- a/fireblocks_client/model/xb_settlement_crypto_asset.pyi +++ /dev/null @@ -1,46 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class XBSettlementCryptoAsset( - schemas.EnumBase, - schemas.StrSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - - XLM_USDC_5F3T : USDC over Stellar network - - """ - - @schemas.classproperty - def XLM_USDC_5F3T(cls): - return cls("XLM_USDC_5F3T") - - @schemas.classproperty - def XLM(cls): - return cls("XLM") diff --git a/fireblocks_client/model/xb_settlement_fiat_asset.py b/fireblocks_client/model/xb_settlement_fiat_asset.py deleted file mode 100644 index 9f68c2fe..00000000 --- a/fireblocks_client/model/xb_settlement_fiat_asset.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class XBSettlementFiatAsset( - schemas.EnumBase, - schemas.StrSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - enum_value_to_name = { - "USD": "USD", - "MXN": "MXN", - "COP": "COP", - "EUR": "EUR", - "GBP": "GBP", - } - - @schemas.classproperty - def USD(cls): - return cls("USD") - - @schemas.classproperty - def MXN(cls): - return cls("MXN") - - @schemas.classproperty - def COP(cls): - return cls("COP") - - @schemas.classproperty - def EUR(cls): - return cls("EUR") - - @schemas.classproperty - def GBP(cls): - return cls("GBP") diff --git a/fireblocks_client/model/xb_settlement_fiat_asset.pyi b/fireblocks_client/model/xb_settlement_fiat_asset.pyi deleted file mode 100644 index 1cdbf992..00000000 --- a/fireblocks_client/model/xb_settlement_fiat_asset.pyi +++ /dev/null @@ -1,55 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class XBSettlementFiatAsset( - schemas.EnumBase, - schemas.StrSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - @schemas.classproperty - def USD(cls): - return cls("USD") - - @schemas.classproperty - def MXN(cls): - return cls("MXN") - - @schemas.classproperty - def COP(cls): - return cls("COP") - - @schemas.classproperty - def EUR(cls): - return cls("EUR") - - @schemas.classproperty - def GBP(cls): - return cls("GBP") diff --git a/fireblocks_client/model/xb_settlement_flow_execution_model.py b/fireblocks_client/model/xb_settlement_flow_execution_model.py deleted file mode 100644 index 937dabfd..00000000 --- a/fireblocks_client/model/xb_settlement_flow_execution_model.py +++ /dev/null @@ -1,281 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class XBSettlementFlowExecutionModel( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "initiatedAt", - "totalFee", - "configId", - "outputAmount", - "inputAmount", - "state", - "flowId", - "steps", - "initiatedBy", - "selectedConversionSlippage", - } - - class properties: - flowId = schemas.StrSchema - configId = schemas.UUIDSchema - - @staticmethod - def inputAmount() -> typing.Type['XBSettlementAsset']: - return XBSettlementAsset - - @staticmethod - def outputAmount() -> typing.Type['XBSettlementAsset']: - return XBSettlementAsset - - @staticmethod - def totalFee() -> typing.Type['XBSettlementAsset']: - return XBSettlementAsset - initiatedAt = schemas.NumberSchema - initiatedBy = schemas.StrSchema - - @staticmethod - def state() -> typing.Type['XBSettlementFlowExecutionStatus']: - return XBSettlementFlowExecutionStatus - - @staticmethod - def steps() -> typing.Type['XBSettlementFlowStepsExecutionRecord']: - return XBSettlementFlowStepsExecutionRecord - - - class selectedConversionSlippage( - schemas.DictSchema - ): - - - class MetaOapg: - required = { - "reason", - "basisPoints", - } - - class properties: - basisPoints = schemas.NumberSchema - - @staticmethod - def reason() -> typing.Type['XBSettlementFlowSelectedConversionSlippageReason']: - return XBSettlementFlowSelectedConversionSlippageReason - __annotations__ = { - "basisPoints": basisPoints, - "reason": reason, - } - - reason: 'XBSettlementFlowSelectedConversionSlippageReason' - basisPoints: MetaOapg.properties.basisPoints - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["basisPoints"]) -> MetaOapg.properties.basisPoints: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["reason"]) -> 'XBSettlementFlowSelectedConversionSlippageReason': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["basisPoints", "reason", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["basisPoints"]) -> MetaOapg.properties.basisPoints: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["reason"]) -> 'XBSettlementFlowSelectedConversionSlippageReason': ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["basisPoints", "reason", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - reason: 'XBSettlementFlowSelectedConversionSlippageReason', - basisPoints: typing.Union[MetaOapg.properties.basisPoints, decimal.Decimal, int, float, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'selectedConversionSlippage': - return super().__new__( - cls, - *_args, - reason=reason, - basisPoints=basisPoints, - _configuration=_configuration, - **kwargs, - ) - __annotations__ = { - "flowId": flowId, - "configId": configId, - "inputAmount": inputAmount, - "outputAmount": outputAmount, - "totalFee": totalFee, - "initiatedAt": initiatedAt, - "initiatedBy": initiatedBy, - "state": state, - "steps": steps, - "selectedConversionSlippage": selectedConversionSlippage, - } - - initiatedAt: MetaOapg.properties.initiatedAt - totalFee: 'XBSettlementAsset' - configId: MetaOapg.properties.configId - outputAmount: 'XBSettlementAsset' - inputAmount: 'XBSettlementAsset' - state: 'XBSettlementFlowExecutionStatus' - flowId: MetaOapg.properties.flowId - steps: 'XBSettlementFlowStepsExecutionRecord' - initiatedBy: MetaOapg.properties.initiatedBy - selectedConversionSlippage: MetaOapg.properties.selectedConversionSlippage - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["flowId"]) -> MetaOapg.properties.flowId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["configId"]) -> MetaOapg.properties.configId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["inputAmount"]) -> 'XBSettlementAsset': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["outputAmount"]) -> 'XBSettlementAsset': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["totalFee"]) -> 'XBSettlementAsset': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["initiatedAt"]) -> MetaOapg.properties.initiatedAt: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["initiatedBy"]) -> MetaOapg.properties.initiatedBy: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["state"]) -> 'XBSettlementFlowExecutionStatus': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["steps"]) -> 'XBSettlementFlowStepsExecutionRecord': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["selectedConversionSlippage"]) -> MetaOapg.properties.selectedConversionSlippage: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["flowId", "configId", "inputAmount", "outputAmount", "totalFee", "initiatedAt", "initiatedBy", "state", "steps", "selectedConversionSlippage", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["flowId"]) -> MetaOapg.properties.flowId: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["configId"]) -> MetaOapg.properties.configId: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["inputAmount"]) -> 'XBSettlementAsset': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["outputAmount"]) -> 'XBSettlementAsset': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["totalFee"]) -> 'XBSettlementAsset': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["initiatedAt"]) -> MetaOapg.properties.initiatedAt: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["initiatedBy"]) -> MetaOapg.properties.initiatedBy: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["state"]) -> 'XBSettlementFlowExecutionStatus': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["steps"]) -> 'XBSettlementFlowStepsExecutionRecord': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["selectedConversionSlippage"]) -> MetaOapg.properties.selectedConversionSlippage: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["flowId", "configId", "inputAmount", "outputAmount", "totalFee", "initiatedAt", "initiatedBy", "state", "steps", "selectedConversionSlippage", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - initiatedAt: typing.Union[MetaOapg.properties.initiatedAt, decimal.Decimal, int, float, ], - totalFee: 'XBSettlementAsset', - configId: typing.Union[MetaOapg.properties.configId, str, uuid.UUID, ], - outputAmount: 'XBSettlementAsset', - inputAmount: 'XBSettlementAsset', - state: 'XBSettlementFlowExecutionStatus', - flowId: typing.Union[MetaOapg.properties.flowId, str, ], - steps: 'XBSettlementFlowStepsExecutionRecord', - initiatedBy: typing.Union[MetaOapg.properties.initiatedBy, str, ], - selectedConversionSlippage: typing.Union[MetaOapg.properties.selectedConversionSlippage, dict, frozendict.frozendict, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'XBSettlementFlowExecutionModel': - return super().__new__( - cls, - *_args, - initiatedAt=initiatedAt, - totalFee=totalFee, - configId=configId, - outputAmount=outputAmount, - inputAmount=inputAmount, - state=state, - flowId=flowId, - steps=steps, - initiatedBy=initiatedBy, - selectedConversionSlippage=selectedConversionSlippage, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.xb_settlement_asset import XBSettlementAsset -from fireblocks_client.model.xb_settlement_flow_execution_status import XBSettlementFlowExecutionStatus -from fireblocks_client.model.xb_settlement_flow_selected_conversion_slippage_reason import XBSettlementFlowSelectedConversionSlippageReason -from fireblocks_client.model.xb_settlement_flow_steps_execution_record import XBSettlementFlowStepsExecutionRecord diff --git a/fireblocks_client/model/xb_settlement_flow_execution_model.pyi b/fireblocks_client/model/xb_settlement_flow_execution_model.pyi deleted file mode 100644 index 937dabfd..00000000 --- a/fireblocks_client/model/xb_settlement_flow_execution_model.pyi +++ /dev/null @@ -1,281 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class XBSettlementFlowExecutionModel( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "initiatedAt", - "totalFee", - "configId", - "outputAmount", - "inputAmount", - "state", - "flowId", - "steps", - "initiatedBy", - "selectedConversionSlippage", - } - - class properties: - flowId = schemas.StrSchema - configId = schemas.UUIDSchema - - @staticmethod - def inputAmount() -> typing.Type['XBSettlementAsset']: - return XBSettlementAsset - - @staticmethod - def outputAmount() -> typing.Type['XBSettlementAsset']: - return XBSettlementAsset - - @staticmethod - def totalFee() -> typing.Type['XBSettlementAsset']: - return XBSettlementAsset - initiatedAt = schemas.NumberSchema - initiatedBy = schemas.StrSchema - - @staticmethod - def state() -> typing.Type['XBSettlementFlowExecutionStatus']: - return XBSettlementFlowExecutionStatus - - @staticmethod - def steps() -> typing.Type['XBSettlementFlowStepsExecutionRecord']: - return XBSettlementFlowStepsExecutionRecord - - - class selectedConversionSlippage( - schemas.DictSchema - ): - - - class MetaOapg: - required = { - "reason", - "basisPoints", - } - - class properties: - basisPoints = schemas.NumberSchema - - @staticmethod - def reason() -> typing.Type['XBSettlementFlowSelectedConversionSlippageReason']: - return XBSettlementFlowSelectedConversionSlippageReason - __annotations__ = { - "basisPoints": basisPoints, - "reason": reason, - } - - reason: 'XBSettlementFlowSelectedConversionSlippageReason' - basisPoints: MetaOapg.properties.basisPoints - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["basisPoints"]) -> MetaOapg.properties.basisPoints: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["reason"]) -> 'XBSettlementFlowSelectedConversionSlippageReason': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["basisPoints", "reason", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["basisPoints"]) -> MetaOapg.properties.basisPoints: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["reason"]) -> 'XBSettlementFlowSelectedConversionSlippageReason': ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["basisPoints", "reason", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - reason: 'XBSettlementFlowSelectedConversionSlippageReason', - basisPoints: typing.Union[MetaOapg.properties.basisPoints, decimal.Decimal, int, float, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'selectedConversionSlippage': - return super().__new__( - cls, - *_args, - reason=reason, - basisPoints=basisPoints, - _configuration=_configuration, - **kwargs, - ) - __annotations__ = { - "flowId": flowId, - "configId": configId, - "inputAmount": inputAmount, - "outputAmount": outputAmount, - "totalFee": totalFee, - "initiatedAt": initiatedAt, - "initiatedBy": initiatedBy, - "state": state, - "steps": steps, - "selectedConversionSlippage": selectedConversionSlippage, - } - - initiatedAt: MetaOapg.properties.initiatedAt - totalFee: 'XBSettlementAsset' - configId: MetaOapg.properties.configId - outputAmount: 'XBSettlementAsset' - inputAmount: 'XBSettlementAsset' - state: 'XBSettlementFlowExecutionStatus' - flowId: MetaOapg.properties.flowId - steps: 'XBSettlementFlowStepsExecutionRecord' - initiatedBy: MetaOapg.properties.initiatedBy - selectedConversionSlippage: MetaOapg.properties.selectedConversionSlippage - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["flowId"]) -> MetaOapg.properties.flowId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["configId"]) -> MetaOapg.properties.configId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["inputAmount"]) -> 'XBSettlementAsset': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["outputAmount"]) -> 'XBSettlementAsset': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["totalFee"]) -> 'XBSettlementAsset': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["initiatedAt"]) -> MetaOapg.properties.initiatedAt: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["initiatedBy"]) -> MetaOapg.properties.initiatedBy: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["state"]) -> 'XBSettlementFlowExecutionStatus': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["steps"]) -> 'XBSettlementFlowStepsExecutionRecord': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["selectedConversionSlippage"]) -> MetaOapg.properties.selectedConversionSlippage: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["flowId", "configId", "inputAmount", "outputAmount", "totalFee", "initiatedAt", "initiatedBy", "state", "steps", "selectedConversionSlippage", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["flowId"]) -> MetaOapg.properties.flowId: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["configId"]) -> MetaOapg.properties.configId: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["inputAmount"]) -> 'XBSettlementAsset': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["outputAmount"]) -> 'XBSettlementAsset': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["totalFee"]) -> 'XBSettlementAsset': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["initiatedAt"]) -> MetaOapg.properties.initiatedAt: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["initiatedBy"]) -> MetaOapg.properties.initiatedBy: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["state"]) -> 'XBSettlementFlowExecutionStatus': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["steps"]) -> 'XBSettlementFlowStepsExecutionRecord': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["selectedConversionSlippage"]) -> MetaOapg.properties.selectedConversionSlippage: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["flowId", "configId", "inputAmount", "outputAmount", "totalFee", "initiatedAt", "initiatedBy", "state", "steps", "selectedConversionSlippage", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - initiatedAt: typing.Union[MetaOapg.properties.initiatedAt, decimal.Decimal, int, float, ], - totalFee: 'XBSettlementAsset', - configId: typing.Union[MetaOapg.properties.configId, str, uuid.UUID, ], - outputAmount: 'XBSettlementAsset', - inputAmount: 'XBSettlementAsset', - state: 'XBSettlementFlowExecutionStatus', - flowId: typing.Union[MetaOapg.properties.flowId, str, ], - steps: 'XBSettlementFlowStepsExecutionRecord', - initiatedBy: typing.Union[MetaOapg.properties.initiatedBy, str, ], - selectedConversionSlippage: typing.Union[MetaOapg.properties.selectedConversionSlippage, dict, frozendict.frozendict, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'XBSettlementFlowExecutionModel': - return super().__new__( - cls, - *_args, - initiatedAt=initiatedAt, - totalFee=totalFee, - configId=configId, - outputAmount=outputAmount, - inputAmount=inputAmount, - state=state, - flowId=flowId, - steps=steps, - initiatedBy=initiatedBy, - selectedConversionSlippage=selectedConversionSlippage, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.xb_settlement_asset import XBSettlementAsset -from fireblocks_client.model.xb_settlement_flow_execution_status import XBSettlementFlowExecutionStatus -from fireblocks_client.model.xb_settlement_flow_selected_conversion_slippage_reason import XBSettlementFlowSelectedConversionSlippageReason -from fireblocks_client.model.xb_settlement_flow_steps_execution_record import XBSettlementFlowStepsExecutionRecord diff --git a/fireblocks_client/model/xb_settlement_flow_execution_request_body.py b/fireblocks_client/model/xb_settlement_flow_execution_request_body.py deleted file mode 100644 index f3155159..00000000 --- a/fireblocks_client/model/xb_settlement_flow_execution_request_body.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class XBSettlementFlowExecutionRequestBody( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def conversionSlippageBasisPoints() -> typing.Type['XBSettlementConversionSlippageBasisPoints']: - return XBSettlementConversionSlippageBasisPoints - __annotations__ = { - "conversionSlippageBasisPoints": conversionSlippageBasisPoints, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["conversionSlippageBasisPoints"]) -> 'XBSettlementConversionSlippageBasisPoints': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["conversionSlippageBasisPoints", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["conversionSlippageBasisPoints"]) -> typing.Union['XBSettlementConversionSlippageBasisPoints', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["conversionSlippageBasisPoints", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - conversionSlippageBasisPoints: typing.Union['XBSettlementConversionSlippageBasisPoints', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'XBSettlementFlowExecutionRequestBody': - return super().__new__( - cls, - *_args, - conversionSlippageBasisPoints=conversionSlippageBasisPoints, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.xb_settlement_conversion_slippage_basis_points import XBSettlementConversionSlippageBasisPoints diff --git a/fireblocks_client/model/xb_settlement_flow_execution_request_body.pyi b/fireblocks_client/model/xb_settlement_flow_execution_request_body.pyi deleted file mode 100644 index f3155159..00000000 --- a/fireblocks_client/model/xb_settlement_flow_execution_request_body.pyi +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class XBSettlementFlowExecutionRequestBody( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def conversionSlippageBasisPoints() -> typing.Type['XBSettlementConversionSlippageBasisPoints']: - return XBSettlementConversionSlippageBasisPoints - __annotations__ = { - "conversionSlippageBasisPoints": conversionSlippageBasisPoints, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["conversionSlippageBasisPoints"]) -> 'XBSettlementConversionSlippageBasisPoints': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["conversionSlippageBasisPoints", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["conversionSlippageBasisPoints"]) -> typing.Union['XBSettlementConversionSlippageBasisPoints', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["conversionSlippageBasisPoints", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - conversionSlippageBasisPoints: typing.Union['XBSettlementConversionSlippageBasisPoints', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'XBSettlementFlowExecutionRequestBody': - return super().__new__( - cls, - *_args, - conversionSlippageBasisPoints=conversionSlippageBasisPoints, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.xb_settlement_conversion_slippage_basis_points import XBSettlementConversionSlippageBasisPoints diff --git a/fireblocks_client/model/xb_settlement_flow_execution_response.py b/fireblocks_client/model/xb_settlement_flow_execution_response.py deleted file mode 100644 index 14d313f3..00000000 --- a/fireblocks_client/model/xb_settlement_flow_execution_response.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 -XBSettlementFlowExecutionResponse = schemas.Schema diff --git a/fireblocks_client/model/xb_settlement_flow_execution_response.pyi b/fireblocks_client/model/xb_settlement_flow_execution_response.pyi deleted file mode 100644 index 14d313f3..00000000 --- a/fireblocks_client/model/xb_settlement_flow_execution_response.pyi +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 -XBSettlementFlowExecutionResponse = schemas.Schema diff --git a/fireblocks_client/model/xb_settlement_flow_execution_status.py b/fireblocks_client/model/xb_settlement_flow_execution_status.py deleted file mode 100644 index 1d11ecef..00000000 --- a/fireblocks_client/model/xb_settlement_flow_execution_status.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class XBSettlementFlowExecutionStatus( - schemas.EnumBase, - schemas.StrSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - enum_value_to_name = { - "NOT_LAUNCHED": "NOT_LAUNCHED", - "PROCESSING": "PROCESSING", - "COMPLETED": "COMPLETED", - "FAILED": "FAILED", - } - - @schemas.classproperty - def NOT_LAUNCHED(cls): - return cls("NOT_LAUNCHED") - - @schemas.classproperty - def PROCESSING(cls): - return cls("PROCESSING") - - @schemas.classproperty - def COMPLETED(cls): - return cls("COMPLETED") - - @schemas.classproperty - def FAILED(cls): - return cls("FAILED") diff --git a/fireblocks_client/model/xb_settlement_flow_execution_status.pyi b/fireblocks_client/model/xb_settlement_flow_execution_status.pyi deleted file mode 100644 index 27803516..00000000 --- a/fireblocks_client/model/xb_settlement_flow_execution_status.pyi +++ /dev/null @@ -1,51 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class XBSettlementFlowExecutionStatus( - schemas.EnumBase, - schemas.StrSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - @schemas.classproperty - def NOT_LAUNCHED(cls): - return cls("NOT_LAUNCHED") - - @schemas.classproperty - def PROCESSING(cls): - return cls("PROCESSING") - - @schemas.classproperty - def COMPLETED(cls): - return cls("COMPLETED") - - @schemas.classproperty - def FAILED(cls): - return cls("FAILED") diff --git a/fireblocks_client/model/xb_settlement_flow_execution_step.py b/fireblocks_client/model/xb_settlement_flow_execution_step.py deleted file mode 100644 index 16076ba1..00000000 --- a/fireblocks_client/model/xb_settlement_flow_execution_step.py +++ /dev/null @@ -1,187 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class XBSettlementFlowExecutionStep( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "accountId", - "inputAmount", - "id", - "isSignRequired", - "status", - } - - class properties: - id = schemas.StrSchema - accountId = schemas.StrSchema - - @staticmethod - def status() -> typing.Type['XBSettlementFlowExecutionStepStatus']: - return XBSettlementFlowExecutionStepStatus - - @staticmethod - def inputAmount() -> typing.Type['XBSettlementAsset']: - return XBSettlementAsset - isSignRequired = schemas.BoolSchema - - @staticmethod - def outputAmount() -> typing.Type['XBSettlementAsset']: - return XBSettlementAsset - - @staticmethod - def fee() -> typing.Type['XBSettlementAsset']: - return XBSettlementAsset - startedAt = schemas.NumberSchema - completedAt = schemas.NumberSchema - __annotations__ = { - "id": id, - "accountId": accountId, - "status": status, - "inputAmount": inputAmount, - "isSignRequired": isSignRequired, - "outputAmount": outputAmount, - "fee": fee, - "startedAt": startedAt, - "completedAt": completedAt, - } - - accountId: MetaOapg.properties.accountId - inputAmount: 'XBSettlementAsset' - id: MetaOapg.properties.id - isSignRequired: MetaOapg.properties.isSignRequired - status: 'XBSettlementFlowExecutionStepStatus' - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["accountId"]) -> MetaOapg.properties.accountId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["status"]) -> 'XBSettlementFlowExecutionStepStatus': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["inputAmount"]) -> 'XBSettlementAsset': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["isSignRequired"]) -> MetaOapg.properties.isSignRequired: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["outputAmount"]) -> 'XBSettlementAsset': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["fee"]) -> 'XBSettlementAsset': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["startedAt"]) -> MetaOapg.properties.startedAt: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["completedAt"]) -> MetaOapg.properties.completedAt: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "accountId", "status", "inputAmount", "isSignRequired", "outputAmount", "fee", "startedAt", "completedAt", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["accountId"]) -> MetaOapg.properties.accountId: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> 'XBSettlementFlowExecutionStepStatus': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["inputAmount"]) -> 'XBSettlementAsset': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["isSignRequired"]) -> MetaOapg.properties.isSignRequired: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["outputAmount"]) -> typing.Union['XBSettlementAsset', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["fee"]) -> typing.Union['XBSettlementAsset', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["startedAt"]) -> typing.Union[MetaOapg.properties.startedAt, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["completedAt"]) -> typing.Union[MetaOapg.properties.completedAt, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "accountId", "status", "inputAmount", "isSignRequired", "outputAmount", "fee", "startedAt", "completedAt", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - accountId: typing.Union[MetaOapg.properties.accountId, str, ], - inputAmount: 'XBSettlementAsset', - id: typing.Union[MetaOapg.properties.id, str, ], - isSignRequired: typing.Union[MetaOapg.properties.isSignRequired, bool, ], - status: 'XBSettlementFlowExecutionStepStatus', - outputAmount: typing.Union['XBSettlementAsset', schemas.Unset] = schemas.unset, - fee: typing.Union['XBSettlementAsset', schemas.Unset] = schemas.unset, - startedAt: typing.Union[MetaOapg.properties.startedAt, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, - completedAt: typing.Union[MetaOapg.properties.completedAt, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'XBSettlementFlowExecutionStep': - return super().__new__( - cls, - *_args, - accountId=accountId, - inputAmount=inputAmount, - id=id, - isSignRequired=isSignRequired, - status=status, - outputAmount=outputAmount, - fee=fee, - startedAt=startedAt, - completedAt=completedAt, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.xb_settlement_asset import XBSettlementAsset -from fireblocks_client.model.xb_settlement_flow_execution_step_status import XBSettlementFlowExecutionStepStatus diff --git a/fireblocks_client/model/xb_settlement_flow_execution_step.pyi b/fireblocks_client/model/xb_settlement_flow_execution_step.pyi deleted file mode 100644 index 16076ba1..00000000 --- a/fireblocks_client/model/xb_settlement_flow_execution_step.pyi +++ /dev/null @@ -1,187 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class XBSettlementFlowExecutionStep( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "accountId", - "inputAmount", - "id", - "isSignRequired", - "status", - } - - class properties: - id = schemas.StrSchema - accountId = schemas.StrSchema - - @staticmethod - def status() -> typing.Type['XBSettlementFlowExecutionStepStatus']: - return XBSettlementFlowExecutionStepStatus - - @staticmethod - def inputAmount() -> typing.Type['XBSettlementAsset']: - return XBSettlementAsset - isSignRequired = schemas.BoolSchema - - @staticmethod - def outputAmount() -> typing.Type['XBSettlementAsset']: - return XBSettlementAsset - - @staticmethod - def fee() -> typing.Type['XBSettlementAsset']: - return XBSettlementAsset - startedAt = schemas.NumberSchema - completedAt = schemas.NumberSchema - __annotations__ = { - "id": id, - "accountId": accountId, - "status": status, - "inputAmount": inputAmount, - "isSignRequired": isSignRequired, - "outputAmount": outputAmount, - "fee": fee, - "startedAt": startedAt, - "completedAt": completedAt, - } - - accountId: MetaOapg.properties.accountId - inputAmount: 'XBSettlementAsset' - id: MetaOapg.properties.id - isSignRequired: MetaOapg.properties.isSignRequired - status: 'XBSettlementFlowExecutionStepStatus' - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["accountId"]) -> MetaOapg.properties.accountId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["status"]) -> 'XBSettlementFlowExecutionStepStatus': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["inputAmount"]) -> 'XBSettlementAsset': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["isSignRequired"]) -> MetaOapg.properties.isSignRequired: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["outputAmount"]) -> 'XBSettlementAsset': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["fee"]) -> 'XBSettlementAsset': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["startedAt"]) -> MetaOapg.properties.startedAt: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["completedAt"]) -> MetaOapg.properties.completedAt: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "accountId", "status", "inputAmount", "isSignRequired", "outputAmount", "fee", "startedAt", "completedAt", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["accountId"]) -> MetaOapg.properties.accountId: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> 'XBSettlementFlowExecutionStepStatus': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["inputAmount"]) -> 'XBSettlementAsset': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["isSignRequired"]) -> MetaOapg.properties.isSignRequired: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["outputAmount"]) -> typing.Union['XBSettlementAsset', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["fee"]) -> typing.Union['XBSettlementAsset', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["startedAt"]) -> typing.Union[MetaOapg.properties.startedAt, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["completedAt"]) -> typing.Union[MetaOapg.properties.completedAt, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "accountId", "status", "inputAmount", "isSignRequired", "outputAmount", "fee", "startedAt", "completedAt", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - accountId: typing.Union[MetaOapg.properties.accountId, str, ], - inputAmount: 'XBSettlementAsset', - id: typing.Union[MetaOapg.properties.id, str, ], - isSignRequired: typing.Union[MetaOapg.properties.isSignRequired, bool, ], - status: 'XBSettlementFlowExecutionStepStatus', - outputAmount: typing.Union['XBSettlementAsset', schemas.Unset] = schemas.unset, - fee: typing.Union['XBSettlementAsset', schemas.Unset] = schemas.unset, - startedAt: typing.Union[MetaOapg.properties.startedAt, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, - completedAt: typing.Union[MetaOapg.properties.completedAt, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'XBSettlementFlowExecutionStep': - return super().__new__( - cls, - *_args, - accountId=accountId, - inputAmount=inputAmount, - id=id, - isSignRequired=isSignRequired, - status=status, - outputAmount=outputAmount, - fee=fee, - startedAt=startedAt, - completedAt=completedAt, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.xb_settlement_asset import XBSettlementAsset -from fireblocks_client.model.xb_settlement_flow_execution_step_status import XBSettlementFlowExecutionStepStatus diff --git a/fireblocks_client/model/xb_settlement_flow_execution_step_status.py b/fireblocks_client/model/xb_settlement_flow_execution_step_status.py deleted file mode 100644 index 5ab0001c..00000000 --- a/fireblocks_client/model/xb_settlement_flow_execution_step_status.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class XBSettlementFlowExecutionStepStatus( - schemas.EnumBase, - schemas.StrSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - enum_value_to_name = { - "NOT_STARTED": "NOT_STARTED", - "PROCESSING": "PROCESSING", - "COMPLETED": "COMPLETED", - "FAILED": "FAILED", - } - - @schemas.classproperty - def NOT_STARTED(cls): - return cls("NOT_STARTED") - - @schemas.classproperty - def PROCESSING(cls): - return cls("PROCESSING") - - @schemas.classproperty - def COMPLETED(cls): - return cls("COMPLETED") - - @schemas.classproperty - def FAILED(cls): - return cls("FAILED") diff --git a/fireblocks_client/model/xb_settlement_flow_execution_step_status.pyi b/fireblocks_client/model/xb_settlement_flow_execution_step_status.pyi deleted file mode 100644 index 18641cdb..00000000 --- a/fireblocks_client/model/xb_settlement_flow_execution_step_status.pyi +++ /dev/null @@ -1,51 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class XBSettlementFlowExecutionStepStatus( - schemas.EnumBase, - schemas.StrSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - @schemas.classproperty - def NOT_STARTED(cls): - return cls("NOT_STARTED") - - @schemas.classproperty - def PROCESSING(cls): - return cls("PROCESSING") - - @schemas.classproperty - def COMPLETED(cls): - return cls("COMPLETED") - - @schemas.classproperty - def FAILED(cls): - return cls("FAILED") diff --git a/fireblocks_client/model/xb_settlement_flow_preview_model.py b/fireblocks_client/model/xb_settlement_flow_preview_model.py deleted file mode 100644 index 93d474f1..00000000 --- a/fireblocks_client/model/xb_settlement_flow_preview_model.py +++ /dev/null @@ -1,183 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class XBSettlementFlowPreviewModel( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "estimatedOutputAmount", - "totalEstimatedTime", - "configId", - "totalEstimatedFee", - "inputAmount", - "conversionRate", - "flowId", - "steps", - } - - class properties: - flowId = schemas.StrSchema - configId = schemas.UUIDSchema - conversionRate = schemas.StrSchema - - @staticmethod - def inputAmount() -> typing.Type['XBSettlementAsset']: - return XBSettlementAsset - - @staticmethod - def estimatedOutputAmount() -> typing.Type['XBSettlementAsset']: - return XBSettlementAsset - - @staticmethod - def totalEstimatedFee() -> typing.Type['XBSettlementAsset']: - return XBSettlementAsset - totalEstimatedTime = schemas.NumberSchema - - @staticmethod - def steps() -> typing.Type['XBSettlementFlowStepsRecord']: - return XBSettlementFlowStepsRecord - __annotations__ = { - "flowId": flowId, - "configId": configId, - "conversionRate": conversionRate, - "inputAmount": inputAmount, - "estimatedOutputAmount": estimatedOutputAmount, - "totalEstimatedFee": totalEstimatedFee, - "totalEstimatedTime": totalEstimatedTime, - "steps": steps, - } - - estimatedOutputAmount: 'XBSettlementAsset' - totalEstimatedTime: MetaOapg.properties.totalEstimatedTime - configId: MetaOapg.properties.configId - totalEstimatedFee: 'XBSettlementAsset' - inputAmount: 'XBSettlementAsset' - conversionRate: MetaOapg.properties.conversionRate - flowId: MetaOapg.properties.flowId - steps: 'XBSettlementFlowStepsRecord' - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["flowId"]) -> MetaOapg.properties.flowId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["configId"]) -> MetaOapg.properties.configId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["conversionRate"]) -> MetaOapg.properties.conversionRate: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["inputAmount"]) -> 'XBSettlementAsset': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["estimatedOutputAmount"]) -> 'XBSettlementAsset': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["totalEstimatedFee"]) -> 'XBSettlementAsset': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["totalEstimatedTime"]) -> MetaOapg.properties.totalEstimatedTime: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["steps"]) -> 'XBSettlementFlowStepsRecord': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["flowId", "configId", "conversionRate", "inputAmount", "estimatedOutputAmount", "totalEstimatedFee", "totalEstimatedTime", "steps", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["flowId"]) -> MetaOapg.properties.flowId: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["configId"]) -> MetaOapg.properties.configId: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["conversionRate"]) -> MetaOapg.properties.conversionRate: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["inputAmount"]) -> 'XBSettlementAsset': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["estimatedOutputAmount"]) -> 'XBSettlementAsset': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["totalEstimatedFee"]) -> 'XBSettlementAsset': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["totalEstimatedTime"]) -> MetaOapg.properties.totalEstimatedTime: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["steps"]) -> 'XBSettlementFlowStepsRecord': ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["flowId", "configId", "conversionRate", "inputAmount", "estimatedOutputAmount", "totalEstimatedFee", "totalEstimatedTime", "steps", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - estimatedOutputAmount: 'XBSettlementAsset', - totalEstimatedTime: typing.Union[MetaOapg.properties.totalEstimatedTime, decimal.Decimal, int, float, ], - configId: typing.Union[MetaOapg.properties.configId, str, uuid.UUID, ], - totalEstimatedFee: 'XBSettlementAsset', - inputAmount: 'XBSettlementAsset', - conversionRate: typing.Union[MetaOapg.properties.conversionRate, str, ], - flowId: typing.Union[MetaOapg.properties.flowId, str, ], - steps: 'XBSettlementFlowStepsRecord', - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'XBSettlementFlowPreviewModel': - return super().__new__( - cls, - *_args, - estimatedOutputAmount=estimatedOutputAmount, - totalEstimatedTime=totalEstimatedTime, - configId=configId, - totalEstimatedFee=totalEstimatedFee, - inputAmount=inputAmount, - conversionRate=conversionRate, - flowId=flowId, - steps=steps, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.xb_settlement_asset import XBSettlementAsset -from fireblocks_client.model.xb_settlement_flow_steps_record import XBSettlementFlowStepsRecord diff --git a/fireblocks_client/model/xb_settlement_flow_preview_model.pyi b/fireblocks_client/model/xb_settlement_flow_preview_model.pyi deleted file mode 100644 index 93d474f1..00000000 --- a/fireblocks_client/model/xb_settlement_flow_preview_model.pyi +++ /dev/null @@ -1,183 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class XBSettlementFlowPreviewModel( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "estimatedOutputAmount", - "totalEstimatedTime", - "configId", - "totalEstimatedFee", - "inputAmount", - "conversionRate", - "flowId", - "steps", - } - - class properties: - flowId = schemas.StrSchema - configId = schemas.UUIDSchema - conversionRate = schemas.StrSchema - - @staticmethod - def inputAmount() -> typing.Type['XBSettlementAsset']: - return XBSettlementAsset - - @staticmethod - def estimatedOutputAmount() -> typing.Type['XBSettlementAsset']: - return XBSettlementAsset - - @staticmethod - def totalEstimatedFee() -> typing.Type['XBSettlementAsset']: - return XBSettlementAsset - totalEstimatedTime = schemas.NumberSchema - - @staticmethod - def steps() -> typing.Type['XBSettlementFlowStepsRecord']: - return XBSettlementFlowStepsRecord - __annotations__ = { - "flowId": flowId, - "configId": configId, - "conversionRate": conversionRate, - "inputAmount": inputAmount, - "estimatedOutputAmount": estimatedOutputAmount, - "totalEstimatedFee": totalEstimatedFee, - "totalEstimatedTime": totalEstimatedTime, - "steps": steps, - } - - estimatedOutputAmount: 'XBSettlementAsset' - totalEstimatedTime: MetaOapg.properties.totalEstimatedTime - configId: MetaOapg.properties.configId - totalEstimatedFee: 'XBSettlementAsset' - inputAmount: 'XBSettlementAsset' - conversionRate: MetaOapg.properties.conversionRate - flowId: MetaOapg.properties.flowId - steps: 'XBSettlementFlowStepsRecord' - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["flowId"]) -> MetaOapg.properties.flowId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["configId"]) -> MetaOapg.properties.configId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["conversionRate"]) -> MetaOapg.properties.conversionRate: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["inputAmount"]) -> 'XBSettlementAsset': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["estimatedOutputAmount"]) -> 'XBSettlementAsset': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["totalEstimatedFee"]) -> 'XBSettlementAsset': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["totalEstimatedTime"]) -> MetaOapg.properties.totalEstimatedTime: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["steps"]) -> 'XBSettlementFlowStepsRecord': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["flowId", "configId", "conversionRate", "inputAmount", "estimatedOutputAmount", "totalEstimatedFee", "totalEstimatedTime", "steps", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["flowId"]) -> MetaOapg.properties.flowId: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["configId"]) -> MetaOapg.properties.configId: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["conversionRate"]) -> MetaOapg.properties.conversionRate: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["inputAmount"]) -> 'XBSettlementAsset': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["estimatedOutputAmount"]) -> 'XBSettlementAsset': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["totalEstimatedFee"]) -> 'XBSettlementAsset': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["totalEstimatedTime"]) -> MetaOapg.properties.totalEstimatedTime: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["steps"]) -> 'XBSettlementFlowStepsRecord': ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["flowId", "configId", "conversionRate", "inputAmount", "estimatedOutputAmount", "totalEstimatedFee", "totalEstimatedTime", "steps", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - estimatedOutputAmount: 'XBSettlementAsset', - totalEstimatedTime: typing.Union[MetaOapg.properties.totalEstimatedTime, decimal.Decimal, int, float, ], - configId: typing.Union[MetaOapg.properties.configId, str, uuid.UUID, ], - totalEstimatedFee: 'XBSettlementAsset', - inputAmount: 'XBSettlementAsset', - conversionRate: typing.Union[MetaOapg.properties.conversionRate, str, ], - flowId: typing.Union[MetaOapg.properties.flowId, str, ], - steps: 'XBSettlementFlowStepsRecord', - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'XBSettlementFlowPreviewModel': - return super().__new__( - cls, - *_args, - estimatedOutputAmount=estimatedOutputAmount, - totalEstimatedTime=totalEstimatedTime, - configId=configId, - totalEstimatedFee=totalEstimatedFee, - inputAmount=inputAmount, - conversionRate=conversionRate, - flowId=flowId, - steps=steps, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.xb_settlement_asset import XBSettlementAsset -from fireblocks_client.model.xb_settlement_flow_steps_record import XBSettlementFlowStepsRecord diff --git a/fireblocks_client/model/xb_settlement_flow_selected_conversion_slippage_reason.py b/fireblocks_client/model/xb_settlement_flow_selected_conversion_slippage_reason.py deleted file mode 100644 index 2d27b12f..00000000 --- a/fireblocks_client/model/xb_settlement_flow_selected_conversion_slippage_reason.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class XBSettlementFlowSelectedConversionSlippageReason( - schemas.EnumBase, - schemas.StrSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - enum_value_to_name = { - "DEFAULT": "DEFAULT", - "CONFIG": "CONFIG", - "FLOW": "FLOW", - } - - @schemas.classproperty - def DEFAULT(cls): - return cls("DEFAULT") - - @schemas.classproperty - def CONFIG(cls): - return cls("CONFIG") - - @schemas.classproperty - def FLOW(cls): - return cls("FLOW") diff --git a/fireblocks_client/model/xb_settlement_flow_selected_conversion_slippage_reason.pyi b/fireblocks_client/model/xb_settlement_flow_selected_conversion_slippage_reason.pyi deleted file mode 100644 index cf833046..00000000 --- a/fireblocks_client/model/xb_settlement_flow_selected_conversion_slippage_reason.pyi +++ /dev/null @@ -1,47 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class XBSettlementFlowSelectedConversionSlippageReason( - schemas.EnumBase, - schemas.StrSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - @schemas.classproperty - def DEFAULT(cls): - return cls("DEFAULT") - - @schemas.classproperty - def CONFIG(cls): - return cls("CONFIG") - - @schemas.classproperty - def FLOW(cls): - return cls("FLOW") diff --git a/fireblocks_client/model/xb_settlement_flow_setup_step.py b/fireblocks_client/model/xb_settlement_flow_setup_step.py deleted file mode 100644 index 0317cf6e..00000000 --- a/fireblocks_client/model/xb_settlement_flow_setup_step.py +++ /dev/null @@ -1,155 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class XBSettlementFlowSetupStep( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "estimatedTime", - "accountId", - "estimatedFeeAmount", - "outputAmount", - "inputAmount", - "isSignRequired", - } - - class properties: - accountId = schemas.StrSchema - - @staticmethod - def inputAmount() -> typing.Type['XBSettlementAsset']: - return XBSettlementAsset - - @staticmethod - def outputAmount() -> typing.Type['XBSettlementAsset']: - return XBSettlementAsset - - @staticmethod - def estimatedFeeAmount() -> typing.Type['XBSettlementAsset']: - return XBSettlementAsset - estimatedTime = schemas.NumberSchema - isSignRequired = schemas.BoolSchema - __annotations__ = { - "accountId": accountId, - "inputAmount": inputAmount, - "outputAmount": outputAmount, - "estimatedFeeAmount": estimatedFeeAmount, - "estimatedTime": estimatedTime, - "isSignRequired": isSignRequired, - } - - estimatedTime: MetaOapg.properties.estimatedTime - accountId: MetaOapg.properties.accountId - estimatedFeeAmount: 'XBSettlementAsset' - outputAmount: 'XBSettlementAsset' - inputAmount: 'XBSettlementAsset' - isSignRequired: MetaOapg.properties.isSignRequired - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["accountId"]) -> MetaOapg.properties.accountId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["inputAmount"]) -> 'XBSettlementAsset': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["outputAmount"]) -> 'XBSettlementAsset': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["estimatedFeeAmount"]) -> 'XBSettlementAsset': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["estimatedTime"]) -> MetaOapg.properties.estimatedTime: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["isSignRequired"]) -> MetaOapg.properties.isSignRequired: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["accountId", "inputAmount", "outputAmount", "estimatedFeeAmount", "estimatedTime", "isSignRequired", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["accountId"]) -> MetaOapg.properties.accountId: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["inputAmount"]) -> 'XBSettlementAsset': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["outputAmount"]) -> 'XBSettlementAsset': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["estimatedFeeAmount"]) -> 'XBSettlementAsset': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["estimatedTime"]) -> MetaOapg.properties.estimatedTime: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["isSignRequired"]) -> MetaOapg.properties.isSignRequired: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["accountId", "inputAmount", "outputAmount", "estimatedFeeAmount", "estimatedTime", "isSignRequired", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - estimatedTime: typing.Union[MetaOapg.properties.estimatedTime, decimal.Decimal, int, float, ], - accountId: typing.Union[MetaOapg.properties.accountId, str, ], - estimatedFeeAmount: 'XBSettlementAsset', - outputAmount: 'XBSettlementAsset', - inputAmount: 'XBSettlementAsset', - isSignRequired: typing.Union[MetaOapg.properties.isSignRequired, bool, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'XBSettlementFlowSetupStep': - return super().__new__( - cls, - *_args, - estimatedTime=estimatedTime, - accountId=accountId, - estimatedFeeAmount=estimatedFeeAmount, - outputAmount=outputAmount, - inputAmount=inputAmount, - isSignRequired=isSignRequired, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.xb_settlement_asset import XBSettlementAsset diff --git a/fireblocks_client/model/xb_settlement_flow_setup_step.pyi b/fireblocks_client/model/xb_settlement_flow_setup_step.pyi deleted file mode 100644 index 0317cf6e..00000000 --- a/fireblocks_client/model/xb_settlement_flow_setup_step.pyi +++ /dev/null @@ -1,155 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class XBSettlementFlowSetupStep( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "estimatedTime", - "accountId", - "estimatedFeeAmount", - "outputAmount", - "inputAmount", - "isSignRequired", - } - - class properties: - accountId = schemas.StrSchema - - @staticmethod - def inputAmount() -> typing.Type['XBSettlementAsset']: - return XBSettlementAsset - - @staticmethod - def outputAmount() -> typing.Type['XBSettlementAsset']: - return XBSettlementAsset - - @staticmethod - def estimatedFeeAmount() -> typing.Type['XBSettlementAsset']: - return XBSettlementAsset - estimatedTime = schemas.NumberSchema - isSignRequired = schemas.BoolSchema - __annotations__ = { - "accountId": accountId, - "inputAmount": inputAmount, - "outputAmount": outputAmount, - "estimatedFeeAmount": estimatedFeeAmount, - "estimatedTime": estimatedTime, - "isSignRequired": isSignRequired, - } - - estimatedTime: MetaOapg.properties.estimatedTime - accountId: MetaOapg.properties.accountId - estimatedFeeAmount: 'XBSettlementAsset' - outputAmount: 'XBSettlementAsset' - inputAmount: 'XBSettlementAsset' - isSignRequired: MetaOapg.properties.isSignRequired - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["accountId"]) -> MetaOapg.properties.accountId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["inputAmount"]) -> 'XBSettlementAsset': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["outputAmount"]) -> 'XBSettlementAsset': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["estimatedFeeAmount"]) -> 'XBSettlementAsset': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["estimatedTime"]) -> MetaOapg.properties.estimatedTime: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["isSignRequired"]) -> MetaOapg.properties.isSignRequired: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["accountId", "inputAmount", "outputAmount", "estimatedFeeAmount", "estimatedTime", "isSignRequired", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["accountId"]) -> MetaOapg.properties.accountId: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["inputAmount"]) -> 'XBSettlementAsset': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["outputAmount"]) -> 'XBSettlementAsset': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["estimatedFeeAmount"]) -> 'XBSettlementAsset': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["estimatedTime"]) -> MetaOapg.properties.estimatedTime: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["isSignRequired"]) -> MetaOapg.properties.isSignRequired: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["accountId", "inputAmount", "outputAmount", "estimatedFeeAmount", "estimatedTime", "isSignRequired", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - estimatedTime: typing.Union[MetaOapg.properties.estimatedTime, decimal.Decimal, int, float, ], - accountId: typing.Union[MetaOapg.properties.accountId, str, ], - estimatedFeeAmount: 'XBSettlementAsset', - outputAmount: 'XBSettlementAsset', - inputAmount: 'XBSettlementAsset', - isSignRequired: typing.Union[MetaOapg.properties.isSignRequired, bool, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'XBSettlementFlowSetupStep': - return super().__new__( - cls, - *_args, - estimatedTime=estimatedTime, - accountId=accountId, - estimatedFeeAmount=estimatedFeeAmount, - outputAmount=outputAmount, - inputAmount=inputAmount, - isSignRequired=isSignRequired, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.xb_settlement_asset import XBSettlementAsset diff --git a/fireblocks_client/model/xb_settlement_flow_steps_execution_record.py b/fireblocks_client/model/xb_settlement_flow_steps_execution_record.py deleted file mode 100644 index 6a6dfddf..00000000 --- a/fireblocks_client/model/xb_settlement_flow_steps_execution_record.py +++ /dev/null @@ -1,87 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class XBSettlementFlowStepsExecutionRecord( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def stepType() -> typing.Type['XBSettlementStepType']: - return XBSettlementStepType - __annotations__ = { - "stepType": stepType, - } - - @staticmethod - def additional_properties() -> typing.Type['XBSettlementFlowExecutionStep']: - return XBSettlementFlowExecutionStep - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["stepType"]) -> 'XBSettlementStepType': ... - - @typing.overload - def __getitem__(self, name: str) -> 'XBSettlementFlowExecutionStep': ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["stepType"], str, ]): - # dict_instance[name] accessor - return super().__getitem__(name) - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["stepType"]) -> typing.Union['XBSettlementStepType', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union['XBSettlementFlowExecutionStep', schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["stepType"], str, ]): - return super().get_item_oapg(name) - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - stepType: typing.Union['XBSettlementStepType', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: 'XBSettlementFlowExecutionStep', - ) -> 'XBSettlementFlowStepsExecutionRecord': - return super().__new__( - cls, - *_args, - stepType=stepType, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.xb_settlement_flow_execution_step import XBSettlementFlowExecutionStep -from fireblocks_client.model.xb_settlement_step_type import XBSettlementStepType diff --git a/fireblocks_client/model/xb_settlement_flow_steps_execution_record.pyi b/fireblocks_client/model/xb_settlement_flow_steps_execution_record.pyi deleted file mode 100644 index 6a6dfddf..00000000 --- a/fireblocks_client/model/xb_settlement_flow_steps_execution_record.pyi +++ /dev/null @@ -1,87 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class XBSettlementFlowStepsExecutionRecord( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def stepType() -> typing.Type['XBSettlementStepType']: - return XBSettlementStepType - __annotations__ = { - "stepType": stepType, - } - - @staticmethod - def additional_properties() -> typing.Type['XBSettlementFlowExecutionStep']: - return XBSettlementFlowExecutionStep - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["stepType"]) -> 'XBSettlementStepType': ... - - @typing.overload - def __getitem__(self, name: str) -> 'XBSettlementFlowExecutionStep': ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["stepType"], str, ]): - # dict_instance[name] accessor - return super().__getitem__(name) - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["stepType"]) -> typing.Union['XBSettlementStepType', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union['XBSettlementFlowExecutionStep', schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["stepType"], str, ]): - return super().get_item_oapg(name) - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - stepType: typing.Union['XBSettlementStepType', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: 'XBSettlementFlowExecutionStep', - ) -> 'XBSettlementFlowStepsExecutionRecord': - return super().__new__( - cls, - *_args, - stepType=stepType, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.xb_settlement_flow_execution_step import XBSettlementFlowExecutionStep -from fireblocks_client.model.xb_settlement_step_type import XBSettlementStepType diff --git a/fireblocks_client/model/xb_settlement_flow_steps_record.py b/fireblocks_client/model/xb_settlement_flow_steps_record.py deleted file mode 100644 index 20209553..00000000 --- a/fireblocks_client/model/xb_settlement_flow_steps_record.py +++ /dev/null @@ -1,87 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class XBSettlementFlowStepsRecord( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def stepType() -> typing.Type['XBSettlementStepType']: - return XBSettlementStepType - __annotations__ = { - "stepType": stepType, - } - - @staticmethod - def additional_properties() -> typing.Type['XBSettlementFlowSetupStep']: - return XBSettlementFlowSetupStep - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["stepType"]) -> 'XBSettlementStepType': ... - - @typing.overload - def __getitem__(self, name: str) -> 'XBSettlementFlowSetupStep': ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["stepType"], str, ]): - # dict_instance[name] accessor - return super().__getitem__(name) - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["stepType"]) -> typing.Union['XBSettlementStepType', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union['XBSettlementFlowSetupStep', schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["stepType"], str, ]): - return super().get_item_oapg(name) - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - stepType: typing.Union['XBSettlementStepType', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: 'XBSettlementFlowSetupStep', - ) -> 'XBSettlementFlowStepsRecord': - return super().__new__( - cls, - *_args, - stepType=stepType, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.xb_settlement_flow_setup_step import XBSettlementFlowSetupStep -from fireblocks_client.model.xb_settlement_step_type import XBSettlementStepType diff --git a/fireblocks_client/model/xb_settlement_flow_steps_record.pyi b/fireblocks_client/model/xb_settlement_flow_steps_record.pyi deleted file mode 100644 index 20209553..00000000 --- a/fireblocks_client/model/xb_settlement_flow_steps_record.pyi +++ /dev/null @@ -1,87 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class XBSettlementFlowStepsRecord( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def stepType() -> typing.Type['XBSettlementStepType']: - return XBSettlementStepType - __annotations__ = { - "stepType": stepType, - } - - @staticmethod - def additional_properties() -> typing.Type['XBSettlementFlowSetupStep']: - return XBSettlementFlowSetupStep - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["stepType"]) -> 'XBSettlementStepType': ... - - @typing.overload - def __getitem__(self, name: str) -> 'XBSettlementFlowSetupStep': ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["stepType"], str, ]): - # dict_instance[name] accessor - return super().__getitem__(name) - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["stepType"]) -> typing.Union['XBSettlementStepType', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union['XBSettlementFlowSetupStep', schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["stepType"], str, ]): - return super().get_item_oapg(name) - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - stepType: typing.Union['XBSettlementStepType', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: 'XBSettlementFlowSetupStep', - ) -> 'XBSettlementFlowStepsRecord': - return super().__new__( - cls, - *_args, - stepType=stepType, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.xb_settlement_flow_setup_step import XBSettlementFlowSetupStep -from fireblocks_client.model.xb_settlement_step_type import XBSettlementStepType diff --git a/fireblocks_client/model/xb_settlement_get_all_configs_response.py b/fireblocks_client/model/xb_settlement_get_all_configs_response.py deleted file mode 100644 index ca406bc6..00000000 --- a/fireblocks_client/model/xb_settlement_get_all_configs_response.py +++ /dev/null @@ -1,111 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class XBSettlementGetAllConfigsResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "configurations", - } - - class properties: - - - class configurations( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['XBSettlementConfigModel']: - return XBSettlementConfigModel - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['XBSettlementConfigModel'], typing.List['XBSettlementConfigModel']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'configurations': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'XBSettlementConfigModel': - return super().__getitem__(i) - __annotations__ = { - "configurations": configurations, - } - - configurations: MetaOapg.properties.configurations - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["configurations"]) -> MetaOapg.properties.configurations: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["configurations", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["configurations"]) -> MetaOapg.properties.configurations: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["configurations", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - configurations: typing.Union[MetaOapg.properties.configurations, list, tuple, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'XBSettlementGetAllConfigsResponse': - return super().__new__( - cls, - *_args, - configurations=configurations, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.xb_settlement_config_model import XBSettlementConfigModel diff --git a/fireblocks_client/model/xb_settlement_get_all_configs_response.pyi b/fireblocks_client/model/xb_settlement_get_all_configs_response.pyi deleted file mode 100644 index ca406bc6..00000000 --- a/fireblocks_client/model/xb_settlement_get_all_configs_response.pyi +++ /dev/null @@ -1,111 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class XBSettlementGetAllConfigsResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "configurations", - } - - class properties: - - - class configurations( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['XBSettlementConfigModel']: - return XBSettlementConfigModel - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['XBSettlementConfigModel'], typing.List['XBSettlementConfigModel']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'configurations': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'XBSettlementConfigModel': - return super().__getitem__(i) - __annotations__ = { - "configurations": configurations, - } - - configurations: MetaOapg.properties.configurations - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["configurations"]) -> MetaOapg.properties.configurations: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["configurations", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["configurations"]) -> MetaOapg.properties.configurations: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["configurations", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - configurations: typing.Union[MetaOapg.properties.configurations, list, tuple, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'XBSettlementGetAllConfigsResponse': - return super().__new__( - cls, - *_args, - configurations=configurations, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.xb_settlement_config_model import XBSettlementConfigModel diff --git a/fireblocks_client/model/xb_settlement_get_config_response.py b/fireblocks_client/model/xb_settlement_get_config_response.py deleted file mode 100644 index 49b3e91e..00000000 --- a/fireblocks_client/model/xb_settlement_get_config_response.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 -XBSettlementGetConfigResponse = schemas.Schema diff --git a/fireblocks_client/model/xb_settlement_get_config_response.pyi b/fireblocks_client/model/xb_settlement_get_config_response.pyi deleted file mode 100644 index 49b3e91e..00000000 --- a/fireblocks_client/model/xb_settlement_get_config_response.pyi +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 -XBSettlementGetConfigResponse = schemas.Schema diff --git a/fireblocks_client/model/xb_settlement_get_flow_response.py b/fireblocks_client/model/xb_settlement_get_flow_response.py deleted file mode 100644 index a1aebc00..00000000 --- a/fireblocks_client/model/xb_settlement_get_flow_response.py +++ /dev/null @@ -1,98 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class XBSettlementGetFlowResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def preview() -> typing.Type['XBSettlementFlowPreviewModel']: - return XBSettlementFlowPreviewModel - - @staticmethod - def execution() -> typing.Type['XBSettlementFlowExecutionModel']: - return XBSettlementFlowExecutionModel - __annotations__ = { - "preview": preview, - "execution": execution, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["preview"]) -> 'XBSettlementFlowPreviewModel': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["execution"]) -> 'XBSettlementFlowExecutionModel': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["preview", "execution", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["preview"]) -> typing.Union['XBSettlementFlowPreviewModel', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["execution"]) -> typing.Union['XBSettlementFlowExecutionModel', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["preview", "execution", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - preview: typing.Union['XBSettlementFlowPreviewModel', schemas.Unset] = schemas.unset, - execution: typing.Union['XBSettlementFlowExecutionModel', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'XBSettlementGetFlowResponse': - return super().__new__( - cls, - *_args, - preview=preview, - execution=execution, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.xb_settlement_flow_execution_model import XBSettlementFlowExecutionModel -from fireblocks_client.model.xb_settlement_flow_preview_model import XBSettlementFlowPreviewModel diff --git a/fireblocks_client/model/xb_settlement_get_flow_response.pyi b/fireblocks_client/model/xb_settlement_get_flow_response.pyi deleted file mode 100644 index a1aebc00..00000000 --- a/fireblocks_client/model/xb_settlement_get_flow_response.pyi +++ /dev/null @@ -1,98 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class XBSettlementGetFlowResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def preview() -> typing.Type['XBSettlementFlowPreviewModel']: - return XBSettlementFlowPreviewModel - - @staticmethod - def execution() -> typing.Type['XBSettlementFlowExecutionModel']: - return XBSettlementFlowExecutionModel - __annotations__ = { - "preview": preview, - "execution": execution, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["preview"]) -> 'XBSettlementFlowPreviewModel': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["execution"]) -> 'XBSettlementFlowExecutionModel': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["preview", "execution", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["preview"]) -> typing.Union['XBSettlementFlowPreviewModel', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["execution"]) -> typing.Union['XBSettlementFlowExecutionModel', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["preview", "execution", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - preview: typing.Union['XBSettlementFlowPreviewModel', schemas.Unset] = schemas.unset, - execution: typing.Union['XBSettlementFlowExecutionModel', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'XBSettlementGetFlowResponse': - return super().__new__( - cls, - *_args, - preview=preview, - execution=execution, - _configuration=_configuration, - **kwargs, - ) - -from fireblocks_client.model.xb_settlement_flow_execution_model import XBSettlementFlowExecutionModel -from fireblocks_client.model.xb_settlement_flow_preview_model import XBSettlementFlowPreviewModel diff --git a/fireblocks_client/model/xb_settlement_step_type.py b/fireblocks_client/model/xb_settlement_step_type.py deleted file mode 100644 index 8c59e9e8..00000000 --- a/fireblocks_client/model/xb_settlement_step_type.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class XBSettlementStepType( - schemas.EnumBase, - schemas.StrSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - - ON_RAMP : A service that allows for the exchange of fiat currencies for cryptocurrencies. An OnRamp input value will always be fiat and output value crypto asset. -- VAULT_ACCOUNT : Fireblocks Vault account -- OFF_RAMP : A service that allows for the exchange of cryptocurrencies for fiat. An OffRamp input value will always be a crypto asset and output value be fiat. -- FIAT_DESTINATION : Fiat account - - """ - - - class MetaOapg: - enum_value_to_name = { - "ON_RAMP": "ON_RAMP", - "VAULT_ACCOUNT": "VAULT_ACCOUNT", - "OFF_RAMP": "OFF_RAMP", - "FIAT_DESTINATION": "FIAT_DESTINATION", - } - - @schemas.classproperty - def ON_RAMP(cls): - return cls("ON_RAMP") - - @schemas.classproperty - def VAULT_ACCOUNT(cls): - return cls("VAULT_ACCOUNT") - - @schemas.classproperty - def OFF_RAMP(cls): - return cls("OFF_RAMP") - - @schemas.classproperty - def FIAT_DESTINATION(cls): - return cls("FIAT_DESTINATION") diff --git a/fireblocks_client/model/xb_settlement_step_type.pyi b/fireblocks_client/model/xb_settlement_step_type.pyi deleted file mode 100644 index 937be584..00000000 --- a/fireblocks_client/model/xb_settlement_step_type.pyi +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - -class XBSettlementStepType( - schemas.EnumBase, - schemas.StrSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - - ON_RAMP : A service that allows for the exchange of fiat currencies for cryptocurrencies. An OnRamp input value will always be fiat and output value crypto asset. -- VAULT_ACCOUNT : Fireblocks Vault account -- OFF_RAMP : A service that allows for the exchange of cryptocurrencies for fiat. An OffRamp input value will always be a crypto asset and output value be fiat. -- FIAT_DESTINATION : Fiat account - - """ - - @schemas.classproperty - def ON_RAMP(cls): - return cls("ON_RAMP") - - @schemas.classproperty - def VAULT_ACCOUNT(cls): - return cls("VAULT_ACCOUNT") - - @schemas.classproperty - def OFF_RAMP(cls): - return cls("OFF_RAMP") - - @schemas.classproperty - def FIAT_DESTINATION(cls): - return cls("FIAT_DESTINATION") diff --git a/fireblocks_client/models/__init__.py b/fireblocks_client/models/__init__.py index 0a8ea444..20d2ff66 100644 --- a/fireblocks_client/models/__init__.py +++ b/fireblocks_client/models/__init__.py @@ -1,199 +1,442 @@ # coding: utf-8 # flake8: noqa +""" + Fireblocks API -# import all models into this package -# if you have many models here with many references from one model to another this may -# raise a RecursionError -# to avoid this, import only the models that you directly need like: -# from fireblocks_client.model.pet import Pet -# or import this package, but before doing it, use: -# import sys -# sys.setrecursionlimit(n) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -from fireblocks_client.model.add_collateral_request_body import AddCollateralRequestBody -from fireblocks_client.model.aml_screening_result import AmlScreeningResult -from fireblocks_client.model.amount_aggregation_time_period_method import AmountAggregationTimePeriodMethod -from fireblocks_client.model.amount_info import AmountInfo -from fireblocks_client.model.asset_type_response import AssetTypeResponse -from fireblocks_client.model.asset_wallet import AssetWallet -from fireblocks_client.model.authorization_groups import AuthorizationGroups -from fireblocks_client.model.authorization_info import AuthorizationInfo -from fireblocks_client.model.block_info import BlockInfo -from fireblocks_client.model.cancel_transaction_response import CancelTransactionResponse -from fireblocks_client.model.collection_ownership_response import CollectionOwnershipResponse -from fireblocks_client.model.config_change_request_status import ConfigChangeRequestStatus -from fireblocks_client.model.create_address_response import CreateAddressResponse -from fireblocks_client.model.create_connection_request import CreateConnectionRequest -from fireblocks_client.model.create_connection_response import CreateConnectionResponse -from fireblocks_client.model.create_internal_transfer_request import CreateInternalTransferRequest -from fireblocks_client.model.create_payout_request import CreatePayoutRequest -from fireblocks_client.model.create_transaction_response import CreateTransactionResponse -from fireblocks_client.model.create_users_group_response import CreateUsersGroupResponse -from fireblocks_client.model.create_vault_asset_response import CreateVaultAssetResponse -from fireblocks_client.model.custom_crypto_routing_dest import CustomCryptoRoutingDest -from fireblocks_client.model.custom_fiat_routing_dest import CustomFiatRoutingDest -from fireblocks_client.model.default_network_routing_dest import DefaultNetworkRoutingDest -from fireblocks_client.model.destination_transfer_peer_path import DestinationTransferPeerPath -from fireblocks_client.model.destination_transfer_peer_path_response import DestinationTransferPeerPathResponse -from fireblocks_client.model.dispatch_payout_response import DispatchPayoutResponse -from fireblocks_client.model.draft_response import DraftResponse -from fireblocks_client.model.draft_review_and_validation_response import DraftReviewAndValidationResponse -from fireblocks_client.model.drop_transaction_request import DropTransactionRequest -from fireblocks_client.model.drop_transaction_response import DropTransactionResponse -from fireblocks_client.model.error import Error -from fireblocks_client.model.error_response import ErrorResponse -from fireblocks_client.model.estimated_network_fee_response import EstimatedNetworkFeeResponse -from fireblocks_client.model.estimated_transaction_fee_response import EstimatedTransactionFeeResponse -from fireblocks_client.model.exchange_account import ExchangeAccount -from fireblocks_client.model.exchange_asset import ExchangeAsset -from fireblocks_client.model.exchange_trading_account import ExchangeTradingAccount -from fireblocks_client.model.exchange_type import ExchangeType -from fireblocks_client.model.external_wallet_asset import ExternalWalletAsset -from fireblocks_client.model.fee_info import FeeInfo -from fireblocks_client.model.fiat_account import FiatAccount -from fireblocks_client.model.fiat_account_type import FiatAccountType -from fireblocks_client.model.fiat_asset import FiatAsset -from fireblocks_client.model.freeze_transaction_response import FreezeTransactionResponse -from fireblocks_client.model.gas_station_configuration import GasStationConfiguration -from fireblocks_client.model.gas_station_properties_response import GasStationPropertiesResponse -from fireblocks_client.model.get_connections_response import GetConnectionsResponse -from fireblocks_client.model.get_settlement_response import GetSettlementResponse -from fireblocks_client.model.get_transaction_operation import GetTransactionOperation -from fireblocks_client.model.get_users_response import GetUsersResponse -from fireblocks_client.model.instruction_amount import InstructionAmount -from fireblocks_client.model.media_entity_response import MediaEntityResponse -from fireblocks_client.model.ncw import Ncw -from fireblocks_client.model.network_channel import NetworkChannel -from fireblocks_client.model.network_connection import NetworkConnection -from fireblocks_client.model.network_connection_response import NetworkConnectionResponse -from fireblocks_client.model.network_connection_routing_policy import NetworkConnectionRoutingPolicy -from fireblocks_client.model.network_fee import NetworkFee -from fireblocks_client.model.network_id import NetworkId -from fireblocks_client.model.network_id_response import NetworkIdResponse -from fireblocks_client.model.network_id_routing_policy import NetworkIdRoutingPolicy -from fireblocks_client.model.network_record import NetworkRecord -from fireblocks_client.model.none_network_routing_dest import NoneNetworkRoutingDest -from fireblocks_client.model.one_time_address import OneTimeAddress -from fireblocks_client.model.paginated_asset_wallet_response import PaginatedAssetWalletResponse -from fireblocks_client.model.paging import Paging -from fireblocks_client.model.payee_account import PayeeAccount -from fireblocks_client.model.payee_account_response import PayeeAccountResponse -from fireblocks_client.model.payee_account_type import PayeeAccountType -from fireblocks_client.model.payment_account import PaymentAccount -from fireblocks_client.model.payment_account_response import PaymentAccountResponse -from fireblocks_client.model.payment_account_type import PaymentAccountType -from fireblocks_client.model.payout_init_method import PayoutInitMethod -from fireblocks_client.model.payout_instruction import PayoutInstruction -from fireblocks_client.model.payout_instruction_response import PayoutInstructionResponse -from fireblocks_client.model.payout_instruction_state import PayoutInstructionState -from fireblocks_client.model.payout_response import PayoutResponse -from fireblocks_client.model.payout_state import PayoutState -from fireblocks_client.model.payout_status import PayoutStatus -from fireblocks_client.model.policy_and_validation_response import PolicyAndValidationResponse -from fireblocks_client.model.policy_check_result import PolicyCheckResult -from fireblocks_client.model.policy_metadata import PolicyMetadata -from fireblocks_client.model.policy_response import PolicyResponse -from fireblocks_client.model.policy_rule import PolicyRule -from fireblocks_client.model.policy_rule_check_result import PolicyRuleCheckResult -from fireblocks_client.model.policy_rule_error import PolicyRuleError -from fireblocks_client.model.policy_src_or_dest_id import PolicySrcOrDestId -from fireblocks_client.model.policy_src_or_dest_sub_type import PolicySrcOrDestSubType -from fireblocks_client.model.policy_src_or_dest_type import PolicySrcOrDestType -from fireblocks_client.model.policy_status import PolicyStatus -from fireblocks_client.model.policy_validation import PolicyValidation -from fireblocks_client.model.public_key_information import PublicKeyInformation -from fireblocks_client.model.publish_result import PublishResult -from fireblocks_client.model.remove_collateral_request_body import RemoveCollateralRequestBody -from fireblocks_client.model.request_options import RequestOptions -from fireblocks_client.model.resend_webhooks_response import ResendWebhooksResponse -from fireblocks_client.model.respond_to_connection_request import RespondToConnectionRequest -from fireblocks_client.model.reward_info import RewardInfo -from fireblocks_client.model.rewards_info import RewardsInfo -from fireblocks_client.model.session_dto import SessionDTO -from fireblocks_client.model.session_metadata import SessionMetadata -from fireblocks_client.model.set_confirmations_threshold_request import SetConfirmationsThresholdRequest -from fireblocks_client.model.set_confirmations_threshold_response import SetConfirmationsThresholdResponse -from fireblocks_client.model.settlement_request_body import SettlementRequestBody -from fireblocks_client.model.settlement_response import SettlementResponse -from fireblocks_client.model.signed_message import SignedMessage -from fireblocks_client.model.source_transfer_peer_path_response import SourceTransferPeerPathResponse -from fireblocks_client.model.system_message_info import SystemMessageInfo -from fireblocks_client.model.term import Term -from fireblocks_client.model.to_collateral_transaction import ToCollateralTransaction -from fireblocks_client.model.to_exchange_transaction import ToExchangeTransaction -from fireblocks_client.model.token_collection_response import TokenCollectionResponse -from fireblocks_client.model.token_ownership_response import TokenOwnershipResponse -from fireblocks_client.model.token_response import TokenResponse -from fireblocks_client.model.trading_account_type import TradingAccountType -from fireblocks_client.model.transaction import Transaction -from fireblocks_client.model.transaction_fee import TransactionFee -from fireblocks_client.model.transaction_operation import TransactionOperation -from fireblocks_client.model.transaction_request import TransactionRequest -from fireblocks_client.model.transaction_request_destination import TransactionRequestDestination -from fireblocks_client.model.transaction_response import TransactionResponse -from fireblocks_client.model.transaction_response_destination import TransactionResponseDestination -from fireblocks_client.model.transfer_peer_path import TransferPeerPath -from fireblocks_client.model.travel_rule_address import TravelRuleAddress -from fireblocks_client.model.travel_rule_get_all_vasps_response import TravelRuleGetAllVASPsResponse -from fireblocks_client.model.travel_rule_issuer import TravelRuleIssuer -from fireblocks_client.model.travel_rule_issuers import TravelRuleIssuers -from fireblocks_client.model.travel_rule_ownership_proof import TravelRuleOwnershipProof -from fireblocks_client.model.travel_rule_pii_ivms import TravelRulePiiIVMS -from fireblocks_client.model.travel_rule_transaction_blockchain_info import TravelRuleTransactionBlockchainInfo -from fireblocks_client.model.travel_rule_update_vasp_details import TravelRuleUpdateVASPDetails -from fireblocks_client.model.travel_rule_vasp import TravelRuleVASP -from fireblocks_client.model.travel_rule_validate_full_transaction_request import TravelRuleValidateFullTransactionRequest -from fireblocks_client.model.travel_rule_validate_transaction_request import TravelRuleValidateTransactionRequest -from fireblocks_client.model.travel_rule_validate_transaction_response import TravelRuleValidateTransactionResponse -from fireblocks_client.model.unfreeze_transaction_response import UnfreezeTransactionResponse -from fireblocks_client.model.unmanaged_wallet import UnmanagedWallet -from fireblocks_client.model.unsigned_message import UnsignedMessage -from fireblocks_client.model.unspent_input import UnspentInput -from fireblocks_client.model.unspent_inputs_response import UnspentInputsResponse -from fireblocks_client.model.update_token_ownership_status_dto import UpdateTokenOwnershipStatusDto -from fireblocks_client.model.user_group_create_request import UserGroupCreateRequest -from fireblocks_client.model.user_group_create_response import UserGroupCreateResponse -from fireblocks_client.model.user_group_update_request import UserGroupUpdateRequest -from fireblocks_client.model.user_response import UserResponse -from fireblocks_client.model.users_group_response import UsersGroupResponse -from fireblocks_client.model.users_groups_response import UsersGroupsResponse -from fireblocks_client.model.validate_address_response import ValidateAddressResponse -from fireblocks_client.model.vault_account import VaultAccount -from fireblocks_client.model.vault_accounts_paged_response import VaultAccountsPagedResponse -from fireblocks_client.model.vault_asset import VaultAsset -from fireblocks_client.model.vault_wallet_address import VaultWalletAddress -from fireblocks_client.model.wallet_asset import WalletAsset -from fireblocks_client.model.wallet_asset_additional_info import WalletAssetAdditionalInfo -from fireblocks_client.model.xb_settlement_asset import XBSettlementAsset -from fireblocks_client.model.xb_settlement_asset_id import XBSettlementAssetID -from fireblocks_client.model.xb_settlement_config_creation_request_body import XBSettlementConfigCreationRequestBody -from fireblocks_client.model.xb_settlement_config_creation_response import XBSettlementConfigCreationResponse -from fireblocks_client.model.xb_settlement_config_deletion_response import XBSettlementConfigDeletionResponse -from fireblocks_client.model.xb_settlement_config_edit_request_body import XBSettlementConfigEditRequestBody -from fireblocks_client.model.xb_settlement_config_edit_response import XBSettlementConfigEditResponse -from fireblocks_client.model.xb_settlement_config_id import XBSettlementConfigId -from fireblocks_client.model.xb_settlement_config_model import XBSettlementConfigModel -from fireblocks_client.model.xb_settlement_config_step import XBSettlementConfigStep -from fireblocks_client.model.xb_settlement_config_steps_record import XBSettlementConfigStepsRecord -from fireblocks_client.model.xb_settlement_conversion_slippage_basis_points import XBSettlementConversionSlippageBasisPoints -from fireblocks_client.model.xb_settlement_corridor_id import XBSettlementCorridorId -from fireblocks_client.model.xb_settlement_create_flow_request_body import XBSettlementCreateFlowRequestBody -from fireblocks_client.model.xb_settlement_create_flow_response import XBSettlementCreateFlowResponse -from fireblocks_client.model.xb_settlement_crypto_asset import XBSettlementCryptoAsset -from fireblocks_client.model.xb_settlement_fiat_asset import XBSettlementFiatAsset -from fireblocks_client.model.xb_settlement_flow_execution_model import XBSettlementFlowExecutionModel -from fireblocks_client.model.xb_settlement_flow_execution_request_body import XBSettlementFlowExecutionRequestBody -from fireblocks_client.model.xb_settlement_flow_execution_response import XBSettlementFlowExecutionResponse -from fireblocks_client.model.xb_settlement_flow_execution_status import XBSettlementFlowExecutionStatus -from fireblocks_client.model.xb_settlement_flow_execution_step import XBSettlementFlowExecutionStep -from fireblocks_client.model.xb_settlement_flow_execution_step_status import XBSettlementFlowExecutionStepStatus -from fireblocks_client.model.xb_settlement_flow_preview_model import XBSettlementFlowPreviewModel -from fireblocks_client.model.xb_settlement_flow_selected_conversion_slippage_reason import XBSettlementFlowSelectedConversionSlippageReason -from fireblocks_client.model.xb_settlement_flow_setup_step import XBSettlementFlowSetupStep -from fireblocks_client.model.xb_settlement_flow_steps_execution_record import XBSettlementFlowStepsExecutionRecord -from fireblocks_client.model.xb_settlement_flow_steps_record import XBSettlementFlowStepsRecord -from fireblocks_client.model.xb_settlement_get_all_configs_response import XBSettlementGetAllConfigsResponse -from fireblocks_client.model.xb_settlement_get_config_response import XBSettlementGetConfigResponse -from fireblocks_client.model.xb_settlement_get_flow_response import XBSettlementGetFlowResponse -from fireblocks_client.model.xb_settlement_step_type import XBSettlementStepType + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +# import models into model package +from fireblocks_client.models.api_user import APIUser +from fireblocks_client.models.abi_function import AbiFunction +from fireblocks_client.models.account import Account +from fireblocks_client.models.account_type import AccountType +from fireblocks_client.models.add_asset_to_external_wallet_request import AddAssetToExternalWalletRequest +from fireblocks_client.models.add_asset_to_external_wallet_request_one_of import AddAssetToExternalWalletRequestOneOf +from fireblocks_client.models.add_asset_to_external_wallet_request_one_of1 import AddAssetToExternalWalletRequestOneOf1 +from fireblocks_client.models.add_asset_to_external_wallet_request_one_of1_additional_info import AddAssetToExternalWalletRequestOneOf1AdditionalInfo +from fireblocks_client.models.add_asset_to_external_wallet_request_one_of1_additional_info_one_of import AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf +from fireblocks_client.models.add_asset_to_external_wallet_request_one_of1_additional_info_one_of1 import AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 +from fireblocks_client.models.add_asset_to_external_wallet_request_one_of1_additional_info_one_of2 import AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2 +from fireblocks_client.models.add_collateral_request_body import AddCollateralRequestBody +from fireblocks_client.models.add_contract_asset_request import AddContractAssetRequest +from fireblocks_client.models.additional_info_dto import AdditionalInfoDto +from fireblocks_client.models.aml_registration_result import AmlRegistrationResult +from fireblocks_client.models.aml_screening_result import AmlScreeningResult +from fireblocks_client.models.amount_aggregation_time_period_method import AmountAggregationTimePeriodMethod +from fireblocks_client.models.amount_and_chain_descriptor import AmountAndChainDescriptor +from fireblocks_client.models.amount_info import AmountInfo +from fireblocks_client.models.api_key import ApiKey +from fireblocks_client.models.api_keys_paginated_response import ApiKeysPaginatedResponse +from fireblocks_client.models.asset_already_exist_http_error import AssetAlreadyExistHttpError +from fireblocks_client.models.asset_amount import AssetAmount +from fireblocks_client.models.asset_bad_request_error_response import AssetBadRequestErrorResponse +from fireblocks_client.models.asset_conflict_error_response import AssetConflictErrorResponse +from fireblocks_client.models.asset_does_not_exist_http_error import AssetDoesNotExistHttpError +from fireblocks_client.models.asset_forbidden_error_response import AssetForbiddenErrorResponse +from fireblocks_client.models.asset_internal_server_error_response import AssetInternalServerErrorResponse +from fireblocks_client.models.asset_metadata_dto import AssetMetadataDto +from fireblocks_client.models.asset_not_found_error_response import AssetNotFoundErrorResponse +from fireblocks_client.models.asset_response import AssetResponse +from fireblocks_client.models.asset_response_metadata import AssetResponseMetadata +from fireblocks_client.models.asset_response_onchain import AssetResponseOnchain +from fireblocks_client.models.asset_type_response import AssetTypeResponse +from fireblocks_client.models.asset_wallet import AssetWallet +from fireblocks_client.models.audit_log_data import AuditLogData +from fireblocks_client.models.auditor_data import AuditorData +from fireblocks_client.models.authorization_groups import AuthorizationGroups +from fireblocks_client.models.authorization_info import AuthorizationInfo +from fireblocks_client.models.block_info import BlockInfo +from fireblocks_client.models.cancel_transaction_response import CancelTransactionResponse +from fireblocks_client.models.chain_info_response_dto import ChainInfoResponseDto +from fireblocks_client.models.collection_metadata_dto import CollectionMetadataDto +from fireblocks_client.models.collection_ownership_response import CollectionOwnershipResponse +from fireblocks_client.models.compliance_result import ComplianceResult +from fireblocks_client.models.compliance_screening_result import ComplianceScreeningResult +from fireblocks_client.models.config_change_request_status import ConfigChangeRequestStatus +from fireblocks_client.models.config_conversion_operation_snapshot import ConfigConversionOperationSnapshot +from fireblocks_client.models.config_disbursement_operation_snapshot import ConfigDisbursementOperationSnapshot +from fireblocks_client.models.config_operation import ConfigOperation +from fireblocks_client.models.config_operation_snapshot import ConfigOperationSnapshot +from fireblocks_client.models.config_operation_status import ConfigOperationStatus +from fireblocks_client.models.config_transfer_operation_snapshot import ConfigTransferOperationSnapshot +from fireblocks_client.models.console_user import ConsoleUser +from fireblocks_client.models.contract_abi_response_dto import ContractAbiResponseDto +from fireblocks_client.models.contract_attributes import ContractAttributes +from fireblocks_client.models.contract_deploy_request import ContractDeployRequest +from fireblocks_client.models.contract_deploy_response import ContractDeployResponse +from fireblocks_client.models.contract_doc import ContractDoc +from fireblocks_client.models.contract_metadata_dto import ContractMetadataDto +from fireblocks_client.models.contract_template_dto import ContractTemplateDto +from fireblocks_client.models.contract_upload_request import ContractUploadRequest +from fireblocks_client.models.conversion_config_operation import ConversionConfigOperation +from fireblocks_client.models.conversion_operation_config_params import ConversionOperationConfigParams +from fireblocks_client.models.conversion_operation_execution import ConversionOperationExecution +from fireblocks_client.models.conversion_operation_execution_output import ConversionOperationExecutionOutput +from fireblocks_client.models.conversion_operation_execution_params import ConversionOperationExecutionParams +from fireblocks_client.models.conversion_operation_execution_params_execution_params import ConversionOperationExecutionParamsExecutionParams +from fireblocks_client.models.conversion_operation_failure import ConversionOperationFailure +from fireblocks_client.models.conversion_operation_preview import ConversionOperationPreview +from fireblocks_client.models.conversion_operation_preview_output import ConversionOperationPreviewOutput +from fireblocks_client.models.conversion_operation_type import ConversionOperationType +from fireblocks_client.models.conversion_validation_failure import ConversionValidationFailure +from fireblocks_client.models.convert_assets_request import ConvertAssetsRequest +from fireblocks_client.models.convert_assets_response import ConvertAssetsResponse +from fireblocks_client.models.cosigner import Cosigner +from fireblocks_client.models.cosigners_paginated_response import CosignersPaginatedResponse +from fireblocks_client.models.create_api_user import CreateAPIUser +from fireblocks_client.models.create_address_request import CreateAddressRequest +from fireblocks_client.models.create_address_response import CreateAddressResponse +from fireblocks_client.models.create_assets_bulk_request import CreateAssetsBulkRequest +from fireblocks_client.models.create_assets_request import CreateAssetsRequest +from fireblocks_client.models.create_config_operation_request import CreateConfigOperationRequest +from fireblocks_client.models.create_connection_request import CreateConnectionRequest +from fireblocks_client.models.create_connection_response import CreateConnectionResponse +from fireblocks_client.models.create_console_user import CreateConsoleUser +from fireblocks_client.models.create_contract_request import CreateContractRequest +from fireblocks_client.models.create_conversion_config_operation_request import CreateConversionConfigOperationRequest +from fireblocks_client.models.create_disbursement_config_operation_request import CreateDisbursementConfigOperationRequest +from fireblocks_client.models.create_internal_transfer_request import CreateInternalTransferRequest +from fireblocks_client.models.create_internal_wallet_asset_request import CreateInternalWalletAssetRequest +from fireblocks_client.models.create_multiple_accounts_request import CreateMultipleAccountsRequest +from fireblocks_client.models.create_ncw_connection_request import CreateNcwConnectionRequest +from fireblocks_client.models.create_network_id_request import CreateNetworkIdRequest +from fireblocks_client.models.create_payout_request import CreatePayoutRequest +from fireblocks_client.models.create_token_request_dto import CreateTokenRequestDto +from fireblocks_client.models.create_token_request_dto_create_params import CreateTokenRequestDtoCreateParams +from fireblocks_client.models.create_transaction_response import CreateTransactionResponse +from fireblocks_client.models.create_transfer_config_operation_request import CreateTransferConfigOperationRequest +from fireblocks_client.models.create_user_group_response import CreateUserGroupResponse +from fireblocks_client.models.create_vault_account_connection_request import CreateVaultAccountConnectionRequest +from fireblocks_client.models.create_vault_account_request import CreateVaultAccountRequest +from fireblocks_client.models.create_vault_asset_response import CreateVaultAssetResponse +from fireblocks_client.models.create_wallet_request import CreateWalletRequest +from fireblocks_client.models.create_workflow_execution_request_params_inner import CreateWorkflowExecutionRequestParamsInner +from fireblocks_client.models.custom_routing_dest import CustomRoutingDest +from fireblocks_client.models.default_network_routing_dest import DefaultNetworkRoutingDest +from fireblocks_client.models.delegation_dto import DelegationDto +from fireblocks_client.models.delegation_summary_dto import DelegationSummaryDto +from fireblocks_client.models.delete_network_connection_response import DeleteNetworkConnectionResponse +from fireblocks_client.models.delete_network_id_response import DeleteNetworkIdResponse +from fireblocks_client.models.deployed_contract_response_dto import DeployedContractResponseDto +from fireblocks_client.models.deployed_contracts_paginated_response import DeployedContractsPaginatedResponse +from fireblocks_client.models.deposit_funds_from_linked_dda_response import DepositFundsFromLinkedDDAResponse +from fireblocks_client.models.destination import Destination +from fireblocks_client.models.destination_transfer_peer_path import DestinationTransferPeerPath +from fireblocks_client.models.destination_transfer_peer_path_response import DestinationTransferPeerPathResponse +from fireblocks_client.models.disbursement_amount_instruction import DisbursementAmountInstruction +from fireblocks_client.models.disbursement_config_operation import DisbursementConfigOperation +from fireblocks_client.models.disbursement_instruction import DisbursementInstruction +from fireblocks_client.models.disbursement_instruction_output import DisbursementInstructionOutput +from fireblocks_client.models.disbursement_operation_config_params import DisbursementOperationConfigParams +from fireblocks_client.models.disbursement_operation_execution import DisbursementOperationExecution +from fireblocks_client.models.disbursement_operation_execution_output import DisbursementOperationExecutionOutput +from fireblocks_client.models.disbursement_operation_execution_params import DisbursementOperationExecutionParams +from fireblocks_client.models.disbursement_operation_execution_params_execution_params import DisbursementOperationExecutionParamsExecutionParams +from fireblocks_client.models.disbursement_operation_input import DisbursementOperationInput +from fireblocks_client.models.disbursement_operation_preview import DisbursementOperationPreview +from fireblocks_client.models.disbursement_operation_preview_output import DisbursementOperationPreviewOutput +from fireblocks_client.models.disbursement_operation_preview_output_instruction_set_inner import DisbursementOperationPreviewOutputInstructionSetInner +from fireblocks_client.models.disbursement_operation_type import DisbursementOperationType +from fireblocks_client.models.disbursement_percentage_instruction import DisbursementPercentageInstruction +from fireblocks_client.models.disbursement_validation_failure import DisbursementValidationFailure +from fireblocks_client.models.dispatch_payout_response import DispatchPayoutResponse +from fireblocks_client.models.draft_response import DraftResponse +from fireblocks_client.models.draft_review_and_validation_response import DraftReviewAndValidationResponse +from fireblocks_client.models.drop_transaction_request import DropTransactionRequest +from fireblocks_client.models.drop_transaction_response import DropTransactionResponse +from fireblocks_client.models.evm_token_create_params_dto import EVMTokenCreateParamsDto +from fireblocks_client.models.edit_gas_station_configuration_response import EditGasStationConfigurationResponse +from fireblocks_client.models.error_response import ErrorResponse +from fireblocks_client.models.error_response_error import ErrorResponseError +from fireblocks_client.models.error_schema import ErrorSchema +from fireblocks_client.models.estimated_network_fee_response import EstimatedNetworkFeeResponse +from fireblocks_client.models.estimated_transaction_fee_response import EstimatedTransactionFeeResponse +from fireblocks_client.models.exchange_account import ExchangeAccount +from fireblocks_client.models.exchange_accounts_paged import ExchangeAccountsPaged +from fireblocks_client.models.exchange_accounts_paged_paging import ExchangeAccountsPagedPaging +from fireblocks_client.models.exchange_asset import ExchangeAsset +from fireblocks_client.models.exchange_settlement_transactions_response import ExchangeSettlementTransactionsResponse +from fireblocks_client.models.exchange_trading_account import ExchangeTradingAccount +from fireblocks_client.models.exchange_type import ExchangeType +from fireblocks_client.models.execute_action_request import ExecuteActionRequest +from fireblocks_client.models.execute_action_response import ExecuteActionResponse +from fireblocks_client.models.execution_conversion_operation import ExecutionConversionOperation +from fireblocks_client.models.execution_disbursement_operation import ExecutionDisbursementOperation +from fireblocks_client.models.execution_operation_status import ExecutionOperationStatus +from fireblocks_client.models.execution_screening_operation import ExecutionScreeningOperation +from fireblocks_client.models.execution_transfer_operation import ExecutionTransferOperation +from fireblocks_client.models.external_wallet_asset import ExternalWalletAsset +from fireblocks_client.models.fee_info import FeeInfo +from fireblocks_client.models.fiat_account import FiatAccount +from fireblocks_client.models.fiat_account_type import FiatAccountType +from fireblocks_client.models.fiat_asset import FiatAsset +from fireblocks_client.models.freeze_transaction_response import FreezeTransactionResponse +from fireblocks_client.models.function_doc import FunctionDoc +from fireblocks_client.models.funds import Funds +from fireblocks_client.models.gas_station_configuration import GasStationConfiguration +from fireblocks_client.models.gas_station_configuration_response import GasStationConfigurationResponse +from fireblocks_client.models.gas_station_properties_response import GasStationPropertiesResponse +from fireblocks_client.models.get_api_users_response import GetAPIUsersResponse +from fireblocks_client.models.get_audit_logs_response import GetAuditLogsResponse +from fireblocks_client.models.get_audit_logs_response_dto import GetAuditLogsResponseDTO +from fireblocks_client.models.get_connections_response import GetConnectionsResponse +from fireblocks_client.models.get_console_users_response import GetConsoleUsersResponse +from fireblocks_client.models.get_filter_parameter import GetFilterParameter +from fireblocks_client.models.get_max_spendable_amount_response import GetMaxSpendableAmountResponse +from fireblocks_client.models.get_nfts_response import GetNFTsResponse +from fireblocks_client.models.get_ota_status_response import GetOtaStatusResponse +from fireblocks_client.models.get_ownership_tokens_response import GetOwnershipTokensResponse +from fireblocks_client.models.get_transaction_operation import GetTransactionOperation +from fireblocks_client.models.get_whitelist_ip_addresses_response import GetWhitelistIpAddressesResponse +from fireblocks_client.models.get_workspace_status_response import GetWorkspaceStatusResponse +from fireblocks_client.models.http_contract_does_not_exist_error import HttpContractDoesNotExistError +from fireblocks_client.models.instruction_amount import InstructionAmount +from fireblocks_client.models.internal_transfer_response import InternalTransferResponse +from fireblocks_client.models.job import Job +from fireblocks_client.models.job_created import JobCreated +from fireblocks_client.models.lean_abi_function import LeanAbiFunction +from fireblocks_client.models.lean_contract_dto import LeanContractDto +from fireblocks_client.models.lean_deployed_contract_response_dto import LeanDeployedContractResponseDto +from fireblocks_client.models.list_owned_collections_response import ListOwnedCollectionsResponse +from fireblocks_client.models.list_owned_tokens_response import ListOwnedTokensResponse +from fireblocks_client.models.media_entity_response import MediaEntityResponse +from fireblocks_client.models.network_channel import NetworkChannel +from fireblocks_client.models.network_connection import NetworkConnection +from fireblocks_client.models.network_connection_response import NetworkConnectionResponse +from fireblocks_client.models.network_connection_routing_policy_value import NetworkConnectionRoutingPolicyValue +from fireblocks_client.models.network_connection_status import NetworkConnectionStatus +from fireblocks_client.models.network_fee import NetworkFee +from fireblocks_client.models.network_id import NetworkId +from fireblocks_client.models.network_id_response import NetworkIdResponse +from fireblocks_client.models.network_id_routing_policy_value import NetworkIdRoutingPolicyValue +from fireblocks_client.models.network_record import NetworkRecord +from fireblocks_client.models.none_network_routing_dest import NoneNetworkRoutingDest +from fireblocks_client.models.not_found_exception import NotFoundException +from fireblocks_client.models.one_time_address import OneTimeAddress +from fireblocks_client.models.one_time_address_account import OneTimeAddressAccount +from fireblocks_client.models.operation_execution_failure import OperationExecutionFailure +from fireblocks_client.models.paginated_address_response import PaginatedAddressResponse +from fireblocks_client.models.paginated_address_response_paging import PaginatedAddressResponsePaging +from fireblocks_client.models.paginated_asset_wallet_response import PaginatedAssetWalletResponse +from fireblocks_client.models.paginated_asset_wallet_response_paging import PaginatedAssetWalletResponsePaging +from fireblocks_client.models.paging import Paging +from fireblocks_client.models.parameter import Parameter +from fireblocks_client.models.parameter_with_value import ParameterWithValue +from fireblocks_client.models.payee_account import PayeeAccount +from fireblocks_client.models.payee_account_response import PayeeAccountResponse +from fireblocks_client.models.payee_account_type import PayeeAccountType +from fireblocks_client.models.payment_account import PaymentAccount +from fireblocks_client.models.payment_account_response import PaymentAccountResponse +from fireblocks_client.models.payment_account_type import PaymentAccountType +from fireblocks_client.models.payout_init_method import PayoutInitMethod +from fireblocks_client.models.payout_instruction import PayoutInstruction +from fireblocks_client.models.payout_instruction_response import PayoutInstructionResponse +from fireblocks_client.models.payout_instruction_state import PayoutInstructionState +from fireblocks_client.models.payout_response import PayoutResponse +from fireblocks_client.models.payout_state import PayoutState +from fireblocks_client.models.payout_status import PayoutStatus +from fireblocks_client.models.policy_and_validation_response import PolicyAndValidationResponse +from fireblocks_client.models.policy_check_result import PolicyCheckResult +from fireblocks_client.models.policy_metadata import PolicyMetadata +from fireblocks_client.models.policy_response import PolicyResponse +from fireblocks_client.models.policy_rule import PolicyRule +from fireblocks_client.models.policy_rule_amount import PolicyRuleAmount +from fireblocks_client.models.policy_rule_amount_aggregation import PolicyRuleAmountAggregation +from fireblocks_client.models.policy_rule_authorization_groups import PolicyRuleAuthorizationGroups +from fireblocks_client.models.policy_rule_authorization_groups_groups_inner import PolicyRuleAuthorizationGroupsGroupsInner +from fireblocks_client.models.policy_rule_check_result import PolicyRuleCheckResult +from fireblocks_client.models.policy_rule_designated_signers import PolicyRuleDesignatedSigners +from fireblocks_client.models.policy_rule_dst import PolicyRuleDst +from fireblocks_client.models.policy_rule_error import PolicyRuleError +from fireblocks_client.models.policy_rule_operators import PolicyRuleOperators +from fireblocks_client.models.policy_rule_raw_message_signing import PolicyRuleRawMessageSigning +from fireblocks_client.models.policy_rule_raw_message_signing_derivation_path import PolicyRuleRawMessageSigningDerivationPath +from fireblocks_client.models.policy_rule_src import PolicyRuleSrc +from fireblocks_client.models.policy_rules import PolicyRules +from fireblocks_client.models.policy_src_or_dest_sub_type import PolicySrcOrDestSubType +from fireblocks_client.models.policy_src_or_dest_type import PolicySrcOrDestType +from fireblocks_client.models.policy_status import PolicyStatus +from fireblocks_client.models.policy_validation import PolicyValidation +from fireblocks_client.models.pre_screening import PreScreening +from fireblocks_client.models.provider_dto import ProviderDto +from fireblocks_client.models.public_key_information import PublicKeyInformation +from fireblocks_client.models.publish_draft_request import PublishDraftRequest +from fireblocks_client.models.publish_result import PublishResult +from fireblocks_client.models.read_abi_function import ReadAbiFunction +from fireblocks_client.models.read_call_function_dto import ReadCallFunctionDto +from fireblocks_client.models.redeem_funds_to_linked_dda_response import RedeemFundsToLinkedDDAResponse +from fireblocks_client.models.register_new_asset_request import RegisterNewAssetRequest +from fireblocks_client.models.related_transaction_dto import RelatedTransactionDto +from fireblocks_client.models.remove_collateral_request_body import RemoveCollateralRequestBody +from fireblocks_client.models.rename_cosigner import RenameCosigner +from fireblocks_client.models.rename_vault_account_response import RenameVaultAccountResponse +from fireblocks_client.models.resend_transaction_webhooks_request import ResendTransactionWebhooksRequest +from fireblocks_client.models.resend_webhooks_by_transaction_id_response import ResendWebhooksByTransactionIdResponse +from fireblocks_client.models.resend_webhooks_response import ResendWebhooksResponse +from fireblocks_client.models.respond_to_connection_request import RespondToConnectionRequest +from fireblocks_client.models.reward_info import RewardInfo +from fireblocks_client.models.rewards_info import RewardsInfo +from fireblocks_client.models.screening_configurations_request import ScreeningConfigurationsRequest +from fireblocks_client.models.screening_operation_execution import ScreeningOperationExecution +from fireblocks_client.models.screening_operation_execution_output import ScreeningOperationExecutionOutput +from fireblocks_client.models.screening_operation_failure import ScreeningOperationFailure +from fireblocks_client.models.screening_operation_type import ScreeningOperationType +from fireblocks_client.models.screening_policy_response import ScreeningPolicyResponse +from fireblocks_client.models.screening_provider_rules_configuration_response import ScreeningProviderRulesConfigurationResponse +from fireblocks_client.models.screening_update_configurations_request import ScreeningUpdateConfigurationsRequest +from fireblocks_client.models.screening_validation_failure import ScreeningValidationFailure +from fireblocks_client.models.screening_verdict import ScreeningVerdict +from fireblocks_client.models.screening_verdict_matched_rule import ScreeningVerdictMatchedRule +from fireblocks_client.models.session_dto import SessionDTO +from fireblocks_client.models.session_metadata import SessionMetadata +from fireblocks_client.models.set_admin_quorum_threshold_request import SetAdminQuorumThresholdRequest +from fireblocks_client.models.set_admin_quorum_threshold_response import SetAdminQuorumThresholdResponse +from fireblocks_client.models.set_auto_fuel_request import SetAutoFuelRequest +from fireblocks_client.models.set_confirmations_threshold_request import SetConfirmationsThresholdRequest +from fireblocks_client.models.set_confirmations_threshold_response import SetConfirmationsThresholdResponse +from fireblocks_client.models.set_customer_ref_id_for_address_request import SetCustomerRefIdForAddressRequest +from fireblocks_client.models.set_customer_ref_id_request import SetCustomerRefIdRequest +from fireblocks_client.models.set_network_id_discoverability_request import SetNetworkIdDiscoverabilityRequest +from fireblocks_client.models.set_network_id_name_request import SetNetworkIdNameRequest +from fireblocks_client.models.set_network_id_response import SetNetworkIdResponse +from fireblocks_client.models.set_network_id_routing_policy_request import SetNetworkIdRoutingPolicyRequest +from fireblocks_client.models.set_ota_status_request import SetOtaStatusRequest +from fireblocks_client.models.set_ota_status_response import SetOtaStatusResponse +from fireblocks_client.models.set_ota_status_response_one_of import SetOtaStatusResponseOneOf +from fireblocks_client.models.set_routing_policy_request import SetRoutingPolicyRequest +from fireblocks_client.models.set_routing_policy_response import SetRoutingPolicyResponse +from fireblocks_client.models.settlement_request_body import SettlementRequestBody +from fireblocks_client.models.settlement_response import SettlementResponse +from fireblocks_client.models.signed_message import SignedMessage +from fireblocks_client.models.signed_message_signature import SignedMessageSignature +from fireblocks_client.models.smart_transfer_bad_request_response import SmartTransferBadRequestResponse +from fireblocks_client.models.smart_transfer_create_ticket import SmartTransferCreateTicket +from fireblocks_client.models.smart_transfer_create_ticket_term import SmartTransferCreateTicketTerm +from fireblocks_client.models.smart_transfer_forbidden_response import SmartTransferForbiddenResponse +from fireblocks_client.models.smart_transfer_fund_term import SmartTransferFundTerm +from fireblocks_client.models.smart_transfer_manually_fund_term import SmartTransferManuallyFundTerm +from fireblocks_client.models.smart_transfer_not_found_response import SmartTransferNotFoundResponse +from fireblocks_client.models.smart_transfer_set_ticket_expiration import SmartTransferSetTicketExpiration +from fireblocks_client.models.smart_transfer_set_ticket_external_id import SmartTransferSetTicketExternalId +from fireblocks_client.models.smart_transfer_set_user_groups import SmartTransferSetUserGroups +from fireblocks_client.models.smart_transfer_submit_ticket import SmartTransferSubmitTicket +from fireblocks_client.models.smart_transfer_ticket import SmartTransferTicket +from fireblocks_client.models.smart_transfer_ticket_filtered_response import SmartTransferTicketFilteredResponse +from fireblocks_client.models.smart_transfer_ticket_response import SmartTransferTicketResponse +from fireblocks_client.models.smart_transfer_ticket_term import SmartTransferTicketTerm +from fireblocks_client.models.smart_transfer_ticket_term_response import SmartTransferTicketTermResponse +from fireblocks_client.models.smart_transfer_update_ticket_term import SmartTransferUpdateTicketTerm +from fireblocks_client.models.smart_transfer_user_groups import SmartTransferUserGroups +from fireblocks_client.models.smart_transfer_user_groups_response import SmartTransferUserGroupsResponse +from fireblocks_client.models.solana_blockchain_data_dto import SolanaBlockchainDataDto +from fireblocks_client.models.source_transfer_peer_path import SourceTransferPeerPath +from fireblocks_client.models.source_transfer_peer_path_response import SourceTransferPeerPathResponse +from fireblocks_client.models.spam_ownership_response import SpamOwnershipResponse +from fireblocks_client.models.spam_token_response import SpamTokenResponse +from fireblocks_client.models.src_or_dest_attributes_inner import SrcOrDestAttributesInner +from fireblocks_client.models.stake_request_dto import StakeRequestDto +from fireblocks_client.models.stake_response_dto import StakeResponseDto +from fireblocks_client.models.stellar_ripple_create_params_dto import StellarRippleCreateParamsDto +from fireblocks_client.models.system_message_info import SystemMessageInfo +from fireblocks_client.models.task import Task +from fireblocks_client.models.templates_paginated_response import TemplatesPaginatedResponse +from fireblocks_client.models.third_party_routing import ThirdPartyRouting +from fireblocks_client.models.to_collateral_transaction import ToCollateralTransaction +from fireblocks_client.models.to_exchange_transaction import ToExchangeTransaction +from fireblocks_client.models.token_collection_response import TokenCollectionResponse +from fireblocks_client.models.token_link_dto import TokenLinkDto +from fireblocks_client.models.token_link_dto_token_metadata import TokenLinkDtoTokenMetadata +from fireblocks_client.models.token_link_exists_http_error import TokenLinkExistsHttpError +from fireblocks_client.models.token_link_request_dto import TokenLinkRequestDto +from fireblocks_client.models.token_ownership_response import TokenOwnershipResponse +from fireblocks_client.models.token_ownership_spam_update_payload import TokenOwnershipSpamUpdatePayload +from fireblocks_client.models.token_ownership_status_update_payload import TokenOwnershipStatusUpdatePayload +from fireblocks_client.models.token_response import TokenResponse +from fireblocks_client.models.tokens_paginated_response import TokensPaginatedResponse +from fireblocks_client.models.trading_account_type import TradingAccountType +from fireblocks_client.models.transaction import Transaction +from fireblocks_client.models.transaction_fee import TransactionFee +from fireblocks_client.models.transaction_operation import TransactionOperation +from fireblocks_client.models.transaction_request import TransactionRequest +from fireblocks_client.models.transaction_request_amount import TransactionRequestAmount +from fireblocks_client.models.transaction_request_destination import TransactionRequestDestination +from fireblocks_client.models.transaction_request_fee import TransactionRequestFee +from fireblocks_client.models.transaction_request_gas_limit import TransactionRequestGasLimit +from fireblocks_client.models.transaction_request_gas_price import TransactionRequestGasPrice +from fireblocks_client.models.transaction_request_network_fee import TransactionRequestNetworkFee +from fireblocks_client.models.transaction_request_network_staking import TransactionRequestNetworkStaking +from fireblocks_client.models.transaction_request_priority_fee import TransactionRequestPriorityFee +from fireblocks_client.models.transaction_response import TransactionResponse +from fireblocks_client.models.transaction_response_contract_call_decoded_data import TransactionResponseContractCallDecodedData +from fireblocks_client.models.transaction_response_destination import TransactionResponseDestination +from fireblocks_client.models.transfer_config_operation import TransferConfigOperation +from fireblocks_client.models.transfer_operation_config_params import TransferOperationConfigParams +from fireblocks_client.models.transfer_operation_execution import TransferOperationExecution +from fireblocks_client.models.transfer_operation_execution_output import TransferOperationExecutionOutput +from fireblocks_client.models.transfer_operation_execution_params import TransferOperationExecutionParams +from fireblocks_client.models.transfer_operation_execution_params_execution_params import TransferOperationExecutionParamsExecutionParams +from fireblocks_client.models.transfer_operation_failure import TransferOperationFailure +from fireblocks_client.models.transfer_operation_failure_data import TransferOperationFailureData +from fireblocks_client.models.transfer_operation_preview import TransferOperationPreview +from fireblocks_client.models.transfer_operation_preview_output import TransferOperationPreviewOutput +from fireblocks_client.models.transfer_operation_type import TransferOperationType +from fireblocks_client.models.transfer_peer_path_sub_type import TransferPeerPathSubType +from fireblocks_client.models.transfer_peer_path_type import TransferPeerPathType +from fireblocks_client.models.transfer_validation_failure import TransferValidationFailure +from fireblocks_client.models.travel_rule_address import TravelRuleAddress +from fireblocks_client.models.travel_rule_create_transaction_request import TravelRuleCreateTransactionRequest +from fireblocks_client.models.travel_rule_get_all_vasps_response import TravelRuleGetAllVASPsResponse +from fireblocks_client.models.travel_rule_issuer import TravelRuleIssuer +from fireblocks_client.models.travel_rule_issuers import TravelRuleIssuers +from fireblocks_client.models.travel_rule_ownership_proof import TravelRuleOwnershipProof +from fireblocks_client.models.travel_rule_pii_ivms import TravelRulePiiIVMS +from fireblocks_client.models.travel_rule_policy_rule_response import TravelRulePolicyRuleResponse +from fireblocks_client.models.travel_rule_transaction_blockchain_info import TravelRuleTransactionBlockchainInfo +from fireblocks_client.models.travel_rule_update_vasp_details import TravelRuleUpdateVASPDetails +from fireblocks_client.models.travel_rule_vasp import TravelRuleVASP +from fireblocks_client.models.travel_rule_validate_full_transaction_request import TravelRuleValidateFullTransactionRequest +from fireblocks_client.models.travel_rule_validate_transaction_request import TravelRuleValidateTransactionRequest +from fireblocks_client.models.travel_rule_validate_transaction_response import TravelRuleValidateTransactionResponse +from fireblocks_client.models.unfreeze_transaction_response import UnfreezeTransactionResponse +from fireblocks_client.models.unmanaged_wallet import UnmanagedWallet +from fireblocks_client.models.unspent_input import UnspentInput +from fireblocks_client.models.unspent_inputs_response import UnspentInputsResponse +from fireblocks_client.models.unstake_request_dto import UnstakeRequestDto +from fireblocks_client.models.update_token_ownership_status_dto import UpdateTokenOwnershipStatusDto +from fireblocks_client.models.update_vault_account_asset_address_request import UpdateVaultAccountAssetAddressRequest +from fireblocks_client.models.update_vault_account_request import UpdateVaultAccountRequest +from fireblocks_client.models.user_group_create_request import UserGroupCreateRequest +from fireblocks_client.models.user_group_create_response import UserGroupCreateResponse +from fireblocks_client.models.user_group_response import UserGroupResponse +from fireblocks_client.models.user_group_update_request import UserGroupUpdateRequest +from fireblocks_client.models.user_response import UserResponse +from fireblocks_client.models.user_role import UserRole +from fireblocks_client.models.user_status import UserStatus +from fireblocks_client.models.user_type import UserType +from fireblocks_client.models.validate_address_response import ValidateAddressResponse +from fireblocks_client.models.validator_dto import ValidatorDto +from fireblocks_client.models.vault_account import VaultAccount +from fireblocks_client.models.vault_accounts_paged_response import VaultAccountsPagedResponse +from fireblocks_client.models.vault_accounts_paged_response_paging import VaultAccountsPagedResponsePaging +from fireblocks_client.models.vault_action_status import VaultActionStatus +from fireblocks_client.models.vault_asset import VaultAsset +from fireblocks_client.models.vault_wallet_address import VaultWalletAddress +from fireblocks_client.models.vendor_dto import VendorDto +from fireblocks_client.models.wallet_asset import WalletAsset +from fireblocks_client.models.wallet_asset_additional_info import WalletAssetAdditionalInfo +from fireblocks_client.models.withdraw_request_dto import WithdrawRequestDto +from fireblocks_client.models.workflow_config_status import WorkflowConfigStatus +from fireblocks_client.models.workflow_configuration_id import WorkflowConfigurationId +from fireblocks_client.models.workflow_execution_operation import WorkflowExecutionOperation +from fireblocks_client.models.write_abi_function import WriteAbiFunction +from fireblocks_client.models.write_call_function_dto import WriteCallFunctionDto +from fireblocks_client.models.write_call_function_response_dto import WriteCallFunctionResponseDto diff --git a/fireblocks_client/models/abi_function.py b/fireblocks_client/models/abi_function.py new file mode 100644 index 00000000..d1b0ec93 --- /dev/null +++ b/fireblocks_client/models/abi_function.py @@ -0,0 +1,130 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.parameter import Parameter +from typing import Optional, Set +from typing_extensions import Self + +class AbiFunction(BaseModel): + """ + AbiFunction + """ # noqa: E501 + name: Optional[StrictStr] = Field(default=None, description="The name of the contract function as it appears in the ABI") + state_mutability: Optional[StrictStr] = Field(default=None, description="The state mutability of the contract function as it appears in the ABI", alias="stateMutability") + type: StrictStr = Field(description="The type if the function") + inputs: List[Parameter] = Field(description="The parameters that this function/constructor posses") + outputs: Optional[List[Parameter]] = Field(default=None, description="The parameters that this 'read' function returns") + description: Optional[StrictStr] = Field(default=None, description="The documentation of this function (if has any)") + __properties: ClassVar[List[str]] = ["name", "stateMutability", "type", "inputs", "outputs", "description"] + + @field_validator('state_mutability') + def state_mutability_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['pure', 'view', 'nonpayable', 'payable']): + raise ValueError("must be one of enum values ('pure', 'view', 'nonpayable', 'payable')") + return value + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['function', 'constructor']): + raise ValueError("must be one of enum values ('function', 'constructor')") + return value + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AbiFunction from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in inputs (list) + _items = [] + if self.inputs: + for _item in self.inputs: + if _item: + _items.append(_item.to_dict()) + _dict['inputs'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in outputs (list) + _items = [] + if self.outputs: + for _item in self.outputs: + if _item: + _items.append(_item.to_dict()) + _dict['outputs'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AbiFunction from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "stateMutability": obj.get("stateMutability"), + "type": obj.get("type"), + "inputs": [Parameter.from_dict(_item) for _item in obj["inputs"]] if obj.get("inputs") is not None else None, + "outputs": [Parameter.from_dict(_item) for _item in obj["outputs"]] if obj.get("outputs") is not None else None, + "description": obj.get("description") + }) + return _obj + + diff --git a/fireblocks_client/models/account.py b/fireblocks_client/models/account.py new file mode 100644 index 00000000..20fe3ed7 --- /dev/null +++ b/fireblocks_client/models/account.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List +from fireblocks_client.models.account_type import AccountType +from typing import Optional, Set +from typing_extensions import Self + +class Account(BaseModel): + """ + Account + """ # noqa: E501 + account_id: StrictStr = Field(alias="accountId") + account_type: AccountType = Field(alias="accountType") + __properties: ClassVar[List[str]] = ["accountId", "accountType"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of Account from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Account from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "accountId": obj.get("accountId"), + "accountType": obj.get("accountType") + }) + return _obj + + diff --git a/fireblocks_client/models/account_type.py b/fireblocks_client/models/account_type.py new file mode 100644 index 00000000..fc63850d --- /dev/null +++ b/fireblocks_client/models/account_type.py @@ -0,0 +1,41 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +from enum import Enum +from typing_extensions import Self + + +class AccountType(str, Enum): + """ + AccountType + """ + + """ + allowed enum values + """ + EXCHANGE_ACCOUNT = 'EXCHANGE_ACCOUNT' + UNMANAGED_WALLET = 'UNMANAGED_WALLET' + VAULT_ACCOUNT = 'VAULT_ACCOUNT' + NETWORK_CONNECTION = 'NETWORK_CONNECTION' + FIAT_ACCOUNT = 'FIAT_ACCOUNT' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of AccountType from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/fireblocks_client/models/add_asset_to_external_wallet_request.py b/fireblocks_client/models/add_asset_to_external_wallet_request.py new file mode 100644 index 00000000..67284933 --- /dev/null +++ b/fireblocks_client/models/add_asset_to_external_wallet_request.py @@ -0,0 +1,138 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +import pprint +from pydantic import BaseModel, Field, StrictStr, ValidationError, field_validator +from typing import Any, List, Optional +from fireblocks_client.models.add_asset_to_external_wallet_request_one_of import AddAssetToExternalWalletRequestOneOf +from fireblocks_client.models.add_asset_to_external_wallet_request_one_of1 import AddAssetToExternalWalletRequestOneOf1 +from pydantic import StrictStr, Field +from typing import Union, List, Optional, Dict +from typing_extensions import Literal, Self + +ADDASSETTOEXTERNALWALLETREQUEST_ONE_OF_SCHEMAS = ["AddAssetToExternalWalletRequestOneOf", "AddAssetToExternalWalletRequestOneOf1"] + +class AddAssetToExternalWalletRequest(BaseModel): + """ + AddAssetToExternalWalletRequest + """ + # data type: AddAssetToExternalWalletRequestOneOf + oneof_schema_1_validator: Optional[AddAssetToExternalWalletRequestOneOf] = None + # data type: AddAssetToExternalWalletRequestOneOf1 + oneof_schema_2_validator: Optional[AddAssetToExternalWalletRequestOneOf1] = None + actual_instance: Optional[Union[AddAssetToExternalWalletRequestOneOf, AddAssetToExternalWalletRequestOneOf1]] = None + one_of_schemas: List[str] = Field(default=Literal["AddAssetToExternalWalletRequestOneOf", "AddAssetToExternalWalletRequestOneOf1"]) + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_oneof(cls, v): + instance = AddAssetToExternalWalletRequest.model_construct() + error_messages = [] + match = 0 + # validate data type: AddAssetToExternalWalletRequestOneOf + if not isinstance(v, AddAssetToExternalWalletRequestOneOf): + error_messages.append(f"Error! Input type `{type(v)}` is not `AddAssetToExternalWalletRequestOneOf`") + else: + match += 1 + # validate data type: AddAssetToExternalWalletRequestOneOf1 + if not isinstance(v, AddAssetToExternalWalletRequestOneOf1): + error_messages.append(f"Error! Input type `{type(v)}` is not `AddAssetToExternalWalletRequestOneOf1`") + else: + match += 1 + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in AddAssetToExternalWalletRequest with oneOf schemas: AddAssetToExternalWalletRequestOneOf, AddAssetToExternalWalletRequestOneOf1. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in AddAssetToExternalWalletRequest with oneOf schemas: AddAssetToExternalWalletRequestOneOf, AddAssetToExternalWalletRequestOneOf1. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + match = 0 + + # deserialize data into AddAssetToExternalWalletRequestOneOf + try: + instance.actual_instance = AddAssetToExternalWalletRequestOneOf.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into AddAssetToExternalWalletRequestOneOf1 + try: + instance.actual_instance = AddAssetToExternalWalletRequestOneOf1.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when deserializing the JSON string into AddAssetToExternalWalletRequest with oneOf schemas: AddAssetToExternalWalletRequestOneOf, AddAssetToExternalWalletRequestOneOf1. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into AddAssetToExternalWalletRequest with oneOf schemas: AddAssetToExternalWalletRequestOneOf, AddAssetToExternalWalletRequestOneOf1. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], AddAssetToExternalWalletRequestOneOf, AddAssetToExternalWalletRequestOneOf1]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + # primitive type + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/fireblocks_client/models/add_asset_to_external_wallet_request_one_of.py b/fireblocks_client/models/add_asset_to_external_wallet_request_one_of.py new file mode 100644 index 00000000..5c89af93 --- /dev/null +++ b/fireblocks_client/models/add_asset_to_external_wallet_request_one_of.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AddAssetToExternalWalletRequestOneOf(BaseModel): + """ + AddAssetToExternalWalletRequestOneOf + """ # noqa: E501 + address: StrictStr = Field(description="The wallet's address (or xpub) of the wallet") + tag: Optional[StrictStr] = Field(default=None, description="For XRP wallets, the destination tag; for EOS/XLM, the memo; for the fiat providers (BLINC by BCB Group), the Bank Transfer Description") + __properties: ClassVar[List[str]] = ["address", "tag"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AddAssetToExternalWalletRequestOneOf from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AddAssetToExternalWalletRequestOneOf from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "address": obj.get("address"), + "tag": obj.get("tag") + }) + return _obj + + diff --git a/fireblocks_client/models/add_asset_to_external_wallet_request_one_of1.py b/fireblocks_client/models/add_asset_to_external_wallet_request_one_of1.py new file mode 100644 index 00000000..c82d9495 --- /dev/null +++ b/fireblocks_client/models/add_asset_to_external_wallet_request_one_of1.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List +from fireblocks_client.models.add_asset_to_external_wallet_request_one_of1_additional_info import AddAssetToExternalWalletRequestOneOf1AdditionalInfo +from typing import Optional, Set +from typing_extensions import Self + +class AddAssetToExternalWalletRequestOneOf1(BaseModel): + """ + AddAssetToExternalWalletRequestOneOf1 + """ # noqa: E501 + additional_info: AddAssetToExternalWalletRequestOneOf1AdditionalInfo = Field(alias="additionalInfo") + __properties: ClassVar[List[str]] = ["additionalInfo"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AddAssetToExternalWalletRequestOneOf1 from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of additional_info + if self.additional_info: + _dict['additionalInfo'] = self.additional_info.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AddAssetToExternalWalletRequestOneOf1 from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "additionalInfo": AddAssetToExternalWalletRequestOneOf1AdditionalInfo.from_dict(obj["additionalInfo"]) if obj.get("additionalInfo") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/add_asset_to_external_wallet_request_one_of1_additional_info.py b/fireblocks_client/models/add_asset_to_external_wallet_request_one_of1_additional_info.py new file mode 100644 index 00000000..331927be --- /dev/null +++ b/fireblocks_client/models/add_asset_to_external_wallet_request_one_of1_additional_info.py @@ -0,0 +1,152 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +import pprint +from pydantic import BaseModel, Field, StrictStr, ValidationError, field_validator +from typing import Any, List, Optional +from fireblocks_client.models.add_asset_to_external_wallet_request_one_of1_additional_info_one_of import AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf +from fireblocks_client.models.add_asset_to_external_wallet_request_one_of1_additional_info_one_of1 import AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 +from fireblocks_client.models.add_asset_to_external_wallet_request_one_of1_additional_info_one_of2 import AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2 +from pydantic import StrictStr, Field +from typing import Union, List, Optional, Dict +from typing_extensions import Literal, Self + +ADDASSETTOEXTERNALWALLETREQUESTONEOF1ADDITIONALINFO_ONE_OF_SCHEMAS = ["AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf", "AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1", "AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2"] + +class AddAssetToExternalWalletRequestOneOf1AdditionalInfo(BaseModel): + """ + AddAssetToExternalWalletRequestOneOf1AdditionalInfo + """ + # data type: AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf + oneof_schema_1_validator: Optional[AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf] = None + # data type: AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 + oneof_schema_2_validator: Optional[AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1] = None + # data type: AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2 + oneof_schema_3_validator: Optional[AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2] = None + actual_instance: Optional[Union[AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf, AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1, AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2]] = None + one_of_schemas: List[str] = Field(default=Literal["AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf", "AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1", "AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2"]) + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_oneof(cls, v): + instance = AddAssetToExternalWalletRequestOneOf1AdditionalInfo.model_construct() + error_messages = [] + match = 0 + # validate data type: AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf + if not isinstance(v, AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf): + error_messages.append(f"Error! Input type `{type(v)}` is not `AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf`") + else: + match += 1 + # validate data type: AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 + if not isinstance(v, AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1): + error_messages.append(f"Error! Input type `{type(v)}` is not `AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1`") + else: + match += 1 + # validate data type: AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2 + if not isinstance(v, AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2): + error_messages.append(f"Error! Input type `{type(v)}` is not `AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2`") + else: + match += 1 + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in AddAssetToExternalWalletRequestOneOf1AdditionalInfo with oneOf schemas: AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf, AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1, AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in AddAssetToExternalWalletRequestOneOf1AdditionalInfo with oneOf schemas: AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf, AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1, AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + match = 0 + + # deserialize data into AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf + try: + instance.actual_instance = AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 + try: + instance.actual_instance = AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2 + try: + instance.actual_instance = AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when deserializing the JSON string into AddAssetToExternalWalletRequestOneOf1AdditionalInfo with oneOf schemas: AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf, AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1, AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into AddAssetToExternalWalletRequestOneOf1AdditionalInfo with oneOf schemas: AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf, AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1, AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf, AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1, AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + # primitive type + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/fireblocks_client/models/add_asset_to_external_wallet_request_one_of1_additional_info_one_of.py b/fireblocks_client/models/add_asset_to_external_wallet_request_one_of1_additional_info_one_of.py new file mode 100644 index 00000000..d67f0b81 --- /dev/null +++ b/fireblocks_client/models/add_asset_to_external_wallet_request_one_of1_additional_info_one_of.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf(BaseModel): + """ + AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf + """ # noqa: E501 + account_holder_given_name: StrictStr = Field(alias="accountHolderGivenName") + account_holder_surname: Optional[StrictStr] = Field(default=None, alias="accountHolderSurname") + account_holder_city: StrictStr = Field(alias="accountHolderCity") + account_holder_country: StrictStr = Field(alias="accountHolderCountry") + account_holder_address1: StrictStr = Field(alias="accountHolderAddress1") + account_holder_address2: Optional[StrictStr] = Field(default=None, alias="accountHolderAddress2") + account_holder_district: Optional[StrictStr] = Field(default=None, alias="accountHolderDistrict") + account_holder_postal_code: StrictStr = Field(alias="accountHolderPostalCode") + iban: StrictStr + iban_city: StrictStr = Field(alias="ibanCity") + iban_country: StrictStr = Field(alias="ibanCountry") + __properties: ClassVar[List[str]] = ["accountHolderGivenName", "accountHolderSurname", "accountHolderCity", "accountHolderCountry", "accountHolderAddress1", "accountHolderAddress2", "accountHolderDistrict", "accountHolderPostalCode", "iban", "ibanCity", "ibanCountry"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "accountHolderGivenName": obj.get("accountHolderGivenName"), + "accountHolderSurname": obj.get("accountHolderSurname"), + "accountHolderCity": obj.get("accountHolderCity"), + "accountHolderCountry": obj.get("accountHolderCountry"), + "accountHolderAddress1": obj.get("accountHolderAddress1"), + "accountHolderAddress2": obj.get("accountHolderAddress2"), + "accountHolderDistrict": obj.get("accountHolderDistrict"), + "accountHolderPostalCode": obj.get("accountHolderPostalCode"), + "iban": obj.get("iban"), + "ibanCity": obj.get("ibanCity"), + "ibanCountry": obj.get("ibanCountry") + }) + return _obj + + diff --git a/fireblocks_client/models/add_asset_to_external_wallet_request_one_of1_additional_info_one_of1.py b/fireblocks_client/models/add_asset_to_external_wallet_request_one_of1_additional_info_one_of1.py new file mode 100644 index 00000000..e61b9f6b --- /dev/null +++ b/fireblocks_client/models/add_asset_to_external_wallet_request_one_of1_additional_info_one_of1.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1(BaseModel): + """ + AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 + """ # noqa: E501 + account_holder_given_name: StrictStr = Field(alias="accountHolderGivenName") + account_holder_surname: Optional[StrictStr] = Field(default=None, alias="accountHolderSurname") + account_holder_city: StrictStr = Field(alias="accountHolderCity") + account_holder_country: StrictStr = Field(alias="accountHolderCountry") + account_holder_address1: StrictStr = Field(alias="accountHolderAddress1") + account_holder_address2: Optional[StrictStr] = Field(default=None, alias="accountHolderAddress2") + account_holder_district: Optional[StrictStr] = Field(default=None, alias="accountHolderDistrict") + account_holder_postal_code: StrictStr = Field(alias="accountHolderPostalCode") + aba_routing_number: StrictStr = Field(alias="abaRoutingNumber") + aba_account_number: StrictStr = Field(alias="abaAccountNumber") + aba_country: StrictStr = Field(alias="abaCountry") + __properties: ClassVar[List[str]] = ["accountHolderGivenName", "accountHolderSurname", "accountHolderCity", "accountHolderCountry", "accountHolderAddress1", "accountHolderAddress2", "accountHolderDistrict", "accountHolderPostalCode", "abaRoutingNumber", "abaAccountNumber", "abaCountry"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "accountHolderGivenName": obj.get("accountHolderGivenName"), + "accountHolderSurname": obj.get("accountHolderSurname"), + "accountHolderCity": obj.get("accountHolderCity"), + "accountHolderCountry": obj.get("accountHolderCountry"), + "accountHolderAddress1": obj.get("accountHolderAddress1"), + "accountHolderAddress2": obj.get("accountHolderAddress2"), + "accountHolderDistrict": obj.get("accountHolderDistrict"), + "accountHolderPostalCode": obj.get("accountHolderPostalCode"), + "abaRoutingNumber": obj.get("abaRoutingNumber"), + "abaAccountNumber": obj.get("abaAccountNumber"), + "abaCountry": obj.get("abaCountry") + }) + return _obj + + diff --git a/fireblocks_client/models/add_asset_to_external_wallet_request_one_of1_additional_info_one_of2.py b/fireblocks_client/models/add_asset_to_external_wallet_request_one_of1_additional_info_one_of2.py new file mode 100644 index 00000000..b67bdbbf --- /dev/null +++ b/fireblocks_client/models/add_asset_to_external_wallet_request_one_of1_additional_info_one_of2.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2(BaseModel): + """ + AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2 + """ # noqa: E501 + spei_clabe: StrictStr = Field(alias="speiClabe") + spei_name: Optional[StrictStr] = Field(default=None, alias="speiName") + __properties: ClassVar[List[str]] = ["speiClabe", "speiName"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2 from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2 from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "speiClabe": obj.get("speiClabe"), + "speiName": obj.get("speiName") + }) + return _obj + + diff --git a/fireblocks_client/models/add_collateral_request_body.py b/fireblocks_client/models/add_collateral_request_body.py new file mode 100644 index 00000000..9c65f3ed --- /dev/null +++ b/fireblocks_client/models/add_collateral_request_body.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.transaction_request import TransactionRequest +from typing import Optional, Set +from typing_extensions import Self + +class AddCollateralRequestBody(BaseModel): + """ + AddCollateralRequestBody + """ # noqa: E501 + transaction_request: Optional[TransactionRequest] = Field(default=None, alias="transactionRequest") + is_src_collateral: Optional[StrictBool] = Field(default=None, description="optional", alias="isSrcCollateral") + __properties: ClassVar[List[str]] = ["transactionRequest", "isSrcCollateral"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AddCollateralRequestBody from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of transaction_request + if self.transaction_request: + _dict['transactionRequest'] = self.transaction_request.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AddCollateralRequestBody from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "transactionRequest": TransactionRequest.from_dict(obj["transactionRequest"]) if obj.get("transactionRequest") is not None else None, + "isSrcCollateral": obj.get("isSrcCollateral") + }) + return _obj + + diff --git a/fireblocks_client/models/add_contract_asset_request.py b/fireblocks_client/models/add_contract_asset_request.py new file mode 100644 index 00000000..1bb6c878 --- /dev/null +++ b/fireblocks_client/models/add_contract_asset_request.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AddContractAssetRequest(BaseModel): + """ + AddContractAssetRequest + """ # noqa: E501 + address: StrictStr = Field(description="The contract's address (or xpub) of the wallet") + tag: Optional[StrictStr] = Field(default=None, description="The destination tag, for XRP wallets") + __properties: ClassVar[List[str]] = ["address", "tag"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AddContractAssetRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AddContractAssetRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "address": obj.get("address"), + "tag": obj.get("tag") + }) + return _obj + + diff --git a/fireblocks_client/models/additional_info_dto.py b/fireblocks_client/models/additional_info_dto.py new file mode 100644 index 00000000..869231fc --- /dev/null +++ b/fireblocks_client/models/additional_info_dto.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictFloat, StrictInt +from typing import Any, ClassVar, Dict, List, Union +from typing import Optional, Set +from typing_extensions import Self + +class AdditionalInfoDto(BaseModel): + """ + AdditionalInfoDto + """ # noqa: E501 + estimated_annual_reward: Union[StrictFloat, StrictInt] = Field(description="The estimated annual reward rate for the blockchain, represented as a decimal percentage value.", alias="estimatedAnnualReward") + lockup_period: Union[StrictFloat, StrictInt] = Field(description="The duration of the lockup period for certain actions on the blockchain, measured in milliseconds.", alias="lockupPeriod") + activation_period: Union[StrictFloat, StrictInt] = Field(description="The duration of the activation period for certain actions on the blockchain, measured in milliseconds.", alias="activationPeriod") + __properties: ClassVar[List[str]] = ["estimatedAnnualReward", "lockupPeriod", "activationPeriod"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdditionalInfoDto from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdditionalInfoDto from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "estimatedAnnualReward": obj.get("estimatedAnnualReward"), + "lockupPeriod": obj.get("lockupPeriod"), + "activationPeriod": obj.get("activationPeriod") + }) + return _obj + + diff --git a/fireblocks_client/models/aml_registration_result.py b/fireblocks_client/models/aml_registration_result.py new file mode 100644 index 00000000..49296edc --- /dev/null +++ b/fireblocks_client/models/aml_registration_result.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictBool, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class AmlRegistrationResult(BaseModel): + """ + AmlRegistrationResult + """ # noqa: E501 + provider: Optional[StrictStr] = None + success: Optional[StrictBool] = None + timestamp: Optional[Union[StrictFloat, StrictInt]] = None + __properties: ClassVar[List[str]] = ["provider", "success", "timestamp"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AmlRegistrationResult from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AmlRegistrationResult from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "provider": obj.get("provider"), + "success": obj.get("success"), + "timestamp": obj.get("timestamp") + }) + return _obj + + diff --git a/fireblocks_client/models/aml_screening_result.py b/fireblocks_client/models/aml_screening_result.py new file mode 100644 index 00000000..18560af5 --- /dev/null +++ b/fireblocks_client/models/aml_screening_result.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AmlScreeningResult(BaseModel): + """ + The result of the AML screening. + """ # noqa: E501 + provider: Optional[StrictStr] = None + payload: Optional[Dict[str, Any]] = None + __properties: ClassVar[List[str]] = ["provider", "payload"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AmlScreeningResult from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AmlScreeningResult from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "provider": obj.get("provider"), + "payload": obj.get("payload") + }) + return _obj + + diff --git a/fireblocks_client/models/amount_aggregation_time_period_method.py b/fireblocks_client/models/amount_aggregation_time_period_method.py new file mode 100644 index 00000000..f46875ee --- /dev/null +++ b/fireblocks_client/models/amount_aggregation_time_period_method.py @@ -0,0 +1,38 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +from enum import Enum +from typing_extensions import Self + + +class AmountAggregationTimePeriodMethod(str, Enum): + """ + * PER_SINGLE_MATCH - Apply the limit to each listed entity * ACROSS_ALL_MATCHES - Apply the limit to the sum of all listed entities + """ + + """ + allowed enum values + """ + PER_SINGLE_MATCH = 'PER_SINGLE_MATCH' + ACROSS_ALL_MATCHES = 'ACROSS_ALL_MATCHES' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of AmountAggregationTimePeriodMethod from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/fireblocks_client/models/amount_and_chain_descriptor.py b/fireblocks_client/models/amount_and_chain_descriptor.py new file mode 100644 index 00000000..1687332a --- /dev/null +++ b/fireblocks_client/models/amount_and_chain_descriptor.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class AmountAndChainDescriptor(BaseModel): + """ + AmountAndChainDescriptor + """ # noqa: E501 + chain_descriptor: StrictStr = Field(description="The protocol identifier (e.g. \"ETH\"/\"SOL\") for summary", alias="chainDescriptor") + amount: StrictStr = Field(description="Cryptocurrency quantity") + __properties: ClassVar[List[str]] = ["chainDescriptor", "amount"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AmountAndChainDescriptor from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AmountAndChainDescriptor from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "chainDescriptor": obj.get("chainDescriptor"), + "amount": obj.get("amount") + }) + return _obj + + diff --git a/fireblocks_client/models/amount_info.py b/fireblocks_client/models/amount_info.py new file mode 100644 index 00000000..6ce8b41e --- /dev/null +++ b/fireblocks_client/models/amount_info.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AmountInfo(BaseModel): + """ + The details of the requested amount to transfer. + """ # noqa: E501 + amount: Optional[StrictStr] = Field(default=None, description="If the transfer is a withdrawal from an exchange, the actual amount that was requested to be transferred. Otherwise, the requested amount.") + requested_amount: Optional[StrictStr] = Field(default=None, description="The amount requested by the user.", alias="requestedAmount") + net_amount: Optional[StrictStr] = Field(default=None, description="The net amount of the transaction, after fee deduction.", alias="netAmount") + amount_usd: Optional[StrictStr] = Field(default=None, description="The USD value of the requested amount.", alias="amountUSD") + __properties: ClassVar[List[str]] = ["amount", "requestedAmount", "netAmount", "amountUSD"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AmountInfo from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AmountInfo from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "amount": obj.get("amount"), + "requestedAmount": obj.get("requestedAmount"), + "netAmount": obj.get("netAmount"), + "amountUSD": obj.get("amountUSD") + }) + return _obj + + diff --git a/fireblocks_client/models/api_key.py b/fireblocks_client/models/api_key.py new file mode 100644 index 00000000..30ac2292 --- /dev/null +++ b/fireblocks_client/models/api_key.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 datetime import datetime +from pydantic import BaseModel, Field, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class ApiKey(BaseModel): + """ + ApiKey + """ # noqa: E501 + id: StrictStr = Field(description="The unique identifier of the API key") + last_seen: datetime = Field(description="The date the API key was last seen", alias="lastSeen") + __properties: ClassVar[List[str]] = ["id", "lastSeen"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ApiKey from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ApiKey from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "lastSeen": obj.get("lastSeen") + }) + return _obj + + diff --git a/fireblocks_client/models/api_keys_paginated_response.py b/fireblocks_client/models/api_keys_paginated_response.py new file mode 100644 index 00000000..e4ecb587 --- /dev/null +++ b/fireblocks_client/models/api_keys_paginated_response.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.api_key import ApiKey +from typing import Optional, Set +from typing_extensions import Self + +class ApiKeysPaginatedResponse(BaseModel): + """ + ApiKeysPaginatedResponse + """ # noqa: E501 + data: List[ApiKey] = Field(description="The data of the current page") + next: Optional[StrictStr] = Field(default=None, description="The ID of the next page") + __properties: ClassVar[List[str]] = ["data", "next"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ApiKeysPaginatedResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in data (list) + _items = [] + if self.data: + for _item in self.data: + if _item: + _items.append(_item.to_dict()) + _dict['data'] = _items + # set to None if next (nullable) is None + # and model_fields_set contains the field + if self.next is None and "next" in self.model_fields_set: + _dict['next'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ApiKeysPaginatedResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "data": [ApiKey.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "next": obj.get("next") + }) + return _obj + + diff --git a/fireblocks_client/models/api_user.py b/fireblocks_client/models/api_user.py new file mode 100644 index 00000000..84f603c2 --- /dev/null +++ b/fireblocks_client/models/api_user.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.user_role import UserRole +from fireblocks_client.models.user_status import UserStatus +from fireblocks_client.models.user_type import UserType +from typing import Optional, Set +from typing_extensions import Self + +class APIUser(BaseModel): + """ + APIUser + """ # noqa: E501 + id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the user") + name: Optional[StrictStr] = Field(default=None, description="The name of the user") + role: Optional[UserRole] = None + enabled: Optional[StrictBool] = Field(default=None, description="Whether the user is enabled") + status: Optional[UserStatus] = None + user_type: Optional[UserType] = Field(default=None, alias="userType") + __properties: ClassVar[List[str]] = ["id", "name", "role", "enabled", "status", "userType"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of APIUser from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of APIUser from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "name": obj.get("name"), + "role": obj.get("role"), + "enabled": obj.get("enabled"), + "status": obj.get("status"), + "userType": obj.get("userType") + }) + return _obj + + diff --git a/fireblocks_client/models/asset_already_exist_http_error.py b/fireblocks_client/models/asset_already_exist_http_error.py new file mode 100644 index 00000000..7c789e67 --- /dev/null +++ b/fireblocks_client/models/asset_already_exist_http_error.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AssetAlreadyExistHttpError(BaseModel): + """ + AssetAlreadyExistHttpError + """ # noqa: E501 + status_code: Optional[StrictInt] = Field(default=None, description="HTTP status code", alias="statusCode") + message: Optional[StrictStr] = Field(default=None, description="Error message") + error: Optional[StrictStr] = Field(default=None, description="Short description of the HTTP error") + __properties: ClassVar[List[str]] = ["statusCode", "message", "error"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AssetAlreadyExistHttpError from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AssetAlreadyExistHttpError from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "statusCode": obj.get("statusCode"), + "message": obj.get("message"), + "error": obj.get("error") + }) + return _obj + + diff --git a/fireblocks_client/models/asset_amount.py b/fireblocks_client/models/asset_amount.py new file mode 100644 index 00000000..9af8f48b --- /dev/null +++ b/fireblocks_client/models/asset_amount.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class AssetAmount(BaseModel): + """ + AssetAmount + """ # noqa: E501 + amount: StrictStr + asset_id: StrictStr = Field(alias="assetId") + __properties: ClassVar[List[str]] = ["amount", "assetId"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AssetAmount from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AssetAmount from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "amount": obj.get("amount"), + "assetId": obj.get("assetId") + }) + return _obj + + diff --git a/fireblocks_client/models/asset_bad_request_error_response.py b/fireblocks_client/models/asset_bad_request_error_response.py new file mode 100644 index 00000000..119a4857 --- /dev/null +++ b/fireblocks_client/models/asset_bad_request_error_response.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class AssetBadRequestErrorResponse(BaseModel): + """ + AssetBadRequestErrorResponse + """ # noqa: E501 + message: StrictStr = Field(description="Bad request error code") + code: StrictStr = Field(description="Error code") + __properties: ClassVar[List[str]] = ["message", "code"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AssetBadRequestErrorResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AssetBadRequestErrorResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "message": obj.get("message"), + "code": obj.get("code") + }) + return _obj + + diff --git a/fireblocks_client/models/asset_conflict_error_response.py b/fireblocks_client/models/asset_conflict_error_response.py new file mode 100644 index 00000000..87d9beec --- /dev/null +++ b/fireblocks_client/models/asset_conflict_error_response.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class AssetConflictErrorResponse(BaseModel): + """ + AssetConflictErrorResponse + """ # noqa: E501 + message: StrictStr = Field(description="Conflict error code") + code: StrictStr = Field(description="Error code") + __properties: ClassVar[List[str]] = ["message", "code"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AssetConflictErrorResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AssetConflictErrorResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "message": obj.get("message"), + "code": obj.get("code") + }) + return _obj + + diff --git a/fireblocks_client/models/asset_does_not_exist_http_error.py b/fireblocks_client/models/asset_does_not_exist_http_error.py new file mode 100644 index 00000000..efc54768 --- /dev/null +++ b/fireblocks_client/models/asset_does_not_exist_http_error.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AssetDoesNotExistHttpError(BaseModel): + """ + AssetDoesNotExistHttpError + """ # noqa: E501 + status_code: Optional[StrictInt] = Field(default=None, description="HTTP status code", alias="statusCode") + message: Optional[StrictStr] = Field(default=None, description="Error message") + error: Optional[StrictStr] = Field(default=None, description="Short description of the HTTP error") + __properties: ClassVar[List[str]] = ["statusCode", "message", "error"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AssetDoesNotExistHttpError from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AssetDoesNotExistHttpError from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "statusCode": obj.get("statusCode"), + "message": obj.get("message"), + "error": obj.get("error") + }) + return _obj + + diff --git a/fireblocks_client/models/asset_forbidden_error_response.py b/fireblocks_client/models/asset_forbidden_error_response.py new file mode 100644 index 00000000..84ff37ef --- /dev/null +++ b/fireblocks_client/models/asset_forbidden_error_response.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class AssetForbiddenErrorResponse(BaseModel): + """ + AssetForbiddenErrorResponse + """ # noqa: E501 + message: StrictStr = Field(description="Forbidden error code") + code: StrictStr = Field(description="Error code") + __properties: ClassVar[List[str]] = ["message", "code"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AssetForbiddenErrorResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AssetForbiddenErrorResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "message": obj.get("message"), + "code": obj.get("code") + }) + return _obj + + diff --git a/fireblocks_client/models/asset_internal_server_error_response.py b/fireblocks_client/models/asset_internal_server_error_response.py new file mode 100644 index 00000000..6595a058 --- /dev/null +++ b/fireblocks_client/models/asset_internal_server_error_response.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class AssetInternalServerErrorResponse(BaseModel): + """ + AssetInternalServerErrorResponse + """ # noqa: E501 + message: StrictStr = Field(description="Internal server error code") + code: StrictStr = Field(description="Error code") + __properties: ClassVar[List[str]] = ["message", "code"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AssetInternalServerErrorResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AssetInternalServerErrorResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "message": obj.get("message"), + "code": obj.get("code") + }) + return _obj + + diff --git a/fireblocks_client/models/asset_metadata_dto.py b/fireblocks_client/models/asset_metadata_dto.py new file mode 100644 index 00000000..cfeaa9eb --- /dev/null +++ b/fireblocks_client/models/asset_metadata_dto.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictBool, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class AssetMetadataDto(BaseModel): + """ + AssetMetadataDto + """ # noqa: E501 + asset_id: StrictStr = Field(description="The Fireblocks` asset id", alias="assetId") + name: Optional[StrictStr] = Field(default=None, description="The name of the token") + symbol: Optional[StrictStr] = Field(default=None, description="The symbol of the token") + network_protocol: Optional[StrictStr] = Field(default=None, description="The network protocol of the token", alias="networkProtocol") + total_supply: Optional[StrictStr] = Field(default=None, description="The total supply of the token", alias="totalSupply") + holders_count: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The number of holders of the token", alias="holdersCount") + type: Optional[StrictStr] = Field(default=None, description="The type of the token") + contract_address: Optional[StrictStr] = Field(default=None, description="The address of the token contract", alias="contractAddress") + issuer_address: Optional[StrictStr] = Field(default=None, description="In case of Stellar or Ripple, the address of the issuer of the token", alias="issuerAddress") + testnet: Optional[StrictBool] = Field(default=None, description="Is it deployed on testnet or to mainnet") + blockchain: Optional[StrictStr] = Field(default=None, description="The blockchain native asset id which the token is deployed on") + decimals: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The number of decimals of the token") + vault_account_id: Optional[StrictStr] = Field(default=None, description="The id of the vault account that initiated the request to issue the token. Will be empty if token was issued outside of Fireblocks.", alias="vaultAccountId") + __properties: ClassVar[List[str]] = ["assetId", "name", "symbol", "networkProtocol", "totalSupply", "holdersCount", "type", "contractAddress", "issuerAddress", "testnet", "blockchain", "decimals", "vaultAccountId"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AssetMetadataDto from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AssetMetadataDto from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "assetId": obj.get("assetId"), + "name": obj.get("name"), + "symbol": obj.get("symbol"), + "networkProtocol": obj.get("networkProtocol"), + "totalSupply": obj.get("totalSupply"), + "holdersCount": obj.get("holdersCount"), + "type": obj.get("type"), + "contractAddress": obj.get("contractAddress"), + "issuerAddress": obj.get("issuerAddress"), + "testnet": obj.get("testnet"), + "blockchain": obj.get("blockchain"), + "decimals": obj.get("decimals"), + "vaultAccountId": obj.get("vaultAccountId") + }) + return _obj + + diff --git a/fireblocks_client/models/asset_not_found_error_response.py b/fireblocks_client/models/asset_not_found_error_response.py new file mode 100644 index 00000000..50d682e5 --- /dev/null +++ b/fireblocks_client/models/asset_not_found_error_response.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class AssetNotFoundErrorResponse(BaseModel): + """ + AssetNotFoundErrorResponse + """ # noqa: E501 + message: StrictStr = Field(description="Not found error code") + code: StrictStr = Field(description="Error code") + __properties: ClassVar[List[str]] = ["message", "code"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AssetNotFoundErrorResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AssetNotFoundErrorResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "message": obj.get("message"), + "code": obj.get("code") + }) + return _obj + + diff --git a/fireblocks_client/models/asset_response.py b/fireblocks_client/models/asset_response.py new file mode 100644 index 00000000..75d98554 --- /dev/null +++ b/fireblocks_client/models/asset_response.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, field_validator +from typing import Any, ClassVar, Dict, List +from fireblocks_client.models.asset_response_metadata import AssetResponseMetadata +from fireblocks_client.models.asset_response_onchain import AssetResponseOnchain +from typing import Optional, Set +from typing_extensions import Self + +class AssetResponse(BaseModel): + """ + AssetResponse + """ # noqa: E501 + legacy_id: StrictStr = Field(alias="legacyId") + asset_class: StrictStr = Field(alias="assetClass") + onchain: AssetResponseOnchain + metadata: AssetResponseMetadata + __properties: ClassVar[List[str]] = ["legacyId", "assetClass", "onchain", "metadata"] + + @field_validator('asset_class') + def asset_class_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['NATIVE', 'FT', 'NFT', 'SFT']): + raise ValueError("must be one of enum values ('NATIVE', 'FT', 'NFT', 'SFT')") + return value + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AssetResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of onchain + if self.onchain: + _dict['onchain'] = self.onchain.to_dict() + # 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: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AssetResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "legacyId": obj.get("legacyId"), + "assetClass": obj.get("assetClass"), + "onchain": AssetResponseOnchain.from_dict(obj["onchain"]) if obj.get("onchain") is not None else None, + "metadata": AssetResponseMetadata.from_dict(obj["metadata"]) if obj.get("metadata") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/asset_response_metadata.py b/fireblocks_client/models/asset_response_metadata.py new file mode 100644 index 00000000..74d9e174 --- /dev/null +++ b/fireblocks_client/models/asset_response_metadata.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictBool, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class AssetResponseMetadata(BaseModel): + """ + AssetResponseMetadata + """ # noqa: E501 + scope: StrictStr = Field(description="The scope of the asset") + deprecated: StrictBool = Field(description="Is asset deprecated") + __properties: ClassVar[List[str]] = ["scope", "deprecated"] + + @field_validator('scope') + def scope_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['Global', 'Local']): + raise ValueError("must be one of enum values ('Global', 'Local')") + return value + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AssetResponseMetadata from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AssetResponseMetadata from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "scope": obj.get("scope"), + "deprecated": obj.get("deprecated") + }) + return _obj + + diff --git a/fireblocks_client/models/asset_response_onchain.py b/fireblocks_client/models/asset_response_onchain.py new file mode 100644 index 00000000..5b00cb3b --- /dev/null +++ b/fireblocks_client/models/asset_response_onchain.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class AssetResponseOnchain(BaseModel): + """ + AssetResponseOnchain + """ # noqa: E501 + symbol: StrictStr = Field(description="The asset symbol") + name: StrictStr = Field(description="The asset name") + address: Optional[StrictStr] = Field(default=None, description="The asset address") + decimals: Union[StrictFloat, StrictInt] = Field(description="Number of decimals") + standard: StrictStr = Field(description="The asset standard") + __properties: ClassVar[List[str]] = ["symbol", "name", "address", "decimals", "standard"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AssetResponseOnchain from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AssetResponseOnchain from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "symbol": obj.get("symbol"), + "name": obj.get("name"), + "address": obj.get("address"), + "decimals": obj.get("decimals"), + "standard": obj.get("standard") + }) + return _obj + + diff --git a/fireblocks_client/models/asset_type_response.py b/fireblocks_client/models/asset_type_response.py new file mode 100644 index 00000000..875b0ba2 --- /dev/null +++ b/fireblocks_client/models/asset_type_response.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class AssetTypeResponse(BaseModel): + """ + AssetTypeResponse + """ # noqa: E501 + id: StrictStr + name: StrictStr + type: StrictStr + contract_address: Optional[StrictStr] = Field(default=None, alias="contractAddress") + native_asset: Optional[StrictStr] = Field(default=None, alias="nativeAsset") + decimals: Optional[Union[StrictFloat, StrictInt]] = None + __properties: ClassVar[List[str]] = ["id", "name", "type", "contractAddress", "nativeAsset", "decimals"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AssetTypeResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AssetTypeResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "name": obj.get("name"), + "type": obj.get("type"), + "contractAddress": obj.get("contractAddress"), + "nativeAsset": obj.get("nativeAsset"), + "decimals": obj.get("decimals") + }) + return _obj + + diff --git a/fireblocks_client/models/asset_wallet.py b/fireblocks_client/models/asset_wallet.py new file mode 100644 index 00000000..f1fc694a --- /dev/null +++ b/fireblocks_client/models/asset_wallet.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AssetWallet(BaseModel): + """ + AssetWallet + """ # noqa: E501 + vault_id: Optional[StrictStr] = Field(default=None, description="ID of the vault account. You can [get the vault account by this ID](https://developers.fireblocks.com/reference/get_vault-accounts-vaultaccountid) to retrieve vault properties such as its name, auto fueling, hidden on UI or customer reference ID.", alias="vaultId") + asset_id: Optional[StrictStr] = Field(default=None, description="ID of the asset. You can get more information about this asset by using the [supported assets API](https://developers.fireblocks.com/reference/get_supported-assets)", alias="assetId") + available: Optional[StrictStr] = Field(default=None, description="Available balance, available to use in a transaction.") + total: Optional[StrictStr] = Field(default=None, description="Total balance at the asset wallet, as seen at the blockchain explorers. This includes balance available, and any kind of unavailable balance such as locked, frozen, or others.") + pending: Optional[StrictStr] = Field(default=None, description="Pending balance.") + staked: Optional[StrictStr] = Field(default=None, description="Staked balance.") + frozen: Optional[StrictStr] = Field(default=None, description="Funds frozen due to the anti-money laundering policy at this workspace.") + locked_amount: Optional[StrictStr] = Field(default=None, description="Locked balance.", alias="lockedAmount") + block_height: Optional[StrictStr] = Field(default=None, description="The height (number) of the block of the balance. Can by empty.", alias="blockHeight") + block_hash: Optional[StrictStr] = Field(default=None, description="The hash of the block of the balance. Can by empty.", alias="blockHash") + creation_timestamp: Optional[StrictStr] = Field(default=None, description="Unix timestamp of the time the asset wallet was created.", alias="creationTimestamp") + __properties: ClassVar[List[str]] = ["vaultId", "assetId", "available", "total", "pending", "staked", "frozen", "lockedAmount", "blockHeight", "blockHash", "creationTimestamp"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AssetWallet from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AssetWallet from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "vaultId": obj.get("vaultId"), + "assetId": obj.get("assetId"), + "available": obj.get("available"), + "total": obj.get("total"), + "pending": obj.get("pending"), + "staked": obj.get("staked"), + "frozen": obj.get("frozen"), + "lockedAmount": obj.get("lockedAmount"), + "blockHeight": obj.get("blockHeight"), + "blockHash": obj.get("blockHash"), + "creationTimestamp": obj.get("creationTimestamp") + }) + return _obj + + diff --git a/fireblocks_client/models/audit_log_data.py b/fireblocks_client/models/audit_log_data.py new file mode 100644 index 00000000..8ee90ee3 --- /dev/null +++ b/fireblocks_client/models/audit_log_data.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AuditLogData(BaseModel): + """ + AuditLogData + """ # noqa: E501 + id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the audit log") + timestamp: Optional[StrictStr] = Field(default=None, description="The timestamp of the audit log") + created_at: Optional[StrictStr] = Field(default=None, description="The timestamp of the audit log creation", alias="createdAt") + user: Optional[StrictStr] = Field(default=None, description="The user who performed the action") + subject: Optional[StrictStr] = Field(default=None, description="The subject of the action") + event: Optional[StrictStr] = Field(default=None, description="The event that was performed") + tenant_id: Optional[StrictStr] = Field(default=None, description="The tenant ID of the audit log", alias="tenantId") + user_id: Optional[StrictStr] = Field(default=None, description="The user ID of the audit log", alias="userId") + __properties: ClassVar[List[str]] = ["id", "timestamp", "createdAt", "user", "subject", "event", "tenantId", "userId"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AuditLogData from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AuditLogData from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "timestamp": obj.get("timestamp"), + "createdAt": obj.get("createdAt"), + "user": obj.get("user"), + "subject": obj.get("subject"), + "event": obj.get("event"), + "tenantId": obj.get("tenantId"), + "userId": obj.get("userId") + }) + return _obj + + diff --git a/fireblocks_client/models/auditor_data.py b/fireblocks_client/models/auditor_data.py new file mode 100644 index 00000000..91322c6c --- /dev/null +++ b/fireblocks_client/models/auditor_data.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class AuditorData(BaseModel): + """ + AuditorData + """ # noqa: E501 + name: StrictStr + image_url: StrictStr = Field(alias="imageURL") + link: StrictStr + __properties: ClassVar[List[str]] = ["name", "imageURL", "link"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AuditorData from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AuditorData from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "imageURL": obj.get("imageURL"), + "link": obj.get("link") + }) + return _obj + + diff --git a/fireblocks_client/models/authorization_groups.py b/fireblocks_client/models/authorization_groups.py new file mode 100644 index 00000000..9f5e79fd --- /dev/null +++ b/fireblocks_client/models/authorization_groups.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictFloat, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class AuthorizationGroups(BaseModel): + """ + AuthorizationGroups + """ # noqa: E501 + th: Optional[Union[StrictFloat, StrictInt]] = None + users: Optional[Dict[str, StrictStr]] = None + __properties: ClassVar[List[str]] = ["th", "users"] + + @field_validator('users') + def users_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['PENDING_AUTHORIZATION', 'APPROVED', 'REJECTED', 'NA']): + raise ValueError("must be one of enum values ('PENDING_AUTHORIZATION', 'APPROVED', 'REJECTED', 'NA')") + return value + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AuthorizationGroups from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AuthorizationGroups from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "th": obj.get("th"), + "users": obj.get("users") + }) + return _obj + + diff --git a/fireblocks_client/models/authorization_info.py b/fireblocks_client/models/authorization_info.py new file mode 100644 index 00000000..39a9957b --- /dev/null +++ b/fireblocks_client/models/authorization_info.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictBool, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.authorization_groups import AuthorizationGroups +from typing import Optional, Set +from typing_extensions import Self + +class AuthorizationInfo(BaseModel): + """ + The information about your [Transaction Authorization Policy (TAP).](https://developers.fireblocks.com/docs/capabilities#transaction-authorization-policy-tap) + """ # noqa: E501 + allow_operator_as_authorizer: Optional[StrictBool] = Field(default=None, alias="allowOperatorAsAuthorizer") + logic: Optional[StrictStr] = None + groups: Optional[List[AuthorizationGroups]] = None + __properties: ClassVar[List[str]] = ["allowOperatorAsAuthorizer", "logic", "groups"] + + @field_validator('logic') + def logic_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['AND', 'OR']): + raise ValueError("must be one of enum values ('AND', 'OR')") + return value + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AuthorizationInfo from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in groups (list) + _items = [] + if self.groups: + for _item in self.groups: + if _item: + _items.append(_item.to_dict()) + _dict['groups'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AuthorizationInfo from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "allowOperatorAsAuthorizer": obj.get("allowOperatorAsAuthorizer"), + "logic": obj.get("logic"), + "groups": [AuthorizationGroups.from_dict(_item) for _item in obj["groups"]] if obj.get("groups") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/block_info.py b/fireblocks_client/models/block_info.py new file mode 100644 index 00000000..3b9dbfca --- /dev/null +++ b/fireblocks_client/models/block_info.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class BlockInfo(BaseModel): + """ + The block hash and height of the block that this transaction was mined in. **Note**: If an outgoing transaction uses the destinations object with more than one value in the array, blockHash is set to null. + """ # noqa: E501 + block_height: Optional[StrictStr] = Field(default=None, alias="blockHeight") + block_hash: Optional[StrictStr] = Field(default=None, alias="blockHash") + __properties: ClassVar[List[str]] = ["blockHeight", "blockHash"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of BlockInfo from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if block_hash (nullable) is None + # and model_fields_set contains the field + if self.block_hash is None and "block_hash" in self.model_fields_set: + _dict['blockHash'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of BlockInfo from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "blockHeight": obj.get("blockHeight"), + "blockHash": obj.get("blockHash") + }) + return _obj + + diff --git a/fireblocks_client/models/cancel_transaction_response.py b/fireblocks_client/models/cancel_transaction_response.py new file mode 100644 index 00000000..5bbc1ce2 --- /dev/null +++ b/fireblocks_client/models/cancel_transaction_response.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class CancelTransactionResponse(BaseModel): + """ + CancelTransactionResponse + """ # noqa: E501 + success: Optional[StrictBool] = None + __properties: ClassVar[List[str]] = ["success"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CancelTransactionResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CancelTransactionResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success") + }) + return _obj + + diff --git a/fireblocks_client/models/chain_info_response_dto.py b/fireblocks_client/models/chain_info_response_dto.py new file mode 100644 index 00000000..8a58d648 --- /dev/null +++ b/fireblocks_client/models/chain_info_response_dto.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Union +from fireblocks_client.models.additional_info_dto import AdditionalInfoDto +from typing import Optional, Set +from typing_extensions import Self + +class ChainInfoResponseDto(BaseModel): + """ + ChainInfoResponseDto + """ # noqa: E501 + chain_descriptor: StrictStr = Field(description="The protocol identifier (e.g. \"ETH\"/\"SOL\").", alias="chainDescriptor") + current_epoch: Union[StrictFloat, StrictInt] = Field(description="The current epoch number of the blockchain network.", alias="currentEpoch") + epoch_elapsed: Union[StrictFloat, StrictInt] = Field(description="The percentage of time that has elapsed within the current epoch, represented as a decimal value between 0 and 1.", alias="epochElapsed") + epoch_duration: Union[StrictFloat, StrictInt] = Field(description="The total duration in milliseconds of a single epoch.", alias="epochDuration") + additional_info: AdditionalInfoDto = Field(description="Additional information related to the blockchain. This may include extra details about the blockchain network.", alias="additionalInfo") + __properties: ClassVar[List[str]] = ["chainDescriptor", "currentEpoch", "epochElapsed", "epochDuration", "additionalInfo"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ChainInfoResponseDto from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of additional_info + if self.additional_info: + _dict['additionalInfo'] = self.additional_info.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ChainInfoResponseDto from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "chainDescriptor": obj.get("chainDescriptor"), + "currentEpoch": obj.get("currentEpoch"), + "epochElapsed": obj.get("epochElapsed"), + "epochDuration": obj.get("epochDuration"), + "additionalInfo": AdditionalInfoDto.from_dict(obj["additionalInfo"]) if obj.get("additionalInfo") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/collection_metadata_dto.py b/fireblocks_client/models/collection_metadata_dto.py new file mode 100644 index 00000000..e896158b --- /dev/null +++ b/fireblocks_client/models/collection_metadata_dto.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class CollectionMetadataDto(BaseModel): + """ + CollectionMetadataDto + """ # noqa: E501 + fb_collection_id: StrictStr = Field(description="Fireblocks collection id", alias="fbCollectionId") + name: Optional[StrictStr] = Field(default=None, description="Collection name") + symbol: Optional[StrictStr] = Field(default=None, description="Collection symbol") + standard: Optional[StrictStr] = Field(default=None, description="Collection contract standard") + blockchain_descriptor: StrictStr = Field(description="Collection's blockchain", alias="blockchainDescriptor") + contract_address: Optional[StrictStr] = Field(default=None, description="Collection contract address", alias="contractAddress") + __properties: ClassVar[List[str]] = ["fbCollectionId", "name", "symbol", "standard", "blockchainDescriptor", "contractAddress"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CollectionMetadataDto from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CollectionMetadataDto from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "fbCollectionId": obj.get("fbCollectionId"), + "name": obj.get("name"), + "symbol": obj.get("symbol"), + "standard": obj.get("standard"), + "blockchainDescriptor": obj.get("blockchainDescriptor"), + "contractAddress": obj.get("contractAddress") + }) + return _obj + + diff --git a/fireblocks_client/models/collection_ownership_response.py b/fireblocks_client/models/collection_ownership_response.py new file mode 100644 index 00000000..c53af6a5 --- /dev/null +++ b/fireblocks_client/models/collection_ownership_response.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class CollectionOwnershipResponse(BaseModel): + """ + CollectionOwnershipResponse + """ # noqa: E501 + id: StrictStr = Field(description="Fireblocks collection id") + name: Optional[StrictStr] = Field(default=None, description="Collection name") + symbol: Optional[StrictStr] = Field(default=None, description="Collection symbol") + standard: Optional[StrictStr] = Field(default=None, description="Collection contract standard") + blockchain_descriptor: StrictStr = Field(description="Collection's blockchain", alias="blockchainDescriptor") + contract_address: Optional[StrictStr] = Field(default=None, description="Collection contract standard", alias="contractAddress") + __properties: ClassVar[List[str]] = ["id", "name", "symbol", "standard", "blockchainDescriptor", "contractAddress"] + + @field_validator('blockchain_descriptor') + def blockchain_descriptor_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['ETH', 'ETH_TEST3', 'ETH_TEST5', 'ETH_TEST6', 'POLYGON', 'POLYGON_TEST_MUMBAI', 'AMOY_POLYGON_TEST', 'XTZ', 'XTZ_TEST', 'BASECHAIN_ETH']): + raise ValueError("must be one of enum values ('ETH', 'ETH_TEST3', 'ETH_TEST5', 'ETH_TEST6', 'POLYGON', 'POLYGON_TEST_MUMBAI', 'AMOY_POLYGON_TEST', 'XTZ', 'XTZ_TEST', 'BASECHAIN_ETH')") + return value + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CollectionOwnershipResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CollectionOwnershipResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "name": obj.get("name"), + "symbol": obj.get("symbol"), + "standard": obj.get("standard"), + "blockchainDescriptor": obj.get("blockchainDescriptor"), + "contractAddress": obj.get("contractAddress") + }) + return _obj + + diff --git a/fireblocks_client/models/compliance_result.py b/fireblocks_client/models/compliance_result.py new file mode 100644 index 00000000..afbdb374 --- /dev/null +++ b/fireblocks_client/models/compliance_result.py @@ -0,0 +1,136 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.aml_registration_result import AmlRegistrationResult +from fireblocks_client.models.compliance_screening_result import ComplianceScreeningResult +from typing import Optional, Set +from typing_extensions import Self + +class ComplianceResult(BaseModel): + """ + The result of the Compliance AML/Travel Rule screening. + """ # noqa: E501 + aml: Optional[List[ComplianceScreeningResult]] = Field(default=None, description="The end result of the AML screening.") + tr: Optional[List[ComplianceScreeningResult]] = Field(default=None, description="The result of the Travel Rule screening.") + aml_list: Optional[List[ComplianceScreeningResult]] = Field(default=None, description="The list of all results of the AML screening.", alias="amlList") + status: Optional[StrictStr] = Field(default=None, description="Status of compliance result screening.") + aml_registration: Optional[List[AmlRegistrationResult]] = Field(default=None, description="The results of the AML address registration.", alias="amlRegistration") + __properties: ClassVar[List[str]] = ["aml", "tr", "amlList", "status", "amlRegistration"] + + @field_validator('status') + def status_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['Started', 'AMLStarted', 'AMLCompleted', 'AMLFailed', 'AMLInBackground', 'TRStarted', 'TRCompleted', 'TRFailed', 'Completed', 'RegistrationStarted', 'AMLRegistrationStarted', 'AMLRegistrationCompleted', 'TRUpdateStarted', 'TRUpdateCompleted', 'UpdateCompleted', 'IncomingStarted', 'AMLIncomingStarted', 'AMLIncomingCompleted', 'AMLIncomingFailed', 'AMLIncomingInBackground', 'TRIncomingStarted', 'TRIncomingCompleted', 'TRIncomingFailed', 'IncomingCompleted']): + raise ValueError("must be one of enum values ('Started', 'AMLStarted', 'AMLCompleted', 'AMLFailed', 'AMLInBackground', 'TRStarted', 'TRCompleted', 'TRFailed', 'Completed', 'RegistrationStarted', 'AMLRegistrationStarted', 'AMLRegistrationCompleted', 'TRUpdateStarted', 'TRUpdateCompleted', 'UpdateCompleted', 'IncomingStarted', 'AMLIncomingStarted', 'AMLIncomingCompleted', 'AMLIncomingFailed', 'AMLIncomingInBackground', 'TRIncomingStarted', 'TRIncomingCompleted', 'TRIncomingFailed', 'IncomingCompleted')") + return value + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ComplianceResult from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in aml (list) + _items = [] + if self.aml: + for _item in self.aml: + if _item: + _items.append(_item.to_dict()) + _dict['aml'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in tr (list) + _items = [] + if self.tr: + for _item in self.tr: + if _item: + _items.append(_item.to_dict()) + _dict['tr'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in aml_list (list) + _items = [] + if self.aml_list: + for _item in self.aml_list: + if _item: + _items.append(_item.to_dict()) + _dict['amlList'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in aml_registration (list) + _items = [] + if self.aml_registration: + for _item in self.aml_registration: + if _item: + _items.append(_item.to_dict()) + _dict['amlRegistration'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ComplianceResult from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "aml": [ComplianceScreeningResult.from_dict(_item) for _item in obj["aml"]] if obj.get("aml") is not None else None, + "tr": [ComplianceScreeningResult.from_dict(_item) for _item in obj["tr"]] if obj.get("tr") is not None else None, + "amlList": [ComplianceScreeningResult.from_dict(_item) for _item in obj["amlList"]] if obj.get("amlList") is not None else None, + "status": obj.get("status"), + "amlRegistration": [AmlRegistrationResult.from_dict(_item) for _item in obj["amlRegistration"]] if obj.get("amlRegistration") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/compliance_screening_result.py b/fireblocks_client/models/compliance_screening_result.py new file mode 100644 index 00000000..0fb64ed2 --- /dev/null +++ b/fireblocks_client/models/compliance_screening_result.py @@ -0,0 +1,106 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictFloat, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class ComplianceScreeningResult(BaseModel): + """ + ComplianceScreeningResult + """ # noqa: E501 + provider: Optional[StrictStr] = None + payload: Optional[Dict[str, Any]] = Field(default=None, description="The payload of the screening result. The payload is a JSON object that contains the screening result. The payload is different for each screening provider. ") + bypass_reason: Optional[StrictStr] = Field(default=None, alias="bypassReason") + screening_status: Optional[StrictStr] = Field(default=None, alias="screeningStatus") + timestamp: Optional[Union[StrictFloat, StrictInt]] = None + __properties: ClassVar[List[str]] = ["provider", "payload", "bypassReason", "screeningStatus", "timestamp"] + + @field_validator('screening_status') + def screening_status_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['COMPLETED', 'PENDING', 'BYPASSED', 'FAILED', 'FROZEN']): + raise ValueError("must be one of enum values ('COMPLETED', 'PENDING', 'BYPASSED', 'FAILED', 'FROZEN')") + return value + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ComplianceScreeningResult from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ComplianceScreeningResult from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "provider": obj.get("provider"), + "payload": obj.get("payload"), + "bypassReason": obj.get("bypassReason"), + "screeningStatus": obj.get("screeningStatus"), + "timestamp": obj.get("timestamp") + }) + return _obj + + diff --git a/fireblocks_client/models/config_change_request_status.py b/fireblocks_client/models/config_change_request_status.py new file mode 100644 index 00000000..3eaf7e8d --- /dev/null +++ b/fireblocks_client/models/config_change_request_status.py @@ -0,0 +1,41 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +from enum import Enum +from typing_extensions import Self + + +class ConfigChangeRequestStatus(str, Enum): + """ + ConfigChangeRequestStatus + """ + + """ + allowed enum values + """ + WAITING_FOR_APPROVAL = 'WAITING_FOR_APPROVAL' + APPROVED = 'APPROVED' + CANCELLED = 'CANCELLED' + REJECTED = 'REJECTED' + FAILED = 'FAILED' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of ConfigChangeRequestStatus from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/fireblocks_client/models/config_conversion_operation_snapshot.py b/fireblocks_client/models/config_conversion_operation_snapshot.py new file mode 100644 index 00000000..45315784 --- /dev/null +++ b/fireblocks_client/models/config_conversion_operation_snapshot.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List +from fireblocks_client.models.conversion_operation_config_params import ConversionOperationConfigParams +from fireblocks_client.models.conversion_operation_type import ConversionOperationType +from typing import Optional, Set +from typing_extensions import Self + +class ConfigConversionOperationSnapshot(BaseModel): + """ + ConfigConversionOperationSnapshot + """ # noqa: E501 + operation_id: StrictStr = Field(alias="operationId") + type: ConversionOperationType + params: ConversionOperationConfigParams + __properties: ClassVar[List[str]] = ["operationId", "type", "params"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ConfigConversionOperationSnapshot from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of params + if self.params: + _dict['params'] = self.params.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ConfigConversionOperationSnapshot from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "operationId": obj.get("operationId"), + "type": obj.get("type"), + "params": ConversionOperationConfigParams.from_dict(obj["params"]) if obj.get("params") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/config_disbursement_operation_snapshot.py b/fireblocks_client/models/config_disbursement_operation_snapshot.py new file mode 100644 index 00000000..5be7d1fc --- /dev/null +++ b/fireblocks_client/models/config_disbursement_operation_snapshot.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List +from fireblocks_client.models.disbursement_operation_config_params import DisbursementOperationConfigParams +from fireblocks_client.models.disbursement_operation_type import DisbursementOperationType +from typing import Optional, Set +from typing_extensions import Self + +class ConfigDisbursementOperationSnapshot(BaseModel): + """ + ConfigDisbursementOperationSnapshot + """ # noqa: E501 + operation_id: StrictStr = Field(alias="operationId") + type: DisbursementOperationType + params: DisbursementOperationConfigParams + __properties: ClassVar[List[str]] = ["operationId", "type", "params"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ConfigDisbursementOperationSnapshot from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of params + if self.params: + _dict['params'] = self.params.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ConfigDisbursementOperationSnapshot from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "operationId": obj.get("operationId"), + "type": obj.get("type"), + "params": DisbursementOperationConfigParams.from_dict(obj["params"]) if obj.get("params") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/config_operation.py b/fireblocks_client/models/config_operation.py new file mode 100644 index 00000000..77d02442 --- /dev/null +++ b/fireblocks_client/models/config_operation.py @@ -0,0 +1,152 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +import pprint +from pydantic import BaseModel, Field, StrictStr, ValidationError, field_validator +from typing import Any, List, Optional +from fireblocks_client.models.conversion_config_operation import ConversionConfigOperation +from fireblocks_client.models.disbursement_config_operation import DisbursementConfigOperation +from fireblocks_client.models.transfer_config_operation import TransferConfigOperation +from pydantic import StrictStr, Field +from typing import Union, List, Optional, Dict +from typing_extensions import Literal, Self + +CONFIGOPERATION_ONE_OF_SCHEMAS = ["ConversionConfigOperation", "DisbursementConfigOperation", "TransferConfigOperation"] + +class ConfigOperation(BaseModel): + """ + ConfigOperation + """ + # data type: ConversionConfigOperation + oneof_schema_1_validator: Optional[ConversionConfigOperation] = None + # data type: TransferConfigOperation + oneof_schema_2_validator: Optional[TransferConfigOperation] = None + # data type: DisbursementConfigOperation + oneof_schema_3_validator: Optional[DisbursementConfigOperation] = None + actual_instance: Optional[Union[ConversionConfigOperation, DisbursementConfigOperation, TransferConfigOperation]] = None + one_of_schemas: List[str] = Field(default=Literal["ConversionConfigOperation", "DisbursementConfigOperation", "TransferConfigOperation"]) + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_oneof(cls, v): + instance = ConfigOperation.model_construct() + error_messages = [] + match = 0 + # validate data type: ConversionConfigOperation + if not isinstance(v, ConversionConfigOperation): + error_messages.append(f"Error! Input type `{type(v)}` is not `ConversionConfigOperation`") + else: + match += 1 + # validate data type: TransferConfigOperation + if not isinstance(v, TransferConfigOperation): + error_messages.append(f"Error! Input type `{type(v)}` is not `TransferConfigOperation`") + else: + match += 1 + # validate data type: DisbursementConfigOperation + if not isinstance(v, DisbursementConfigOperation): + error_messages.append(f"Error! Input type `{type(v)}` is not `DisbursementConfigOperation`") + else: + match += 1 + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in ConfigOperation with oneOf schemas: ConversionConfigOperation, DisbursementConfigOperation, TransferConfigOperation. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in ConfigOperation with oneOf schemas: ConversionConfigOperation, DisbursementConfigOperation, TransferConfigOperation. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + match = 0 + + # deserialize data into ConversionConfigOperation + try: + instance.actual_instance = ConversionConfigOperation.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into TransferConfigOperation + try: + instance.actual_instance = TransferConfigOperation.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into DisbursementConfigOperation + try: + instance.actual_instance = DisbursementConfigOperation.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when deserializing the JSON string into ConfigOperation with oneOf schemas: ConversionConfigOperation, DisbursementConfigOperation, TransferConfigOperation. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into ConfigOperation with oneOf schemas: ConversionConfigOperation, DisbursementConfigOperation, TransferConfigOperation. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], ConversionConfigOperation, DisbursementConfigOperation, TransferConfigOperation]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + # primitive type + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/fireblocks_client/models/config_operation_snapshot.py b/fireblocks_client/models/config_operation_snapshot.py new file mode 100644 index 00000000..f9f0c472 --- /dev/null +++ b/fireblocks_client/models/config_operation_snapshot.py @@ -0,0 +1,152 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +import pprint +from pydantic import BaseModel, Field, StrictStr, ValidationError, field_validator +from typing import Any, List, Optional +from fireblocks_client.models.config_conversion_operation_snapshot import ConfigConversionOperationSnapshot +from fireblocks_client.models.config_disbursement_operation_snapshot import ConfigDisbursementOperationSnapshot +from fireblocks_client.models.config_transfer_operation_snapshot import ConfigTransferOperationSnapshot +from pydantic import StrictStr, Field +from typing import Union, List, Optional, Dict +from typing_extensions import Literal, Self + +CONFIGOPERATIONSNAPSHOT_ONE_OF_SCHEMAS = ["ConfigConversionOperationSnapshot", "ConfigDisbursementOperationSnapshot", "ConfigTransferOperationSnapshot"] + +class ConfigOperationSnapshot(BaseModel): + """ + ConfigOperationSnapshot + """ + # data type: ConfigConversionOperationSnapshot + oneof_schema_1_validator: Optional[ConfigConversionOperationSnapshot] = None + # data type: ConfigTransferOperationSnapshot + oneof_schema_2_validator: Optional[ConfigTransferOperationSnapshot] = None + # data type: ConfigDisbursementOperationSnapshot + oneof_schema_3_validator: Optional[ConfigDisbursementOperationSnapshot] = None + actual_instance: Optional[Union[ConfigConversionOperationSnapshot, ConfigDisbursementOperationSnapshot, ConfigTransferOperationSnapshot]] = None + one_of_schemas: List[str] = Field(default=Literal["ConfigConversionOperationSnapshot", "ConfigDisbursementOperationSnapshot", "ConfigTransferOperationSnapshot"]) + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_oneof(cls, v): + instance = ConfigOperationSnapshot.model_construct() + error_messages = [] + match = 0 + # validate data type: ConfigConversionOperationSnapshot + if not isinstance(v, ConfigConversionOperationSnapshot): + error_messages.append(f"Error! Input type `{type(v)}` is not `ConfigConversionOperationSnapshot`") + else: + match += 1 + # validate data type: ConfigTransferOperationSnapshot + if not isinstance(v, ConfigTransferOperationSnapshot): + error_messages.append(f"Error! Input type `{type(v)}` is not `ConfigTransferOperationSnapshot`") + else: + match += 1 + # validate data type: ConfigDisbursementOperationSnapshot + if not isinstance(v, ConfigDisbursementOperationSnapshot): + error_messages.append(f"Error! Input type `{type(v)}` is not `ConfigDisbursementOperationSnapshot`") + else: + match += 1 + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in ConfigOperationSnapshot with oneOf schemas: ConfigConversionOperationSnapshot, ConfigDisbursementOperationSnapshot, ConfigTransferOperationSnapshot. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in ConfigOperationSnapshot with oneOf schemas: ConfigConversionOperationSnapshot, ConfigDisbursementOperationSnapshot, ConfigTransferOperationSnapshot. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + match = 0 + + # deserialize data into ConfigConversionOperationSnapshot + try: + instance.actual_instance = ConfigConversionOperationSnapshot.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into ConfigTransferOperationSnapshot + try: + instance.actual_instance = ConfigTransferOperationSnapshot.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into ConfigDisbursementOperationSnapshot + try: + instance.actual_instance = ConfigDisbursementOperationSnapshot.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when deserializing the JSON string into ConfigOperationSnapshot with oneOf schemas: ConfigConversionOperationSnapshot, ConfigDisbursementOperationSnapshot, ConfigTransferOperationSnapshot. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into ConfigOperationSnapshot with oneOf schemas: ConfigConversionOperationSnapshot, ConfigDisbursementOperationSnapshot, ConfigTransferOperationSnapshot. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], ConfigConversionOperationSnapshot, ConfigDisbursementOperationSnapshot, ConfigTransferOperationSnapshot]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + # primitive type + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/fireblocks_client/models/config_operation_status.py b/fireblocks_client/models/config_operation_status.py new file mode 100644 index 00000000..4a187cea --- /dev/null +++ b/fireblocks_client/models/config_operation_status.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +from enum import Enum +from typing_extensions import Self + + +class ConfigOperationStatus(str, Enum): + """ + ConfigOperationStatus + """ + + """ + allowed enum values + """ + PENDING = 'PENDING' + VALIDATION_IN_PROGRESS = 'VALIDATION_IN_PROGRESS' + READY_FOR_EXECUTION = 'READY_FOR_EXECUTION' + VALIDATION_FAILED = 'VALIDATION_FAILED' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of ConfigOperationStatus from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/fireblocks_client/models/config_transfer_operation_snapshot.py b/fireblocks_client/models/config_transfer_operation_snapshot.py new file mode 100644 index 00000000..40ddafbf --- /dev/null +++ b/fireblocks_client/models/config_transfer_operation_snapshot.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List +from fireblocks_client.models.transfer_operation_config_params import TransferOperationConfigParams +from fireblocks_client.models.transfer_operation_type import TransferOperationType +from typing import Optional, Set +from typing_extensions import Self + +class ConfigTransferOperationSnapshot(BaseModel): + """ + ConfigTransferOperationSnapshot + """ # noqa: E501 + operation_id: StrictStr = Field(alias="operationId") + type: TransferOperationType + params: TransferOperationConfigParams + __properties: ClassVar[List[str]] = ["operationId", "type", "params"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ConfigTransferOperationSnapshot from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of params + if self.params: + _dict['params'] = self.params.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ConfigTransferOperationSnapshot from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "operationId": obj.get("operationId"), + "type": obj.get("type"), + "params": TransferOperationConfigParams.from_dict(obj["params"]) if obj.get("params") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/console_user.py b/fireblocks_client/models/console_user.py new file mode 100644 index 00000000..5be0da57 --- /dev/null +++ b/fireblocks_client/models/console_user.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.user_role import UserRole +from fireblocks_client.models.user_status import UserStatus +from fireblocks_client.models.user_type import UserType +from typing import Optional, Set +from typing_extensions import Self + +class ConsoleUser(BaseModel): + """ + ConsoleUser + """ # noqa: E501 + id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the user") + first_name: Optional[StrictStr] = Field(default=None, description="The first name of the user", alias="firstName") + last_name: Optional[StrictStr] = Field(default=None, description="The last name of the user", alias="lastName") + email: Optional[StrictStr] = Field(default=None, description="The email address of the user") + role: Optional[UserRole] = None + enabled: Optional[StrictBool] = Field(default=None, description="Whether the user is enabled") + status: Optional[UserStatus] = None + user_type: Optional[UserType] = Field(default=None, alias="userType") + __properties: ClassVar[List[str]] = ["id", "firstName", "lastName", "email", "role", "enabled", "status", "userType"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ConsoleUser from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ConsoleUser from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "firstName": obj.get("firstName"), + "lastName": obj.get("lastName"), + "email": obj.get("email"), + "role": obj.get("role"), + "enabled": obj.get("enabled"), + "status": obj.get("status"), + "userType": obj.get("userType") + }) + return _obj + + diff --git a/fireblocks_client/models/contract_abi_response_dto.py b/fireblocks_client/models/contract_abi_response_dto.py new file mode 100644 index 00000000..85d75c9d --- /dev/null +++ b/fireblocks_client/models/contract_abi_response_dto.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.abi_function import AbiFunction +from typing import Optional, Set +from typing_extensions import Self + +class ContractAbiResponseDto(BaseModel): + """ + ContractAbiResponseDto + """ # noqa: E501 + abi: List[AbiFunction] = Field(description="The abi of the contract") + implementation_abi: Optional[List[AbiFunction]] = Field(default=None, description="The abi of the implementation contract if exists. Relevant only for proxy patterns", alias="implementationAbi") + __properties: ClassVar[List[str]] = ["abi", "implementationAbi"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ContractAbiResponseDto from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in abi (list) + _items = [] + if self.abi: + for _item in self.abi: + if _item: + _items.append(_item.to_dict()) + _dict['abi'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in implementation_abi (list) + _items = [] + if self.implementation_abi: + for _item in self.implementation_abi: + if _item: + _items.append(_item.to_dict()) + _dict['implementationAbi'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ContractAbiResponseDto from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "abi": [AbiFunction.from_dict(_item) for _item in obj["abi"]] if obj.get("abi") is not None else None, + "implementationAbi": [AbiFunction.from_dict(_item) for _item in obj["implementationAbi"]] if obj.get("implementationAbi") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/contract_attributes.py b/fireblocks_client/models/contract_attributes.py new file mode 100644 index 00000000..88e9fd0f --- /dev/null +++ b/fireblocks_client/models/contract_attributes.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List +from fireblocks_client.models.auditor_data import AuditorData +from typing import Optional, Set +from typing_extensions import Self + +class ContractAttributes(BaseModel): + """ + ContractAttributes + """ # noqa: E501 + use_cases: List[StrictStr] = Field(alias="useCases") + standards: List[StrictStr] + auditor: AuditorData + __properties: ClassVar[List[str]] = ["useCases", "standards", "auditor"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ContractAttributes from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of auditor + if self.auditor: + _dict['auditor'] = self.auditor.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ContractAttributes from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "useCases": obj.get("useCases"), + "standards": obj.get("standards"), + "auditor": AuditorData.from_dict(obj["auditor"]) if obj.get("auditor") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/contract_deploy_request.py b/fireblocks_client/models/contract_deploy_request.py new file mode 100644 index 00000000..5b3cc339 --- /dev/null +++ b/fireblocks_client/models/contract_deploy_request.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.parameter_with_value import ParameterWithValue +from typing import Optional, Set +from typing_extensions import Self + +class ContractDeployRequest(BaseModel): + """ + ContractDeployRequest + """ # noqa: E501 + asset_id: StrictStr = Field(description="The base asset identifier of the blockchain you want to deploy to", alias="assetId") + vault_account_id: StrictStr = Field(description="The vault account id you wish to deploy from", alias="vaultAccountId") + constructor_parameters: Optional[List[ParameterWithValue]] = Field(default=None, description="The constructor parameters of this contract", alias="constructorParameters") + __properties: ClassVar[List[str]] = ["assetId", "vaultAccountId", "constructorParameters"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ContractDeployRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in constructor_parameters (list) + _items = [] + if self.constructor_parameters: + for _item in self.constructor_parameters: + if _item: + _items.append(_item.to_dict()) + _dict['constructorParameters'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ContractDeployRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "assetId": obj.get("assetId"), + "vaultAccountId": obj.get("vaultAccountId"), + "constructorParameters": [ParameterWithValue.from_dict(_item) for _item in obj["constructorParameters"]] if obj.get("constructorParameters") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/contract_deploy_response.py b/fireblocks_client/models/contract_deploy_response.py new file mode 100644 index 00000000..cde6bf1f --- /dev/null +++ b/fireblocks_client/models/contract_deploy_response.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class ContractDeployResponse(BaseModel): + """ + ContractDeployResponse + """ # noqa: E501 + tx_id: StrictStr = Field(description="The transaction id of the deployment request", alias="txId") + __properties: ClassVar[List[str]] = ["txId"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ContractDeployResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ContractDeployResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "txId": obj.get("txId") + }) + return _obj + + diff --git a/fireblocks_client/models/contract_doc.py b/fireblocks_client/models/contract_doc.py new file mode 100644 index 00000000..dcb12189 --- /dev/null +++ b/fireblocks_client/models/contract_doc.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.function_doc import FunctionDoc +from typing import Optional, Set +from typing_extensions import Self + +class ContractDoc(BaseModel): + """ + ContractDoc + """ # noqa: E501 + details: Optional[StrictStr] = Field(default=None, description="A description of the contract") + events: Optional[StrictStr] = Field(default=None, description="A description of the contract`s events") + kind: StrictStr = Field(description="Is it devdoc or userdoc") + methods: Dict[str, FunctionDoc] = Field(description="The description of the contract functions") + version: StrictStr = Field(description="The version of the contract") + __properties: ClassVar[List[str]] = ["details", "events", "kind", "methods", "version"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ContractDoc from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each value in methods (dict) + _field_dict = {} + if self.methods: + for _key in self.methods: + if self.methods[_key]: + _field_dict[_key] = self.methods[_key].to_dict() + _dict['methods'] = _field_dict + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ContractDoc from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "details": obj.get("details"), + "events": obj.get("events"), + "kind": obj.get("kind"), + "methods": dict( + (_k, FunctionDoc.from_dict(_v)) + for _k, _v in obj["methods"].items() + ) + if obj.get("methods") is not None + else None, + "version": obj.get("version") + }) + return _obj + + diff --git a/fireblocks_client/models/contract_metadata_dto.py b/fireblocks_client/models/contract_metadata_dto.py new file mode 100644 index 00000000..277aae1d --- /dev/null +++ b/fireblocks_client/models/contract_metadata_dto.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ContractMetadataDto(BaseModel): + """ + ContractMetadataDto + """ # noqa: E501 + id: StrictStr = Field(description="The deployed contract ID") + blockchain_id: StrictStr = Field(description="The blockchain ID", alias="blockchainId") + contract_address: StrictStr = Field(description="The address of the token contract", alias="contractAddress") + contract_template_id: StrictStr = Field(description="The contract template ID", alias="contractTemplateId") + vault_account_id: Optional[StrictStr] = Field(default=None, description="The vault account ID that initiated the request to issue the token", alias="vaultAccountId") + __properties: ClassVar[List[str]] = ["id", "blockchainId", "contractAddress", "contractTemplateId", "vaultAccountId"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ContractMetadataDto from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ContractMetadataDto from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "blockchainId": obj.get("blockchainId"), + "contractAddress": obj.get("contractAddress"), + "contractTemplateId": obj.get("contractTemplateId"), + "vaultAccountId": obj.get("vaultAccountId") + }) + return _obj + + diff --git a/fireblocks_client/models/contract_template_dto.py b/fireblocks_client/models/contract_template_dto.py new file mode 100644 index 00000000..09cb45f0 --- /dev/null +++ b/fireblocks_client/models/contract_template_dto.py @@ -0,0 +1,156 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictBool, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.abi_function import AbiFunction +from fireblocks_client.models.contract_attributes import ContractAttributes +from fireblocks_client.models.contract_doc import ContractDoc +from fireblocks_client.models.vendor_dto import VendorDto +from typing import Optional, Set +from typing_extensions import Self + +class ContractTemplateDto(BaseModel): + """ + ContractTemplateDto + """ # noqa: E501 + id: StrictStr = Field(description="The unique identifier of the contract template") + name: StrictStr = Field(description="The name of the contract template") + description: StrictStr = Field(description="A short description of the contract template") + long_description: Optional[StrictStr] = Field(default=None, description="A full description of the contract template. May contain to break the lines", alias="longDescription") + abi: List[List[AbiFunction]] + attributes: Optional[ContractAttributes] = Field(default=None, description="The attributes related to this contract template. It will be displayed in the tokenization page") + docs: Optional[ContractDoc] = Field(default=None, description="A `natspec` compliant documentation json. Can be retrieved from the output json after compilation") + owner: Optional[StrictStr] = Field(default=None, description="The workspace id of the owner of this contract template. If it's a private contract, only this workspace will be allowed to deploy it") + vendor: Optional[VendorDto] = Field(default=None, description="The details of the vendor of this contract template. Applicable only for public contract templates") + is_public: StrictBool = Field(description="Is this a contract that is viewable by all fireblocks's users or is it visible only for this workspace", alias="isPublic") + can_deploy: Optional[StrictBool] = Field(default=None, description="True if the workspace allowed to deploy this contract, false otherwise", alias="canDeploy") + type: Optional[StrictStr] = Field(default=None, description="The type of the contract template") + implementation_contract_id: Optional[StrictStr] = Field(default=None, alias="implementationContractId") + initialization_phase: StrictStr = Field(alias="initializationPhase") + __properties: ClassVar[List[str]] = ["id", "name", "description", "longDescription", "abi", "attributes", "docs", "owner", "vendor", "isPublic", "canDeploy", "type", "implementationContractId", "initializationPhase"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['FUNGIBLE_TOKEN', 'NON_FUNGIBLE_TOKEN', 'NON_TOKEN', 'TOKEN_EXTENSION', 'TOKEN_UTILITY']): + raise ValueError("must be one of enum values ('FUNGIBLE_TOKEN', 'NON_FUNGIBLE_TOKEN', 'NON_TOKEN', 'TOKEN_EXTENSION', 'TOKEN_UTILITY')") + return value + + @field_validator('initialization_phase') + def initialization_phase_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['ON_DEPLOYMENT', 'POST_DEPLOYMENT']): + raise ValueError("must be one of enum values ('ON_DEPLOYMENT', 'POST_DEPLOYMENT')") + return value + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ContractTemplateDto from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in abi (list of list) + _items = [] + if self.abi: + for _item in self.abi: + if _item: + _items.append( + [_inner_item.to_dict() for _inner_item in _item if _inner_item is not None] + ) + _dict['abi'] = _items + # override the default output from pydantic by calling `to_dict()` of attributes + if self.attributes: + _dict['attributes'] = self.attributes.to_dict() + # override the default output from pydantic by calling `to_dict()` of docs + if self.docs: + _dict['docs'] = self.docs.to_dict() + # override the default output from pydantic by calling `to_dict()` of vendor + if self.vendor: + _dict['vendor'] = self.vendor.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ContractTemplateDto from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "name": obj.get("name"), + "description": obj.get("description"), + "longDescription": obj.get("longDescription"), + "abi": [ + [AbiFunction.from_dict(_inner_item) for _inner_item in _item] + for _item in obj["abi"] + ] if obj.get("abi") is not None else None, + "attributes": ContractAttributes.from_dict(obj["attributes"]) if obj.get("attributes") is not None else None, + "docs": ContractDoc.from_dict(obj["docs"]) if obj.get("docs") is not None else None, + "owner": obj.get("owner"), + "vendor": VendorDto.from_dict(obj["vendor"]) if obj.get("vendor") is not None else None, + "isPublic": obj.get("isPublic"), + "canDeploy": obj.get("canDeploy"), + "type": obj.get("type"), + "implementationContractId": obj.get("implementationContractId"), + "initializationPhase": obj.get("initializationPhase") + }) + return _obj + + diff --git a/fireblocks_client/models/contract_upload_request.py b/fireblocks_client/models/contract_upload_request.py new file mode 100644 index 00000000..f841f628 --- /dev/null +++ b/fireblocks_client/models/contract_upload_request.py @@ -0,0 +1,135 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.abi_function import AbiFunction +from fireblocks_client.models.contract_attributes import ContractAttributes +from fireblocks_client.models.contract_doc import ContractDoc +from typing import Optional, Set +from typing_extensions import Self + +class ContractUploadRequest(BaseModel): + """ + ContractUploadRequest + """ # noqa: E501 + name: StrictStr = Field(description="The name of the contract template") + description: StrictStr = Field(description="A short description of the contract template") + long_description: Optional[StrictStr] = Field(default=None, description="A full description of the contract template. May contain to break the lines", alias="longDescription") + bytecode: StrictStr = Field(description="The compiled artifact of this smart contract. Used for deployment of this contract template") + sourcecode: Optional[StrictStr] = Field(default=None, description="The source code of the contract. Optional.") + type: Optional[StrictStr] = Field(default=None, description="The type of the contract template") + docs: Optional[ContractDoc] = Field(default=None, description="A `natspec` compliant documentation json. Can be retrieved from the output json after compilation") + abi: List[List[AbiFunction]] + attributes: Optional[ContractAttributes] = Field(default=None, description="The attributes related to this contract template. It will be displayed in the tokenization page") + __properties: ClassVar[List[str]] = ["name", "description", "longDescription", "bytecode", "sourcecode", "type", "docs", "abi", "attributes"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['FUNGIBLE_TOKEN', 'NON_FUNGIBLE_TOKEN', 'NON_TOKEN', 'TOKEN_EXTENSION', 'TOKEN_UTILITY']): + raise ValueError("must be one of enum values ('FUNGIBLE_TOKEN', 'NON_FUNGIBLE_TOKEN', 'NON_TOKEN', 'TOKEN_EXTENSION', 'TOKEN_UTILITY')") + return value + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ContractUploadRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of docs + if self.docs: + _dict['docs'] = self.docs.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in abi (list of list) + _items = [] + if self.abi: + for _item in self.abi: + if _item: + _items.append( + [_inner_item.to_dict() for _inner_item in _item if _inner_item is not None] + ) + _dict['abi'] = _items + # override the default output from pydantic by calling `to_dict()` of attributes + if self.attributes: + _dict['attributes'] = self.attributes.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ContractUploadRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "description": obj.get("description"), + "longDescription": obj.get("longDescription"), + "bytecode": obj.get("bytecode"), + "sourcecode": obj.get("sourcecode"), + "type": obj.get("type"), + "docs": ContractDoc.from_dict(obj["docs"]) if obj.get("docs") is not None else None, + "abi": [ + [AbiFunction.from_dict(_inner_item) for _inner_item in _item] + for _item in obj["abi"] + ] if obj.get("abi") is not None else None, + "attributes": ContractAttributes.from_dict(obj["attributes"]) if obj.get("attributes") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/conversion_config_operation.py b/fireblocks_client/models/conversion_config_operation.py new file mode 100644 index 00000000..3d32a089 --- /dev/null +++ b/fireblocks_client/models/conversion_config_operation.py @@ -0,0 +1,106 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.config_operation_status import ConfigOperationStatus +from fireblocks_client.models.conversion_operation_config_params import ConversionOperationConfigParams +from fireblocks_client.models.conversion_operation_type import ConversionOperationType +from fireblocks_client.models.conversion_validation_failure import ConversionValidationFailure +from typing import Optional, Set +from typing_extensions import Self + +class ConversionConfigOperation(BaseModel): + """ + ConversionConfigOperation + """ # noqa: E501 + operation_id: StrictStr = Field(alias="operationId") + type: ConversionOperationType + params: ConversionOperationConfigParams + status: ConfigOperationStatus + validation_failure: Optional[ConversionValidationFailure] = Field(default=None, alias="validationFailure") + __properties: ClassVar[List[str]] = ["operationId", "type", "params", "status", "validationFailure"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ConversionConfigOperation from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of params + if self.params: + _dict['params'] = self.params.to_dict() + # override the default output from pydantic by calling `to_dict()` of validation_failure + if self.validation_failure: + _dict['validationFailure'] = self.validation_failure.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ConversionConfigOperation from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "operationId": obj.get("operationId"), + "type": obj.get("type"), + "params": ConversionOperationConfigParams.from_dict(obj["params"]) if obj.get("params") is not None else None, + "status": obj.get("status"), + "validationFailure": ConversionValidationFailure.from_dict(obj["validationFailure"]) if obj.get("validationFailure") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/conversion_operation_config_params.py b/fireblocks_client/models/conversion_operation_config_params.py new file mode 100644 index 00000000..c01ed9bf --- /dev/null +++ b/fireblocks_client/models/conversion_operation_config_params.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self + +class ConversionOperationConfigParams(BaseModel): + """ + ConversionOperationConfigParams + """ # noqa: E501 + amount: Optional[StrictStr] = None + account_id: Optional[StrictStr] = Field(default=None, alias="accountId") + src_asset_id: Optional[StrictStr] = Field(default=None, alias="srcAssetId") + dest_asset_id: StrictStr = Field(alias="destAssetId") + slippage_basis_points: Optional[Annotated[int, Field(le=10000, strict=True, ge=0)]] = Field(default=None, alias="slippageBasisPoints") + __properties: ClassVar[List[str]] = ["amount", "accountId", "srcAssetId", "destAssetId", "slippageBasisPoints"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ConversionOperationConfigParams from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ConversionOperationConfigParams from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "amount": obj.get("amount"), + "accountId": obj.get("accountId"), + "srcAssetId": obj.get("srcAssetId"), + "destAssetId": obj.get("destAssetId"), + "slippageBasisPoints": obj.get("slippageBasisPoints") + }) + return _obj + + diff --git a/fireblocks_client/models/conversion_operation_execution.py b/fireblocks_client/models/conversion_operation_execution.py new file mode 100644 index 00000000..cec14f38 --- /dev/null +++ b/fireblocks_client/models/conversion_operation_execution.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictFloat, StrictInt +from typing import Any, ClassVar, Dict, List, Optional, Union +from fireblocks_client.models.conversion_operation_config_params import ConversionOperationConfigParams +from fireblocks_client.models.conversion_operation_execution_output import ConversionOperationExecutionOutput +from fireblocks_client.models.conversion_operation_failure import ConversionOperationFailure +from typing import Optional, Set +from typing_extensions import Self + +class ConversionOperationExecution(BaseModel): + """ + ConversionOperationExecution + """ # noqa: E501 + input: ConversionOperationConfigParams + output: Optional[ConversionOperationExecutionOutput] = None + started_at: Union[StrictFloat, StrictInt] = Field(alias="startedAt") + finished_at: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="finishedAt") + failure: Optional[ConversionOperationFailure] = None + __properties: ClassVar[List[str]] = ["input", "output", "startedAt", "finishedAt", "failure"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ConversionOperationExecution from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of input + if self.input: + _dict['input'] = self.input.to_dict() + # override the default output from pydantic by calling `to_dict()` of output + if self.output: + _dict['output'] = self.output.to_dict() + # override the default output from pydantic by calling `to_dict()` of failure + if self.failure: + _dict['failure'] = self.failure.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ConversionOperationExecution from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "input": ConversionOperationConfigParams.from_dict(obj["input"]) if obj.get("input") is not None else None, + "output": ConversionOperationExecutionOutput.from_dict(obj["output"]) if obj.get("output") is not None else None, + "startedAt": obj.get("startedAt"), + "finishedAt": obj.get("finishedAt"), + "failure": ConversionOperationFailure.from_dict(obj["failure"]) if obj.get("failure") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/conversion_operation_execution_output.py b/fireblocks_client/models/conversion_operation_execution_output.py new file mode 100644 index 00000000..7bd5f70b --- /dev/null +++ b/fireblocks_client/models/conversion_operation_execution_output.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List +from fireblocks_client.models.asset_amount import AssetAmount +from typing import Optional, Set +from typing_extensions import Self + +class ConversionOperationExecutionOutput(BaseModel): + """ + ConversionOperationExecutionOutput + """ # noqa: E501 + amount: AssetAmount + fee: AssetAmount + conversion_rate: StrictStr = Field(alias="conversionRate") + __properties: ClassVar[List[str]] = ["amount", "fee", "conversionRate"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ConversionOperationExecutionOutput from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of amount + if self.amount: + _dict['amount'] = self.amount.to_dict() + # override the default output from pydantic by calling `to_dict()` of fee + if self.fee: + _dict['fee'] = self.fee.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ConversionOperationExecutionOutput from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "amount": AssetAmount.from_dict(obj["amount"]) if obj.get("amount") is not None else None, + "fee": AssetAmount.from_dict(obj["fee"]) if obj.get("fee") is not None else None, + "conversionRate": obj.get("conversionRate") + }) + return _obj + + diff --git a/fireblocks_client/models/conversion_operation_execution_params.py b/fireblocks_client/models/conversion_operation_execution_params.py new file mode 100644 index 00000000..ea05f60a --- /dev/null +++ b/fireblocks_client/models/conversion_operation_execution_params.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.conversion_operation_execution_params_execution_params import ConversionOperationExecutionParamsExecutionParams +from typing import Optional, Set +from typing_extensions import Self + +class ConversionOperationExecutionParams(BaseModel): + """ + ConversionOperationExecutionParams + """ # noqa: E501 + config_operation_id: StrictStr = Field(alias="configOperationId") + execution_params: Optional[ConversionOperationExecutionParamsExecutionParams] = Field(default=None, alias="executionParams") + __properties: ClassVar[List[str]] = ["configOperationId", "executionParams"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ConversionOperationExecutionParams from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of execution_params + if self.execution_params: + _dict['executionParams'] = self.execution_params.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ConversionOperationExecutionParams from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "configOperationId": obj.get("configOperationId"), + "executionParams": ConversionOperationExecutionParamsExecutionParams.from_dict(obj["executionParams"]) if obj.get("executionParams") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/conversion_operation_execution_params_execution_params.py b/fireblocks_client/models/conversion_operation_execution_params_execution_params.py new file mode 100644 index 00000000..5f1396a0 --- /dev/null +++ b/fireblocks_client/models/conversion_operation_execution_params_execution_params.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self + +class ConversionOperationExecutionParamsExecutionParams(BaseModel): + """ + ConversionOperationExecutionParamsExecutionParams + """ # noqa: E501 + amount: Optional[StrictStr] = None + account_id: Optional[StrictStr] = Field(default=None, alias="accountId") + src_asset_id: Optional[StrictStr] = Field(default=None, alias="srcAssetId") + dest_asset_id: Optional[StrictStr] = Field(default=None, alias="destAssetId") + slippage_basis_points: Optional[Annotated[int, Field(le=10000, strict=True, ge=0)]] = Field(default=None, alias="slippageBasisPoints") + __properties: ClassVar[List[str]] = ["amount", "accountId", "srcAssetId", "destAssetId", "slippageBasisPoints"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ConversionOperationExecutionParamsExecutionParams from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ConversionOperationExecutionParamsExecutionParams from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "amount": obj.get("amount"), + "accountId": obj.get("accountId"), + "srcAssetId": obj.get("srcAssetId"), + "destAssetId": obj.get("destAssetId"), + "slippageBasisPoints": obj.get("slippageBasisPoints") + }) + return _obj + + diff --git a/fireblocks_client/models/conversion_operation_failure.py b/fireblocks_client/models/conversion_operation_failure.py new file mode 100644 index 00000000..28f0e565 --- /dev/null +++ b/fireblocks_client/models/conversion_operation_failure.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ConversionOperationFailure(BaseModel): + """ + ConversionOperationFailure + """ # noqa: E501 + reason: StrictStr + data: Optional[Dict[str, Any]] = None + __properties: ClassVar[List[str]] = ["reason", "data"] + + @field_validator('reason') + def reason_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['INVALID_AMOUNT', 'SLIPPAGE_EXCEEDED', 'AMOUNT_TOO_SMALL', 'INSUFFICIENT_FUNDS']): + raise ValueError("must be one of enum values ('INVALID_AMOUNT', 'SLIPPAGE_EXCEEDED', 'AMOUNT_TOO_SMALL', 'INSUFFICIENT_FUNDS')") + return value + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ConversionOperationFailure from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ConversionOperationFailure from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "reason": obj.get("reason"), + "data": obj.get("data") + }) + return _obj + + diff --git a/fireblocks_client/models/conversion_operation_preview.py b/fireblocks_client/models/conversion_operation_preview.py new file mode 100644 index 00000000..4d0b0ea3 --- /dev/null +++ b/fireblocks_client/models/conversion_operation_preview.py @@ -0,0 +1,104 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.conversion_operation_config_params import ConversionOperationConfigParams +from fireblocks_client.models.conversion_operation_failure import ConversionOperationFailure +from fireblocks_client.models.conversion_operation_preview_output import ConversionOperationPreviewOutput +from typing import Optional, Set +from typing_extensions import Self + +class ConversionOperationPreview(BaseModel): + """ + ConversionOperationPreview + """ # noqa: E501 + input: ConversionOperationConfigParams + output: Optional[ConversionOperationPreviewOutput] = None + failure: Optional[ConversionOperationFailure] = None + __properties: ClassVar[List[str]] = ["input", "output", "failure"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ConversionOperationPreview from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of input + if self.input: + _dict['input'] = self.input.to_dict() + # override the default output from pydantic by calling `to_dict()` of output + if self.output: + _dict['output'] = self.output.to_dict() + # override the default output from pydantic by calling `to_dict()` of failure + if self.failure: + _dict['failure'] = self.failure.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ConversionOperationPreview from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "input": ConversionOperationConfigParams.from_dict(obj["input"]) if obj.get("input") is not None else None, + "output": ConversionOperationPreviewOutput.from_dict(obj["output"]) if obj.get("output") is not None else None, + "failure": ConversionOperationFailure.from_dict(obj["failure"]) if obj.get("failure") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/conversion_operation_preview_output.py b/fireblocks_client/models/conversion_operation_preview_output.py new file mode 100644 index 00000000..bd073c22 --- /dev/null +++ b/fireblocks_client/models/conversion_operation_preview_output.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Union +from fireblocks_client.models.asset_amount import AssetAmount +from typing import Optional, Set +from typing_extensions import Self + +class ConversionOperationPreviewOutput(BaseModel): + """ + ConversionOperationPreviewOutput + """ # noqa: E501 + amount: AssetAmount + fee: AssetAmount + conversion_rate: StrictStr = Field(alias="conversionRate") + time_seconds: Union[StrictFloat, StrictInt] = Field(alias="timeSeconds") + __properties: ClassVar[List[str]] = ["amount", "fee", "conversionRate", "timeSeconds"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ConversionOperationPreviewOutput from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of amount + if self.amount: + _dict['amount'] = self.amount.to_dict() + # override the default output from pydantic by calling `to_dict()` of fee + if self.fee: + _dict['fee'] = self.fee.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ConversionOperationPreviewOutput from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "amount": AssetAmount.from_dict(obj["amount"]) if obj.get("amount") is not None else None, + "fee": AssetAmount.from_dict(obj["fee"]) if obj.get("fee") is not None else None, + "conversionRate": obj.get("conversionRate"), + "timeSeconds": obj.get("timeSeconds") + }) + return _obj + + diff --git a/fireblocks_client/models/conversion_operation_type.py b/fireblocks_client/models/conversion_operation_type.py new file mode 100644 index 00000000..024aee01 --- /dev/null +++ b/fireblocks_client/models/conversion_operation_type.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +from enum import Enum +from typing_extensions import Self + + +class ConversionOperationType(str, Enum): + """ + ConversionOperationType + """ + + """ + allowed enum values + """ + CONVERSION = 'CONVERSION' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of ConversionOperationType from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/fireblocks_client/models/conversion_validation_failure.py b/fireblocks_client/models/conversion_validation_failure.py new file mode 100644 index 00000000..2d63f580 --- /dev/null +++ b/fireblocks_client/models/conversion_validation_failure.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ConversionValidationFailure(BaseModel): + """ + ConversionValidationFailure + """ # noqa: E501 + reason: StrictStr + data: Optional[Dict[str, Any]] = None + __properties: ClassVar[List[str]] = ["reason", "data"] + + @field_validator('reason') + def reason_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['ACCOUNT_NOT_FOUND', 'ACCOUNT_TYPE_NOT_SUPPORTED', 'INSUFFICIENT_BALANCE', 'ASSET_NOT_FOUND', 'ASSETS_CONTINUITY_MISMATCH', 'EXCHANGE_BASKETS_MISMATCH', 'ACCOUNTS_CONTINUITY_MISMATCH', 'ONE_TIME_ADDRESS_CONTINUITY_NOT_ALLOWED', 'EQUAL_ACCOUNTS_NOT_ALLOWED', 'EQUAL_ASSETS_NOT_ALLOWED', 'INVALID_AMOUNT', 'UNMANAGED_WALLET_AS_SOURCE_NOT_ALLOWED', 'MANAGED_OPERATION_PARAMS_INVALID_SCHEMA', 'ACCOUNT_IS_NOT_EXCHANGE', 'UNSUPPORTED_TRADING_METHOD', 'ASSETS_CAN_NOT_CONVERTED']): + raise ValueError("must be one of enum values ('ACCOUNT_NOT_FOUND', 'ACCOUNT_TYPE_NOT_SUPPORTED', 'INSUFFICIENT_BALANCE', 'ASSET_NOT_FOUND', 'ASSETS_CONTINUITY_MISMATCH', 'EXCHANGE_BASKETS_MISMATCH', 'ACCOUNTS_CONTINUITY_MISMATCH', 'ONE_TIME_ADDRESS_CONTINUITY_NOT_ALLOWED', 'EQUAL_ACCOUNTS_NOT_ALLOWED', 'EQUAL_ASSETS_NOT_ALLOWED', 'INVALID_AMOUNT', 'UNMANAGED_WALLET_AS_SOURCE_NOT_ALLOWED', 'MANAGED_OPERATION_PARAMS_INVALID_SCHEMA', 'ACCOUNT_IS_NOT_EXCHANGE', 'UNSUPPORTED_TRADING_METHOD', 'ASSETS_CAN_NOT_CONVERTED')") + return value + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ConversionValidationFailure from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ConversionValidationFailure from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "reason": obj.get("reason"), + "data": obj.get("data") + }) + return _obj + + diff --git a/fireblocks_client/models/convert_assets_request.py b/fireblocks_client/models/convert_assets_request.py new file mode 100644 index 00000000..f63f4fe0 --- /dev/null +++ b/fireblocks_client/models/convert_assets_request.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Union +from typing import Optional, Set +from typing_extensions import Self + +class ConvertAssetsRequest(BaseModel): + """ + ConvertAssetsRequest + """ # noqa: E501 + src_asset: StrictStr = Field(description="Name of the source asset (must be in a currency that is supported for conversions in the selected exchange type that corresponds to your exchange ID)", alias="srcAsset") + dest_asset: StrictStr = Field(description="Name of the destination asset (must be in a currency that is supported for conversions in the selected exchange type that corresponds to your exchange ID)", alias="destAsset") + amount: Union[StrictFloat, StrictInt] = Field(description="The amount to transfer (in the currency of the source asset)") + __properties: ClassVar[List[str]] = ["srcAsset", "destAsset", "amount"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ConvertAssetsRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ConvertAssetsRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "srcAsset": obj.get("srcAsset"), + "destAsset": obj.get("destAsset"), + "amount": obj.get("amount") + }) + return _obj + + diff --git a/fireblocks_client/models/convert_assets_response.py b/fireblocks_client/models/convert_assets_response.py new file mode 100644 index 00000000..6d6eb46b --- /dev/null +++ b/fireblocks_client/models/convert_assets_response.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictBool +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class ConvertAssetsResponse(BaseModel): + """ + ConvertAssetsResponse + """ # noqa: E501 + success: StrictBool = Field(description="Indicates whether the conversion was successful") + __properties: ClassVar[List[str]] = ["success"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ConvertAssetsResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ConvertAssetsResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success") + }) + return _obj + + diff --git a/fireblocks_client/models/cosigner.py b/fireblocks_client/models/cosigner.py new file mode 100644 index 00000000..e2eb1bff --- /dev/null +++ b/fireblocks_client/models/cosigner.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class Cosigner(BaseModel): + """ + Cosigner + """ # noqa: E501 + archived: StrictBool = Field(description="Whether the cosigner is archived") + id: StrictStr = Field(description="The unique identifier of the cosigner") + name: Optional[StrictStr] = Field(default=None, description="The name of the cosigner") + __properties: ClassVar[List[str]] = ["archived", "id", "name"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of Cosigner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if name (nullable) is None + # and model_fields_set contains the field + if self.name is None and "name" in self.model_fields_set: + _dict['name'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Cosigner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "archived": obj.get("archived"), + "id": obj.get("id"), + "name": obj.get("name") + }) + return _obj + + diff --git a/fireblocks_client/models/cosigners_paginated_response.py b/fireblocks_client/models/cosigners_paginated_response.py new file mode 100644 index 00000000..1cb7042b --- /dev/null +++ b/fireblocks_client/models/cosigners_paginated_response.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.cosigner import Cosigner +from typing import Optional, Set +from typing_extensions import Self + +class CosignersPaginatedResponse(BaseModel): + """ + CosignersPaginatedResponse + """ # noqa: E501 + data: List[Cosigner] = Field(description="The data of the current page") + next: Optional[StrictStr] = Field(default=None, description="The ID of the next page") + __properties: ClassVar[List[str]] = ["data", "next"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CosignersPaginatedResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in data (list) + _items = [] + if self.data: + for _item in self.data: + if _item: + _items.append(_item.to_dict()) + _dict['data'] = _items + # set to None if next (nullable) is None + # and model_fields_set contains the field + if self.next is None and "next" in self.model_fields_set: + _dict['next'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CosignersPaginatedResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "data": [Cosigner.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "next": obj.get("next") + }) + return _obj + + diff --git a/fireblocks_client/models/create_address_request.py b/fireblocks_client/models/create_address_request.py new file mode 100644 index 00000000..fcd70180 --- /dev/null +++ b/fireblocks_client/models/create_address_request.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class CreateAddressRequest(BaseModel): + """ + CreateAddressRequest + """ # noqa: E501 + description: Optional[StrictStr] = Field(default=None, description="(Optional) Attach a description to the new address") + customer_ref_id: Optional[StrictStr] = Field(default=None, description="Optional - Sets a customer reference ID", alias="customerRefId") + __properties: ClassVar[List[str]] = ["description", "customerRefId"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CreateAddressRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CreateAddressRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "description": obj.get("description"), + "customerRefId": obj.get("customerRefId") + }) + return _obj + + diff --git a/fireblocks_client/models/create_address_response.py b/fireblocks_client/models/create_address_response.py new file mode 100644 index 00000000..06f7dc86 --- /dev/null +++ b/fireblocks_client/models/create_address_response.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class CreateAddressResponse(BaseModel): + """ + CreateAddressResponse + """ # noqa: E501 + address: Optional[StrictStr] = None + legacy_address: Optional[StrictStr] = Field(default=None, alias="legacyAddress") + enterprise_address: Optional[StrictStr] = Field(default=None, alias="enterpriseAddress") + tag: Optional[StrictStr] = None + bip44_address_index: Optional[StrictInt] = Field(default=None, alias="bip44AddressIndex") + __properties: ClassVar[List[str]] = ["address", "legacyAddress", "enterpriseAddress", "tag", "bip44AddressIndex"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CreateAddressResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CreateAddressResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "address": obj.get("address"), + "legacyAddress": obj.get("legacyAddress"), + "enterpriseAddress": obj.get("enterpriseAddress"), + "tag": obj.get("tag"), + "bip44AddressIndex": obj.get("bip44AddressIndex") + }) + return _obj + + diff --git a/fireblocks_client/models/create_api_user.py b/fireblocks_client/models/create_api_user.py new file mode 100644 index 00000000..ddbebb1b --- /dev/null +++ b/fireblocks_client/models/create_api_user.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class CreateAPIUser(BaseModel): + """ + CreateAPIUser + """ # noqa: E501 + role: StrictStr = Field(description="Users role") + name: StrictStr = Field(description="Users name") + csr_pem: StrictStr = Field(description="CSR file that is used to verify API requests. read more https://developers.fireblocks.com/docs/quickstart", alias="csrPem") + co_signer_setup_type: Optional[StrictStr] = Field(default=None, description="Different environments allow for different setup options, field is required for management/signer role", alias="coSignerSetupType") + co_signer_setup_is_first_user: Optional[StrictBool] = Field(default=None, description="pass as true if this is the first user on the coSigner machine", alias="coSignerSetupIsFirstUser") + __properties: ClassVar[List[str]] = ["role", "name", "csrPem", "coSignerSetupType", "coSignerSetupIsFirstUser"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CreateAPIUser from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CreateAPIUser from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "role": obj.get("role"), + "name": obj.get("name"), + "csrPem": obj.get("csrPem"), + "coSignerSetupType": obj.get("coSignerSetupType"), + "coSignerSetupIsFirstUser": obj.get("coSignerSetupIsFirstUser") + }) + return _obj + + diff --git a/fireblocks_client/models/create_assets_bulk_request.py b/fireblocks_client/models/create_assets_bulk_request.py new file mode 100644 index 00000000..c449c43d --- /dev/null +++ b/fireblocks_client/models/create_assets_bulk_request.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class CreateAssetsBulkRequest(BaseModel): + """ + CreateAssetsBulkRequest + """ # noqa: E501 + asset_id: Optional[StrictStr] = Field(default=None, description="The ID of the new asset", alias="assetId") + vault_account_id_from: Optional[StrictStr] = Field(default=None, description="The smallest vault account ID in the range", alias="vaultAccountIdFrom") + vault_account_id_to: Optional[StrictStr] = Field(default=None, description="The largest vault account ID in the range", alias="vaultAccountIdTo") + __properties: ClassVar[List[str]] = ["assetId", "vaultAccountIdFrom", "vaultAccountIdTo"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CreateAssetsBulkRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CreateAssetsBulkRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "assetId": obj.get("assetId"), + "vaultAccountIdFrom": obj.get("vaultAccountIdFrom"), + "vaultAccountIdTo": obj.get("vaultAccountIdTo") + }) + return _obj + + diff --git a/fireblocks_client/models/create_assets_request.py b/fireblocks_client/models/create_assets_request.py new file mode 100644 index 00000000..e80e6670 --- /dev/null +++ b/fireblocks_client/models/create_assets_request.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class CreateAssetsRequest(BaseModel): + """ + CreateAssetsRequest + """ # noqa: E501 + eos_account_name: Optional[StrictStr] = Field(default=None, description="Optional - when creating an EOS wallet, the account name. If not provided, a random name will be generated", alias="eosAccountName") + __properties: ClassVar[List[str]] = ["eosAccountName"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CreateAssetsRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CreateAssetsRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "eosAccountName": obj.get("eosAccountName") + }) + return _obj + + diff --git a/fireblocks_client/models/create_config_operation_request.py b/fireblocks_client/models/create_config_operation_request.py new file mode 100644 index 00000000..05648b7b --- /dev/null +++ b/fireblocks_client/models/create_config_operation_request.py @@ -0,0 +1,152 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +import pprint +from pydantic import BaseModel, Field, StrictStr, ValidationError, field_validator +from typing import Any, List, Optional +from fireblocks_client.models.create_conversion_config_operation_request import CreateConversionConfigOperationRequest +from fireblocks_client.models.create_disbursement_config_operation_request import CreateDisbursementConfigOperationRequest +from fireblocks_client.models.create_transfer_config_operation_request import CreateTransferConfigOperationRequest +from pydantic import StrictStr, Field +from typing import Union, List, Optional, Dict +from typing_extensions import Literal, Self + +CREATECONFIGOPERATIONREQUEST_ONE_OF_SCHEMAS = ["CreateConversionConfigOperationRequest", "CreateDisbursementConfigOperationRequest", "CreateTransferConfigOperationRequest"] + +class CreateConfigOperationRequest(BaseModel): + """ + CreateConfigOperationRequest + """ + # data type: CreateConversionConfigOperationRequest + oneof_schema_1_validator: Optional[CreateConversionConfigOperationRequest] = None + # data type: CreateTransferConfigOperationRequest + oneof_schema_2_validator: Optional[CreateTransferConfigOperationRequest] = None + # data type: CreateDisbursementConfigOperationRequest + oneof_schema_3_validator: Optional[CreateDisbursementConfigOperationRequest] = None + actual_instance: Optional[Union[CreateConversionConfigOperationRequest, CreateDisbursementConfigOperationRequest, CreateTransferConfigOperationRequest]] = None + one_of_schemas: List[str] = Field(default=Literal["CreateConversionConfigOperationRequest", "CreateDisbursementConfigOperationRequest", "CreateTransferConfigOperationRequest"]) + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_oneof(cls, v): + instance = CreateConfigOperationRequest.model_construct() + error_messages = [] + match = 0 + # validate data type: CreateConversionConfigOperationRequest + if not isinstance(v, CreateConversionConfigOperationRequest): + error_messages.append(f"Error! Input type `{type(v)}` is not `CreateConversionConfigOperationRequest`") + else: + match += 1 + # validate data type: CreateTransferConfigOperationRequest + if not isinstance(v, CreateTransferConfigOperationRequest): + error_messages.append(f"Error! Input type `{type(v)}` is not `CreateTransferConfigOperationRequest`") + else: + match += 1 + # validate data type: CreateDisbursementConfigOperationRequest + if not isinstance(v, CreateDisbursementConfigOperationRequest): + error_messages.append(f"Error! Input type `{type(v)}` is not `CreateDisbursementConfigOperationRequest`") + else: + match += 1 + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in CreateConfigOperationRequest with oneOf schemas: CreateConversionConfigOperationRequest, CreateDisbursementConfigOperationRequest, CreateTransferConfigOperationRequest. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in CreateConfigOperationRequest with oneOf schemas: CreateConversionConfigOperationRequest, CreateDisbursementConfigOperationRequest, CreateTransferConfigOperationRequest. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + match = 0 + + # deserialize data into CreateConversionConfigOperationRequest + try: + instance.actual_instance = CreateConversionConfigOperationRequest.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into CreateTransferConfigOperationRequest + try: + instance.actual_instance = CreateTransferConfigOperationRequest.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into CreateDisbursementConfigOperationRequest + try: + instance.actual_instance = CreateDisbursementConfigOperationRequest.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when deserializing the JSON string into CreateConfigOperationRequest with oneOf schemas: CreateConversionConfigOperationRequest, CreateDisbursementConfigOperationRequest, CreateTransferConfigOperationRequest. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into CreateConfigOperationRequest with oneOf schemas: CreateConversionConfigOperationRequest, CreateDisbursementConfigOperationRequest, CreateTransferConfigOperationRequest. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], CreateConversionConfigOperationRequest, CreateDisbursementConfigOperationRequest, CreateTransferConfigOperationRequest]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + # primitive type + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/fireblocks_client/models/create_connection_request.py b/fireblocks_client/models/create_connection_request.py new file mode 100644 index 00000000..5b45c97c --- /dev/null +++ b/fireblocks_client/models/create_connection_request.py @@ -0,0 +1,138 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +import pprint +from pydantic import BaseModel, Field, StrictStr, ValidationError, field_validator +from typing import Any, List, Optional +from fireblocks_client.models.create_ncw_connection_request import CreateNcwConnectionRequest +from fireblocks_client.models.create_vault_account_connection_request import CreateVaultAccountConnectionRequest +from pydantic import StrictStr, Field +from typing import Union, List, Optional, Dict +from typing_extensions import Literal, Self + +CREATECONNECTIONREQUEST_ONE_OF_SCHEMAS = ["CreateNcwConnectionRequest", "CreateVaultAccountConnectionRequest"] + +class CreateConnectionRequest(BaseModel): + """ + CreateConnectionRequest + """ + # data type: CreateVaultAccountConnectionRequest + oneof_schema_1_validator: Optional[CreateVaultAccountConnectionRequest] = None + # data type: CreateNcwConnectionRequest + oneof_schema_2_validator: Optional[CreateNcwConnectionRequest] = None + actual_instance: Optional[Union[CreateNcwConnectionRequest, CreateVaultAccountConnectionRequest]] = None + one_of_schemas: List[str] = Field(default=Literal["CreateNcwConnectionRequest", "CreateVaultAccountConnectionRequest"]) + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_oneof(cls, v): + instance = CreateConnectionRequest.model_construct() + error_messages = [] + match = 0 + # validate data type: CreateVaultAccountConnectionRequest + if not isinstance(v, CreateVaultAccountConnectionRequest): + error_messages.append(f"Error! Input type `{type(v)}` is not `CreateVaultAccountConnectionRequest`") + else: + match += 1 + # validate data type: CreateNcwConnectionRequest + if not isinstance(v, CreateNcwConnectionRequest): + error_messages.append(f"Error! Input type `{type(v)}` is not `CreateNcwConnectionRequest`") + else: + match += 1 + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in CreateConnectionRequest with oneOf schemas: CreateNcwConnectionRequest, CreateVaultAccountConnectionRequest. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in CreateConnectionRequest with oneOf schemas: CreateNcwConnectionRequest, CreateVaultAccountConnectionRequest. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + match = 0 + + # deserialize data into CreateVaultAccountConnectionRequest + try: + instance.actual_instance = CreateVaultAccountConnectionRequest.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into CreateNcwConnectionRequest + try: + instance.actual_instance = CreateNcwConnectionRequest.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when deserializing the JSON string into CreateConnectionRequest with oneOf schemas: CreateNcwConnectionRequest, CreateVaultAccountConnectionRequest. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into CreateConnectionRequest with oneOf schemas: CreateNcwConnectionRequest, CreateVaultAccountConnectionRequest. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], CreateNcwConnectionRequest, CreateVaultAccountConnectionRequest]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + # primitive type + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/fireblocks_client/models/create_connection_response.py b/fireblocks_client/models/create_connection_response.py new file mode 100644 index 00000000..2f06db7e --- /dev/null +++ b/fireblocks_client/models/create_connection_response.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List +from fireblocks_client.models.session_metadata import SessionMetadata +from typing import Optional, Set +from typing_extensions import Self + +class CreateConnectionResponse(BaseModel): + """ + CreateConnectionResponse + """ # noqa: E501 + id: StrictStr = Field(description="The ID of the Web3 connection initiated.") + session_metadata: SessionMetadata = Field(description="Metadata of the Web3 connection (provided by the DApp).", alias="sessionMetadata") + __properties: ClassVar[List[str]] = ["id", "sessionMetadata"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CreateConnectionResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of session_metadata + if self.session_metadata: + _dict['sessionMetadata'] = self.session_metadata.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CreateConnectionResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "sessionMetadata": SessionMetadata.from_dict(obj["sessionMetadata"]) if obj.get("sessionMetadata") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/create_console_user.py b/fireblocks_client/models/create_console_user.py new file mode 100644 index 00000000..4c656283 --- /dev/null +++ b/fireblocks_client/models/create_console_user.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class CreateConsoleUser(BaseModel): + """ + CreateConsoleUser + """ # noqa: E501 + first_name: StrictStr = Field(description="users firstName", alias="firstName") + last_name: StrictStr = Field(description="users lastName", alias="lastName") + role: StrictStr = Field(description="users role") + email: StrictStr = Field(description="valid email address") + __properties: ClassVar[List[str]] = ["firstName", "lastName", "role", "email"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CreateConsoleUser from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CreateConsoleUser from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "firstName": obj.get("firstName"), + "lastName": obj.get("lastName"), + "role": obj.get("role"), + "email": obj.get("email") + }) + return _obj + + diff --git a/fireblocks_client/models/create_contract_request.py b/fireblocks_client/models/create_contract_request.py new file mode 100644 index 00000000..4cf93eb6 --- /dev/null +++ b/fireblocks_client/models/create_contract_request.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class CreateContractRequest(BaseModel): + """ + CreateContractRequest + """ # noqa: E501 + name: Optional[StrictStr] = Field(default=None, description="the contract's display name") + __properties: ClassVar[List[str]] = ["name"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CreateContractRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CreateContractRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name") + }) + return _obj + + diff --git a/fireblocks_client/models/create_conversion_config_operation_request.py b/fireblocks_client/models/create_conversion_config_operation_request.py new file mode 100644 index 00000000..6a345b49 --- /dev/null +++ b/fireblocks_client/models/create_conversion_config_operation_request.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List +from fireblocks_client.models.conversion_operation_config_params import ConversionOperationConfigParams +from fireblocks_client.models.conversion_operation_type import ConversionOperationType +from typing import Optional, Set +from typing_extensions import Self + +class CreateConversionConfigOperationRequest(BaseModel): + """ + CreateConversionConfigOperationRequest + """ # noqa: E501 + type: ConversionOperationType + params: ConversionOperationConfigParams + __properties: ClassVar[List[str]] = ["type", "params"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CreateConversionConfigOperationRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of params + if self.params: + _dict['params'] = self.params.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CreateConversionConfigOperationRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "type": obj.get("type"), + "params": ConversionOperationConfigParams.from_dict(obj["params"]) if obj.get("params") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/create_disbursement_config_operation_request.py b/fireblocks_client/models/create_disbursement_config_operation_request.py new file mode 100644 index 00000000..2d06deb5 --- /dev/null +++ b/fireblocks_client/models/create_disbursement_config_operation_request.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List +from fireblocks_client.models.disbursement_operation_config_params import DisbursementOperationConfigParams +from fireblocks_client.models.disbursement_operation_type import DisbursementOperationType +from typing import Optional, Set +from typing_extensions import Self + +class CreateDisbursementConfigOperationRequest(BaseModel): + """ + CreateDisbursementConfigOperationRequest + """ # noqa: E501 + type: DisbursementOperationType + params: DisbursementOperationConfigParams + __properties: ClassVar[List[str]] = ["type", "params"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CreateDisbursementConfigOperationRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of params + if self.params: + _dict['params'] = self.params.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CreateDisbursementConfigOperationRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "type": obj.get("type"), + "params": DisbursementOperationConfigParams.from_dict(obj["params"]) if obj.get("params") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/create_internal_transfer_request.py b/fireblocks_client/models/create_internal_transfer_request.py new file mode 100644 index 00000000..42d1b499 --- /dev/null +++ b/fireblocks_client/models/create_internal_transfer_request.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.trading_account_type import TradingAccountType +from typing import Optional, Set +from typing_extensions import Self + +class CreateInternalTransferRequest(BaseModel): + """ + CreateInternalTransferRequest + """ # noqa: E501 + asset: Optional[StrictStr] = None + amount: Optional[StrictStr] = None + source_type: Optional[TradingAccountType] = Field(default=None, alias="sourceType") + dest_type: Optional[TradingAccountType] = Field(default=None, alias="destType") + __properties: ClassVar[List[str]] = ["asset", "amount", "sourceType", "destType"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CreateInternalTransferRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CreateInternalTransferRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "asset": obj.get("asset"), + "amount": obj.get("amount"), + "sourceType": obj.get("sourceType"), + "destType": obj.get("destType") + }) + return _obj + + diff --git a/fireblocks_client/models/create_internal_wallet_asset_request.py b/fireblocks_client/models/create_internal_wallet_asset_request.py new file mode 100644 index 00000000..be66afb4 --- /dev/null +++ b/fireblocks_client/models/create_internal_wallet_asset_request.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class CreateInternalWalletAssetRequest(BaseModel): + """ + CreateInternalWalletAssetRequest + """ # noqa: E501 + address: StrictStr = Field(description="The wallet's address or, for EOS wallets, the account name") + tag: Optional[StrictStr] = Field(default=None, description="for XRP wallets, the destination tag; for EOS, the memo; for the fiat providers (BLINC by BCB Group), the Bank Transfer Description") + __properties: ClassVar[List[str]] = ["address", "tag"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CreateInternalWalletAssetRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CreateInternalWalletAssetRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "address": obj.get("address"), + "tag": obj.get("tag") + }) + return _obj + + diff --git a/fireblocks_client/models/create_multiple_accounts_request.py b/fireblocks_client/models/create_multiple_accounts_request.py new file mode 100644 index 00000000..e83dd493 --- /dev/null +++ b/fireblocks_client/models/create_multiple_accounts_request.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class CreateMultipleAccountsRequest(BaseModel): + """ + CreateMultipleAccountsRequest + """ # noqa: E501 + count: Optional[StrictInt] = Field(default=None, description="Count") + asset_ids: Optional[List[StrictStr]] = Field(default=None, description="Array of asset IDs", alias="assetIds") + __properties: ClassVar[List[str]] = ["count", "assetIds"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CreateMultipleAccountsRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CreateMultipleAccountsRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "count": obj.get("count"), + "assetIds": obj.get("assetIds") + }) + return _obj + + diff --git a/fireblocks_client/models/create_ncw_connection_request.py b/fireblocks_client/models/create_ncw_connection_request.py new file mode 100644 index 00000000..5f2e5434 --- /dev/null +++ b/fireblocks_client/models/create_ncw_connection_request.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictFloat, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class CreateNcwConnectionRequest(BaseModel): + """ + CreateNcwConnectionRequest + """ # noqa: E501 + ncw_id: StrictStr = Field(description="The ID of the Non-Custodial Wallet to connect to the dApp.", alias="ncwId") + ncw_account_id: Union[StrictFloat, StrictInt] = Field(description="The NCW account ID to connect to the dApp.", alias="ncwAccountId") + fee_level: StrictStr = Field(description="The default fee level. Valid values are `MEDIUM` and `HIGH`.", alias="feeLevel") + uri: StrictStr = Field(description="The WalletConnect uri provided by the dapp.") + chain_ids: Optional[List[StrictStr]] = Field(default=None, description="The IDs of the blockchain networks used in the Web3 connection (Currently required in V1 connections only).", alias="chainIds") + __properties: ClassVar[List[str]] = ["ncwId", "ncwAccountId", "feeLevel", "uri", "chainIds"] + + @field_validator('fee_level') + def fee_level_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['MEDIUM', 'HIGH']): + raise ValueError("must be one of enum values ('MEDIUM', 'HIGH')") + return value + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CreateNcwConnectionRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CreateNcwConnectionRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "ncwId": obj.get("ncwId"), + "ncwAccountId": obj.get("ncwAccountId"), + "feeLevel": obj.get("feeLevel"), + "uri": obj.get("uri"), + "chainIds": obj.get("chainIds") + }) + return _obj + + diff --git a/fireblocks_client/models/create_network_id_request.py b/fireblocks_client/models/create_network_id_request.py new file mode 100644 index 00000000..d6480d82 --- /dev/null +++ b/fireblocks_client/models/create_network_id_request.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.network_id_routing_policy_value import NetworkIdRoutingPolicyValue +from typing import Optional, Set +from typing_extensions import Self + +class CreateNetworkIdRequest(BaseModel): + """ + CreateNetworkIdRequest + """ # noqa: E501 + name: StrictStr + routing_policy: Optional[Dict[str, NetworkIdRoutingPolicyValue]] = Field(default=None, alias="routingPolicy") + __properties: ClassVar[List[str]] = ["name", "routingPolicy"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CreateNetworkIdRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each value in routing_policy (dict) + _field_dict = {} + if self.routing_policy: + for _key in self.routing_policy: + if self.routing_policy[_key]: + _field_dict[_key] = self.routing_policy[_key].to_dict() + _dict['routingPolicy'] = _field_dict + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CreateNetworkIdRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "routingPolicy": dict( + (_k, NetworkIdRoutingPolicyValue.from_dict(_v)) + for _k, _v in obj["routingPolicy"].items() + ) + if obj.get("routingPolicy") is not None + else None + }) + return _obj + + diff --git a/fireblocks_client/models/create_payout_request.py b/fireblocks_client/models/create_payout_request.py new file mode 100644 index 00000000..40900745 --- /dev/null +++ b/fireblocks_client/models/create_payout_request.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List +from fireblocks_client.models.payment_account import PaymentAccount +from fireblocks_client.models.payout_instruction import PayoutInstruction +from typing import Optional, Set +from typing_extensions import Self + +class CreatePayoutRequest(BaseModel): + """ + CreatePayoutRequest + """ # noqa: E501 + payment_account: PaymentAccount = Field(alias="paymentAccount") + instruction_set: List[PayoutInstruction] = Field(alias="instructionSet") + __properties: ClassVar[List[str]] = ["paymentAccount", "instructionSet"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CreatePayoutRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of payment_account + if self.payment_account: + _dict['paymentAccount'] = self.payment_account.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in instruction_set (list) + _items = [] + if self.instruction_set: + for _item in self.instruction_set: + if _item: + _items.append(_item.to_dict()) + _dict['instructionSet'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CreatePayoutRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "paymentAccount": PaymentAccount.from_dict(obj["paymentAccount"]) if obj.get("paymentAccount") is not None else None, + "instructionSet": [PayoutInstruction.from_dict(_item) for _item in obj["instructionSet"]] if obj.get("instructionSet") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/create_token_request_dto.py b/fireblocks_client/models/create_token_request_dto.py new file mode 100644 index 00000000..d09919a4 --- /dev/null +++ b/fireblocks_client/models/create_token_request_dto.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.create_token_request_dto_create_params import CreateTokenRequestDtoCreateParams +from typing import Optional, Set +from typing_extensions import Self + +class CreateTokenRequestDto(BaseModel): + """ + CreateTokenRequestDto + """ # noqa: E501 + blockchain_id: Optional[StrictStr] = Field(default=None, description="The id of the blockchain the request was initiated on", alias="blockchainId") + asset_id: Optional[StrictStr] = Field(default=None, description="The base asset identifier of the blockchain you want to deploy to", alias="assetId") + vault_account_id: StrictStr = Field(description="The id of the vault account that initiated the request to issue the token", alias="vaultAccountId") + create_params: CreateTokenRequestDtoCreateParams = Field(alias="createParams") + display_name: Optional[StrictStr] = Field(default=None, alias="displayName") + __properties: ClassVar[List[str]] = ["blockchainId", "assetId", "vaultAccountId", "createParams", "displayName"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CreateTokenRequestDto from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of create_params + if self.create_params: + _dict['createParams'] = self.create_params.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CreateTokenRequestDto from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "blockchainId": obj.get("blockchainId"), + "assetId": obj.get("assetId"), + "vaultAccountId": obj.get("vaultAccountId"), + "createParams": CreateTokenRequestDtoCreateParams.from_dict(obj["createParams"]) if obj.get("createParams") is not None else None, + "displayName": obj.get("displayName") + }) + return _obj + + diff --git a/fireblocks_client/models/create_token_request_dto_create_params.py b/fireblocks_client/models/create_token_request_dto_create_params.py new file mode 100644 index 00000000..0b0a27ca --- /dev/null +++ b/fireblocks_client/models/create_token_request_dto_create_params.py @@ -0,0 +1,138 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +import pprint +from pydantic import BaseModel, Field, StrictStr, ValidationError, field_validator +from typing import Any, List, Optional +from fireblocks_client.models.evm_token_create_params_dto import EVMTokenCreateParamsDto +from fireblocks_client.models.stellar_ripple_create_params_dto import StellarRippleCreateParamsDto +from pydantic import StrictStr, Field +from typing import Union, List, Optional, Dict +from typing_extensions import Literal, Self + +CREATETOKENREQUESTDTOCREATEPARAMS_ONE_OF_SCHEMAS = ["EVMTokenCreateParamsDto", "StellarRippleCreateParamsDto"] + +class CreateTokenRequestDtoCreateParams(BaseModel): + """ + CreateTokenRequestDtoCreateParams + """ + # data type: EVMTokenCreateParamsDto + oneof_schema_1_validator: Optional[EVMTokenCreateParamsDto] = None + # data type: StellarRippleCreateParamsDto + oneof_schema_2_validator: Optional[StellarRippleCreateParamsDto] = None + actual_instance: Optional[Union[EVMTokenCreateParamsDto, StellarRippleCreateParamsDto]] = None + one_of_schemas: List[str] = Field(default=Literal["EVMTokenCreateParamsDto", "StellarRippleCreateParamsDto"]) + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_oneof(cls, v): + instance = CreateTokenRequestDtoCreateParams.model_construct() + error_messages = [] + match = 0 + # validate data type: EVMTokenCreateParamsDto + if not isinstance(v, EVMTokenCreateParamsDto): + error_messages.append(f"Error! Input type `{type(v)}` is not `EVMTokenCreateParamsDto`") + else: + match += 1 + # validate data type: StellarRippleCreateParamsDto + if not isinstance(v, StellarRippleCreateParamsDto): + error_messages.append(f"Error! Input type `{type(v)}` is not `StellarRippleCreateParamsDto`") + else: + match += 1 + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in CreateTokenRequestDtoCreateParams with oneOf schemas: EVMTokenCreateParamsDto, StellarRippleCreateParamsDto. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in CreateTokenRequestDtoCreateParams with oneOf schemas: EVMTokenCreateParamsDto, StellarRippleCreateParamsDto. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + match = 0 + + # deserialize data into EVMTokenCreateParamsDto + try: + instance.actual_instance = EVMTokenCreateParamsDto.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into StellarRippleCreateParamsDto + try: + instance.actual_instance = StellarRippleCreateParamsDto.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when deserializing the JSON string into CreateTokenRequestDtoCreateParams with oneOf schemas: EVMTokenCreateParamsDto, StellarRippleCreateParamsDto. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into CreateTokenRequestDtoCreateParams with oneOf schemas: EVMTokenCreateParamsDto, StellarRippleCreateParamsDto. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], EVMTokenCreateParamsDto, StellarRippleCreateParamsDto]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + # primitive type + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/fireblocks_client/models/create_transaction_response.py b/fireblocks_client/models/create_transaction_response.py new file mode 100644 index 00000000..2f3da1e6 --- /dev/null +++ b/fireblocks_client/models/create_transaction_response.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.system_message_info import SystemMessageInfo +from typing import Optional, Set +from typing_extensions import Self + +class CreateTransactionResponse(BaseModel): + """ + CreateTransactionResponse + """ # noqa: E501 + id: Optional[StrictStr] = Field(default=None, description="The ID of the transaction.") + status: Optional[StrictStr] = Field(default=None, description="The primary status of the transaction. For details, see [Primary transaction statuses.] (https://developers.fireblocks.com/reference/primary-transaction-statuses)") + system_messages: Optional[SystemMessageInfo] = Field(default=None, alias="systemMessages") + __properties: ClassVar[List[str]] = ["id", "status", "systemMessages"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CreateTransactionResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of system_messages + if self.system_messages: + _dict['systemMessages'] = self.system_messages.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CreateTransactionResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "status": obj.get("status"), + "systemMessages": SystemMessageInfo.from_dict(obj["systemMessages"]) if obj.get("systemMessages") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/create_transfer_config_operation_request.py b/fireblocks_client/models/create_transfer_config_operation_request.py new file mode 100644 index 00000000..e127135f --- /dev/null +++ b/fireblocks_client/models/create_transfer_config_operation_request.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List +from fireblocks_client.models.transfer_operation_config_params import TransferOperationConfigParams +from fireblocks_client.models.transfer_operation_type import TransferOperationType +from typing import Optional, Set +from typing_extensions import Self + +class CreateTransferConfigOperationRequest(BaseModel): + """ + CreateTransferConfigOperationRequest + """ # noqa: E501 + type: TransferOperationType + params: TransferOperationConfigParams + __properties: ClassVar[List[str]] = ["type", "params"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CreateTransferConfigOperationRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of params + if self.params: + _dict['params'] = self.params.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CreateTransferConfigOperationRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "type": obj.get("type"), + "params": TransferOperationConfigParams.from_dict(obj["params"]) if obj.get("params") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/create_user_group_response.py b/fireblocks_client/models/create_user_group_response.py new file mode 100644 index 00000000..881b02ed --- /dev/null +++ b/fireblocks_client/models/create_user_group_response.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class CreateUserGroupResponse(BaseModel): + """ + CreateUserGroupResponse + """ # noqa: E501 + id: Optional[StrictStr] = None + name: Optional[StrictStr] = None + member_ids: Optional[List[StrictStr]] = Field(default=None, alias="memberIds") + status: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["id", "name", "memberIds", "status"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CreateUserGroupResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CreateUserGroupResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "name": obj.get("name"), + "memberIds": obj.get("memberIds"), + "status": obj.get("status") + }) + return _obj + + diff --git a/fireblocks_client/models/create_vault_account_connection_request.py b/fireblocks_client/models/create_vault_account_connection_request.py new file mode 100644 index 00000000..e417f46e --- /dev/null +++ b/fireblocks_client/models/create_vault_account_connection_request.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictFloat, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class CreateVaultAccountConnectionRequest(BaseModel): + """ + CreateVaultAccountConnectionRequest + """ # noqa: E501 + vault_account_id: Union[StrictFloat, StrictInt] = Field(description="The ID of the vault to connect to the dApp.", alias="vaultAccountId") + fee_level: StrictStr = Field(description="The default fee level. Valid values are `MEDIUM` and `HIGH`.", alias="feeLevel") + uri: StrictStr = Field(description="The WalletConnect uri provided by the dapp.") + chain_ids: Optional[List[StrictStr]] = Field(default=None, description="The IDs of the blockchain networks used in the Web3 connection (Currently required in V1 connections only).", alias="chainIds") + __properties: ClassVar[List[str]] = ["vaultAccountId", "feeLevel", "uri", "chainIds"] + + @field_validator('fee_level') + def fee_level_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['MEDIUM', 'HIGH']): + raise ValueError("must be one of enum values ('MEDIUM', 'HIGH')") + return value + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CreateVaultAccountConnectionRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CreateVaultAccountConnectionRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "vaultAccountId": obj.get("vaultAccountId"), + "feeLevel": obj.get("feeLevel"), + "uri": obj.get("uri"), + "chainIds": obj.get("chainIds") + }) + return _obj + + diff --git a/fireblocks_client/models/create_vault_account_request.py b/fireblocks_client/models/create_vault_account_request.py new file mode 100644 index 00000000..e6751ecb --- /dev/null +++ b/fireblocks_client/models/create_vault_account_request.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class CreateVaultAccountRequest(BaseModel): + """ + CreateVaultAccountRequest + """ # noqa: E501 + name: Optional[StrictStr] = Field(default=None, description="Account Name") + hidden_on_ui: Optional[StrictBool] = Field(default=None, description="Optional - if true, the created account and all related transactions will not be shown on Fireblocks console", alias="hiddenOnUI") + customer_ref_id: Optional[StrictStr] = Field(default=None, description="Optional - Sets a customer reference ID", alias="customerRefId") + auto_fuel: Optional[StrictBool] = Field(default=None, description="Optional - Sets the autoFuel property of the vault account", alias="autoFuel") + __properties: ClassVar[List[str]] = ["name", "hiddenOnUI", "customerRefId", "autoFuel"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CreateVaultAccountRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CreateVaultAccountRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "hiddenOnUI": obj.get("hiddenOnUI"), + "customerRefId": obj.get("customerRefId"), + "autoFuel": obj.get("autoFuel") + }) + return _obj + + diff --git a/fireblocks_client/models/create_vault_asset_response.py b/fireblocks_client/models/create_vault_asset_response.py new file mode 100644 index 00000000..85fdceb1 --- /dev/null +++ b/fireblocks_client/models/create_vault_asset_response.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class CreateVaultAssetResponse(BaseModel): + """ + CreateVaultAssetResponse + """ # noqa: E501 + id: Optional[StrictStr] = None + address: Optional[StrictStr] = None + legacy_address: Optional[StrictStr] = Field(default=None, alias="legacyAddress") + enterprise_address: Optional[StrictStr] = Field(default=None, alias="enterpriseAddress") + tag: Optional[StrictStr] = None + eos_account_name: Optional[StrictStr] = Field(default=None, alias="eosAccountName") + status: Optional[StrictStr] = None + activation_tx_id: Optional[StrictStr] = Field(default=None, alias="activationTxId") + __properties: ClassVar[List[str]] = ["id", "address", "legacyAddress", "enterpriseAddress", "tag", "eosAccountName", "status", "activationTxId"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CreateVaultAssetResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CreateVaultAssetResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "address": obj.get("address"), + "legacyAddress": obj.get("legacyAddress"), + "enterpriseAddress": obj.get("enterpriseAddress"), + "tag": obj.get("tag"), + "eosAccountName": obj.get("eosAccountName"), + "status": obj.get("status"), + "activationTxId": obj.get("activationTxId") + }) + return _obj + + diff --git a/fireblocks_client/models/create_wallet_request.py b/fireblocks_client/models/create_wallet_request.py new file mode 100644 index 00000000..92019286 --- /dev/null +++ b/fireblocks_client/models/create_wallet_request.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class CreateWalletRequest(BaseModel): + """ + CreateWalletRequest + """ # noqa: E501 + name: Optional[StrictStr] = Field(default=None, description="the wallet's display name") + customer_ref_id: Optional[StrictStr] = Field(default=None, description="Optional - Sets a customer reference ID", alias="customerRefId") + __properties: ClassVar[List[str]] = ["name", "customerRefId"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CreateWalletRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CreateWalletRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "customerRefId": obj.get("customerRefId") + }) + return _obj + + diff --git a/fireblocks_client/models/create_workflow_execution_request_params_inner.py b/fireblocks_client/models/create_workflow_execution_request_params_inner.py new file mode 100644 index 00000000..4a8c0486 --- /dev/null +++ b/fireblocks_client/models/create_workflow_execution_request_params_inner.py @@ -0,0 +1,150 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +from inspect import getfullargspec +import json +import pprint +import re # noqa: F401 +from pydantic import BaseModel, Field, StrictStr, ValidationError, field_validator +from typing import Optional +from fireblocks_client.models.conversion_operation_execution_params import ConversionOperationExecutionParams +from fireblocks_client.models.disbursement_operation_execution_params import DisbursementOperationExecutionParams +from fireblocks_client.models.transfer_operation_execution_params import TransferOperationExecutionParams +from typing import Union, Any, List, TYPE_CHECKING, Optional, Dict +from typing_extensions import Literal, Self +from pydantic import Field + +CREATEWORKFLOWEXECUTIONREQUESTPARAMSINNER_ANY_OF_SCHEMAS = ["ConversionOperationExecutionParams", "DisbursementOperationExecutionParams", "TransferOperationExecutionParams"] + +class CreateWorkflowExecutionRequestParamsInner(BaseModel): + """ + CreateWorkflowExecutionRequestParamsInner + """ + + # data type: ConversionOperationExecutionParams + anyof_schema_1_validator: Optional[ConversionOperationExecutionParams] = None + # data type: TransferOperationExecutionParams + anyof_schema_2_validator: Optional[TransferOperationExecutionParams] = None + # data type: DisbursementOperationExecutionParams + anyof_schema_3_validator: Optional[DisbursementOperationExecutionParams] = None + if TYPE_CHECKING: + actual_instance: Optional[Union[ConversionOperationExecutionParams, DisbursementOperationExecutionParams, TransferOperationExecutionParams]] = None + else: + actual_instance: Any = None + any_of_schemas: List[str] = Field(default=Literal["ConversionOperationExecutionParams", "DisbursementOperationExecutionParams", "TransferOperationExecutionParams"]) + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_anyof(cls, v): + instance = CreateWorkflowExecutionRequestParamsInner.model_construct() + error_messages = [] + # validate data type: ConversionOperationExecutionParams + if not isinstance(v, ConversionOperationExecutionParams): + error_messages.append(f"Error! Input type `{type(v)}` is not `ConversionOperationExecutionParams`") + else: + return v + + # validate data type: TransferOperationExecutionParams + if not isinstance(v, TransferOperationExecutionParams): + error_messages.append(f"Error! Input type `{type(v)}` is not `TransferOperationExecutionParams`") + else: + return v + + # validate data type: DisbursementOperationExecutionParams + if not isinstance(v, DisbursementOperationExecutionParams): + error_messages.append(f"Error! Input type `{type(v)}` is not `DisbursementOperationExecutionParams`") + else: + return v + + if error_messages: + # no match + raise ValueError("No match found when setting the actual_instance in CreateWorkflowExecutionRequestParamsInner with anyOf schemas: ConversionOperationExecutionParams, DisbursementOperationExecutionParams, TransferOperationExecutionParams. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Dict[str, Any]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + # anyof_schema_1_validator: Optional[ConversionOperationExecutionParams] = None + try: + instance.actual_instance = ConversionOperationExecutionParams.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # anyof_schema_2_validator: Optional[TransferOperationExecutionParams] = None + try: + instance.actual_instance = TransferOperationExecutionParams.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # anyof_schema_3_validator: Optional[DisbursementOperationExecutionParams] = None + try: + instance.actual_instance = DisbursementOperationExecutionParams.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if error_messages: + # no match + raise ValueError("No match found when deserializing the JSON string into CreateWorkflowExecutionRequestParamsInner with anyOf schemas: ConversionOperationExecutionParams, DisbursementOperationExecutionParams, TransferOperationExecutionParams. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], ConversionOperationExecutionParams, DisbursementOperationExecutionParams, TransferOperationExecutionParams]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/fireblocks_client/models/custom_routing_dest.py b/fireblocks_client/models/custom_routing_dest.py new file mode 100644 index 00000000..f8263df9 --- /dev/null +++ b/fireblocks_client/models/custom_routing_dest.py @@ -0,0 +1,106 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, field_validator +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class CustomRoutingDest(BaseModel): + """ + CustomRoutingDest + """ # noqa: E501 + scheme: StrictStr = Field(description="The network routing logic.") + dst_type: StrictStr = Field(description="The account the funds are being sent to.", alias="dstType") + dst_id: StrictStr = Field(description="The ID of the account the funds are being sent to.", alias="dstId") + __properties: ClassVar[List[str]] = ["scheme", "dstType", "dstId"] + + @field_validator('scheme') + def scheme_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['CUSTOM']): + raise ValueError("must be one of enum values ('CUSTOM')") + return value + + @field_validator('dst_type') + def dst_type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['FIAT_ACCOUNT', 'VAULT', 'EXCHANGE']): + raise ValueError("must be one of enum values ('FIAT_ACCOUNT', 'VAULT', 'EXCHANGE')") + return value + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CustomRoutingDest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CustomRoutingDest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "scheme": obj.get("scheme"), + "dstType": obj.get("dstType"), + "dstId": obj.get("dstId") + }) + return _obj + + diff --git a/fireblocks_client/models/default_network_routing_dest.py b/fireblocks_client/models/default_network_routing_dest.py new file mode 100644 index 00000000..4c9d5e97 --- /dev/null +++ b/fireblocks_client/models/default_network_routing_dest.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, field_validator +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class DefaultNetworkRoutingDest(BaseModel): + """ + DefaultNetworkRoutingDest + """ # noqa: E501 + scheme: StrictStr = Field(description="The network routing logic.") + __properties: ClassVar[List[str]] = ["scheme"] + + @field_validator('scheme') + def scheme_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['DEFAULT']): + raise ValueError("must be one of enum values ('DEFAULT')") + return value + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DefaultNetworkRoutingDest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DefaultNetworkRoutingDest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "scheme": obj.get("scheme") + }) + return _obj + + diff --git a/fireblocks_client/models/delegation_dto.py b/fireblocks_client/models/delegation_dto.py new file mode 100644 index 00000000..54cee94c --- /dev/null +++ b/fireblocks_client/models/delegation_dto.py @@ -0,0 +1,130 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.related_transaction_dto import RelatedTransactionDto +from fireblocks_client.models.solana_blockchain_data_dto import SolanaBlockchainDataDto +from typing import Optional, Set +from typing_extensions import Self + +class DelegationDto(BaseModel): + """ + DelegationDto + """ # noqa: E501 + id: StrictStr = Field(description="The unique identifier of the staking position") + vault_account_id: StrictStr = Field(description="The source vault account to stake from", alias="vaultAccountId") + validator_name: StrictStr = Field(description="The destination validator address name", alias="validatorName") + provider_name: StrictStr = Field(description="The destination validator provider name", alias="providerName") + chain_descriptor: StrictStr = Field(description="The protocol identifier (e.g. \"ETH\"/ \"SOL\") to use", alias="chainDescriptor") + amount: StrictStr = Field(description="Amount of tokens to stake, measured in the staked asset unit.") + rewards_amount: StrictStr = Field(description="The amount staked in the position, measured in the staked asset unit.", alias="rewardsAmount") + date_created: StrictStr = Field(description="When was the request made (ISO Date).", alias="dateCreated") + status: StrictStr = Field(description="The current status.") + related_transactions: List[RelatedTransactionDto] = Field(description="An array of transaction objects related to this position. Each object includes a 'txId' representing the transaction ID and a 'completed' boolean indicating if the transaction was completed.", alias="relatedTransactions") + validator_address: StrictStr = Field(description="The destination address of the staking transaction.", alias="validatorAddress") + provider_id: StrictStr = Field(description="The unique identifier of the staking provider", alias="providerId") + available_actions: List[StrictStr] = Field(description="An array of available actions that can be performed. for example, actions like \"unstake\" or \"withdraw\".", alias="availableActions") + in_progress: StrictBool = Field(description="Indicates whether there is an ongoing action for this position (true if ongoing, false if not).", alias="inProgress") + in_progress_tx_id: Optional[StrictStr] = Field(default=None, description="The transaction ID of the ongoing request", alias="inProgressTxId") + blockchain_position_info: SolanaBlockchainDataDto = Field(description="Additional fields per blockchain - can be empty or missing if not initialized or no additional info exists. The type depends on the chainDescriptor value. For Solana (SOL), stake account address. For Ethereum (ETH), an empty object is returned as no specific data is available.", alias="blockchainPositionInfo") + __properties: ClassVar[List[str]] = ["id", "vaultAccountId", "validatorName", "providerName", "chainDescriptor", "amount", "rewardsAmount", "dateCreated", "status", "relatedTransactions", "validatorAddress", "providerId", "availableActions", "inProgress", "inProgressTxId", "blockchainPositionInfo"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DelegationDto from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in related_transactions (list) + _items = [] + if self.related_transactions: + for _item in self.related_transactions: + if _item: + _items.append(_item.to_dict()) + _dict['relatedTransactions'] = _items + # override the default output from pydantic by calling `to_dict()` of blockchain_position_info + if self.blockchain_position_info: + _dict['blockchainPositionInfo'] = self.blockchain_position_info.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DelegationDto from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "vaultAccountId": obj.get("vaultAccountId"), + "validatorName": obj.get("validatorName"), + "providerName": obj.get("providerName"), + "chainDescriptor": obj.get("chainDescriptor"), + "amount": obj.get("amount"), + "rewardsAmount": obj.get("rewardsAmount"), + "dateCreated": obj.get("dateCreated"), + "status": obj.get("status"), + "relatedTransactions": [RelatedTransactionDto.from_dict(_item) for _item in obj["relatedTransactions"]] if obj.get("relatedTransactions") is not None else None, + "validatorAddress": obj.get("validatorAddress"), + "providerId": obj.get("providerId"), + "availableActions": obj.get("availableActions"), + "inProgress": obj.get("inProgress"), + "inProgressTxId": obj.get("inProgressTxId"), + "blockchainPositionInfo": SolanaBlockchainDataDto.from_dict(obj["blockchainPositionInfo"]) if obj.get("blockchainPositionInfo") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/delegation_summary_dto.py b/fireblocks_client/models/delegation_summary_dto.py new file mode 100644 index 00000000..e3963c3e --- /dev/null +++ b/fireblocks_client/models/delegation_summary_dto.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List +from fireblocks_client.models.amount_and_chain_descriptor import AmountAndChainDescriptor +from typing import Optional, Set +from typing_extensions import Self + +class DelegationSummaryDto(BaseModel): + """ + DelegationSummaryDto + """ # noqa: E501 + active: List[AmountAndChainDescriptor] = Field(description="An array of objects containing chain descriptors and associated amounts, representing active positions.") + inactive: List[AmountAndChainDescriptor] = Field(description="An array of objects containing chain descriptors and associated amounts, representing inactive positions.") + rewards_amount: List[AmountAndChainDescriptor] = Field(description="An array of objects containing chain descriptors and associated amounts, representing rewards positions.", alias="rewardsAmount") + total_staked: List[AmountAndChainDescriptor] = Field(description="An array of objects with chain descriptors and total staked amounts, representing the combined staked totals of active and inactive positions.", alias="totalStaked") + __properties: ClassVar[List[str]] = ["active", "inactive", "rewardsAmount", "totalStaked"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DelegationSummaryDto from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in active (list) + _items = [] + if self.active: + for _item in self.active: + if _item: + _items.append(_item.to_dict()) + _dict['active'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in inactive (list) + _items = [] + if self.inactive: + for _item in self.inactive: + if _item: + _items.append(_item.to_dict()) + _dict['inactive'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in rewards_amount (list) + _items = [] + if self.rewards_amount: + for _item in self.rewards_amount: + if _item: + _items.append(_item.to_dict()) + _dict['rewardsAmount'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in total_staked (list) + _items = [] + if self.total_staked: + for _item in self.total_staked: + if _item: + _items.append(_item.to_dict()) + _dict['totalStaked'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DelegationSummaryDto from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "active": [AmountAndChainDescriptor.from_dict(_item) for _item in obj["active"]] if obj.get("active") is not None else None, + "inactive": [AmountAndChainDescriptor.from_dict(_item) for _item in obj["inactive"]] if obj.get("inactive") is not None else None, + "rewardsAmount": [AmountAndChainDescriptor.from_dict(_item) for _item in obj["rewardsAmount"]] if obj.get("rewardsAmount") is not None else None, + "totalStaked": [AmountAndChainDescriptor.from_dict(_item) for _item in obj["totalStaked"]] if obj.get("totalStaked") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/delete_network_connection_response.py b/fireblocks_client/models/delete_network_connection_response.py new file mode 100644 index 00000000..d8d26ab5 --- /dev/null +++ b/fireblocks_client/models/delete_network_connection_response.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictBool +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class DeleteNetworkConnectionResponse(BaseModel): + """ + DeleteNetworkConnectionResponse + """ # noqa: E501 + success: StrictBool + __properties: ClassVar[List[str]] = ["success"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DeleteNetworkConnectionResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DeleteNetworkConnectionResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success") + }) + return _obj + + diff --git a/fireblocks_client/models/delete_network_id_response.py b/fireblocks_client/models/delete_network_id_response.py new file mode 100644 index 00000000..8a542386 --- /dev/null +++ b/fireblocks_client/models/delete_network_id_response.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictBool +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class DeleteNetworkIdResponse(BaseModel): + """ + DeleteNetworkIdResponse + """ # noqa: E501 + success: StrictBool + __properties: ClassVar[List[str]] = ["success"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DeleteNetworkIdResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DeleteNetworkIdResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success") + }) + return _obj + + diff --git a/fireblocks_client/models/deployed_contract_response_dto.py b/fireblocks_client/models/deployed_contract_response_dto.py new file mode 100644 index 00000000..90d73c76 --- /dev/null +++ b/fireblocks_client/models/deployed_contract_response_dto.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DeployedContractResponseDto(BaseModel): + """ + DeployedContractResponseDto + """ # noqa: E501 + id: StrictStr = Field(description="The deployed contract data identifier") + contract_address: StrictStr = Field(description="The contract's onchain address", alias="contractAddress") + contract_template_id: StrictStr = Field(description="The contract template identifier", alias="contractTemplateId") + vault_account_id: Optional[StrictStr] = Field(default=None, description="The vault account id this contract was deploy from", alias="vaultAccountId") + blockchain_id: StrictStr = Field(alias="blockchainId") + __properties: ClassVar[List[str]] = ["id", "contractAddress", "contractTemplateId", "vaultAccountId", "blockchainId"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DeployedContractResponseDto from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DeployedContractResponseDto from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "contractAddress": obj.get("contractAddress"), + "contractTemplateId": obj.get("contractTemplateId"), + "vaultAccountId": obj.get("vaultAccountId"), + "blockchainId": obj.get("blockchainId") + }) + return _obj + + diff --git a/fireblocks_client/models/deployed_contracts_paginated_response.py b/fireblocks_client/models/deployed_contracts_paginated_response.py new file mode 100644 index 00000000..b8dd1f9b --- /dev/null +++ b/fireblocks_client/models/deployed_contracts_paginated_response.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.lean_deployed_contract_response_dto import LeanDeployedContractResponseDto +from typing import Optional, Set +from typing_extensions import Self + +class DeployedContractsPaginatedResponse(BaseModel): + """ + DeployedContractsPaginatedResponse + """ # noqa: E501 + data: List[LeanDeployedContractResponseDto] = Field(description="The data of the current page") + next: Optional[StrictStr] = Field(default=None, description="The ID of the next page") + __properties: ClassVar[List[str]] = ["data", "next"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DeployedContractsPaginatedResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in data (list) + _items = [] + if self.data: + for _item in self.data: + if _item: + _items.append(_item.to_dict()) + _dict['data'] = _items + # set to None if next (nullable) is None + # and model_fields_set contains the field + if self.next is None and "next" in self.model_fields_set: + _dict['next'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DeployedContractsPaginatedResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "data": [LeanDeployedContractResponseDto.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "next": obj.get("next") + }) + return _obj + + diff --git a/fireblocks_client/models/deposit_funds_from_linked_dda_response.py b/fireblocks_client/models/deposit_funds_from_linked_dda_response.py new file mode 100644 index 00000000..6b3d9945 --- /dev/null +++ b/fireblocks_client/models/deposit_funds_from_linked_dda_response.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictBool +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class DepositFundsFromLinkedDDAResponse(BaseModel): + """ + DepositFundsFromLinkedDDAResponse + """ # noqa: E501 + success: StrictBool = Field(description="Indicates whether the funds were successfully deposited from the linked DDA") + __properties: ClassVar[List[str]] = ["success"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DepositFundsFromLinkedDDAResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DepositFundsFromLinkedDDAResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success") + }) + return _obj + + diff --git a/fireblocks_client/models/destination.py b/fireblocks_client/models/destination.py new file mode 100644 index 00000000..c53a2595 --- /dev/null +++ b/fireblocks_client/models/destination.py @@ -0,0 +1,138 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +import pprint +from pydantic import BaseModel, Field, StrictStr, ValidationError, field_validator +from typing import Any, List, Optional +from fireblocks_client.models.account import Account +from fireblocks_client.models.one_time_address_account import OneTimeAddressAccount +from pydantic import StrictStr, Field +from typing import Union, List, Optional, Dict +from typing_extensions import Literal, Self + +DESTINATION_ONE_OF_SCHEMAS = ["Account", "OneTimeAddressAccount"] + +class Destination(BaseModel): + """ + Destination + """ + # data type: Account + oneof_schema_1_validator: Optional[Account] = None + # data type: OneTimeAddressAccount + oneof_schema_2_validator: Optional[OneTimeAddressAccount] = None + actual_instance: Optional[Union[Account, OneTimeAddressAccount]] = None + one_of_schemas: List[str] = Field(default=Literal["Account", "OneTimeAddressAccount"]) + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_oneof(cls, v): + instance = Destination.model_construct() + error_messages = [] + match = 0 + # validate data type: Account + if not isinstance(v, Account): + error_messages.append(f"Error! Input type `{type(v)}` is not `Account`") + else: + match += 1 + # validate data type: OneTimeAddressAccount + if not isinstance(v, OneTimeAddressAccount): + error_messages.append(f"Error! Input type `{type(v)}` is not `OneTimeAddressAccount`") + else: + match += 1 + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in Destination with oneOf schemas: Account, OneTimeAddressAccount. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in Destination with oneOf schemas: Account, OneTimeAddressAccount. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + match = 0 + + # deserialize data into Account + try: + instance.actual_instance = Account.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into OneTimeAddressAccount + try: + instance.actual_instance = OneTimeAddressAccount.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when deserializing the JSON string into Destination with oneOf schemas: Account, OneTimeAddressAccount. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into Destination with oneOf schemas: Account, OneTimeAddressAccount. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], Account, OneTimeAddressAccount]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + # primitive type + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/fireblocks_client/models/destination_transfer_peer_path.py b/fireblocks_client/models/destination_transfer_peer_path.py new file mode 100644 index 00000000..fccd258e --- /dev/null +++ b/fireblocks_client/models/destination_transfer_peer_path.py @@ -0,0 +1,104 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.one_time_address import OneTimeAddress +from fireblocks_client.models.transfer_peer_path_sub_type import TransferPeerPathSubType +from fireblocks_client.models.transfer_peer_path_type import TransferPeerPathType +from typing import Optional, Set +from typing_extensions import Self + +class DestinationTransferPeerPath(BaseModel): + """ + The destination of the transaction. + """ # noqa: E501 + type: TransferPeerPathType + sub_type: Optional[TransferPeerPathSubType] = Field(default=None, alias="subType") + id: Optional[StrictStr] = None + name: Optional[StrictStr] = None + wallet_id: Optional[StrictStr] = Field(default=None, alias="walletId") + one_time_address: Optional[OneTimeAddress] = Field(default=None, alias="oneTimeAddress") + __properties: ClassVar[List[str]] = ["type", "subType", "id", "name", "walletId", "oneTimeAddress"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DestinationTransferPeerPath from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of one_time_address + if self.one_time_address: + _dict['oneTimeAddress'] = self.one_time_address.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DestinationTransferPeerPath from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "type": obj.get("type"), + "subType": obj.get("subType"), + "id": obj.get("id"), + "name": obj.get("name"), + "walletId": obj.get("walletId"), + "oneTimeAddress": OneTimeAddress.from_dict(obj["oneTimeAddress"]) if obj.get("oneTimeAddress") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/destination_transfer_peer_path_response.py b/fireblocks_client/models/destination_transfer_peer_path_response.py new file mode 100644 index 00000000..d0e27a66 --- /dev/null +++ b/fireblocks_client/models/destination_transfer_peer_path_response.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.transfer_peer_path_type import TransferPeerPathType +from typing import Optional, Set +from typing_extensions import Self + +class DestinationTransferPeerPathResponse(BaseModel): + """ + Destination of the transaction. **Note:** In case the transaction is sent to multiple destinations, the `destinations` parameter is be used instead of this. + """ # noqa: E501 + type: TransferPeerPathType + sub_type: Optional[StrictStr] = Field(default=None, description="In case the type is set to `EXCHANGE_ACCOUNT` or `FIAT_ACCOUNT`, the specific exchange vendor name or fiat vendor name.In case the type is set to `INTERNAL_WALLET` or `EXTERNAL_WALLET`, the subType is set to `Internal` or `External`.", alias="subType") + id: Optional[StrictStr] = Field(default=None, description="The ID of the peer. You can retrieve the ID of each venue object using the endpoints for [listing vault accounts](https://developers.fireblocks.com/reference/get_vault-accounts-paged), [listing exchange account](https://developers.fireblocks.com/reference/get_exchange-accounts), [listing fiat accounts](https://developers.fireblocks.com/reference/get_fiat-accounts), [listing internal wallets](https://developers.fireblocks.com/reference/get_internal-wallets), [listing external wallets](https://developers.fireblocks.com/reference/get_external-wallets), [listing network connections](https://developers.fireblocks.com/reference/get_network-connections). For the other types, this parameter is not needed.") + name: Optional[StrictStr] = Field(default=None, description="The name of the peer.") + wallet_id: Optional[StrictStr] = Field(default=None, alias="walletId") + __properties: ClassVar[List[str]] = ["type", "subType", "id", "name", "walletId"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DestinationTransferPeerPathResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if id (nullable) is None + # and model_fields_set contains the field + if self.id is None and "id" in self.model_fields_set: + _dict['id'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DestinationTransferPeerPathResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "type": obj.get("type"), + "subType": obj.get("subType"), + "id": obj.get("id"), + "name": obj.get("name"), + "walletId": obj.get("walletId") + }) + return _obj + + diff --git a/fireblocks_client/models/disbursement_amount_instruction.py b/fireblocks_client/models/disbursement_amount_instruction.py new file mode 100644 index 00000000..11450931 --- /dev/null +++ b/fireblocks_client/models/disbursement_amount_instruction.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List +from fireblocks_client.models.destination import Destination +from typing import Optional, Set +from typing_extensions import Self + +class DisbursementAmountInstruction(BaseModel): + """ + DisbursementAmountInstruction + """ # noqa: E501 + payee_account: Destination = Field(alias="payeeAccount") + asset_id: StrictStr = Field(alias="assetId") + amount: StrictStr + __properties: ClassVar[List[str]] = ["payeeAccount", "assetId", "amount"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DisbursementAmountInstruction from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of payee_account + if self.payee_account: + _dict['payeeAccount'] = self.payee_account.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DisbursementAmountInstruction from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "payeeAccount": Destination.from_dict(obj["payeeAccount"]) if obj.get("payeeAccount") is not None else None, + "assetId": obj.get("assetId"), + "amount": obj.get("amount") + }) + return _obj + + diff --git a/fireblocks_client/models/disbursement_config_operation.py b/fireblocks_client/models/disbursement_config_operation.py new file mode 100644 index 00000000..61e9b1f3 --- /dev/null +++ b/fireblocks_client/models/disbursement_config_operation.py @@ -0,0 +1,106 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.config_operation_status import ConfigOperationStatus +from fireblocks_client.models.disbursement_operation_config_params import DisbursementOperationConfigParams +from fireblocks_client.models.disbursement_operation_type import DisbursementOperationType +from fireblocks_client.models.disbursement_validation_failure import DisbursementValidationFailure +from typing import Optional, Set +from typing_extensions import Self + +class DisbursementConfigOperation(BaseModel): + """ + DisbursementConfigOperation + """ # noqa: E501 + operation_id: StrictStr = Field(alias="operationId") + type: DisbursementOperationType + params: DisbursementOperationConfigParams + status: ConfigOperationStatus + validation_failure: Optional[DisbursementValidationFailure] = Field(default=None, alias="validationFailure") + __properties: ClassVar[List[str]] = ["operationId", "type", "params", "status", "validationFailure"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DisbursementConfigOperation from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of params + if self.params: + _dict['params'] = self.params.to_dict() + # override the default output from pydantic by calling `to_dict()` of validation_failure + if self.validation_failure: + _dict['validationFailure'] = self.validation_failure.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DisbursementConfigOperation from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "operationId": obj.get("operationId"), + "type": obj.get("type"), + "params": DisbursementOperationConfigParams.from_dict(obj["params"]) if obj.get("params") is not None else None, + "status": obj.get("status"), + "validationFailure": DisbursementValidationFailure.from_dict(obj["validationFailure"]) if obj.get("validationFailure") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/disbursement_instruction.py b/fireblocks_client/models/disbursement_instruction.py new file mode 100644 index 00000000..96b8a172 --- /dev/null +++ b/fireblocks_client/models/disbursement_instruction.py @@ -0,0 +1,138 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +import pprint +from pydantic import BaseModel, Field, StrictStr, ValidationError, field_validator +from typing import Any, List, Optional +from fireblocks_client.models.disbursement_amount_instruction import DisbursementAmountInstruction +from fireblocks_client.models.disbursement_percentage_instruction import DisbursementPercentageInstruction +from pydantic import StrictStr, Field +from typing import Union, List, Optional, Dict +from typing_extensions import Literal, Self + +DISBURSEMENTINSTRUCTION_ONE_OF_SCHEMAS = ["DisbursementAmountInstruction", "DisbursementPercentageInstruction"] + +class DisbursementInstruction(BaseModel): + """ + DisbursementInstruction + """ + # data type: DisbursementAmountInstruction + oneof_schema_1_validator: Optional[DisbursementAmountInstruction] = None + # data type: DisbursementPercentageInstruction + oneof_schema_2_validator: Optional[DisbursementPercentageInstruction] = None + actual_instance: Optional[Union[DisbursementAmountInstruction, DisbursementPercentageInstruction]] = None + one_of_schemas: List[str] = Field(default=Literal["DisbursementAmountInstruction", "DisbursementPercentageInstruction"]) + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_oneof(cls, v): + instance = DisbursementInstruction.model_construct() + error_messages = [] + match = 0 + # validate data type: DisbursementAmountInstruction + if not isinstance(v, DisbursementAmountInstruction): + error_messages.append(f"Error! Input type `{type(v)}` is not `DisbursementAmountInstruction`") + else: + match += 1 + # validate data type: DisbursementPercentageInstruction + if not isinstance(v, DisbursementPercentageInstruction): + error_messages.append(f"Error! Input type `{type(v)}` is not `DisbursementPercentageInstruction`") + else: + match += 1 + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in DisbursementInstruction with oneOf schemas: DisbursementAmountInstruction, DisbursementPercentageInstruction. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in DisbursementInstruction with oneOf schemas: DisbursementAmountInstruction, DisbursementPercentageInstruction. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + match = 0 + + # deserialize data into DisbursementAmountInstruction + try: + instance.actual_instance = DisbursementAmountInstruction.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into DisbursementPercentageInstruction + try: + instance.actual_instance = DisbursementPercentageInstruction.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when deserializing the JSON string into DisbursementInstruction with oneOf schemas: DisbursementAmountInstruction, DisbursementPercentageInstruction. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into DisbursementInstruction with oneOf schemas: DisbursementAmountInstruction, DisbursementPercentageInstruction. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], DisbursementAmountInstruction, DisbursementPercentageInstruction]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + # primitive type + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/fireblocks_client/models/disbursement_instruction_output.py b/fireblocks_client/models/disbursement_instruction_output.py new file mode 100644 index 00000000..12994f40 --- /dev/null +++ b/fireblocks_client/models/disbursement_instruction_output.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List +from fireblocks_client.models.asset_amount import AssetAmount +from fireblocks_client.models.destination import Destination +from typing import Optional, Set +from typing_extensions import Self + +class DisbursementInstructionOutput(BaseModel): + """ + DisbursementInstructionOutput + """ # noqa: E501 + amount: AssetAmount + fee: AssetAmount + payee_account: Destination = Field(alias="payeeAccount") + __properties: ClassVar[List[str]] = ["amount", "fee", "payeeAccount"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DisbursementInstructionOutput from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of amount + if self.amount: + _dict['amount'] = self.amount.to_dict() + # override the default output from pydantic by calling `to_dict()` of fee + if self.fee: + _dict['fee'] = self.fee.to_dict() + # override the default output from pydantic by calling `to_dict()` of payee_account + if self.payee_account: + _dict['payeeAccount'] = self.payee_account.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DisbursementInstructionOutput from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "amount": AssetAmount.from_dict(obj["amount"]) if obj.get("amount") is not None else None, + "fee": AssetAmount.from_dict(obj["fee"]) if obj.get("fee") is not None else None, + "payeeAccount": Destination.from_dict(obj["payeeAccount"]) if obj.get("payeeAccount") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/disbursement_operation_config_params.py b/fireblocks_client/models/disbursement_operation_config_params.py new file mode 100644 index 00000000..63c4d763 --- /dev/null +++ b/fireblocks_client/models/disbursement_operation_config_params.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.account import Account +from fireblocks_client.models.disbursement_instruction import DisbursementInstruction +from typing import Optional, Set +from typing_extensions import Self + +class DisbursementOperationConfigParams(BaseModel): + """ + DisbursementOperationConfigParams + """ # noqa: E501 + payment_account: Optional[Account] = Field(default=None, alias="paymentAccount") + instruction_set: List[DisbursementInstruction] = Field(alias="instructionSet") + __properties: ClassVar[List[str]] = ["paymentAccount", "instructionSet"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DisbursementOperationConfigParams from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of payment_account + if self.payment_account: + _dict['paymentAccount'] = self.payment_account.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in instruction_set (list) + _items = [] + if self.instruction_set: + for _item in self.instruction_set: + if _item: + _items.append(_item.to_dict()) + _dict['instructionSet'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DisbursementOperationConfigParams from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "paymentAccount": Account.from_dict(obj["paymentAccount"]) if obj.get("paymentAccount") is not None else None, + "instructionSet": [DisbursementInstruction.from_dict(_item) for _item in obj["instructionSet"]] if obj.get("instructionSet") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/disbursement_operation_execution.py b/fireblocks_client/models/disbursement_operation_execution.py new file mode 100644 index 00000000..405af5b7 --- /dev/null +++ b/fireblocks_client/models/disbursement_operation_execution.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from fireblocks_client.models.disbursement_operation_execution_output import DisbursementOperationExecutionOutput +from fireblocks_client.models.disbursement_operation_input import DisbursementOperationInput +from fireblocks_client.models.operation_execution_failure import OperationExecutionFailure +from typing import Optional, Set +from typing_extensions import Self + +class DisbursementOperationExecution(BaseModel): + """ + DisbursementOperationExecution + """ # noqa: E501 + input: DisbursementOperationInput + output: Optional[DisbursementOperationExecutionOutput] = None + payout_id: Optional[StrictStr] = Field(default=None, alias="payoutId") + started_at: Union[StrictFloat, StrictInt] = Field(alias="startedAt") + finished_at: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="finishedAt") + failure: Optional[OperationExecutionFailure] = None + __properties: ClassVar[List[str]] = ["input", "output", "payoutId", "startedAt", "finishedAt", "failure"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DisbursementOperationExecution from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of input + if self.input: + _dict['input'] = self.input.to_dict() + # override the default output from pydantic by calling `to_dict()` of output + if self.output: + _dict['output'] = self.output.to_dict() + # override the default output from pydantic by calling `to_dict()` of failure + if self.failure: + _dict['failure'] = self.failure.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DisbursementOperationExecution from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "input": DisbursementOperationInput.from_dict(obj["input"]) if obj.get("input") is not None else None, + "output": DisbursementOperationExecutionOutput.from_dict(obj["output"]) if obj.get("output") is not None else None, + "payoutId": obj.get("payoutId"), + "startedAt": obj.get("startedAt"), + "finishedAt": obj.get("finishedAt"), + "failure": OperationExecutionFailure.from_dict(obj["failure"]) if obj.get("failure") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/disbursement_operation_execution_output.py b/fireblocks_client/models/disbursement_operation_execution_output.py new file mode 100644 index 00000000..cc1aeb31 --- /dev/null +++ b/fireblocks_client/models/disbursement_operation_execution_output.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List +from fireblocks_client.models.disbursement_instruction_output import DisbursementInstructionOutput +from typing import Optional, Set +from typing_extensions import Self + +class DisbursementOperationExecutionOutput(BaseModel): + """ + DisbursementOperationExecutionOutput + """ # noqa: E501 + instruction_set: List[DisbursementInstructionOutput] = Field(alias="instructionSet") + __properties: ClassVar[List[str]] = ["instructionSet"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DisbursementOperationExecutionOutput from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in instruction_set (list) + _items = [] + if self.instruction_set: + for _item in self.instruction_set: + if _item: + _items.append(_item.to_dict()) + _dict['instructionSet'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DisbursementOperationExecutionOutput from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "instructionSet": [DisbursementInstructionOutput.from_dict(_item) for _item in obj["instructionSet"]] if obj.get("instructionSet") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/disbursement_operation_execution_params.py b/fireblocks_client/models/disbursement_operation_execution_params.py new file mode 100644 index 00000000..fd4d170b --- /dev/null +++ b/fireblocks_client/models/disbursement_operation_execution_params.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.disbursement_operation_execution_params_execution_params import DisbursementOperationExecutionParamsExecutionParams +from typing import Optional, Set +from typing_extensions import Self + +class DisbursementOperationExecutionParams(BaseModel): + """ + DisbursementOperationExecutionParams + """ # noqa: E501 + config_operation_id: StrictStr = Field(alias="configOperationId") + execution_params: Optional[DisbursementOperationExecutionParamsExecutionParams] = Field(default=None, alias="executionParams") + __properties: ClassVar[List[str]] = ["configOperationId", "executionParams"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DisbursementOperationExecutionParams from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of execution_params + if self.execution_params: + _dict['executionParams'] = self.execution_params.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DisbursementOperationExecutionParams from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "configOperationId": obj.get("configOperationId"), + "executionParams": DisbursementOperationExecutionParamsExecutionParams.from_dict(obj["executionParams"]) if obj.get("executionParams") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/disbursement_operation_execution_params_execution_params.py b/fireblocks_client/models/disbursement_operation_execution_params_execution_params.py new file mode 100644 index 00000000..885f3ccd --- /dev/null +++ b/fireblocks_client/models/disbursement_operation_execution_params_execution_params.py @@ -0,0 +1,104 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.account import Account +from fireblocks_client.models.disbursement_instruction import DisbursementInstruction +from typing import Optional, Set +from typing_extensions import Self + +class DisbursementOperationExecutionParamsExecutionParams(BaseModel): + """ + DisbursementOperationExecutionParamsExecutionParams + """ # noqa: E501 + amount: Optional[StrictStr] = None + payment_account: Optional[Account] = Field(default=None, alias="paymentAccount") + instruction_set: Optional[List[DisbursementInstruction]] = Field(default=None, alias="instructionSet") + __properties: ClassVar[List[str]] = ["amount", "paymentAccount", "instructionSet"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DisbursementOperationExecutionParamsExecutionParams from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of payment_account + if self.payment_account: + _dict['paymentAccount'] = self.payment_account.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in instruction_set (list) + _items = [] + if self.instruction_set: + for _item in self.instruction_set: + if _item: + _items.append(_item.to_dict()) + _dict['instructionSet'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DisbursementOperationExecutionParamsExecutionParams from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "amount": obj.get("amount"), + "paymentAccount": Account.from_dict(obj["paymentAccount"]) if obj.get("paymentAccount") is not None else None, + "instructionSet": [DisbursementInstruction.from_dict(_item) for _item in obj["instructionSet"]] if obj.get("instructionSet") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/disbursement_operation_input.py b/fireblocks_client/models/disbursement_operation_input.py new file mode 100644 index 00000000..94a1b845 --- /dev/null +++ b/fireblocks_client/models/disbursement_operation_input.py @@ -0,0 +1,104 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.account import Account +from fireblocks_client.models.disbursement_instruction import DisbursementInstruction +from typing import Optional, Set +from typing_extensions import Self + +class DisbursementOperationInput(BaseModel): + """ + DisbursementOperationInput + """ # noqa: E501 + amount: Optional[StrictStr] = None + payment_account: Account = Field(alias="paymentAccount") + instruction_set: List[DisbursementInstruction] = Field(alias="instructionSet") + __properties: ClassVar[List[str]] = ["amount", "paymentAccount", "instructionSet"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DisbursementOperationInput from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of payment_account + if self.payment_account: + _dict['paymentAccount'] = self.payment_account.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in instruction_set (list) + _items = [] + if self.instruction_set: + for _item in self.instruction_set: + if _item: + _items.append(_item.to_dict()) + _dict['instructionSet'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DisbursementOperationInput from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "amount": obj.get("amount"), + "paymentAccount": Account.from_dict(obj["paymentAccount"]) if obj.get("paymentAccount") is not None else None, + "instructionSet": [DisbursementInstruction.from_dict(_item) for _item in obj["instructionSet"]] if obj.get("instructionSet") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/disbursement_operation_preview.py b/fireblocks_client/models/disbursement_operation_preview.py new file mode 100644 index 00000000..3c824db3 --- /dev/null +++ b/fireblocks_client/models/disbursement_operation_preview.py @@ -0,0 +1,104 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.disbursement_operation_input import DisbursementOperationInput +from fireblocks_client.models.disbursement_operation_preview_output import DisbursementOperationPreviewOutput +from fireblocks_client.models.operation_execution_failure import OperationExecutionFailure +from typing import Optional, Set +from typing_extensions import Self + +class DisbursementOperationPreview(BaseModel): + """ + DisbursementOperationPreview + """ # noqa: E501 + input: DisbursementOperationInput + output: Optional[DisbursementOperationPreviewOutput] = None + failure: Optional[OperationExecutionFailure] = None + __properties: ClassVar[List[str]] = ["input", "output", "failure"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DisbursementOperationPreview from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of input + if self.input: + _dict['input'] = self.input.to_dict() + # override the default output from pydantic by calling `to_dict()` of output + if self.output: + _dict['output'] = self.output.to_dict() + # override the default output from pydantic by calling `to_dict()` of failure + if self.failure: + _dict['failure'] = self.failure.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DisbursementOperationPreview from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "input": DisbursementOperationInput.from_dict(obj["input"]) if obj.get("input") is not None else None, + "output": DisbursementOperationPreviewOutput.from_dict(obj["output"]) if obj.get("output") is not None else None, + "failure": OperationExecutionFailure.from_dict(obj["failure"]) if obj.get("failure") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/disbursement_operation_preview_output.py b/fireblocks_client/models/disbursement_operation_preview_output.py new file mode 100644 index 00000000..9085502f --- /dev/null +++ b/fireblocks_client/models/disbursement_operation_preview_output.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List +from fireblocks_client.models.disbursement_operation_preview_output_instruction_set_inner import DisbursementOperationPreviewOutputInstructionSetInner +from typing import Optional, Set +from typing_extensions import Self + +class DisbursementOperationPreviewOutput(BaseModel): + """ + DisbursementOperationPreviewOutput + """ # noqa: E501 + instruction_set: List[DisbursementOperationPreviewOutputInstructionSetInner] = Field(alias="instructionSet") + __properties: ClassVar[List[str]] = ["instructionSet"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DisbursementOperationPreviewOutput from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in instruction_set (list) + _items = [] + if self.instruction_set: + for _item in self.instruction_set: + if _item: + _items.append(_item.to_dict()) + _dict['instructionSet'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DisbursementOperationPreviewOutput from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "instructionSet": [DisbursementOperationPreviewOutputInstructionSetInner.from_dict(_item) for _item in obj["instructionSet"]] if obj.get("instructionSet") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/disbursement_operation_preview_output_instruction_set_inner.py b/fireblocks_client/models/disbursement_operation_preview_output_instruction_set_inner.py new file mode 100644 index 00000000..8b8f5390 --- /dev/null +++ b/fireblocks_client/models/disbursement_operation_preview_output_instruction_set_inner.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictFloat, StrictInt +from typing import Any, ClassVar, Dict, List, Union +from fireblocks_client.models.asset_amount import AssetAmount +from fireblocks_client.models.destination import Destination +from typing import Optional, Set +from typing_extensions import Self + +class DisbursementOperationPreviewOutputInstructionSetInner(BaseModel): + """ + DisbursementOperationPreviewOutputInstructionSetInner + """ # noqa: E501 + amount: AssetAmount + fee: AssetAmount + payee_account: Destination = Field(alias="payeeAccount") + time_seconds: Union[StrictFloat, StrictInt] = Field(alias="timeSeconds") + __properties: ClassVar[List[str]] = ["amount", "fee", "payeeAccount", "timeSeconds"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DisbursementOperationPreviewOutputInstructionSetInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of amount + if self.amount: + _dict['amount'] = self.amount.to_dict() + # override the default output from pydantic by calling `to_dict()` of fee + if self.fee: + _dict['fee'] = self.fee.to_dict() + # override the default output from pydantic by calling `to_dict()` of payee_account + if self.payee_account: + _dict['payeeAccount'] = self.payee_account.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DisbursementOperationPreviewOutputInstructionSetInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "amount": AssetAmount.from_dict(obj["amount"]) if obj.get("amount") is not None else None, + "fee": AssetAmount.from_dict(obj["fee"]) if obj.get("fee") is not None else None, + "payeeAccount": Destination.from_dict(obj["payeeAccount"]) if obj.get("payeeAccount") is not None else None, + "timeSeconds": obj.get("timeSeconds") + }) + return _obj + + diff --git a/fireblocks_client/models/disbursement_operation_type.py b/fireblocks_client/models/disbursement_operation_type.py new file mode 100644 index 00000000..a7a85816 --- /dev/null +++ b/fireblocks_client/models/disbursement_operation_type.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +from enum import Enum +from typing_extensions import Self + + +class DisbursementOperationType(str, Enum): + """ + DisbursementOperationType + """ + + """ + allowed enum values + """ + DISBURSEMENT = 'DISBURSEMENT' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of DisbursementOperationType from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/fireblocks_client/models/disbursement_percentage_instruction.py b/fireblocks_client/models/disbursement_percentage_instruction.py new file mode 100644 index 00000000..1c49f16e --- /dev/null +++ b/fireblocks_client/models/disbursement_percentage_instruction.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List +from fireblocks_client.models.destination import Destination +from typing import Optional, Set +from typing_extensions import Self + +class DisbursementPercentageInstruction(BaseModel): + """ + DisbursementPercentageInstruction + """ # noqa: E501 + payee_account: Destination = Field(alias="payeeAccount") + asset_id: StrictStr = Field(alias="assetId") + percentage: StrictStr + __properties: ClassVar[List[str]] = ["payeeAccount", "assetId", "percentage"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DisbursementPercentageInstruction from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of payee_account + if self.payee_account: + _dict['payeeAccount'] = self.payee_account.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DisbursementPercentageInstruction from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "payeeAccount": Destination.from_dict(obj["payeeAccount"]) if obj.get("payeeAccount") is not None else None, + "assetId": obj.get("assetId"), + "percentage": obj.get("percentage") + }) + return _obj + + diff --git a/fireblocks_client/models/disbursement_validation_failure.py b/fireblocks_client/models/disbursement_validation_failure.py new file mode 100644 index 00000000..f2121ff5 --- /dev/null +++ b/fireblocks_client/models/disbursement_validation_failure.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DisbursementValidationFailure(BaseModel): + """ + DisbursementValidationFailure + """ # noqa: E501 + reason: StrictStr + data: Optional[Dict[str, Any]] = None + __properties: ClassVar[List[str]] = ["reason", "data"] + + @field_validator('reason') + def reason_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['ACCOUNT_NOT_FOUND', 'ACCOUNT_TYPE_NOT_SUPPORTED', 'INSUFFICIENT_BALANCE', 'ASSET_NOT_FOUND', 'ASSETS_CONTINUITY_MISMATCH', 'EXCHANGE_BASKETS_MISMATCH', 'ACCOUNTS_CONTINUITY_MISMATCH', 'ONE_TIME_ADDRESS_CONTINUITY_NOT_ALLOWED', 'EQUAL_ACCOUNTS_NOT_ALLOWED', 'EQUAL_ASSETS_NOT_ALLOWED', 'INVALID_AMOUNT', 'UNMANAGED_WALLET_AS_SOURCE_NOT_ALLOWED', 'MANAGED_OPERATION_PARAMS_INVALID_SCHEMA', 'INSTRUCTIONS_EXCEED_HUNDRED_PERCENT', 'INSTRUCTIONS_ARRAY_EMPTY']): + raise ValueError("must be one of enum values ('ACCOUNT_NOT_FOUND', 'ACCOUNT_TYPE_NOT_SUPPORTED', 'INSUFFICIENT_BALANCE', 'ASSET_NOT_FOUND', 'ASSETS_CONTINUITY_MISMATCH', 'EXCHANGE_BASKETS_MISMATCH', 'ACCOUNTS_CONTINUITY_MISMATCH', 'ONE_TIME_ADDRESS_CONTINUITY_NOT_ALLOWED', 'EQUAL_ACCOUNTS_NOT_ALLOWED', 'EQUAL_ASSETS_NOT_ALLOWED', 'INVALID_AMOUNT', 'UNMANAGED_WALLET_AS_SOURCE_NOT_ALLOWED', 'MANAGED_OPERATION_PARAMS_INVALID_SCHEMA', 'INSTRUCTIONS_EXCEED_HUNDRED_PERCENT', 'INSTRUCTIONS_ARRAY_EMPTY')") + return value + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DisbursementValidationFailure from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DisbursementValidationFailure from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "reason": obj.get("reason"), + "data": obj.get("data") + }) + return _obj + + diff --git a/fireblocks_client/models/dispatch_payout_response.py b/fireblocks_client/models/dispatch_payout_response.py new file mode 100644 index 00000000..e738afe3 --- /dev/null +++ b/fireblocks_client/models/dispatch_payout_response.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class DispatchPayoutResponse(BaseModel): + """ + DispatchPayoutResponse + """ # noqa: E501 + payout_id: StrictStr = Field(alias="payoutId") + __properties: ClassVar[List[str]] = ["payoutId"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DispatchPayoutResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DispatchPayoutResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "payoutId": obj.get("payoutId") + }) + return _obj + + diff --git a/fireblocks_client/models/draft_response.py b/fireblocks_client/models/draft_response.py new file mode 100644 index 00000000..470f7f35 --- /dev/null +++ b/fireblocks_client/models/draft_response.py @@ -0,0 +1,106 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List +from fireblocks_client.models.policy_metadata import PolicyMetadata +from fireblocks_client.models.policy_rule import PolicyRule +from typing import Optional, Set +from typing_extensions import Self + +class DraftResponse(BaseModel): + """ + Response object for draft operations + """ # noqa: E501 + status: StrictStr = Field(description="Operation status") + rules: List[PolicyRule] = Field(description="Draft rules") + draft_id: StrictStr = Field(description="Draft unique id", alias="draftId") + metadata: PolicyMetadata + __properties: ClassVar[List[str]] = ["status", "rules", "draftId", "metadata"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DraftResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in rules (list) + _items = [] + if self.rules: + for _item in self.rules: + if _item: + _items.append(_item.to_dict()) + _dict['rules'] = _items + # 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: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DraftResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "status": obj.get("status"), + "rules": [PolicyRule.from_dict(_item) for _item in obj["rules"]] if obj.get("rules") is not None else None, + "draftId": obj.get("draftId"), + "metadata": PolicyMetadata.from_dict(obj["metadata"]) if obj.get("metadata") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/draft_review_and_validation_response.py b/fireblocks_client/models/draft_review_and_validation_response.py new file mode 100644 index 00000000..78fca669 --- /dev/null +++ b/fireblocks_client/models/draft_review_and_validation_response.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List +from fireblocks_client.models.draft_response import DraftResponse +from fireblocks_client.models.policy_validation import PolicyValidation +from typing import Optional, Set +from typing_extensions import Self + +class DraftReviewAndValidationResponse(BaseModel): + """ + Draft validation + """ # noqa: E501 + draft_response: DraftResponse = Field(alias="draftResponse") + validation: PolicyValidation + __properties: ClassVar[List[str]] = ["draftResponse", "validation"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DraftReviewAndValidationResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of draft_response + if self.draft_response: + _dict['draftResponse'] = self.draft_response.to_dict() + # override the default output from pydantic by calling `to_dict()` of validation + if self.validation: + _dict['validation'] = self.validation.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DraftReviewAndValidationResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "draftResponse": DraftResponse.from_dict(obj["draftResponse"]) if obj.get("draftResponse") is not None else None, + "validation": PolicyValidation.from_dict(obj["validation"]) if obj.get("validation") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/drop_transaction_request.py b/fireblocks_client/models/drop_transaction_request.py new file mode 100644 index 00000000..a4404825 --- /dev/null +++ b/fireblocks_client/models/drop_transaction_request.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DropTransactionRequest(BaseModel): + """ + DropTransactionRequest + """ # noqa: E501 + tx_id: Optional[StrictStr] = Field(default=None, alias="txId") + fee_level: Optional[StrictStr] = Field(default=None, alias="feeLevel") + gas_price: Optional[StrictStr] = Field(default=None, alias="gasPrice") + __properties: ClassVar[List[str]] = ["txId", "feeLevel", "gasPrice"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DropTransactionRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DropTransactionRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "txId": obj.get("txId"), + "feeLevel": obj.get("feeLevel"), + "gasPrice": obj.get("gasPrice") + }) + return _obj + + diff --git a/fireblocks_client/models/drop_transaction_response.py b/fireblocks_client/models/drop_transaction_response.py new file mode 100644 index 00000000..cb85cd54 --- /dev/null +++ b/fireblocks_client/models/drop_transaction_response.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DropTransactionResponse(BaseModel): + """ + DropTransactionResponse + """ # noqa: E501 + tx_status: Optional[StrictStr] = Field(default=None, alias="txStatus") + tx_id: Optional[StrictStr] = Field(default=None, alias="txId") + replaced_tx_hash: Optional[StrictStr] = Field(default=None, alias="replacedTxHash") + __properties: ClassVar[List[str]] = ["txStatus", "txId", "replacedTxHash"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DropTransactionResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DropTransactionResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "txStatus": obj.get("txStatus"), + "txId": obj.get("txId"), + "replacedTxHash": obj.get("replacedTxHash") + }) + return _obj + + diff --git a/fireblocks_client/models/edit_gas_station_configuration_response.py b/fireblocks_client/models/edit_gas_station_configuration_response.py new file mode 100644 index 00000000..3c909364 --- /dev/null +++ b/fireblocks_client/models/edit_gas_station_configuration_response.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictBool +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class EditGasStationConfigurationResponse(BaseModel): + """ + EditGasStationConfigurationResponse + """ # noqa: E501 + success: StrictBool = Field(description="Indicates whether editing the gas station configuration was successful") + __properties: ClassVar[List[str]] = ["success"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of EditGasStationConfigurationResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of EditGasStationConfigurationResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success") + }) + return _obj + + diff --git a/fireblocks_client/models/error_response.py b/fireblocks_client/models/error_response.py new file mode 100644 index 00000000..b6dec398 --- /dev/null +++ b/fireblocks_client/models/error_response.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List +from fireblocks_client.models.error_response_error import ErrorResponseError +from typing import Optional, Set +from typing_extensions import Self + +class ErrorResponse(BaseModel): + """ + ErrorResponse + """ # noqa: E501 + error: ErrorResponseError + __properties: ClassVar[List[str]] = ["error"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ErrorResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of error + if self.error: + _dict['error'] = self.error.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ErrorResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "error": ErrorResponseError.from_dict(obj["error"]) if obj.get("error") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/error_response_error.py b/fireblocks_client/models/error_response_error.py new file mode 100644 index 00000000..3db2252b --- /dev/null +++ b/fireblocks_client/models/error_response_error.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class ErrorResponseError(BaseModel): + """ + ErrorResponseError + """ # noqa: E501 + type: StrictStr + message: StrictStr + __properties: ClassVar[List[str]] = ["type", "message"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['INTERNAL', 'AUTHENTICATION', 'AUTHORIZATION', 'VALIDATION', 'NOT_FOUND', 'UNPROCESSABLE_ENTITY', 'FORBIDDEN']): + raise ValueError("must be one of enum values ('INTERNAL', 'AUTHENTICATION', 'AUTHORIZATION', 'VALIDATION', 'NOT_FOUND', 'UNPROCESSABLE_ENTITY', 'FORBIDDEN')") + return value + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ErrorResponseError from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ErrorResponseError from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "type": obj.get("type"), + "message": obj.get("message") + }) + return _obj + + diff --git a/fireblocks_client/models/error_schema.py b/fireblocks_client/models/error_schema.py new file mode 100644 index 00000000..0d4ac7f9 --- /dev/null +++ b/fireblocks_client/models/error_schema.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class ErrorSchema(BaseModel): + """ + ErrorSchema + """ # noqa: E501 + message: Optional[StrictStr] = None + code: Optional[Union[StrictFloat, StrictInt]] = None + __properties: ClassVar[List[str]] = ["message", "code"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ErrorSchema from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ErrorSchema from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "message": obj.get("message"), + "code": obj.get("code") + }) + return _obj + + diff --git a/fireblocks_client/models/estimated_network_fee_response.py b/fireblocks_client/models/estimated_network_fee_response.py new file mode 100644 index 00000000..c19cadeb --- /dev/null +++ b/fireblocks_client/models/estimated_network_fee_response.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List +from fireblocks_client.models.network_fee import NetworkFee +from typing import Optional, Set +from typing_extensions import Self + +class EstimatedNetworkFeeResponse(BaseModel): + """ + EstimatedNetworkFeeResponse + """ # noqa: E501 + low: NetworkFee + medium: NetworkFee + high: NetworkFee + __properties: ClassVar[List[str]] = ["low", "medium", "high"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of EstimatedNetworkFeeResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of low + if self.low: + _dict['low'] = self.low.to_dict() + # override the default output from pydantic by calling `to_dict()` of medium + if self.medium: + _dict['medium'] = self.medium.to_dict() + # override the default output from pydantic by calling `to_dict()` of high + if self.high: + _dict['high'] = self.high.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of EstimatedNetworkFeeResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "low": NetworkFee.from_dict(obj["low"]) if obj.get("low") is not None else None, + "medium": NetworkFee.from_dict(obj["medium"]) if obj.get("medium") is not None else None, + "high": NetworkFee.from_dict(obj["high"]) if obj.get("high") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/estimated_transaction_fee_response.py b/fireblocks_client/models/estimated_transaction_fee_response.py new file mode 100644 index 00000000..6906f214 --- /dev/null +++ b/fireblocks_client/models/estimated_transaction_fee_response.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List +from fireblocks_client.models.transaction_fee import TransactionFee +from typing import Optional, Set +from typing_extensions import Self + +class EstimatedTransactionFeeResponse(BaseModel): + """ + EstimatedTransactionFeeResponse + """ # noqa: E501 + low: TransactionFee + medium: TransactionFee + high: TransactionFee + __properties: ClassVar[List[str]] = ["low", "medium", "high"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of EstimatedTransactionFeeResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of low + if self.low: + _dict['low'] = self.low.to_dict() + # override the default output from pydantic by calling `to_dict()` of medium + if self.medium: + _dict['medium'] = self.medium.to_dict() + # override the default output from pydantic by calling `to_dict()` of high + if self.high: + _dict['high'] = self.high.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of EstimatedTransactionFeeResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "low": TransactionFee.from_dict(obj["low"]) if obj.get("low") is not None else None, + "medium": TransactionFee.from_dict(obj["medium"]) if obj.get("medium") is not None else None, + "high": TransactionFee.from_dict(obj["high"]) if obj.get("high") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/evm_token_create_params_dto.py b/fireblocks_client/models/evm_token_create_params_dto.py new file mode 100644 index 00000000..8fe491eb --- /dev/null +++ b/fireblocks_client/models/evm_token_create_params_dto.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.parameter_with_value import ParameterWithValue +from typing import Optional, Set +from typing_extensions import Self + +class EVMTokenCreateParamsDto(BaseModel): + """ + EVMTokenCreateParamsDto + """ # noqa: E501 + contract_id: StrictStr = Field(description="The id of the contract template that will be used to create the token", alias="contractId") + constructor_params: Optional[List[List[ParameterWithValue]]] = Field(default=None, description="The constructor parameters and values of the contract template", alias="constructorParams") + __properties: ClassVar[List[str]] = ["contractId", "constructorParams"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of EVMTokenCreateParamsDto from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in constructor_params (list of list) + _items = [] + if self.constructor_params: + for _item in self.constructor_params: + if _item: + _items.append( + [_inner_item.to_dict() for _inner_item in _item if _inner_item is not None] + ) + _dict['constructorParams'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of EVMTokenCreateParamsDto from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "contractId": obj.get("contractId"), + "constructorParams": [ + [ParameterWithValue.from_dict(_inner_item) for _inner_item in _item] + for _item in obj["constructorParams"] + ] if obj.get("constructorParams") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/exchange_account.py b/fireblocks_client/models/exchange_account.py new file mode 100644 index 00000000..c3e12963 --- /dev/null +++ b/fireblocks_client/models/exchange_account.py @@ -0,0 +1,121 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.exchange_asset import ExchangeAsset +from fireblocks_client.models.exchange_trading_account import ExchangeTradingAccount +from fireblocks_client.models.exchange_type import ExchangeType +from typing import Optional, Set +from typing_extensions import Self + +class ExchangeAccount(BaseModel): + """ + ExchangeAccount + """ # noqa: E501 + id: Optional[StrictStr] = None + type: Optional[ExchangeType] = None + name: Optional[StrictStr] = Field(default=None, description="Display name of the exchange account") + status: Optional[StrictStr] = None + assets: Optional[List[ExchangeAsset]] = None + success: Optional[StrictBool] = Field(default=None, description="Did succeed in retrieve balance data") + trading_accounts: Optional[List[ExchangeTradingAccount]] = Field(default=None, alias="tradingAccounts") + is_subaccount: Optional[StrictBool] = Field(default=None, description="True if the account is a subaccount in an exchange", alias="isSubaccount") + main_account_id: Optional[StrictStr] = Field(default=None, description="if the account is a sub-account, the ID of the main account", alias="mainAccountId") + __properties: ClassVar[List[str]] = ["id", "type", "name", "status", "assets", "success", "tradingAccounts", "isSubaccount", "mainAccountId"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ExchangeAccount from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in assets (list) + _items = [] + if self.assets: + for _item in self.assets: + if _item: + _items.append(_item.to_dict()) + _dict['assets'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in trading_accounts (list) + _items = [] + if self.trading_accounts: + for _item in self.trading_accounts: + if _item: + _items.append(_item.to_dict()) + _dict['tradingAccounts'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ExchangeAccount from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "type": obj.get("type"), + "name": obj.get("name"), + "status": obj.get("status"), + "assets": [ExchangeAsset.from_dict(_item) for _item in obj["assets"]] if obj.get("assets") is not None else None, + "success": obj.get("success"), + "tradingAccounts": [ExchangeTradingAccount.from_dict(_item) for _item in obj["tradingAccounts"]] if obj.get("tradingAccounts") is not None else None, + "isSubaccount": obj.get("isSubaccount"), + "mainAccountId": obj.get("mainAccountId") + }) + return _obj + + diff --git a/fireblocks_client/models/exchange_accounts_paged.py b/fireblocks_client/models/exchange_accounts_paged.py new file mode 100644 index 00000000..87c5383f --- /dev/null +++ b/fireblocks_client/models/exchange_accounts_paged.py @@ -0,0 +1,106 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.exchange_account import ExchangeAccount +from fireblocks_client.models.exchange_accounts_paged_paging import ExchangeAccountsPagedPaging +from typing import Optional, Set +from typing_extensions import Self + +class ExchangeAccountsPaged(BaseModel): + """ + ExchangeAccountsPaged + """ # noqa: E501 + exchange_account: Optional[List[ExchangeAccount]] = Field(default=None, alias="ExchangeAccount") + paging: Optional[ExchangeAccountsPagedPaging] = None + prev_url: Optional[StrictStr] = Field(default=None, alias="prevUrl") + next_url: Optional[StrictStr] = Field(default=None, alias="nextUrl") + __properties: ClassVar[List[str]] = ["ExchangeAccount", "paging", "prevUrl", "nextUrl"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ExchangeAccountsPaged from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in exchange_account (list) + _items = [] + if self.exchange_account: + for _item in self.exchange_account: + if _item: + _items.append(_item.to_dict()) + _dict['ExchangeAccount'] = _items + # override the default output from pydantic by calling `to_dict()` of paging + if self.paging: + _dict['paging'] = self.paging.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ExchangeAccountsPaged from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "ExchangeAccount": [ExchangeAccount.from_dict(_item) for _item in obj["ExchangeAccount"]] if obj.get("ExchangeAccount") is not None else None, + "paging": ExchangeAccountsPagedPaging.from_dict(obj["paging"]) if obj.get("paging") is not None else None, + "prevUrl": obj.get("prevUrl"), + "nextUrl": obj.get("nextUrl") + }) + return _obj + + diff --git a/fireblocks_client/models/exchange_accounts_paged_paging.py b/fireblocks_client/models/exchange_accounts_paged_paging.py new file mode 100644 index 00000000..fe42ea03 --- /dev/null +++ b/fireblocks_client/models/exchange_accounts_paged_paging.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ExchangeAccountsPagedPaging(BaseModel): + """ + ExchangeAccountsPagedPaging + """ # noqa: E501 + after: Optional[StrictStr] = Field(default=None, description="Query value to the after page") + before: Optional[StrictStr] = Field(default=None, description="Query value to the before page") + __properties: ClassVar[List[str]] = ["after", "before"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ExchangeAccountsPagedPaging from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ExchangeAccountsPagedPaging from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "after": obj.get("after"), + "before": obj.get("before") + }) + return _obj + + diff --git a/fireblocks_client/models/exchange_asset.py b/fireblocks_client/models/exchange_asset.py new file mode 100644 index 00000000..4245dff4 --- /dev/null +++ b/fireblocks_client/models/exchange_asset.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ExchangeAsset(BaseModel): + """ + ExchangeAsset + """ # noqa: E501 + id: Optional[StrictStr] = None + balance: Optional[StrictStr] = None + locked_amount: Optional[StrictStr] = Field(default=None, alias="lockedAmount") + total: Optional[StrictStr] = None + available: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["id", "balance", "lockedAmount", "total", "available"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ExchangeAsset from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ExchangeAsset from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "balance": obj.get("balance"), + "lockedAmount": obj.get("lockedAmount"), + "total": obj.get("total"), + "available": obj.get("available") + }) + return _obj + + diff --git a/fireblocks_client/models/exchange_settlement_transactions_response.py b/fireblocks_client/models/exchange_settlement_transactions_response.py new file mode 100644 index 00000000..f5fddf45 --- /dev/null +++ b/fireblocks_client/models/exchange_settlement_transactions_response.py @@ -0,0 +1,106 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.to_collateral_transaction import ToCollateralTransaction +from fireblocks_client.models.to_exchange_transaction import ToExchangeTransaction +from typing import Optional, Set +from typing_extensions import Self + +class ExchangeSettlementTransactionsResponse(BaseModel): + """ + ExchangeSettlementTransactionsResponse + """ # noqa: E501 + to_exchange: Optional[List[ToExchangeTransaction]] = Field(default=None, alias="toExchange") + to_collateral: Optional[List[ToCollateralTransaction]] = Field(default=None, alias="toCollateral") + __properties: ClassVar[List[str]] = ["toExchange", "toCollateral"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ExchangeSettlementTransactionsResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in to_exchange (list) + _items = [] + if self.to_exchange: + for _item in self.to_exchange: + if _item: + _items.append(_item.to_dict()) + _dict['toExchange'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in to_collateral (list) + _items = [] + if self.to_collateral: + for _item in self.to_collateral: + if _item: + _items.append(_item.to_dict()) + _dict['toCollateral'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ExchangeSettlementTransactionsResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "toExchange": [ToExchangeTransaction.from_dict(_item) for _item in obj["toExchange"]] if obj.get("toExchange") is not None else None, + "toCollateral": [ToCollateralTransaction.from_dict(_item) for _item in obj["toCollateral"]] if obj.get("toCollateral") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/exchange_trading_account.py b/fireblocks_client/models/exchange_trading_account.py new file mode 100644 index 00000000..9d5d9f5a --- /dev/null +++ b/fireblocks_client/models/exchange_trading_account.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.exchange_asset import ExchangeAsset +from typing import Optional, Set +from typing_extensions import Self + +class ExchangeTradingAccount(BaseModel): + """ + ExchangeTradingAccount + """ # noqa: E501 + type: Optional[StrictStr] = None + name: Optional[StrictStr] = None + assets: Optional[List[ExchangeAsset]] = None + __properties: ClassVar[List[str]] = ["type", "name", "assets"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ExchangeTradingAccount from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in assets (list) + _items = [] + if self.assets: + for _item in self.assets: + if _item: + _items.append(_item.to_dict()) + _dict['assets'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ExchangeTradingAccount from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "type": obj.get("type"), + "name": obj.get("name"), + "assets": [ExchangeAsset.from_dict(_item) for _item in obj["assets"]] if obj.get("assets") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/exchange_type.py b/fireblocks_client/models/exchange_type.py new file mode 100644 index 00000000..453f7b48 --- /dev/null +++ b/fireblocks_client/models/exchange_type.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +from enum import Enum +from typing_extensions import Self + + +class ExchangeType(str, Enum): + """ + ExchangeType + """ + + """ + allowed enum values + """ + BINANCE = 'BINANCE' + BINANCEUS = 'BINANCEUS' + BITFINEX = 'BITFINEX' + BITHUMB = 'BITHUMB' + BITMEX = 'BITMEX' + BITSO = 'BITSO' + BITSTAMP = 'BITSTAMP' + BITTREX = 'BITTREX' + CIRCLE = 'CIRCLE' + COINBASEPRO = 'COINBASEPRO' + COINMETRO = 'COINMETRO' + COINSPRO = 'COINSPRO' + CRYPTOCOM = 'CRYPTOCOM' + DERIBIT = 'DERIBIT' + FTX = 'FTX' + FIXUS = 'FIXUS' + GEMINI = 'GEMINI' + HITBTC = 'HITBTC' + HUOBI = 'HUOBI' + KORBIT = 'KORBIT' + KRAKEN = 'KRAKEN' + LIQUID = 'LIQUID' + POLONIEX = 'POLONIEX' + OKCOIN = 'OKCOIN' + OKEX = 'OKEX' + SEEDCX = 'SEEDCX' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of ExchangeType from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/fireblocks_client/models/execute_action_request.py b/fireblocks_client/models/execute_action_request.py new file mode 100644 index 00000000..50e94ad9 --- /dev/null +++ b/fireblocks_client/models/execute_action_request.py @@ -0,0 +1,152 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +import pprint +from pydantic import BaseModel, Field, StrictStr, ValidationError, field_validator +from typing import Any, List, Optional +from fireblocks_client.models.stake_request_dto import StakeRequestDto +from fireblocks_client.models.unstake_request_dto import UnstakeRequestDto +from fireblocks_client.models.withdraw_request_dto import WithdrawRequestDto +from pydantic import StrictStr, Field +from typing import Union, List, Optional, Dict +from typing_extensions import Literal, Self + +EXECUTEACTIONREQUEST_ONE_OF_SCHEMAS = ["StakeRequestDto", "UnstakeRequestDto", "WithdrawRequestDto"] + +class ExecuteActionRequest(BaseModel): + """ + ExecuteActionRequest + """ + # data type: StakeRequestDto + oneof_schema_1_validator: Optional[StakeRequestDto] = None + # data type: UnstakeRequestDto + oneof_schema_2_validator: Optional[UnstakeRequestDto] = None + # data type: WithdrawRequestDto + oneof_schema_3_validator: Optional[WithdrawRequestDto] = None + actual_instance: Optional[Union[StakeRequestDto, UnstakeRequestDto, WithdrawRequestDto]] = None + one_of_schemas: List[str] = Field(default=Literal["StakeRequestDto", "UnstakeRequestDto", "WithdrawRequestDto"]) + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_oneof(cls, v): + instance = ExecuteActionRequest.model_construct() + error_messages = [] + match = 0 + # validate data type: StakeRequestDto + if not isinstance(v, StakeRequestDto): + error_messages.append(f"Error! Input type `{type(v)}` is not `StakeRequestDto`") + else: + match += 1 + # validate data type: UnstakeRequestDto + if not isinstance(v, UnstakeRequestDto): + error_messages.append(f"Error! Input type `{type(v)}` is not `UnstakeRequestDto`") + else: + match += 1 + # validate data type: WithdrawRequestDto + if not isinstance(v, WithdrawRequestDto): + error_messages.append(f"Error! Input type `{type(v)}` is not `WithdrawRequestDto`") + else: + match += 1 + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in ExecuteActionRequest with oneOf schemas: StakeRequestDto, UnstakeRequestDto, WithdrawRequestDto. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in ExecuteActionRequest with oneOf schemas: StakeRequestDto, UnstakeRequestDto, WithdrawRequestDto. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + match = 0 + + # deserialize data into StakeRequestDto + try: + instance.actual_instance = StakeRequestDto.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into UnstakeRequestDto + try: + instance.actual_instance = UnstakeRequestDto.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into WithdrawRequestDto + try: + instance.actual_instance = WithdrawRequestDto.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when deserializing the JSON string into ExecuteActionRequest with oneOf schemas: StakeRequestDto, UnstakeRequestDto, WithdrawRequestDto. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into ExecuteActionRequest with oneOf schemas: StakeRequestDto, UnstakeRequestDto, WithdrawRequestDto. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], StakeRequestDto, UnstakeRequestDto, WithdrawRequestDto]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + # primitive type + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/fireblocks_client/models/execute_action_response.py b/fireblocks_client/models/execute_action_response.py new file mode 100644 index 00000000..8996cba0 --- /dev/null +++ b/fireblocks_client/models/execute_action_response.py @@ -0,0 +1,158 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +import pprint +from pydantic import BaseModel, Field, StrictStr, ValidationError, field_validator +from typing import Any, Dict, List, Optional +from fireblocks_client.models.stake_response_dto import StakeResponseDto +from pydantic import StrictStr, Field +from typing import Union, List, Optional, Dict +from typing_extensions import Literal, Self + +EXECUTEACTIONRESPONSE_ONE_OF_SCHEMAS = ["StakeResponseDto", "object"] + +class ExecuteActionResponse(BaseModel): + """ + ExecuteActionResponse + """ + # data type: StakeResponseDto + oneof_schema_1_validator: Optional[StakeResponseDto] = None + # data type: object + oneof_schema_2_validator: Optional[Dict[str, Any]] = None + # data type: object + oneof_schema_3_validator: Optional[Dict[str, Any]] = None + actual_instance: Optional[Union[StakeResponseDto, object]] = None + one_of_schemas: List[str] = Field(default=Literal["StakeResponseDto", "object"]) + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_oneof(cls, v): + instance = ExecuteActionResponse.model_construct() + error_messages = [] + match = 0 + # validate data type: StakeResponseDto + if not isinstance(v, StakeResponseDto): + error_messages.append(f"Error! Input type `{type(v)}` is not `StakeResponseDto`") + else: + match += 1 + # validate data type: object + try: + instance.oneof_schema_2_validator = v + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: object + try: + instance.oneof_schema_3_validator = v + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in ExecuteActionResponse with oneOf schemas: StakeResponseDto, object. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in ExecuteActionResponse with oneOf schemas: StakeResponseDto, object. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + match = 0 + + # deserialize data into StakeResponseDto + try: + instance.actual_instance = StakeResponseDto.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into object + try: + # validation + instance.oneof_schema_2_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.oneof_schema_2_validator + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into object + try: + # validation + instance.oneof_schema_3_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.oneof_schema_3_validator + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when deserializing the JSON string into ExecuteActionResponse with oneOf schemas: StakeResponseDto, object. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into ExecuteActionResponse with oneOf schemas: StakeResponseDto, object. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], StakeResponseDto, object]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + # primitive type + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/fireblocks_client/models/execution_conversion_operation.py b/fireblocks_client/models/execution_conversion_operation.py new file mode 100644 index 00000000..3f430499 --- /dev/null +++ b/fireblocks_client/models/execution_conversion_operation.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.conversion_operation_execution import ConversionOperationExecution +from fireblocks_client.models.conversion_operation_preview import ConversionOperationPreview +from fireblocks_client.models.conversion_operation_type import ConversionOperationType +from fireblocks_client.models.conversion_validation_failure import ConversionValidationFailure +from fireblocks_client.models.execution_operation_status import ExecutionOperationStatus +from typing import Optional, Set +from typing_extensions import Self + +class ExecutionConversionOperation(BaseModel): + """ + ExecutionConversionOperation + """ # noqa: E501 + operation_id: StrictStr = Field(alias="operationId") + status: ExecutionOperationStatus + validation_failure: Optional[ConversionValidationFailure] = Field(default=None, alias="validationFailure") + operation_type: ConversionOperationType = Field(alias="operationType") + preview: Optional[ConversionOperationPreview] = None + execution: Optional[ConversionOperationExecution] = None + __properties: ClassVar[List[str]] = ["operationId", "status", "validationFailure", "operationType", "preview", "execution"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ExecutionConversionOperation from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of validation_failure + if self.validation_failure: + _dict['validationFailure'] = self.validation_failure.to_dict() + # override the default output from pydantic by calling `to_dict()` of preview + if self.preview: + _dict['preview'] = self.preview.to_dict() + # override the default output from pydantic by calling `to_dict()` of execution + if self.execution: + _dict['execution'] = self.execution.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ExecutionConversionOperation from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "operationId": obj.get("operationId"), + "status": obj.get("status"), + "validationFailure": ConversionValidationFailure.from_dict(obj["validationFailure"]) if obj.get("validationFailure") is not None else None, + "operationType": obj.get("operationType"), + "preview": ConversionOperationPreview.from_dict(obj["preview"]) if obj.get("preview") is not None else None, + "execution": ConversionOperationExecution.from_dict(obj["execution"]) if obj.get("execution") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/execution_disbursement_operation.py b/fireblocks_client/models/execution_disbursement_operation.py new file mode 100644 index 00000000..3442f27b --- /dev/null +++ b/fireblocks_client/models/execution_disbursement_operation.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.disbursement_operation_execution import DisbursementOperationExecution +from fireblocks_client.models.disbursement_operation_preview import DisbursementOperationPreview +from fireblocks_client.models.disbursement_operation_type import DisbursementOperationType +from fireblocks_client.models.disbursement_validation_failure import DisbursementValidationFailure +from fireblocks_client.models.execution_operation_status import ExecutionOperationStatus +from typing import Optional, Set +from typing_extensions import Self + +class ExecutionDisbursementOperation(BaseModel): + """ + ExecutionDisbursementOperation + """ # noqa: E501 + operation_id: StrictStr = Field(alias="operationId") + status: ExecutionOperationStatus + validation_failure: Optional[DisbursementValidationFailure] = Field(default=None, alias="validationFailure") + operation_type: DisbursementOperationType = Field(alias="operationType") + preview: Optional[DisbursementOperationPreview] = None + execution: Optional[DisbursementOperationExecution] = None + __properties: ClassVar[List[str]] = ["operationId", "status", "validationFailure", "operationType", "preview", "execution"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ExecutionDisbursementOperation from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of validation_failure + if self.validation_failure: + _dict['validationFailure'] = self.validation_failure.to_dict() + # override the default output from pydantic by calling `to_dict()` of preview + if self.preview: + _dict['preview'] = self.preview.to_dict() + # override the default output from pydantic by calling `to_dict()` of execution + if self.execution: + _dict['execution'] = self.execution.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ExecutionDisbursementOperation from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "operationId": obj.get("operationId"), + "status": obj.get("status"), + "validationFailure": DisbursementValidationFailure.from_dict(obj["validationFailure"]) if obj.get("validationFailure") is not None else None, + "operationType": obj.get("operationType"), + "preview": DisbursementOperationPreview.from_dict(obj["preview"]) if obj.get("preview") is not None else None, + "execution": DisbursementOperationExecution.from_dict(obj["execution"]) if obj.get("execution") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/execution_operation_status.py b/fireblocks_client/models/execution_operation_status.py new file mode 100644 index 00000000..5bb42b16 --- /dev/null +++ b/fireblocks_client/models/execution_operation_status.py @@ -0,0 +1,48 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +from enum import Enum +from typing_extensions import Self + + +class ExecutionOperationStatus(str, Enum): + """ + ExecutionOperationStatus + """ + + """ + allowed enum values + """ + PENDING = 'PENDING' + VALIDATION_IN_PROGRESS = 'VALIDATION_IN_PROGRESS' + VALIDATION_FAILED = 'VALIDATION_FAILED' + VALIDATION_COMPLETED = 'VALIDATION_COMPLETED' + PREVIEW_REQUESTED = 'PREVIEW_REQUESTED' + PREVIEW_IN_PROGRESS = 'PREVIEW_IN_PROGRESS' + PREVIEW_FAILED = 'PREVIEW_FAILED' + READY_FOR_LAUNCH = 'READY_FOR_LAUNCH' + EXECUTION_REQUESTED = 'EXECUTION_REQUESTED' + EXECUTION_IN_PROGRESS = 'EXECUTION_IN_PROGRESS' + EXECUTION_COMPLETED = 'EXECUTION_COMPLETED' + EXECUTION_FAILED = 'EXECUTION_FAILED' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of ExecutionOperationStatus from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/fireblocks_client/models/execution_screening_operation.py b/fireblocks_client/models/execution_screening_operation.py new file mode 100644 index 00000000..9da1151a --- /dev/null +++ b/fireblocks_client/models/execution_screening_operation.py @@ -0,0 +1,106 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.execution_operation_status import ExecutionOperationStatus +from fireblocks_client.models.screening_operation_execution import ScreeningOperationExecution +from fireblocks_client.models.screening_operation_type import ScreeningOperationType +from fireblocks_client.models.screening_validation_failure import ScreeningValidationFailure +from typing import Optional, Set +from typing_extensions import Self + +class ExecutionScreeningOperation(BaseModel): + """ + ExecutionScreeningOperation + """ # noqa: E501 + operation_id: StrictStr = Field(alias="operationId") + status: ExecutionOperationStatus + operation_type: ScreeningOperationType = Field(alias="operationType") + validation_failure: Optional[ScreeningValidationFailure] = Field(default=None, alias="validationFailure") + execution: Optional[ScreeningOperationExecution] = None + __properties: ClassVar[List[str]] = ["operationId", "status", "operationType", "validationFailure", "execution"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ExecutionScreeningOperation from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of validation_failure + if self.validation_failure: + _dict['validationFailure'] = self.validation_failure.to_dict() + # override the default output from pydantic by calling `to_dict()` of execution + if self.execution: + _dict['execution'] = self.execution.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ExecutionScreeningOperation from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "operationId": obj.get("operationId"), + "status": obj.get("status"), + "operationType": obj.get("operationType"), + "validationFailure": ScreeningValidationFailure.from_dict(obj["validationFailure"]) if obj.get("validationFailure") is not None else None, + "execution": ScreeningOperationExecution.from_dict(obj["execution"]) if obj.get("execution") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/execution_transfer_operation.py b/fireblocks_client/models/execution_transfer_operation.py new file mode 100644 index 00000000..81bfee0a --- /dev/null +++ b/fireblocks_client/models/execution_transfer_operation.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.execution_operation_status import ExecutionOperationStatus +from fireblocks_client.models.transfer_operation_execution import TransferOperationExecution +from fireblocks_client.models.transfer_operation_preview import TransferOperationPreview +from fireblocks_client.models.transfer_operation_type import TransferOperationType +from fireblocks_client.models.transfer_validation_failure import TransferValidationFailure +from typing import Optional, Set +from typing_extensions import Self + +class ExecutionTransferOperation(BaseModel): + """ + ExecutionTransferOperation + """ # noqa: E501 + operation_id: StrictStr = Field(alias="operationId") + status: ExecutionOperationStatus + validation_failure: Optional[TransferValidationFailure] = Field(default=None, alias="validationFailure") + operation_type: TransferOperationType = Field(alias="operationType") + preview: Optional[TransferOperationPreview] = None + execution: Optional[TransferOperationExecution] = None + __properties: ClassVar[List[str]] = ["operationId", "status", "validationFailure", "operationType", "preview", "execution"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ExecutionTransferOperation from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of validation_failure + if self.validation_failure: + _dict['validationFailure'] = self.validation_failure.to_dict() + # override the default output from pydantic by calling `to_dict()` of preview + if self.preview: + _dict['preview'] = self.preview.to_dict() + # override the default output from pydantic by calling `to_dict()` of execution + if self.execution: + _dict['execution'] = self.execution.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ExecutionTransferOperation from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "operationId": obj.get("operationId"), + "status": obj.get("status"), + "validationFailure": TransferValidationFailure.from_dict(obj["validationFailure"]) if obj.get("validationFailure") is not None else None, + "operationType": obj.get("operationType"), + "preview": TransferOperationPreview.from_dict(obj["preview"]) if obj.get("preview") is not None else None, + "execution": TransferOperationExecution.from_dict(obj["execution"]) if obj.get("execution") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/external_wallet_asset.py b/fireblocks_client/models/external_wallet_asset.py new file mode 100644 index 00000000..ebc8f059 --- /dev/null +++ b/fireblocks_client/models/external_wallet_asset.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.config_change_request_status import ConfigChangeRequestStatus +from fireblocks_client.models.wallet_asset_additional_info import WalletAssetAdditionalInfo +from typing import Optional, Set +from typing_extensions import Self + +class ExternalWalletAsset(BaseModel): + """ + ExternalWalletAsset + """ # noqa: E501 + id: Optional[StrictStr] = None + status: Optional[ConfigChangeRequestStatus] = None + address: Optional[StrictStr] = None + balance: Optional[StrictStr] = None + locked_amount: Optional[StrictStr] = Field(default=None, alias="lockedAmount") + tag: Optional[StrictStr] = None + activation_time: Optional[StrictStr] = Field(default=None, alias="activationTime") + additional_info: Optional[List[WalletAssetAdditionalInfo]] = Field(default=None, alias="additionalInfo") + __properties: ClassVar[List[str]] = ["id", "status", "address", "balance", "lockedAmount", "tag", "activationTime", "additionalInfo"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ExternalWalletAsset from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in additional_info (list) + _items = [] + if self.additional_info: + for _item in self.additional_info: + if _item: + _items.append(_item.to_dict()) + _dict['additionalInfo'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ExternalWalletAsset from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "status": obj.get("status"), + "address": obj.get("address"), + "balance": obj.get("balance"), + "lockedAmount": obj.get("lockedAmount"), + "tag": obj.get("tag"), + "activationTime": obj.get("activationTime"), + "additionalInfo": [WalletAssetAdditionalInfo.from_dict(_item) for _item in obj["additionalInfo"]] if obj.get("additionalInfo") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/fee_info.py b/fireblocks_client/models/fee_info.py new file mode 100644 index 00000000..c8169feb --- /dev/null +++ b/fireblocks_client/models/fee_info.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class FeeInfo(BaseModel): + """ + Details of the transaction's fee. + """ # noqa: E501 + network_fee: Optional[StrictStr] = Field(default=None, description="The fee paid to the network", alias="networkFee") + service_fee: Optional[StrictStr] = Field(default=None, description="The total fee deducted by the exchange from the actual requested amount (serviceFee = amount - netAmount)", alias="serviceFee") + gas_price: Optional[StrictStr] = Field(default=None, alias="gasPrice") + __properties: ClassVar[List[str]] = ["networkFee", "serviceFee", "gasPrice"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of FeeInfo from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of FeeInfo from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "networkFee": obj.get("networkFee"), + "serviceFee": obj.get("serviceFee"), + "gasPrice": obj.get("gasPrice") + }) + return _obj + + diff --git a/fireblocks_client/models/fiat_account.py b/fireblocks_client/models/fiat_account.py new file mode 100644 index 00000000..3e9a01cd --- /dev/null +++ b/fireblocks_client/models/fiat_account.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.fiat_account_type import FiatAccountType +from fireblocks_client.models.fiat_asset import FiatAsset +from typing import Optional, Set +from typing_extensions import Self + +class FiatAccount(BaseModel): + """ + FiatAccount + """ # noqa: E501 + id: Optional[StrictStr] = None + type: Optional[FiatAccountType] = None + name: Optional[StrictStr] = Field(default=None, description="Display name of the fiat account") + address: Optional[StrictStr] = None + assets: Optional[List[FiatAsset]] = None + __properties: ClassVar[List[str]] = ["id", "type", "name", "address", "assets"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of FiatAccount from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in assets (list) + _items = [] + if self.assets: + for _item in self.assets: + if _item: + _items.append(_item.to_dict()) + _dict['assets'] = _items + # set to None if address (nullable) is None + # and model_fields_set contains the field + if self.address is None and "address" in self.model_fields_set: + _dict['address'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of FiatAccount from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "type": obj.get("type"), + "name": obj.get("name"), + "address": obj.get("address"), + "assets": [FiatAsset.from_dict(_item) for _item in obj["assets"]] if obj.get("assets") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/fiat_account_type.py b/fireblocks_client/models/fiat_account_type.py new file mode 100644 index 00000000..bb9006f0 --- /dev/null +++ b/fireblocks_client/models/fiat_account_type.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +from enum import Enum +from typing_extensions import Self + + +class FiatAccountType(str, Enum): + """ + FiatAccountType + """ + + """ + allowed enum values + """ + BLINC = 'BLINC' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of FiatAccountType from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/fireblocks_client/models/fiat_asset.py b/fireblocks_client/models/fiat_asset.py new file mode 100644 index 00000000..07cd6569 --- /dev/null +++ b/fireblocks_client/models/fiat_asset.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class FiatAsset(BaseModel): + """ + FiatAsset + """ # noqa: E501 + id: Optional[StrictStr] = None + balance: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["id", "balance"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of FiatAsset from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of FiatAsset from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "balance": obj.get("balance") + }) + return _obj + + diff --git a/fireblocks_client/models/freeze_transaction_response.py b/fireblocks_client/models/freeze_transaction_response.py new file mode 100644 index 00000000..863fbdb4 --- /dev/null +++ b/fireblocks_client/models/freeze_transaction_response.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class FreezeTransactionResponse(BaseModel): + """ + FreezeTransactionResponse + """ # noqa: E501 + success: Optional[StrictBool] = None + __properties: ClassVar[List[str]] = ["success"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of FreezeTransactionResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of FreezeTransactionResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success") + }) + return _obj + + diff --git a/fireblocks_client/models/function_doc.py b/fireblocks_client/models/function_doc.py new file mode 100644 index 00000000..62c1382d --- /dev/null +++ b/fireblocks_client/models/function_doc.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class FunctionDoc(BaseModel): + """ + FunctionDoc + """ # noqa: E501 + details: Optional[StrictStr] = Field(default=None, description="A description of the function") + params: Optional[Dict[str, StrictStr]] = Field(default=None, description="A description of the function parameters") + returns: Optional[Dict[str, StrictStr]] = Field(default=None, description="A description of the function return values. only for read functions") + __properties: ClassVar[List[str]] = ["details", "params", "returns"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of FunctionDoc from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of FunctionDoc from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "details": obj.get("details"), + "params": obj.get("params"), + "returns": obj.get("returns") + }) + return _obj + + diff --git a/fireblocks_client/models/funds.py b/fireblocks_client/models/funds.py new file mode 100644 index 00000000..6c1df18e --- /dev/null +++ b/fireblocks_client/models/funds.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictFloat, StrictInt +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class Funds(BaseModel): + """ + Funds + """ # noqa: E501 + amount: Optional[Union[StrictFloat, StrictInt]] = None + __properties: ClassVar[List[str]] = ["amount"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of Funds from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Funds from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "amount": obj.get("amount") + }) + return _obj + + diff --git a/fireblocks_client/models/gas_station_configuration.py b/fireblocks_client/models/gas_station_configuration.py new file mode 100644 index 00000000..595e1d98 --- /dev/null +++ b/fireblocks_client/models/gas_station_configuration.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GasStationConfiguration(BaseModel): + """ + GasStationConfiguration + """ # noqa: E501 + gas_threshold: Optional[StrictStr] = Field(default=None, alias="gasThreshold") + gas_cap: Optional[StrictStr] = Field(default=None, alias="gasCap") + max_gas_price: Optional[StrictStr] = Field(default=None, alias="maxGasPrice") + __properties: ClassVar[List[str]] = ["gasThreshold", "gasCap", "maxGasPrice"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GasStationConfiguration from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GasStationConfiguration from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "gasThreshold": obj.get("gasThreshold"), + "gasCap": obj.get("gasCap"), + "maxGasPrice": obj.get("maxGasPrice") + }) + return _obj + + diff --git a/fireblocks_client/models/gas_station_configuration_response.py b/fireblocks_client/models/gas_station_configuration_response.py new file mode 100644 index 00000000..d6f1c192 --- /dev/null +++ b/fireblocks_client/models/gas_station_configuration_response.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GasStationConfigurationResponse(BaseModel): + """ + GasStationConfigurationResponse + """ # noqa: E501 + gas_threshold: Optional[StrictStr] = Field(default=None, alias="gasThreshold") + gas_cap: Optional[StrictStr] = Field(default=None, alias="gasCap") + max_gas_price: Optional[StrictStr] = Field(default=None, alias="maxGasPrice") + __properties: ClassVar[List[str]] = ["gasThreshold", "gasCap", "maxGasPrice"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GasStationConfigurationResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if max_gas_price (nullable) is None + # and model_fields_set contains the field + if self.max_gas_price is None and "max_gas_price" in self.model_fields_set: + _dict['maxGasPrice'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GasStationConfigurationResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "gasThreshold": obj.get("gasThreshold"), + "gasCap": obj.get("gasCap"), + "maxGasPrice": obj.get("maxGasPrice") + }) + return _obj + + diff --git a/fireblocks_client/models/gas_station_properties_response.py b/fireblocks_client/models/gas_station_properties_response.py new file mode 100644 index 00000000..83a8b71e --- /dev/null +++ b/fireblocks_client/models/gas_station_properties_response.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.gas_station_configuration_response import GasStationConfigurationResponse +from typing import Optional, Set +from typing_extensions import Self + +class GasStationPropertiesResponse(BaseModel): + """ + GasStationPropertiesResponse + """ # noqa: E501 + balance: Optional[Dict[str, Any]] = None + configuration: Optional[GasStationConfigurationResponse] = None + __properties: ClassVar[List[str]] = ["balance", "configuration"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GasStationPropertiesResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of configuration + if self.configuration: + _dict['configuration'] = self.configuration.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GasStationPropertiesResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "balance": obj.get("balance"), + "configuration": GasStationConfigurationResponse.from_dict(obj["configuration"]) if obj.get("configuration") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/get_api_users_response.py b/fireblocks_client/models/get_api_users_response.py new file mode 100644 index 00000000..323f2d89 --- /dev/null +++ b/fireblocks_client/models/get_api_users_response.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List +from fireblocks_client.models.api_user import APIUser +from typing import Optional, Set +from typing_extensions import Self + +class GetAPIUsersResponse(BaseModel): + """ + GetAPIUsersResponse + """ # noqa: E501 + users: List[APIUser] + __properties: ClassVar[List[str]] = ["users"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetAPIUsersResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in users (list) + _items = [] + if self.users: + for _item in self.users: + if _item: + _items.append(_item.to_dict()) + _dict['users'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetAPIUsersResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "users": [APIUser.from_dict(_item) for _item in obj["users"]] if obj.get("users") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/get_audit_logs_response.py b/fireblocks_client/models/get_audit_logs_response.py new file mode 100644 index 00000000..398bd41f --- /dev/null +++ b/fireblocks_client/models/get_audit_logs_response.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from fireblocks_client.models.audit_log_data import AuditLogData +from typing import Optional, Set +from typing_extensions import Self + +class GetAuditLogsResponse(BaseModel): + """ + GetAuditLogsResponse + """ # noqa: E501 + data: Optional[List[AuditLogData]] = None + cursor: Optional[StrictStr] = Field(default=None, description="The next id to start fetch audit logs from") + total: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The total number of audit logs") + __properties: ClassVar[List[str]] = ["data", "cursor", "total"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetAuditLogsResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in data (list) + _items = [] + if self.data: + for _item in self.data: + if _item: + _items.append(_item.to_dict()) + _dict['data'] = _items + # set to None if cursor (nullable) is None + # and model_fields_set contains the field + if self.cursor is None and "cursor" in self.model_fields_set: + _dict['cursor'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetAuditLogsResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "data": [AuditLogData.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "cursor": obj.get("cursor"), + "total": obj.get("total") + }) + return _obj + + diff --git a/fireblocks_client/models/get_audit_logs_response_dto.py b/fireblocks_client/models/get_audit_logs_response_dto.py new file mode 100644 index 00000000..08e331ae --- /dev/null +++ b/fireblocks_client/models/get_audit_logs_response_dto.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class GetAuditLogsResponseDTO(BaseModel): + """ + GetAuditLogsResponseDTO + """ # noqa: E501 + data: Optional[List[Dict[str, Any]]] = None + total: Optional[Union[StrictFloat, StrictInt]] = None + cursor: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["data", "total", "cursor"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetAuditLogsResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if cursor (nullable) is None + # and model_fields_set contains the field + if self.cursor is None and "cursor" in self.model_fields_set: + _dict['cursor'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetAuditLogsResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "data": obj.get("data"), + "total": obj.get("total"), + "cursor": obj.get("cursor") + }) + return _obj + + diff --git a/fireblocks_client/models/get_connections_response.py b/fireblocks_client/models/get_connections_response.py new file mode 100644 index 00000000..f984cacd --- /dev/null +++ b/fireblocks_client/models/get_connections_response.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.paging import Paging +from fireblocks_client.models.session_dto import SessionDTO +from typing import Optional, Set +from typing_extensions import Self + +class GetConnectionsResponse(BaseModel): + """ + GetConnectionsResponse + """ # noqa: E501 + data: List[SessionDTO] = Field(description="Array with the requested Web3 connection's data") + paging: Optional[Paging] = None + __properties: ClassVar[List[str]] = ["data", "paging"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetConnectionsResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in data (list) + _items = [] + if self.data: + for _item in self.data: + if _item: + _items.append(_item.to_dict()) + _dict['data'] = _items + # override the default output from pydantic by calling `to_dict()` of paging + if self.paging: + _dict['paging'] = self.paging.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetConnectionsResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "data": [SessionDTO.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "paging": Paging.from_dict(obj["paging"]) if obj.get("paging") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/get_console_users_response.py b/fireblocks_client/models/get_console_users_response.py new file mode 100644 index 00000000..78f9ef9f --- /dev/null +++ b/fireblocks_client/models/get_console_users_response.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List +from fireblocks_client.models.console_user import ConsoleUser +from typing import Optional, Set +from typing_extensions import Self + +class GetConsoleUsersResponse(BaseModel): + """ + GetConsoleUsersResponse + """ # noqa: E501 + users: List[ConsoleUser] + __properties: ClassVar[List[str]] = ["users"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetConsoleUsersResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in users (list) + _items = [] + if self.users: + for _item in self.users: + if _item: + _items.append(_item.to_dict()) + _dict['users'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetConsoleUsersResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "users": [ConsoleUser.from_dict(_item) for _item in obj["users"]] if obj.get("users") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/get_filter_parameter.py b/fireblocks_client/models/get_filter_parameter.py new file mode 100644 index 00000000..f32301cb --- /dev/null +++ b/fireblocks_client/models/get_filter_parameter.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class GetFilterParameter(BaseModel): + """ + GetFilterParameter + """ # noqa: E501 + id: Optional[StrictStr] = None + user_id: Optional[StrictStr] = Field(default=None, alias="userId") + vault_account_id: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="vaultAccountId") + connection_method: Optional[StrictStr] = Field(default=None, alias="connectionMethod") + fee_level: Optional[StrictStr] = Field(default=None, alias="feeLevel") + app_url: Optional[StrictStr] = Field(default=None, alias="appUrl") + app_name: Optional[StrictStr] = Field(default=None, alias="appName") + __properties: ClassVar[List[str]] = ["id", "userId", "vaultAccountId", "connectionMethod", "feeLevel", "appUrl", "appName"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetFilterParameter from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetFilterParameter from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "userId": obj.get("userId"), + "vaultAccountId": obj.get("vaultAccountId"), + "connectionMethod": obj.get("connectionMethod"), + "feeLevel": obj.get("feeLevel"), + "appUrl": obj.get("appUrl"), + "appName": obj.get("appName") + }) + return _obj + + diff --git a/fireblocks_client/models/get_max_spendable_amount_response.py b/fireblocks_client/models/get_max_spendable_amount_response.py new file mode 100644 index 00000000..748c94cd --- /dev/null +++ b/fireblocks_client/models/get_max_spendable_amount_response.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetMaxSpendableAmountResponse(BaseModel): + """ + GetMaxSpendableAmountResponse + """ # noqa: E501 + max_spendable_amount: Optional[StrictStr] = Field(default=None, description="The maximum amount that can be spent from the vault account", alias="maxSpendableAmount") + __properties: ClassVar[List[str]] = ["maxSpendableAmount"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetMaxSpendableAmountResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetMaxSpendableAmountResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "maxSpendableAmount": obj.get("maxSpendableAmount") + }) + return _obj + + diff --git a/fireblocks_client/models/get_nfts_response.py b/fireblocks_client/models/get_nfts_response.py new file mode 100644 index 00000000..7a876ecb --- /dev/null +++ b/fireblocks_client/models/get_nfts_response.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.paging import Paging +from fireblocks_client.models.token_response import TokenResponse +from typing import Optional, Set +from typing_extensions import Self + +class GetNFTsResponse(BaseModel): + """ + GetNFTsResponse + """ # noqa: E501 + paging: Optional[Paging] = None + data: Optional[List[TokenResponse]] = None + __properties: ClassVar[List[str]] = ["paging", "data"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetNFTsResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of paging + if self.paging: + _dict['paging'] = self.paging.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in data (list) + _items = [] + if self.data: + for _item in self.data: + if _item: + _items.append(_item.to_dict()) + _dict['data'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetNFTsResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "paging": Paging.from_dict(obj["paging"]) if obj.get("paging") is not None else None, + "data": [TokenResponse.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/get_ota_status_response.py b/fireblocks_client/models/get_ota_status_response.py new file mode 100644 index 00000000..0488c543 --- /dev/null +++ b/fireblocks_client/models/get_ota_status_response.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetOtaStatusResponse(BaseModel): + """ + GetOtaStatusResponse + """ # noqa: E501 + enabled: Optional[StrictBool] = Field(default=None, description="Current OTA status") + __properties: ClassVar[List[str]] = ["enabled"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetOtaStatusResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetOtaStatusResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "enabled": obj.get("enabled") + }) + return _obj + + diff --git a/fireblocks_client/models/get_ownership_tokens_response.py b/fireblocks_client/models/get_ownership_tokens_response.py new file mode 100644 index 00000000..417f17c8 --- /dev/null +++ b/fireblocks_client/models/get_ownership_tokens_response.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.paging import Paging +from fireblocks_client.models.token_ownership_response import TokenOwnershipResponse +from typing import Optional, Set +from typing_extensions import Self + +class GetOwnershipTokensResponse(BaseModel): + """ + GetOwnershipTokensResponse + """ # noqa: E501 + paging: Optional[Paging] = None + data: Optional[List[TokenOwnershipResponse]] = None + __properties: ClassVar[List[str]] = ["paging", "data"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetOwnershipTokensResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of paging + if self.paging: + _dict['paging'] = self.paging.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in data (list) + _items = [] + if self.data: + for _item in self.data: + if _item: + _items.append(_item.to_dict()) + _dict['data'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetOwnershipTokensResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "paging": Paging.from_dict(obj["paging"]) if obj.get("paging") is not None else None, + "data": [TokenOwnershipResponse.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/get_transaction_operation.py b/fireblocks_client/models/get_transaction_operation.py new file mode 100644 index 00000000..b98111f9 --- /dev/null +++ b/fireblocks_client/models/get_transaction_operation.py @@ -0,0 +1,48 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +from enum import Enum +from typing_extensions import Self + + +class GetTransactionOperation(str, Enum): + """ + * `TRANSFER` - Transfers funds from one account to another. UTXO blockchains allow multi-input and multi-output transfers. All other blockchains allow transfers with one source address and one destination address. * `MINT` - Mints new tokens. Supported for Stellar, Ripple and EVM-based blockchains. * `BURN` - Burns tokens. Supported for Stellar, Ripple and EVM-based blockchains. * `CONTRACT_CALL` - Calls a smart contract method for web3 operations on any EVM blockchain. The Fireblocks [development libraries](https://developers.fireblocks.com/docs/ethereum-development#convenience-libraries) are recommended for building contract call transactions. * `TYPED_MESSAGE` - An off-chain message in either Ethereum Personal Message or EIP712 format. Use it to sign specific readable messages that are not actual transactions. [Learn more about typed messages](https://developers.fireblocks.com/docs/typed-message-signing). * `RAW` - An off-chain message with no predefined format. Use it to sign any message with your private key, including protocols such as blockchains and custom transaction types that are not natively supported by Fireblocks. [Learn more about raw signing transactions.](https://developers.fireblocks.com/docs/raw-message-signing) * `ENABLE_ASSET` - Algorand, DigitalBits, Solana, and Stellar require an on-chain transaction to create an asset wallet and enable the deposit address. This transaction is automatically created when adding assets on these blockchains at a vault account. * `STAKE` - Assign assets to a staking pool managed by a staking validator. Supported for Stellar and EVM-based blockchains. This transaction is automatically created when performing staking operations. * `UNSTAKE` - Remove assets from a staking pool managed by a staking validator. Supported for Stellar and EVM-based blockchains. This transaction is automatically created when performing staking operations. * `WITHDRAW` - Transfer assets from a dedicated staking vault account to another address. Supported for Stellar and EVM-based blockchains. This transaction is automatically created when performing staking operations. **Note:** Fireblocks will rename this type from `WITHDRAW` to a different type name soon. There will be a 7-day notice regarding the new type name. * `SUPPLY_TO_COMPOUND` - Deprecated since April 1st, 2023. Older transactions may have this as their operation, in case users in the workspace have used the direct integration between Fireblocks and the Compound DeFI protocol. * `REDEEM_FROM_COMPOUND` - Deprecated since April 1st, 2023. Older transactions may have this as their operation, in case users in the workspace have used the direct integration between Fireblocks and the Compound DeFI protocol. + """ + + """ + allowed enum values + """ + TRANSFER = 'TRANSFER' + BURN = 'BURN' + CONTRACT_CALL = 'CONTRACT_CALL' + MINT = 'MINT' + RAW = 'RAW' + TYPED_MESSAGE = 'TYPED_MESSAGE' + ENABLE_ASSET = 'ENABLE_ASSET' + STAKE = 'STAKE' + UNSTAKE = 'UNSTAKE' + WITHDRAW = 'WITHDRAW' + REDEEM_FROM_COMPOUND = 'REDEEM_FROM_COMPOUND' + SUPPLY_TO_COMPOUND = 'SUPPLY_TO_COMPOUND' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of GetTransactionOperation from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/fireblocks_client/models/get_whitelist_ip_addresses_response.py b/fireblocks_client/models/get_whitelist_ip_addresses_response.py new file mode 100644 index 00000000..b11c49a4 --- /dev/null +++ b/fireblocks_client/models/get_whitelist_ip_addresses_response.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetWhitelistIpAddressesResponse(BaseModel): + """ + GetWhitelistIpAddressesResponse + """ # noqa: E501 + user_id: Optional[StrictStr] = Field(default=None, description="The ID of the user", alias="userId") + whitelisted_ips: Optional[List[StrictStr]] = Field(default=None, description="List of whitelisted ip addresses", alias="whitelistedIps") + __properties: ClassVar[List[str]] = ["userId", "whitelistedIps"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetWhitelistIpAddressesResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if whitelisted_ips (nullable) is None + # and model_fields_set contains the field + if self.whitelisted_ips is None and "whitelisted_ips" in self.model_fields_set: + _dict['whitelistedIps'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetWhitelistIpAddressesResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "userId": obj.get("userId"), + "whitelistedIps": obj.get("whitelistedIps") + }) + return _obj + + diff --git a/fireblocks_client/models/get_workspace_status_response.py b/fireblocks_client/models/get_workspace_status_response.py new file mode 100644 index 00000000..f9397042 --- /dev/null +++ b/fireblocks_client/models/get_workspace_status_response.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetWorkspaceStatusResponse(BaseModel): + """ + GetWorkspaceStatusResponse + """ # noqa: E501 + status: Optional[StrictStr] = Field(default=None, description="Current workspace status") + __properties: ClassVar[List[str]] = ["status"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetWorkspaceStatusResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetWorkspaceStatusResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "status": obj.get("status") + }) + return _obj + + diff --git a/fireblocks_client/models/http_contract_does_not_exist_error.py b/fireblocks_client/models/http_contract_does_not_exist_error.py new file mode 100644 index 00000000..2a6a6013 --- /dev/null +++ b/fireblocks_client/models/http_contract_does_not_exist_error.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class HttpContractDoesNotExistError(BaseModel): + """ + HttpContractDoesNotExistError + """ # noqa: E501 + message: Optional[StrictStr] = Field(default=None, description="Not Found error code") + code: Optional[StrictStr] = Field(default=None, description="Error code") + __properties: ClassVar[List[str]] = ["message", "code"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of HttpContractDoesNotExistError from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of HttpContractDoesNotExistError from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "message": obj.get("message"), + "code": obj.get("code") + }) + return _obj + + diff --git a/fireblocks_client/models/instruction_amount.py b/fireblocks_client/models/instruction_amount.py new file mode 100644 index 00000000..8f580ae5 --- /dev/null +++ b/fireblocks_client/models/instruction_amount.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class InstructionAmount(BaseModel): + """ + InstructionAmount + """ # noqa: E501 + amount: StrictStr + asset_id: StrictStr = Field(alias="assetId") + __properties: ClassVar[List[str]] = ["amount", "assetId"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of InstructionAmount from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of InstructionAmount from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "amount": obj.get("amount"), + "assetId": obj.get("assetId") + }) + return _obj + + diff --git a/fireblocks_client/models/internal_transfer_response.py b/fireblocks_client/models/internal_transfer_response.py new file mode 100644 index 00000000..20aeefc2 --- /dev/null +++ b/fireblocks_client/models/internal_transfer_response.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictBool +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class InternalTransferResponse(BaseModel): + """ + InternalTransferResponse + """ # noqa: E501 + success: StrictBool = Field(description="Indicates whether the transfer was successful") + __properties: ClassVar[List[str]] = ["success"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of InternalTransferResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of InternalTransferResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success") + }) + return _obj + + diff --git a/fireblocks_client/models/job.py b/fireblocks_client/models/job.py new file mode 100644 index 00000000..bad0db65 --- /dev/null +++ b/fireblocks_client/models/job.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from fireblocks_client.models.task import Task +from typing import Optional, Set +from typing_extensions import Self + +class Job(BaseModel): + """ + Job + """ # noqa: E501 + id: Optional[StrictStr] = None + tenant_id: Optional[StrictStr] = Field(default=None, alias="tenantId") + type: Optional[StrictStr] = None + user_id: Optional[StrictStr] = Field(default=None, alias="userId") + created: Optional[Union[StrictFloat, StrictInt]] = None + updated: Optional[Union[StrictFloat, StrictInt]] = None + state: Optional[StrictStr] = None + tasks: Optional[List[Task]] = None + __properties: ClassVar[List[str]] = ["id", "tenantId", "type", "userId", "created", "updated", "state", "tasks"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of Job from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in tasks (list) + _items = [] + if self.tasks: + for _item in self.tasks: + if _item: + _items.append(_item.to_dict()) + _dict['tasks'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Job from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "tenantId": obj.get("tenantId"), + "type": obj.get("type"), + "userId": obj.get("userId"), + "created": obj.get("created"), + "updated": obj.get("updated"), + "state": obj.get("state"), + "tasks": [Task.from_dict(_item) for _item in obj["tasks"]] if obj.get("tasks") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/job_created.py b/fireblocks_client/models/job_created.py new file mode 100644 index 00000000..a6fcd91c --- /dev/null +++ b/fireblocks_client/models/job_created.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class JobCreated(BaseModel): + """ + JobCreated + """ # noqa: E501 + job_id: Optional[StrictStr] = Field(default=None, alias="jobId") + __properties: ClassVar[List[str]] = ["jobId"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of JobCreated from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of JobCreated from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "jobId": obj.get("jobId") + }) + return _obj + + diff --git a/fireblocks_client/models/lean_abi_function.py b/fireblocks_client/models/lean_abi_function.py new file mode 100644 index 00000000..1ef287b9 --- /dev/null +++ b/fireblocks_client/models/lean_abi_function.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class LeanAbiFunction(BaseModel): + """ + LeanAbiFunction + """ # noqa: E501 + name: Optional[StrictStr] = Field(default=None, description="The function name") + inputs: List[ParameterWithValue] = Field(description="The function inputs") + __properties: ClassVar[List[str]] = ["name", "inputs"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of LeanAbiFunction from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in inputs (list) + _items = [] + if self.inputs: + for _item in self.inputs: + if _item: + _items.append(_item.to_dict()) + _dict['inputs'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of LeanAbiFunction from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "inputs": [ParameterWithValue.from_dict(_item) for _item in obj["inputs"]] if obj.get("inputs") is not None else None + }) + return _obj + +from fireblocks_client.models.parameter_with_value import ParameterWithValue +# TODO: Rewrite to not use raise_errors +LeanAbiFunction.model_rebuild(raise_errors=False) + diff --git a/fireblocks_client/models/lean_contract_dto.py b/fireblocks_client/models/lean_contract_dto.py new file mode 100644 index 00000000..7c43d519 --- /dev/null +++ b/fireblocks_client/models/lean_contract_dto.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictBool, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.contract_attributes import ContractAttributes +from fireblocks_client.models.vendor_dto import VendorDto +from typing import Optional, Set +from typing_extensions import Self + +class LeanContractDto(BaseModel): + """ + LeanContractDto + """ # noqa: E501 + id: StrictStr = Field(description="The unique identifier of the contract template") + name: StrictStr = Field(description="The name of the contract template") + description: StrictStr = Field(description="A short description of the contract template") + attributes: Optional[ContractAttributes] = Field(default=None, description="The attributes related to this contract template. It will be displayed in the tokenization page") + is_public: StrictBool = Field(description="Is this a contract that is viewable by all fireblocks's users or is it visible only for this workspace", alias="isPublic") + can_deploy: Optional[StrictBool] = Field(default=None, description="True if the workspace allowed to deploy this contract, false otherwise", alias="canDeploy") + owner: Optional[StrictStr] = Field(default=None, description="The workspace id of the owner of this contract template. If it's a private contract, only this workspace will be allowed to deploy it") + vendor: Optional[VendorDto] = Field(default=None, description="The details of the vendor of this contract template. Applicable only for public contract templates") + type: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["id", "name", "description", "attributes", "isPublic", "canDeploy", "owner", "vendor", "type"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['FUNGIBLE_TOKEN', 'NON_FUNGIBLE_TOKEN', 'NON_TOKEN', 'TOKEN_EXTENSION', 'TOKEN_UTILITY']): + raise ValueError("must be one of enum values ('FUNGIBLE_TOKEN', 'NON_FUNGIBLE_TOKEN', 'NON_TOKEN', 'TOKEN_EXTENSION', 'TOKEN_UTILITY')") + return value + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of LeanContractDto from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of attributes + if self.attributes: + _dict['attributes'] = self.attributes.to_dict() + # override the default output from pydantic by calling `to_dict()` of vendor + if self.vendor: + _dict['vendor'] = self.vendor.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of LeanContractDto from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "name": obj.get("name"), + "description": obj.get("description"), + "attributes": ContractAttributes.from_dict(obj["attributes"]) if obj.get("attributes") is not None else None, + "isPublic": obj.get("isPublic"), + "canDeploy": obj.get("canDeploy"), + "owner": obj.get("owner"), + "vendor": VendorDto.from_dict(obj["vendor"]) if obj.get("vendor") is not None else None, + "type": obj.get("type") + }) + return _obj + + diff --git a/fireblocks_client/models/lean_deployed_contract_response_dto.py b/fireblocks_client/models/lean_deployed_contract_response_dto.py new file mode 100644 index 00000000..215e5353 --- /dev/null +++ b/fireblocks_client/models/lean_deployed_contract_response_dto.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class LeanDeployedContractResponseDto(BaseModel): + """ + LeanDeployedContractResponseDto + """ # noqa: E501 + id: StrictStr = Field(description="The deployed contract data identifier") + contract_address: StrictStr = Field(description="The contract's onchain address", alias="contractAddress") + contract_template_id: StrictStr = Field(description="The contract template identifier", alias="contractTemplateId") + blockchain_id: StrictStr = Field(alias="blockchainId") + __properties: ClassVar[List[str]] = ["id", "contractAddress", "contractTemplateId", "blockchainId"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of LeanDeployedContractResponseDto from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of LeanDeployedContractResponseDto from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "contractAddress": obj.get("contractAddress"), + "contractTemplateId": obj.get("contractTemplateId"), + "blockchainId": obj.get("blockchainId") + }) + return _obj + + diff --git a/fireblocks_client/models/list_owned_collections_response.py b/fireblocks_client/models/list_owned_collections_response.py new file mode 100644 index 00000000..a33aca37 --- /dev/null +++ b/fireblocks_client/models/list_owned_collections_response.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.collection_ownership_response import CollectionOwnershipResponse +from fireblocks_client.models.paging import Paging +from typing import Optional, Set +from typing_extensions import Self + +class ListOwnedCollectionsResponse(BaseModel): + """ + ListOwnedCollectionsResponse + """ # noqa: E501 + paging: Optional[Paging] = None + data: Optional[List[CollectionOwnershipResponse]] = None + __properties: ClassVar[List[str]] = ["paging", "data"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ListOwnedCollectionsResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of paging + if self.paging: + _dict['paging'] = self.paging.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in data (list) + _items = [] + if self.data: + for _item in self.data: + if _item: + _items.append(_item.to_dict()) + _dict['data'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ListOwnedCollectionsResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "paging": Paging.from_dict(obj["paging"]) if obj.get("paging") is not None else None, + "data": [CollectionOwnershipResponse.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/list_owned_tokens_response.py b/fireblocks_client/models/list_owned_tokens_response.py new file mode 100644 index 00000000..8c1472c6 --- /dev/null +++ b/fireblocks_client/models/list_owned_tokens_response.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.paging import Paging +from fireblocks_client.models.token_response import TokenResponse +from typing import Optional, Set +from typing_extensions import Self + +class ListOwnedTokensResponse(BaseModel): + """ + ListOwnedTokensResponse + """ # noqa: E501 + paging: Optional[Paging] = None + data: Optional[List[TokenResponse]] = None + __properties: ClassVar[List[str]] = ["paging", "data"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ListOwnedTokensResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of paging + if self.paging: + _dict['paging'] = self.paging.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in data (list) + _items = [] + if self.data: + for _item in self.data: + if _item: + _items.append(_item.to_dict()) + _dict['data'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ListOwnedTokensResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "paging": Paging.from_dict(obj["paging"]) if obj.get("paging") is not None else None, + "data": [TokenResponse.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/media_entity_response.py b/fireblocks_client/models/media_entity_response.py new file mode 100644 index 00000000..1e88a1d1 --- /dev/null +++ b/fireblocks_client/models/media_entity_response.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, field_validator +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class MediaEntityResponse(BaseModel): + """ + MediaEntityResponse + """ # noqa: E501 + url: StrictStr = Field(description="Cached accessible URL") + content_type: StrictStr = Field(description="Media type", alias="contentType") + __properties: ClassVar[List[str]] = ["url", "contentType"] + + @field_validator('content_type') + def content_type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['IMAGE', 'VIDEO', 'ANIMATION', 'THREE_D', 'TEXT', 'GIF', 'UNKNOWN_TYPE', 'SVG', 'AUDIO']): + raise ValueError("must be one of enum values ('IMAGE', 'VIDEO', 'ANIMATION', 'THREE_D', 'TEXT', 'GIF', 'UNKNOWN_TYPE', 'SVG', 'AUDIO')") + return value + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of MediaEntityResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of MediaEntityResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "url": obj.get("url"), + "contentType": obj.get("contentType") + }) + return _obj + + diff --git a/fireblocks_client/models/network_channel.py b/fireblocks_client/models/network_channel.py new file mode 100644 index 00000000..6664032b --- /dev/null +++ b/fireblocks_client/models/network_channel.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class NetworkChannel(BaseModel): + """ + Deprecated in the only used reference - NetworkConnectionResponse + """ # noqa: E501 + network_id: Optional[StrictStr] = Field(default=None, alias="networkId") + name: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["networkId", "name"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of NetworkChannel from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of NetworkChannel from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "networkId": obj.get("networkId"), + "name": obj.get("name") + }) + return _obj + + diff --git a/fireblocks_client/models/network_connection.py b/fireblocks_client/models/network_connection.py new file mode 100644 index 00000000..cad13644 --- /dev/null +++ b/fireblocks_client/models/network_connection.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.network_connection_routing_policy_value import NetworkConnectionRoutingPolicyValue +from typing import Optional, Set +from typing_extensions import Self + +class NetworkConnection(BaseModel): + """ + NetworkConnection + """ # noqa: E501 + local_network_id: StrictStr = Field(description="The network ID of the profile trying to create the connection.", alias="localNetworkId") + remote_network_id: StrictStr = Field(description="The network ID the profile is attempting to connect to.", alias="remoteNetworkId") + routing_policy: Optional[Dict[str, NetworkConnectionRoutingPolicyValue]] = Field(default=None, alias="routingPolicy") + __properties: ClassVar[List[str]] = ["localNetworkId", "remoteNetworkId", "routingPolicy"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of NetworkConnection from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each value in routing_policy (dict) + _field_dict = {} + if self.routing_policy: + for _key in self.routing_policy: + if self.routing_policy[_key]: + _field_dict[_key] = self.routing_policy[_key].to_dict() + _dict['routingPolicy'] = _field_dict + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of NetworkConnection from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "localNetworkId": obj.get("localNetworkId"), + "remoteNetworkId": obj.get("remoteNetworkId"), + "routingPolicy": dict( + (_k, NetworkConnectionRoutingPolicyValue.from_dict(_v)) + for _k, _v in obj["routingPolicy"].items() + ) + if obj.get("routingPolicy") is not None + else None + }) + return _obj + + diff --git a/fireblocks_client/models/network_connection_response.py b/fireblocks_client/models/network_connection_response.py new file mode 100644 index 00000000..5e6a1b6a --- /dev/null +++ b/fireblocks_client/models/network_connection_response.py @@ -0,0 +1,128 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.network_channel import NetworkChannel +from fireblocks_client.models.network_connection_routing_policy_value import NetworkConnectionRoutingPolicyValue +from fireblocks_client.models.network_connection_status import NetworkConnectionStatus +from fireblocks_client.models.network_id import NetworkId +from typing import Optional, Set +from typing_extensions import Self + +class NetworkConnectionResponse(BaseModel): + """ + NetworkConnectionResponse + """ # noqa: E501 + id: StrictStr + local_channel: Optional[NetworkChannel] = Field(default=None, description="Deprecated - Replaced by `localNetworkId`", alias="localChannel") + remote_channel: Optional[NetworkChannel] = Field(default=None, description="Deprecated - Replaced by `remoteNetworkId`", alias="remoteChannel") + status: NetworkConnectionStatus + local_network_id: NetworkId = Field(alias="localNetworkId") + remote_network_id: NetworkId = Field(alias="remoteNetworkId") + routing_policy: Dict[str, NetworkConnectionRoutingPolicyValue] = Field(alias="routingPolicy") + __properties: ClassVar[List[str]] = ["id", "localChannel", "remoteChannel", "status", "localNetworkId", "remoteNetworkId", "routingPolicy"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of NetworkConnectionResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of local_channel + if self.local_channel: + _dict['localChannel'] = self.local_channel.to_dict() + # override the default output from pydantic by calling `to_dict()` of remote_channel + if self.remote_channel: + _dict['remoteChannel'] = self.remote_channel.to_dict() + # override the default output from pydantic by calling `to_dict()` of local_network_id + if self.local_network_id: + _dict['localNetworkId'] = self.local_network_id.to_dict() + # override the default output from pydantic by calling `to_dict()` of remote_network_id + if self.remote_network_id: + _dict['remoteNetworkId'] = self.remote_network_id.to_dict() + # override the default output from pydantic by calling `to_dict()` of each value in routing_policy (dict) + _field_dict = {} + if self.routing_policy: + for _key in self.routing_policy: + if self.routing_policy[_key]: + _field_dict[_key] = self.routing_policy[_key].to_dict() + _dict['routingPolicy'] = _field_dict + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of NetworkConnectionResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "localChannel": NetworkChannel.from_dict(obj["localChannel"]) if obj.get("localChannel") is not None else None, + "remoteChannel": NetworkChannel.from_dict(obj["remoteChannel"]) if obj.get("remoteChannel") is not None else None, + "status": obj.get("status"), + "localNetworkId": NetworkId.from_dict(obj["localNetworkId"]) if obj.get("localNetworkId") is not None else None, + "remoteNetworkId": NetworkId.from_dict(obj["remoteNetworkId"]) if obj.get("remoteNetworkId") is not None else None, + "routingPolicy": dict( + (_k, NetworkConnectionRoutingPolicyValue.from_dict(_v)) + for _k, _v in obj["routingPolicy"].items() + ) + if obj.get("routingPolicy") is not None + else None + }) + return _obj + + diff --git a/fireblocks_client/models/network_connection_routing_policy_value.py b/fireblocks_client/models/network_connection_routing_policy_value.py new file mode 100644 index 00000000..e62d2ade --- /dev/null +++ b/fireblocks_client/models/network_connection_routing_policy_value.py @@ -0,0 +1,152 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +import pprint +from pydantic import BaseModel, Field, StrictStr, ValidationError, field_validator +from typing import Any, List, Optional +from fireblocks_client.models.custom_routing_dest import CustomRoutingDest +from fireblocks_client.models.default_network_routing_dest import DefaultNetworkRoutingDest +from fireblocks_client.models.none_network_routing_dest import NoneNetworkRoutingDest +from pydantic import StrictStr, Field +from typing import Union, List, Optional, Dict +from typing_extensions import Literal, Self + +NETWORKCONNECTIONROUTINGPOLICYVALUE_ONE_OF_SCHEMAS = ["CustomRoutingDest", "DefaultNetworkRoutingDest", "NoneNetworkRoutingDest"] + +class NetworkConnectionRoutingPolicyValue(BaseModel): + """ + NetworkConnectionRoutingPolicyValue + """ + # data type: CustomRoutingDest + oneof_schema_1_validator: Optional[CustomRoutingDest] = None + # data type: DefaultNetworkRoutingDest + oneof_schema_2_validator: Optional[DefaultNetworkRoutingDest] = None + # data type: NoneNetworkRoutingDest + oneof_schema_3_validator: Optional[NoneNetworkRoutingDest] = None + actual_instance: Optional[Union[CustomRoutingDest, DefaultNetworkRoutingDest, NoneNetworkRoutingDest]] = None + one_of_schemas: List[str] = Field(default=Literal["CustomRoutingDest", "DefaultNetworkRoutingDest", "NoneNetworkRoutingDest"]) + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_oneof(cls, v): + instance = NetworkConnectionRoutingPolicyValue.model_construct() + error_messages = [] + match = 0 + # validate data type: CustomRoutingDest + if not isinstance(v, CustomRoutingDest): + error_messages.append(f"Error! Input type `{type(v)}` is not `CustomRoutingDest`") + else: + match += 1 + # validate data type: DefaultNetworkRoutingDest + if not isinstance(v, DefaultNetworkRoutingDest): + error_messages.append(f"Error! Input type `{type(v)}` is not `DefaultNetworkRoutingDest`") + else: + match += 1 + # validate data type: NoneNetworkRoutingDest + if not isinstance(v, NoneNetworkRoutingDest): + error_messages.append(f"Error! Input type `{type(v)}` is not `NoneNetworkRoutingDest`") + else: + match += 1 + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in NetworkConnectionRoutingPolicyValue with oneOf schemas: CustomRoutingDest, DefaultNetworkRoutingDest, NoneNetworkRoutingDest. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in NetworkConnectionRoutingPolicyValue with oneOf schemas: CustomRoutingDest, DefaultNetworkRoutingDest, NoneNetworkRoutingDest. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + match = 0 + + # deserialize data into CustomRoutingDest + try: + instance.actual_instance = CustomRoutingDest.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into DefaultNetworkRoutingDest + try: + instance.actual_instance = DefaultNetworkRoutingDest.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into NoneNetworkRoutingDest + try: + instance.actual_instance = NoneNetworkRoutingDest.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when deserializing the JSON string into NetworkConnectionRoutingPolicyValue with oneOf schemas: CustomRoutingDest, DefaultNetworkRoutingDest, NoneNetworkRoutingDest. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into NetworkConnectionRoutingPolicyValue with oneOf schemas: CustomRoutingDest, DefaultNetworkRoutingDest, NoneNetworkRoutingDest. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], CustomRoutingDest, DefaultNetworkRoutingDest, NoneNetworkRoutingDest]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + # primitive type + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/fireblocks_client/models/network_connection_status.py b/fireblocks_client/models/network_connection_status.py new file mode 100644 index 00000000..80651817 --- /dev/null +++ b/fireblocks_client/models/network_connection_status.py @@ -0,0 +1,45 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +from enum import Enum +from typing_extensions import Self + + +class NetworkConnectionStatus(str, Enum): + """ + NetworkConnectionStatus + """ + + """ + allowed enum values + """ + WAITING_FOR_APPROVAL = 'WAITING_FOR_APPROVAL' + WAITING_FOR_PEER_APPROVAL = 'WAITING_FOR_PEER_APPROVAL' + APPROVED = 'APPROVED' + CANCELLED = 'CANCELLED' + FAILED = 'FAILED' + REJECTED = 'REJECTED' + REJECTED_BY_PEER = 'REJECTED_BY_PEER' + REMOVED = 'REMOVED' + REMOVED_BY_PEER = 'REMOVED_BY_PEER' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of NetworkConnectionStatus from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/fireblocks_client/models/network_fee.py b/fireblocks_client/models/network_fee.py new file mode 100644 index 00000000..62cb1c18 --- /dev/null +++ b/fireblocks_client/models/network_fee.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class NetworkFee(BaseModel): + """ + NetworkFee + """ # noqa: E501 + fee_per_byte: Optional[StrictStr] = Field(default=None, alias="feePerByte") + gas_price: Optional[StrictStr] = Field(default=None, alias="gasPrice") + network_fee: Optional[StrictStr] = Field(default=None, alias="networkFee") + base_fee: Optional[StrictStr] = Field(default=None, description="(optional) Base Fee according to EIP-1559 (ETH assets)", alias="baseFee") + priority_fee: Optional[StrictStr] = Field(default=None, description="(optional) Priority Fee according to EIP-1559 (ETH assets)", alias="priorityFee") + __properties: ClassVar[List[str]] = ["feePerByte", "gasPrice", "networkFee", "baseFee", "priorityFee"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of NetworkFee from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of NetworkFee from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "feePerByte": obj.get("feePerByte"), + "gasPrice": obj.get("gasPrice"), + "networkFee": obj.get("networkFee"), + "baseFee": obj.get("baseFee"), + "priorityFee": obj.get("priorityFee") + }) + return _obj + + diff --git a/fireblocks_client/models/network_id.py b/fireblocks_client/models/network_id.py new file mode 100644 index 00000000..64b64421 --- /dev/null +++ b/fireblocks_client/models/network_id.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class NetworkId(BaseModel): + """ + NetworkId + """ # noqa: E501 + id: StrictStr + name: StrictStr + __properties: ClassVar[List[str]] = ["id", "name"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of NetworkId from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of NetworkId from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "name": obj.get("name") + }) + return _obj + + diff --git a/fireblocks_client/models/network_id_response.py b/fireblocks_client/models/network_id_response.py new file mode 100644 index 00000000..e76eae1a --- /dev/null +++ b/fireblocks_client/models/network_id_response.py @@ -0,0 +1,107 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.network_id_routing_policy_value import NetworkIdRoutingPolicyValue +from typing import Optional, Set +from typing_extensions import Self + +class NetworkIdResponse(BaseModel): + """ + NetworkIdResponse + """ # noqa: E501 + id: StrictStr + name: StrictStr + routing_policy: Optional[Dict[str, NetworkIdRoutingPolicyValue]] = Field(default=None, alias="routingPolicy") + is_discoverable: Optional[StrictBool] = Field(default=None, description="The specific network is discoverable.", alias="isDiscoverable") + __properties: ClassVar[List[str]] = ["id", "name", "routingPolicy", "isDiscoverable"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of NetworkIdResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each value in routing_policy (dict) + _field_dict = {} + if self.routing_policy: + for _key in self.routing_policy: + if self.routing_policy[_key]: + _field_dict[_key] = self.routing_policy[_key].to_dict() + _dict['routingPolicy'] = _field_dict + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of NetworkIdResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "name": obj.get("name"), + "routingPolicy": dict( + (_k, NetworkIdRoutingPolicyValue.from_dict(_v)) + for _k, _v in obj["routingPolicy"].items() + ) + if obj.get("routingPolicy") is not None + else None, + "isDiscoverable": obj.get("isDiscoverable") + }) + return _obj + + diff --git a/fireblocks_client/models/network_id_routing_policy_value.py b/fireblocks_client/models/network_id_routing_policy_value.py new file mode 100644 index 00000000..933650a5 --- /dev/null +++ b/fireblocks_client/models/network_id_routing_policy_value.py @@ -0,0 +1,138 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +import pprint +from pydantic import BaseModel, Field, StrictStr, ValidationError, field_validator +from typing import Any, List, Optional +from fireblocks_client.models.custom_routing_dest import CustomRoutingDest +from fireblocks_client.models.none_network_routing_dest import NoneNetworkRoutingDest +from pydantic import StrictStr, Field +from typing import Union, List, Optional, Dict +from typing_extensions import Literal, Self + +NETWORKIDROUTINGPOLICYVALUE_ONE_OF_SCHEMAS = ["CustomRoutingDest", "NoneNetworkRoutingDest"] + +class NetworkIdRoutingPolicyValue(BaseModel): + """ + NetworkIdRoutingPolicyValue + """ + # data type: CustomRoutingDest + oneof_schema_1_validator: Optional[CustomRoutingDest] = None + # data type: NoneNetworkRoutingDest + oneof_schema_2_validator: Optional[NoneNetworkRoutingDest] = None + actual_instance: Optional[Union[CustomRoutingDest, NoneNetworkRoutingDest]] = None + one_of_schemas: List[str] = Field(default=Literal["CustomRoutingDest", "NoneNetworkRoutingDest"]) + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_oneof(cls, v): + instance = NetworkIdRoutingPolicyValue.model_construct() + error_messages = [] + match = 0 + # validate data type: CustomRoutingDest + if not isinstance(v, CustomRoutingDest): + error_messages.append(f"Error! Input type `{type(v)}` is not `CustomRoutingDest`") + else: + match += 1 + # validate data type: NoneNetworkRoutingDest + if not isinstance(v, NoneNetworkRoutingDest): + error_messages.append(f"Error! Input type `{type(v)}` is not `NoneNetworkRoutingDest`") + else: + match += 1 + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in NetworkIdRoutingPolicyValue with oneOf schemas: CustomRoutingDest, NoneNetworkRoutingDest. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in NetworkIdRoutingPolicyValue with oneOf schemas: CustomRoutingDest, NoneNetworkRoutingDest. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + match = 0 + + # deserialize data into CustomRoutingDest + try: + instance.actual_instance = CustomRoutingDest.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into NoneNetworkRoutingDest + try: + instance.actual_instance = NoneNetworkRoutingDest.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when deserializing the JSON string into NetworkIdRoutingPolicyValue with oneOf schemas: CustomRoutingDest, NoneNetworkRoutingDest. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into NetworkIdRoutingPolicyValue with oneOf schemas: CustomRoutingDest, NoneNetworkRoutingDest. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], CustomRoutingDest, NoneNetworkRoutingDest]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + # primitive type + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/fireblocks_client/models/network_record.py b/fireblocks_client/models/network_record.py new file mode 100644 index 00000000..89a93ede --- /dev/null +++ b/fireblocks_client/models/network_record.py @@ -0,0 +1,124 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictBool, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from fireblocks_client.models.destination_transfer_peer_path_response import DestinationTransferPeerPathResponse +from fireblocks_client.models.reward_info import RewardInfo +from fireblocks_client.models.source_transfer_peer_path_response import SourceTransferPeerPathResponse +from typing import Optional, Set +from typing_extensions import Self + +class NetworkRecord(BaseModel): + """ + NetworkRecord + """ # noqa: E501 + source: Optional[SourceTransferPeerPathResponse] = None + destination: Optional[DestinationTransferPeerPathResponse] = None + tx_hash: Optional[StrictStr] = Field(default=None, alias="txHash") + network_fee: Optional[StrictStr] = Field(default=None, alias="networkFee") + asset_id: Optional[StrictStr] = Field(default=None, alias="assetId") + net_amount: Optional[StrictStr] = Field(default=None, description="The net amount of the transaction, after fee deduction", alias="netAmount") + is_dropped: Optional[StrictBool] = Field(default=None, alias="isDropped") + type: Optional[StrictStr] = None + destination_address: Optional[StrictStr] = Field(default=None, alias="destinationAddress") + source_address: Optional[StrictStr] = Field(default=None, alias="sourceAddress") + amount_usd: Optional[StrictStr] = Field(default=None, alias="amountUSD") + index: Optional[Union[StrictFloat, StrictInt]] = None + reward_info: Optional[RewardInfo] = Field(default=None, alias="rewardInfo") + __properties: ClassVar[List[str]] = ["source", "destination", "txHash", "networkFee", "assetId", "netAmount", "isDropped", "type", "destinationAddress", "sourceAddress", "amountUSD", "index", "rewardInfo"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of NetworkRecord from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of source + if self.source: + _dict['source'] = self.source.to_dict() + # override the default output from pydantic by calling `to_dict()` of destination + if self.destination: + _dict['destination'] = self.destination.to_dict() + # override the default output from pydantic by calling `to_dict()` of reward_info + if self.reward_info: + _dict['rewardInfo'] = self.reward_info.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of NetworkRecord from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "source": SourceTransferPeerPathResponse.from_dict(obj["source"]) if obj.get("source") is not None else None, + "destination": DestinationTransferPeerPathResponse.from_dict(obj["destination"]) if obj.get("destination") is not None else None, + "txHash": obj.get("txHash"), + "networkFee": obj.get("networkFee"), + "assetId": obj.get("assetId"), + "netAmount": obj.get("netAmount"), + "isDropped": obj.get("isDropped"), + "type": obj.get("type"), + "destinationAddress": obj.get("destinationAddress"), + "sourceAddress": obj.get("sourceAddress"), + "amountUSD": obj.get("amountUSD"), + "index": obj.get("index"), + "rewardInfo": RewardInfo.from_dict(obj["rewardInfo"]) if obj.get("rewardInfo") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/none_network_routing_dest.py b/fireblocks_client/models/none_network_routing_dest.py new file mode 100644 index 00000000..bf9b931f --- /dev/null +++ b/fireblocks_client/models/none_network_routing_dest.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, field_validator +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class NoneNetworkRoutingDest(BaseModel): + """ + NoneNetworkRoutingDest + """ # noqa: E501 + scheme: StrictStr = Field(description="No network routing logic.") + __properties: ClassVar[List[str]] = ["scheme"] + + @field_validator('scheme') + def scheme_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['NONE']): + raise ValueError("must be one of enum values ('NONE')") + return value + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of NoneNetworkRoutingDest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of NoneNetworkRoutingDest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "scheme": obj.get("scheme") + }) + return _obj + + diff --git a/fireblocks_client/models/not_found_exception.py b/fireblocks_client/models/not_found_exception.py new file mode 100644 index 00000000..4f88fff3 --- /dev/null +++ b/fireblocks_client/models/not_found_exception.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class NotFoundException(BaseModel): + """ + NotFoundException + """ # noqa: E501 + status_code: Optional[StrictInt] = Field(default=None, description="HTTP status code", alias="statusCode") + message: Optional[StrictStr] = Field(default=None, description="Error message") + error: Optional[StrictStr] = Field(default=None, description="Short description of the HTTP error") + __properties: ClassVar[List[str]] = ["statusCode", "message", "error"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of NotFoundException from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of NotFoundException from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "statusCode": obj.get("statusCode"), + "message": obj.get("message"), + "error": obj.get("error") + }) + return _obj + + diff --git a/fireblocks_client/models/one_time_address.py b/fireblocks_client/models/one_time_address.py new file mode 100644 index 00000000..d12d3c9c --- /dev/null +++ b/fireblocks_client/models/one_time_address.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class OneTimeAddress(BaseModel): + """ + OneTimeAddress + """ # noqa: E501 + address: StrictStr + tag: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["address", "tag"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of OneTimeAddress from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of OneTimeAddress from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "address": obj.get("address"), + "tag": obj.get("tag") + }) + return _obj + + diff --git a/fireblocks_client/models/one_time_address_account.py b/fireblocks_client/models/one_time_address_account.py new file mode 100644 index 00000000..9bb7ad67 --- /dev/null +++ b/fireblocks_client/models/one_time_address_account.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class OneTimeAddressAccount(BaseModel): + """ + OneTimeAddressAccount + """ # noqa: E501 + one_time_address: StrictStr = Field(alias="oneTimeAddress") + tag: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["oneTimeAddress", "tag"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of OneTimeAddressAccount from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of OneTimeAddressAccount from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "oneTimeAddress": obj.get("oneTimeAddress"), + "tag": obj.get("tag") + }) + return _obj + + diff --git a/fireblocks_client/models/operation_execution_failure.py b/fireblocks_client/models/operation_execution_failure.py new file mode 100644 index 00000000..645209de --- /dev/null +++ b/fireblocks_client/models/operation_execution_failure.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class OperationExecutionFailure(BaseModel): + """ + OperationExecutionFailure + """ # noqa: E501 + reason: StrictStr + data: Optional[Dict[str, Any]] = None + __properties: ClassVar[List[str]] = ["reason", "data"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of OperationExecutionFailure from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of OperationExecutionFailure from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "reason": obj.get("reason"), + "data": obj.get("data") + }) + return _obj + + diff --git a/fireblocks_client/models/paginated_address_response.py b/fireblocks_client/models/paginated_address_response.py new file mode 100644 index 00000000..a73c8a2c --- /dev/null +++ b/fireblocks_client/models/paginated_address_response.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.paginated_address_response_paging import PaginatedAddressResponsePaging +from fireblocks_client.models.vault_wallet_address import VaultWalletAddress +from typing import Optional, Set +from typing_extensions import Self + +class PaginatedAddressResponse(BaseModel): + """ + PaginatedAddressResponse + """ # noqa: E501 + addresses: Optional[List[VaultWalletAddress]] = None + paging: Optional[PaginatedAddressResponsePaging] = None + __properties: ClassVar[List[str]] = ["addresses", "paging"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PaginatedAddressResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in addresses (list) + _items = [] + if self.addresses: + for _item in self.addresses: + if _item: + _items.append(_item.to_dict()) + _dict['addresses'] = _items + # override the default output from pydantic by calling `to_dict()` of paging + if self.paging: + _dict['paging'] = self.paging.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PaginatedAddressResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "addresses": [VaultWalletAddress.from_dict(_item) for _item in obj["addresses"]] if obj.get("addresses") is not None else None, + "paging": PaginatedAddressResponsePaging.from_dict(obj["paging"]) if obj.get("paging") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/paginated_address_response_paging.py b/fireblocks_client/models/paginated_address_response_paging.py new file mode 100644 index 00000000..452c86da --- /dev/null +++ b/fireblocks_client/models/paginated_address_response_paging.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PaginatedAddressResponsePaging(BaseModel): + """ + PaginatedAddressResponsePaging + """ # noqa: E501 + before: Optional[StrictStr] = Field(default=None, description="A string representing a cursor. Users can use this with a new request to this API endpoint as the “before” request parameter to fetch the previous page of results.") + after: Optional[StrictStr] = Field(default=None, description="A string representing a cursor. Users can use this with a new request to this API endpoint as the “after” request parameter to fetch the next page of results.") + __properties: ClassVar[List[str]] = ["before", "after"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PaginatedAddressResponsePaging from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PaginatedAddressResponsePaging from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "before": obj.get("before"), + "after": obj.get("after") + }) + return _obj + + diff --git a/fireblocks_client/models/paginated_asset_wallet_response.py b/fireblocks_client/models/paginated_asset_wallet_response.py new file mode 100644 index 00000000..b10423b3 --- /dev/null +++ b/fireblocks_client/models/paginated_asset_wallet_response.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.asset_wallet import AssetWallet +from fireblocks_client.models.paginated_asset_wallet_response_paging import PaginatedAssetWalletResponsePaging +from typing import Optional, Set +from typing_extensions import Self + +class PaginatedAssetWalletResponse(BaseModel): + """ + PaginatedAssetWalletResponse + """ # noqa: E501 + asset_wallets: Optional[List[AssetWallet]] = Field(default=None, alias="assetWallets") + paging: Optional[PaginatedAssetWalletResponsePaging] = None + __properties: ClassVar[List[str]] = ["assetWallets", "paging"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PaginatedAssetWalletResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in asset_wallets (list) + _items = [] + if self.asset_wallets: + for _item in self.asset_wallets: + if _item: + _items.append(_item.to_dict()) + _dict['assetWallets'] = _items + # override the default output from pydantic by calling `to_dict()` of paging + if self.paging: + _dict['paging'] = self.paging.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PaginatedAssetWalletResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "assetWallets": [AssetWallet.from_dict(_item) for _item in obj["assetWallets"]] if obj.get("assetWallets") is not None else None, + "paging": PaginatedAssetWalletResponsePaging.from_dict(obj["paging"]) if obj.get("paging") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/paginated_asset_wallet_response_paging.py b/fireblocks_client/models/paginated_asset_wallet_response_paging.py new file mode 100644 index 00000000..46d3cd6d --- /dev/null +++ b/fireblocks_client/models/paginated_asset_wallet_response_paging.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PaginatedAssetWalletResponsePaging(BaseModel): + """ + PaginatedAssetWalletResponsePaging + """ # noqa: E501 + before: Optional[StrictStr] = Field(default=None, description="A string representing a cursor. Users can use this with a new request to this API endpoint as the “before” request parameter to fetch the previous page of results.") + after: Optional[StrictStr] = Field(default=None, description="A string representing a cursor. Users can use this with a new request to this API endpoint as the “before” request parameter to fetch the next page of results.") + __properties: ClassVar[List[str]] = ["before", "after"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PaginatedAssetWalletResponsePaging from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PaginatedAssetWalletResponsePaging from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "before": obj.get("before"), + "after": obj.get("after") + }) + return _obj + + diff --git a/fireblocks_client/models/paging.py b/fireblocks_client/models/paging.py new file mode 100644 index 00000000..2e189df3 --- /dev/null +++ b/fireblocks_client/models/paging.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class Paging(BaseModel): + """ + Paging + """ # noqa: E501 + next: StrictStr = Field(description="Cursor to the next page") + __properties: ClassVar[List[str]] = ["next"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of Paging from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Paging from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "next": obj.get("next") + }) + return _obj + + diff --git a/fireblocks_client/models/parameter.py b/fireblocks_client/models/parameter.py new file mode 100644 index 00000000..3aac0372 --- /dev/null +++ b/fireblocks_client/models/parameter.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class Parameter(BaseModel): + """ + Parameter + """ # noqa: E501 + name: StrictStr = Field(description="The name of the parameter as it appears in the ABI") + description: Optional[StrictStr] = Field(default=None, description="A description of the parameter, fetched from the devdoc of this contract") + internal_type: Optional[StrictStr] = Field(default=None, description="The internal type of the parameter as it appears in the ABI", alias="internalType") + type: StrictStr = Field(description="The type of the parameter as it appears in the ABI") + components: Optional[List[Parameter]] = None + __properties: ClassVar[List[str]] = ["name", "description", "internalType", "type", "components"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of Parameter from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in components (list) + _items = [] + if self.components: + for _item in self.components: + if _item: + _items.append(_item.to_dict()) + _dict['components'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Parameter from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "description": obj.get("description"), + "internalType": obj.get("internalType"), + "type": obj.get("type"), + "components": [Parameter.from_dict(_item) for _item in obj["components"]] if obj.get("components") is not None else None + }) + return _obj + +# TODO: Rewrite to not use raise_errors +Parameter.model_rebuild(raise_errors=False) + diff --git a/fireblocks_client/models/parameter_with_value.py b/fireblocks_client/models/parameter_with_value.py new file mode 100644 index 00000000..e134b450 --- /dev/null +++ b/fireblocks_client/models/parameter_with_value.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.parameter import Parameter +from typing import Optional, Set +from typing_extensions import Self + +class ParameterWithValue(BaseModel): + """ + ParameterWithValue + """ # noqa: E501 + name: StrictStr = Field(description="The name of the parameter as it appears in the ABI") + description: Optional[StrictStr] = Field(default=None, description="A description of the parameter, fetched from the devdoc of this contract") + internal_type: Optional[StrictStr] = Field(default=None, description="The internal type of the parameter as it appears in the ABI", alias="internalType") + type: StrictStr = Field(description="The type of the parameter as it appears in the ABI") + components: Optional[List[Parameter]] = None + value: Optional[StrictStr] = Field(default=None, description="The value of the parameter. can also be ParameterWithValue") + function_value: Optional[LeanAbiFunction] = Field(default=None, description="The function value of this param (if has one). If this is set, the `value` shouldn`t be. Used for proxies", alias="functionValue") + __properties: ClassVar[List[str]] = ["name", "description", "internalType", "type", "components", "value", "functionValue"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ParameterWithValue from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in components (list) + _items = [] + if self.components: + for _item in self.components: + if _item: + _items.append(_item.to_dict()) + _dict['components'] = _items + # override the default output from pydantic by calling `to_dict()` of function_value + if self.function_value: + _dict['functionValue'] = self.function_value.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ParameterWithValue from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "description": obj.get("description"), + "internalType": obj.get("internalType"), + "type": obj.get("type"), + "components": [Parameter.from_dict(_item) for _item in obj["components"]] if obj.get("components") is not None else None, + "value": obj.get("value"), + "functionValue": LeanAbiFunction.from_dict(obj["functionValue"]) if obj.get("functionValue") is not None else None + }) + return _obj + +from fireblocks_client.models.lean_abi_function import LeanAbiFunction +# TODO: Rewrite to not use raise_errors +ParameterWithValue.model_rebuild(raise_errors=False) + diff --git a/fireblocks_client/models/payee_account.py b/fireblocks_client/models/payee_account.py new file mode 100644 index 00000000..3af09812 --- /dev/null +++ b/fireblocks_client/models/payee_account.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictStr +from typing import Any, ClassVar, Dict, List +from fireblocks_client.models.payee_account_type import PayeeAccountType +from typing import Optional, Set +from typing_extensions import Self + +class PayeeAccount(BaseModel): + """ + PayeeAccount + """ # noqa: E501 + id: StrictStr + type: PayeeAccountType + __properties: ClassVar[List[str]] = ["id", "type"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PayeeAccount from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PayeeAccount from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "type": obj.get("type") + }) + return _obj + + diff --git a/fireblocks_client/models/payee_account_response.py b/fireblocks_client/models/payee_account_response.py new file mode 100644 index 00000000..daf48fde --- /dev/null +++ b/fireblocks_client/models/payee_account_response.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.payee_account_type import PayeeAccountType +from typing import Optional, Set +from typing_extensions import Self + +class PayeeAccountResponse(BaseModel): + """ + PayeeAccountResponse + """ # noqa: E501 + id: Optional[StrictStr] = None + type: Optional[PayeeAccountType] = None + __properties: ClassVar[List[str]] = ["id", "type"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PayeeAccountResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PayeeAccountResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "type": obj.get("type") + }) + return _obj + + diff --git a/fireblocks_client/models/payee_account_type.py b/fireblocks_client/models/payee_account_type.py new file mode 100644 index 00000000..05281c45 --- /dev/null +++ b/fireblocks_client/models/payee_account_type.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +from enum import Enum +from typing_extensions import Self + + +class PayeeAccountType(str, Enum): + """ + - VAULT_ACCOUNT a native Fireblocks vault account - EXCHANGE_ACCOUNT a third-party exchange account - INTERNAL_WALLET a whitelisted address marked as internal to the workspace/organization - EXTERNAL_WALLET a whitelisted address marked as external - NETWORK_CONNECTION a member of the Fireblocks network - FIAT_ACCOUNT a third-party account of a fiat bank (Signature, BCB, etc) + """ + + """ + allowed enum values + """ + VAULT_ACCOUNT = 'VAULT_ACCOUNT' + EXCHANGE_ACCOUNT = 'EXCHANGE_ACCOUNT' + INTERNAL_WALLET = 'INTERNAL_WALLET' + EXTERNAL_WALLET = 'EXTERNAL_WALLET' + NETWORK_CONNECTION = 'NETWORK_CONNECTION' + FIAT_ACCOUNT = 'FIAT_ACCOUNT' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of PayeeAccountType from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/fireblocks_client/models/payment_account.py b/fireblocks_client/models/payment_account.py new file mode 100644 index 00000000..a0b54ae0 --- /dev/null +++ b/fireblocks_client/models/payment_account.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictStr +from typing import Any, ClassVar, Dict, List +from fireblocks_client.models.payment_account_type import PaymentAccountType +from typing import Optional, Set +from typing_extensions import Self + +class PaymentAccount(BaseModel): + """ + PaymentAccount + """ # noqa: E501 + id: StrictStr + type: PaymentAccountType + __properties: ClassVar[List[str]] = ["id", "type"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PaymentAccount from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PaymentAccount from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "type": obj.get("type") + }) + return _obj + + diff --git a/fireblocks_client/models/payment_account_response.py b/fireblocks_client/models/payment_account_response.py new file mode 100644 index 00000000..1577361a --- /dev/null +++ b/fireblocks_client/models/payment_account_response.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.payment_account_type import PaymentAccountType +from typing import Optional, Set +from typing_extensions import Self + +class PaymentAccountResponse(BaseModel): + """ + PaymentAccountResponse + """ # noqa: E501 + id: Optional[StrictStr] = None + type: Optional[PaymentAccountType] = None + __properties: ClassVar[List[str]] = ["id", "type"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PaymentAccountResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PaymentAccountResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "type": obj.get("type") + }) + return _obj + + diff --git a/fireblocks_client/models/payment_account_type.py b/fireblocks_client/models/payment_account_type.py new file mode 100644 index 00000000..8ce408e0 --- /dev/null +++ b/fireblocks_client/models/payment_account_type.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +from enum import Enum +from typing_extensions import Self + + +class PaymentAccountType(str, Enum): + """ + PaymentAccountType + """ + + """ + allowed enum values + """ + VAULT_ACCOUNT = 'VAULT_ACCOUNT' + EXCHANGE_ACCOUNT = 'EXCHANGE_ACCOUNT' + FIAT_ACCOUNT = 'FIAT_ACCOUNT' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of PaymentAccountType from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/fireblocks_client/models/payout_init_method.py b/fireblocks_client/models/payout_init_method.py new file mode 100644 index 00000000..8104065d --- /dev/null +++ b/fireblocks_client/models/payout_init_method.py @@ -0,0 +1,38 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +from enum import Enum +from typing_extensions import Self + + +class PayoutInitMethod(str, Enum): + """ + PayoutInitMethod + """ + + """ + allowed enum values + """ + FILE = 'FILE' + API = 'API' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of PayoutInitMethod from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/fireblocks_client/models/payout_instruction.py b/fireblocks_client/models/payout_instruction.py new file mode 100644 index 00000000..287065ce --- /dev/null +++ b/fireblocks_client/models/payout_instruction.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.instruction_amount import InstructionAmount +from fireblocks_client.models.payee_account import PayeeAccount +from typing import Optional, Set +from typing_extensions import Self + +class PayoutInstruction(BaseModel): + """ + PayoutInstruction + """ # noqa: E501 + id: Optional[StrictStr] = None + payee_account: PayeeAccount = Field(alias="payeeAccount") + amount: InstructionAmount + __properties: ClassVar[List[str]] = ["id", "payeeAccount", "amount"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PayoutInstruction from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of payee_account + if self.payee_account: + _dict['payeeAccount'] = self.payee_account.to_dict() + # override the default output from pydantic by calling `to_dict()` of amount + if self.amount: + _dict['amount'] = self.amount.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PayoutInstruction from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "payeeAccount": PayeeAccount.from_dict(obj["payeeAccount"]) if obj.get("payeeAccount") is not None else None, + "amount": InstructionAmount.from_dict(obj["amount"]) if obj.get("amount") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/payout_instruction_response.py b/fireblocks_client/models/payout_instruction_response.py new file mode 100644 index 00000000..d2b554f7 --- /dev/null +++ b/fireblocks_client/models/payout_instruction_response.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.instruction_amount import InstructionAmount +from fireblocks_client.models.payee_account_response import PayeeAccountResponse +from fireblocks_client.models.payout_instruction_state import PayoutInstructionState +from fireblocks_client.models.transaction import Transaction +from typing import Optional, Set +from typing_extensions import Self + +class PayoutInstructionResponse(BaseModel): + """ + PayoutInstructionResponse + """ # noqa: E501 + id: Optional[StrictStr] = None + payee_account: PayeeAccountResponse = Field(alias="payeeAccount") + amount: InstructionAmount + state: PayoutInstructionState + transactions: List[Transaction] + __properties: ClassVar[List[str]] = ["id", "payeeAccount", "amount", "state", "transactions"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PayoutInstructionResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of payee_account + if self.payee_account: + _dict['payeeAccount'] = self.payee_account.to_dict() + # override the default output from pydantic by calling `to_dict()` of amount + if self.amount: + _dict['amount'] = self.amount.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in transactions (list) + _items = [] + if self.transactions: + for _item in self.transactions: + if _item: + _items.append(_item.to_dict()) + _dict['transactions'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PayoutInstructionResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "payeeAccount": PayeeAccountResponse.from_dict(obj["payeeAccount"]) if obj.get("payeeAccount") is not None else None, + "amount": InstructionAmount.from_dict(obj["amount"]) if obj.get("amount") is not None else None, + "state": obj.get("state"), + "transactions": [Transaction.from_dict(_item) for _item in obj["transactions"]] if obj.get("transactions") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/payout_instruction_state.py b/fireblocks_client/models/payout_instruction_state.py new file mode 100644 index 00000000..2083bf6d --- /dev/null +++ b/fireblocks_client/models/payout_instruction_state.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +from enum import Enum +from typing_extensions import Self + + +class PayoutInstructionState(str, Enum): + """ + - NOT_STARTED - waiting to start - TRANSACTION_SENT - an underlying transaction was sent - COMPLETED - completed successfully - FAILED - failed - TRANSLATION_ERROR -lookup of the destination failed (due to changes in the underlying whitelisted external wallet or similar) - SKIPPED- no transaction(s) created for this instruction + """ + + """ + allowed enum values + """ + NOT_STARTED = 'NOT_STARTED' + TRANSACTION_SENT = 'TRANSACTION_SENT' + COMPLETED = 'COMPLETED' + FAILED = 'FAILED' + TRANSLATION_ERROR = 'TRANSLATION_ERROR' + SKIPPED = 'SKIPPED' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of PayoutInstructionState from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/fireblocks_client/models/payout_response.py b/fireblocks_client/models/payout_response.py new file mode 100644 index 00000000..2bb2681a --- /dev/null +++ b/fireblocks_client/models/payout_response.py @@ -0,0 +1,119 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from fireblocks_client.models.payment_account_response import PaymentAccountResponse +from fireblocks_client.models.payout_init_method import PayoutInitMethod +from fireblocks_client.models.payout_instruction_response import PayoutInstructionResponse +from fireblocks_client.models.payout_state import PayoutState +from fireblocks_client.models.payout_status import PayoutStatus +from typing import Optional, Set +from typing_extensions import Self + +class PayoutResponse(BaseModel): + """ + PayoutResponse + """ # noqa: E501 + payout_id: StrictStr = Field(alias="payoutId") + payment_account: PaymentAccountResponse = Field(alias="paymentAccount") + created_at: Union[StrictFloat, StrictInt] = Field(alias="createdAt") + state: PayoutState + status: PayoutStatus + reason_of_failure: Optional[StrictStr] = Field(default=None, description="
  • INSUFFICIENT_BALANCE
  • SOURCE_TRANSLATION
  • SOURCE_NOT_UNIQUE
  • SOURCE_NOT_FOUND
  • SOURCE_TYPE_NOT_SUPPORTED
  • EMPTY_SOURCE
  • DESTINATION_TRANSLATION
  • DESTINATION_NOT_UNIQUE
  • DESTINATION_NOT_FOUND
  • EMPTY_DESTINATION
  • PARSING
  • UNKNOWN
  • FIREBLOCKS_CLIENT
  • TRANSACTION_SUBMISSION
", alias="reasonOfFailure") + init_method: Optional[PayoutInitMethod] = Field(default=None, alias="initMethod") + instruction_set: List[PayoutInstructionResponse] = Field(alias="instructionSet") + report_url: Optional[StrictStr] = Field(default=None, alias="reportUrl") + __properties: ClassVar[List[str]] = ["payoutId", "paymentAccount", "createdAt", "state", "status", "reasonOfFailure", "initMethod", "instructionSet", "reportUrl"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PayoutResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of payment_account + if self.payment_account: + _dict['paymentAccount'] = self.payment_account.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in instruction_set (list) + _items = [] + if self.instruction_set: + for _item in self.instruction_set: + if _item: + _items.append(_item.to_dict()) + _dict['instructionSet'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PayoutResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "payoutId": obj.get("payoutId"), + "paymentAccount": PaymentAccountResponse.from_dict(obj["paymentAccount"]) if obj.get("paymentAccount") is not None else None, + "createdAt": obj.get("createdAt"), + "state": obj.get("state"), + "status": obj.get("status"), + "reasonOfFailure": obj.get("reasonOfFailure"), + "initMethod": obj.get("initMethod"), + "instructionSet": [PayoutInstructionResponse.from_dict(_item) for _item in obj["instructionSet"]] if obj.get("instructionSet") is not None else None, + "reportUrl": obj.get("reportUrl") + }) + return _obj + + diff --git a/fireblocks_client/models/payout_state.py b/fireblocks_client/models/payout_state.py new file mode 100644 index 00000000..8a177ef2 --- /dev/null +++ b/fireblocks_client/models/payout_state.py @@ -0,0 +1,45 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +from enum import Enum +from typing_extensions import Self + + +class PayoutState(str, Enum): + """ + - CREATED - payout instruction set created with all its details - FILE_FOUND - new file found in the FTP - REQUESTED - payout requested with all its details - TRANSLATED - payout instruction account IDs identified and translated - PROCESSING - payout instruction set executed and is processing - SUBMITTED - transactions submitted for payout instructions - FINALIZED - payout finished processing, all transactions processed successfully - INSUFFICIENT_BALANCE - insufficient balance in the payment account (can be a temporary state) - FAILED - one or more of the payout instructions failed + """ + + """ + allowed enum values + """ + CREATED = 'CREATED' + FILE_FOUND = 'FILE_FOUND' + REQUESTED = 'REQUESTED' + TRANSLATED = 'TRANSLATED' + PROCESSING = 'PROCESSING' + SUBMITTED = 'SUBMITTED' + FINALIZED = 'FINALIZED' + INSUFFICIENT_BALANCE = 'INSUFFICIENT_BALANCE' + FAILED = 'FAILED' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of PayoutState from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/fireblocks_client/models/payout_status.py b/fireblocks_client/models/payout_status.py new file mode 100644 index 00000000..0cb028cf --- /dev/null +++ b/fireblocks_client/models/payout_status.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +from enum import Enum +from typing_extensions import Self + + +class PayoutStatus(str, Enum): + """ + - REQUESTED payout requested with all its details - VERIFIED payout instruction set details were verified - PROCESSING payout instruction set executed and is processing - FINALIZED payout done (all payout instructions completed successfully) - INSUFFICIENT_BALANCE insufficient balance in the payment account (can be a temporary state) - FAILED one or more of the payout instructions failed + """ + + """ + allowed enum values + """ + REGISTERED = 'REGISTERED' + VERIFYING = 'VERIFYING' + IN_PROGRESS = 'IN_PROGRESS' + DONE = 'DONE' + INSUFFICIENT_BALANCE = 'INSUFFICIENT_BALANCE' + FAILED = 'FAILED' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of PayoutStatus from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/fireblocks_client/models/policy_and_validation_response.py b/fireblocks_client/models/policy_and_validation_response.py new file mode 100644 index 00000000..0617a709 --- /dev/null +++ b/fireblocks_client/models/policy_and_validation_response.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List +from fireblocks_client.models.policy_response import PolicyResponse +from fireblocks_client.models.policy_validation import PolicyValidation +from typing import Optional, Set +from typing_extensions import Self + +class PolicyAndValidationResponse(BaseModel): + """ + Policy validation + """ # noqa: E501 + policy: PolicyResponse + validation: PolicyValidation + __properties: ClassVar[List[str]] = ["policy", "validation"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PolicyAndValidationResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of policy + if self.policy: + _dict['policy'] = self.policy.to_dict() + # override the default output from pydantic by calling `to_dict()` of validation + if self.validation: + _dict['validation'] = self.validation.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PolicyAndValidationResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "policy": PolicyResponse.from_dict(obj["policy"]) if obj.get("policy") is not None else None, + "validation": PolicyValidation.from_dict(obj["validation"]) if obj.get("validation") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/policy_check_result.py b/fireblocks_client/models/policy_check_result.py new file mode 100644 index 00000000..6918f790 --- /dev/null +++ b/fireblocks_client/models/policy_check_result.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictFloat, StrictInt +from typing import Any, ClassVar, Dict, List, Union +from fireblocks_client.models.policy_rule_check_result import PolicyRuleCheckResult +from typing import Optional, Set +from typing_extensions import Self + +class PolicyCheckResult(BaseModel): + """ + Policy rules validation result + """ # noqa: E501 + errors: Union[StrictFloat, StrictInt] = Field(description="Number of errors") + result: List[PolicyRuleCheckResult] = Field(description="A set of validation results") + __properties: ClassVar[List[str]] = ["errors", "result"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PolicyCheckResult from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in result (list) + _items = [] + if self.result: + for _item in self.result: + if _item: + _items.append(_item.to_dict()) + _dict['result'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PolicyCheckResult from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "errors": obj.get("errors"), + "result": [PolicyRuleCheckResult.from_dict(_item) for _item in obj["result"]] if obj.get("result") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/policy_metadata.py b/fireblocks_client/models/policy_metadata.py new file mode 100644 index 00000000..13c9858a --- /dev/null +++ b/fireblocks_client/models/policy_metadata.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PolicyMetadata(BaseModel): + """ + Policy related metadata + """ # noqa: E501 + edited_by: Optional[StrictStr] = Field(default=None, description="The user id of the user who last edited the policy", alias="editedBy") + edited_at: Optional[StrictStr] = Field(default=None, description="The timestamp of the last edit of the policy", alias="editedAt") + published_by: Optional[StrictStr] = Field(default=None, description="The user id of the user who last published the policy", alias="publishedBy") + published_at: Optional[StrictStr] = Field(default=None, description="The timestamp of the last publish of the policy", alias="publishedAt") + __properties: ClassVar[List[str]] = ["editedBy", "editedAt", "publishedBy", "publishedAt"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PolicyMetadata from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PolicyMetadata from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "editedBy": obj.get("editedBy"), + "editedAt": obj.get("editedAt"), + "publishedBy": obj.get("publishedBy"), + "publishedAt": obj.get("publishedAt") + }) + return _obj + + diff --git a/fireblocks_client/models/policy_response.py b/fireblocks_client/models/policy_response.py new file mode 100644 index 00000000..d490158b --- /dev/null +++ b/fireblocks_client/models/policy_response.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List +from fireblocks_client.models.policy_metadata import PolicyMetadata +from fireblocks_client.models.policy_rule import PolicyRule +from typing import Optional, Set +from typing_extensions import Self + +class PolicyResponse(BaseModel): + """ + Response object for policy operations + """ # noqa: E501 + rules: List[PolicyRule] = Field(description="A set of policy rules") + metadata: PolicyMetadata + __properties: ClassVar[List[str]] = ["rules", "metadata"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PolicyResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in rules (list) + _items = [] + if self.rules: + for _item in self.rules: + if _item: + _items.append(_item.to_dict()) + _dict['rules'] = _items + # 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: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PolicyResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "rules": [PolicyRule.from_dict(_item) for _item in obj["rules"]] if obj.get("rules") is not None else None, + "metadata": PolicyMetadata.from_dict(obj["metadata"]) if obj.get("metadata") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/policy_rule.py b/fireblocks_client/models/policy_rule.py new file mode 100644 index 00000000..9125f2ca --- /dev/null +++ b/fireblocks_client/models/policy_rule.py @@ -0,0 +1,226 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictBool, StrictFloat, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional, Union +from fireblocks_client.models.policy_rule_amount import PolicyRuleAmount +from fireblocks_client.models.policy_rule_amount_aggregation import PolicyRuleAmountAggregation +from fireblocks_client.models.policy_rule_authorization_groups import PolicyRuleAuthorizationGroups +from fireblocks_client.models.policy_rule_designated_signers import PolicyRuleDesignatedSigners +from fireblocks_client.models.policy_rule_dst import PolicyRuleDst +from fireblocks_client.models.policy_rule_operators import PolicyRuleOperators +from fireblocks_client.models.policy_rule_raw_message_signing import PolicyRuleRawMessageSigning +from fireblocks_client.models.policy_rule_src import PolicyRuleSrc +from fireblocks_client.models.policy_src_or_dest_sub_type import PolicySrcOrDestSubType +from fireblocks_client.models.policy_src_or_dest_type import PolicySrcOrDestType +from typing import Optional, Set +from typing_extensions import Self + +class PolicyRule(BaseModel): + """ + Policy rule which is enforced on transactions + """ # noqa: E501 + operator: Optional[StrictStr] = Field(default=None, description="(deprecated - replaced by \"operators\") | Defines users who can initiate the type of transaction to which the rule applies. options are * \"*\" - All users are allowed * Specific User id") + operators: Optional[PolicyRuleOperators] = None + transaction_type: Optional[StrictStr] = Field(default=None, description="Defines the type of transaction to which the rule applies. * TRANSFER - Default. Transfers funds from one account to another * CONTRACT_CALL - Calls a smart contract, mainly for DeFi operations. * APPROVE - Allows a smart contract to withdraw from a designated wallet. * MINT - Perform a mint operation (increase supply) on a supported token * BURN - Perform a burn operation (reduce supply) on a supported token * SUPPLY - Use for DeFi to lend assets * REDEEM - Use for DeFi to get lending back * STAKE - Allows you to allocate and lock certain assets for earning staking rewards. * RAW - An off-chain message with no predefined format, use it to sign any message with your private key. * TYPED_MESSAGE - An off-chain message type that follows a predefined format, used to sign specific messages that are not actual transactions. ", alias="transactionType") + designated_signer: Optional[StrictStr] = Field(default=None, description="(deprecated - replaced by \"designatedSigners\") Id representing the user who signs transactions that match a specific rule", alias="designatedSigner") + designated_signers: Optional[PolicyRuleDesignatedSigners] = Field(default=None, alias="designatedSigners") + type: StrictStr = Field(description="Policy rule type") + action: StrictStr = Field(description="Defines what occurs when a transaction meets the rule's criteria * ALLOW - The transaction goes through and can be signed without requiring additional approvals * BLOCK - The transaction is automatically blocked * 2-TIER - Only these users or user groups can approve If any of them reject the transaction before the required approval threshold is met, the transaction doesn't go through The list of entities are set is \"authorizationGroups\" field ") + asset: StrictStr = Field(description="Defines the type of asset being transacted, options are * \"*\" - All assets * Specific asset ") + src_type: Optional[PolicySrcOrDestType] = Field(default=None, description="(deprecated - replaced by "src") source account type", alias="srcType") + src_sub_type: Optional[PolicySrcOrDestSubType] = Field(default=None, description="(deprecated - replaced by "src") source sub account type", alias="srcSubType") + src_id: Optional[StrictStr] = Field(default=None, description="(deprecated - replaced by "src") source account id", alias="srcId") + src: Optional[PolicyRuleSrc] = None + dst_type: Optional[PolicySrcOrDestType] = Field(default=None, description="(deprecated - replaced by "dst") destination account type", alias="dstType") + dst_sub_type: Optional[PolicySrcOrDestSubType] = Field(default=None, description="(deprecated - replaced by "dst") destination sub account type", alias="dstSubType") + dst_id: Optional[StrictStr] = Field(default=None, description="(deprecated - replaced by "dst") destination account id", alias="dstId") + dst: Optional[PolicyRuleDst] = None + dst_address_type: Optional[StrictStr] = Field(default=None, description="Defines whether the destination to which you are sending funds must be whitelisted, to allow one-time transfers to non-whitelisted external addresses, or both. By default, you can only transfer to an external address after it’s whitelisted. * WHITELISTED - Can only be sent to whitelisted addresses. * ONE_TIME - Can only be sent to non-whitelisted external addresses. * \"*\" - can be sent to whitelisted addresses or non-whitelisted external ", alias="dstAddressType") + amount_currency: StrictStr = Field(description="* USD - Limits the amount of any asset users can transfer based on the USD equivalent of the asset. * EUR - Limits the amount of any asset users can transfer based on the EURO equivalent of the asset. * NATIVE - Limits the amount of an asset a user can transfer when using a specific asset. ", alias="amountCurrency") + amount_scope: StrictStr = Field(description="* SINGLE_TX - limit applies to a single transaction * TIMEFRAME - limit applies to all transactions within the defined time period ", alias="amountScope") + amount: PolicyRuleAmount + period_sec: Union[StrictFloat, StrictInt] = Field(description="Time period in seconds applied by the amountScope field to accumulate transferred amounts in transactions that match the rule, until the total exceeds the value you specify under Minimum. When the specified amount is reached within that period, whether by one or many transactions, further transactions in that period either fail or require more approvals. ", alias="periodSec") + authorizers: Optional[List[StrictStr]] = Field(default=None, description="(deprecated - replaced by \"authorizationGroups\") Allowed entities which can approves a transaction") + authorizers_count: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="(deprecated - replaced by \"authorizationGroups\") Min amount of entities which are needed to approve a transaction", alias="authorizersCount") + authorization_groups: Optional[PolicyRuleAuthorizationGroups] = Field(default=None, alias="authorizationGroups") + amount_aggregation: Optional[PolicyRuleAmountAggregation] = Field(default=None, alias="amountAggregation") + raw_message_signing: Optional[PolicyRuleRawMessageSigning] = Field(default=None, alias="rawMessageSigning") + apply_for_approve: Optional[StrictBool] = Field(default=None, description="Applying this rule over APPROVE type transactions (can only be enabled when rule's transaction type is TRANSFER)", alias="applyForApprove") + apply_for_typed_message: Optional[StrictBool] = Field(default=None, description="Applying this rule over TYPED_MESSAGE type transactions (can only be enabled when rule's transaction type is CONTRACT_CALL)", alias="applyForTypedMessage") + external_descriptor: Optional[StrictStr] = Field(default=None, description="A unique id identifying the rule", alias="externalDescriptor") + __properties: ClassVar[List[str]] = ["operator", "operators", "transactionType", "designatedSigner", "designatedSigners", "type", "action", "asset", "srcType", "srcSubType", "srcId", "src", "dstType", "dstSubType", "dstId", "dst", "dstAddressType", "amountCurrency", "amountScope", "amount", "periodSec", "authorizers", "authorizersCount", "authorizationGroups", "amountAggregation", "rawMessageSigning", "applyForApprove", "applyForTypedMessage", "externalDescriptor"] + + @field_validator('transaction_type') + def transaction_type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['TRANSFER', 'CONTRACT_CALL', 'APPROVE', 'MINT', 'BURN', 'SUPPLY', 'REDEEM', 'STAKE', 'RAW', 'TYPED_MESSAGE']): + raise ValueError("must be one of enum values ('TRANSFER', 'CONTRACT_CALL', 'APPROVE', 'MINT', 'BURN', 'SUPPLY', 'REDEEM', 'STAKE', 'RAW', 'TYPED_MESSAGE')") + return value + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['TRANSFER']): + raise ValueError("must be one of enum values ('TRANSFER')") + return value + + @field_validator('action') + def action_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['ALLOW', 'BLOCK', '2-TIER']): + raise ValueError("must be one of enum values ('ALLOW', 'BLOCK', '2-TIER')") + return value + + @field_validator('dst_address_type') + def dst_address_type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['WHITELISTED', 'ONE_TIME', '*']): + raise ValueError("must be one of enum values ('WHITELISTED', 'ONE_TIME', '*')") + return value + + @field_validator('amount_currency') + def amount_currency_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['USD', 'EUR', 'NATIVE']): + raise ValueError("must be one of enum values ('USD', 'EUR', 'NATIVE')") + return value + + @field_validator('amount_scope') + def amount_scope_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['SINGLE_TX', 'TIMEFRAME']): + raise ValueError("must be one of enum values ('SINGLE_TX', 'TIMEFRAME')") + return value + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PolicyRule from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of operators + if self.operators: + _dict['operators'] = self.operators.to_dict() + # override the default output from pydantic by calling `to_dict()` of designated_signers + if self.designated_signers: + _dict['designatedSigners'] = self.designated_signers.to_dict() + # override the default output from pydantic by calling `to_dict()` of src + if self.src: + _dict['src'] = self.src.to_dict() + # override the default output from pydantic by calling `to_dict()` of dst + if self.dst: + _dict['dst'] = self.dst.to_dict() + # override the default output from pydantic by calling `to_dict()` of amount + if self.amount: + _dict['amount'] = self.amount.to_dict() + # override the default output from pydantic by calling `to_dict()` of authorization_groups + if self.authorization_groups: + _dict['authorizationGroups'] = self.authorization_groups.to_dict() + # override the default output from pydantic by calling `to_dict()` of amount_aggregation + if self.amount_aggregation: + _dict['amountAggregation'] = self.amount_aggregation.to_dict() + # override the default output from pydantic by calling `to_dict()` of raw_message_signing + if self.raw_message_signing: + _dict['rawMessageSigning'] = self.raw_message_signing.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PolicyRule from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "operator": obj.get("operator"), + "operators": PolicyRuleOperators.from_dict(obj["operators"]) if obj.get("operators") is not None else None, + "transactionType": obj.get("transactionType"), + "designatedSigner": obj.get("designatedSigner"), + "designatedSigners": PolicyRuleDesignatedSigners.from_dict(obj["designatedSigners"]) if obj.get("designatedSigners") is not None else None, + "type": obj.get("type"), + "action": obj.get("action"), + "asset": obj.get("asset"), + "srcType": obj.get("srcType"), + "srcSubType": obj.get("srcSubType"), + "srcId": obj.get("srcId"), + "src": PolicyRuleSrc.from_dict(obj["src"]) if obj.get("src") is not None else None, + "dstType": obj.get("dstType"), + "dstSubType": obj.get("dstSubType"), + "dstId": obj.get("dstId"), + "dst": PolicyRuleDst.from_dict(obj["dst"]) if obj.get("dst") is not None else None, + "dstAddressType": obj.get("dstAddressType"), + "amountCurrency": obj.get("amountCurrency"), + "amountScope": obj.get("amountScope"), + "amount": PolicyRuleAmount.from_dict(obj["amount"]) if obj.get("amount") is not None else None, + "periodSec": obj.get("periodSec"), + "authorizers": obj.get("authorizers"), + "authorizersCount": obj.get("authorizersCount"), + "authorizationGroups": PolicyRuleAuthorizationGroups.from_dict(obj["authorizationGroups"]) if obj.get("authorizationGroups") is not None else None, + "amountAggregation": PolicyRuleAmountAggregation.from_dict(obj["amountAggregation"]) if obj.get("amountAggregation") is not None else None, + "rawMessageSigning": PolicyRuleRawMessageSigning.from_dict(obj["rawMessageSigning"]) if obj.get("rawMessageSigning") is not None else None, + "applyForApprove": obj.get("applyForApprove"), + "applyForTypedMessage": obj.get("applyForTypedMessage"), + "externalDescriptor": obj.get("externalDescriptor") + }) + return _obj + + diff --git a/fireblocks_client/models/policy_rule_amount.py b/fireblocks_client/models/policy_rule_amount.py new file mode 100644 index 00000000..3c04dbce --- /dev/null +++ b/fireblocks_client/models/policy_rule_amount.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +from inspect import getfullargspec +import json +import pprint +import re # noqa: F401 +from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr, ValidationError, field_validator +from typing import Optional, Union +from typing import Union, Any, List, TYPE_CHECKING, Optional, Dict +from typing_extensions import Literal, Self +from pydantic import Field + +POLICYRULEAMOUNT_ANY_OF_SCHEMAS = ["float", "str"] + +class PolicyRuleAmount(BaseModel): + """ + Defines the value a transaction must exceed for the rule to apply to it (according to the amountCurrency field) + """ + + # data type: str + anyof_schema_1_validator: Optional[StrictStr] = Field(default=None, description="Numeric string (recommended)") + # data type: float + anyof_schema_2_validator: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Number (deprecated)") + if TYPE_CHECKING: + actual_instance: Optional[Union[float, str]] = None + else: + actual_instance: Any = None + any_of_schemas: List[str] = Field(default=Literal["float", "str"]) + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_anyof(cls, v): + instance = PolicyRuleAmount.model_construct() + error_messages = [] + # validate data type: str + try: + instance.anyof_schema_1_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: float + try: + instance.anyof_schema_2_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + if error_messages: + # no match + raise ValueError("No match found when setting the actual_instance in PolicyRuleAmount with anyOf schemas: float, str. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Dict[str, Any]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + # deserialize data into str + try: + # validation + instance.anyof_schema_1_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_1_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into float + try: + # validation + instance.anyof_schema_2_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_2_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if error_messages: + # no match + raise ValueError("No match found when deserializing the JSON string into PolicyRuleAmount with anyOf schemas: float, str. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], float, str]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/fireblocks_client/models/policy_rule_amount_aggregation.py b/fireblocks_client/models/policy_rule_amount_aggregation.py new file mode 100644 index 00000000..97fe10f5 --- /dev/null +++ b/fireblocks_client/models/policy_rule_amount_aggregation.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.amount_aggregation_time_period_method import AmountAggregationTimePeriodMethod +from typing import Optional, Set +from typing_extensions import Self + +class PolicyRuleAmountAggregation(BaseModel): + """ + Defines the method by which the Policy Engine calculates accumulation. It uses the Initiator, Source, and Destination to calculate accumulation toward the value under Minimum, for the time under Time Period. + """ # noqa: E501 + operators: Optional[AmountAggregationTimePeriodMethod] = None + src_transfer_peers: Optional[AmountAggregationTimePeriodMethod] = Field(default=None, alias="srcTransferPeers") + dst_transfer_peers: Optional[AmountAggregationTimePeriodMethod] = Field(default=None, alias="dstTransferPeers") + __properties: ClassVar[List[str]] = ["operators", "srcTransferPeers", "dstTransferPeers"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PolicyRuleAmountAggregation from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PolicyRuleAmountAggregation from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "operators": obj.get("operators"), + "srcTransferPeers": obj.get("srcTransferPeers"), + "dstTransferPeers": obj.get("dstTransferPeers") + }) + return _obj + + diff --git a/fireblocks_client/models/policy_rule_authorization_groups.py b/fireblocks_client/models/policy_rule_authorization_groups.py new file mode 100644 index 00000000..5ed2e93c --- /dev/null +++ b/fireblocks_client/models/policy_rule_authorization_groups.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictBool, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.policy_rule_authorization_groups_groups_inner import PolicyRuleAuthorizationGroupsGroupsInner +from typing import Optional, Set +from typing_extensions import Self + +class PolicyRuleAuthorizationGroups(BaseModel): + """ + Defines the transaction approval terms + """ # noqa: E501 + logic: Optional[StrictStr] = Field(default=None, description="* AND - requires approval of all authorization groups * OR - requires approval of at least one of the authorization groups ") + allow_operator_as_authorizer: Optional[StrictBool] = Field(default=None, description="Defines whether the user who initiates a transaction can approve their own transaction and count toward the approval threshold for their transaction", alias="allowOperatorAsAuthorizer") + groups: Optional[List[PolicyRuleAuthorizationGroupsGroupsInner]] = Field(default=None, description="Groups of entities which can approve the transaction") + __properties: ClassVar[List[str]] = ["logic", "allowOperatorAsAuthorizer", "groups"] + + @field_validator('logic') + def logic_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['AND', 'OR']): + raise ValueError("must be one of enum values ('AND', 'OR')") + return value + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PolicyRuleAuthorizationGroups from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in groups (list) + _items = [] + if self.groups: + for _item in self.groups: + if _item: + _items.append(_item.to_dict()) + _dict['groups'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PolicyRuleAuthorizationGroups from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "logic": obj.get("logic"), + "allowOperatorAsAuthorizer": obj.get("allowOperatorAsAuthorizer"), + "groups": [PolicyRuleAuthorizationGroupsGroupsInner.from_dict(_item) for _item in obj["groups"]] if obj.get("groups") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/policy_rule_authorization_groups_groups_inner.py b/fireblocks_client/models/policy_rule_authorization_groups_groups_inner.py new file mode 100644 index 00000000..1607a47f --- /dev/null +++ b/fireblocks_client/models/policy_rule_authorization_groups_groups_inner.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class PolicyRuleAuthorizationGroupsGroupsInner(BaseModel): + """ + PolicyRuleAuthorizationGroupsGroupsInner + """ # noqa: E501 + users: Optional[List[StrictStr]] = Field(default=None, description="User ids") + users_groups: Optional[List[StrictStr]] = Field(default=None, description="Group ids", alias="usersGroups") + th: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Represents the min amount of entities which are required to approve the transaction, default is 1.") + __properties: ClassVar[List[str]] = ["users", "usersGroups", "th"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PolicyRuleAuthorizationGroupsGroupsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PolicyRuleAuthorizationGroupsGroupsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "users": obj.get("users"), + "usersGroups": obj.get("usersGroups"), + "th": obj.get("th") + }) + return _obj + + diff --git a/fireblocks_client/models/policy_rule_check_result.py b/fireblocks_client/models/policy_rule_check_result.py new file mode 100644 index 00000000..6d115ead --- /dev/null +++ b/fireblocks_client/models/policy_rule_check_result.py @@ -0,0 +1,107 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictFloat, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Union +from fireblocks_client.models.policy_rule_error import PolicyRuleError +from typing import Optional, Set +from typing_extensions import Self + +class PolicyRuleCheckResult(BaseModel): + """ + The rule validation result + """ # noqa: E501 + index: Union[StrictFloat, StrictInt] = Field(description="Rule index number in the policy") + status: StrictStr = Field(description="Validation status") + errors: List[PolicyRuleError] = Field(description="A set of rule validation error objects") + __properties: ClassVar[List[str]] = ["index", "status", "errors"] + + @field_validator('status') + def status_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['ok', 'failure']): + raise ValueError("must be one of enum values ('ok', 'failure')") + return value + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PolicyRuleCheckResult from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item in self.errors: + if _item: + _items.append(_item.to_dict()) + _dict['errors'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PolicyRuleCheckResult from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "index": obj.get("index"), + "status": obj.get("status"), + "errors": [PolicyRuleError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/policy_rule_designated_signers.py b/fireblocks_client/models/policy_rule_designated_signers.py new file mode 100644 index 00000000..e058cf0f --- /dev/null +++ b/fireblocks_client/models/policy_rule_designated_signers.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PolicyRuleDesignatedSigners(BaseModel): + """ + Set of ids representing the users who signs transactions that match a specific rule + """ # noqa: E501 + users: Optional[List[StrictStr]] = Field(default=None, description="Set of users ids") + users_groups: Optional[List[StrictStr]] = Field(default=None, description="Set of group ids", alias="usersGroups") + __properties: ClassVar[List[str]] = ["users", "usersGroups"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PolicyRuleDesignatedSigners from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PolicyRuleDesignatedSigners from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "users": obj.get("users"), + "usersGroups": obj.get("usersGroups") + }) + return _obj + + diff --git a/fireblocks_client/models/policy_rule_dst.py b/fireblocks_client/models/policy_rule_dst.py new file mode 100644 index 00000000..5c68db24 --- /dev/null +++ b/fireblocks_client/models/policy_rule_dst.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from fireblocks_client.models.src_or_dest_attributes_inner import SrcOrDestAttributesInner +from typing import Optional, Set +from typing_extensions import Self + +class PolicyRuleDst(BaseModel): + """ + Defines the destination accounts the rule allows transfers to + """ # noqa: E501 + ids: Optional[List[Annotated[List[SrcOrDestAttributesInner], Field(min_length=1, max_length=3)]]] = Field(default=None, description="A set of ids in a tuple format") + __properties: ClassVar[List[str]] = ["ids"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PolicyRuleDst from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in ids (list of list) + _items = [] + if self.ids: + for _item in self.ids: + if _item: + _items.append( + [_inner_item.to_dict() for _inner_item in _item if _inner_item is not None] + ) + _dict['ids'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PolicyRuleDst from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "ids": [ + [SrcOrDestAttributesInner.from_dict(_inner_item) for _inner_item in _item] + for _item in obj["ids"] + ] if obj.get("ids") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/policy_rule_error.py b/fireblocks_client/models/policy_rule_error.py new file mode 100644 index 00000000..ac95fceb --- /dev/null +++ b/fireblocks_client/models/policy_rule_error.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictFloat, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Union +from typing import Optional, Set +from typing_extensions import Self + +class PolicyRuleError(BaseModel): + """ + Rule validation result error + """ # noqa: E501 + error_message: StrictStr = Field(description="Error message", alias="errorMessage") + error_code: Union[StrictFloat, StrictInt] = Field(description="error code", alias="errorCode") + error_code_name: StrictStr = Field(description="error code name", alias="errorCodeName") + error_field: StrictStr = Field(description="The field which the error relates to * operator - transaction initiator * operators - transaction initiators * authorizationGroups - transaction authorizer groups * designatedSigner - transaction signer * designatedSigners - transaction signers * contractMethods - contract methods * amountAggregation - transaction amount aggregation configuration * src - transaction source asset configuration * dst - transaction destination asset configuration ", alias="errorField") + __properties: ClassVar[List[str]] = ["errorMessage", "errorCode", "errorCodeName", "errorField"] + + @field_validator('error_field') + def error_field_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['operator', 'operators', 'authorizationGroups', 'designatedSigner', 'designatedSigners', 'contractMethods', 'amountAggregation', 'src', 'dst']): + raise ValueError("must be one of enum values ('operator', 'operators', 'authorizationGroups', 'designatedSigner', 'designatedSigners', 'contractMethods', 'amountAggregation', 'src', 'dst')") + return value + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PolicyRuleError from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PolicyRuleError from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "errorMessage": obj.get("errorMessage"), + "errorCode": obj.get("errorCode"), + "errorCodeName": obj.get("errorCodeName"), + "errorField": obj.get("errorField") + }) + return _obj + + diff --git a/fireblocks_client/models/policy_rule_operators.py b/fireblocks_client/models/policy_rule_operators.py new file mode 100644 index 00000000..f1988c32 --- /dev/null +++ b/fireblocks_client/models/policy_rule_operators.py @@ -0,0 +1,104 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PolicyRuleOperators(BaseModel): + """ + Defines users/groups who can initiate the type of transaction to which the rule applies. + """ # noqa: E501 + wildcard: Optional[StrictStr] = Field(default=None, description="If used then this property should appear as the only child property * \"*\" - All users are allowed ") + users: Optional[List[StrictStr]] = Field(default=None, description="Set of users ids") + users_groups: Optional[List[StrictStr]] = Field(default=None, description="Set of group ids", alias="usersGroups") + services: Optional[List[StrictStr]] = Field(default=None, description="set of services to initiate transactions") + __properties: ClassVar[List[str]] = ["wildcard", "users", "usersGroups", "services"] + + @field_validator('wildcard') + def wildcard_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['*']): + raise ValueError("must be one of enum values ('*')") + return value + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PolicyRuleOperators from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PolicyRuleOperators from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "wildcard": obj.get("wildcard"), + "users": obj.get("users"), + "usersGroups": obj.get("usersGroups"), + "services": obj.get("services") + }) + return _obj + + diff --git a/fireblocks_client/models/policy_rule_raw_message_signing.py b/fireblocks_client/models/policy_rule_raw_message_signing.py new file mode 100644 index 00000000..ccddc410 --- /dev/null +++ b/fireblocks_client/models/policy_rule_raw_message_signing.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.policy_rule_raw_message_signing_derivation_path import PolicyRuleRawMessageSigningDerivationPath +from typing import Optional, Set +from typing_extensions import Self + +class PolicyRuleRawMessageSigning(BaseModel): + """ + Raw message signing configuration + """ # noqa: E501 + algorithm: Optional[StrictStr] = None + derivation_path: Optional[PolicyRuleRawMessageSigningDerivationPath] = Field(default=None, alias="derivationPath") + __properties: ClassVar[List[str]] = ["algorithm", "derivationPath"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PolicyRuleRawMessageSigning from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of derivation_path + if self.derivation_path: + _dict['derivationPath'] = self.derivation_path.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PolicyRuleRawMessageSigning from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "algorithm": obj.get("algorithm"), + "derivationPath": PolicyRuleRawMessageSigningDerivationPath.from_dict(obj["derivationPath"]) if obj.get("derivationPath") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/policy_rule_raw_message_signing_derivation_path.py b/fireblocks_client/models/policy_rule_raw_message_signing_derivation_path.py new file mode 100644 index 00000000..a3d96f0b --- /dev/null +++ b/fireblocks_client/models/policy_rule_raw_message_signing_derivation_path.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictFloat, StrictInt +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class PolicyRuleRawMessageSigningDerivationPath(BaseModel): + """ + PolicyRuleRawMessageSigningDerivationPath + """ # noqa: E501 + path: Optional[List[Union[StrictFloat, StrictInt]]] = None + __properties: ClassVar[List[str]] = ["path"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PolicyRuleRawMessageSigningDerivationPath from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PolicyRuleRawMessageSigningDerivationPath from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "path": obj.get("path") + }) + return _obj + + diff --git a/fireblocks_client/models/policy_rule_src.py b/fireblocks_client/models/policy_rule_src.py new file mode 100644 index 00000000..d679d436 --- /dev/null +++ b/fireblocks_client/models/policy_rule_src.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from fireblocks_client.models.src_or_dest_attributes_inner import SrcOrDestAttributesInner +from typing import Optional, Set +from typing_extensions import Self + +class PolicyRuleSrc(BaseModel): + """ + Defines source accounts the rule allows transfers to originate from + """ # noqa: E501 + ids: Optional[List[Annotated[List[SrcOrDestAttributesInner], Field(min_length=1, max_length=3)]]] = Field(default=None, description="A set of ids in a tuple format") + __properties: ClassVar[List[str]] = ["ids"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PolicyRuleSrc from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in ids (list of list) + _items = [] + if self.ids: + for _item in self.ids: + if _item: + _items.append( + [_inner_item.to_dict() for _inner_item in _item if _inner_item is not None] + ) + _dict['ids'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PolicyRuleSrc from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "ids": [ + [SrcOrDestAttributesInner.from_dict(_inner_item) for _inner_item in _item] + for _item in obj["ids"] + ] if obj.get("ids") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/policy_rules.py b/fireblocks_client/models/policy_rules.py new file mode 100644 index 00000000..03377ac7 --- /dev/null +++ b/fireblocks_client/models/policy_rules.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.policy_rule import PolicyRule +from typing import Optional, Set +from typing_extensions import Self + +class PolicyRules(BaseModel): + """ + PolicyRules + """ # noqa: E501 + rules: Optional[List[PolicyRule]] = Field(default=None, description="Policy rules") + __properties: ClassVar[List[str]] = ["rules"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PolicyRules from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in rules (list) + _items = [] + if self.rules: + for _item in self.rules: + if _item: + _items.append(_item.to_dict()) + _dict['rules'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PolicyRules from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "rules": [PolicyRule.from_dict(_item) for _item in obj["rules"]] if obj.get("rules") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/policy_src_or_dest_sub_type.py b/fireblocks_client/models/policy_src_or_dest_sub_type.py new file mode 100644 index 00000000..35ea30ee --- /dev/null +++ b/fireblocks_client/models/policy_src_or_dest_sub_type.py @@ -0,0 +1,41 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +from enum import Enum +from typing_extensions import Self + + +class PolicySrcOrDestSubType(str, Enum): + """ + * EXTERNAL - A whitelisted wallet assigned as external is typically used for addresses managed by your clients and counterparties * INTERNAL - A whitelisted wallet assigned as internal, is typically used for addresses that you control outside of your Fireblocks workspace * CONTRACT - A whitelisted wallet assigned as contract is for identifying and managing external smart contracts * EXCHANGETEST - Exchanges which operate only on testnet assets * \"*\" - All subtypes + """ + + """ + allowed enum values + """ + EXTERNAL = 'EXTERNAL' + INTERNAL = 'INTERNAL' + CONTRACT = 'CONTRACT' + EXCHANGETEST = 'EXCHANGETEST' + STAR = '*' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of PolicySrcOrDestSubType from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/fireblocks_client/models/policy_src_or_dest_type.py b/fireblocks_client/models/policy_src_or_dest_type.py new file mode 100644 index 00000000..7e541189 --- /dev/null +++ b/fireblocks_client/models/policy_src_or_dest_type.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +from enum import Enum +from typing_extensions import Self + + +class PolicySrcOrDestType(str, Enum): + """ + * EXCHANGE - A third-party exchange account connected to your workspace * UNMANAGED - A unmanaged wallet outside of Fireblocks workspace * VAULT - An account in your Fireblocks Vault * NETWORK_CONNECTION - A connection in your Fireblocks network * COMPOUND - (deprecated) An asset retrieved by using the Compound DeFI protocol * FIAT_ACCOUNT - A third-party fiat account connected to your workspace * ONE_TIME_ADDRESS - A non-whitelisted asset from your Fireblocks Workspace * \"*\" - All types + """ + + """ + allowed enum values + """ + EXCHANGE = 'EXCHANGE' + UNMANAGED = 'UNMANAGED' + VAULT = 'VAULT' + NETWORK_CONNECTION = 'NETWORK_CONNECTION' + COMPOUND = 'COMPOUND' + FIAT_ACCOUNT = 'FIAT_ACCOUNT' + ONE_TIME_ADDRESS = 'ONE_TIME_ADDRESS' + STAR = '*' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of PolicySrcOrDestType from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/fireblocks_client/models/policy_status.py b/fireblocks_client/models/policy_status.py new file mode 100644 index 00000000..61bae192 --- /dev/null +++ b/fireblocks_client/models/policy_status.py @@ -0,0 +1,43 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +from enum import Enum +from typing_extensions import Self + + +class PolicyStatus(str, Enum): + """ + * SUCCESS - success * UNVALIDATED - not validated yet * INVALID_CONFIGURATION - at least one rule is invalid * PENDING - pending approval * PENDING_CONSOLE_APPROVAL - pending approval from the console app * AWAITING_QUORUM - pending quorum approval * UNHANDLED_ERROR - unhandled error + """ + + """ + allowed enum values + """ + SUCCESS = 'SUCCESS' + UNVALIDATED = 'UNVALIDATED' + INVALID_CONFIGURATION = 'INVALID_CONFIGURATION' + PENDING = 'PENDING' + PENDING_CONSOLE_APPROVAL = 'PENDING_CONSOLE_APPROVAL' + AWAITING_QUORUM = 'AWAITING_QUORUM' + UNHANDLED_ERROR = 'UNHANDLED_ERROR' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of PolicyStatus from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/fireblocks_client/models/policy_validation.py b/fireblocks_client/models/policy_validation.py new file mode 100644 index 00000000..30a47765 --- /dev/null +++ b/fireblocks_client/models/policy_validation.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List +from fireblocks_client.models.policy_check_result import PolicyCheckResult +from typing import Optional, Set +from typing_extensions import Self + +class PolicyValidation(BaseModel): + """ + Policy validation object + """ # noqa: E501 + status: StrictStr = Field(description="Validation status") + check_result: PolicyCheckResult = Field(alias="checkResult") + __properties: ClassVar[List[str]] = ["status", "checkResult"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PolicyValidation from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of check_result + if self.check_result: + _dict['checkResult'] = self.check_result.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PolicyValidation from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "status": obj.get("status"), + "checkResult": PolicyCheckResult.from_dict(obj["checkResult"]) if obj.get("checkResult") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/pre_screening.py b/fireblocks_client/models/pre_screening.py new file mode 100644 index 00000000..26b38470 --- /dev/null +++ b/fireblocks_client/models/pre_screening.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictBool +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class PreScreening(BaseModel): + """ + PreScreening + """ # noqa: E501 + enabled: StrictBool + __properties: ClassVar[List[str]] = ["enabled"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PreScreening from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PreScreening from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "enabled": obj.get("enabled") + }) + return _obj + + diff --git a/fireblocks_client/models/provider_dto.py b/fireblocks_client/models/provider_dto.py new file mode 100644 index 00000000..015f8c7f --- /dev/null +++ b/fireblocks_client/models/provider_dto.py @@ -0,0 +1,106 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List +from fireblocks_client.models.validator_dto import ValidatorDto +from typing import Optional, Set +from typing_extensions import Self + +class ProviderDto(BaseModel): + """ + ProviderDto + """ # noqa: E501 + id: StrictStr = Field(description="The ID of the provider") + provider_name: StrictStr = Field(description="Name of the provider", alias="providerName") + validators: List[ValidatorDto] = Field(description="An array of objects that includes chain descriptors and the corresponding fee percentages for validators supported by the provider") + icon_url: StrictStr = Field(description="URL to the validator's icon", alias="iconUrl") + terms_of_service_url: StrictStr = Field(description="URL to the terms of service", alias="termsOfServiceUrl") + is_terms_of_service_approved: StrictBool = Field(description="Indicates whether the terms of service are approved", alias="isTermsOfServiceApproved") + __properties: ClassVar[List[str]] = ["id", "providerName", "validators", "iconUrl", "termsOfServiceUrl", "isTermsOfServiceApproved"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ProviderDto from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in validators (list) + _items = [] + if self.validators: + for _item in self.validators: + if _item: + _items.append(_item.to_dict()) + _dict['validators'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ProviderDto from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "providerName": obj.get("providerName"), + "validators": [ValidatorDto.from_dict(_item) for _item in obj["validators"]] if obj.get("validators") is not None else None, + "iconUrl": obj.get("iconUrl"), + "termsOfServiceUrl": obj.get("termsOfServiceUrl"), + "isTermsOfServiceApproved": obj.get("isTermsOfServiceApproved") + }) + return _obj + + diff --git a/fireblocks_client/models/public_key_information.py b/fireblocks_client/models/public_key_information.py new file mode 100644 index 00000000..25991807 --- /dev/null +++ b/fireblocks_client/models/public_key_information.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class PublicKeyInformation(BaseModel): + """ + PublicKeyInformation + """ # noqa: E501 + algorithm: Optional[StrictStr] = None + derivation_path: Optional[List[Union[StrictFloat, StrictInt]]] = Field(default=None, alias="derivationPath") + public_key: Optional[StrictStr] = Field(default=None, alias="publicKey") + __properties: ClassVar[List[str]] = ["algorithm", "derivationPath", "publicKey"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PublicKeyInformation from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PublicKeyInformation from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "algorithm": obj.get("algorithm"), + "derivationPath": obj.get("derivationPath"), + "publicKey": obj.get("publicKey") + }) + return _obj + + diff --git a/fireblocks_client/models/publish_draft_request.py b/fireblocks_client/models/publish_draft_request.py new file mode 100644 index 00000000..58ed4a6d --- /dev/null +++ b/fireblocks_client/models/publish_draft_request.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PublishDraftRequest(BaseModel): + """ + PublishDraftRequest + """ # noqa: E501 + draft_id: Optional[StrictStr] = Field(default=None, description="draft unique identifier", alias="draftId") + __properties: ClassVar[List[str]] = ["draftId"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PublishDraftRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PublishDraftRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "draftId": obj.get("draftId") + }) + return _obj + + diff --git a/fireblocks_client/models/publish_result.py b/fireblocks_client/models/publish_result.py new file mode 100644 index 00000000..937449b0 --- /dev/null +++ b/fireblocks_client/models/publish_result.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List +from fireblocks_client.models.policy_check_result import PolicyCheckResult +from fireblocks_client.models.policy_metadata import PolicyMetadata +from fireblocks_client.models.policy_rule import PolicyRule +from fireblocks_client.models.policy_status import PolicyStatus +from typing import Optional, Set +from typing_extensions import Self + +class PublishResult(BaseModel): + """ + Response object of the publish policy operation + """ # noqa: E501 + status: PolicyStatus + rules: List[PolicyRule] + check_result: PolicyCheckResult = Field(alias="checkResult") + metadata: PolicyMetadata + __properties: ClassVar[List[str]] = ["status", "rules", "checkResult", "metadata"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PublishResult from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in rules (list) + _items = [] + if self.rules: + for _item in self.rules: + if _item: + _items.append(_item.to_dict()) + _dict['rules'] = _items + # override the default output from pydantic by calling `to_dict()` of check_result + if self.check_result: + _dict['checkResult'] = self.check_result.to_dict() + # 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: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PublishResult from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "status": obj.get("status"), + "rules": [PolicyRule.from_dict(_item) for _item in obj["rules"]] if obj.get("rules") is not None else None, + "checkResult": PolicyCheckResult.from_dict(obj["checkResult"]) if obj.get("checkResult") is not None else None, + "metadata": PolicyMetadata.from_dict(obj["metadata"]) if obj.get("metadata") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/read_abi_function.py b/fireblocks_client/models/read_abi_function.py new file mode 100644 index 00000000..d847cd52 --- /dev/null +++ b/fireblocks_client/models/read_abi_function.py @@ -0,0 +1,121 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.parameter import Parameter +from fireblocks_client.models.parameter_with_value import ParameterWithValue +from typing import Optional, Set +from typing_extensions import Self + +class ReadAbiFunction(BaseModel): + """ + ReadAbiFunction + """ # noqa: E501 + state_mutability: StrictStr = Field(alias="stateMutability") + outputs: Optional[List[Parameter]] = None + name: Optional[StrictStr] = None + type: StrictStr + inputs: List[ParameterWithValue] + description: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["stateMutability", "outputs", "name", "type", "inputs", "description"] + + @field_validator('state_mutability') + def state_mutability_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['pure', 'view']): + raise ValueError("must be one of enum values ('pure', 'view')") + return value + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ReadAbiFunction from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in outputs (list) + _items = [] + if self.outputs: + for _item in self.outputs: + if _item: + _items.append(_item.to_dict()) + _dict['outputs'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in inputs (list) + _items = [] + if self.inputs: + for _item in self.inputs: + if _item: + _items.append(_item.to_dict()) + _dict['inputs'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ReadAbiFunction from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "stateMutability": obj.get("stateMutability"), + "outputs": [Parameter.from_dict(_item) for _item in obj["outputs"]] if obj.get("outputs") is not None else None, + "name": obj.get("name"), + "type": obj.get("type"), + "inputs": [ParameterWithValue.from_dict(_item) for _item in obj["inputs"]] if obj.get("inputs") is not None else None, + "description": obj.get("description") + }) + return _obj + + diff --git a/fireblocks_client/models/read_call_function_dto.py b/fireblocks_client/models/read_call_function_dto.py new file mode 100644 index 00000000..7c95b4cf --- /dev/null +++ b/fireblocks_client/models/read_call_function_dto.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List +from fireblocks_client.models.read_abi_function import ReadAbiFunction +from typing import Optional, Set +from typing_extensions import Self + +class ReadCallFunctionDto(BaseModel): + """ + ReadCallFunctionDto + """ # noqa: E501 + abi_function: List[ReadAbiFunction] = Field(description="The abi of the read function you wish to call", alias="abiFunction") + __properties: ClassVar[List[str]] = ["abiFunction"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ReadCallFunctionDto from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in abi_function (list) + _items = [] + if self.abi_function: + for _item in self.abi_function: + if _item: + _items.append(_item.to_dict()) + _dict['abiFunction'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ReadCallFunctionDto from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "abiFunction": [ReadAbiFunction.from_dict(_item) for _item in obj["abiFunction"]] if obj.get("abiFunction") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/redeem_funds_to_linked_dda_response.py b/fireblocks_client/models/redeem_funds_to_linked_dda_response.py new file mode 100644 index 00000000..6d34b808 --- /dev/null +++ b/fireblocks_client/models/redeem_funds_to_linked_dda_response.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictBool +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class RedeemFundsToLinkedDDAResponse(BaseModel): + """ + RedeemFundsToLinkedDDAResponse + """ # noqa: E501 + success: StrictBool = Field(description="Indicates whether the funds were successfully redeemed to the linked DDA") + __properties: ClassVar[List[str]] = ["success"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of RedeemFundsToLinkedDDAResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of RedeemFundsToLinkedDDAResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success") + }) + return _obj + + diff --git a/fireblocks_client/models/register_new_asset_request.py b/fireblocks_client/models/register_new_asset_request.py new file mode 100644 index 00000000..e28deee9 --- /dev/null +++ b/fireblocks_client/models/register_new_asset_request.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class RegisterNewAssetRequest(BaseModel): + """ + RegisterNewAssetRequest + """ # noqa: E501 + blockchain_id: StrictStr = Field(description="Native asset of blockchain", alias="blockchainId") + address: StrictStr = Field(description="Asset address") + symbol: Optional[StrictStr] = Field(default=None, description="Asset symbol") + __properties: ClassVar[List[str]] = ["blockchainId", "address", "symbol"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of RegisterNewAssetRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of RegisterNewAssetRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "blockchainId": obj.get("blockchainId"), + "address": obj.get("address"), + "symbol": obj.get("symbol") + }) + return _obj + + diff --git a/fireblocks_client/models/related_transaction_dto.py b/fireblocks_client/models/related_transaction_dto.py new file mode 100644 index 00000000..deec185a --- /dev/null +++ b/fireblocks_client/models/related_transaction_dto.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class RelatedTransactionDto(BaseModel): + """ + RelatedTransactionDto + """ # noqa: E501 + tx_id: StrictStr = Field(description="The transaction ID", alias="txId") + completed: StrictBool = Field(description="Is the transaction completed or not") + __properties: ClassVar[List[str]] = ["txId", "completed"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of RelatedTransactionDto from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of RelatedTransactionDto from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "txId": obj.get("txId"), + "completed": obj.get("completed") + }) + return _obj + + diff --git a/fireblocks_client/models/remove_collateral_request_body.py b/fireblocks_client/models/remove_collateral_request_body.py new file mode 100644 index 00000000..09f47e47 --- /dev/null +++ b/fireblocks_client/models/remove_collateral_request_body.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.transaction_request import TransactionRequest +from typing import Optional, Set +from typing_extensions import Self + +class RemoveCollateralRequestBody(BaseModel): + """ + RemoveCollateralRequestBody + """ # noqa: E501 + transaction_request: Optional[TransactionRequest] = Field(default=None, alias="transactionRequest") + is_dst_collateral: Optional[StrictBool] = Field(default=None, description="optional", alias="isDstCollateral") + __properties: ClassVar[List[str]] = ["transactionRequest", "isDstCollateral"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of RemoveCollateralRequestBody from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of transaction_request + if self.transaction_request: + _dict['transactionRequest'] = self.transaction_request.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of RemoveCollateralRequestBody from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "transactionRequest": TransactionRequest.from_dict(obj["transactionRequest"]) if obj.get("transactionRequest") is not None else None, + "isDstCollateral": obj.get("isDstCollateral") + }) + return _obj + + diff --git a/fireblocks_client/models/rename_cosigner.py b/fireblocks_client/models/rename_cosigner.py new file mode 100644 index 00000000..d13d52a9 --- /dev/null +++ b/fireblocks_client/models/rename_cosigner.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class RenameCosigner(BaseModel): + """ + RenameCosigner + """ # noqa: E501 + name: Optional[StrictStr] = Field(default=None, description="The new name of the cosigner") + __properties: ClassVar[List[str]] = ["name"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of RenameCosigner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if name (nullable) is None + # and model_fields_set contains the field + if self.name is None and "name" in self.model_fields_set: + _dict['name'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of RenameCosigner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name") + }) + return _obj + + diff --git a/fireblocks_client/models/rename_vault_account_response.py b/fireblocks_client/models/rename_vault_account_response.py new file mode 100644 index 00000000..b5080ca4 --- /dev/null +++ b/fireblocks_client/models/rename_vault_account_response.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class RenameVaultAccountResponse(BaseModel): + """ + RenameVaultAccountResponse + """ # noqa: E501 + name: Optional[StrictStr] = Field(default=None, description="The new name of the vault account") + id: Optional[StrictStr] = Field(default=None, description="The ID of the vault account") + __properties: ClassVar[List[str]] = ["name", "id"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of RenameVaultAccountResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of RenameVaultAccountResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "id": obj.get("id") + }) + return _obj + + diff --git a/fireblocks_client/models/resend_transaction_webhooks_request.py b/fireblocks_client/models/resend_transaction_webhooks_request.py new file mode 100644 index 00000000..afff56a7 --- /dev/null +++ b/fireblocks_client/models/resend_transaction_webhooks_request.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ResendTransactionWebhooksRequest(BaseModel): + """ + ResendTransactionWebhooksRequest + """ # noqa: E501 + resend_created: Optional[StrictBool] = Field(default=None, alias="resendCreated") + resend_status_updated: Optional[StrictBool] = Field(default=None, alias="resendStatusUpdated") + __properties: ClassVar[List[str]] = ["resendCreated", "resendStatusUpdated"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ResendTransactionWebhooksRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ResendTransactionWebhooksRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "resendCreated": obj.get("resendCreated"), + "resendStatusUpdated": obj.get("resendStatusUpdated") + }) + return _obj + + diff --git a/fireblocks_client/models/resend_webhooks_by_transaction_id_response.py b/fireblocks_client/models/resend_webhooks_by_transaction_id_response.py new file mode 100644 index 00000000..8b28d6b5 --- /dev/null +++ b/fireblocks_client/models/resend_webhooks_by_transaction_id_response.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictBool +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class ResendWebhooksByTransactionIdResponse(BaseModel): + """ + ResendWebhooksByTransactionIdResponse + """ # noqa: E501 + success: StrictBool = Field(description="Indicates whether the webhooks were successfully resent") + __properties: ClassVar[List[str]] = ["success"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ResendWebhooksByTransactionIdResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ResendWebhooksByTransactionIdResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success") + }) + return _obj + + diff --git a/fireblocks_client/models/resend_webhooks_response.py b/fireblocks_client/models/resend_webhooks_response.py new file mode 100644 index 00000000..42a5471d --- /dev/null +++ b/fireblocks_client/models/resend_webhooks_response.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictFloat, StrictInt +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class ResendWebhooksResponse(BaseModel): + """ + ResendWebhooksResponse + """ # noqa: E501 + messages_count: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="messagesCount") + __properties: ClassVar[List[str]] = ["messagesCount"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ResendWebhooksResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ResendWebhooksResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "messagesCount": obj.get("messagesCount") + }) + return _obj + + diff --git a/fireblocks_client/models/respond_to_connection_request.py b/fireblocks_client/models/respond_to_connection_request.py new file mode 100644 index 00000000..8f856337 --- /dev/null +++ b/fireblocks_client/models/respond_to_connection_request.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictBool +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class RespondToConnectionRequest(BaseModel): + """ + RespondToConnectionRequest + """ # noqa: E501 + approve: StrictBool = Field(description="Approval of the initiated Web3 connection.") + __properties: ClassVar[List[str]] = ["approve"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of RespondToConnectionRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of RespondToConnectionRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "approve": obj.get("approve") + }) + return _obj + + diff --git a/fireblocks_client/models/reward_info.py b/fireblocks_client/models/reward_info.py new file mode 100644 index 00000000..e1671e79 --- /dev/null +++ b/fireblocks_client/models/reward_info.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class RewardInfo(BaseModel): + """ + This field is relevant only for Algorand transactions. Both `srcRewards` and `destRewards` will appear only for Vault to Vault transactions, otherwise you will receive only the Fireblocks’ side of the transaction. + """ # noqa: E501 + src_rewards: Optional[StrictStr] = Field(default=None, alias="srcRewards") + dest_rewards: Optional[StrictStr] = Field(default=None, alias="destRewards") + __properties: ClassVar[List[str]] = ["srcRewards", "destRewards"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of RewardInfo from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of RewardInfo from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "srcRewards": obj.get("srcRewards"), + "destRewards": obj.get("destRewards") + }) + return _obj + + diff --git a/fireblocks_client/models/rewards_info.py b/fireblocks_client/models/rewards_info.py new file mode 100644 index 00000000..a9f1ecd4 --- /dev/null +++ b/fireblocks_client/models/rewards_info.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class RewardsInfo(BaseModel): + """ + RewardsInfo + """ # noqa: E501 + pending_rewards: Optional[StrictStr] = Field(default=None, description="Amount that is pending for rewards", alias="pendingRewards") + __properties: ClassVar[List[str]] = ["pendingRewards"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of RewardsInfo from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of RewardsInfo from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "pendingRewards": obj.get("pendingRewards") + }) + return _obj + + diff --git a/fireblocks_client/models/screening_configurations_request.py b/fireblocks_client/models/screening_configurations_request.py new file mode 100644 index 00000000..4572693f --- /dev/null +++ b/fireblocks_client/models/screening_configurations_request.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictBool, StrictFloat, StrictInt +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class ScreeningConfigurationsRequest(BaseModel): + """ + ScreeningConfigurationsRequest + """ # noqa: E501 + bypass_screening_during_service_outages: Optional[StrictBool] = Field(default=None, description="Flag to enable or disable bypass screening during service outages.", alias="bypassScreeningDuringServiceOutages") + inbound_transaction_delay: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Inbound transaction delay in seconds.", alias="inboundTransactionDelay") + outbound_transaction_delay: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Outbound transaction delay in seconds.", alias="outboundTransactionDelay") + __properties: ClassVar[List[str]] = ["bypassScreeningDuringServiceOutages", "inboundTransactionDelay", "outboundTransactionDelay"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ScreeningConfigurationsRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ScreeningConfigurationsRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "bypassScreeningDuringServiceOutages": obj.get("bypassScreeningDuringServiceOutages"), + "inboundTransactionDelay": obj.get("inboundTransactionDelay"), + "outboundTransactionDelay": obj.get("outboundTransactionDelay") + }) + return _obj + + diff --git a/fireblocks_client/models/screening_operation_execution.py b/fireblocks_client/models/screening_operation_execution.py new file mode 100644 index 00000000..f6201a9b --- /dev/null +++ b/fireblocks_client/models/screening_operation_execution.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictFloat, StrictInt +from typing import Any, ClassVar, Dict, List, Optional, Union +from fireblocks_client.models.screening_operation_execution_output import ScreeningOperationExecutionOutput +from fireblocks_client.models.screening_operation_failure import ScreeningOperationFailure +from typing import Optional, Set +from typing_extensions import Self + +class ScreeningOperationExecution(BaseModel): + """ + ScreeningOperationExecution + """ # noqa: E501 + output: Optional[ScreeningOperationExecutionOutput] = None + started_at: Union[StrictFloat, StrictInt] = Field(alias="startedAt") + finished_at: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="finishedAt") + failure: Optional[ScreeningOperationFailure] = None + __properties: ClassVar[List[str]] = ["output", "startedAt", "finishedAt", "failure"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ScreeningOperationExecution from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of output + if self.output: + _dict['output'] = self.output.to_dict() + # override the default output from pydantic by calling `to_dict()` of failure + if self.failure: + _dict['failure'] = self.failure.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ScreeningOperationExecution from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "output": ScreeningOperationExecutionOutput.from_dict(obj["output"]) if obj.get("output") is not None else None, + "startedAt": obj.get("startedAt"), + "finishedAt": obj.get("finishedAt"), + "failure": ScreeningOperationFailure.from_dict(obj["failure"]) if obj.get("failure") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/screening_operation_execution_output.py b/fireblocks_client/models/screening_operation_execution_output.py new file mode 100644 index 00000000..660ba632 --- /dev/null +++ b/fireblocks_client/models/screening_operation_execution_output.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List +from fireblocks_client.models.screening_verdict import ScreeningVerdict +from typing import Optional, Set +from typing_extensions import Self + +class ScreeningOperationExecutionOutput(BaseModel): + """ + ScreeningOperationExecutionOutput + """ # noqa: E501 + verdicts: List[ScreeningVerdict] + __properties: ClassVar[List[str]] = ["verdicts"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ScreeningOperationExecutionOutput from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in verdicts (list) + _items = [] + if self.verdicts: + for _item in self.verdicts: + if _item: + _items.append(_item.to_dict()) + _dict['verdicts'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ScreeningOperationExecutionOutput from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "verdicts": [ScreeningVerdict.from_dict(_item) for _item in obj["verdicts"]] if obj.get("verdicts") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/screening_operation_failure.py b/fireblocks_client/models/screening_operation_failure.py new file mode 100644 index 00000000..4c8019cb --- /dev/null +++ b/fireblocks_client/models/screening_operation_failure.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.screening_operation_execution_output import ScreeningOperationExecutionOutput +from typing import Optional, Set +from typing_extensions import Self + +class ScreeningOperationFailure(BaseModel): + """ + ScreeningOperationFailure + """ # noqa: E501 + reason: StrictStr + data: Optional[ScreeningOperationExecutionOutput] = None + __properties: ClassVar[List[str]] = ["reason", "data"] + + @field_validator('reason') + def reason_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['AML_PROCESS_FAILED', 'SCREENING_REJECTED']): + raise ValueError("must be one of enum values ('AML_PROCESS_FAILED', 'SCREENING_REJECTED')") + return value + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ScreeningOperationFailure from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of data + if self.data: + _dict['data'] = self.data.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ScreeningOperationFailure from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "reason": obj.get("reason"), + "data": ScreeningOperationExecutionOutput.from_dict(obj["data"]) if obj.get("data") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/screening_operation_type.py b/fireblocks_client/models/screening_operation_type.py new file mode 100644 index 00000000..6fd6c083 --- /dev/null +++ b/fireblocks_client/models/screening_operation_type.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +from enum import Enum +from typing_extensions import Self + + +class ScreeningOperationType(str, Enum): + """ + ScreeningOperationType + """ + + """ + allowed enum values + """ + SCREENING = 'SCREENING' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of ScreeningOperationType from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/fireblocks_client/models/screening_policy_response.py b/fireblocks_client/models/screening_policy_response.py new file mode 100644 index 00000000..e0a7779c --- /dev/null +++ b/fireblocks_client/models/screening_policy_response.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 datetime import datetime +from pydantic import BaseModel, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.travel_rule_policy_rule_response import TravelRulePolicyRuleResponse +from typing import Optional, Set +from typing_extensions import Self + +class ScreeningPolicyResponse(BaseModel): + """ + ScreeningPolicyResponse + """ # noqa: E501 + policy: TravelRulePolicyRuleResponse + policy_status: Optional[StrictStr] = Field(default=None, alias="policyStatus") + is_default: StrictBool = Field(alias="isDefault") + create_date: Optional[datetime] = Field(default=None, alias="createDate") + last_update: datetime = Field(alias="lastUpdate") + __properties: ClassVar[List[str]] = ["policy", "policyStatus", "isDefault", "createDate", "lastUpdate"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ScreeningPolicyResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of policy + if self.policy: + _dict['policy'] = self.policy.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ScreeningPolicyResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "policy": TravelRulePolicyRuleResponse.from_dict(obj["policy"]) if obj.get("policy") is not None else None, + "policyStatus": obj.get("policyStatus"), + "isDefault": obj.get("isDefault"), + "createDate": obj.get("createDate"), + "lastUpdate": obj.get("lastUpdate") + }) + return _obj + + diff --git a/fireblocks_client/models/screening_provider_rules_configuration_response.py b/fireblocks_client/models/screening_provider_rules_configuration_response.py new file mode 100644 index 00000000..80ca2738 --- /dev/null +++ b/fireblocks_client/models/screening_provider_rules_configuration_response.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictFloat, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class ScreeningProviderRulesConfigurationResponse(BaseModel): + """ + ScreeningProviderRulesConfigurationResponse + """ # noqa: E501 + direction: Optional[StrictStr] = None + status: Optional[StrictStr] = None + amount_usd: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="amountUSD") + amount: Optional[Union[StrictFloat, StrictInt]] = None + asset: Optional[StrictStr] = None + action: StrictStr + __properties: ClassVar[List[str]] = ["direction", "status", "amountUSD", "amount", "asset", "action"] + + @field_validator('direction') + def direction_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['INBOUND', 'OUTBOUND']): + raise ValueError("must be one of enum values ('INBOUND', 'OUTBOUND')") + return value + + @field_validator('status') + def status_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['COMPLETED', 'PENDING', 'REJECTED', 'FAILED', 'CANCELED', 'BLOCKING_TIME_EXPIRED']): + raise ValueError("must be one of enum values ('COMPLETED', 'PENDING', 'REJECTED', 'FAILED', 'CANCELED', 'BLOCKING_TIME_EXPIRED')") + return value + + @field_validator('action') + def action_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['ACCEPT', 'REJECT', 'ALERT', 'WAIT', 'FREEZE', 'CANCEL']): + raise ValueError("must be one of enum values ('ACCEPT', 'REJECT', 'ALERT', 'WAIT', 'FREEZE', 'CANCEL')") + return value + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ScreeningProviderRulesConfigurationResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ScreeningProviderRulesConfigurationResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "direction": obj.get("direction"), + "status": obj.get("status"), + "amountUSD": obj.get("amountUSD"), + "amount": obj.get("amount"), + "asset": obj.get("asset"), + "action": obj.get("action") + }) + return _obj + + diff --git a/fireblocks_client/models/screening_update_configurations_request.py b/fireblocks_client/models/screening_update_configurations_request.py new file mode 100644 index 00000000..6387fe88 --- /dev/null +++ b/fireblocks_client/models/screening_update_configurations_request.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ScreeningUpdateConfigurationsRequest(BaseModel): + """ + ScreeningUpdateConfigurationsRequest + """ # noqa: E501 + disable_bypass: Optional[StrictBool] = Field(default=None, description="Flag to enable or disable bypass screening on tenant configuration.", alias="disableBypass") + disable_unfreeze: Optional[StrictBool] = Field(default=None, description="Flag to enable or disable unfreeze of transaction frozen by policy rule on tenant configuration.", alias="disableUnfreeze") + __properties: ClassVar[List[str]] = ["disableBypass", "disableUnfreeze"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ScreeningUpdateConfigurationsRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ScreeningUpdateConfigurationsRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "disableBypass": obj.get("disableBypass"), + "disableUnfreeze": obj.get("disableUnfreeze") + }) + return _obj + + diff --git a/fireblocks_client/models/screening_validation_failure.py b/fireblocks_client/models/screening_validation_failure.py new file mode 100644 index 00000000..8556b0af --- /dev/null +++ b/fireblocks_client/models/screening_validation_failure.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ScreeningValidationFailure(BaseModel): + """ + ScreeningValidationFailure + """ # noqa: E501 + reason: StrictStr + data: Optional[Dict[str, Any]] = None + __properties: ClassVar[List[str]] = ["reason", "data"] + + @field_validator('reason') + def reason_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['SCREENING_DISABLED_IN_TENANT']): + raise ValueError("must be one of enum values ('SCREENING_DISABLED_IN_TENANT')") + return value + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ScreeningValidationFailure from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ScreeningValidationFailure from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "reason": obj.get("reason"), + "data": obj.get("data") + }) + return _obj + + diff --git a/fireblocks_client/models/screening_verdict.py b/fireblocks_client/models/screening_verdict.py new file mode 100644 index 00000000..3d62e74c --- /dev/null +++ b/fireblocks_client/models/screening_verdict.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.destination import Destination +from fireblocks_client.models.screening_verdict_matched_rule import ScreeningVerdictMatchedRule +from typing import Optional, Set +from typing_extensions import Self + +class ScreeningVerdict(BaseModel): + """ + ScreeningVerdict + """ # noqa: E501 + verdict: StrictStr + execution_operation_id: StrictStr = Field(alias="executionOperationId") + account: Destination + asset_id: StrictStr = Field(alias="assetId") + amount: StrictStr + matched_rule: Optional[ScreeningVerdictMatchedRule] = Field(default=None, alias="matchedRule") + __properties: ClassVar[List[str]] = ["verdict", "executionOperationId", "account", "assetId", "amount", "matchedRule"] + + @field_validator('verdict') + def verdict_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['PASSED', 'PASSED_WITH_ALERT', 'REJECTED', 'FAILED', 'BYPASSED']): + raise ValueError("must be one of enum values ('PASSED', 'PASSED_WITH_ALERT', 'REJECTED', 'FAILED', 'BYPASSED')") + return value + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ScreeningVerdict from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of account + if self.account: + _dict['account'] = self.account.to_dict() + # override the default output from pydantic by calling `to_dict()` of matched_rule + if self.matched_rule: + _dict['matchedRule'] = self.matched_rule.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ScreeningVerdict from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "verdict": obj.get("verdict"), + "executionOperationId": obj.get("executionOperationId"), + "account": Destination.from_dict(obj["account"]) if obj.get("account") is not None else None, + "assetId": obj.get("assetId"), + "amount": obj.get("amount"), + "matchedRule": ScreeningVerdictMatchedRule.from_dict(obj["matchedRule"]) if obj.get("matchedRule") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/screening_verdict_matched_rule.py b/fireblocks_client/models/screening_verdict_matched_rule.py new file mode 100644 index 00000000..a333097e --- /dev/null +++ b/fireblocks_client/models/screening_verdict_matched_rule.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ScreeningVerdictMatchedRule(BaseModel): + """ + ScreeningVerdictMatchedRule + """ # noqa: E501 + action: Optional[StrictStr] = None + category: Optional[List[StrictStr]] = None + __properties: ClassVar[List[str]] = ["action", "category"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ScreeningVerdictMatchedRule from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ScreeningVerdictMatchedRule from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "action": obj.get("action"), + "category": obj.get("category") + }) + return _obj + + diff --git a/fireblocks_client/models/session_dto.py b/fireblocks_client/models/session_dto.py new file mode 100644 index 00000000..5a271f1e --- /dev/null +++ b/fireblocks_client/models/session_dto.py @@ -0,0 +1,130 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 datetime import datetime +from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Union +from fireblocks_client.models.session_metadata import SessionMetadata +from typing import Optional, Set +from typing_extensions import Self + +class SessionDTO(BaseModel): + """ + SessionDTO + """ # noqa: E501 + id: StrictStr = Field(description="Id of the connection") + user_id: StrictStr = Field(description="Id of the user that created the connection", alias="userId") + session_metadata: SessionMetadata = Field(description="Metadata of the connection (provided by the dapp)", alias="sessionMetadata") + vault_account_id: Union[StrictFloat, StrictInt] = Field(description="The vault to connect", alias="vaultAccountId") + fee_level: StrictStr = Field(description="The default fee level", alias="feeLevel") + chain_ids: List[StrictStr] = Field(description="The chains approved for the connection", alias="chainIds") + connection_type: StrictStr = Field(description="The connection's type", alias="connectionType") + connection_method: StrictStr = Field(description="The method through which the connection was established", alias="connectionMethod") + creation_date: datetime = Field(description="Timestamp of the session's creation", alias="creationDate") + __properties: ClassVar[List[str]] = ["id", "userId", "sessionMetadata", "vaultAccountId", "feeLevel", "chainIds", "connectionType", "connectionMethod", "creationDate"] + + @field_validator('fee_level') + def fee_level_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['MEDIUM', 'HIGH']): + raise ValueError("must be one of enum values ('MEDIUM', 'HIGH')") + return value + + @field_validator('connection_type') + def connection_type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['WalletConnect']): + raise ValueError("must be one of enum values ('WalletConnect')") + return value + + @field_validator('connection_method') + def connection_method_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['DESKTOP', 'MOBILE', 'API']): + raise ValueError("must be one of enum values ('DESKTOP', 'MOBILE', 'API')") + return value + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SessionDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of session_metadata + if self.session_metadata: + _dict['sessionMetadata'] = self.session_metadata.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SessionDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "userId": obj.get("userId"), + "sessionMetadata": SessionMetadata.from_dict(obj["sessionMetadata"]) if obj.get("sessionMetadata") is not None else None, + "vaultAccountId": obj.get("vaultAccountId"), + "feeLevel": obj.get("feeLevel"), + "chainIds": obj.get("chainIds"), + "connectionType": obj.get("connectionType"), + "connectionMethod": obj.get("connectionMethod"), + "creationDate": obj.get("creationDate") + }) + return _obj + + diff --git a/fireblocks_client/models/session_metadata.py b/fireblocks_client/models/session_metadata.py new file mode 100644 index 00000000..9285acb0 --- /dev/null +++ b/fireblocks_client/models/session_metadata.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class SessionMetadata(BaseModel): + """ + SessionMetadata + """ # noqa: E501 + app_url: StrictStr = Field(alias="appUrl") + app_name: Optional[StrictStr] = Field(default=None, alias="appName") + app_description: Optional[StrictStr] = Field(default=None, alias="appDescription") + app_icon: Optional[StrictStr] = Field(default=None, alias="appIcon") + __properties: ClassVar[List[str]] = ["appUrl", "appName", "appDescription", "appIcon"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SessionMetadata from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SessionMetadata from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "appUrl": obj.get("appUrl"), + "appName": obj.get("appName"), + "appDescription": obj.get("appDescription"), + "appIcon": obj.get("appIcon") + }) + return _obj + + diff --git a/fireblocks_client/models/set_admin_quorum_threshold_request.py b/fireblocks_client/models/set_admin_quorum_threshold_request.py new file mode 100644 index 00000000..77f0f7c8 --- /dev/null +++ b/fireblocks_client/models/set_admin_quorum_threshold_request.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictFloat, StrictInt +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class SetAdminQuorumThresholdRequest(BaseModel): + """ + SetAdminQuorumThresholdRequest + """ # noqa: E501 + admin_quorum_threshold: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The number of admins that will requires to approve an operation", alias="adminQuorumThreshold") + __properties: ClassVar[List[str]] = ["adminQuorumThreshold"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SetAdminQuorumThresholdRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SetAdminQuorumThresholdRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "adminQuorumThreshold": obj.get("adminQuorumThreshold") + }) + return _obj + + diff --git a/fireblocks_client/models/set_admin_quorum_threshold_response.py b/fireblocks_client/models/set_admin_quorum_threshold_response.py new file mode 100644 index 00000000..a8c33a2f --- /dev/null +++ b/fireblocks_client/models/set_admin_quorum_threshold_response.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class SetAdminQuorumThresholdResponse(BaseModel): + """ + SetAdminQuorumThresholdResponse + """ # noqa: E501 + message: StrictStr = Field(description="The message which indicates the result of the operation.") + __properties: ClassVar[List[str]] = ["message"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SetAdminQuorumThresholdResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SetAdminQuorumThresholdResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "message": obj.get("message") + }) + return _obj + + diff --git a/fireblocks_client/models/set_auto_fuel_request.py b/fireblocks_client/models/set_auto_fuel_request.py new file mode 100644 index 00000000..2d472471 --- /dev/null +++ b/fireblocks_client/models/set_auto_fuel_request.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class SetAutoFuelRequest(BaseModel): + """ + SetAutoFuelRequest + """ # noqa: E501 + auto_fuel: Optional[StrictBool] = Field(default=None, description="Auto Fuel", alias="autoFuel") + __properties: ClassVar[List[str]] = ["autoFuel"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SetAutoFuelRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SetAutoFuelRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "autoFuel": obj.get("autoFuel") + }) + return _obj + + diff --git a/fireblocks_client/models/set_confirmations_threshold_request.py b/fireblocks_client/models/set_confirmations_threshold_request.py new file mode 100644 index 00000000..2e7fbe79 --- /dev/null +++ b/fireblocks_client/models/set_confirmations_threshold_request.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictFloat, StrictInt +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class SetConfirmationsThresholdRequest(BaseModel): + """ + SetConfirmationsThresholdRequest + """ # noqa: E501 + num_of_confirmations: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="numOfConfirmations") + __properties: ClassVar[List[str]] = ["numOfConfirmations"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SetConfirmationsThresholdRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SetConfirmationsThresholdRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "numOfConfirmations": obj.get("numOfConfirmations") + }) + return _obj + + diff --git a/fireblocks_client/models/set_confirmations_threshold_response.py b/fireblocks_client/models/set_confirmations_threshold_response.py new file mode 100644 index 00000000..dbad6c84 --- /dev/null +++ b/fireblocks_client/models/set_confirmations_threshold_response.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class SetConfirmationsThresholdResponse(BaseModel): + """ + SetConfirmationsThresholdResponse + """ # noqa: E501 + success: Optional[StrictBool] = None + transactions: Optional[List[StrictStr]] = None + __properties: ClassVar[List[str]] = ["success", "transactions"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SetConfirmationsThresholdResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SetConfirmationsThresholdResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "transactions": obj.get("transactions") + }) + return _obj + + diff --git a/fireblocks_client/models/set_customer_ref_id_for_address_request.py b/fireblocks_client/models/set_customer_ref_id_for_address_request.py new file mode 100644 index 00000000..d1bec17d --- /dev/null +++ b/fireblocks_client/models/set_customer_ref_id_for_address_request.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class SetCustomerRefIdForAddressRequest(BaseModel): + """ + SetCustomerRefIdForAddressRequest + """ # noqa: E501 + customer_ref_id: Optional[StrictStr] = Field(default=None, description="Customer reference ID", alias="customerRefId") + __properties: ClassVar[List[str]] = ["customerRefId"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SetCustomerRefIdForAddressRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SetCustomerRefIdForAddressRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "customerRefId": obj.get("customerRefId") + }) + return _obj + + diff --git a/fireblocks_client/models/set_customer_ref_id_request.py b/fireblocks_client/models/set_customer_ref_id_request.py new file mode 100644 index 00000000..548dc0e6 --- /dev/null +++ b/fireblocks_client/models/set_customer_ref_id_request.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class SetCustomerRefIdRequest(BaseModel): + """ + SetCustomerRefIdRequest + """ # noqa: E501 + customer_ref_id: Optional[StrictStr] = Field(default=None, description="Customer reference ID", alias="customerRefId") + __properties: ClassVar[List[str]] = ["customerRefId"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SetCustomerRefIdRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SetCustomerRefIdRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "customerRefId": obj.get("customerRefId") + }) + return _obj + + diff --git a/fireblocks_client/models/set_network_id_discoverability_request.py b/fireblocks_client/models/set_network_id_discoverability_request.py new file mode 100644 index 00000000..f4596169 --- /dev/null +++ b/fireblocks_client/models/set_network_id_discoverability_request.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictBool +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class SetNetworkIdDiscoverabilityRequest(BaseModel): + """ + SetNetworkIdDiscoverabilityRequest + """ # noqa: E501 + is_discoverable: StrictBool = Field(alias="isDiscoverable") + __properties: ClassVar[List[str]] = ["isDiscoverable"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SetNetworkIdDiscoverabilityRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SetNetworkIdDiscoverabilityRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "isDiscoverable": obj.get("isDiscoverable") + }) + return _obj + + diff --git a/fireblocks_client/models/set_network_id_name_request.py b/fireblocks_client/models/set_network_id_name_request.py new file mode 100644 index 00000000..77dcba24 --- /dev/null +++ b/fireblocks_client/models/set_network_id_name_request.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class SetNetworkIdNameRequest(BaseModel): + """ + SetNetworkIdNameRequest + """ # noqa: E501 + name: StrictStr + __properties: ClassVar[List[str]] = ["name"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SetNetworkIdNameRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SetNetworkIdNameRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name") + }) + return _obj + + diff --git a/fireblocks_client/models/set_network_id_response.py b/fireblocks_client/models/set_network_id_response.py new file mode 100644 index 00000000..34dd1c54 --- /dev/null +++ b/fireblocks_client/models/set_network_id_response.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictBool +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class SetNetworkIdResponse(BaseModel): + """ + SetNetworkIdResponse + """ # noqa: E501 + success: StrictBool + __properties: ClassVar[List[str]] = ["success"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SetNetworkIdResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SetNetworkIdResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success") + }) + return _obj + + diff --git a/fireblocks_client/models/set_network_id_routing_policy_request.py b/fireblocks_client/models/set_network_id_routing_policy_request.py new file mode 100644 index 00000000..1d0d5a84 --- /dev/null +++ b/fireblocks_client/models/set_network_id_routing_policy_request.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List +from fireblocks_client.models.network_id_routing_policy_value import NetworkIdRoutingPolicyValue +from typing import Optional, Set +from typing_extensions import Self + +class SetNetworkIdRoutingPolicyRequest(BaseModel): + """ + SetNetworkIdRoutingPolicyRequest + """ # noqa: E501 + routing_policy: Dict[str, NetworkIdRoutingPolicyValue] = Field(alias="routingPolicy") + __properties: ClassVar[List[str]] = ["routingPolicy"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SetNetworkIdRoutingPolicyRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each value in routing_policy (dict) + _field_dict = {} + if self.routing_policy: + for _key in self.routing_policy: + if self.routing_policy[_key]: + _field_dict[_key] = self.routing_policy[_key].to_dict() + _dict['routingPolicy'] = _field_dict + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SetNetworkIdRoutingPolicyRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "routingPolicy": dict( + (_k, NetworkIdRoutingPolicyValue.from_dict(_v)) + for _k, _v in obj["routingPolicy"].items() + ) + if obj.get("routingPolicy") is not None + else None + }) + return _obj + + diff --git a/fireblocks_client/models/set_ota_status_request.py b/fireblocks_client/models/set_ota_status_request.py new file mode 100644 index 00000000..581eec0a --- /dev/null +++ b/fireblocks_client/models/set_ota_status_request.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class SetOtaStatusRequest(BaseModel): + """ + SetOtaStatusRequest + """ # noqa: E501 + enabled: Optional[StrictBool] = Field(default=None, description="Set true or false to enable or disable OTA transactions") + __properties: ClassVar[List[str]] = ["enabled"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SetOtaStatusRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SetOtaStatusRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "enabled": obj.get("enabled") + }) + return _obj + + diff --git a/fireblocks_client/models/set_ota_status_response.py b/fireblocks_client/models/set_ota_status_response.py new file mode 100644 index 00000000..aa32d047 --- /dev/null +++ b/fireblocks_client/models/set_ota_status_response.py @@ -0,0 +1,141 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +import pprint +from pydantic import BaseModel, Field, StrictStr, ValidationError, field_validator +from typing import Any, List, Optional +from fireblocks_client.models.set_ota_status_response_one_of import SetOtaStatusResponseOneOf +from pydantic import StrictStr, Field +from typing import Union, List, Optional, Dict +from typing_extensions import Literal, Self + +SETOTASTATUSRESPONSE_ONE_OF_SCHEMAS = ["SetOtaStatusResponseOneOf", "str"] + +class SetOtaStatusResponse(BaseModel): + """ + SetOtaStatusResponse + """ + # data type: SetOtaStatusResponseOneOf + oneof_schema_1_validator: Optional[SetOtaStatusResponseOneOf] = None + # data type: str + oneof_schema_2_validator: Optional[StrictStr] = Field(default=None, description="Message indicating the result of the operation when config was successfully updated") + actual_instance: Optional[Union[SetOtaStatusResponseOneOf, str]] = None + one_of_schemas: List[str] = Field(default=Literal["SetOtaStatusResponseOneOf", "str"]) + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_oneof(cls, v): + instance = SetOtaStatusResponse.model_construct() + error_messages = [] + match = 0 + # validate data type: SetOtaStatusResponseOneOf + if not isinstance(v, SetOtaStatusResponseOneOf): + error_messages.append(f"Error! Input type `{type(v)}` is not `SetOtaStatusResponseOneOf`") + else: + match += 1 + # validate data type: str + try: + instance.oneof_schema_2_validator = v + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in SetOtaStatusResponse with oneOf schemas: SetOtaStatusResponseOneOf, str. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in SetOtaStatusResponse with oneOf schemas: SetOtaStatusResponseOneOf, str. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + match = 0 + + # deserialize data into SetOtaStatusResponseOneOf + try: + instance.actual_instance = SetOtaStatusResponseOneOf.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into str + try: + # validation + instance.oneof_schema_2_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.oneof_schema_2_validator + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when deserializing the JSON string into SetOtaStatusResponse with oneOf schemas: SetOtaStatusResponseOneOf, str. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into SetOtaStatusResponse with oneOf schemas: SetOtaStatusResponseOneOf, str. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], SetOtaStatusResponseOneOf, str]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + # primitive type + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/fireblocks_client/models/set_ota_status_response_one_of.py b/fireblocks_client/models/set_ota_status_response_one_of.py new file mode 100644 index 00000000..78f9d345 --- /dev/null +++ b/fireblocks_client/models/set_ota_status_response_one_of.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class SetOtaStatusResponseOneOf(BaseModel): + """ + SetOtaStatusResponseOneOf + """ # noqa: E501 + message: Optional[StrictStr] = Field(default=None, description="Message indicating the result of the operation for example when no config change is needed") + __properties: ClassVar[List[str]] = ["message"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SetOtaStatusResponseOneOf from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SetOtaStatusResponseOneOf from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "message": obj.get("message") + }) + return _obj + + diff --git a/fireblocks_client/models/set_routing_policy_request.py b/fireblocks_client/models/set_routing_policy_request.py new file mode 100644 index 00000000..1e4da976 --- /dev/null +++ b/fireblocks_client/models/set_routing_policy_request.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List +from fireblocks_client.models.network_connection_routing_policy_value import NetworkConnectionRoutingPolicyValue +from typing import Optional, Set +from typing_extensions import Self + +class SetRoutingPolicyRequest(BaseModel): + """ + SetRoutingPolicyRequest + """ # noqa: E501 + routing_policy: Dict[str, NetworkConnectionRoutingPolicyValue] = Field(alias="routingPolicy") + __properties: ClassVar[List[str]] = ["routingPolicy"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SetRoutingPolicyRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each value in routing_policy (dict) + _field_dict = {} + if self.routing_policy: + for _key in self.routing_policy: + if self.routing_policy[_key]: + _field_dict[_key] = self.routing_policy[_key].to_dict() + _dict['routingPolicy'] = _field_dict + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SetRoutingPolicyRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "routingPolicy": dict( + (_k, NetworkConnectionRoutingPolicyValue.from_dict(_v)) + for _k, _v in obj["routingPolicy"].items() + ) + if obj.get("routingPolicy") is not None + else None + }) + return _obj + + diff --git a/fireblocks_client/models/set_routing_policy_response.py b/fireblocks_client/models/set_routing_policy_response.py new file mode 100644 index 00000000..ba11b66b --- /dev/null +++ b/fireblocks_client/models/set_routing_policy_response.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictBool +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class SetRoutingPolicyResponse(BaseModel): + """ + SetRoutingPolicyResponse + """ # noqa: E501 + success: StrictBool + __properties: ClassVar[List[str]] = ["success"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SetRoutingPolicyResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SetRoutingPolicyResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success") + }) + return _obj + + diff --git a/fireblocks_client/models/settlement_request_body.py b/fireblocks_client/models/settlement_request_body.py new file mode 100644 index 00000000..1f85caf6 --- /dev/null +++ b/fireblocks_client/models/settlement_request_body.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class SettlementRequestBody(BaseModel): + """ + SettlementRequestBody + """ # noqa: E501 + main_exchange_account_id: Optional[StrictStr] = Field(default=None, alias="mainExchangeAccountId") + __properties: ClassVar[List[str]] = ["mainExchangeAccountId"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SettlementRequestBody from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SettlementRequestBody from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "mainExchangeAccountId": obj.get("mainExchangeAccountId") + }) + return _obj + + diff --git a/fireblocks_client/models/settlement_response.py b/fireblocks_client/models/settlement_response.py new file mode 100644 index 00000000..93593bb3 --- /dev/null +++ b/fireblocks_client/models/settlement_response.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.exchange_settlement_transactions_response import ExchangeSettlementTransactionsResponse +from typing import Optional, Set +from typing_extensions import Self + +class SettlementResponse(BaseModel): + """ + SettlementResponse + """ # noqa: E501 + id: Optional[StrictStr] = None + initiator: Optional[StrictStr] = None + exchange_reply: Optional[StrictStr] = Field(default=None, alias="exchangeReply") + fireblocks_initiated_transactions: Optional[Dict[str, Any]] = Field(default=None, alias="fireblocksInitiatedTransactions") + exchange_requested_transactions: Optional[ExchangeSettlementTransactionsResponse] = Field(default=None, alias="exchangeRequestedTransactions") + __properties: ClassVar[List[str]] = ["id", "initiator", "exchangeReply", "fireblocksInitiatedTransactions", "exchangeRequestedTransactions"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SettlementResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of exchange_requested_transactions + if self.exchange_requested_transactions: + _dict['exchangeRequestedTransactions'] = self.exchange_requested_transactions.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SettlementResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "initiator": obj.get("initiator"), + "exchangeReply": obj.get("exchangeReply"), + "fireblocksInitiatedTransactions": obj.get("fireblocksInitiatedTransactions"), + "exchangeRequestedTransactions": ExchangeSettlementTransactionsResponse.from_dict(obj["exchangeRequestedTransactions"]) if obj.get("exchangeRequestedTransactions") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/signed_message.py b/fireblocks_client/models/signed_message.py new file mode 100644 index 00000000..c4d96733 --- /dev/null +++ b/fireblocks_client/models/signed_message.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictFloat, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional, Union +from fireblocks_client.models.signed_message_signature import SignedMessageSignature +from typing import Optional, Set +from typing_extensions import Self + +class SignedMessage(BaseModel): + """ + A list of signed messages returned for raw signing. + """ # noqa: E501 + content: Optional[StrictStr] = None + algorithm: Optional[StrictStr] = None + derivation_path: Optional[List[Union[StrictFloat, StrictInt]]] = Field(default=None, alias="derivationPath") + signature: Optional[SignedMessageSignature] = None + public_key: Optional[StrictStr] = Field(default=None, alias="publicKey") + __properties: ClassVar[List[str]] = ["content", "algorithm", "derivationPath", "signature", "publicKey"] + + @field_validator('algorithm') + def algorithm_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['MPC_ECDSA_SECP256K1', 'MPC_EDDSA_ED25519']): + raise ValueError("must be one of enum values ('MPC_ECDSA_SECP256K1', 'MPC_EDDSA_ED25519')") + return value + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SignedMessage from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of signature + if self.signature: + _dict['signature'] = self.signature.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SignedMessage from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "content": obj.get("content"), + "algorithm": obj.get("algorithm"), + "derivationPath": obj.get("derivationPath"), + "signature": SignedMessageSignature.from_dict(obj["signature"]) if obj.get("signature") is not None else None, + "publicKey": obj.get("publicKey") + }) + return _obj + + diff --git a/fireblocks_client/models/signed_message_signature.py b/fireblocks_client/models/signed_message_signature.py new file mode 100644 index 00000000..2f3ad878 --- /dev/null +++ b/fireblocks_client/models/signed_message_signature.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class SignedMessageSignature(BaseModel): + """ + SignedMessageSignature + """ # noqa: E501 + full_sig: Optional[StrictStr] = Field(default=None, alias="fullSig") + r: Optional[StrictStr] = None + s: Optional[StrictStr] = None + v: Optional[Union[StrictFloat, StrictInt]] = None + __properties: ClassVar[List[str]] = ["fullSig", "r", "s", "v"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SignedMessageSignature from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SignedMessageSignature from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "fullSig": obj.get("fullSig"), + "r": obj.get("r"), + "s": obj.get("s"), + "v": obj.get("v") + }) + return _obj + + diff --git a/fireblocks_client/models/smart_transfer_bad_request_response.py b/fireblocks_client/models/smart_transfer_bad_request_response.py new file mode 100644 index 00000000..ef9502d6 --- /dev/null +++ b/fireblocks_client/models/smart_transfer_bad_request_response.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class SmartTransferBadRequestResponse(BaseModel): + """ + SmartTransferBadRequestResponse + """ # noqa: E501 + message: StrictStr = Field(description="Bad request error message") + code: StrictStr = Field(description="Bad request error code") + __properties: ClassVar[List[str]] = ["message", "code"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SmartTransferBadRequestResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SmartTransferBadRequestResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "message": obj.get("message"), + "code": obj.get("code") + }) + return _obj + + diff --git a/fireblocks_client/models/smart_transfer_create_ticket.py b/fireblocks_client/models/smart_transfer_create_ticket.py new file mode 100644 index 00000000..0d81976c --- /dev/null +++ b/fireblocks_client/models/smart_transfer_create_ticket.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictBool, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing_extensions import Annotated +from fireblocks_client.models.smart_transfer_create_ticket_term import SmartTransferCreateTicketTerm +from typing import Optional, Set +from typing_extensions import Self + +class SmartTransferCreateTicket(BaseModel): + """ + SmartTransferCreateTicket + """ # noqa: E501 + created_by_network_id: StrictStr = Field(alias="createdByNetworkId") + type: StrictStr + expires_in: Optional[Union[Annotated[float, Field(le=48, strict=True, ge=1)], Annotated[int, Field(le=48, strict=True, ge=1)]]] = Field(default=None, description="Number of hours after which an OPEN ticket will expire if no term is funded.", alias="expiresIn") + terms: Optional[List[SmartTransferCreateTicketTerm]] = None + external_ref_id: Optional[Annotated[str, Field(strict=True, max_length=64)]] = Field(default=None, alias="externalRefId") + note: Optional[Annotated[str, Field(strict=True, max_length=1024)]] = None + submit: Optional[StrictBool] = None + __properties: ClassVar[List[str]] = ["createdByNetworkId", "type", "expiresIn", "terms", "externalRefId", "note", "submit"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['ASYNC']): + raise ValueError("must be one of enum values ('ASYNC')") + return value + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SmartTransferCreateTicket from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in terms (list) + _items = [] + if self.terms: + for _item in self.terms: + if _item: + _items.append(_item.to_dict()) + _dict['terms'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SmartTransferCreateTicket from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "createdByNetworkId": obj.get("createdByNetworkId"), + "type": obj.get("type"), + "expiresIn": obj.get("expiresIn"), + "terms": [SmartTransferCreateTicketTerm.from_dict(_item) for _item in obj["terms"]] if obj.get("terms") is not None else None, + "externalRefId": obj.get("externalRefId"), + "note": obj.get("note"), + "submit": obj.get("submit") + }) + return _obj + + diff --git a/fireblocks_client/models/smart_transfer_create_ticket_term.py b/fireblocks_client/models/smart_transfer_create_ticket_term.py new file mode 100644 index 00000000..4c3f3bc2 --- /dev/null +++ b/fireblocks_client/models/smart_transfer_create_ticket_term.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Union +from typing import Optional, Set +from typing_extensions import Self + +class SmartTransferCreateTicketTerm(BaseModel): + """ + SmartTransferCreateTicketTerm + """ # noqa: E501 + asset: StrictStr = Field(description="Asset name") + amount: Union[StrictFloat, StrictInt] = Field(description="Amount") + from_network_id: StrictStr = Field(description="Identifier of the origination Network Profile", alias="fromNetworkId") + to_network_id: StrictStr = Field(description="Identifier of the destination Network Profile", alias="toNetworkId") + __properties: ClassVar[List[str]] = ["asset", "amount", "fromNetworkId", "toNetworkId"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SmartTransferCreateTicketTerm from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SmartTransferCreateTicketTerm from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "asset": obj.get("asset"), + "amount": obj.get("amount"), + "fromNetworkId": obj.get("fromNetworkId"), + "toNetworkId": obj.get("toNetworkId") + }) + return _obj + + diff --git a/fireblocks_client/models/smart_transfer_forbidden_response.py b/fireblocks_client/models/smart_transfer_forbidden_response.py new file mode 100644 index 00000000..792fc2ac --- /dev/null +++ b/fireblocks_client/models/smart_transfer_forbidden_response.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class SmartTransferForbiddenResponse(BaseModel): + """ + SmartTransferForbiddenResponse + """ # noqa: E501 + message: StrictStr = Field(description="Forbidden error code") + code: StrictStr = Field(description="Error code") + __properties: ClassVar[List[str]] = ["message", "code"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SmartTransferForbiddenResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SmartTransferForbiddenResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "message": obj.get("message"), + "code": obj.get("code") + }) + return _obj + + diff --git a/fireblocks_client/models/smart_transfer_fund_term.py b/fireblocks_client/models/smart_transfer_fund_term.py new file mode 100644 index 00000000..b6993ef0 --- /dev/null +++ b/fireblocks_client/models/smart_transfer_fund_term.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class SmartTransferFundTerm(BaseModel): + """ + SmartTransferFundTerm + """ # noqa: E501 + asset: StrictStr = Field(description="Asset name") + amount: StrictStr = Field(description="Amount") + network_connection_id: StrictStr = Field(description="Id of the network connection used.", alias="networkConnectionId") + src_id: StrictStr = Field(description="Id of the vault that is used as the source of the asset.", alias="srcId") + src_type: StrictStr = Field(description="Source of the asset.", alias="srcType") + fee: Optional[StrictStr] = Field(default=None, description="Transaction fee") + fee_level: Optional[StrictStr] = Field(default=None, description="Transaction fee level.", alias="feeLevel") + note: Optional[StrictStr] = Field(default=None, description="Transaction note") + __properties: ClassVar[List[str]] = ["asset", "amount", "networkConnectionId", "srcId", "srcType", "fee", "feeLevel", "note"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SmartTransferFundTerm from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SmartTransferFundTerm from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "asset": obj.get("asset"), + "amount": obj.get("amount"), + "networkConnectionId": obj.get("networkConnectionId"), + "srcId": obj.get("srcId"), + "srcType": obj.get("srcType"), + "fee": obj.get("fee"), + "feeLevel": obj.get("feeLevel"), + "note": obj.get("note") + }) + return _obj + + diff --git a/fireblocks_client/models/smart_transfer_manually_fund_term.py b/fireblocks_client/models/smart_transfer_manually_fund_term.py new file mode 100644 index 00000000..2b184b53 --- /dev/null +++ b/fireblocks_client/models/smart_transfer_manually_fund_term.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List +from typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self + +class SmartTransferManuallyFundTerm(BaseModel): + """ + SmartTransferManuallyFundTerm + """ # noqa: E501 + tx_hash: Annotated[str, Field(strict=True, max_length=64)] = Field(alias="txHash") + __properties: ClassVar[List[str]] = ["txHash"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SmartTransferManuallyFundTerm from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SmartTransferManuallyFundTerm from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "txHash": obj.get("txHash") + }) + return _obj + + diff --git a/fireblocks_client/models/smart_transfer_not_found_response.py b/fireblocks_client/models/smart_transfer_not_found_response.py new file mode 100644 index 00000000..ceac0bf8 --- /dev/null +++ b/fireblocks_client/models/smart_transfer_not_found_response.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class SmartTransferNotFoundResponse(BaseModel): + """ + SmartTransferNotFoundResponse + """ # noqa: E501 + message: StrictStr = Field(description="Not found error message") + code: StrictStr = Field(description="Error code") + __properties: ClassVar[List[str]] = ["message", "code"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SmartTransferNotFoundResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SmartTransferNotFoundResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "message": obj.get("message"), + "code": obj.get("code") + }) + return _obj + + diff --git a/fireblocks_client/models/smart_transfer_set_ticket_expiration.py b/fireblocks_client/models/smart_transfer_set_ticket_expiration.py new file mode 100644 index 00000000..95119b95 --- /dev/null +++ b/fireblocks_client/models/smart_transfer_set_ticket_expiration.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Union +from typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self + +class SmartTransferSetTicketExpiration(BaseModel): + """ + SmartTransferSetTicketExpiration + """ # noqa: E501 + expires_in: Union[Annotated[float, Field(le=48, strict=True, ge=1)], Annotated[int, Field(le=48, strict=True, ge=1)]] = Field(description="Sets ticket expiration time (in hours) after a ticket is submitted. If no funding source is set to any term, the ticket will automatically expire after given time.", alias="expiresIn") + __properties: ClassVar[List[str]] = ["expiresIn"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SmartTransferSetTicketExpiration from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SmartTransferSetTicketExpiration from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "expiresIn": obj.get("expiresIn") + }) + return _obj + + diff --git a/fireblocks_client/models/smart_transfer_set_ticket_external_id.py b/fireblocks_client/models/smart_transfer_set_ticket_external_id.py new file mode 100644 index 00000000..e54699ab --- /dev/null +++ b/fireblocks_client/models/smart_transfer_set_ticket_external_id.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List +from typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self + +class SmartTransferSetTicketExternalId(BaseModel): + """ + SmartTransferSetTicketExternalId + """ # noqa: E501 + external_ref_id: Annotated[str, Field(min_length=5, strict=True, max_length=64)] = Field(description="Each workspace can set their own external id they want to refer to this Ticket", alias="externalRefId") + __properties: ClassVar[List[str]] = ["externalRefId"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SmartTransferSetTicketExternalId from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SmartTransferSetTicketExternalId from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "externalRefId": obj.get("externalRefId") + }) + return _obj + + diff --git a/fireblocks_client/models/smart_transfer_set_user_groups.py b/fireblocks_client/models/smart_transfer_set_user_groups.py new file mode 100644 index 00000000..38525a69 --- /dev/null +++ b/fireblocks_client/models/smart_transfer_set_user_groups.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class SmartTransferSetUserGroups(BaseModel): + """ + SmartTransferSetUserGroups + """ # noqa: E501 + user_group_ids: List[StrictStr] = Field(alias="userGroupIds") + __properties: ClassVar[List[str]] = ["userGroupIds"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SmartTransferSetUserGroups from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SmartTransferSetUserGroups from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "userGroupIds": obj.get("userGroupIds") + }) + return _obj + + diff --git a/fireblocks_client/models/smart_transfer_submit_ticket.py b/fireblocks_client/models/smart_transfer_submit_ticket.py new file mode 100644 index 00000000..7e9f7ea2 --- /dev/null +++ b/fireblocks_client/models/smart_transfer_submit_ticket.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self + +class SmartTransferSubmitTicket(BaseModel): + """ + SmartTransferSubmitTicket + """ # noqa: E501 + expires_in: Optional[Union[Annotated[float, Field(le=48, strict=True, ge=1)], Annotated[int, Field(le=48, strict=True, ge=1)]]] = Field(default=None, description="Sets the ticket expiration time (in hours) after the ticket is submitted. If no funding source is set for any term, the ticket will automatically expire after given time. If expiresIn is not sent ticket will not expire.", alias="expiresIn") + __properties: ClassVar[List[str]] = ["expiresIn"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SmartTransferSubmitTicket from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SmartTransferSubmitTicket from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "expiresIn": obj.get("expiresIn") + }) + return _obj + + diff --git a/fireblocks_client/models/smart_transfer_ticket.py b/fireblocks_client/models/smart_transfer_ticket.py new file mode 100644 index 00000000..d4ef5d81 --- /dev/null +++ b/fireblocks_client/models/smart_transfer_ticket.py @@ -0,0 +1,159 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 datetime import datetime +from pydantic import BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional, Union +from fireblocks_client.models.smart_transfer_ticket_term import SmartTransferTicketTerm +from typing import Optional, Set +from typing_extensions import Self + +class SmartTransferTicket(BaseModel): + """ + Data object with result data + """ # noqa: E501 + id: StrictStr = Field(description="Unique id of Smart Transfer ticket") + type: StrictStr = Field(description="Kind of Smart Transfer. Can be either `ASYNC` or `ATOMIC`") + direction: Optional[StrictStr] = Field(default=None, description="Direction of Smart Transfer.") + status: StrictStr = Field(description="Current status of Smart Transfer ticket") + terms: Optional[List[Optional[SmartTransferTicketTerm]]] = Field(default=None, description="Ticket terms (legs)") + expires_in: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Number of hours for expiration.This data is valid only it ticket not in DRAFT state and it will be used to calculate expiresAt value", alias="expiresIn") + expires_at: Optional[datetime] = Field(default=None, description="Date and time at which the ticket will expire if no funding is performed.", alias="expiresAt") + submitted_at: Optional[datetime] = Field(default=None, description="Date and time when ticket is submitted.", alias="submittedAt") + expired_at: Optional[datetime] = Field(default=None, description="Date and time when ticket is expired.", alias="expiredAt") + canceled_at: Optional[datetime] = Field(default=None, description="Date and time when ticket is canceled.", alias="canceledAt") + fulfilled_at: Optional[datetime] = Field(default=None, description="Date and time when ticket is fulfilled.", alias="fulfilledAt") + external_ref_id: Optional[StrictStr] = Field(default=None, description="External Ref ID for Smart Transfer ticket.", alias="externalRefId") + note: Optional[StrictStr] = Field(default=None, description="Note") + created_by_network_id: StrictStr = Field(description="ID of network profile that created ticket", alias="createdByNetworkId") + created_by_network_id_name: StrictStr = Field(description="Name of network profile that created ticket", alias="createdByNetworkIdName") + canceled_by_network_id_name: Optional[StrictStr] = Field(default=None, description="Name of network profile that canceled ticket", alias="canceledByNetworkIdName") + created_at: datetime = Field(description="Date and time at which the ticket is created.", alias="createdAt") + updated_at: datetime = Field(description="Date and time of last ticket update.", alias="updatedAt") + canceled_by_me: Optional[StrictBool] = Field(default=None, alias="canceledByMe") + created_by_me: Optional[StrictBool] = Field(default=None, alias="createdByMe") + __properties: ClassVar[List[str]] = ["id", "type", "direction", "status", "terms", "expiresIn", "expiresAt", "submittedAt", "expiredAt", "canceledAt", "fulfilledAt", "externalRefId", "note", "createdByNetworkId", "createdByNetworkIdName", "canceledByNetworkIdName", "createdAt", "updatedAt", "canceledByMe", "createdByMe"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['ASYNC']): + raise ValueError("must be one of enum values ('ASYNC')") + return value + + @field_validator('direction') + def direction_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['EXCHANGE', 'SEND', 'RECEIVE', 'INTERMEDIATE']): + raise ValueError("must be one of enum values ('EXCHANGE', 'SEND', 'RECEIVE', 'INTERMEDIATE')") + return value + + @field_validator('status') + def status_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['DRAFT', 'PENDING_APPROVAL', 'OPEN', 'IN_SETTLEMENT', 'FULFILLED', 'EXPIRED', 'CANCELED']): + raise ValueError("must be one of enum values ('DRAFT', 'PENDING_APPROVAL', 'OPEN', 'IN_SETTLEMENT', 'FULFILLED', 'EXPIRED', 'CANCELED')") + return value + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SmartTransferTicket from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in terms (list) + _items = [] + if self.terms: + for _item in self.terms: + if _item: + _items.append(_item.to_dict()) + _dict['terms'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SmartTransferTicket from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "type": obj.get("type"), + "direction": obj.get("direction"), + "status": obj.get("status"), + "terms": [SmartTransferTicketTerm.from_dict(_item) for _item in obj["terms"]] if obj.get("terms") is not None else None, + "expiresIn": obj.get("expiresIn"), + "expiresAt": obj.get("expiresAt"), + "submittedAt": obj.get("submittedAt"), + "expiredAt": obj.get("expiredAt"), + "canceledAt": obj.get("canceledAt"), + "fulfilledAt": obj.get("fulfilledAt"), + "externalRefId": obj.get("externalRefId"), + "note": obj.get("note"), + "createdByNetworkId": obj.get("createdByNetworkId"), + "createdByNetworkIdName": obj.get("createdByNetworkIdName"), + "canceledByNetworkIdName": obj.get("canceledByNetworkIdName"), + "createdAt": obj.get("createdAt"), + "updatedAt": obj.get("updatedAt"), + "canceledByMe": obj.get("canceledByMe"), + "createdByMe": obj.get("createdByMe") + }) + return _obj + + diff --git a/fireblocks_client/models/smart_transfer_ticket_filtered_response.py b/fireblocks_client/models/smart_transfer_ticket_filtered_response.py new file mode 100644 index 00000000..93b986fc --- /dev/null +++ b/fireblocks_client/models/smart_transfer_ticket_filtered_response.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.smart_transfer_ticket import SmartTransferTicket +from typing import Optional, Set +from typing_extensions import Self + +class SmartTransferTicketFilteredResponse(BaseModel): + """ + SmartTransferTicketFilteredResponse + """ # noqa: E501 + message: Optional[StrictStr] = Field(description="Result message") + after: StrictStr = Field(description="Unique id of next filtered result") + data: List[Optional[SmartTransferTicket]] = Field(description="Result that match given query criteria") + __properties: ClassVar[List[str]] = ["message", "after", "data"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SmartTransferTicketFilteredResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in data (list) + _items = [] + if self.data: + for _item in self.data: + if _item: + _items.append(_item.to_dict()) + _dict['data'] = _items + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SmartTransferTicketFilteredResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "message": obj.get("message"), + "after": obj.get("after"), + "data": [SmartTransferTicket.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/smart_transfer_ticket_response.py b/fireblocks_client/models/smart_transfer_ticket_response.py new file mode 100644 index 00000000..abbc23ec --- /dev/null +++ b/fireblocks_client/models/smart_transfer_ticket_response.py @@ -0,0 +1,104 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.smart_transfer_ticket import SmartTransferTicket +from typing import Optional, Set +from typing_extensions import Self + +class SmartTransferTicketResponse(BaseModel): + """ + SmartTransferTicketResponse + """ # noqa: E501 + message: Optional[StrictStr] = Field(description="Result message") + data: Optional[SmartTransferTicket] = None + __properties: ClassVar[List[str]] = ["message", "data"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SmartTransferTicketResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of data + if self.data: + _dict['data'] = self.data.to_dict() + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + # set to None if data (nullable) is None + # and model_fields_set contains the field + if self.data is None and "data" in self.model_fields_set: + _dict['data'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SmartTransferTicketResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "message": obj.get("message"), + "data": SmartTransferTicket.from_dict(obj["data"]) if obj.get("data") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/smart_transfer_ticket_term.py b/fireblocks_client/models/smart_transfer_ticket_term.py new file mode 100644 index 00000000..a16bca44 --- /dev/null +++ b/fireblocks_client/models/smart_transfer_ticket_term.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 datetime import datetime +from pydantic import BaseModel, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class SmartTransferTicketTerm(BaseModel): + """ + Data object with result data + """ # noqa: E501 + id: StrictStr = Field(description="Unique id of Smart Transfer ticket term") + ticket_id: StrictStr = Field(description="Unique id of Smart Transfer ticket", alias="ticketId") + asset: StrictStr = Field(description="Asset name") + amount: StrictStr = Field(description="Amount") + amount_usd: Optional[StrictStr] = Field(default=None, description="Amount USD", alias="amountUsd") + from_network_id: StrictStr = Field(description="Identifier of the origination Network Profile", alias="fromNetworkId") + from_network_id_name: StrictStr = Field(description="Source network name", alias="fromNetworkIdName") + to_network_id: StrictStr = Field(description="Identifier of the destination Network Profile", alias="toNetworkId") + to_network_id_name: StrictStr = Field(description="Destination network name", alias="toNetworkIdName") + tx_hash: Optional[StrictStr] = Field(description="Blockchain TX hash", alias="txHash") + fb_tx_id: Optional[StrictStr] = Field(description="Fireblocks transaction ID. It is set when the funding transaction is created.", alias="fbTxId") + tx_status: Optional[StrictStr] = Field(description="Ticket term transaction status", alias="txStatus") + status: StrictStr = Field(description="Ticket term status") + created_at: datetime = Field(description="Date and time when the term is created.", alias="createdAt") + updated_at: datetime = Field(description="Date and time of last term update.", alias="updatedAt") + __properties: ClassVar[List[str]] = ["id", "ticketId", "asset", "amount", "amountUsd", "fromNetworkId", "fromNetworkIdName", "toNetworkId", "toNetworkIdName", "txHash", "fbTxId", "txStatus", "status", "createdAt", "updatedAt"] + + @field_validator('tx_status') + def tx_status_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['queued', 'submitted', 'pendingSignature', 'pendingAuthorization', 'broadcasting', 'confirming', 'pendingAmlScreening', 'completed', 'cancelled', 'failed', 'rejected', 'blocked', 'thirdPartyPendingManualApproval', 'thirdPartyPending', 'partiallyCompleted', 'cancelling']): + raise ValueError("must be one of enum values ('queued', 'submitted', 'pendingSignature', 'pendingAuthorization', 'broadcasting', 'confirming', 'pendingAmlScreening', 'completed', 'cancelled', 'failed', 'rejected', 'blocked', 'thirdPartyPendingManualApproval', 'thirdPartyPending', 'partiallyCompleted', 'cancelling')") + return value + + @field_validator('status') + def status_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['CREATED', 'FUNDING', 'FUNDING_FAILED', 'FUNDED', 'REJECTED']): + raise ValueError("must be one of enum values ('CREATED', 'FUNDING', 'FUNDING_FAILED', 'FUNDED', 'REJECTED')") + return value + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SmartTransferTicketTerm from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if tx_hash (nullable) is None + # and model_fields_set contains the field + if self.tx_hash is None and "tx_hash" in self.model_fields_set: + _dict['txHash'] = None + + # set to None if fb_tx_id (nullable) is None + # and model_fields_set contains the field + if self.fb_tx_id is None and "fb_tx_id" in self.model_fields_set: + _dict['fbTxId'] = None + + # set to None if tx_status (nullable) is None + # and model_fields_set contains the field + if self.tx_status is None and "tx_status" in self.model_fields_set: + _dict['txStatus'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SmartTransferTicketTerm from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "ticketId": obj.get("ticketId"), + "asset": obj.get("asset"), + "amount": obj.get("amount"), + "amountUsd": obj.get("amountUsd"), + "fromNetworkId": obj.get("fromNetworkId"), + "fromNetworkIdName": obj.get("fromNetworkIdName"), + "toNetworkId": obj.get("toNetworkId"), + "toNetworkIdName": obj.get("toNetworkIdName"), + "txHash": obj.get("txHash"), + "fbTxId": obj.get("fbTxId"), + "txStatus": obj.get("txStatus"), + "status": obj.get("status"), + "createdAt": obj.get("createdAt"), + "updatedAt": obj.get("updatedAt") + }) + return _obj + + diff --git a/fireblocks_client/models/smart_transfer_ticket_term_response.py b/fireblocks_client/models/smart_transfer_ticket_term_response.py new file mode 100644 index 00000000..49c971fa --- /dev/null +++ b/fireblocks_client/models/smart_transfer_ticket_term_response.py @@ -0,0 +1,104 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.smart_transfer_ticket_term import SmartTransferTicketTerm +from typing import Optional, Set +from typing_extensions import Self + +class SmartTransferTicketTermResponse(BaseModel): + """ + SmartTransferTicketTermResponse + """ # noqa: E501 + message: Optional[StrictStr] = Field(description="Result message") + data: Optional[SmartTransferTicketTerm] = None + __properties: ClassVar[List[str]] = ["message", "data"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SmartTransferTicketTermResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of data + if self.data: + _dict['data'] = self.data.to_dict() + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + # set to None if data (nullable) is None + # and model_fields_set contains the field + if self.data is None and "data" in self.model_fields_set: + _dict['data'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SmartTransferTicketTermResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "message": obj.get("message"), + "data": SmartTransferTicketTerm.from_dict(obj["data"]) if obj.get("data") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/smart_transfer_update_ticket_term.py b/fireblocks_client/models/smart_transfer_update_ticket_term.py new file mode 100644 index 00000000..8261380c --- /dev/null +++ b/fireblocks_client/models/smart_transfer_update_ticket_term.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Union +from typing import Optional, Set +from typing_extensions import Self + +class SmartTransferUpdateTicketTerm(BaseModel): + """ + SmartTransferUpdateTicketTerm + """ # noqa: E501 + asset: StrictStr = Field(description="Asset name") + amount: Union[StrictFloat, StrictInt] = Field(description="Amount") + from_network_id: StrictStr = Field(description="Identifier of the origination Network Profile", alias="fromNetworkId") + to_network_id: StrictStr = Field(description="Identifier of the destination Network Profile", alias="toNetworkId") + __properties: ClassVar[List[str]] = ["asset", "amount", "fromNetworkId", "toNetworkId"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SmartTransferUpdateTicketTerm from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SmartTransferUpdateTicketTerm from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "asset": obj.get("asset"), + "amount": obj.get("amount"), + "fromNetworkId": obj.get("fromNetworkId"), + "toNetworkId": obj.get("toNetworkId") + }) + return _obj + + diff --git a/fireblocks_client/models/smart_transfer_user_groups.py b/fireblocks_client/models/smart_transfer_user_groups.py new file mode 100644 index 00000000..fa87c909 --- /dev/null +++ b/fireblocks_client/models/smart_transfer_user_groups.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class SmartTransferUserGroups(BaseModel): + """ + Data object with result data + """ # noqa: E501 + user_group_ids: Optional[List[StrictStr]] = Field(description="Data object with result data", alias="userGroupIds") + __properties: ClassVar[List[str]] = ["userGroupIds"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SmartTransferUserGroups from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if user_group_ids (nullable) is None + # and model_fields_set contains the field + if self.user_group_ids is None and "user_group_ids" in self.model_fields_set: + _dict['userGroupIds'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SmartTransferUserGroups from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "userGroupIds": obj.get("userGroupIds") + }) + return _obj + + diff --git a/fireblocks_client/models/smart_transfer_user_groups_response.py b/fireblocks_client/models/smart_transfer_user_groups_response.py new file mode 100644 index 00000000..2802a386 --- /dev/null +++ b/fireblocks_client/models/smart_transfer_user_groups_response.py @@ -0,0 +1,104 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.smart_transfer_user_groups import SmartTransferUserGroups +from typing import Optional, Set +from typing_extensions import Self + +class SmartTransferUserGroupsResponse(BaseModel): + """ + SmartTransferUserGroupsResponse + """ # noqa: E501 + message: Optional[StrictStr] = Field(description="Result message") + data: Optional[SmartTransferUserGroups] = None + __properties: ClassVar[List[str]] = ["message", "data"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SmartTransferUserGroupsResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of data + if self.data: + _dict['data'] = self.data.to_dict() + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + # set to None if data (nullable) is None + # and model_fields_set contains the field + if self.data is None and "data" in self.model_fields_set: + _dict['data'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SmartTransferUserGroupsResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "message": obj.get("message"), + "data": SmartTransferUserGroups.from_dict(obj["data"]) if obj.get("data") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/solana_blockchain_data_dto.py b/fireblocks_client/models/solana_blockchain_data_dto.py new file mode 100644 index 00000000..422edb63 --- /dev/null +++ b/fireblocks_client/models/solana_blockchain_data_dto.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class SolanaBlockchainDataDto(BaseModel): + """ + SolanaBlockchainDataDto + """ # noqa: E501 + stake_account_address: StrictStr = Field(description="The stake account address matching the stakeAccountId.", alias="stakeAccountAddress") + __properties: ClassVar[List[str]] = ["stakeAccountAddress"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SolanaBlockchainDataDto from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SolanaBlockchainDataDto from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "stakeAccountAddress": obj.get("stakeAccountAddress") + }) + return _obj + + diff --git a/fireblocks_client/models/source_transfer_peer_path.py b/fireblocks_client/models/source_transfer_peer_path.py new file mode 100644 index 00000000..48f5ac46 --- /dev/null +++ b/fireblocks_client/models/source_transfer_peer_path.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.transfer_peer_path_sub_type import TransferPeerPathSubType +from fireblocks_client.models.transfer_peer_path_type import TransferPeerPathType +from typing import Optional, Set +from typing_extensions import Self + +class SourceTransferPeerPath(BaseModel): + """ + The source of the transaction. + """ # noqa: E501 + type: TransferPeerPathType + sub_type: Optional[TransferPeerPathSubType] = Field(default=None, alias="subType") + id: Optional[StrictStr] = None + name: Optional[StrictStr] = None + wallet_id: Optional[StrictStr] = Field(default=None, alias="walletId") + __properties: ClassVar[List[str]] = ["type", "subType", "id", "name", "walletId"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SourceTransferPeerPath from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SourceTransferPeerPath from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "type": obj.get("type"), + "subType": obj.get("subType"), + "id": obj.get("id"), + "name": obj.get("name"), + "walletId": obj.get("walletId") + }) + return _obj + + diff --git a/fireblocks_client/models/source_transfer_peer_path_response.py b/fireblocks_client/models/source_transfer_peer_path_response.py new file mode 100644 index 00000000..b1791bdc --- /dev/null +++ b/fireblocks_client/models/source_transfer_peer_path_response.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.transfer_peer_path_type import TransferPeerPathType +from typing import Optional, Set +from typing_extensions import Self + +class SourceTransferPeerPathResponse(BaseModel): + """ + Source of the transaction. + """ # noqa: E501 + type: TransferPeerPathType + sub_type: Optional[StrictStr] = Field(default=None, description="In case the type is set to `EXCHANGE_ACCOUNT` or `FIAT_ACCOUNT`, the specific exchange vendor name or fiat vendor name. In case the type is set to `INTERNAL_WALLET` or `EXTERNAL_WALLET`, the subType is set to `Internal` or `External`.", alias="subType") + id: Optional[StrictStr] = Field(default=None, description="The ID of the peer. You can retrieve the ID of each venue object using the endpoints for [listing vault accounts](https://developers.fireblocks.com/reference/get_vault-accounts-paged), [listing exchange account](https://developers.fireblocks.com/reference/get_exchange-accounts), [listing fiat accounts](https://developers.fireblocks.com/reference/get_fiat-accounts), [listing internal wallets](https://developers.fireblocks.com/reference/get_internal-wallets), [listing external wallets](https://developers.fireblocks.com/reference/get_external-wallets), [listing network connections](https://developers.fireblocks.com/reference/get_network-connections). For the other types, this parameter is not needed.") + name: Optional[StrictStr] = Field(default=None, description="The name of the peer.") + wallet_id: Optional[StrictStr] = Field(default=None, alias="walletId") + __properties: ClassVar[List[str]] = ["type", "subType", "id", "name", "walletId"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SourceTransferPeerPathResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if id (nullable) is None + # and model_fields_set contains the field + if self.id is None and "id" in self.model_fields_set: + _dict['id'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SourceTransferPeerPathResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "type": obj.get("type"), + "subType": obj.get("subType"), + "id": obj.get("id"), + "name": obj.get("name"), + "walletId": obj.get("walletId") + }) + return _obj + + diff --git a/fireblocks_client/models/spam_ownership_response.py b/fireblocks_client/models/spam_ownership_response.py new file mode 100644 index 00000000..2a1aaf26 --- /dev/null +++ b/fireblocks_client/models/spam_ownership_response.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictBool, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class SpamOwnershipResponse(BaseModel): + """ + SpamOwnershipResponse + """ # noqa: E501 + result: StrictBool = Field(description="Token spam result") + source: StrictStr = Field(description="Source of Token's Spam status value") + __properties: ClassVar[List[str]] = ["result", "source"] + + @field_validator('source') + def source_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['OWNER', 'SYSTEM']): + raise ValueError("must be one of enum values ('OWNER', 'SYSTEM')") + return value + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SpamOwnershipResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SpamOwnershipResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "result": obj.get("result"), + "source": obj.get("source") + }) + return _obj + + diff --git a/fireblocks_client/models/spam_token_response.py b/fireblocks_client/models/spam_token_response.py new file mode 100644 index 00000000..1a691e44 --- /dev/null +++ b/fireblocks_client/models/spam_token_response.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictBool +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class SpamTokenResponse(BaseModel): + """ + SpamTokenResponse + """ # noqa: E501 + result: StrictBool = Field(description="Token spam result") + __properties: ClassVar[List[str]] = ["result"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SpamTokenResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SpamTokenResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "result": obj.get("result") + }) + return _obj + + diff --git a/fireblocks_client/models/src_or_dest_attributes_inner.py b/fireblocks_client/models/src_or_dest_attributes_inner.py new file mode 100644 index 00000000..07b60a05 --- /dev/null +++ b/fireblocks_client/models/src_or_dest_attributes_inner.py @@ -0,0 +1,152 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +from inspect import getfullargspec +import json +import pprint +import re # noqa: F401 +from pydantic import BaseModel, Field, StrictStr, ValidationError, field_validator +from typing import Optional +from fireblocks_client.models.policy_src_or_dest_sub_type import PolicySrcOrDestSubType +from fireblocks_client.models.policy_src_or_dest_type import PolicySrcOrDestType +from typing import Union, Any, List, TYPE_CHECKING, Optional, Dict +from typing_extensions import Literal, Self +from pydantic import Field + +SRCORDESTATTRIBUTESINNER_ANY_OF_SCHEMAS = ["PolicySrcOrDestSubType", "PolicySrcOrDestType", "str"] + +class SrcOrDestAttributesInner(BaseModel): + """ + SrcOrDestAttributesInner + """ + + # data type: str + anyof_schema_1_validator: Optional[StrictStr] = Field(default=None, description="Defines the account id, options are * \"*\" - All accounts * Specific account id ") + # data type: PolicySrcOrDestType + anyof_schema_2_validator: Optional[PolicySrcOrDestType] = None + # data type: PolicySrcOrDestSubType + anyof_schema_3_validator: Optional[PolicySrcOrDestSubType] = None + if TYPE_CHECKING: + actual_instance: Optional[Union[PolicySrcOrDestSubType, PolicySrcOrDestType, str]] = None + else: + actual_instance: Any = None + any_of_schemas: List[str] = Field(default=Literal["PolicySrcOrDestSubType", "PolicySrcOrDestType", "str"]) + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_anyof(cls, v): + instance = SrcOrDestAttributesInner.model_construct() + error_messages = [] + # validate data type: str + try: + instance.anyof_schema_1_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: PolicySrcOrDestType + if not isinstance(v, PolicySrcOrDestType): + error_messages.append(f"Error! Input type `{type(v)}` is not `PolicySrcOrDestType`") + else: + return v + + # validate data type: PolicySrcOrDestSubType + if not isinstance(v, PolicySrcOrDestSubType): + error_messages.append(f"Error! Input type `{type(v)}` is not `PolicySrcOrDestSubType`") + else: + return v + + if error_messages: + # no match + raise ValueError("No match found when setting the actual_instance in SrcOrDestAttributesInner with anyOf schemas: PolicySrcOrDestSubType, PolicySrcOrDestType, str. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Dict[str, Any]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + # deserialize data into str + try: + # validation + instance.anyof_schema_1_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_1_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # anyof_schema_2_validator: Optional[PolicySrcOrDestType] = None + try: + instance.actual_instance = PolicySrcOrDestType.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # anyof_schema_3_validator: Optional[PolicySrcOrDestSubType] = None + try: + instance.actual_instance = PolicySrcOrDestSubType.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if error_messages: + # no match + raise ValueError("No match found when deserializing the JSON string into SrcOrDestAttributesInner with anyOf schemas: PolicySrcOrDestSubType, PolicySrcOrDestType, str. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], PolicySrcOrDestSubType, PolicySrcOrDestType, str]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/fireblocks_client/models/stake_request_dto.py b/fireblocks_client/models/stake_request_dto.py new file mode 100644 index 00000000..8f372731 --- /dev/null +++ b/fireblocks_client/models/stake_request_dto.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class StakeRequestDto(BaseModel): + """ + StakeRequestDto + """ # noqa: E501 + vault_account_id: StrictStr = Field(description="The source vault account to stake from", alias="vaultAccountId") + provider_id: StrictStr = Field(description="The ID of the provider", alias="providerId") + stake_amount: StrictStr = Field(description="Amount of tokens to stake", alias="stakeAmount") + tx_note: Optional[StrictStr] = Field(default=None, description="The note to associate with the stake transactions.", alias="txNote") + fee: Optional[StrictStr] = Field(default=None, description="Represents the fee for a transaction, which can be specified as a percentage value. Only one of fee/feeLevel is required.") + fee_level: Optional[StrictStr] = Field(default=None, description="Represents the fee level for a transaction, which can be set as slow, medium, or fast. Only one of fee/feeLevel is required.", alias="feeLevel") + __properties: ClassVar[List[str]] = ["vaultAccountId", "providerId", "stakeAmount", "txNote", "fee", "feeLevel"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of StakeRequestDto from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of StakeRequestDto from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "vaultAccountId": obj.get("vaultAccountId"), + "providerId": obj.get("providerId"), + "stakeAmount": obj.get("stakeAmount"), + "txNote": obj.get("txNote"), + "fee": obj.get("fee"), + "feeLevel": obj.get("feeLevel") + }) + return _obj + + diff --git a/fireblocks_client/models/stake_response_dto.py b/fireblocks_client/models/stake_response_dto.py new file mode 100644 index 00000000..ec7ea1ae --- /dev/null +++ b/fireblocks_client/models/stake_response_dto.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class StakeResponseDto(BaseModel): + """ + StakeResponseDto + """ # noqa: E501 + id: StrictStr = Field(description="The unique identifier of the staking position") + __properties: ClassVar[List[str]] = ["id"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of StakeResponseDto from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of StakeResponseDto from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id") + }) + return _obj + + diff --git a/fireblocks_client/models/stellar_ripple_create_params_dto.py b/fireblocks_client/models/stellar_ripple_create_params_dto.py new file mode 100644 index 00000000..19140413 --- /dev/null +++ b/fireblocks_client/models/stellar_ripple_create_params_dto.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class StellarRippleCreateParamsDto(BaseModel): + """ + StellarRippleCreateParamsDto + """ # noqa: E501 + symbol: StrictStr = Field(description="The symbol of the token") + name: StrictStr = Field(description="The name of the token") + issuer_address: StrictStr = Field(description="The address of the issuer of this token. Will be part of the identifier of this token on chain.", alias="issuerAddress") + __properties: ClassVar[List[str]] = ["symbol", "name", "issuerAddress"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of StellarRippleCreateParamsDto from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of StellarRippleCreateParamsDto from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "symbol": obj.get("symbol"), + "name": obj.get("name"), + "issuerAddress": obj.get("issuerAddress") + }) + return _obj + + diff --git a/fireblocks_client/models/system_message_info.py b/fireblocks_client/models/system_message_info.py new file mode 100644 index 00000000..33081ece --- /dev/null +++ b/fireblocks_client/models/system_message_info.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class SystemMessageInfo(BaseModel): + """ + SystemMessageInfo + """ # noqa: E501 + type: Optional[StrictStr] = None + message: Optional[StrictStr] = Field(default=None, description="A response from Fireblocks that communicates a message about the health of the process being performed. If this object is returned with data, you should expect potential delays or incomplete transaction statuses.") + __properties: ClassVar[List[str]] = ["type", "message"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['WARN', 'BLOCK']): + raise ValueError("must be one of enum values ('WARN', 'BLOCK')") + return value + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SystemMessageInfo from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SystemMessageInfo from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "type": obj.get("type"), + "message": obj.get("message") + }) + return _obj + + diff --git a/fireblocks_client/models/task.py b/fireblocks_client/models/task.py new file mode 100644 index 00000000..18fccd17 --- /dev/null +++ b/fireblocks_client/models/task.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class Task(BaseModel): + """ + Task + """ # noqa: E501 + id: Optional[StrictStr] = None + job_id: Optional[StrictStr] = Field(default=None, alias="jobId") + type: Optional[StrictStr] = None + tenant_id: Optional[StrictStr] = Field(default=None, alias="tenantId") + created: Optional[Union[StrictFloat, StrictInt]] = None + updated: Optional[Union[StrictFloat, StrictInt]] = None + state: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["id", "jobId", "type", "tenantId", "created", "updated", "state"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of Task from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Task from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "jobId": obj.get("jobId"), + "type": obj.get("type"), + "tenantId": obj.get("tenantId"), + "created": obj.get("created"), + "updated": obj.get("updated"), + "state": obj.get("state") + }) + return _obj + + diff --git a/fireblocks_client/models/templates_paginated_response.py b/fireblocks_client/models/templates_paginated_response.py new file mode 100644 index 00000000..b617fef6 --- /dev/null +++ b/fireblocks_client/models/templates_paginated_response.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.lean_contract_dto import LeanContractDto +from typing import Optional, Set +from typing_extensions import Self + +class TemplatesPaginatedResponse(BaseModel): + """ + TemplatesPaginatedResponse + """ # noqa: E501 + data: List[LeanContractDto] = Field(description="The data of the current page") + next: Optional[StrictStr] = Field(default=None, description="The ID of the next page") + __properties: ClassVar[List[str]] = ["data", "next"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of TemplatesPaginatedResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in data (list) + _items = [] + if self.data: + for _item in self.data: + if _item: + _items.append(_item.to_dict()) + _dict['data'] = _items + # set to None if next (nullable) is None + # and model_fields_set contains the field + if self.next is None and "next" in self.model_fields_set: + _dict['next'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of TemplatesPaginatedResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "data": [LeanContractDto.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "next": obj.get("next") + }) + return _obj + + diff --git a/fireblocks_client/models/third_party_routing.py b/fireblocks_client/models/third_party_routing.py new file mode 100644 index 00000000..7c6efe2f --- /dev/null +++ b/fireblocks_client/models/third_party_routing.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ThirdPartyRouting(BaseModel): + """ + ThirdPartyRouting + """ # noqa: E501 + is_third_party_routing: Optional[StrictBool] = Field(default=None, alias="isThirdPartyRouting") + description: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["isThirdPartyRouting", "description"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ThirdPartyRouting from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ThirdPartyRouting from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "isThirdPartyRouting": obj.get("isThirdPartyRouting"), + "description": obj.get("description") + }) + return _obj + + diff --git a/fireblocks_client/models/to_collateral_transaction.py b/fireblocks_client/models/to_collateral_transaction.py new file mode 100644 index 00000000..e9d7cee8 --- /dev/null +++ b/fireblocks_client/models/to_collateral_transaction.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ToCollateralTransaction(BaseModel): + """ + ToCollateralTransaction + """ # noqa: E501 + asset: Optional[StrictStr] = None + amount: Optional[StrictStr] = None + src_address: Optional[StrictStr] = Field(default=None, alias="srcAddress") + src_tag: Optional[StrictStr] = Field(default=None, description="optional", alias="srcTag") + fee: Optional[StrictStr] = Field(default=None, description="optional") + __properties: ClassVar[List[str]] = ["asset", "amount", "srcAddress", "srcTag", "fee"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ToCollateralTransaction from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ToCollateralTransaction from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "asset": obj.get("asset"), + "amount": obj.get("amount"), + "srcAddress": obj.get("srcAddress"), + "srcTag": obj.get("srcTag"), + "fee": obj.get("fee") + }) + return _obj + + diff --git a/fireblocks_client/models/to_exchange_transaction.py b/fireblocks_client/models/to_exchange_transaction.py new file mode 100644 index 00000000..dae362a1 --- /dev/null +++ b/fireblocks_client/models/to_exchange_transaction.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ToExchangeTransaction(BaseModel): + """ + ToExchangeTransaction + """ # noqa: E501 + asset_id: Optional[StrictStr] = Field(default=None, alias="assetId") + amount: Optional[StrictStr] = None + dst_address: Optional[StrictStr] = Field(default=None, alias="dstAddress") + dst_tag: Optional[StrictStr] = Field(default=None, description="optional", alias="dstTag") + __properties: ClassVar[List[str]] = ["assetId", "amount", "dstAddress", "dstTag"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ToExchangeTransaction from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ToExchangeTransaction from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "assetId": obj.get("assetId"), + "amount": obj.get("amount"), + "dstAddress": obj.get("dstAddress"), + "dstTag": obj.get("dstTag") + }) + return _obj + + diff --git a/fireblocks_client/models/token_collection_response.py b/fireblocks_client/models/token_collection_response.py new file mode 100644 index 00000000..b694d837 --- /dev/null +++ b/fireblocks_client/models/token_collection_response.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class TokenCollectionResponse(BaseModel): + """ + TokenCollectionResponse + """ # noqa: E501 + id: StrictStr + name: Optional[StrictStr] = None + symbol: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["id", "name", "symbol"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of TokenCollectionResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of TokenCollectionResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "name": obj.get("name"), + "symbol": obj.get("symbol") + }) + return _obj + + diff --git a/fireblocks_client/models/token_link_dto.py b/fireblocks_client/models/token_link_dto.py new file mode 100644 index 00000000..79cb1b9f --- /dev/null +++ b/fireblocks_client/models/token_link_dto.py @@ -0,0 +1,119 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.token_link_dto_token_metadata import TokenLinkDtoTokenMetadata +from typing import Optional, Set +from typing_extensions import Self + +class TokenLinkDto(BaseModel): + """ + TokenLinkDto + """ # noqa: E501 + id: StrictStr = Field(description="The token link id") + status: StrictStr = Field(description="The token status") + type: Optional[StrictStr] = Field(default=None, description="The type of token") + ref_id: Optional[StrictStr] = Field(default=None, description="The Fireblocks' reference id. Can be a Fireblocks' supported asset, collectionId or contractId", alias="refId") + display_name: Optional[StrictStr] = Field(default=None, description="The token display name. If was not provided, would be taken from the contract template name", alias="displayName") + token_metadata: Optional[TokenLinkDtoTokenMetadata] = Field(default=None, alias="tokenMetadata") + __properties: ClassVar[List[str]] = ["id", "status", "type", "refId", "displayName", "tokenMetadata"] + + @field_validator('status') + def status_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['PENDING', 'COMPLETED']): + raise ValueError("must be one of enum values ('PENDING', 'COMPLETED')") + return value + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['FUNGIBLE_TOKEN', 'NON_FUNGIBLE_TOKEN', 'TOKEN_UTILITY', 'TOKEN_EXTENSION']): + raise ValueError("must be one of enum values ('FUNGIBLE_TOKEN', 'NON_FUNGIBLE_TOKEN', 'TOKEN_UTILITY', 'TOKEN_EXTENSION')") + return value + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of TokenLinkDto from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of token_metadata + if self.token_metadata: + _dict['tokenMetadata'] = self.token_metadata.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of TokenLinkDto from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "status": obj.get("status"), + "type": obj.get("type"), + "refId": obj.get("refId"), + "displayName": obj.get("displayName"), + "tokenMetadata": TokenLinkDtoTokenMetadata.from_dict(obj["tokenMetadata"]) if obj.get("tokenMetadata") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/token_link_dto_token_metadata.py b/fireblocks_client/models/token_link_dto_token_metadata.py new file mode 100644 index 00000000..846ef050 --- /dev/null +++ b/fireblocks_client/models/token_link_dto_token_metadata.py @@ -0,0 +1,152 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +import pprint +from pydantic import BaseModel, Field, StrictStr, ValidationError, field_validator +from typing import Any, List, Optional +from fireblocks_client.models.asset_metadata_dto import AssetMetadataDto +from fireblocks_client.models.collection_metadata_dto import CollectionMetadataDto +from fireblocks_client.models.contract_metadata_dto import ContractMetadataDto +from pydantic import StrictStr, Field +from typing import Union, List, Optional, Dict +from typing_extensions import Literal, Self + +TOKENLINKDTOTOKENMETADATA_ONE_OF_SCHEMAS = ["AssetMetadataDto", "CollectionMetadataDto", "ContractMetadataDto"] + +class TokenLinkDtoTokenMetadata(BaseModel): + """ + The token's metadata + """ + # data type: AssetMetadataDto + oneof_schema_1_validator: Optional[AssetMetadataDto] = None + # data type: CollectionMetadataDto + oneof_schema_2_validator: Optional[CollectionMetadataDto] = None + # data type: ContractMetadataDto + oneof_schema_3_validator: Optional[ContractMetadataDto] = None + actual_instance: Optional[Union[AssetMetadataDto, CollectionMetadataDto, ContractMetadataDto]] = None + one_of_schemas: List[str] = Field(default=Literal["AssetMetadataDto", "CollectionMetadataDto", "ContractMetadataDto"]) + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_oneof(cls, v): + instance = TokenLinkDtoTokenMetadata.model_construct() + error_messages = [] + match = 0 + # validate data type: AssetMetadataDto + if not isinstance(v, AssetMetadataDto): + error_messages.append(f"Error! Input type `{type(v)}` is not `AssetMetadataDto`") + else: + match += 1 + # validate data type: CollectionMetadataDto + if not isinstance(v, CollectionMetadataDto): + error_messages.append(f"Error! Input type `{type(v)}` is not `CollectionMetadataDto`") + else: + match += 1 + # validate data type: ContractMetadataDto + if not isinstance(v, ContractMetadataDto): + error_messages.append(f"Error! Input type `{type(v)}` is not `ContractMetadataDto`") + else: + match += 1 + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in TokenLinkDtoTokenMetadata with oneOf schemas: AssetMetadataDto, CollectionMetadataDto, ContractMetadataDto. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in TokenLinkDtoTokenMetadata with oneOf schemas: AssetMetadataDto, CollectionMetadataDto, ContractMetadataDto. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + match = 0 + + # deserialize data into AssetMetadataDto + try: + instance.actual_instance = AssetMetadataDto.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into CollectionMetadataDto + try: + instance.actual_instance = CollectionMetadataDto.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into ContractMetadataDto + try: + instance.actual_instance = ContractMetadataDto.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when deserializing the JSON string into TokenLinkDtoTokenMetadata with oneOf schemas: AssetMetadataDto, CollectionMetadataDto, ContractMetadataDto. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into TokenLinkDtoTokenMetadata with oneOf schemas: AssetMetadataDto, CollectionMetadataDto, ContractMetadataDto. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], AssetMetadataDto, CollectionMetadataDto, ContractMetadataDto]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + # primitive type + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/fireblocks_client/models/token_link_exists_http_error.py b/fireblocks_client/models/token_link_exists_http_error.py new file mode 100644 index 00000000..4e11249a --- /dev/null +++ b/fireblocks_client/models/token_link_exists_http_error.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class TokenLinkExistsHttpError(BaseModel): + """ + TokenLinkExistsHttpError + """ # noqa: E501 + status_code: Optional[StrictInt] = Field(default=None, description="HTTP status code", alias="statusCode") + message: Optional[StrictStr] = Field(default=None, description="Error message") + error: Optional[StrictStr] = Field(default=None, description="Short description of the HTTP error") + __properties: ClassVar[List[str]] = ["statusCode", "message", "error"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of TokenLinkExistsHttpError from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of TokenLinkExistsHttpError from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "statusCode": obj.get("statusCode"), + "message": obj.get("message"), + "error": obj.get("error") + }) + return _obj + + diff --git a/fireblocks_client/models/token_link_request_dto.py b/fireblocks_client/models/token_link_request_dto.py new file mode 100644 index 00000000..13593db3 --- /dev/null +++ b/fireblocks_client/models/token_link_request_dto.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class TokenLinkRequestDto(BaseModel): + """ + TokenLinkRequestDto + """ # noqa: E501 + type: StrictStr = Field(description="The type of token being linked") + ref_id: StrictStr = Field(description="The Fireblocks' token link reference id. For example, 'BQ5R_BDESC_ABC' if it's a fungible asset", alias="refId") + display_name: Optional[StrictStr] = Field(default=None, description="The token display name", alias="displayName") + __properties: ClassVar[List[str]] = ["type", "refId", "displayName"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['FUNGIBLE_TOKEN', 'NON_FUNGIBLE_TOKEN', 'TOKEN_UTILITY', 'TOKEN_EXTENSION']): + raise ValueError("must be one of enum values ('FUNGIBLE_TOKEN', 'NON_FUNGIBLE_TOKEN', 'TOKEN_UTILITY', 'TOKEN_EXTENSION')") + return value + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of TokenLinkRequestDto from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of TokenLinkRequestDto from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "type": obj.get("type"), + "refId": obj.get("refId"), + "displayName": obj.get("displayName") + }) + return _obj + + diff --git a/fireblocks_client/models/token_ownership_response.py b/fireblocks_client/models/token_ownership_response.py new file mode 100644 index 00000000..b6c4c65f --- /dev/null +++ b/fireblocks_client/models/token_ownership_response.py @@ -0,0 +1,152 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictFloat, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional, Union +from fireblocks_client.models.media_entity_response import MediaEntityResponse +from fireblocks_client.models.spam_ownership_response import SpamOwnershipResponse +from fireblocks_client.models.token_collection_response import TokenCollectionResponse +from typing import Optional, Set +from typing_extensions import Self + +class TokenOwnershipResponse(BaseModel): + """ + TokenOwnershipResponse + """ # noqa: E501 + id: StrictStr = Field(description="The Fireblocks NFT asset id") + token_id: StrictStr = Field(description="Token id within the contract/collection", alias="tokenId") + standard: StrictStr = Field(description="ERC721 / ERC1155") + metadata_uri: Optional[StrictStr] = Field(default=None, description="URL of the original token JSON metadata", alias="metadataURI") + cached_metadata_uri: Optional[StrictStr] = Field(default=None, description="URL of the cached token JSON metadata", alias="cachedMetadataURI") + media: Optional[List[MediaEntityResponse]] = Field(default=None, description="Media items extracted from metadata JSON") + spam: Optional[SpamOwnershipResponse] = Field(default=None, description="Owned Token's Spam status") + collection: Optional[TokenCollectionResponse] = Field(default=None, description="Parent collection information") + balance: StrictStr + vault_account_id: Optional[StrictStr] = Field(default=None, alias="vaultAccountId") + ownership_start_time: Union[StrictFloat, StrictInt] = Field(alias="ownershipStartTime") + ownership_last_update_time: Union[StrictFloat, StrictInt] = Field(alias="ownershipLastUpdateTime") + blockchain_descriptor: StrictStr = Field(alias="blockchainDescriptor") + description: Optional[StrictStr] = None + name: Optional[StrictStr] = None + ncw_id: Optional[StrictStr] = Field(default=None, description="Ownership Non-Custodial Wallet ID", alias="ncwId") + ncw_account_id: Optional[StrictStr] = Field(default=None, description="Ownership Non-Custodial Wallet's account ID", alias="ncwAccountId") + status: StrictStr = Field(description="Owned Token's status") + __properties: ClassVar[List[str]] = ["id", "tokenId", "standard", "metadataURI", "cachedMetadataURI", "media", "spam", "collection", "balance", "vaultAccountId", "ownershipStartTime", "ownershipLastUpdateTime", "blockchainDescriptor", "description", "name", "ncwId", "ncwAccountId", "status"] + + @field_validator('blockchain_descriptor') + def blockchain_descriptor_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['ETH', 'ETH_TEST3', 'ETH_TEST5', 'ETH_TEST6', 'POLYGON', 'POLYGON_TEST_MUMBAI', 'AMOY_POLYGON_TEST', 'XTZ', 'XTZ_TEST', 'BASECHAIN_ETH']): + raise ValueError("must be one of enum values ('ETH', 'ETH_TEST3', 'ETH_TEST5', 'ETH_TEST6', 'POLYGON', 'POLYGON_TEST_MUMBAI', 'AMOY_POLYGON_TEST', 'XTZ', 'XTZ_TEST', 'BASECHAIN_ETH')") + return value + + @field_validator('status') + def status_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['LISTED', 'ARCHIVED']): + raise ValueError("must be one of enum values ('LISTED', 'ARCHIVED')") + return value + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of TokenOwnershipResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in media (list) + _items = [] + if self.media: + for _item in self.media: + if _item: + _items.append(_item.to_dict()) + _dict['media'] = _items + # override the default output from pydantic by calling `to_dict()` of spam + if self.spam: + _dict['spam'] = self.spam.to_dict() + # override the default output from pydantic by calling `to_dict()` of collection + if self.collection: + _dict['collection'] = self.collection.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of TokenOwnershipResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "tokenId": obj.get("tokenId"), + "standard": obj.get("standard"), + "metadataURI": obj.get("metadataURI"), + "cachedMetadataURI": obj.get("cachedMetadataURI"), + "media": [MediaEntityResponse.from_dict(_item) for _item in obj["media"]] if obj.get("media") is not None else None, + "spam": SpamOwnershipResponse.from_dict(obj["spam"]) if obj.get("spam") is not None else None, + "collection": TokenCollectionResponse.from_dict(obj["collection"]) if obj.get("collection") is not None else None, + "balance": obj.get("balance"), + "vaultAccountId": obj.get("vaultAccountId"), + "ownershipStartTime": obj.get("ownershipStartTime"), + "ownershipLastUpdateTime": obj.get("ownershipLastUpdateTime"), + "blockchainDescriptor": obj.get("blockchainDescriptor"), + "description": obj.get("description"), + "name": obj.get("name"), + "ncwId": obj.get("ncwId"), + "ncwAccountId": obj.get("ncwAccountId"), + "status": obj.get("status") + }) + return _obj + + diff --git a/fireblocks_client/models/token_ownership_spam_update_payload.py b/fireblocks_client/models/token_ownership_spam_update_payload.py new file mode 100644 index 00000000..329331d2 --- /dev/null +++ b/fireblocks_client/models/token_ownership_spam_update_payload.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class TokenOwnershipSpamUpdatePayload(BaseModel): + """ + TokenOwnershipSpamUpdatePayload + """ # noqa: E501 + asset_id: StrictStr = Field(description="Token's asset id", alias="assetId") + spam: StrictBool = Field(description="Token's ownership new spam value") + __properties: ClassVar[List[str]] = ["assetId", "spam"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of TokenOwnershipSpamUpdatePayload from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of TokenOwnershipSpamUpdatePayload from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "assetId": obj.get("assetId"), + "spam": obj.get("spam") + }) + return _obj + + diff --git a/fireblocks_client/models/token_ownership_status_update_payload.py b/fireblocks_client/models/token_ownership_status_update_payload.py new file mode 100644 index 00000000..d8b13c9a --- /dev/null +++ b/fireblocks_client/models/token_ownership_status_update_payload.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, field_validator +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class TokenOwnershipStatusUpdatePayload(BaseModel): + """ + TokenOwnershipStatusUpdatePayload + """ # noqa: E501 + asset_id: StrictStr = Field(description="Token's asset id", alias="assetId") + status: StrictStr = Field(description="Token's ownership new status") + __properties: ClassVar[List[str]] = ["assetId", "status"] + + @field_validator('status') + def status_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['LISTED', 'ARCHIVED']): + raise ValueError("must be one of enum values ('LISTED', 'ARCHIVED')") + return value + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of TokenOwnershipStatusUpdatePayload from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of TokenOwnershipStatusUpdatePayload from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "assetId": obj.get("assetId"), + "status": obj.get("status") + }) + return _obj + + diff --git a/fireblocks_client/models/token_response.py b/fireblocks_client/models/token_response.py new file mode 100644 index 00000000..4012ef24 --- /dev/null +++ b/fireblocks_client/models/token_response.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.media_entity_response import MediaEntityResponse +from fireblocks_client.models.spam_token_response import SpamTokenResponse +from fireblocks_client.models.token_collection_response import TokenCollectionResponse +from typing import Optional, Set +from typing_extensions import Self + +class TokenResponse(BaseModel): + """ + TokenResponse + """ # noqa: E501 + id: StrictStr = Field(description="The Fireblocks NFT asset id") + token_id: StrictStr = Field(description="Token id within the contract/collection", alias="tokenId") + standard: StrictStr = Field(description="ERC721 / ERC1155") + metadata_uri: Optional[StrictStr] = Field(default=None, description="URL of the original token JSON metadata", alias="metadataURI") + cached_metadata_uri: Optional[StrictStr] = Field(default=None, description="URL of the cached token JSON metadata", alias="cachedMetadataURI") + media: Optional[List[MediaEntityResponse]] = Field(default=None, description="Media items extracted from metadata JSON") + spam: Optional[SpamTokenResponse] = Field(default=None, description="Token spam status") + collection: Optional[TokenCollectionResponse] = Field(default=None, description="Parent collection information") + blockchain_descriptor: StrictStr = Field(alias="blockchainDescriptor") + description: Optional[StrictStr] = None + name: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["id", "tokenId", "standard", "metadataURI", "cachedMetadataURI", "media", "spam", "collection", "blockchainDescriptor", "description", "name"] + + @field_validator('blockchain_descriptor') + def blockchain_descriptor_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['ETH', 'ETH_TEST3', 'ETH_TEST5', 'ETH_TEST6', 'POLYGON', 'POLYGON_TEST_MUMBAI', 'AMOY_POLYGON_TEST', 'XTZ', 'XTZ_TEST', 'BASECHAIN_ETH']): + raise ValueError("must be one of enum values ('ETH', 'ETH_TEST3', 'ETH_TEST5', 'ETH_TEST6', 'POLYGON', 'POLYGON_TEST_MUMBAI', 'AMOY_POLYGON_TEST', 'XTZ', 'XTZ_TEST', 'BASECHAIN_ETH')") + return value + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of TokenResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in media (list) + _items = [] + if self.media: + for _item in self.media: + if _item: + _items.append(_item.to_dict()) + _dict['media'] = _items + # override the default output from pydantic by calling `to_dict()` of spam + if self.spam: + _dict['spam'] = self.spam.to_dict() + # override the default output from pydantic by calling `to_dict()` of collection + if self.collection: + _dict['collection'] = self.collection.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of TokenResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "tokenId": obj.get("tokenId"), + "standard": obj.get("standard"), + "metadataURI": obj.get("metadataURI"), + "cachedMetadataURI": obj.get("cachedMetadataURI"), + "media": [MediaEntityResponse.from_dict(_item) for _item in obj["media"]] if obj.get("media") is not None else None, + "spam": SpamTokenResponse.from_dict(obj["spam"]) if obj.get("spam") is not None else None, + "collection": TokenCollectionResponse.from_dict(obj["collection"]) if obj.get("collection") is not None else None, + "blockchainDescriptor": obj.get("blockchainDescriptor"), + "description": obj.get("description"), + "name": obj.get("name") + }) + return _obj + + diff --git a/fireblocks_client/models/tokens_paginated_response.py b/fireblocks_client/models/tokens_paginated_response.py new file mode 100644 index 00000000..1da58f1b --- /dev/null +++ b/fireblocks_client/models/tokens_paginated_response.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.token_link_dto import TokenLinkDto +from typing import Optional, Set +from typing_extensions import Self + +class TokensPaginatedResponse(BaseModel): + """ + TokensPaginatedResponse + """ # noqa: E501 + data: List[TokenLinkDto] = Field(description="The data of the current page") + next: Optional[StrictStr] = Field(default=None, description="The ID of the next page") + __properties: ClassVar[List[str]] = ["data", "next"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of TokensPaginatedResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in data (list) + _items = [] + if self.data: + for _item in self.data: + if _item: + _items.append(_item.to_dict()) + _dict['data'] = _items + # set to None if next (nullable) is None + # and model_fields_set contains the field + if self.next is None and "next" in self.model_fields_set: + _dict['next'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of TokensPaginatedResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "data": [TokenLinkDto.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "next": obj.get("next") + }) + return _obj + + diff --git a/fireblocks_client/models/trading_account_type.py b/fireblocks_client/models/trading_account_type.py new file mode 100644 index 00000000..d0478c24 --- /dev/null +++ b/fireblocks_client/models/trading_account_type.py @@ -0,0 +1,50 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +from enum import Enum +from typing_extensions import Self + + +class TradingAccountType(str, Enum): + """ + TradingAccountType + """ + + """ + allowed enum values + """ + COIN_FUTURES = 'COIN_FUTURES' + COIN_MARGINED_SWAP = 'COIN_MARGINED_SWAP' + EXCHANGE = 'EXCHANGE' + FUNDING = 'FUNDING' + FUNDABLE = 'FUNDABLE' + FUTURES = 'FUTURES' + FUTURES_CROSS = 'FUTURES_CROSS' + MARGIN = 'MARGIN' + MARGIN_CROSS = 'MARGIN_CROSS' + OPTIONS = 'OPTIONS' + SPOT = 'SPOT' + USDT_MARGINED_SWAP_CROSS = 'USDT_MARGINED_SWAP_CROSS' + USDT_FUTURES = 'USDT_FUTURES' + UNIFIED = 'UNIFIED' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of TradingAccountType from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/fireblocks_client/models/transaction.py b/fireblocks_client/models/transaction.py new file mode 100644 index 00000000..0b635c92 --- /dev/null +++ b/fireblocks_client/models/transaction.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictFloat, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class Transaction(BaseModel): + """ + Transaction + """ # noqa: E501 + id: StrictStr + state: StrictStr + timestamp: Optional[Union[StrictFloat, StrictInt]] = None + instruction_id: Optional[StrictStr] = Field(default=None, alias="instructionId") + __properties: ClassVar[List[str]] = ["id", "state", "timestamp", "instructionId"] + + @field_validator('state') + def state_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['SUBMITTED', 'QUEUED', 'PENDING_AUTHORIZATION', 'PENDING_SIGNATURE', 'BROADCASTING', 'PENDING_3RD_PARTY_MANUAL_APPROVAL', 'PENDING_3RD_PARTY', 'PENDING', 'CONFIRMING', 'CONFIRMED', 'COMPLETED', 'PARTIALLY_COMPLETED', 'PENDING_AML_SCREENING', 'CANCELLING', 'CANCELLED', 'REJECTED', 'BLOCKED', 'FAILED', 'TIMEOUT']): + raise ValueError("must be one of enum values ('SUBMITTED', 'QUEUED', 'PENDING_AUTHORIZATION', 'PENDING_SIGNATURE', 'BROADCASTING', 'PENDING_3RD_PARTY_MANUAL_APPROVAL', 'PENDING_3RD_PARTY', 'PENDING', 'CONFIRMING', 'CONFIRMED', 'COMPLETED', 'PARTIALLY_COMPLETED', 'PENDING_AML_SCREENING', 'CANCELLING', 'CANCELLED', 'REJECTED', 'BLOCKED', 'FAILED', 'TIMEOUT')") + return value + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of Transaction from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Transaction from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "state": obj.get("state"), + "timestamp": obj.get("timestamp"), + "instructionId": obj.get("instructionId") + }) + return _obj + + diff --git a/fireblocks_client/models/transaction_fee.py b/fireblocks_client/models/transaction_fee.py new file mode 100644 index 00000000..6aee80a5 --- /dev/null +++ b/fireblocks_client/models/transaction_fee.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class TransactionFee(BaseModel): + """ + TransactionFee + """ # noqa: E501 + fee_per_byte: Optional[StrictStr] = Field(default=None, alias="feePerByte") + gas_price: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="gasPrice") + gas_limit: Optional[StrictStr] = Field(default=None, alias="gasLimit") + network_fee: Optional[StrictStr] = Field(default=None, alias="networkFee") + base_fee: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="(optional) Base Fee according to EIP-1559 (ETH assets)", alias="baseFee") + priority_fee: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="(optional) Priority Fee according to EIP-1559 (ETH assets)", alias="priorityFee") + max_fee_per_gas_delta: Optional[StrictStr] = Field(default=None, description="Max Fee Per Gas Delta added only for EIP-1559 (ETH assets)", alias="maxFeePerGasDelta") + l1_fee: Optional[StrictStr] = Field(default=None, description="Layer 1 fee for Layer 2 chains", alias="l1Fee") + __properties: ClassVar[List[str]] = ["feePerByte", "gasPrice", "gasLimit", "networkFee", "baseFee", "priorityFee", "maxFeePerGasDelta", "l1Fee"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of TransactionFee from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of TransactionFee from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "feePerByte": obj.get("feePerByte"), + "gasPrice": obj.get("gasPrice"), + "gasLimit": obj.get("gasLimit"), + "networkFee": obj.get("networkFee"), + "baseFee": obj.get("baseFee"), + "priorityFee": obj.get("priorityFee"), + "maxFeePerGasDelta": obj.get("maxFeePerGasDelta"), + "l1Fee": obj.get("l1Fee") + }) + return _obj + + diff --git a/fireblocks_client/models/transaction_operation.py b/fireblocks_client/models/transaction_operation.py new file mode 100644 index 00000000..94123399 --- /dev/null +++ b/fireblocks_client/models/transaction_operation.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +from enum import Enum +from typing_extensions import Self + + +class TransactionOperation(str, Enum): + """ + * `TRANSFER` - The default value for an operation. Transfers funds from one account to another. UTXO blockchains allow multi-input and multi-output transfers. All other blockchains allow transfers with one source address and one destination address. * `MINT` - Mints new tokens. Supported for Stellar, Ripple and EVM-based blockchains. * `BURN` - Burns tokens. Supported for Stellar, Ripple and EVM-based blockchains. * `CONTRACT_CALL` - Calls a smart contract method for web3 operations on any EVM blockchain. The Fireblocks [development libraries](https://developers.fireblocks.com/docs/ethereum-development#convenience-libraries) are recommended for building contract call transactions. * `TYPED_MESSAGE` - An off-chain message in either Ethereum Personal Message or EIP712 format. Use it to sign specific readable messages that are not actual transactions. [Learn more about typed messages](https://developers.fireblocks.com/docs/typed-message-signing). * `RAW` - An off-chain message with no predefined format. Use it to sign any message with your private key, including protocols such as blockchains and custom transaction types that are not natively supported by Fireblocks. [Learn more about raw signing transactions.](https://developers.fireblocks.com/docs/raw-message-signing) + """ + + """ + allowed enum values + """ + TRANSFER = 'TRANSFER' + BURN = 'BURN' + CONTRACT_CALL = 'CONTRACT_CALL' + MINT = 'MINT' + RAW = 'RAW' + TYPED_MESSAGE = 'TYPED_MESSAGE' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of TransactionOperation from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/fireblocks_client/models/transaction_request.py b/fireblocks_client/models/transaction_request.py new file mode 100644 index 00000000..7932864d --- /dev/null +++ b/fireblocks_client/models/transaction_request.py @@ -0,0 +1,198 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictBool, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.destination_transfer_peer_path import DestinationTransferPeerPath +from fireblocks_client.models.source_transfer_peer_path import SourceTransferPeerPath +from fireblocks_client.models.transaction_operation import TransactionOperation +from fireblocks_client.models.transaction_request_amount import TransactionRequestAmount +from fireblocks_client.models.transaction_request_destination import TransactionRequestDestination +from fireblocks_client.models.transaction_request_fee import TransactionRequestFee +from fireblocks_client.models.transaction_request_gas_limit import TransactionRequestGasLimit +from fireblocks_client.models.transaction_request_gas_price import TransactionRequestGasPrice +from fireblocks_client.models.transaction_request_network_fee import TransactionRequestNetworkFee +from fireblocks_client.models.transaction_request_network_staking import TransactionRequestNetworkStaking +from fireblocks_client.models.transaction_request_priority_fee import TransactionRequestPriorityFee +from fireblocks_client.models.travel_rule_create_transaction_request import TravelRuleCreateTransactionRequest +from typing import Optional, Set +from typing_extensions import Self + +class TransactionRequest(BaseModel): + """ + TransactionRequest + """ # noqa: E501 + operation: Optional[TransactionOperation] = None + note: Optional[StrictStr] = Field(default=None, description="Custom note, not sent to the blockchain, to describe the transaction at your Fireblocks workspace.") + external_tx_id: Optional[StrictStr] = Field(default=None, description="An optional but highly recommended parameter. Fireblocks will reject future transactions with same ID. You should set this to a unique ID representing the transaction, to avoid submitting the same transaction twice. This helps with cases where submitting the transaction responds with an error code due to Internet interruptions, but the transaction was actually sent and processed. To validate whether a transaction has been processed, [Find a specific transaction by external transaction ID](https://developers.fireblocks.com/reference/get_transactions-external-tx-id-externaltxid). There is no specific format required for this parameter.", alias="externalTxId") + asset_id: Optional[StrictStr] = Field(default=None, description="The ID of the asset to transfer, for `TRANSFER`, `MINT` or `BURN` operations. [See the list of supported assets and their IDs on Fireblocks.](https://developers.fireblocks.com/reference/get_supported-assets)", alias="assetId") + source: Optional[SourceTransferPeerPath] = None + destination: Optional[DestinationTransferPeerPath] = None + destinations: Optional[List[TransactionRequestDestination]] = Field(default=None, description="For UTXO based blockchains, you can send a single transaction to multiple destinations.") + amount: Optional[TransactionRequestAmount] = None + treat_as_gross_amount: Optional[StrictBool] = Field(default=None, description="\"When set to `true`, the fee will be deducted from the requested amount.\" **Note**: This parameter can only be considered if a transaction’s asset is a base asset, such as ETH or MATIC. If the asset can’t be used for transaction fees, like USDC, this parameter is ignored and the fee is deducted from the relevant base asset wallet in the source account.", alias="treatAsGrossAmount") + force_sweep: Optional[StrictBool] = Field(default=None, description="For Polkadot, Kusama and Westend transactions only. When set to true, Fireblocks will empty the asset wallet. **Note:** If set to true when the source account is exactly 1 DOT, the transaction will fail. Any amount more or less than 1 DOT succeeds. This is a Polkadot blockchain limitation.", alias="forceSweep") + fee_level: Optional[StrictStr] = Field(default=None, description="For UTXO or EVM-based blockchains only. Defines the blockchain fee level which will be payed for the transaction. Alternatively, specific fee estimation parameters exist below.", alias="feeLevel") + fee: Optional[TransactionRequestFee] = None + priority_fee: Optional[TransactionRequestPriorityFee] = Field(default=None, alias="priorityFee") + fail_on_low_fee: Optional[StrictBool] = Field(default=None, description="When set to `true`, in case the current `MEDIUM` fee level is higher than the one specified in the transaction, the transaction will fail to avoid getting stuck with no confirmations.", alias="failOnLowFee") + max_fee: Optional[StrictStr] = Field(default=None, description="The maximum fee (gas price or fee per byte) that should be payed for the transaction. In case the current value of the requested `feeLevel` is higher than this requested maximum fee. Represented by a numeric string for accurate precision.", alias="maxFee") + gas_limit: Optional[TransactionRequestGasLimit] = Field(default=None, alias="gasLimit") + gas_price: Optional[TransactionRequestGasPrice] = Field(default=None, alias="gasPrice") + network_fee: Optional[TransactionRequestNetworkFee] = Field(default=None, alias="networkFee") + replace_tx_by_hash: Optional[StrictStr] = Field(default=None, description="For EVM-based blockchains only. In case a transaction is stuck, specify the hash of the stuck transaction to replace it by this transaction with a higher fee, or to replace it with this transaction with a zero fee and drop it from the blockchain.", alias="replaceTxByHash") + extra_parameters: Optional[Dict[str, Any]] = Field(default=None, description="Additional protocol / operation specific key-value parameters: For UTXO-based blockchain input selection, add the key `inputsSelection` with the value set the [input selection structure.](https://developers.fireblocks.com/reference/transaction-objects#inputsselection) The inputs can be retrieved from the [Retrieve Unspent Inputs endpoint.](https://developers.fireblocks.com/reference/get_vault-accounts-vaultaccountid-assetid-unspent-inputs) For `RAW` operations, add the key `rawMessageData` with the value set to the [raw message data structure.](https://developers.fireblocks.com/reference/raw-signing-objects#rawmessagedata) For `CONTRACT_CALL` operations, add the key `contractCallData` with the value set to the Ethereum smart contract Application Binary Interface (ABI) payload. The Fireblocks [development libraries](https://developers.fireblocks.com/docs/ethereum-development#convenience-libraries) are recommended for building contract call transactions. ", alias="extraParameters") + customer_ref_id: Optional[StrictStr] = Field(default=None, description="The ID for AML providers to associate the owner of funds with transactions.", alias="customerRefId") + travel_rule_message: Optional[TravelRuleCreateTransactionRequest] = Field(default=None, alias="travelRuleMessage") + auto_staking: Optional[StrictBool] = Field(default=None, description="This feature is no longer supported.", alias="autoStaking") + network_staking: Optional[TransactionRequestNetworkStaking] = Field(default=None, alias="networkStaking") + cpu_staking: Optional[TransactionRequestNetworkStaking] = Field(default=None, alias="cpuStaking") + __properties: ClassVar[List[str]] = ["operation", "note", "externalTxId", "assetId", "source", "destination", "destinations", "amount", "treatAsGrossAmount", "forceSweep", "feeLevel", "fee", "priorityFee", "failOnLowFee", "maxFee", "gasLimit", "gasPrice", "networkFee", "replaceTxByHash", "extraParameters", "customerRefId", "travelRuleMessage", "autoStaking", "networkStaking", "cpuStaking"] + + @field_validator('fee_level') + def fee_level_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['LOW', 'MEDIUM', 'HIGH']): + raise ValueError("must be one of enum values ('LOW', 'MEDIUM', 'HIGH')") + return value + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of TransactionRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of source + if self.source: + _dict['source'] = self.source.to_dict() + # override the default output from pydantic by calling `to_dict()` of destination + if self.destination: + _dict['destination'] = self.destination.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in destinations (list) + _items = [] + if self.destinations: + for _item in self.destinations: + if _item: + _items.append(_item.to_dict()) + _dict['destinations'] = _items + # override the default output from pydantic by calling `to_dict()` of amount + if self.amount: + _dict['amount'] = self.amount.to_dict() + # override the default output from pydantic by calling `to_dict()` of fee + if self.fee: + _dict['fee'] = self.fee.to_dict() + # override the default output from pydantic by calling `to_dict()` of priority_fee + if self.priority_fee: + _dict['priorityFee'] = self.priority_fee.to_dict() + # override the default output from pydantic by calling `to_dict()` of gas_limit + if self.gas_limit: + _dict['gasLimit'] = self.gas_limit.to_dict() + # override the default output from pydantic by calling `to_dict()` of gas_price + if self.gas_price: + _dict['gasPrice'] = self.gas_price.to_dict() + # override the default output from pydantic by calling `to_dict()` of network_fee + if self.network_fee: + _dict['networkFee'] = self.network_fee.to_dict() + # override the default output from pydantic by calling `to_dict()` of travel_rule_message + if self.travel_rule_message: + _dict['travelRuleMessage'] = self.travel_rule_message.to_dict() + # override the default output from pydantic by calling `to_dict()` of network_staking + if self.network_staking: + _dict['networkStaking'] = self.network_staking.to_dict() + # override the default output from pydantic by calling `to_dict()` of cpu_staking + if self.cpu_staking: + _dict['cpuStaking'] = self.cpu_staking.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of TransactionRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "operation": obj.get("operation"), + "note": obj.get("note"), + "externalTxId": obj.get("externalTxId"), + "assetId": obj.get("assetId"), + "source": SourceTransferPeerPath.from_dict(obj["source"]) if obj.get("source") is not None else None, + "destination": DestinationTransferPeerPath.from_dict(obj["destination"]) if obj.get("destination") is not None else None, + "destinations": [TransactionRequestDestination.from_dict(_item) for _item in obj["destinations"]] if obj.get("destinations") is not None else None, + "amount": TransactionRequestAmount.from_dict(obj["amount"]) if obj.get("amount") is not None else None, + "treatAsGrossAmount": obj.get("treatAsGrossAmount"), + "forceSweep": obj.get("forceSweep"), + "feeLevel": obj.get("feeLevel"), + "fee": TransactionRequestFee.from_dict(obj["fee"]) if obj.get("fee") is not None else None, + "priorityFee": TransactionRequestPriorityFee.from_dict(obj["priorityFee"]) if obj.get("priorityFee") is not None else None, + "failOnLowFee": obj.get("failOnLowFee"), + "maxFee": obj.get("maxFee"), + "gasLimit": TransactionRequestGasLimit.from_dict(obj["gasLimit"]) if obj.get("gasLimit") is not None else None, + "gasPrice": TransactionRequestGasPrice.from_dict(obj["gasPrice"]) if obj.get("gasPrice") is not None else None, + "networkFee": TransactionRequestNetworkFee.from_dict(obj["networkFee"]) if obj.get("networkFee") is not None else None, + "replaceTxByHash": obj.get("replaceTxByHash"), + "extraParameters": obj.get("extraParameters"), + "customerRefId": obj.get("customerRefId"), + "travelRuleMessage": TravelRuleCreateTransactionRequest.from_dict(obj["travelRuleMessage"]) if obj.get("travelRuleMessage") is not None else None, + "autoStaking": obj.get("autoStaking"), + "networkStaking": TransactionRequestNetworkStaking.from_dict(obj["networkStaking"]) if obj.get("networkStaking") is not None else None, + "cpuStaking": TransactionRequestNetworkStaking.from_dict(obj["cpuStaking"]) if obj.get("cpuStaking") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/transaction_request_amount.py b/fireblocks_client/models/transaction_request_amount.py new file mode 100644 index 00000000..c6c3d9ff --- /dev/null +++ b/fireblocks_client/models/transaction_request_amount.py @@ -0,0 +1,144 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +import pprint +from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr, ValidationError, field_validator +from typing import Any, List, Optional, Union +from pydantic import StrictStr, Field +from typing import Union, List, Optional, Dict +from typing_extensions import Literal, Self + +TRANSACTIONREQUESTAMOUNT_ONE_OF_SCHEMAS = ["float", "str"] + +class TransactionRequestAmount(BaseModel): + """ + For `TRANSFER` operations, the requested amount to transfer, in the asset’s unit. Fireblocks recommends using a numeric string for accurate precision. Although a number input exists, it is deprecated. + """ + # data type: str + oneof_schema_1_validator: Optional[StrictStr] = Field(default=None, description="Numeric string (recommended)") + # data type: float + oneof_schema_2_validator: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Number (deprecated)") + actual_instance: Optional[Union[float, str]] = None + one_of_schemas: List[str] = Field(default=Literal["float", "str"]) + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_oneof(cls, v): + instance = TransactionRequestAmount.model_construct() + error_messages = [] + match = 0 + # validate data type: str + try: + instance.oneof_schema_1_validator = v + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: float + try: + instance.oneof_schema_2_validator = v + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in TransactionRequestAmount with oneOf schemas: float, str. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in TransactionRequestAmount with oneOf schemas: float, str. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + match = 0 + + # deserialize data into str + try: + # validation + instance.oneof_schema_1_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.oneof_schema_1_validator + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into float + try: + # validation + instance.oneof_schema_2_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.oneof_schema_2_validator + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when deserializing the JSON string into TransactionRequestAmount with oneOf schemas: float, str. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into TransactionRequestAmount with oneOf schemas: float, str. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], float, str]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + # primitive type + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/fireblocks_client/models/transaction_request_destination.py b/fireblocks_client/models/transaction_request_destination.py new file mode 100644 index 00000000..de94b194 --- /dev/null +++ b/fireblocks_client/models/transaction_request_destination.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.destination_transfer_peer_path import DestinationTransferPeerPath +from typing import Optional, Set +from typing_extensions import Self + +class TransactionRequestDestination(BaseModel): + """ + TransactionRequestDestination + """ # noqa: E501 + amount: Optional[StrictStr] = None + destination: Optional[DestinationTransferPeerPath] = None + __properties: ClassVar[List[str]] = ["amount", "destination"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of TransactionRequestDestination from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of destination + if self.destination: + _dict['destination'] = self.destination.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of TransactionRequestDestination from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "amount": obj.get("amount"), + "destination": DestinationTransferPeerPath.from_dict(obj["destination"]) if obj.get("destination") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/transaction_request_fee.py b/fireblocks_client/models/transaction_request_fee.py new file mode 100644 index 00000000..386b2c34 --- /dev/null +++ b/fireblocks_client/models/transaction_request_fee.py @@ -0,0 +1,144 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +import pprint +from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr, ValidationError, field_validator +from typing import Any, List, Optional, Union +from pydantic import StrictStr, Field +from typing import Union, List, Optional, Dict +from typing_extensions import Literal, Self + +TRANSACTIONREQUESTFEE_ONE_OF_SCHEMAS = ["float", "str"] + +class TransactionRequestFee(BaseModel): + """ + For UTXO-based blockchains, the fee per bytes in the asset’s smallest unit (Satoshi, Latoshi, etc.). For Ripple, the fee for the transaction. Fireblocks recommends using a numeric string for accurate precision. Although a number input exists, it is deprecated. + """ + # data type: str + oneof_schema_1_validator: Optional[StrictStr] = Field(default=None, description="Numeric string (recommended)") + # data type: float + oneof_schema_2_validator: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Number (deprecated)") + actual_instance: Optional[Union[float, str]] = None + one_of_schemas: List[str] = Field(default=Literal["float", "str"]) + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_oneof(cls, v): + instance = TransactionRequestFee.model_construct() + error_messages = [] + match = 0 + # validate data type: str + try: + instance.oneof_schema_1_validator = v + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: float + try: + instance.oneof_schema_2_validator = v + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in TransactionRequestFee with oneOf schemas: float, str. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in TransactionRequestFee with oneOf schemas: float, str. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + match = 0 + + # deserialize data into str + try: + # validation + instance.oneof_schema_1_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.oneof_schema_1_validator + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into float + try: + # validation + instance.oneof_schema_2_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.oneof_schema_2_validator + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when deserializing the JSON string into TransactionRequestFee with oneOf schemas: float, str. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into TransactionRequestFee with oneOf schemas: float, str. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], float, str]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + # primitive type + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/fireblocks_client/models/transaction_request_gas_limit.py b/fireblocks_client/models/transaction_request_gas_limit.py new file mode 100644 index 00000000..0c223782 --- /dev/null +++ b/fireblocks_client/models/transaction_request_gas_limit.py @@ -0,0 +1,144 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +import pprint +from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr, ValidationError, field_validator +from typing import Any, List, Optional, Union +from pydantic import StrictStr, Field +from typing import Union, List, Optional, Dict +from typing_extensions import Literal, Self + +TRANSACTIONREQUESTGASLIMIT_ONE_OF_SCHEMAS = ["float", "str"] + +class TransactionRequestGasLimit(BaseModel): + """ + For EVM-based blockchains only. Units of gas required to process the transaction. Note: Only two of the three arguments can be specified in a single transaction: `gasLimit`, `gasPrice` and `networkFee`. Fireblocks recommends using a numeric string for accurate precision. Although a number input exists, it is deprecated. + """ + # data type: str + oneof_schema_1_validator: Optional[StrictStr] = Field(default=None, description="Numeric string (recommended)") + # data type: float + oneof_schema_2_validator: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Number (deprecated)") + actual_instance: Optional[Union[float, str]] = None + one_of_schemas: List[str] = Field(default=Literal["float", "str"]) + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_oneof(cls, v): + instance = TransactionRequestGasLimit.model_construct() + error_messages = [] + match = 0 + # validate data type: str + try: + instance.oneof_schema_1_validator = v + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: float + try: + instance.oneof_schema_2_validator = v + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in TransactionRequestGasLimit with oneOf schemas: float, str. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in TransactionRequestGasLimit with oneOf schemas: float, str. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + match = 0 + + # deserialize data into str + try: + # validation + instance.oneof_schema_1_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.oneof_schema_1_validator + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into float + try: + # validation + instance.oneof_schema_2_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.oneof_schema_2_validator + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when deserializing the JSON string into TransactionRequestGasLimit with oneOf schemas: float, str. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into TransactionRequestGasLimit with oneOf schemas: float, str. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], float, str]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + # primitive type + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/fireblocks_client/models/transaction_request_gas_price.py b/fireblocks_client/models/transaction_request_gas_price.py new file mode 100644 index 00000000..266d0245 --- /dev/null +++ b/fireblocks_client/models/transaction_request_gas_price.py @@ -0,0 +1,144 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +import pprint +from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr, ValidationError, field_validator +from typing import Any, List, Optional, Union +from pydantic import StrictStr, Field +from typing import Union, List, Optional, Dict +from typing_extensions import Literal, Self + +TRANSACTIONREQUESTGASPRICE_ONE_OF_SCHEMAS = ["float", "str"] + +class TransactionRequestGasPrice(BaseModel): + """ + For non-EIP-1559, EVM-based transactions. Price per gas unit (in Ethereum this is specified in Gwei). Note: Only two of the three arguments can be specified in a single transaction: `gasLimit`, `gasPrice` and `networkFee`. Fireblocks recommends using a numeric string for accurate precision. Although a number input exists, it is deprecated. + """ + # data type: str + oneof_schema_1_validator: Optional[StrictStr] = Field(default=None, description="Numeric string (recommended)") + # data type: float + oneof_schema_2_validator: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Number (deprecated)") + actual_instance: Optional[Union[float, str]] = None + one_of_schemas: List[str] = Field(default=Literal["float", "str"]) + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_oneof(cls, v): + instance = TransactionRequestGasPrice.model_construct() + error_messages = [] + match = 0 + # validate data type: str + try: + instance.oneof_schema_1_validator = v + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: float + try: + instance.oneof_schema_2_validator = v + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in TransactionRequestGasPrice with oneOf schemas: float, str. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in TransactionRequestGasPrice with oneOf schemas: float, str. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + match = 0 + + # deserialize data into str + try: + # validation + instance.oneof_schema_1_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.oneof_schema_1_validator + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into float + try: + # validation + instance.oneof_schema_2_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.oneof_schema_2_validator + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when deserializing the JSON string into TransactionRequestGasPrice with oneOf schemas: float, str. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into TransactionRequestGasPrice with oneOf schemas: float, str. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], float, str]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + # primitive type + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/fireblocks_client/models/transaction_request_network_fee.py b/fireblocks_client/models/transaction_request_network_fee.py new file mode 100644 index 00000000..4ad51c06 --- /dev/null +++ b/fireblocks_client/models/transaction_request_network_fee.py @@ -0,0 +1,144 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +import pprint +from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr, ValidationError, field_validator +from typing import Any, List, Optional, Union +from pydantic import StrictStr, Field +from typing import Union, List, Optional, Dict +from typing_extensions import Literal, Self + +TRANSACTIONREQUESTNETWORKFEE_ONE_OF_SCHEMAS = ["float", "str"] + +class TransactionRequestNetworkFee(BaseModel): + """ + For EVM-based blockchains only. The total transaction fee in the blockchain’s largest unit. Note: Only two of the three arguments can be specified in a single transaction: `gasLimit`, `gasPrice` and `networkFee`. Fireblocks recommends using a numeric string for accurate precision. Although a number input exists, it is deprecated. - The transaction blockchain fee. - For Ethereum, you can't pass gasPrice, gasLimit and networkFee all together. - A numeric value representation is required. + """ + # data type: str + oneof_schema_1_validator: Optional[StrictStr] = Field(default=None, description="Numeric string (recommended)") + # data type: float + oneof_schema_2_validator: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Number (deprecated)") + actual_instance: Optional[Union[float, str]] = None + one_of_schemas: List[str] = Field(default=Literal["float", "str"]) + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_oneof(cls, v): + instance = TransactionRequestNetworkFee.model_construct() + error_messages = [] + match = 0 + # validate data type: str + try: + instance.oneof_schema_1_validator = v + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: float + try: + instance.oneof_schema_2_validator = v + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in TransactionRequestNetworkFee with oneOf schemas: float, str. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in TransactionRequestNetworkFee with oneOf schemas: float, str. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + match = 0 + + # deserialize data into str + try: + # validation + instance.oneof_schema_1_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.oneof_schema_1_validator + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into float + try: + # validation + instance.oneof_schema_2_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.oneof_schema_2_validator + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when deserializing the JSON string into TransactionRequestNetworkFee with oneOf schemas: float, str. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into TransactionRequestNetworkFee with oneOf schemas: float, str. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], float, str]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + # primitive type + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/fireblocks_client/models/transaction_request_network_staking.py b/fireblocks_client/models/transaction_request_network_staking.py new file mode 100644 index 00000000..190cb489 --- /dev/null +++ b/fireblocks_client/models/transaction_request_network_staking.py @@ -0,0 +1,144 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +import pprint +from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr, ValidationError, field_validator +from typing import Any, List, Optional, Union +from pydantic import StrictStr, Field +from typing import Union, List, Optional, Dict +from typing_extensions import Literal, Self + +TRANSACTIONREQUESTNETWORKSTAKING_ONE_OF_SCHEMAS = ["float", "str"] + +class TransactionRequestNetworkStaking(BaseModel): + """ + This feature is no longer supported. + """ + # data type: str + oneof_schema_1_validator: Optional[StrictStr] = Field(default=None, description="Numeric string (recommended)") + # data type: float + oneof_schema_2_validator: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Number (deprecated)") + actual_instance: Optional[Union[float, str]] = None + one_of_schemas: List[str] = Field(default=Literal["float", "str"]) + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_oneof(cls, v): + instance = TransactionRequestNetworkStaking.model_construct() + error_messages = [] + match = 0 + # validate data type: str + try: + instance.oneof_schema_1_validator = v + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: float + try: + instance.oneof_schema_2_validator = v + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in TransactionRequestNetworkStaking with oneOf schemas: float, str. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in TransactionRequestNetworkStaking with oneOf schemas: float, str. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + match = 0 + + # deserialize data into str + try: + # validation + instance.oneof_schema_1_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.oneof_schema_1_validator + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into float + try: + # validation + instance.oneof_schema_2_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.oneof_schema_2_validator + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when deserializing the JSON string into TransactionRequestNetworkStaking with oneOf schemas: float, str. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into TransactionRequestNetworkStaking with oneOf schemas: float, str. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], float, str]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + # primitive type + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/fireblocks_client/models/transaction_request_priority_fee.py b/fireblocks_client/models/transaction_request_priority_fee.py new file mode 100644 index 00000000..97a3d291 --- /dev/null +++ b/fireblocks_client/models/transaction_request_priority_fee.py @@ -0,0 +1,144 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +import pprint +from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr, ValidationError, field_validator +from typing import Any, List, Optional, Union +from pydantic import StrictStr, Field +from typing import Union, List, Optional, Dict +from typing_extensions import Literal, Self + +TRANSACTIONREQUESTPRIORITYFEE_ONE_OF_SCHEMAS = ["float", "str"] + +class TransactionRequestPriorityFee(BaseModel): + """ + For Ethereum-based blockchains only, the fee for EIP-1559 transaction pricing mechanism. Value is in Gwei. Fireblocks recommends using a numeric string for accurate precision. Although a number input exists, it is deprecated. + """ + # data type: str + oneof_schema_1_validator: Optional[StrictStr] = Field(default=None, description="Numeric string (recommended)") + # data type: float + oneof_schema_2_validator: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Number (deprecated)") + actual_instance: Optional[Union[float, str]] = None + one_of_schemas: List[str] = Field(default=Literal["float", "str"]) + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_oneof(cls, v): + instance = TransactionRequestPriorityFee.model_construct() + error_messages = [] + match = 0 + # validate data type: str + try: + instance.oneof_schema_1_validator = v + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: float + try: + instance.oneof_schema_2_validator = v + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in TransactionRequestPriorityFee with oneOf schemas: float, str. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in TransactionRequestPriorityFee with oneOf schemas: float, str. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + match = 0 + + # deserialize data into str + try: + # validation + instance.oneof_schema_1_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.oneof_schema_1_validator + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into float + try: + # validation + instance.oneof_schema_2_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.oneof_schema_2_validator + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when deserializing the JSON string into TransactionRequestPriorityFee with oneOf schemas: float, str. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into TransactionRequestPriorityFee with oneOf schemas: float, str. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], float, str]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + # primitive type + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/fireblocks_client/models/transaction_response.py b/fireblocks_client/models/transaction_response.py new file mode 100644 index 00000000..e80354ee --- /dev/null +++ b/fireblocks_client/models/transaction_response.py @@ -0,0 +1,266 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictBool, StrictFloat, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional, Union +from fireblocks_client.models.aml_screening_result import AmlScreeningResult +from fireblocks_client.models.amount_info import AmountInfo +from fireblocks_client.models.authorization_info import AuthorizationInfo +from fireblocks_client.models.block_info import BlockInfo +from fireblocks_client.models.compliance_result import ComplianceResult +from fireblocks_client.models.destination_transfer_peer_path_response import DestinationTransferPeerPathResponse +from fireblocks_client.models.fee_info import FeeInfo +from fireblocks_client.models.get_transaction_operation import GetTransactionOperation +from fireblocks_client.models.network_record import NetworkRecord +from fireblocks_client.models.reward_info import RewardInfo +from fireblocks_client.models.signed_message import SignedMessage +from fireblocks_client.models.source_transfer_peer_path_response import SourceTransferPeerPathResponse +from fireblocks_client.models.system_message_info import SystemMessageInfo +from fireblocks_client.models.transaction_response_contract_call_decoded_data import TransactionResponseContractCallDecodedData +from fireblocks_client.models.transaction_response_destination import TransactionResponseDestination +from typing import Optional, Set +from typing_extensions import Self + +class TransactionResponse(BaseModel): + """ + TransactionResponse + """ # noqa: E501 + id: Optional[StrictStr] = Field(default=None, description="ID of the transaction.") + external_tx_id: Optional[StrictStr] = Field(default=None, description="Unique transaction ID provided by the user. Fireblocks highly recommends setting an `externalTxId` for every transaction created, to avoid submitting the same transaction twice.", alias="externalTxId") + status: Optional[StrictStr] = Field(default=None, description="The primary status of the transaction. For details, see [Primary transaction statuses](https://developers.fireblocks.com/reference/primary-transaction-statuses).") + sub_status: Optional[StrictStr] = Field(default=None, description="See [Transaction substatuses](https://developers.fireblocks.com/reference/transaction-substatuses) for the list of transaction sub statuses.", alias="subStatus") + tx_hash: Optional[StrictStr] = Field(default=None, description="The hash of the transaction on the blockchain. * This parameter exists if at least one of the following conditions is met: 1. The transaction’s source type is `UNKNOWN`, `WHITELISTED_ADDRESS`, `NETWORK_CONNECTION`, `ONE_TIME_ADDRESS`, `FIAT_ACCOUNT` or `GAS_STATION`. 2. The transaction’s source type is `VAULT` and the status is either: `CONFIRMING`, `COMPLETED`, or was in any of these statuses prior to changing to `FAILED` or `REJECTED`. In some instances, transactions in status `BROADCASTING` will include the txHash as well. 3. The transaction’s source type is `EXCHANGE_ACCOUNT` and the transaction’s destination type is `VAULT`, and the status is either: `CONFIRMING`, `COMPLETED`, or was in any of these status prior to changing to `FAILED`. * In addition, the following conditions must be met: 1. The asset is a crypto asset (not fiat). 2. The transaction operation is not RAW or `TYPED_MESSAGE`.", alias="txHash") + operation: Optional[GetTransactionOperation] = None + note: Optional[StrictStr] = Field(default=None, description="Custom note, not sent to the blockchain, that describes the transaction at your Fireblocks workspace.") + asset_id: Optional[StrictStr] = Field(default=None, description="The ID of the asset to transfer, for `TRANSFER`, `MINT`, `BURN`, `ENABLE_ASSET`,`STAKE` ,`UNSTAKE` or `WITHDRAW` operations. [See the list of supported assets and their IDs on Fireblocks.](https://developers.fireblocks.com/reference/get_supported-assets)", alias="assetId") + source: Optional[SourceTransferPeerPathResponse] = None + source_address: Optional[StrictStr] = Field(default=None, description="For account based assets only, the source address of the transaction. **Note:** If the status is `CONFIRMING`, `COMPLETED`, or has been `CONFIRMING`; then moved forward to `FAILED` or `REJECTED`, then this parameter will contain the source address. In any other case, this parameter will be empty.", alias="sourceAddress") + tag: Optional[StrictStr] = Field(default=None, description="Source address tag for XRP, used as memo for EOS/XLM, or Bank Transfer Description for the fiat provider BLINC (by BCB Group).") + destination: Optional[DestinationTransferPeerPathResponse] = None + destinations: Optional[List[TransactionResponseDestination]] = Field(default=None, description="The transaction’s destinations. **Note:** In case the transaction is sent to a single destination, the `destination` parameter is used instead of this.") + destination_address: Optional[StrictStr] = Field(default=None, description="Address where the asset were transferred. Notes: - For [Multi destination transactions](https://support.fireblocks.io/hc/en-us/articles/360018447980-Multi-destination-transactions), this parameter will be empty. In this case, you should refer to the destinations field. - If the status is `CONFIRMING`, `COMPLETED`, or has been `CONFIRMING`; then moved forward to `FAILED` or `REJECTED`, then this parameter will contain the destination address. In any other case, this parameter will be empty.", alias="destinationAddress") + destination_address_description: Optional[StrictStr] = Field(default=None, description="Description of the address.", alias="destinationAddressDescription") + destination_tag: Optional[StrictStr] = Field(default=None, description="Destination address tag for XRP, used as memo for EOS/XLM, or Bank Transfer Description for the fiat provider BLINC (by BCB Group).", alias="destinationTag") + contract_call_decoded_data: Optional[TransactionResponseContractCallDecodedData] = Field(default=None, alias="contractCallDecodedData") + amount_info: Optional[AmountInfo] = Field(default=None, alias="amountInfo") + treat_as_gross_amount: Optional[StrictBool] = Field(default=None, description="For transactions initiated via this Fireblocks workspace, when set to `true`, the fee is deducted from the requested amount. **Note**: This parameter can only be considered if a transaction's asset is a base asset, such as ETH or MATIC. If the asset can't be used for transaction fees, like USDC, this parameter is ignored and the fee is deducted from the relevant base asset wallet in the source account.", alias="treatAsGrossAmount") + fee_info: Optional[FeeInfo] = Field(default=None, alias="feeInfo") + fee_currency: Optional[StrictStr] = Field(default=None, description="The asset which was withdrawn to pay the transaction fee, for example ETH for EVM-based blockchains, BTC for Tether Omni.", alias="feeCurrency") + network_records: Optional[List[NetworkRecord]] = Field(default=None, description="In case a single transaction resulted with multiple transfers, for example a result of a contract call, then this parameter specifies each transfer that took place on the blockchain. In case of a single transfer transaction, this parameter is empty.", alias="networkRecords") + created_at: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The transaction’s creation date and time, in unix timestamp.", alias="createdAt") + last_updated: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The transaction’s last update date and time, in unix timestamp.", alias="lastUpdated") + created_by: Optional[StrictStr] = Field(default=None, description="User ID of the initiator of the transaction.", alias="createdBy") + signed_by: Optional[List[StrictStr]] = Field(default=None, description="User ID’s of the signers of the transaction.", alias="signedBy") + rejected_by: Optional[StrictStr] = Field(default=None, description="User ID of the user that rejected the transaction (in case it was rejected).", alias="rejectedBy") + authorization_info: Optional[AuthorizationInfo] = Field(default=None, alias="authorizationInfo") + exchange_tx_id: Optional[StrictStr] = Field(default=None, description="If the transaction originated from an exchange, this is the ID of this transaction at the exchange.", alias="exchangeTxId") + customer_ref_id: Optional[StrictStr] = Field(default=None, description="The ID for AML providers to associate the owner of funds with transactions.", alias="customerRefId") + aml_screening_result: Optional[AmlScreeningResult] = Field(default=None, alias="amlScreeningResult") + compliance_result: Optional[ComplianceResult] = Field(default=None, alias="complianceResult") + extra_parameters: Optional[Dict[str, Any]] = Field(default=None, description="Additional protocol / operation specific key-value parameters: For UTXO-based blockchain input selection, add the key `inputsSelection` with the value set the [input selection structure.](https://developers.fireblocks.com/reference/transaction-objects#inputsselection) The inputs can be retrieved from the [Retrieve Unspent Inputs endpoint.](https://developers.fireblocks.com/reference/get_vault-accounts-vaultaccountid-assetid-unspent-inputs) For `RAW` operations, add the key `rawMessageData` with the value set to the [raw message data structure.](https://developers.fireblocks.com/reference/raw-signing-objects#rawmessagedata) For `CONTRACT_CALL` operations, add the key `contractCallData` with the value set to the Ethereum smart contract Application Binary Interface (ABI) payload. The Fireblocks [development libraries](https://developers.fireblocks.com/docs/ethereum-development#convenience-libraries) are recommended for building contract call transactions. ", alias="extraParameters") + signed_messages: Optional[List[SignedMessage]] = Field(default=None, alias="signedMessages") + num_of_confirmations: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The number of confirmations of the transaction. The number will increase until the transaction will be considered completed according to the confirmation policy.", alias="numOfConfirmations") + block_info: Optional[BlockInfo] = Field(default=None, alias="blockInfo") + index: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="For UTXO based assets this is the vOut, for Ethereum based, this is the index of the event of the contract call. **Note:** This field is not returned if a transaction uses the `destinations` object with more than one value.") + reward_info: Optional[RewardInfo] = Field(default=None, alias="rewardInfo") + system_messages: Optional[SystemMessageInfo] = Field(default=None, alias="systemMessages") + address_type: Optional[StrictStr] = Field(default=None, alias="addressType") + requested_amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The amount requested by the user. Deprecated - please use the `amountInfo` field for accuracy.", alias="requestedAmount") + amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="If the transfer is a withdrawal from an exchange, the actual amount that was requested to be transferred. Otherwise, the requested amount. Deprecated - please use the `amountInfo` field for accuracy.") + net_amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The net amount of the transaction, after fee deduction. Deprecated - please use the `amountInfo` field for accuracy.", alias="netAmount") + amount_usd: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The USD value of the requested amount. Deprecated - please use the `amountInfo` field for accuracy.", alias="amountUSD") + service_fee: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The total fee deducted by the exchange from the actual requested amount (`serviceFee` = `amount` - `netAmount`). Deprecated - please use the `feeInfo` field for accuracy.", alias="serviceFee") + fee: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Deprecated - please use the `feeInfo` field for accuracy.") + network_fee: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The fee paid to the network. Deprecated - please use the `feeInfo` field for accuracy.", alias="networkFee") + error_description: Optional[StrictStr] = Field(default=None, description="The transaction's revert reason. This field will be returned when `subStatus` = 'SMART_CONTRACT_EXECUTION_FAILED'.", alias="errorDescription") + __properties: ClassVar[List[str]] = ["id", "externalTxId", "status", "subStatus", "txHash", "operation", "note", "assetId", "source", "sourceAddress", "tag", "destination", "destinations", "destinationAddress", "destinationAddressDescription", "destinationTag", "contractCallDecodedData", "amountInfo", "treatAsGrossAmount", "feeInfo", "feeCurrency", "networkRecords", "createdAt", "lastUpdated", "createdBy", "signedBy", "rejectedBy", "authorizationInfo", "exchangeTxId", "customerRefId", "amlScreeningResult", "complianceResult", "extraParameters", "signedMessages", "numOfConfirmations", "blockInfo", "index", "rewardInfo", "systemMessages", "addressType", "requestedAmount", "amount", "netAmount", "amountUSD", "serviceFee", "fee", "networkFee", "errorDescription"] + + @field_validator('address_type') + def address_type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['', 'WHITELISTED', 'ONE_TIME']): + raise ValueError("must be one of enum values ('', 'WHITELISTED', 'ONE_TIME')") + return value + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of TransactionResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of source + if self.source: + _dict['source'] = self.source.to_dict() + # override the default output from pydantic by calling `to_dict()` of destination + if self.destination: + _dict['destination'] = self.destination.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in destinations (list) + _items = [] + if self.destinations: + for _item in self.destinations: + if _item: + _items.append(_item.to_dict()) + _dict['destinations'] = _items + # override the default output from pydantic by calling `to_dict()` of contract_call_decoded_data + if self.contract_call_decoded_data: + _dict['contractCallDecodedData'] = self.contract_call_decoded_data.to_dict() + # override the default output from pydantic by calling `to_dict()` of amount_info + if self.amount_info: + _dict['amountInfo'] = self.amount_info.to_dict() + # override the default output from pydantic by calling `to_dict()` of fee_info + if self.fee_info: + _dict['feeInfo'] = self.fee_info.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in network_records (list) + _items = [] + if self.network_records: + for _item in self.network_records: + if _item: + _items.append(_item.to_dict()) + _dict['networkRecords'] = _items + # override the default output from pydantic by calling `to_dict()` of authorization_info + if self.authorization_info: + _dict['authorizationInfo'] = self.authorization_info.to_dict() + # override the default output from pydantic by calling `to_dict()` of aml_screening_result + if self.aml_screening_result: + _dict['amlScreeningResult'] = self.aml_screening_result.to_dict() + # override the default output from pydantic by calling `to_dict()` of compliance_result + if self.compliance_result: + _dict['complianceResult'] = self.compliance_result.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in signed_messages (list) + _items = [] + if self.signed_messages: + for _item in self.signed_messages: + if _item: + _items.append(_item.to_dict()) + _dict['signedMessages'] = _items + # override the default output from pydantic by calling `to_dict()` of block_info + if self.block_info: + _dict['blockInfo'] = self.block_info.to_dict() + # override the default output from pydantic by calling `to_dict()` of reward_info + if self.reward_info: + _dict['rewardInfo'] = self.reward_info.to_dict() + # override the default output from pydantic by calling `to_dict()` of system_messages + if self.system_messages: + _dict['systemMessages'] = self.system_messages.to_dict() + # set to None if amount_usd (nullable) is None + # and model_fields_set contains the field + if self.amount_usd is None and "amount_usd" in self.model_fields_set: + _dict['amountUSD'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of TransactionResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "externalTxId": obj.get("externalTxId"), + "status": obj.get("status"), + "subStatus": obj.get("subStatus"), + "txHash": obj.get("txHash"), + "operation": obj.get("operation"), + "note": obj.get("note"), + "assetId": obj.get("assetId"), + "source": SourceTransferPeerPathResponse.from_dict(obj["source"]) if obj.get("source") is not None else None, + "sourceAddress": obj.get("sourceAddress"), + "tag": obj.get("tag"), + "destination": DestinationTransferPeerPathResponse.from_dict(obj["destination"]) if obj.get("destination") is not None else None, + "destinations": [TransactionResponseDestination.from_dict(_item) for _item in obj["destinations"]] if obj.get("destinations") is not None else None, + "destinationAddress": obj.get("destinationAddress"), + "destinationAddressDescription": obj.get("destinationAddressDescription"), + "destinationTag": obj.get("destinationTag"), + "contractCallDecodedData": TransactionResponseContractCallDecodedData.from_dict(obj["contractCallDecodedData"]) if obj.get("contractCallDecodedData") is not None else None, + "amountInfo": AmountInfo.from_dict(obj["amountInfo"]) if obj.get("amountInfo") is not None else None, + "treatAsGrossAmount": obj.get("treatAsGrossAmount"), + "feeInfo": FeeInfo.from_dict(obj["feeInfo"]) if obj.get("feeInfo") is not None else None, + "feeCurrency": obj.get("feeCurrency"), + "networkRecords": [NetworkRecord.from_dict(_item) for _item in obj["networkRecords"]] if obj.get("networkRecords") is not None else None, + "createdAt": obj.get("createdAt"), + "lastUpdated": obj.get("lastUpdated"), + "createdBy": obj.get("createdBy"), + "signedBy": obj.get("signedBy"), + "rejectedBy": obj.get("rejectedBy"), + "authorizationInfo": AuthorizationInfo.from_dict(obj["authorizationInfo"]) if obj.get("authorizationInfo") is not None else None, + "exchangeTxId": obj.get("exchangeTxId"), + "customerRefId": obj.get("customerRefId"), + "amlScreeningResult": AmlScreeningResult.from_dict(obj["amlScreeningResult"]) if obj.get("amlScreeningResult") is not None else None, + "complianceResult": ComplianceResult.from_dict(obj["complianceResult"]) if obj.get("complianceResult") is not None else None, + "extraParameters": obj.get("extraParameters"), + "signedMessages": [SignedMessage.from_dict(_item) for _item in obj["signedMessages"]] if obj.get("signedMessages") is not None else None, + "numOfConfirmations": obj.get("numOfConfirmations"), + "blockInfo": BlockInfo.from_dict(obj["blockInfo"]) if obj.get("blockInfo") is not None else None, + "index": obj.get("index"), + "rewardInfo": RewardInfo.from_dict(obj["rewardInfo"]) if obj.get("rewardInfo") is not None else None, + "systemMessages": SystemMessageInfo.from_dict(obj["systemMessages"]) if obj.get("systemMessages") is not None else None, + "addressType": obj.get("addressType"), + "requestedAmount": obj.get("requestedAmount"), + "amount": obj.get("amount"), + "netAmount": obj.get("netAmount"), + "amountUSD": obj.get("amountUSD"), + "serviceFee": obj.get("serviceFee"), + "fee": obj.get("fee"), + "networkFee": obj.get("networkFee"), + "errorDescription": obj.get("errorDescription") + }) + return _obj + + diff --git a/fireblocks_client/models/transaction_response_contract_call_decoded_data.py b/fireblocks_client/models/transaction_response_contract_call_decoded_data.py new file mode 100644 index 00000000..cfc89188 --- /dev/null +++ b/fireblocks_client/models/transaction_response_contract_call_decoded_data.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class TransactionResponseContractCallDecodedData(BaseModel): + """ + Decoded data for `CONTRACT_CALL` operations. The Fireblocks [development libraries](https://developers.fireblocks.com/docs/ethereum-development#convenience-libraries) are recommended for setting this parameter's value. + """ # noqa: E501 + contract_name: Optional[StrictStr] = Field(default=None, alias="contractName") + function_calls: Optional[List[Dict[str, Any]]] = Field(default=None, alias="functionCalls") + __properties: ClassVar[List[str]] = ["contractName", "functionCalls"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of TransactionResponseContractCallDecodedData from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of TransactionResponseContractCallDecodedData from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "contractName": obj.get("contractName"), + "functionCalls": obj.get("functionCalls") + }) + return _obj + + diff --git a/fireblocks_client/models/transaction_response_destination.py b/fireblocks_client/models/transaction_response_destination.py new file mode 100644 index 00000000..24562bcf --- /dev/null +++ b/fireblocks_client/models/transaction_response_destination.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.aml_screening_result import AmlScreeningResult +from fireblocks_client.models.authorization_info import AuthorizationInfo +from fireblocks_client.models.destination_transfer_peer_path_response import DestinationTransferPeerPathResponse +from typing import Optional, Set +from typing_extensions import Self + +class TransactionResponseDestination(BaseModel): + """ + TransactionResponseDestination + """ # noqa: E501 + destination_address: Optional[Any] = Field(default=None, description="Address where the asset was transferred.", alias="destinationAddress") + destination_address_description: Optional[Any] = Field(default=None, description="Description of the address.", alias="destinationAddressDescription") + amount: Optional[StrictStr] = Field(default=None, description="The amount to be sent to this destination.") + amount_usd: Optional[StrictStr] = Field(default=None, description="The USD value of the requested amount.", alias="amountUSD") + aml_screening_result: Optional[AmlScreeningResult] = Field(default=None, alias="amlScreeningResult") + destination: Optional[DestinationTransferPeerPathResponse] = None + authorization_info: Optional[AuthorizationInfo] = Field(default=None, alias="authorizationInfo") + __properties: ClassVar[List[str]] = ["destinationAddress", "destinationAddressDescription", "amount", "amountUSD", "amlScreeningResult", "destination", "authorizationInfo"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of TransactionResponseDestination from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of aml_screening_result + if self.aml_screening_result: + _dict['amlScreeningResult'] = self.aml_screening_result.to_dict() + # override the default output from pydantic by calling `to_dict()` of destination + if self.destination: + _dict['destination'] = self.destination.to_dict() + # override the default output from pydantic by calling `to_dict()` of authorization_info + if self.authorization_info: + _dict['authorizationInfo'] = self.authorization_info.to_dict() + # set to None if destination_address (nullable) is None + # and model_fields_set contains the field + if self.destination_address is None and "destination_address" in self.model_fields_set: + _dict['destinationAddress'] = None + + # set to None if destination_address_description (nullable) is None + # and model_fields_set contains the field + if self.destination_address_description is None and "destination_address_description" in self.model_fields_set: + _dict['destinationAddressDescription'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of TransactionResponseDestination from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "destinationAddress": obj.get("destinationAddress"), + "destinationAddressDescription": obj.get("destinationAddressDescription"), + "amount": obj.get("amount"), + "amountUSD": obj.get("amountUSD"), + "amlScreeningResult": AmlScreeningResult.from_dict(obj["amlScreeningResult"]) if obj.get("amlScreeningResult") is not None else None, + "destination": DestinationTransferPeerPathResponse.from_dict(obj["destination"]) if obj.get("destination") is not None else None, + "authorizationInfo": AuthorizationInfo.from_dict(obj["authorizationInfo"]) if obj.get("authorizationInfo") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/transfer_config_operation.py b/fireblocks_client/models/transfer_config_operation.py new file mode 100644 index 00000000..63fdd444 --- /dev/null +++ b/fireblocks_client/models/transfer_config_operation.py @@ -0,0 +1,106 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.config_operation_status import ConfigOperationStatus +from fireblocks_client.models.transfer_operation_config_params import TransferOperationConfigParams +from fireblocks_client.models.transfer_operation_type import TransferOperationType +from fireblocks_client.models.transfer_validation_failure import TransferValidationFailure +from typing import Optional, Set +from typing_extensions import Self + +class TransferConfigOperation(BaseModel): + """ + TransferConfigOperation + """ # noqa: E501 + operation_id: StrictStr = Field(alias="operationId") + type: TransferOperationType + params: TransferOperationConfigParams + status: ConfigOperationStatus + validation_failure: Optional[TransferValidationFailure] = Field(default=None, alias="validationFailure") + __properties: ClassVar[List[str]] = ["operationId", "type", "params", "status", "validationFailure"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of TransferConfigOperation from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of params + if self.params: + _dict['params'] = self.params.to_dict() + # override the default output from pydantic by calling `to_dict()` of validation_failure + if self.validation_failure: + _dict['validationFailure'] = self.validation_failure.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of TransferConfigOperation from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "operationId": obj.get("operationId"), + "type": obj.get("type"), + "params": TransferOperationConfigParams.from_dict(obj["params"]) if obj.get("params") is not None else None, + "status": obj.get("status"), + "validationFailure": TransferValidationFailure.from_dict(obj["validationFailure"]) if obj.get("validationFailure") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/transfer_operation_config_params.py b/fireblocks_client/models/transfer_operation_config_params.py new file mode 100644 index 00000000..e19c8c56 --- /dev/null +++ b/fireblocks_client/models/transfer_operation_config_params.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.account import Account +from fireblocks_client.models.destination import Destination +from typing import Optional, Set +from typing_extensions import Self + +class TransferOperationConfigParams(BaseModel): + """ + TransferOperationConfigParams + """ # noqa: E501 + amount: Optional[StrictStr] = None + asset_id: Optional[StrictStr] = Field(default=None, alias="assetId") + source: Optional[Account] = None + destination: Destination + __properties: ClassVar[List[str]] = ["amount", "assetId", "source", "destination"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of TransferOperationConfigParams from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of source + if self.source: + _dict['source'] = self.source.to_dict() + # override the default output from pydantic by calling `to_dict()` of destination + if self.destination: + _dict['destination'] = self.destination.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of TransferOperationConfigParams from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "amount": obj.get("amount"), + "assetId": obj.get("assetId"), + "source": Account.from_dict(obj["source"]) if obj.get("source") is not None else None, + "destination": Destination.from_dict(obj["destination"]) if obj.get("destination") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/transfer_operation_execution.py b/fireblocks_client/models/transfer_operation_execution.py new file mode 100644 index 00000000..cd16054a --- /dev/null +++ b/fireblocks_client/models/transfer_operation_execution.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from fireblocks_client.models.transfer_operation_config_params import TransferOperationConfigParams +from fireblocks_client.models.transfer_operation_execution_output import TransferOperationExecutionOutput +from fireblocks_client.models.transfer_operation_failure import TransferOperationFailure +from typing import Optional, Set +from typing_extensions import Self + +class TransferOperationExecution(BaseModel): + """ + TransferOperationExecution + """ # noqa: E501 + input: TransferOperationConfigParams + output: Optional[TransferOperationExecutionOutput] = None + tx_id: Optional[StrictStr] = Field(default=None, alias="txId") + started_at: Union[StrictFloat, StrictInt] = Field(alias="startedAt") + finished_at: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="finishedAt") + failure: Optional[TransferOperationFailure] = None + __properties: ClassVar[List[str]] = ["input", "output", "txId", "startedAt", "finishedAt", "failure"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of TransferOperationExecution from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of input + if self.input: + _dict['input'] = self.input.to_dict() + # override the default output from pydantic by calling `to_dict()` of output + if self.output: + _dict['output'] = self.output.to_dict() + # override the default output from pydantic by calling `to_dict()` of failure + if self.failure: + _dict['failure'] = self.failure.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of TransferOperationExecution from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "input": TransferOperationConfigParams.from_dict(obj["input"]) if obj.get("input") is not None else None, + "output": TransferOperationExecutionOutput.from_dict(obj["output"]) if obj.get("output") is not None else None, + "txId": obj.get("txId"), + "startedAt": obj.get("startedAt"), + "finishedAt": obj.get("finishedAt"), + "failure": TransferOperationFailure.from_dict(obj["failure"]) if obj.get("failure") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/transfer_operation_execution_output.py b/fireblocks_client/models/transfer_operation_execution_output.py new file mode 100644 index 00000000..7baca631 --- /dev/null +++ b/fireblocks_client/models/transfer_operation_execution_output.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List +from fireblocks_client.models.asset_amount import AssetAmount +from typing import Optional, Set +from typing_extensions import Self + +class TransferOperationExecutionOutput(BaseModel): + """ + TransferOperationExecutionOutput + """ # noqa: E501 + amount: AssetAmount + fee: AssetAmount + __properties: ClassVar[List[str]] = ["amount", "fee"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of TransferOperationExecutionOutput from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of amount + if self.amount: + _dict['amount'] = self.amount.to_dict() + # override the default output from pydantic by calling `to_dict()` of fee + if self.fee: + _dict['fee'] = self.fee.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of TransferOperationExecutionOutput from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "amount": AssetAmount.from_dict(obj["amount"]) if obj.get("amount") is not None else None, + "fee": AssetAmount.from_dict(obj["fee"]) if obj.get("fee") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/transfer_operation_execution_params.py b/fireblocks_client/models/transfer_operation_execution_params.py new file mode 100644 index 00000000..5255938b --- /dev/null +++ b/fireblocks_client/models/transfer_operation_execution_params.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.transfer_operation_execution_params_execution_params import TransferOperationExecutionParamsExecutionParams +from typing import Optional, Set +from typing_extensions import Self + +class TransferOperationExecutionParams(BaseModel): + """ + TransferOperationExecutionParams + """ # noqa: E501 + config_operation_id: StrictStr = Field(alias="configOperationId") + execution_params: Optional[TransferOperationExecutionParamsExecutionParams] = Field(default=None, alias="executionParams") + __properties: ClassVar[List[str]] = ["configOperationId", "executionParams"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of TransferOperationExecutionParams from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of execution_params + if self.execution_params: + _dict['executionParams'] = self.execution_params.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of TransferOperationExecutionParams from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "configOperationId": obj.get("configOperationId"), + "executionParams": TransferOperationExecutionParamsExecutionParams.from_dict(obj["executionParams"]) if obj.get("executionParams") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/transfer_operation_execution_params_execution_params.py b/fireblocks_client/models/transfer_operation_execution_params_execution_params.py new file mode 100644 index 00000000..f69fb614 --- /dev/null +++ b/fireblocks_client/models/transfer_operation_execution_params_execution_params.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.account import Account +from fireblocks_client.models.destination import Destination +from typing import Optional, Set +from typing_extensions import Self + +class TransferOperationExecutionParamsExecutionParams(BaseModel): + """ + TransferOperationExecutionParamsExecutionParams + """ # noqa: E501 + amount: Optional[StrictStr] = None + asset_id: Optional[StrictStr] = Field(default=None, alias="assetId") + source: Optional[Account] = None + destination: Optional[Destination] = None + __properties: ClassVar[List[str]] = ["amount", "assetId", "source", "destination"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of TransferOperationExecutionParamsExecutionParams from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of source + if self.source: + _dict['source'] = self.source.to_dict() + # override the default output from pydantic by calling `to_dict()` of destination + if self.destination: + _dict['destination'] = self.destination.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of TransferOperationExecutionParamsExecutionParams from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "amount": obj.get("amount"), + "assetId": obj.get("assetId"), + "source": Account.from_dict(obj["source"]) if obj.get("source") is not None else None, + "destination": Destination.from_dict(obj["destination"]) if obj.get("destination") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/transfer_operation_failure.py b/fireblocks_client/models/transfer_operation_failure.py new file mode 100644 index 00000000..3c52dbb5 --- /dev/null +++ b/fireblocks_client/models/transfer_operation_failure.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.transfer_operation_failure_data import TransferOperationFailureData +from typing import Optional, Set +from typing_extensions import Self + +class TransferOperationFailure(BaseModel): + """ + TransferOperationFailure + """ # noqa: E501 + reason: StrictStr + data: Optional[TransferOperationFailureData] = None + __properties: ClassVar[List[str]] = ["reason", "data"] + + @field_validator('reason') + def reason_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['INVALID_AMOUNT', 'SUBMISSION_FAILED', 'TRANSACTION_FAILED']): + raise ValueError("must be one of enum values ('INVALID_AMOUNT', 'SUBMISSION_FAILED', 'TRANSACTION_FAILED')") + return value + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of TransferOperationFailure from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of data + if self.data: + _dict['data'] = self.data.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of TransferOperationFailure from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "reason": obj.get("reason"), + "data": TransferOperationFailureData.from_dict(obj["data"]) if obj.get("data") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/transfer_operation_failure_data.py b/fireblocks_client/models/transfer_operation_failure_data.py new file mode 100644 index 00000000..ef055f16 --- /dev/null +++ b/fireblocks_client/models/transfer_operation_failure_data.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class TransferOperationFailureData(BaseModel): + """ + TransferOperationFailureData + """ # noqa: E501 + tx_id: StrictStr = Field(alias="txId") + tx_status: StrictStr = Field(alias="txStatus") + tx_sub_status: Optional[StrictStr] = Field(default=None, alias="txSubStatus") + __properties: ClassVar[List[str]] = ["txId", "txStatus", "txSubStatus"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of TransferOperationFailureData from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of TransferOperationFailureData from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "txId": obj.get("txId"), + "txStatus": obj.get("txStatus"), + "txSubStatus": obj.get("txSubStatus") + }) + return _obj + + diff --git a/fireblocks_client/models/transfer_operation_preview.py b/fireblocks_client/models/transfer_operation_preview.py new file mode 100644 index 00000000..fb3d782d --- /dev/null +++ b/fireblocks_client/models/transfer_operation_preview.py @@ -0,0 +1,104 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.transfer_operation_config_params import TransferOperationConfigParams +from fireblocks_client.models.transfer_operation_failure import TransferOperationFailure +from fireblocks_client.models.transfer_operation_preview_output import TransferOperationPreviewOutput +from typing import Optional, Set +from typing_extensions import Self + +class TransferOperationPreview(BaseModel): + """ + TransferOperationPreview + """ # noqa: E501 + input: TransferOperationConfigParams + output: Optional[TransferOperationPreviewOutput] = None + failure: Optional[TransferOperationFailure] = None + __properties: ClassVar[List[str]] = ["input", "output", "failure"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of TransferOperationPreview from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of input + if self.input: + _dict['input'] = self.input.to_dict() + # override the default output from pydantic by calling `to_dict()` of output + if self.output: + _dict['output'] = self.output.to_dict() + # override the default output from pydantic by calling `to_dict()` of failure + if self.failure: + _dict['failure'] = self.failure.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of TransferOperationPreview from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "input": TransferOperationConfigParams.from_dict(obj["input"]) if obj.get("input") is not None else None, + "output": TransferOperationPreviewOutput.from_dict(obj["output"]) if obj.get("output") is not None else None, + "failure": TransferOperationFailure.from_dict(obj["failure"]) if obj.get("failure") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/transfer_operation_preview_output.py b/fireblocks_client/models/transfer_operation_preview_output.py new file mode 100644 index 00000000..1cdf4b5a --- /dev/null +++ b/fireblocks_client/models/transfer_operation_preview_output.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictBool, StrictFloat, StrictInt +from typing import Any, ClassVar, Dict, List, Union +from fireblocks_client.models.asset_amount import AssetAmount +from typing import Optional, Set +from typing_extensions import Self + +class TransferOperationPreviewOutput(BaseModel): + """ + TransferOperationPreviewOutput + """ # noqa: E501 + amount: AssetAmount + fee: AssetAmount + is_sign_required: StrictBool = Field(alias="isSignRequired") + time_seconds: Union[StrictFloat, StrictInt] = Field(alias="timeSeconds") + __properties: ClassVar[List[str]] = ["amount", "fee", "isSignRequired", "timeSeconds"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of TransferOperationPreviewOutput from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of amount + if self.amount: + _dict['amount'] = self.amount.to_dict() + # override the default output from pydantic by calling `to_dict()` of fee + if self.fee: + _dict['fee'] = self.fee.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of TransferOperationPreviewOutput from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "amount": AssetAmount.from_dict(obj["amount"]) if obj.get("amount") is not None else None, + "fee": AssetAmount.from_dict(obj["fee"]) if obj.get("fee") is not None else None, + "isSignRequired": obj.get("isSignRequired"), + "timeSeconds": obj.get("timeSeconds") + }) + return _obj + + diff --git a/fireblocks_client/models/transfer_operation_type.py b/fireblocks_client/models/transfer_operation_type.py new file mode 100644 index 00000000..bd377323 --- /dev/null +++ b/fireblocks_client/models/transfer_operation_type.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +from enum import Enum +from typing_extensions import Self + + +class TransferOperationType(str, Enum): + """ + TransferOperationType + """ + + """ + allowed enum values + """ + TRANSFER = 'TRANSFER' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of TransferOperationType from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/fireblocks_client/models/transfer_peer_path_sub_type.py b/fireblocks_client/models/transfer_peer_path_sub_type.py new file mode 100644 index 00000000..3ad39cb7 --- /dev/null +++ b/fireblocks_client/models/transfer_peer_path_sub_type.py @@ -0,0 +1,68 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +from enum import Enum +from typing_extensions import Self + + +class TransferPeerPathSubType(str, Enum): + """ + TransferPeerPathSubType + """ + + """ + allowed enum values + """ + BINANCE = 'BINANCE' + BINANCEUS = 'BINANCEUS' + BITFINEX = 'BITFINEX' + BITHUMB = 'BITHUMB' + BITMEX = 'BITMEX' + BITSO = 'BITSO' + BITSTAMP = 'BITSTAMP' + BITTREX = 'BITTREX' + BLINC = 'BLINC' + BYBIT = 'BYBIT' + CIRCLE = 'CIRCLE' + COINBASEEXCHANGE = 'COINBASEEXCHANGE' + COINBASEPRO = 'COINBASEPRO' + COINMETRO = 'COINMETRO' + COINSPRO = 'COINSPRO' + CRYPTOCOM = 'CRYPTOCOM' + DERIBIT = 'DERIBIT' + GEMINI = 'GEMINI' + HITBTC = 'HITBTC' + HUOBI = 'HUOBI' + INDEPENDENTRESERVE = 'INDEPENDENTRESERVE' + KORBIT = 'KORBIT' + KRAKEN = 'KRAKEN' + KRAKENINTL = 'KRAKENINTL' + KUCOIN = 'KUCOIN' + LIQUID = 'LIQUID' + OKCOIN = 'OKCOIN' + OKEX = 'OKEX' + PAXOS = 'PAXOS' + POLONIEX = 'POLONIEX' + EXTERNAL = 'External' + INTERNAL = 'Internal' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of TransferPeerPathSubType from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/fireblocks_client/models/transfer_peer_path_type.py b/fireblocks_client/models/transfer_peer_path_type.py new file mode 100644 index 00000000..59701816 --- /dev/null +++ b/fireblocks_client/models/transfer_peer_path_type.py @@ -0,0 +1,48 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +from enum import Enum +from typing_extensions import Self + + +class TransferPeerPathType(str, Enum): + """ + TransferPeerPathType + """ + + """ + allowed enum values + """ + VAULT_ACCOUNT = 'VAULT_ACCOUNT' + EXCHANGE_ACCOUNT = 'EXCHANGE_ACCOUNT' + INTERNAL_WALLET = 'INTERNAL_WALLET' + EXTERNAL_WALLET = 'EXTERNAL_WALLET' + CONTRACT = 'CONTRACT' + NETWORK_CONNECTION = 'NETWORK_CONNECTION' + FIAT_ACCOUNT = 'FIAT_ACCOUNT' + COMPOUND = 'COMPOUND' + GAS_STATION = 'GAS_STATION' + ONE_TIME_ADDRESS = 'ONE_TIME_ADDRESS' + UNKNOWN = 'UNKNOWN' + END_USER_WALLET = 'END_USER_WALLET' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of TransferPeerPathType from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/fireblocks_client/models/transfer_validation_failure.py b/fireblocks_client/models/transfer_validation_failure.py new file mode 100644 index 00000000..b1235dd9 --- /dev/null +++ b/fireblocks_client/models/transfer_validation_failure.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class TransferValidationFailure(BaseModel): + """ + TransferValidationFailure + """ # noqa: E501 + reason: StrictStr + data: Optional[Dict[str, Any]] = None + __properties: ClassVar[List[str]] = ["reason", "data"] + + @field_validator('reason') + def reason_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['ACCOUNT_NOT_FOUND', 'ACCOUNT_TYPE_NOT_SUPPORTED', 'INSUFFICIENT_BALANCE', 'ASSET_NOT_FOUND', 'ASSETS_CONTINUITY_MISMATCH', 'EXCHANGE_BASKETS_MISMATCH', 'ACCOUNTS_CONTINUITY_MISMATCH', 'ONE_TIME_ADDRESS_CONTINUITY_NOT_ALLOWED', 'EQUAL_ACCOUNTS_NOT_ALLOWED', 'EQUAL_ASSETS_NOT_ALLOWED', 'INVALID_AMOUNT', 'UNMANAGED_WALLET_AS_SOURCE_NOT_ALLOWED', 'MANAGED_OPERATION_PARAMS_INVALID_SCHEMA']): + raise ValueError("must be one of enum values ('ACCOUNT_NOT_FOUND', 'ACCOUNT_TYPE_NOT_SUPPORTED', 'INSUFFICIENT_BALANCE', 'ASSET_NOT_FOUND', 'ASSETS_CONTINUITY_MISMATCH', 'EXCHANGE_BASKETS_MISMATCH', 'ACCOUNTS_CONTINUITY_MISMATCH', 'ONE_TIME_ADDRESS_CONTINUITY_NOT_ALLOWED', 'EQUAL_ACCOUNTS_NOT_ALLOWED', 'EQUAL_ASSETS_NOT_ALLOWED', 'INVALID_AMOUNT', 'UNMANAGED_WALLET_AS_SOURCE_NOT_ALLOWED', 'MANAGED_OPERATION_PARAMS_INVALID_SCHEMA')") + return value + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of TransferValidationFailure from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of TransferValidationFailure from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "reason": obj.get("reason"), + "data": obj.get("data") + }) + return _obj + + diff --git a/fireblocks_client/models/travel_rule_address.py b/fireblocks_client/models/travel_rule_address.py new file mode 100644 index 00000000..a53793d1 --- /dev/null +++ b/fireblocks_client/models/travel_rule_address.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class TravelRuleAddress(BaseModel): + """ + TravelRuleAddress + """ # noqa: E501 + street: StrictStr = Field(description="Street address") + city: StrictStr = Field(description="City") + state: StrictStr = Field(description="State or province") + postal_code: StrictStr = Field(description="Postal or ZIP code", alias="postalCode") + __properties: ClassVar[List[str]] = ["street", "city", "state", "postalCode"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of TravelRuleAddress from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of TravelRuleAddress from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "street": obj.get("street"), + "city": obj.get("city"), + "state": obj.get("state"), + "postalCode": obj.get("postalCode") + }) + return _obj + + diff --git a/fireblocks_client/models/travel_rule_create_transaction_request.py b/fireblocks_client/models/travel_rule_create_transaction_request.py new file mode 100644 index 00000000..93113c6b --- /dev/null +++ b/fireblocks_client/models/travel_rule_create_transaction_request.py @@ -0,0 +1,133 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.travel_rule_ownership_proof import TravelRuleOwnershipProof +from fireblocks_client.models.travel_rule_pii_ivms import TravelRulePiiIVMS +from fireblocks_client.models.travel_rule_transaction_blockchain_info import TravelRuleTransactionBlockchainInfo +from typing import Optional, Set +from typing_extensions import Self + +class TravelRuleCreateTransactionRequest(BaseModel): + """ + TravelRuleCreateTransactionRequest + """ # noqa: E501 + originator_vas_pdid: Optional[StrictStr] = Field(default=None, description="The VASP ID of the transaction originator", alias="originatorVASPdid") + beneficiary_vas_pdid: Optional[StrictStr] = Field(default=None, description="The VASP ID of the transaction beneficiary", alias="beneficiaryVASPdid") + beneficiary_vas_pname: Optional[StrictStr] = Field(default=None, description="The name of the VASP acting as the beneficiary", alias="beneficiaryVASPname") + transaction_blockchain_info: Optional[TravelRuleTransactionBlockchainInfo] = Field(default=None, description="Information about the blockchain transaction", alias="transactionBlockchainInfo") + originator: TravelRulePiiIVMS = Field(description="Information about the originator of the transaction") + beneficiary: TravelRulePiiIVMS = Field(description="Information about the beneficiary of the transaction") + encrypted: Optional[StrictStr] = Field(default=None, description="Encrypted data related to the transaction") + protocol: Optional[StrictStr] = Field(default=None, description="The protocol used to perform the travel rule") + skip_beneficiary_data_validation: Optional[StrictBool] = Field(default=None, description="Whether to skip validation of beneficiary data", alias="skipBeneficiaryDataValidation") + travel_rule_behavior: Optional[StrictBool] = Field(default=None, description="Whether to check if the transaction is a TRAVEL_RULE in the beneficiary VASP's jurisdiction", alias="travelRuleBehavior") + originator_proof: Optional[TravelRuleOwnershipProof] = Field(default=None, description="Ownership proof related to the originator of the transaction", alias="originatorProof") + beneficiary_proof: Optional[TravelRuleOwnershipProof] = Field(default=None, description="Ownership proof related to the beneficiary of the transaction", alias="beneficiaryProof") + pii: Optional[TravelRulePiiIVMS] = Field(default=None, description="Personal identifiable information related to the transaction") + __properties: ClassVar[List[str]] = ["originatorVASPdid", "beneficiaryVASPdid", "beneficiaryVASPname", "transactionBlockchainInfo", "originator", "beneficiary", "encrypted", "protocol", "skipBeneficiaryDataValidation", "travelRuleBehavior", "originatorProof", "beneficiaryProof", "pii"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of TravelRuleCreateTransactionRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of transaction_blockchain_info + if self.transaction_blockchain_info: + _dict['transactionBlockchainInfo'] = self.transaction_blockchain_info.to_dict() + # override the default output from pydantic by calling `to_dict()` of originator + if self.originator: + _dict['originator'] = self.originator.to_dict() + # override the default output from pydantic by calling `to_dict()` of beneficiary + if self.beneficiary: + _dict['beneficiary'] = self.beneficiary.to_dict() + # override the default output from pydantic by calling `to_dict()` of originator_proof + if self.originator_proof: + _dict['originatorProof'] = self.originator_proof.to_dict() + # override the default output from pydantic by calling `to_dict()` of beneficiary_proof + if self.beneficiary_proof: + _dict['beneficiaryProof'] = self.beneficiary_proof.to_dict() + # override the default output from pydantic by calling `to_dict()` of pii + if self.pii: + _dict['pii'] = self.pii.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of TravelRuleCreateTransactionRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "originatorVASPdid": obj.get("originatorVASPdid"), + "beneficiaryVASPdid": obj.get("beneficiaryVASPdid"), + "beneficiaryVASPname": obj.get("beneficiaryVASPname"), + "transactionBlockchainInfo": TravelRuleTransactionBlockchainInfo.from_dict(obj["transactionBlockchainInfo"]) if obj.get("transactionBlockchainInfo") is not None else None, + "originator": TravelRulePiiIVMS.from_dict(obj["originator"]) if obj.get("originator") is not None else None, + "beneficiary": TravelRulePiiIVMS.from_dict(obj["beneficiary"]) if obj.get("beneficiary") is not None else None, + "encrypted": obj.get("encrypted"), + "protocol": obj.get("protocol"), + "skipBeneficiaryDataValidation": obj.get("skipBeneficiaryDataValidation"), + "travelRuleBehavior": obj.get("travelRuleBehavior"), + "originatorProof": TravelRuleOwnershipProof.from_dict(obj["originatorProof"]) if obj.get("originatorProof") is not None else None, + "beneficiaryProof": TravelRuleOwnershipProof.from_dict(obj["beneficiaryProof"]) if obj.get("beneficiaryProof") is not None else None, + "pii": TravelRulePiiIVMS.from_dict(obj["pii"]) if obj.get("pii") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/travel_rule_get_all_vasps_response.py b/fireblocks_client/models/travel_rule_get_all_vasps_response.py new file mode 100644 index 00000000..fca62040 --- /dev/null +++ b/fireblocks_client/models/travel_rule_get_all_vasps_response.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List +from fireblocks_client.models.travel_rule_vasp import TravelRuleVASP +from typing import Optional, Set +from typing_extensions import Self + +class TravelRuleGetAllVASPsResponse(BaseModel): + """ + TravelRuleGetAllVASPsResponse + """ # noqa: E501 + vasps: List[TravelRuleVASP] + __properties: ClassVar[List[str]] = ["vasps"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of TravelRuleGetAllVASPsResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in vasps (list) + _items = [] + if self.vasps: + for _item in self.vasps: + if _item: + _items.append(_item.to_dict()) + _dict['vasps'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of TravelRuleGetAllVASPsResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "vasps": [TravelRuleVASP.from_dict(_item) for _item in obj["vasps"]] if obj.get("vasps") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/travel_rule_issuer.py b/fireblocks_client/models/travel_rule_issuer.py new file mode 100644 index 00000000..5083314b --- /dev/null +++ b/fireblocks_client/models/travel_rule_issuer.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class TravelRuleIssuer(BaseModel): + """ + TravelRuleIssuer + """ # noqa: E501 + issuer_did: StrictStr = Field(alias="issuerDid") + __properties: ClassVar[List[str]] = ["issuerDid"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of TravelRuleIssuer from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of TravelRuleIssuer from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "issuerDid": obj.get("issuerDid") + }) + return _obj + + diff --git a/fireblocks_client/models/travel_rule_issuers.py b/fireblocks_client/models/travel_rule_issuers.py new file mode 100644 index 00000000..5f9abb24 --- /dev/null +++ b/fireblocks_client/models/travel_rule_issuers.py @@ -0,0 +1,157 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List +from fireblocks_client.models.travel_rule_issuer import TravelRuleIssuer +from typing import Optional, Set +from typing_extensions import Self + +class TravelRuleIssuers(BaseModel): + """ + TravelRuleIssuers + """ # noqa: E501 + year_founded: TravelRuleIssuer = Field(alias="yearFounded") + is_regulated: TravelRuleIssuer = Field(alias="isRegulated") + regulatory_authorities: TravelRuleIssuer = Field(alias="regulatoryAuthorities") + name: TravelRuleIssuer + logo: TravelRuleIssuer + website: TravelRuleIssuer + legal_name: TravelRuleIssuer = Field(alias="legalName") + legal_structure: TravelRuleIssuer = Field(alias="legalStructure") + incorporation_country: TravelRuleIssuer = Field(alias="incorporationCountry") + business_number: TravelRuleIssuer = Field(alias="businessNumber") + address_line1: TravelRuleIssuer = Field(alias="addressLine1") + city: TravelRuleIssuer + country: TravelRuleIssuer + description: TravelRuleIssuer + __properties: ClassVar[List[str]] = ["yearFounded", "isRegulated", "regulatoryAuthorities", "name", "logo", "website", "legalName", "legalStructure", "incorporationCountry", "businessNumber", "addressLine1", "city", "country", "description"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of TravelRuleIssuers from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of year_founded + if self.year_founded: + _dict['yearFounded'] = self.year_founded.to_dict() + # override the default output from pydantic by calling `to_dict()` of is_regulated + if self.is_regulated: + _dict['isRegulated'] = self.is_regulated.to_dict() + # override the default output from pydantic by calling `to_dict()` of regulatory_authorities + if self.regulatory_authorities: + _dict['regulatoryAuthorities'] = self.regulatory_authorities.to_dict() + # override the default output from pydantic by calling `to_dict()` of name + if self.name: + _dict['name'] = self.name.to_dict() + # override the default output from pydantic by calling `to_dict()` of logo + if self.logo: + _dict['logo'] = self.logo.to_dict() + # override the default output from pydantic by calling `to_dict()` of website + if self.website: + _dict['website'] = self.website.to_dict() + # override the default output from pydantic by calling `to_dict()` of legal_name + if self.legal_name: + _dict['legalName'] = self.legal_name.to_dict() + # override the default output from pydantic by calling `to_dict()` of legal_structure + if self.legal_structure: + _dict['legalStructure'] = self.legal_structure.to_dict() + # override the default output from pydantic by calling `to_dict()` of incorporation_country + if self.incorporation_country: + _dict['incorporationCountry'] = self.incorporation_country.to_dict() + # override the default output from pydantic by calling `to_dict()` of business_number + if self.business_number: + _dict['businessNumber'] = self.business_number.to_dict() + # override the default output from pydantic by calling `to_dict()` of address_line1 + if self.address_line1: + _dict['addressLine1'] = self.address_line1.to_dict() + # override the default output from pydantic by calling `to_dict()` of city + if self.city: + _dict['city'] = self.city.to_dict() + # override the default output from pydantic by calling `to_dict()` of country + if self.country: + _dict['country'] = self.country.to_dict() + # override the default output from pydantic by calling `to_dict()` of description + if self.description: + _dict['description'] = self.description.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of TravelRuleIssuers from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "yearFounded": TravelRuleIssuer.from_dict(obj["yearFounded"]) if obj.get("yearFounded") is not None else None, + "isRegulated": TravelRuleIssuer.from_dict(obj["isRegulated"]) if obj.get("isRegulated") is not None else None, + "regulatoryAuthorities": TravelRuleIssuer.from_dict(obj["regulatoryAuthorities"]) if obj.get("regulatoryAuthorities") is not None else None, + "name": TravelRuleIssuer.from_dict(obj["name"]) if obj.get("name") is not None else None, + "logo": TravelRuleIssuer.from_dict(obj["logo"]) if obj.get("logo") is not None else None, + "website": TravelRuleIssuer.from_dict(obj["website"]) if obj.get("website") is not None else None, + "legalName": TravelRuleIssuer.from_dict(obj["legalName"]) if obj.get("legalName") is not None else None, + "legalStructure": TravelRuleIssuer.from_dict(obj["legalStructure"]) if obj.get("legalStructure") is not None else None, + "incorporationCountry": TravelRuleIssuer.from_dict(obj["incorporationCountry"]) if obj.get("incorporationCountry") is not None else None, + "businessNumber": TravelRuleIssuer.from_dict(obj["businessNumber"]) if obj.get("businessNumber") is not None else None, + "addressLine1": TravelRuleIssuer.from_dict(obj["addressLine1"]) if obj.get("addressLine1") is not None else None, + "city": TravelRuleIssuer.from_dict(obj["city"]) if obj.get("city") is not None else None, + "country": TravelRuleIssuer.from_dict(obj["country"]) if obj.get("country") is not None else None, + "description": TravelRuleIssuer.from_dict(obj["description"]) if obj.get("description") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/travel_rule_ownership_proof.py b/fireblocks_client/models/travel_rule_ownership_proof.py new file mode 100644 index 00000000..13eb73cd --- /dev/null +++ b/fireblocks_client/models/travel_rule_ownership_proof.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class TravelRuleOwnershipProof(BaseModel): + """ + TravelRuleOwnershipProof + """ # noqa: E501 + type: Optional[StrictStr] = Field(default=None, description="Type of ownership proof") + proof: Optional[StrictStr] = Field(default=None, description="Identification number") + __properties: ClassVar[List[str]] = ["type", "proof"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of TravelRuleOwnershipProof from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of TravelRuleOwnershipProof from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "type": obj.get("type"), + "proof": obj.get("proof") + }) + return _obj + + diff --git a/fireblocks_client/models/travel_rule_pii_ivms.py b/fireblocks_client/models/travel_rule_pii_ivms.py new file mode 100644 index 00000000..32d9c900 --- /dev/null +++ b/fireblocks_client/models/travel_rule_pii_ivms.py @@ -0,0 +1,104 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class TravelRulePiiIVMS(BaseModel): + """ + TravelRulePiiIVMS + """ # noqa: E501 + full_name: Optional[StrictStr] = Field(default=None, alias="fullName") + date_of_birth: Optional[StrictStr] = Field(default=None, alias="dateOfBirth") + place_of_birth: Optional[StrictStr] = Field(default=None, alias="placeOfBirth") + address: Optional[StrictStr] = None + identification_number: Optional[StrictStr] = Field(default=None, alias="identificationNumber") + nationality: Optional[StrictStr] = None + country_of_residence: Optional[StrictStr] = Field(default=None, alias="countryOfResidence") + tax_identification_number: Optional[StrictStr] = Field(default=None, alias="taxIdentificationNumber") + customer_number: Optional[StrictStr] = Field(default=None, alias="customerNumber") + __properties: ClassVar[List[str]] = ["fullName", "dateOfBirth", "placeOfBirth", "address", "identificationNumber", "nationality", "countryOfResidence", "taxIdentificationNumber", "customerNumber"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of TravelRulePiiIVMS from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of TravelRulePiiIVMS from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "fullName": obj.get("fullName"), + "dateOfBirth": obj.get("dateOfBirth"), + "placeOfBirth": obj.get("placeOfBirth"), + "address": obj.get("address"), + "identificationNumber": obj.get("identificationNumber"), + "nationality": obj.get("nationality"), + "countryOfResidence": obj.get("countryOfResidence"), + "taxIdentificationNumber": obj.get("taxIdentificationNumber"), + "customerNumber": obj.get("customerNumber") + }) + return _obj + + diff --git a/fireblocks_client/models/travel_rule_policy_rule_response.py b/fireblocks_client/models/travel_rule_policy_rule_response.py new file mode 100644 index 00000000..2294147b --- /dev/null +++ b/fireblocks_client/models/travel_rule_policy_rule_response.py @@ -0,0 +1,121 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictFloat, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class TravelRulePolicyRuleResponse(BaseModel): + """ + TravelRulePolicyRuleResponse + """ # noqa: E501 + source_type: Optional[StrictStr] = Field(default=None, alias="sourceType") + source_sub_type: Optional[StrictStr] = Field(default=None, alias="sourceSubType") + dest_type: Optional[StrictStr] = Field(default=None, alias="destType") + dest_sub_type: Optional[StrictStr] = Field(default=None, alias="destSubType") + dest_address: Optional[StrictStr] = Field(default=None, alias="destAddress") + source_id: Optional[StrictStr] = Field(default=None, alias="sourceId") + dest_id: Optional[StrictStr] = Field(default=None, alias="destId") + asset: Optional[StrictStr] = None + base_asset: Optional[StrictStr] = Field(default=None, alias="baseAsset") + amount: Optional[Union[StrictFloat, StrictInt]] = None + amount_usd: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="amountUSD") + network_protocol: Optional[StrictStr] = Field(default=None, alias="networkProtocol") + operation: Optional[StrictStr] = None + action: StrictStr + __properties: ClassVar[List[str]] = ["sourceType", "sourceSubType", "destType", "destSubType", "destAddress", "sourceId", "destId", "asset", "baseAsset", "amount", "amountUSD", "networkProtocol", "operation", "action"] + + @field_validator('action') + def action_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['SCREEN', 'PASS', 'FREEZE']): + raise ValueError("must be one of enum values ('SCREEN', 'PASS', 'FREEZE')") + return value + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of TravelRulePolicyRuleResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of TravelRulePolicyRuleResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "sourceType": obj.get("sourceType"), + "sourceSubType": obj.get("sourceSubType"), + "destType": obj.get("destType"), + "destSubType": obj.get("destSubType"), + "destAddress": obj.get("destAddress"), + "sourceId": obj.get("sourceId"), + "destId": obj.get("destId"), + "asset": obj.get("asset"), + "baseAsset": obj.get("baseAsset"), + "amount": obj.get("amount"), + "amountUSD": obj.get("amountUSD"), + "networkProtocol": obj.get("networkProtocol"), + "operation": obj.get("operation"), + "action": obj.get("action") + }) + return _obj + + diff --git a/fireblocks_client/models/travel_rule_transaction_blockchain_info.py b/fireblocks_client/models/travel_rule_transaction_blockchain_info.py new file mode 100644 index 00000000..cfbb23aa --- /dev/null +++ b/fireblocks_client/models/travel_rule_transaction_blockchain_info.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class TravelRuleTransactionBlockchainInfo(BaseModel): + """ + TravelRuleTransactionBlockchainInfo + """ # noqa: E501 + tx_hash: Optional[StrictStr] = Field(default=None, alias="txHash") + origin: Optional[StrictStr] = None + destination: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["txHash", "origin", "destination"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of TravelRuleTransactionBlockchainInfo from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of TravelRuleTransactionBlockchainInfo from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "txHash": obj.get("txHash"), + "origin": obj.get("origin"), + "destination": obj.get("destination") + }) + return _obj + + diff --git a/fireblocks_client/models/travel_rule_update_vasp_details.py b/fireblocks_client/models/travel_rule_update_vasp_details.py new file mode 100644 index 00000000..13922a08 --- /dev/null +++ b/fireblocks_client/models/travel_rule_update_vasp_details.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class TravelRuleUpdateVASPDetails(BaseModel): + """ + TravelRuleUpdateVASPDetails + """ # noqa: E501 + did: StrictStr = Field(description="The decentralized identifier of the VASP") + pii_didkey: StrictStr = Field(description="The PII DID key of the VASP") + __properties: ClassVar[List[str]] = ["did", "pii_didkey"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of TravelRuleUpdateVASPDetails from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of TravelRuleUpdateVASPDetails from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "did": obj.get("did"), + "pii_didkey": obj.get("pii_didkey") + }) + return _obj + + diff --git a/fireblocks_client/models/travel_rule_validate_full_transaction_request.py b/fireblocks_client/models/travel_rule_validate_full_transaction_request.py new file mode 100644 index 00000000..08aecc43 --- /dev/null +++ b/fireblocks_client/models/travel_rule_validate_full_transaction_request.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.travel_rule_ownership_proof import TravelRuleOwnershipProof +from fireblocks_client.models.travel_rule_pii_ivms import TravelRulePiiIVMS +from fireblocks_client.models.travel_rule_transaction_blockchain_info import TravelRuleTransactionBlockchainInfo +from typing import Optional, Set +from typing_extensions import Self + +class TravelRuleValidateFullTransactionRequest(BaseModel): + """ + TravelRuleValidateFullTransactionRequest + """ # noqa: E501 + transaction_asset: Optional[StrictStr] = Field(default=None, description="The asset involved in the transaction", alias="transactionAsset") + transaction_amount: Optional[StrictStr] = Field(default=None, description="The amount of the transaction", alias="transactionAmount") + originator_did: Optional[StrictStr] = Field(default=None, description="The DID of the transaction originator", alias="originatorDid") + beneficiary_did: Optional[StrictStr] = Field(default=None, description="The DID of the transaction beneficiary", alias="beneficiaryDid") + originator_vas_pdid: Optional[StrictStr] = Field(default=None, description="The VASP ID of the transaction originator", alias="originatorVASPdid") + beneficiary_vas_pdid: Optional[StrictStr] = Field(default=None, description="The VASP ID of the transaction beneficiary", alias="beneficiaryVASPdid") + beneficiary_vas_pname: Optional[StrictStr] = Field(default=None, description="The name of the VASP acting as the beneficiary", alias="beneficiaryVASPname") + transaction_blockchain_info: Optional[TravelRuleTransactionBlockchainInfo] = Field(default=None, description="Information about the blockchain transaction", alias="transactionBlockchainInfo") + originator: TravelRulePiiIVMS = Field(description="Information about the originator of the transaction") + beneficiary: TravelRulePiiIVMS = Field(description="Information about the beneficiary of the transaction") + encrypted: Optional[StrictStr] = Field(default=None, description="Encrypted data related to the transaction") + protocol: Optional[StrictStr] = Field(default=None, description="The protocol used to perform the travel rule") + notification_email: Optional[StrictStr] = Field(default=None, description="The email address where a notification should be sent upon completion of the travel rule", alias="notificationEmail") + skip_beneficiary_data_validation: Optional[StrictBool] = Field(default=None, description="Whether to skip validation of beneficiary data", alias="skipBeneficiaryDataValidation") + travel_rule_behavior: Optional[StrictBool] = Field(default=None, description="Whether to check if the transaction is a TRAVEL_RULE in the beneficiary VASP's jurisdiction", alias="travelRuleBehavior") + originator_proof: Optional[TravelRuleOwnershipProof] = Field(default=None, description="Ownership proof related to the originator of the transaction", alias="originatorProof") + beneficiary_proof: Optional[TravelRuleOwnershipProof] = Field(default=None, description="Ownership proof related to the beneficiary of the transaction", alias="beneficiaryProof") + pii: Optional[TravelRulePiiIVMS] = Field(default=None, description="Personal identifiable information related to the transaction") + __properties: ClassVar[List[str]] = ["transactionAsset", "transactionAmount", "originatorDid", "beneficiaryDid", "originatorVASPdid", "beneficiaryVASPdid", "beneficiaryVASPname", "transactionBlockchainInfo", "originator", "beneficiary", "encrypted", "protocol", "notificationEmail", "skipBeneficiaryDataValidation", "travelRuleBehavior", "originatorProof", "beneficiaryProof", "pii"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of TravelRuleValidateFullTransactionRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of transaction_blockchain_info + if self.transaction_blockchain_info: + _dict['transactionBlockchainInfo'] = self.transaction_blockchain_info.to_dict() + # override the default output from pydantic by calling `to_dict()` of originator + if self.originator: + _dict['originator'] = self.originator.to_dict() + # override the default output from pydantic by calling `to_dict()` of beneficiary + if self.beneficiary: + _dict['beneficiary'] = self.beneficiary.to_dict() + # override the default output from pydantic by calling `to_dict()` of originator_proof + if self.originator_proof: + _dict['originatorProof'] = self.originator_proof.to_dict() + # override the default output from pydantic by calling `to_dict()` of beneficiary_proof + if self.beneficiary_proof: + _dict['beneficiaryProof'] = self.beneficiary_proof.to_dict() + # override the default output from pydantic by calling `to_dict()` of pii + if self.pii: + _dict['pii'] = self.pii.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of TravelRuleValidateFullTransactionRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "transactionAsset": obj.get("transactionAsset"), + "transactionAmount": obj.get("transactionAmount"), + "originatorDid": obj.get("originatorDid"), + "beneficiaryDid": obj.get("beneficiaryDid"), + "originatorVASPdid": obj.get("originatorVASPdid"), + "beneficiaryVASPdid": obj.get("beneficiaryVASPdid"), + "beneficiaryVASPname": obj.get("beneficiaryVASPname"), + "transactionBlockchainInfo": TravelRuleTransactionBlockchainInfo.from_dict(obj["transactionBlockchainInfo"]) if obj.get("transactionBlockchainInfo") is not None else None, + "originator": TravelRulePiiIVMS.from_dict(obj["originator"]) if obj.get("originator") is not None else None, + "beneficiary": TravelRulePiiIVMS.from_dict(obj["beneficiary"]) if obj.get("beneficiary") is not None else None, + "encrypted": obj.get("encrypted"), + "protocol": obj.get("protocol"), + "notificationEmail": obj.get("notificationEmail"), + "skipBeneficiaryDataValidation": obj.get("skipBeneficiaryDataValidation"), + "travelRuleBehavior": obj.get("travelRuleBehavior"), + "originatorProof": TravelRuleOwnershipProof.from_dict(obj["originatorProof"]) if obj.get("originatorProof") is not None else None, + "beneficiaryProof": TravelRuleOwnershipProof.from_dict(obj["beneficiaryProof"]) if obj.get("beneficiaryProof") is not None else None, + "pii": TravelRulePiiIVMS.from_dict(obj["pii"]) if obj.get("pii") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/travel_rule_validate_transaction_request.py b/fireblocks_client/models/travel_rule_validate_transaction_request.py new file mode 100644 index 00000000..f68a1386 --- /dev/null +++ b/fireblocks_client/models/travel_rule_validate_transaction_request.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.travel_rule_address import TravelRuleAddress +from typing import Optional, Set +from typing_extensions import Self + +class TravelRuleValidateTransactionRequest(BaseModel): + """ + TravelRuleValidateTransactionRequest + """ # noqa: E501 + transaction_asset: StrictStr = Field(description="Transaction asset symbol BTC,ETH)", alias="transactionAsset") + destination: StrictStr = Field(description="Transaction destination address") + transaction_amount: StrictStr = Field(description="Transaction amount in the transaction asset", alias="transactionAmount") + originator_vas_pdid: StrictStr = Field(description="This is the identifier assigned to your VASP", alias="originatorVASPdid") + originator_equals_beneficiary: StrictBool = Field(description="\"True\" if the originator and beneficiary is the same person and you therefore do not need to collect any information. \"False\" if it is a third-party transfer.", alias="originatorEqualsBeneficiary") + travel_rule_behavior: Optional[StrictBool] = Field(default=None, description="This will also check if the transaction is a TRAVEL_RULE in the beneficiary VASP's jurisdiction", alias="travelRuleBehavior") + beneficiary_vas_pdid: Optional[StrictStr] = Field(default=None, description="This is the identifier assigned to the VASP the funds are being sent to", alias="beneficiaryVASPdid") + beneficiary_vas_pname: Optional[StrictStr] = Field(default=None, description="Beneficiary VASP name", alias="beneficiaryVASPname") + beneficiary_name: Optional[StrictStr] = Field(default=None, description="Beneficiary name", alias="beneficiaryName") + beneficiary_account_number: Optional[StrictStr] = Field(default=None, description="Beneficiary name", alias="beneficiaryAccountNumber") + beneficiary_address: Optional[TravelRuleAddress] = Field(default=None, description="Beneficiary name", alias="beneficiaryAddress") + __properties: ClassVar[List[str]] = ["transactionAsset", "destination", "transactionAmount", "originatorVASPdid", "originatorEqualsBeneficiary", "travelRuleBehavior", "beneficiaryVASPdid", "beneficiaryVASPname", "beneficiaryName", "beneficiaryAccountNumber", "beneficiaryAddress"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of TravelRuleValidateTransactionRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of beneficiary_address + if self.beneficiary_address: + _dict['beneficiaryAddress'] = self.beneficiary_address.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of TravelRuleValidateTransactionRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "transactionAsset": obj.get("transactionAsset"), + "destination": obj.get("destination"), + "transactionAmount": obj.get("transactionAmount"), + "originatorVASPdid": obj.get("originatorVASPdid"), + "originatorEqualsBeneficiary": obj.get("originatorEqualsBeneficiary"), + "travelRuleBehavior": obj.get("travelRuleBehavior"), + "beneficiaryVASPdid": obj.get("beneficiaryVASPdid"), + "beneficiaryVASPname": obj.get("beneficiaryVASPname"), + "beneficiaryName": obj.get("beneficiaryName"), + "beneficiaryAccountNumber": obj.get("beneficiaryAccountNumber"), + "beneficiaryAddress": TravelRuleAddress.from_dict(obj["beneficiaryAddress"]) if obj.get("beneficiaryAddress") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/travel_rule_validate_transaction_response.py b/fireblocks_client/models/travel_rule_validate_transaction_response.py new file mode 100644 index 00000000..9c663ea1 --- /dev/null +++ b/fireblocks_client/models/travel_rule_validate_transaction_response.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class TravelRuleValidateTransactionResponse(BaseModel): + """ + TravelRuleValidateTransactionResponse + """ # noqa: E501 + is_valid: StrictBool = Field(description="\"isValid\" will tell you if you have collected all the information needed for the travel rule data transfer. Once this field = \"true\", you can move on to the next step which is to transfer the front-end information to your back-end and perform Travel Rule Transaction create", alias="isValid") + type: StrictStr = Field(description="\"type\" will tell you if the virtual asset value converted to FIAT value of the withdrawal request is above (=TRAVELRULE) or below (=BELOW_THRESHOLD) the threshold in your jurisdiction. If it is to an unhosted wallet which does not require travel rule information to be sent and only collected, it will say NON_CUSTODIAL.") + beneficiary_address_type: StrictStr = Field(description="\"beneficiaryAddressType\" will tell you if your blockchain analytics provider or internal address book has been able to identify the wallet address.", alias="beneficiaryAddressType") + address_source: StrictStr = Field(description="\"addressSource\" will tell you if the address was found in your internal address book or identified by the blockchain analytics provider.", alias="addressSource") + beneficiary_vas_pdid: StrictStr = Field(description="The VASP DID of the beneficiary VASP", alias="beneficiaryVASPdid") + beneficiary_vas_pname: StrictStr = Field(description="\"beneficiaryVASPname\" will tell you the name of the VASP that has been identified as the owner of the wallet address. This name is used in a subsequent call to get its DID.", alias="beneficiaryVASPname") + warnings: List[StrictStr] = Field(description="\"errors/warnings\" will tell you what information about the beneficiary you need to collect from the sender.") + __properties: ClassVar[List[str]] = ["isValid", "type", "beneficiaryAddressType", "addressSource", "beneficiaryVASPdid", "beneficiaryVASPname", "warnings"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of TravelRuleValidateTransactionResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of TravelRuleValidateTransactionResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "isValid": obj.get("isValid"), + "type": obj.get("type"), + "beneficiaryAddressType": obj.get("beneficiaryAddressType"), + "addressSource": obj.get("addressSource"), + "beneficiaryVASPdid": obj.get("beneficiaryVASPdid"), + "beneficiaryVASPname": obj.get("beneficiaryVASPname"), + "warnings": obj.get("warnings") + }) + return _obj + + diff --git a/fireblocks_client/models/travel_rule_vasp.py b/fireblocks_client/models/travel_rule_vasp.py new file mode 100644 index 00000000..552d1873 --- /dev/null +++ b/fireblocks_client/models/travel_rule_vasp.py @@ -0,0 +1,182 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List +from fireblocks_client.models.travel_rule_issuers import TravelRuleIssuers +from typing import Optional, Set +from typing_extensions import Self + +class TravelRuleVASP(BaseModel): + """ + TravelRuleVASP + """ # noqa: E501 + did: StrictStr + name: StrictStr + verification_status: StrictStr = Field(alias="verificationStatus") + address_line1: StrictStr = Field(alias="addressLine1") + address_line2: StrictStr = Field(alias="addressLine2") + city: StrictStr + country: StrictStr + email_domains: StrictStr = Field(alias="emailDomains") + website: StrictStr + logo: StrictStr + legal_structure: StrictStr = Field(alias="legalStructure") + legal_name: StrictStr = Field(alias="legalName") + year_founded: StrictStr = Field(alias="yearFounded") + incorporation_country: StrictStr = Field(alias="incorporationCountry") + is_regulated: StrictStr = Field(alias="isRegulated") + other_names: StrictStr = Field(alias="otherNames") + identification_type: StrictStr = Field(alias="identificationType") + identification_country: StrictStr = Field(alias="identificationCountry") + business_number: StrictStr = Field(alias="businessNumber") + regulatory_authorities: StrictStr = Field(alias="regulatoryAuthorities") + jurisdictions: StrictStr + street: StrictStr + number: StrictStr + unit: StrictStr + post_code: StrictStr = Field(alias="postCode") + state: StrictStr + certificates: StrictStr + description: StrictStr + travel_rule_openvasp: StrictStr = Field(alias="travelRule_OPENVASP") + travel_rule_sygna: StrictStr = Field(alias="travelRule_SYGNA") + travel_rule_trisa: StrictStr = Field(alias="travelRule_TRISA") + travel_rule_trlight: StrictStr = Field(alias="travelRule_TRLIGHT") + travel_rule_email: StrictStr = Field(alias="travelRule_EMAIL") + travel_rule_trp: StrictStr = Field(alias="travelRule_TRP") + travel_rule_shyft: StrictStr = Field(alias="travelRule_SHYFT") + travel_rule_ustravelrulewg: StrictStr = Field(alias="travelRule_USTRAVELRULEWG") + created_at: StrictStr = Field(alias="createdAt") + created_by: StrictStr = Field(alias="createdBy") + updated_at: StrictStr = Field(alias="updatedAt") + updated_by: StrictStr = Field(alias="updatedBy") + last_sent_date: StrictStr = Field(alias="lastSentDate") + last_received_date: StrictStr = Field(alias="lastReceivedDate") + documents: StrictStr + has_admin: StrictBool = Field(alias="hasAdmin") + is_notifiable: StrictBool = Field(alias="isNotifiable") + issuers: TravelRuleIssuers + __properties: ClassVar[List[str]] = ["did", "name", "verificationStatus", "addressLine1", "addressLine2", "city", "country", "emailDomains", "website", "logo", "legalStructure", "legalName", "yearFounded", "incorporationCountry", "isRegulated", "otherNames", "identificationType", "identificationCountry", "businessNumber", "regulatoryAuthorities", "jurisdictions", "street", "number", "unit", "postCode", "state", "certificates", "description", "travelRule_OPENVASP", "travelRule_SYGNA", "travelRule_TRISA", "travelRule_TRLIGHT", "travelRule_EMAIL", "travelRule_TRP", "travelRule_SHYFT", "travelRule_USTRAVELRULEWG", "createdAt", "createdBy", "updatedAt", "updatedBy", "lastSentDate", "lastReceivedDate", "documents", "hasAdmin", "isNotifiable", "issuers"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of TravelRuleVASP from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of issuers + if self.issuers: + _dict['issuers'] = self.issuers.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of TravelRuleVASP from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "did": obj.get("did"), + "name": obj.get("name"), + "verificationStatus": obj.get("verificationStatus"), + "addressLine1": obj.get("addressLine1"), + "addressLine2": obj.get("addressLine2"), + "city": obj.get("city"), + "country": obj.get("country"), + "emailDomains": obj.get("emailDomains"), + "website": obj.get("website"), + "logo": obj.get("logo"), + "legalStructure": obj.get("legalStructure"), + "legalName": obj.get("legalName"), + "yearFounded": obj.get("yearFounded"), + "incorporationCountry": obj.get("incorporationCountry"), + "isRegulated": obj.get("isRegulated"), + "otherNames": obj.get("otherNames"), + "identificationType": obj.get("identificationType"), + "identificationCountry": obj.get("identificationCountry"), + "businessNumber": obj.get("businessNumber"), + "regulatoryAuthorities": obj.get("regulatoryAuthorities"), + "jurisdictions": obj.get("jurisdictions"), + "street": obj.get("street"), + "number": obj.get("number"), + "unit": obj.get("unit"), + "postCode": obj.get("postCode"), + "state": obj.get("state"), + "certificates": obj.get("certificates"), + "description": obj.get("description"), + "travelRule_OPENVASP": obj.get("travelRule_OPENVASP"), + "travelRule_SYGNA": obj.get("travelRule_SYGNA"), + "travelRule_TRISA": obj.get("travelRule_TRISA"), + "travelRule_TRLIGHT": obj.get("travelRule_TRLIGHT"), + "travelRule_EMAIL": obj.get("travelRule_EMAIL"), + "travelRule_TRP": obj.get("travelRule_TRP"), + "travelRule_SHYFT": obj.get("travelRule_SHYFT"), + "travelRule_USTRAVELRULEWG": obj.get("travelRule_USTRAVELRULEWG"), + "createdAt": obj.get("createdAt"), + "createdBy": obj.get("createdBy"), + "updatedAt": obj.get("updatedAt"), + "updatedBy": obj.get("updatedBy"), + "lastSentDate": obj.get("lastSentDate"), + "lastReceivedDate": obj.get("lastReceivedDate"), + "documents": obj.get("documents"), + "hasAdmin": obj.get("hasAdmin"), + "isNotifiable": obj.get("isNotifiable"), + "issuers": TravelRuleIssuers.from_dict(obj["issuers"]) if obj.get("issuers") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/unfreeze_transaction_response.py b/fireblocks_client/models/unfreeze_transaction_response.py new file mode 100644 index 00000000..ea31d756 --- /dev/null +++ b/fireblocks_client/models/unfreeze_transaction_response.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class UnfreezeTransactionResponse(BaseModel): + """ + UnfreezeTransactionResponse + """ # noqa: E501 + success: Optional[StrictBool] = None + __properties: ClassVar[List[str]] = ["success"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of UnfreezeTransactionResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of UnfreezeTransactionResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success") + }) + return _obj + + diff --git a/fireblocks_client/models/unmanaged_wallet.py b/fireblocks_client/models/unmanaged_wallet.py new file mode 100644 index 00000000..c61f4036 --- /dev/null +++ b/fireblocks_client/models/unmanaged_wallet.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.wallet_asset import WalletAsset +from typing import Optional, Set +from typing_extensions import Self + +class UnmanagedWallet(BaseModel): + """ + UnmanagedWallet + """ # noqa: E501 + id: StrictStr + name: StrictStr + customer_ref_id: Optional[StrictStr] = Field(default=None, alias="customerRefId") + assets: List[WalletAsset] + __properties: ClassVar[List[str]] = ["id", "name", "customerRefId", "assets"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of UnmanagedWallet from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in assets (list) + _items = [] + if self.assets: + for _item in self.assets: + if _item: + _items.append(_item.to_dict()) + _dict['assets'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of UnmanagedWallet from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "name": obj.get("name"), + "customerRefId": obj.get("customerRefId"), + "assets": [WalletAsset.from_dict(_item) for _item in obj["assets"]] if obj.get("assets") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/unspent_input.py b/fireblocks_client/models/unspent_input.py new file mode 100644 index 00000000..c247696d --- /dev/null +++ b/fireblocks_client/models/unspent_input.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class UnspentInput(BaseModel): + """ + UnspentInput + """ # noqa: E501 + tx_hash: Optional[StrictStr] = Field(default=None, alias="txHash") + index: Optional[Union[StrictFloat, StrictInt]] = None + __properties: ClassVar[List[str]] = ["txHash", "index"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of UnspentInput from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of UnspentInput from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "txHash": obj.get("txHash"), + "index": obj.get("index") + }) + return _obj + + diff --git a/fireblocks_client/models/unspent_inputs_response.py b/fireblocks_client/models/unspent_inputs_response.py new file mode 100644 index 00000000..e17dfebb --- /dev/null +++ b/fireblocks_client/models/unspent_inputs_response.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from fireblocks_client.models.unspent_input import UnspentInput +from typing import Optional, Set +from typing_extensions import Self + +class UnspentInputsResponse(BaseModel): + """ + UnspentInputsResponse + """ # noqa: E501 + input: Optional[UnspentInput] = None + address: Optional[StrictStr] = None + amount: Optional[StrictStr] = None + confirmations: Optional[Union[StrictFloat, StrictInt]] = None + status: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["input", "address", "amount", "confirmations", "status"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of UnspentInputsResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of input + if self.input: + _dict['input'] = self.input.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of UnspentInputsResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "input": UnspentInput.from_dict(obj["input"]) if obj.get("input") is not None else None, + "address": obj.get("address"), + "amount": obj.get("amount"), + "confirmations": obj.get("confirmations"), + "status": obj.get("status") + }) + return _obj + + diff --git a/fireblocks_client/models/unstake_request_dto.py b/fireblocks_client/models/unstake_request_dto.py new file mode 100644 index 00000000..ecacaf4d --- /dev/null +++ b/fireblocks_client/models/unstake_request_dto.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class UnstakeRequestDto(BaseModel): + """ + UnstakeRequestDto + """ # noqa: E501 + id: StrictStr = Field(description="id of position to unstake") + fee: Optional[StrictStr] = Field(default=None, description="Represents the fee for a transaction, which can be specified as a percentage value. Only one of fee/feeLevel is required.") + fee_level: Optional[StrictStr] = Field(default=None, description="Represents the fee level for a transaction, which can be set as slow, medium, or fast. Only one of fee/feeLevel is required.", alias="feeLevel") + tx_note: Optional[StrictStr] = Field(default=None, description="The note to associate with the transactions.", alias="txNote") + __properties: ClassVar[List[str]] = ["id", "fee", "feeLevel", "txNote"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of UnstakeRequestDto from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of UnstakeRequestDto from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "fee": obj.get("fee"), + "feeLevel": obj.get("feeLevel"), + "txNote": obj.get("txNote") + }) + return _obj + + diff --git a/fireblocks_client/models/update_token_ownership_status_dto.py b/fireblocks_client/models/update_token_ownership_status_dto.py new file mode 100644 index 00000000..88f3086e --- /dev/null +++ b/fireblocks_client/models/update_token_ownership_status_dto.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class UpdateTokenOwnershipStatusDto(BaseModel): + """ + UpdateTokenOwnershipStatusDto + """ # noqa: E501 + status: StrictStr + __properties: ClassVar[List[str]] = ["status"] + + @field_validator('status') + def status_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['LISTED', 'ARCHIVED']): + raise ValueError("must be one of enum values ('LISTED', 'ARCHIVED')") + return value + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of UpdateTokenOwnershipStatusDto from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of UpdateTokenOwnershipStatusDto from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "status": obj.get("status") + }) + return _obj + + diff --git a/fireblocks_client/models/update_vault_account_asset_address_request.py b/fireblocks_client/models/update_vault_account_asset_address_request.py new file mode 100644 index 00000000..7087e653 --- /dev/null +++ b/fireblocks_client/models/update_vault_account_asset_address_request.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class UpdateVaultAccountAssetAddressRequest(BaseModel): + """ + UpdateVaultAccountAssetAddressRequest + """ # noqa: E501 + description: Optional[StrictStr] = Field(default=None, description="The address description") + __properties: ClassVar[List[str]] = ["description"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of UpdateVaultAccountAssetAddressRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of UpdateVaultAccountAssetAddressRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "description": obj.get("description") + }) + return _obj + + diff --git a/fireblocks_client/models/update_vault_account_request.py b/fireblocks_client/models/update_vault_account_request.py new file mode 100644 index 00000000..b20a190c --- /dev/null +++ b/fireblocks_client/models/update_vault_account_request.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class UpdateVaultAccountRequest(BaseModel): + """ + UpdateVaultAccountRequest + """ # noqa: E501 + name: Optional[StrictStr] = Field(default=None, description="Account Name") + __properties: ClassVar[List[str]] = ["name"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of UpdateVaultAccountRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of UpdateVaultAccountRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name") + }) + return _obj + + diff --git a/fireblocks_client/models/user_group_create_request.py b/fireblocks_client/models/user_group_create_request.py new file mode 100644 index 00000000..22407833 --- /dev/null +++ b/fireblocks_client/models/user_group_create_request.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class UserGroupCreateRequest(BaseModel): + """ + UserGroupCreateRequest + """ # noqa: E501 + group_name: Optional[StrictStr] = Field(default=None, alias="groupName") + member_ids: Optional[List[StrictStr]] = Field(default=None, alias="memberIds") + __properties: ClassVar[List[str]] = ["groupName", "memberIds"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of UserGroupCreateRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of UserGroupCreateRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "groupName": obj.get("groupName"), + "memberIds": obj.get("memberIds") + }) + return _obj + + diff --git a/fireblocks_client/models/user_group_create_response.py b/fireblocks_client/models/user_group_create_response.py new file mode 100644 index 00000000..c92e5c27 --- /dev/null +++ b/fireblocks_client/models/user_group_create_response.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class UserGroupCreateResponse(BaseModel): + """ + UserGroupCreateResponse + """ # noqa: E501 + name: Optional[StrictStr] = None + id: Optional[StrictStr] = None + member_ids: Optional[List[StrictStr]] = Field(default=None, alias="memberIds") + status: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["name", "id", "memberIds", "status"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of UserGroupCreateResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of UserGroupCreateResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "id": obj.get("id"), + "memberIds": obj.get("memberIds"), + "status": obj.get("status") + }) + return _obj + + diff --git a/fireblocks_client/models/user_group_response.py b/fireblocks_client/models/user_group_response.py new file mode 100644 index 00000000..4a4b881c --- /dev/null +++ b/fireblocks_client/models/user_group_response.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class UserGroupResponse(BaseModel): + """ + UserGroupResponse + """ # noqa: E501 + id: Optional[StrictStr] = None + name: Optional[StrictStr] = None + status: Optional[StrictStr] = None + member_ids: Optional[List[StrictStr]] = Field(default=None, alias="memberIds") + __properties: ClassVar[List[str]] = ["id", "name", "status", "memberIds"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of UserGroupResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of UserGroupResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "name": obj.get("name"), + "status": obj.get("status"), + "memberIds": obj.get("memberIds") + }) + return _obj + + diff --git a/fireblocks_client/models/user_group_update_request.py b/fireblocks_client/models/user_group_update_request.py new file mode 100644 index 00000000..89cfcc8c --- /dev/null +++ b/fireblocks_client/models/user_group_update_request.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class UserGroupUpdateRequest(BaseModel): + """ + UserGroupUpdateRequest + """ # noqa: E501 + group_name: Optional[StrictStr] = Field(default=None, alias="groupName") + member_ids: Optional[List[StrictStr]] = Field(default=None, alias="memberIds") + __properties: ClassVar[List[str]] = ["groupName", "memberIds"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of UserGroupUpdateRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of UserGroupUpdateRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "groupName": obj.get("groupName"), + "memberIds": obj.get("memberIds") + }) + return _obj + + diff --git a/fireblocks_client/models/user_response.py b/fireblocks_client/models/user_response.py new file mode 100644 index 00000000..2df4f6e1 --- /dev/null +++ b/fireblocks_client/models/user_response.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class UserResponse(BaseModel): + """ + UserResponse + """ # noqa: E501 + id: Optional[StrictStr] = None + first_name: Optional[StrictStr] = Field(default=None, alias="firstName") + last_name: Optional[StrictStr] = Field(default=None, alias="lastName") + role: Optional[StrictStr] = None + email: Optional[StrictStr] = None + enabled: Optional[StrictBool] = None + __properties: ClassVar[List[str]] = ["id", "firstName", "lastName", "role", "email", "enabled"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of UserResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of UserResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "firstName": obj.get("firstName"), + "lastName": obj.get("lastName"), + "role": obj.get("role"), + "email": obj.get("email"), + "enabled": obj.get("enabled") + }) + return _obj + + diff --git a/fireblocks_client/models/user_role.py b/fireblocks_client/models/user_role.py new file mode 100644 index 00000000..534ccf5b --- /dev/null +++ b/fireblocks_client/models/user_role.py @@ -0,0 +1,47 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +from enum import Enum +from typing_extensions import Self + + +class UserRole(str, Enum): + """ + The role of the user + """ + + """ + allowed enum values + """ + OWNER = 'OWNER' + ADMIN = 'ADMIN' + SIGNER = 'SIGNER' + COLLATERALS_SIGNER = 'COLLATERALS_SIGNER' + EDITOR = 'EDITOR' + APPROVER = 'APPROVER' + VIEWER = 'VIEWER' + NON_SIGNING_ADMIN = 'NON_SIGNING_ADMIN' + AUDITOR = 'AUDITOR' + NCW_ADMIN = 'NCW_ADMIN' + NCW_SIGNER = 'NCW_SIGNER' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of UserRole from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/fireblocks_client/models/user_status.py b/fireblocks_client/models/user_status.py new file mode 100644 index 00000000..82a1e4ca --- /dev/null +++ b/fireblocks_client/models/user_status.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +from enum import Enum +from typing_extensions import Self + + +class UserStatus(str, Enum): + """ + The status of the user + """ + + """ + allowed enum values + """ + PENDING_ACTIVATION = 'PENDING_ACTIVATION' + PENDING_DEVICE_PAIRING = 'PENDING_DEVICE_PAIRING' + PENDING_DEVICE_SETUP = 'PENDING_DEVICE_SETUP' + READY = 'READY' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of UserStatus from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/fireblocks_client/models/user_type.py b/fireblocks_client/models/user_type.py new file mode 100644 index 00000000..5a113acb --- /dev/null +++ b/fireblocks_client/models/user_type.py @@ -0,0 +1,38 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +from enum import Enum +from typing_extensions import Self + + +class UserType(str, Enum): + """ + The type of the user + """ + + """ + allowed enum values + """ + API = 'API' + CONSOLE = 'CONSOLE' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of UserType from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/fireblocks_client/models/validate_address_response.py b/fireblocks_client/models/validate_address_response.py new file mode 100644 index 00000000..97d75587 --- /dev/null +++ b/fireblocks_client/models/validate_address_response.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ValidateAddressResponse(BaseModel): + """ + ValidateAddressResponse + """ # noqa: E501 + is_valid: Optional[StrictBool] = Field(default=None, alias="isValid") + is_active: Optional[StrictBool] = Field(default=None, alias="isActive") + requires_tag: Optional[StrictBool] = Field(default=None, alias="requiresTag") + __properties: ClassVar[List[str]] = ["isValid", "isActive", "requiresTag"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ValidateAddressResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ValidateAddressResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "isValid": obj.get("isValid"), + "isActive": obj.get("isActive"), + "requiresTag": obj.get("requiresTag") + }) + return _obj + + diff --git a/fireblocks_client/models/validator_dto.py b/fireblocks_client/models/validator_dto.py new file mode 100644 index 00000000..80a45f79 --- /dev/null +++ b/fireblocks_client/models/validator_dto.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Union +from typing import Optional, Set +from typing_extensions import Self + +class ValidatorDto(BaseModel): + """ + ValidatorDto + """ # noqa: E501 + chain_descriptor: StrictStr = Field(description="The protocol identifier (e.g. \"ETH\"/\"SOL\") of the validator", alias="chainDescriptor") + fee_percent: Union[StrictFloat, StrictInt] = Field(description="The service fee as a percentage out of the earned rewards", alias="feePercent") + __properties: ClassVar[List[str]] = ["chainDescriptor", "feePercent"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ValidatorDto from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ValidatorDto from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "chainDescriptor": obj.get("chainDescriptor"), + "feePercent": obj.get("feePercent") + }) + return _obj + + diff --git a/fireblocks_client/models/vault_account.py b/fireblocks_client/models/vault_account.py new file mode 100644 index 00000000..2d92ce51 --- /dev/null +++ b/fireblocks_client/models/vault_account.py @@ -0,0 +1,106 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.vault_asset import VaultAsset +from typing import Optional, Set +from typing_extensions import Self + +class VaultAccount(BaseModel): + """ + VaultAccount + """ # noqa: E501 + id: Optional[StrictStr] = None + name: Optional[StrictStr] = None + assets: Optional[List[VaultAsset]] = None + hidden_on_ui: Optional[StrictBool] = Field(default=None, alias="hiddenOnUI") + customer_ref_id: Optional[StrictStr] = Field(default=None, alias="customerRefId") + auto_fuel: Optional[StrictBool] = Field(default=None, alias="autoFuel") + __properties: ClassVar[List[str]] = ["id", "name", "assets", "hiddenOnUI", "customerRefId", "autoFuel"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of VaultAccount from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in assets (list) + _items = [] + if self.assets: + for _item in self.assets: + if _item: + _items.append(_item.to_dict()) + _dict['assets'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of VaultAccount from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "name": obj.get("name"), + "assets": [VaultAsset.from_dict(_item) for _item in obj["assets"]] if obj.get("assets") is not None else None, + "hiddenOnUI": obj.get("hiddenOnUI"), + "customerRefId": obj.get("customerRefId"), + "autoFuel": obj.get("autoFuel") + }) + return _obj + + diff --git a/fireblocks_client/models/vault_accounts_paged_response.py b/fireblocks_client/models/vault_accounts_paged_response.py new file mode 100644 index 00000000..dd0e73fe --- /dev/null +++ b/fireblocks_client/models/vault_accounts_paged_response.py @@ -0,0 +1,106 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.vault_account import VaultAccount +from fireblocks_client.models.vault_accounts_paged_response_paging import VaultAccountsPagedResponsePaging +from typing import Optional, Set +from typing_extensions import Self + +class VaultAccountsPagedResponse(BaseModel): + """ + VaultAccountsPagedResponse + """ # noqa: E501 + accounts: Optional[List[VaultAccount]] = None + paging: Optional[VaultAccountsPagedResponsePaging] = None + previous_url: Optional[StrictStr] = Field(default=None, alias="previousUrl") + next_url: Optional[StrictStr] = Field(default=None, alias="nextUrl") + __properties: ClassVar[List[str]] = ["accounts", "paging", "previousUrl", "nextUrl"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of VaultAccountsPagedResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in accounts (list) + _items = [] + if self.accounts: + for _item in self.accounts: + if _item: + _items.append(_item.to_dict()) + _dict['accounts'] = _items + # override the default output from pydantic by calling `to_dict()` of paging + if self.paging: + _dict['paging'] = self.paging.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of VaultAccountsPagedResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "accounts": [VaultAccount.from_dict(_item) for _item in obj["accounts"]] if obj.get("accounts") is not None else None, + "paging": VaultAccountsPagedResponsePaging.from_dict(obj["paging"]) if obj.get("paging") is not None else None, + "previousUrl": obj.get("previousUrl"), + "nextUrl": obj.get("nextUrl") + }) + return _obj + + diff --git a/fireblocks_client/models/vault_accounts_paged_response_paging.py b/fireblocks_client/models/vault_accounts_paged_response_paging.py new file mode 100644 index 00000000..fe956593 --- /dev/null +++ b/fireblocks_client/models/vault_accounts_paged_response_paging.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class VaultAccountsPagedResponsePaging(BaseModel): + """ + VaultAccountsPagedResponsePaging + """ # noqa: E501 + before: Optional[StrictStr] = None + after: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["before", "after"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of VaultAccountsPagedResponsePaging from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of VaultAccountsPagedResponsePaging from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "before": obj.get("before"), + "after": obj.get("after") + }) + return _obj + + diff --git a/fireblocks_client/models/vault_action_status.py b/fireblocks_client/models/vault_action_status.py new file mode 100644 index 00000000..ea5412c1 --- /dev/null +++ b/fireblocks_client/models/vault_action_status.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class VaultActionStatus(BaseModel): + """ + VaultActionStatus + """ # noqa: E501 + success: Optional[StrictBool] = None + __properties: ClassVar[List[str]] = ["success"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of VaultActionStatus from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of VaultActionStatus from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success") + }) + return _obj + + diff --git a/fireblocks_client/models/vault_asset.py b/fireblocks_client/models/vault_asset.py new file mode 100644 index 00000000..a37b6c7b --- /dev/null +++ b/fireblocks_client/models/vault_asset.py @@ -0,0 +1,124 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from fireblocks_client.models.rewards_info import RewardsInfo +from typing import Optional, Set +from typing_extensions import Self + +class VaultAsset(BaseModel): + """ + VaultAsset + """ # noqa: E501 + id: Optional[StrictStr] = None + total: Optional[StrictStr] = Field(default=None, description="The total wallet balance. In EOS this value includes the network balance, self staking and pending refund. For all other coins it is the balance as it appears on the blockchain.") + balance: Optional[StrictStr] = Field(default=None, description="Deprecated - replaced by \"total\"") + available: Optional[StrictStr] = Field(default=None, description="Funds available for transfer. Equals the blockchain balance minus any locked amounts") + pending: Optional[StrictStr] = Field(default=None, description="The cumulative balance of all transactions pending to be cleared") + frozen: Optional[StrictStr] = Field(default=None, description="The cumulative frozen balance") + locked_amount: Optional[StrictStr] = Field(default=None, description="Funds in outgoing transactions that are not yet published to the network", alias="lockedAmount") + staked: Optional[StrictStr] = Field(default=None, description="Staked balance") + total_staked_cpu: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Deprecated", alias="totalStakedCPU") + total_staked_network: Optional[StrictStr] = Field(default=None, description="Deprecated", alias="totalStakedNetwork") + self_staked_cpu: Optional[StrictStr] = Field(default=None, description="Deprecated", alias="selfStakedCPU") + self_staked_network: Optional[StrictStr] = Field(default=None, description="Deprecated", alias="selfStakedNetwork") + pending_refund_cpu: Optional[StrictStr] = Field(default=None, description="Deprecated", alias="pendingRefundCPU") + pending_refund_network: Optional[StrictStr] = Field(default=None, description="Deprecated", alias="pendingRefundNetwork") + block_height: Optional[StrictStr] = Field(default=None, alias="blockHeight") + block_hash: Optional[StrictStr] = Field(default=None, alias="blockHash") + rewards_info: Optional[RewardsInfo] = Field(default=None, alias="rewardsInfo") + __properties: ClassVar[List[str]] = ["id", "total", "balance", "available", "pending", "frozen", "lockedAmount", "staked", "totalStakedCPU", "totalStakedNetwork", "selfStakedCPU", "selfStakedNetwork", "pendingRefundCPU", "pendingRefundNetwork", "blockHeight", "blockHash", "rewardsInfo"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of VaultAsset from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of rewards_info + if self.rewards_info: + _dict['rewardsInfo'] = self.rewards_info.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of VaultAsset from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "total": obj.get("total"), + "balance": obj.get("balance"), + "available": obj.get("available"), + "pending": obj.get("pending"), + "frozen": obj.get("frozen"), + "lockedAmount": obj.get("lockedAmount"), + "staked": obj.get("staked"), + "totalStakedCPU": obj.get("totalStakedCPU"), + "totalStakedNetwork": obj.get("totalStakedNetwork"), + "selfStakedCPU": obj.get("selfStakedCPU"), + "selfStakedNetwork": obj.get("selfStakedNetwork"), + "pendingRefundCPU": obj.get("pendingRefundCPU"), + "pendingRefundNetwork": obj.get("pendingRefundNetwork"), + "blockHeight": obj.get("blockHeight"), + "blockHash": obj.get("blockHash"), + "rewardsInfo": RewardsInfo.from_dict(obj["rewardsInfo"]) if obj.get("rewardsInfo") is not None else None + }) + return _obj + + diff --git a/fireblocks_client/models/vault_wallet_address.py b/fireblocks_client/models/vault_wallet_address.py new file mode 100644 index 00000000..a787cea5 --- /dev/null +++ b/fireblocks_client/models/vault_wallet_address.py @@ -0,0 +1,118 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, StrictBool, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class VaultWalletAddress(BaseModel): + """ + VaultWalletAddress + """ # noqa: E501 + asset_id: Optional[StrictStr] = Field(default=None, alias="assetId") + address: Optional[StrictStr] = None + description: Optional[StrictStr] = None + tag: Optional[StrictStr] = None + type: Optional[StrictStr] = None + customer_ref_id: Optional[StrictStr] = Field(default=None, alias="customerRefId") + address_format: Optional[StrictStr] = Field(default=None, alias="addressFormat") + legacy_address: Optional[StrictStr] = Field(default=None, alias="legacyAddress") + enterprise_address: Optional[StrictStr] = Field(default=None, alias="enterpriseAddress") + bip44_address_index: Optional[StrictInt] = Field(default=None, alias="bip44AddressIndex") + user_defined: Optional[StrictBool] = Field(default=None, alias="userDefined") + __properties: ClassVar[List[str]] = ["assetId", "address", "description", "tag", "type", "customerRefId", "addressFormat", "legacyAddress", "enterpriseAddress", "bip44AddressIndex", "userDefined"] + + @field_validator('address_format') + def address_format_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['SEGWIT', 'LEGACY']): + raise ValueError("must be one of enum values ('SEGWIT', 'LEGACY')") + return value + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of VaultWalletAddress from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of VaultWalletAddress from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "assetId": obj.get("assetId"), + "address": obj.get("address"), + "description": obj.get("description"), + "tag": obj.get("tag"), + "type": obj.get("type"), + "customerRefId": obj.get("customerRefId"), + "addressFormat": obj.get("addressFormat"), + "legacyAddress": obj.get("legacyAddress"), + "enterpriseAddress": obj.get("enterpriseAddress"), + "bip44AddressIndex": obj.get("bip44AddressIndex"), + "userDefined": obj.get("userDefined") + }) + return _obj + + diff --git a/fireblocks_client/models/vendor_dto.py b/fireblocks_client/models/vendor_dto.py new file mode 100644 index 00000000..80435db6 --- /dev/null +++ b/fireblocks_client/models/vendor_dto.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class VendorDto(BaseModel): + """ + VendorDto + """ # noqa: E501 + id: StrictStr = Field(description="The unique identifier of the vendor of this contract template") + name: StrictStr = Field(description="The name of the vendor of this contract template") + __properties: ClassVar[List[str]] = ["id", "name"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of VendorDto from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of VendorDto from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "name": obj.get("name") + }) + return _obj + + diff --git a/fireblocks_client/models/wallet_asset.py b/fireblocks_client/models/wallet_asset.py new file mode 100644 index 00000000..e3e391c5 --- /dev/null +++ b/fireblocks_client/models/wallet_asset.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.config_change_request_status import ConfigChangeRequestStatus +from typing import Optional, Set +from typing_extensions import Self + +class WalletAsset(BaseModel): + """ + WalletAsset + """ # noqa: E501 + id: Optional[StrictStr] = None + balance: Optional[StrictStr] = None + locked_amount: Optional[StrictStr] = Field(default=None, alias="lockedAmount") + status: Optional[ConfigChangeRequestStatus] = None + address: Optional[StrictStr] = None + tag: Optional[StrictStr] = None + activation_time: Optional[StrictStr] = Field(default=None, alias="activationTime") + __properties: ClassVar[List[str]] = ["id", "balance", "lockedAmount", "status", "address", "tag", "activationTime"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of WalletAsset from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of WalletAsset from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "balance": obj.get("balance"), + "lockedAmount": obj.get("lockedAmount"), + "status": obj.get("status"), + "address": obj.get("address"), + "tag": obj.get("tag"), + "activationTime": obj.get("activationTime") + }) + return _obj + + diff --git a/fireblocks_client/models/wallet_asset_additional_info.py b/fireblocks_client/models/wallet_asset_additional_info.py new file mode 100644 index 00000000..c57fee9b --- /dev/null +++ b/fireblocks_client/models/wallet_asset_additional_info.py @@ -0,0 +1,118 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class WalletAssetAdditionalInfo(BaseModel): + """ + WalletAssetAdditionalInfo + """ # noqa: E501 + account_holder_given_name: Optional[StrictStr] = Field(default=None, alias="accountHolderGivenName") + account_holder_surname: Optional[StrictStr] = Field(default=None, alias="accountHolderSurname") + account_holder_city: Optional[StrictStr] = Field(default=None, alias="accountHolderCity") + account_holder_country: Optional[StrictStr] = Field(default=None, alias="accountHolderCountry") + account_holder_address1: Optional[StrictStr] = Field(default=None, alias="accountHolderAddress1") + account_holder_address2: Optional[StrictStr] = Field(default=None, alias="accountHolderAddress2") + account_holder_district: Optional[StrictStr] = Field(default=None, alias="accountHolderDistrict") + account_holder_postal_code: Optional[StrictStr] = Field(default=None, alias="accountHolderPostalCode") + aba_routing_number: Optional[StrictStr] = Field(default=None, alias="abaRoutingNumber") + aba_account_number: Optional[StrictStr] = Field(default=None, alias="abaAccountNumber") + aba_country: Optional[StrictStr] = Field(default=None, alias="abaCountry") + iban: Optional[StrictStr] = None + iban_city: Optional[StrictStr] = Field(default=None, alias="ibanCity") + iban_country: Optional[StrictStr] = Field(default=None, alias="ibanCountry") + spei_clabe: Optional[StrictStr] = Field(default=None, alias="speiClabe") + spei_name: Optional[StrictStr] = Field(default=None, alias="speiName") + __properties: ClassVar[List[str]] = ["accountHolderGivenName", "accountHolderSurname", "accountHolderCity", "accountHolderCountry", "accountHolderAddress1", "accountHolderAddress2", "accountHolderDistrict", "accountHolderPostalCode", "abaRoutingNumber", "abaAccountNumber", "abaCountry", "iban", "ibanCity", "ibanCountry", "speiClabe", "speiName"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of WalletAssetAdditionalInfo from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of WalletAssetAdditionalInfo from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "accountHolderGivenName": obj.get("accountHolderGivenName"), + "accountHolderSurname": obj.get("accountHolderSurname"), + "accountHolderCity": obj.get("accountHolderCity"), + "accountHolderCountry": obj.get("accountHolderCountry"), + "accountHolderAddress1": obj.get("accountHolderAddress1"), + "accountHolderAddress2": obj.get("accountHolderAddress2"), + "accountHolderDistrict": obj.get("accountHolderDistrict"), + "accountHolderPostalCode": obj.get("accountHolderPostalCode"), + "abaRoutingNumber": obj.get("abaRoutingNumber"), + "abaAccountNumber": obj.get("abaAccountNumber"), + "abaCountry": obj.get("abaCountry"), + "iban": obj.get("iban"), + "ibanCity": obj.get("ibanCity"), + "ibanCountry": obj.get("ibanCountry"), + "speiClabe": obj.get("speiClabe"), + "speiName": obj.get("speiName") + }) + return _obj + + diff --git a/fireblocks_client/models/withdraw_request_dto.py b/fireblocks_client/models/withdraw_request_dto.py new file mode 100644 index 00000000..72c1d6e7 --- /dev/null +++ b/fireblocks_client/models/withdraw_request_dto.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class WithdrawRequestDto(BaseModel): + """ + WithdrawRequestDto + """ # noqa: E501 + id: StrictStr = Field(description="id of position to withdraw") + fee: Optional[StrictStr] = Field(default=None, description="Represents the fee for a transaction, which can be specified as a percentage value. Only one of fee/feeLevel is required.") + fee_level: Optional[StrictStr] = Field(default=None, description="Represents the fee level for a transaction, which can be set as slow, medium, or fast. Only one of fee/feeLevel is required.", alias="feeLevel") + tx_note: Optional[StrictStr] = Field(default=None, description="The note to associate with the transactions.", alias="txNote") + __properties: ClassVar[List[str]] = ["id", "fee", "feeLevel", "txNote"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of WithdrawRequestDto from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of WithdrawRequestDto from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "fee": obj.get("fee"), + "feeLevel": obj.get("feeLevel"), + "txNote": obj.get("txNote") + }) + return _obj + + diff --git a/fireblocks_client/models/workflow_config_status.py b/fireblocks_client/models/workflow_config_status.py new file mode 100644 index 00000000..13cbbf19 --- /dev/null +++ b/fireblocks_client/models/workflow_config_status.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +from enum import Enum +from typing_extensions import Self + + +class WorkflowConfigStatus(str, Enum): + """ + WorkflowConfigStatus + """ + + """ + allowed enum values + """ + PENDING = 'PENDING' + VALIDATION_IN_PROGRESS = 'VALIDATION_IN_PROGRESS' + VALIDATION_FAILED = 'VALIDATION_FAILED' + READY_FOR_EXECUTION = 'READY_FOR_EXECUTION' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of WorkflowConfigStatus from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/fireblocks_client/models/workflow_configuration_id.py b/fireblocks_client/models/workflow_configuration_id.py new file mode 100644 index 00000000..5b7352df --- /dev/null +++ b/fireblocks_client/models/workflow_configuration_id.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class WorkflowConfigurationId(BaseModel): + """ + WorkflowConfigurationId + """ # noqa: E501 + config_id: StrictStr = Field(alias="configId") + __properties: ClassVar[List[str]] = ["configId"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of WorkflowConfigurationId from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of WorkflowConfigurationId from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "configId": obj.get("configId") + }) + return _obj + + diff --git a/fireblocks_client/models/workflow_execution_operation.py b/fireblocks_client/models/workflow_execution_operation.py new file mode 100644 index 00000000..4f4f97a6 --- /dev/null +++ b/fireblocks_client/models/workflow_execution_operation.py @@ -0,0 +1,166 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +import pprint +from pydantic import BaseModel, Field, StrictStr, ValidationError, field_validator +from typing import Any, List, Optional +from fireblocks_client.models.execution_conversion_operation import ExecutionConversionOperation +from fireblocks_client.models.execution_disbursement_operation import ExecutionDisbursementOperation +from fireblocks_client.models.execution_screening_operation import ExecutionScreeningOperation +from fireblocks_client.models.execution_transfer_operation import ExecutionTransferOperation +from pydantic import StrictStr, Field +from typing import Union, List, Optional, Dict +from typing_extensions import Literal, Self + +WORKFLOWEXECUTIONOPERATION_ONE_OF_SCHEMAS = ["ExecutionConversionOperation", "ExecutionDisbursementOperation", "ExecutionScreeningOperation", "ExecutionTransferOperation"] + +class WorkflowExecutionOperation(BaseModel): + """ + WorkflowExecutionOperation + """ + # data type: ExecutionScreeningOperation + oneof_schema_1_validator: Optional[ExecutionScreeningOperation] = None + # data type: ExecutionConversionOperation + oneof_schema_2_validator: Optional[ExecutionConversionOperation] = None + # data type: ExecutionTransferOperation + oneof_schema_3_validator: Optional[ExecutionTransferOperation] = None + # data type: ExecutionDisbursementOperation + oneof_schema_4_validator: Optional[ExecutionDisbursementOperation] = None + actual_instance: Optional[Union[ExecutionConversionOperation, ExecutionDisbursementOperation, ExecutionScreeningOperation, ExecutionTransferOperation]] = None + one_of_schemas: List[str] = Field(default=Literal["ExecutionConversionOperation", "ExecutionDisbursementOperation", "ExecutionScreeningOperation", "ExecutionTransferOperation"]) + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_oneof(cls, v): + instance = WorkflowExecutionOperation.model_construct() + error_messages = [] + match = 0 + # validate data type: ExecutionScreeningOperation + if not isinstance(v, ExecutionScreeningOperation): + error_messages.append(f"Error! Input type `{type(v)}` is not `ExecutionScreeningOperation`") + else: + match += 1 + # validate data type: ExecutionConversionOperation + if not isinstance(v, ExecutionConversionOperation): + error_messages.append(f"Error! Input type `{type(v)}` is not `ExecutionConversionOperation`") + else: + match += 1 + # validate data type: ExecutionTransferOperation + if not isinstance(v, ExecutionTransferOperation): + error_messages.append(f"Error! Input type `{type(v)}` is not `ExecutionTransferOperation`") + else: + match += 1 + # validate data type: ExecutionDisbursementOperation + if not isinstance(v, ExecutionDisbursementOperation): + error_messages.append(f"Error! Input type `{type(v)}` is not `ExecutionDisbursementOperation`") + else: + match += 1 + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in WorkflowExecutionOperation with oneOf schemas: ExecutionConversionOperation, ExecutionDisbursementOperation, ExecutionScreeningOperation, ExecutionTransferOperation. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in WorkflowExecutionOperation with oneOf schemas: ExecutionConversionOperation, ExecutionDisbursementOperation, ExecutionScreeningOperation, ExecutionTransferOperation. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + match = 0 + + # deserialize data into ExecutionScreeningOperation + try: + instance.actual_instance = ExecutionScreeningOperation.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into ExecutionConversionOperation + try: + instance.actual_instance = ExecutionConversionOperation.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into ExecutionTransferOperation + try: + instance.actual_instance = ExecutionTransferOperation.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into ExecutionDisbursementOperation + try: + instance.actual_instance = ExecutionDisbursementOperation.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when deserializing the JSON string into WorkflowExecutionOperation with oneOf schemas: ExecutionConversionOperation, ExecutionDisbursementOperation, ExecutionScreeningOperation, ExecutionTransferOperation. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into WorkflowExecutionOperation with oneOf schemas: ExecutionConversionOperation, ExecutionDisbursementOperation, ExecutionScreeningOperation, ExecutionTransferOperation. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], ExecutionConversionOperation, ExecutionDisbursementOperation, ExecutionScreeningOperation, ExecutionTransferOperation]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + # primitive type + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/fireblocks_client/models/write_abi_function.py b/fireblocks_client/models/write_abi_function.py new file mode 100644 index 00000000..e6c51174 --- /dev/null +++ b/fireblocks_client/models/write_abi_function.py @@ -0,0 +1,128 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.parameter import Parameter +from fireblocks_client.models.parameter_with_value import ParameterWithValue +from typing import Optional, Set +from typing_extensions import Self + +class WriteAbiFunction(BaseModel): + """ + WriteAbiFunction + """ # noqa: E501 + state_mutability: StrictStr = Field(alias="stateMutability") + outputs: Optional[List[Parameter]] = None + type: StrictStr + name: Optional[StrictStr] = None + inputs: List[ParameterWithValue] + description: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["stateMutability", "outputs", "type", "name", "inputs", "description"] + + @field_validator('state_mutability') + def state_mutability_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['payable', 'nonpayable']): + raise ValueError("must be one of enum values ('payable', 'nonpayable')") + return value + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['function']): + raise ValueError("must be one of enum values ('function')") + return value + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of WriteAbiFunction from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in outputs (list) + _items = [] + if self.outputs: + for _item in self.outputs: + if _item: + _items.append(_item.to_dict()) + _dict['outputs'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in inputs (list) + _items = [] + if self.inputs: + for _item in self.inputs: + if _item: + _items.append(_item.to_dict()) + _dict['inputs'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of WriteAbiFunction from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "stateMutability": obj.get("stateMutability"), + "outputs": [Parameter.from_dict(_item) for _item in obj["outputs"]] if obj.get("outputs") is not None else None, + "type": obj.get("type"), + "name": obj.get("name"), + "inputs": [ParameterWithValue.from_dict(_item) for _item in obj["inputs"]] if obj.get("inputs") is not None else None, + "description": obj.get("description") + }) + return _obj + + diff --git a/fireblocks_client/models/write_call_function_dto.py b/fireblocks_client/models/write_call_function_dto.py new file mode 100644 index 00000000..0f536699 --- /dev/null +++ b/fireblocks_client/models/write_call_function_dto.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from fireblocks_client.models.write_abi_function import WriteAbiFunction +from typing import Optional, Set +from typing_extensions import Self + +class WriteCallFunctionDto(BaseModel): + """ + WriteCallFunctionDto + """ # noqa: E501 + vault_account_id: StrictStr = Field(description="The vault account id this contract was deploy from", alias="vaultAccountId") + abi_function: List[WriteAbiFunction] = Field(description="The abi of the read function you wish to call", alias="abiFunction") + amount: Optional[StrictStr] = Field(default=None, description="Amount in base asset. Being used in payable functions") + fee_level: Optional[StrictStr] = Field(default=None, description="Fee level for the write function transaction. interchangeable with the 'fee' field", alias="feeLevel") + fee: Optional[StrictStr] = Field(default=None, description="Max fee amount for the write function transaction. interchangeable with the 'feeLevel' field") + note: Optional[StrictStr] = Field(default=None, description="Custom note, not sent to the blockchain, that describes the transaction at your Fireblocks workspace") + __properties: ClassVar[List[str]] = ["vaultAccountId", "abiFunction", "amount", "feeLevel", "fee", "note"] + + @field_validator('fee_level') + def fee_level_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['LOW', 'MEDIUM', 'HIGH']): + raise ValueError("must be one of enum values ('LOW', 'MEDIUM', 'HIGH')") + return value + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of WriteCallFunctionDto from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in abi_function (list) + _items = [] + if self.abi_function: + for _item in self.abi_function: + if _item: + _items.append(_item.to_dict()) + _dict['abiFunction'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of WriteCallFunctionDto from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "vaultAccountId": obj.get("vaultAccountId"), + "abiFunction": [WriteAbiFunction.from_dict(_item) for _item in obj["abiFunction"]] if obj.get("abiFunction") is not None else None, + "amount": obj.get("amount"), + "feeLevel": obj.get("feeLevel"), + "fee": obj.get("fee"), + "note": obj.get("note") + }) + return _obj + + diff --git a/fireblocks_client/models/write_call_function_response_dto.py b/fireblocks_client/models/write_call_function_response_dto.py new file mode 100644 index 00000000..468cc249 --- /dev/null +++ b/fireblocks_client/models/write_call_function_response_dto.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.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 +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class WriteCallFunctionResponseDto(BaseModel): + """ + WriteCallFunctionResponseDto + """ # noqa: E501 + tx_id: StrictStr = Field(alias="txId") + __properties: ClassVar[List[str]] = ["txId"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True, + "protected_namespaces": (), + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of WriteCallFunctionResponseDto from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of WriteCallFunctionResponseDto from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "txId": obj.get("txId") + }) + return _obj + + diff --git a/fireblocks_client/paths/__init__.py b/fireblocks_client/paths/__init__.py deleted file mode 100644 index 81ef6f33..00000000 --- a/fireblocks_client/paths/__init__.py +++ /dev/null @@ -1,111 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.apis.path_to_api import path_to_api - -import enum - - -class PathValues(str, enum.Enum): - VAULT_ACCOUNTS = "/vault/accounts" - VAULT_ACCOUNTS_PAGED = "/vault/accounts_paged" - VAULT_ACCOUNTS_VAULT_ACCOUNT_ID = "/vault/accounts/{vaultAccountId}" - VAULT_ASSET_WALLETS = "/vault/asset_wallets" - VAULT_ACCOUNTS_VAULT_ACCOUNT_ID_HIDE = "/vault/accounts/{vaultAccountId}/hide" - VAULT_ACCOUNTS_VAULT_ACCOUNT_ID_UNHIDE = "/vault/accounts/{vaultAccountId}/unhide" - VAULT_ACCOUNTS_VAULT_ACCOUNT_ID_ASSET_ID_ACTIVATE = "/vault/accounts/{vaultAccountId}/{assetId}/activate" - VAULT_ACCOUNTS_VAULT_ACCOUNT_ID_SET_CUSTOMER_REF_ID = "/vault/accounts/{vaultAccountId}/set_customer_ref_id" - VAULT_ACCOUNTS_VAULT_ACCOUNT_ID_SET_AUTO_FUEL = "/vault/accounts/{vaultAccountId}/set_auto_fuel" - VAULT_ACCOUNTS_VAULT_ACCOUNT_ID_ASSET_ID = "/vault/accounts/{vaultAccountId}/{assetId}" - VAULT_ACCOUNTS_VAULT_ACCOUNT_ID_ASSET_ID_BALANCE = "/vault/accounts/{vaultAccountId}/{assetId}/balance" - VAULT_ACCOUNTS_VAULT_ACCOUNT_ID_ASSET_ID_ADDRESSES = "/vault/accounts/{vaultAccountId}/{assetId}/addresses" - VAULT_ACCOUNTS_VAULT_ACCOUNT_ID_ASSET_ID_MAX_SPENDABLE_AMOUNT = "/vault/accounts/{vaultAccountId}/{assetId}/max_spendable_amount" - VAULT_ACCOUNTS_VAULT_ACCOUNT_ID_ASSET_ID_ADDRESSES_ADDRESS_ID = "/vault/accounts/{vaultAccountId}/{assetId}/addresses/{addressId}" - VAULT_ACCOUNTS_VAULT_ACCOUNT_ID_ASSET_ID_ADDRESSES_ADDRESS_ID_SET_CUSTOMER_REF_ID = "/vault/accounts/{vaultAccountId}/{assetId}/addresses/{addressId}/set_customer_ref_id" - VAULT_ACCOUNTS_VAULT_ACCOUNT_ID_ASSET_ID_ADDRESSES_ADDRESS_ID_CREATE_LEGACY = "/vault/accounts/{vaultAccountId}/{assetId}/addresses/{addressId}/create_legacy" - VAULT_ACCOUNTS_VAULT_ACCOUNT_ID_ASSET_ID_UNSPENT_INPUTS = "/vault/accounts/{vaultAccountId}/{assetId}/unspent_inputs" - VAULT_PUBLIC_KEY_INFO_ = "/vault/public_key_info/" - VAULT_ACCOUNTS_VAULT_ACCOUNT_ID_ASSET_ID_CHANGE_ADDRESS_INDEX_PUBLIC_KEY_INFO = "/vault/accounts/{vaultAccountId}/{assetId}/{change}/{addressIndex}/public_key_info" - VAULT_ASSETS = "/vault/assets" - VAULT_ASSETS_ASSET_ID = "/vault/assets/{assetId}" - EXCHANGE_ACCOUNTS = "/exchange_accounts" - EXCHANGE_ACCOUNTS_EXCHANGE_ACCOUNT_ID = "/exchange_accounts/{exchangeAccountId}" - EXCHANGE_ACCOUNTS_EXCHANGE_ACCOUNT_ID_INTERNAL_TRANSFER = "/exchange_accounts/{exchangeAccountId}/internal_transfer" - EXCHANGE_ACCOUNTS_EXCHANGE_ACCOUNT_ID_CONVERT = "/exchange_accounts/{exchangeAccountId}/convert" - EXCHANGE_ACCOUNTS_EXCHANGE_ACCOUNT_ID_ASSET_ID = "/exchange_accounts/{exchangeAccountId}/{assetId}" - FIAT_ACCOUNTS = "/fiat_accounts" - FIAT_ACCOUNTS_ACCOUNT_ID = "/fiat_accounts/{accountId}" - FIAT_ACCOUNTS_ACCOUNT_ID_REDEEM_TO_LINKED_DDA = "/fiat_accounts/{accountId}/redeem_to_linked_dda" - FIAT_ACCOUNTS_ACCOUNT_ID_DEPOSIT_FROM_LINKED_DDA = "/fiat_accounts/{accountId}/deposit_from_linked_dda" - NETWORK_CONNECTIONS = "/network_connections" - NETWORK_CONNECTIONS_CONNECTION_ID_SET_ROUTING_POLICY = "/network_connections/{connectionId}/set_routing_policy" - NETWORK_CONNECTIONS_CONNECTION_ID_IS_THIRD_PARTY_ROUTING_ASSET_TYPE = "/network_connections/{connectionId}/is_third_party_routing/{assetType}" - NETWORK_CONNECTIONS_CONNECTION_ID = "/network_connections/{connectionId}" - NETWORK_IDS = "/network_ids" - NETWORK_IDS_NETWORK_ID = "/network_ids/{networkId}" - NETWORK_IDS_NETWORK_ID_SET_ROUTING_POLICY = "/network_ids/{networkId}/set_routing_policy" - NETWORK_IDS_NETWORK_ID_SET_DISCOVERABILITY = "/network_ids/{networkId}/set_discoverability" - NETWORK_IDS_NETWORK_ID_SET_NAME = "/network_ids/{networkId}/set_name" - INTERNAL_WALLETS = "/internal_wallets" - INTERNAL_WALLETS_WALLET_ID = "/internal_wallets/{walletId}" - INTERNAL_WALLETS_WALLET_ID_SET_CUSTOMER_REF_ID = "/internal_wallets/{walletId}/set_customer_ref_id" - INTERNAL_WALLETS_WALLET_ID_ASSET_ID = "/internal_wallets/{walletId}/{assetId}" - EXTERNAL_WALLETS = "/external_wallets" - EXTERNAL_WALLETS_WALLET_ID = "/external_wallets/{walletId}" - EXTERNAL_WALLETS_WALLET_ID_SET_CUSTOMER_REF_ID = "/external_wallets/{walletId}/set_customer_ref_id" - EXTERNAL_WALLETS_WALLET_ID_ASSET_ID = "/external_wallets/{walletId}/{assetId}" - CONTRACTS = "/contracts" - CONTRACTS_CONTRACT_ID = "/contracts/{contractId}" - CONTRACTS_CONTRACT_ID_ASSET_ID = "/contracts/{contractId}/{assetId}" - SUPPORTED_ASSETS = "/supported_assets" - TRANSACTIONS = "/transactions" - TRANSACTIONS_ESTIMATE_FEE = "/transactions/estimate_fee" - TRANSACTIONS_TX_ID = "/transactions/{txId}" - TRANSACTIONS_EXTERNAL_TX_ID_EXTERNAL_TX_ID_ = "/transactions/external_tx_id/{externalTxId}/" - TRANSACTIONS_TX_ID_SET_CONFIRMATION_THRESHOLD = "/transactions/{txId}/set_confirmation_threshold" - TRANSACTIONS_TX_ID_DROP = "/transactions/{txId}/drop" - TRANSACTIONS_TX_ID_CANCEL = "/transactions/{txId}/cancel" - TRANSACTIONS_TX_ID_FREEZE = "/transactions/{txId}/freeze" - TRANSACTIONS_TX_ID_UNFREEZE = "/transactions/{txId}/unfreeze" - TRANSACTIONS_VALIDATE_ADDRESS_ASSET_ID_ADDRESS = "/transactions/validate_address/{assetId}/{address}" - TX_HASH_TX_HASH_SET_CONFIRMATION_THRESHOLD = "/txHash/{txHash}/set_confirmation_threshold" - ESTIMATE_NETWORK_FEE = "/estimate_network_fee" - PAYMENTS_XBSETTLEMENTS_CONFIGS = "/payments/xb-settlements/configs" - PAYMENTS_XBSETTLEMENTS_CONFIGS_CONFIG_ID = "/payments/xb-settlements/configs/{configId}" - PAYMENTS_XBSETTLEMENTS_FLOWS = "/payments/xb-settlements/flows" - PAYMENTS_XBSETTLEMENTS_FLOWS_FLOW_ID = "/payments/xb-settlements/flows/{flowId}" - PAYMENTS_XBSETTLEMENTS_FLOWS_FLOW_ID_ACTIONS_EXECUTE = "/payments/xb-settlements/flows/{flowId}/actions/execute" - PAYMENTS_PAYOUT = "/payments/payout" - PAYMENTS_PAYOUT_PAYOUT_ID_ACTIONS_EXECUTE = "/payments/payout/{payoutId}/actions/execute" - PAYMENTS_PAYOUT_PAYOUT_ID = "/payments/payout/{payoutId}" - GAS_STATION = "/gas_station" - GAS_STATION_ASSET_ID = "/gas_station/{assetId}" - GAS_STATION_CONFIGURATION = "/gas_station/configuration" - GAS_STATION_CONFIGURATION_ASSET_ID = "/gas_station/configuration/{assetId}" - USERS_GROUPS = "/users_groups" - USERS_GROUPS_GROUP_ID = "/users_groups/{groupId}" - USERS = "/users" - AUDITS = "/audits" - OFF_EXCHANGE_ADD = "/off_exchange/add" - OFF_EXCHANGE_REMOVE = "/off_exchange/remove" - OFF_EXCHANGE_SETTLEMENTS_TRADER = "/off_exchange/settlements/trader" - OFF_EXCHANGE_SETTLEMENTS_TRANSACTIONS = "/off_exchange/settlements/transactions" - OFF_EXCHANGE_COLLATERAL_ACCOUNTS_MAIN_EXCHANGE_ACCOUNT_ID = "/off_exchange/collateral_accounts/{mainExchangeAccountId}" - WEBHOOKS_RESEND = "/webhooks/resend" - WEBHOOKS_RESEND_TX_ID = "/webhooks/resend/{txId}" - NFTS_OWNERSHIP_TOKENS = "/nfts/ownership/tokens" - NFTS_OWNERSHIP_COLLECTIONS = "/nfts/ownership/collections" - NFTS_TOKENS_ID = "/nfts/tokens/{id}" - NFTS_TOKENS = "/nfts/tokens" - NFTS_OWNERSHIP_TOKENS_ID_STATUS = "/nfts/ownership/tokens/{id}/status" - CONNECTIONS = "/connections" - CONNECTIONS_WC = "/connections/wc" - CONNECTIONS_WC_ID = "/connections/wc/{id}" - SCREENING_TRAVEL_RULE_TRANSACTION_VALIDATE = "/screening/travel_rule/transaction/validate" - SCREENING_TRAVEL_RULE_TRANSACTION_VALIDATE_FULL = "/screening/travel_rule/transaction/validate/full" - SCREENING_TRAVEL_RULE_VASP_DID = "/screening/travel_rule/vasp/{did}" - SCREENING_TRAVEL_RULE_VASP = "/screening/travel_rule/vasp" - SCREEENING_TRAVEL_RULE_VASP_UPDATE = "/screeening/travel_rule/vasp/update" - MANAGEMENT_OTA = "/management/ota" - TAP_ACTIVE_POLICY = "/tap/active_policy" - TAP_DRAFT = "/tap/draft" - TAP_PUBLISH = "/tap/publish" diff --git a/fireblocks_client/paths/audits/__init__.py b/fireblocks_client/paths/audits/__init__.py deleted file mode 100644 index 92507ba2..00000000 --- a/fireblocks_client/paths/audits/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.audits import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.AUDITS \ No newline at end of file diff --git a/fireblocks_client/paths/audits/get.py b/fireblocks_client/paths/audits/get.py deleted file mode 100644 index 9fcb4eef..00000000 --- a/fireblocks_client/paths/audits/get.py +++ /dev/null @@ -1,216 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error import Error - -from . import path - -# Query params - - -class TimePeriodSchema( - schemas.EnumBase, - schemas.StrSchema -): - - - class MetaOapg: - enum_value_to_name = { - "DAY": "DAY", - "WEEK": "WEEK", - } - - @schemas.classproperty - def DAY(cls): - return cls("DAY") - - @schemas.classproperty - def WEEK(cls): - return cls("WEEK") -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - 'timePeriod': typing.Union[TimePeriodSchema, str, ], - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_time_period = api_client.QueryParameter( - name="timePeriod", - style=api_client.ParameterStyle.FORM, - schema=TimePeriodSchema, - required=True, - explode=True, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - headers: ResponseHeadersFor200 - body: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_audits_oapg(self, params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - """ - Get audit logs - """ - query_params = {} - if params and params.get("time_period"): - query_params["time_period"] = params.get("time_period") - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_time_period, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetAudits(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_audits(self , params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - return self._get_audits_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - return self._get_audits_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/audits/get.pyi b/fireblocks_client/paths/audits/get.pyi deleted file mode 100644 index c3547a4b..00000000 --- a/fireblocks_client/paths/audits/get.pyi +++ /dev/null @@ -1,193 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error import Error - -# Query params - - -class TimePeriodSchema( - schemas.EnumBase, - schemas.StrSchema -): - - @schemas.classproperty - def DAY(cls): - return cls("DAY") - - @schemas.classproperty - def WEEK(cls): - return cls("WEEK") -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - 'timePeriod': typing.Union[TimePeriodSchema, str, ], - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_time_period = api_client.QueryParameter( - name="timePeriod", - style=api_client.ParameterStyle.FORM, - schema=TimePeriodSchema, - required=True, - explode=True, -) -XRequestIDSchema = schemas.StrSchema -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - headers: ResponseHeadersFor200 - body: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_audits_oapg(self, params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - """ - Get audit logs - """ - query_params = {} - if params and params.get("time_period"): - query_params["time_period"] = params.get("time_period") - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_time_period, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetAudits(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_audits(self , params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - return self._get_audits_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - return self._get_audits_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/connections/__init__.py b/fireblocks_client/paths/connections/__init__.py deleted file mode 100644 index ab9f1c86..00000000 --- a/fireblocks_client/paths/connections/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.connections import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.CONNECTIONS \ No newline at end of file diff --git a/fireblocks_client/paths/connections/get.py b/fireblocks_client/paths/connections/get.py deleted file mode 100644 index a211eb02..00000000 --- a/fireblocks_client/paths/connections/get.py +++ /dev/null @@ -1,445 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.get_connections_response import GetConnectionsResponse - -from . import path - -# Query params - - -class OrderSchema( - schemas.EnumBase, - schemas.StrSchema -): - - - class MetaOapg: - enum_value_to_name = { - "ASC": "ASC", - "DESC": "DESC", - } - - @schemas.classproperty - def ASC(cls): - return cls("ASC") - - @schemas.classproperty - def DESC(cls): - return cls("DESC") - - -class FilterSchema( - schemas.DictSchema -): - - - class MetaOapg: - - class properties: - id = schemas.StrSchema - userId = schemas.StrSchema - vaultAccountId = schemas.NumberSchema - connectionMethod = schemas.StrSchema - feeLevel = schemas.StrSchema - appUrl = schemas.StrSchema - appName = schemas.StrSchema - __annotations__ = { - "id": id, - "userId": userId, - "vaultAccountId": vaultAccountId, - "connectionMethod": connectionMethod, - "feeLevel": feeLevel, - "appUrl": appUrl, - "appName": appName, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["userId"]) -> MetaOapg.properties.userId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["vaultAccountId"]) -> MetaOapg.properties.vaultAccountId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["connectionMethod"]) -> MetaOapg.properties.connectionMethod: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["feeLevel"]) -> MetaOapg.properties.feeLevel: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["appUrl"]) -> MetaOapg.properties.appUrl: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["appName"]) -> MetaOapg.properties.appName: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "userId", "vaultAccountId", "connectionMethod", "feeLevel", "appUrl", "appName", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["userId"]) -> typing.Union[MetaOapg.properties.userId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["vaultAccountId"]) -> typing.Union[MetaOapg.properties.vaultAccountId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["connectionMethod"]) -> typing.Union[MetaOapg.properties.connectionMethod, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["feeLevel"]) -> typing.Union[MetaOapg.properties.feeLevel, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["appUrl"]) -> typing.Union[MetaOapg.properties.appUrl, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["appName"]) -> typing.Union[MetaOapg.properties.appName, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "userId", "vaultAccountId", "connectionMethod", "feeLevel", "appUrl", "appName", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - userId: typing.Union[MetaOapg.properties.userId, str, schemas.Unset] = schemas.unset, - vaultAccountId: typing.Union[MetaOapg.properties.vaultAccountId, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, - connectionMethod: typing.Union[MetaOapg.properties.connectionMethod, str, schemas.Unset] = schemas.unset, - feeLevel: typing.Union[MetaOapg.properties.feeLevel, str, schemas.Unset] = schemas.unset, - appUrl: typing.Union[MetaOapg.properties.appUrl, str, schemas.Unset] = schemas.unset, - appName: typing.Union[MetaOapg.properties.appName, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'FilterSchema': - return super().__new__( - cls, - *_args, - id=id, - userId=userId, - vaultAccountId=vaultAccountId, - connectionMethod=connectionMethod, - feeLevel=feeLevel, - appUrl=appUrl, - appName=appName, - _configuration=_configuration, - **kwargs, - ) - - -class SortSchema( - schemas.EnumBase, - schemas.StrSchema -): - - - class MetaOapg: - enum_value_to_name = { - "id": "ID", - "userId": "USER_ID", - "vaultAccountId": "VAULT_ACCOUNT_ID", - "createdAt": "CREATED_AT", - "feeLevel": "FEE_LEVEL", - "appUrl": "APP_URL", - "appName": "APP_NAME", - } - - @schemas.classproperty - def ID(cls): - return cls("id") - - @schemas.classproperty - def USER_ID(cls): - return cls("userId") - - @schemas.classproperty - def VAULT_ACCOUNT_ID(cls): - return cls("vaultAccountId") - - @schemas.classproperty - def CREATED_AT(cls): - return cls("createdAt") - - @schemas.classproperty - def FEE_LEVEL(cls): - return cls("feeLevel") - - @schemas.classproperty - def APP_URL(cls): - return cls("appUrl") - - @schemas.classproperty - def APP_NAME(cls): - return cls("appName") - - -class PageSizeSchema( - schemas.NumberSchema -): - - - class MetaOapg: - inclusive_maximum = 50 -NextSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'order': typing.Union[OrderSchema, str, ], - 'filter': typing.Union[FilterSchema, dict, frozendict.frozendict, ], - 'sort': typing.Union[SortSchema, str, ], - 'pageSize': typing.Union[PageSizeSchema, decimal.Decimal, int, float, ], - 'next': typing.Union[NextSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_order = api_client.QueryParameter( - name="order", - style=api_client.ParameterStyle.FORM, - schema=OrderSchema, - explode=True, -) -request_query_filter = api_client.QueryParameter( - name="filter", - style=api_client.ParameterStyle.FORM, - schema=FilterSchema, - explode=True, -) -request_query_sort = api_client.QueryParameter( - name="sort", - style=api_client.ParameterStyle.FORM, - schema=SortSchema, - explode=True, -) -request_query_page_size = api_client.QueryParameter( - name="pageSize", - style=api_client.ParameterStyle.FORM, - schema=PageSizeSchema, - explode=True, -) -request_query_next = api_client.QueryParameter( - name="next", - style=api_client.ParameterStyle.FORM, - schema=NextSchema, - explode=True, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor200ResponseBodyApplicationJson = GetConnectionsResponse -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -ResponseHeadersFor400 = typing_extensions.TypedDict( - 'ResponseHeadersFor400', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - headers: ResponseHeadersFor400 - body: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -ResponseHeadersFor500 = typing_extensions.TypedDict( - 'ResponseHeadersFor500', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - headers: ResponseHeadersFor500 - body: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '500': _response_for_500, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_oapg(self, params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - """ - List all open Web3 connections. - """ - query_params = {} - if params and params.get("order"): - query_params["order"] = params.get("order") - if params and params.get("filter"): - query_params["filter"] = params.get("filter") - if params and params.get("sort"): - query_params["sort"] = params.get("sort") - if params and params.get("page_size"): - query_params["page_size"] = params.get("page_size") - if params and params.get("next"): - query_params["next"] = params.get("next") - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_order, - request_query_filter, - request_query_sort, - request_query_page_size, - request_query_next, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class Get(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get(self , params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - return self._get_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - return self._get_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/connections/get.pyi b/fireblocks_client/paths/connections/get.pyi deleted file mode 100644 index eee13707..00000000 --- a/fireblocks_client/paths/connections/get.pyi +++ /dev/null @@ -1,401 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.get_connections_response import GetConnectionsResponse - -# Query params - - -class OrderSchema( - schemas.EnumBase, - schemas.StrSchema -): - - @schemas.classproperty - def ASC(cls): - return cls("ASC") - - @schemas.classproperty - def DESC(cls): - return cls("DESC") - - -class FilterSchema( - schemas.DictSchema -): - - - class MetaOapg: - - class properties: - id = schemas.StrSchema - userId = schemas.StrSchema - vaultAccountId = schemas.NumberSchema - connectionMethod = schemas.StrSchema - feeLevel = schemas.StrSchema - appUrl = schemas.StrSchema - appName = schemas.StrSchema - __annotations__ = { - "id": id, - "userId": userId, - "vaultAccountId": vaultAccountId, - "connectionMethod": connectionMethod, - "feeLevel": feeLevel, - "appUrl": appUrl, - "appName": appName, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["userId"]) -> MetaOapg.properties.userId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["vaultAccountId"]) -> MetaOapg.properties.vaultAccountId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["connectionMethod"]) -> MetaOapg.properties.connectionMethod: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["feeLevel"]) -> MetaOapg.properties.feeLevel: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["appUrl"]) -> MetaOapg.properties.appUrl: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["appName"]) -> MetaOapg.properties.appName: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "userId", "vaultAccountId", "connectionMethod", "feeLevel", "appUrl", "appName", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["userId"]) -> typing.Union[MetaOapg.properties.userId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["vaultAccountId"]) -> typing.Union[MetaOapg.properties.vaultAccountId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["connectionMethod"]) -> typing.Union[MetaOapg.properties.connectionMethod, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["feeLevel"]) -> typing.Union[MetaOapg.properties.feeLevel, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["appUrl"]) -> typing.Union[MetaOapg.properties.appUrl, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["appName"]) -> typing.Union[MetaOapg.properties.appName, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "userId", "vaultAccountId", "connectionMethod", "feeLevel", "appUrl", "appName", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - userId: typing.Union[MetaOapg.properties.userId, str, schemas.Unset] = schemas.unset, - vaultAccountId: typing.Union[MetaOapg.properties.vaultAccountId, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, - connectionMethod: typing.Union[MetaOapg.properties.connectionMethod, str, schemas.Unset] = schemas.unset, - feeLevel: typing.Union[MetaOapg.properties.feeLevel, str, schemas.Unset] = schemas.unset, - appUrl: typing.Union[MetaOapg.properties.appUrl, str, schemas.Unset] = schemas.unset, - appName: typing.Union[MetaOapg.properties.appName, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'FilterSchema': - return super().__new__( - cls, - *_args, - id=id, - userId=userId, - vaultAccountId=vaultAccountId, - connectionMethod=connectionMethod, - feeLevel=feeLevel, - appUrl=appUrl, - appName=appName, - _configuration=_configuration, - **kwargs, - ) - - -class SortSchema( - schemas.EnumBase, - schemas.StrSchema -): - - @schemas.classproperty - def ID(cls): - return cls("id") - - @schemas.classproperty - def USER_ID(cls): - return cls("userId") - - @schemas.classproperty - def VAULT_ACCOUNT_ID(cls): - return cls("vaultAccountId") - - @schemas.classproperty - def CREATED_AT(cls): - return cls("createdAt") - - @schemas.classproperty - def FEE_LEVEL(cls): - return cls("feeLevel") - - @schemas.classproperty - def APP_URL(cls): - return cls("appUrl") - - @schemas.classproperty - def APP_NAME(cls): - return cls("appName") - - -class PageSizeSchema( - schemas.NumberSchema -): - pass -NextSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'order': typing.Union[OrderSchema, str, ], - 'filter': typing.Union[FilterSchema, dict, frozendict.frozendict, ], - 'sort': typing.Union[SortSchema, str, ], - 'pageSize': typing.Union[PageSizeSchema, decimal.Decimal, int, float, ], - 'next': typing.Union[NextSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_order = api_client.QueryParameter( - name="order", - style=api_client.ParameterStyle.FORM, - schema=OrderSchema, - explode=True, -) -request_query_filter = api_client.QueryParameter( - name="filter", - style=api_client.ParameterStyle.FORM, - schema=FilterSchema, - explode=True, -) -request_query_sort = api_client.QueryParameter( - name="sort", - style=api_client.ParameterStyle.FORM, - schema=SortSchema, - explode=True, -) -request_query_page_size = api_client.QueryParameter( - name="pageSize", - style=api_client.ParameterStyle.FORM, - schema=PageSizeSchema, - explode=True, -) -request_query_next = api_client.QueryParameter( - name="next", - style=api_client.ParameterStyle.FORM, - schema=NextSchema, - explode=True, -) -XRequestIDSchema = schemas.StrSchema -SchemaFor200ResponseBodyApplicationJson = GetConnectionsResponse -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -ResponseHeadersFor400 = typing_extensions.TypedDict( - 'ResponseHeadersFor400', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - headers: ResponseHeadersFor400 - body: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -ResponseHeadersFor500 = typing_extensions.TypedDict( - 'ResponseHeadersFor500', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - headers: ResponseHeadersFor500 - body: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_oapg(self, params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - """ - List all open Web3 connections. - """ - query_params = {} - if params and params.get("order"): - query_params["order"] = params.get("order") - if params and params.get("filter"): - query_params["filter"] = params.get("filter") - if params and params.get("sort"): - query_params["sort"] = params.get("sort") - if params and params.get("page_size"): - query_params["page_size"] = params.get("page_size") - if params and params.get("next"): - query_params["next"] = params.get("next") - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_order, - request_query_filter, - request_query_sort, - request_query_page_size, - request_query_next, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class Get(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get(self , params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - return self._get_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - return self._get_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/connections_wc/__init__.py b/fireblocks_client/paths/connections_wc/__init__.py deleted file mode 100644 index 37ed53a8..00000000 --- a/fireblocks_client/paths/connections_wc/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.connections_wc import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.CONNECTIONS_WC \ No newline at end of file diff --git a/fireblocks_client/paths/connections_wc/post.py b/fireblocks_client/paths/connections_wc/post.py deleted file mode 100644 index 03e7cd0a..00000000 --- a/fireblocks_client/paths/connections_wc/post.py +++ /dev/null @@ -1,197 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.create_connection_request import CreateConnectionRequest -from fireblocks_client.model.create_connection_response import CreateConnectionResponse - -from . import path - -# body param -SchemaForRequestBodyApplicationJson = CreateConnectionRequest - - -request_body_create_connection_request = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor201ResponseBodyApplicationJson = CreateConnectionResponse -ResponseHeadersFor201 = typing_extensions.TypedDict( - 'ResponseHeadersFor201', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor201(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor201ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor201 - - -_response_for_201 = api_client.OpenApiResponse( - response_cls=ApiResponseFor201, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor201ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -ResponseHeadersFor400 = typing_extensions.TypedDict( - 'ResponseHeadersFor400', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - headers: ResponseHeadersFor400 - body: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -ResponseHeadersFor500 = typing_extensions.TypedDict( - 'ResponseHeadersFor500', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - headers: ResponseHeadersFor500 - body: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '201': _response_for_201, - '400': _response_for_400, - '500': _response_for_500, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _create_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - """ - Create a new Web3 connection. - """ - used_path = path.value - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_create_connection_request.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class Create(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def create(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._create_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._create_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/connections_wc/post.pyi b/fireblocks_client/paths/connections_wc/post.pyi deleted file mode 100644 index d921e324..00000000 --- a/fireblocks_client/paths/connections_wc/post.pyi +++ /dev/null @@ -1,175 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.create_connection_request import CreateConnectionRequest -from fireblocks_client.model.create_connection_response import CreateConnectionResponse - -# body param -SchemaForRequestBodyApplicationJson = CreateConnectionRequest - - -request_body_create_connection_request = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -XRequestIDSchema = schemas.StrSchema -SchemaFor201ResponseBodyApplicationJson = CreateConnectionResponse -ResponseHeadersFor201 = typing_extensions.TypedDict( - 'ResponseHeadersFor201', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor201(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor201ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor201 - - -_response_for_201 = api_client.OpenApiResponse( - response_cls=ApiResponseFor201, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor201ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -ResponseHeadersFor400 = typing_extensions.TypedDict( - 'ResponseHeadersFor400', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - headers: ResponseHeadersFor400 - body: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -ResponseHeadersFor500 = typing_extensions.TypedDict( - 'ResponseHeadersFor500', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - headers: ResponseHeadersFor500 - body: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _create_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - """ - Create a new Web3 connection. - """ - used_path = path.value - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_create_connection_request.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class Create(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def create(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._create_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._create_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/connections_wc_id/__init__.py b/fireblocks_client/paths/connections_wc_id/__init__.py deleted file mode 100644 index 00c0f82d..00000000 --- a/fireblocks_client/paths/connections_wc_id/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.connections_wc_id import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.CONNECTIONS_WC_ID \ No newline at end of file diff --git a/fireblocks_client/paths/connections_wc_id/delete.py b/fireblocks_client/paths/connections_wc_id/delete.py deleted file mode 100644 index 512e208c..00000000 --- a/fireblocks_client/paths/connections_wc_id/delete.py +++ /dev/null @@ -1,205 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from . import path - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - headers: ResponseHeadersFor200 - body: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -ResponseHeadersFor404 = typing_extensions.TypedDict( - 'ResponseHeadersFor404', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - headers: ResponseHeadersFor404 - body: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -ResponseHeadersFor500 = typing_extensions.TypedDict( - 'ResponseHeadersFor500', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - headers: ResponseHeadersFor500 - body: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, - '404': _response_for_404, - '500': _response_for_500, -} - - -class BaseApi(api_client.Api): - - def _remove_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Remove an existing Web3 connection. - """ - path_params = {} - for parameter in ( - request_path_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='delete'.upper(), - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class Remove(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def remove(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._remove_oapg(params, request_options) - - -class ApiFordelete(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def delete(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._remove_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/connections_wc_id/delete.pyi b/fireblocks_client/paths/connections_wc_id/delete.pyi deleted file mode 100644 index ad0824fb..00000000 --- a/fireblocks_client/paths/connections_wc_id/delete.pyi +++ /dev/null @@ -1,183 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -XRequestIDSchema = schemas.StrSchema -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - headers: ResponseHeadersFor200 - body: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -ResponseHeadersFor404 = typing_extensions.TypedDict( - 'ResponseHeadersFor404', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - headers: ResponseHeadersFor404 - body: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -ResponseHeadersFor500 = typing_extensions.TypedDict( - 'ResponseHeadersFor500', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - headers: ResponseHeadersFor500 - body: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - headers=[ - x_request_id_parameter, - ] -) - - -class BaseApi(api_client.Api): - - def _remove_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Remove an existing Web3 connection. - """ - path_params = {} - for parameter in ( - request_path_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='delete'.upper(), - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class Remove(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def remove(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._remove_oapg(params, request_options) - - -class ApiFordelete(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def delete(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._remove_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/connections_wc_id/put.py b/fireblocks_client/paths/connections_wc_id/put.py deleted file mode 100644 index b4c7fe1f..00000000 --- a/fireblocks_client/paths/connections_wc_id/put.py +++ /dev/null @@ -1,260 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.respond_to_connection_request import RespondToConnectionRequest - -from . import path - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -# body param -SchemaForRequestBodyApplicationJson = RespondToConnectionRequest - - -request_body_respond_to_connection_request = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - headers: ResponseHeadersFor200 - body: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -ResponseHeadersFor400 = typing_extensions.TypedDict( - 'ResponseHeadersFor400', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - headers: ResponseHeadersFor400 - body: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -ResponseHeadersFor404 = typing_extensions.TypedDict( - 'ResponseHeadersFor404', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - headers: ResponseHeadersFor404 - body: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -ResponseHeadersFor500 = typing_extensions.TypedDict( - 'ResponseHeadersFor500', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - headers: ResponseHeadersFor500 - body: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '404': _response_for_404, - '500': _response_for_500, -} - - -class BaseApi(api_client.Api): - - def _submit_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - """ - Respond to a pending Web3 connection request. - """ - path_params = {} - for parameter in ( - request_path_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_respond_to_connection_request.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='put'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class Submit(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def submit(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._submit_oapg(params, request_options) - - -class ApiForput(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def put(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._submit_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/connections_wc_id/put.pyi b/fireblocks_client/paths/connections_wc_id/put.pyi deleted file mode 100644 index f9220730..00000000 --- a/fireblocks_client/paths/connections_wc_id/put.pyi +++ /dev/null @@ -1,232 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.respond_to_connection_request import RespondToConnectionRequest - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -# body param -SchemaForRequestBodyApplicationJson = RespondToConnectionRequest - - -request_body_respond_to_connection_request = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -XRequestIDSchema = schemas.StrSchema -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - headers: ResponseHeadersFor200 - body: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -ResponseHeadersFor400 = typing_extensions.TypedDict( - 'ResponseHeadersFor400', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - headers: ResponseHeadersFor400 - body: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -ResponseHeadersFor404 = typing_extensions.TypedDict( - 'ResponseHeadersFor404', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - headers: ResponseHeadersFor404 - body: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -ResponseHeadersFor500 = typing_extensions.TypedDict( - 'ResponseHeadersFor500', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - headers: ResponseHeadersFor500 - body: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - headers=[ - x_request_id_parameter, - ] -) - - -class BaseApi(api_client.Api): - - def _submit_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - """ - Respond to a pending Web3 connection request. - """ - path_params = {} - for parameter in ( - request_path_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_respond_to_connection_request.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='put'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class Submit(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def submit(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._submit_oapg(params, request_options) - - -class ApiForput(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def put(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._submit_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/contracts/__init__.py b/fireblocks_client/paths/contracts/__init__.py deleted file mode 100644 index c20487a0..00000000 --- a/fireblocks_client/paths/contracts/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.contracts import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.CONTRACTS \ No newline at end of file diff --git a/fireblocks_client/paths/contracts/get.py b/fireblocks_client/paths/contracts/get.py deleted file mode 100644 index 67186b63..00000000 --- a/fireblocks_client/paths/contracts/get.py +++ /dev/null @@ -1,186 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.unmanaged_wallet import UnmanagedWallet -from fireblocks_client.model.error import Error - -from . import path - -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) - - -class SchemaFor200ResponseBody( - schemas.ListSchema -): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['UnmanagedWallet']: - return UnmanagedWallet - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['UnmanagedWallet'], typing.List['UnmanagedWallet']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'SchemaFor200ResponseBody': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'UnmanagedWallet': - return super().__getitem__(i) -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, - 'default': _response_for_default, -} -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_contracts_oapg(self, request_options: RequestOptions = None): - """ - List contracts - """ - used_path = path.value - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetContracts(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_contracts(self , request_options: RequestOptions = None): - return self._get_contracts_oapg(request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , request_options: RequestOptions = None): - return self._get_contracts_oapg(request_options) - - diff --git a/fireblocks_client/paths/contracts/get.pyi b/fireblocks_client/paths/contracts/get.pyi deleted file mode 100644 index bb7cf44b..00000000 --- a/fireblocks_client/paths/contracts/get.pyi +++ /dev/null @@ -1,170 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.unmanaged_wallet import UnmanagedWallet -from fireblocks_client.model.error import Error - -XRequestIDSchema = schemas.StrSchema - - -class SchemaFor200ResponseBody( - schemas.ListSchema -): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['UnmanagedWallet']: - return UnmanagedWallet - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['UnmanagedWallet'], typing.List['UnmanagedWallet']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'SchemaFor200ResponseBody': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'UnmanagedWallet': - return super().__getitem__(i) -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_contracts_oapg(self, request_options: RequestOptions = None): - """ - List contracts - """ - used_path = path.value - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetContracts(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_contracts(self , request_options: RequestOptions = None): - return self._get_contracts_oapg(request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , request_options: RequestOptions = None): - return self._get_contracts_oapg(request_options) - - diff --git a/fireblocks_client/paths/contracts/post.py b/fireblocks_client/paths/contracts/post.py deleted file mode 100644 index 63934b4c..00000000 --- a/fireblocks_client/paths/contracts/post.py +++ /dev/null @@ -1,230 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.unmanaged_wallet import UnmanagedWallet -from fireblocks_client.model.error import Error - -from . import path - -# body param - - -class SchemaForRequestBodyApplicationJson( - schemas.AnyTypeSchema, -): - - - class MetaOapg: - - class properties: - name = schemas.StrSchema - __annotations__ = { - "name": name, - } - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaForRequestBodyApplicationJson': - return super().__new__( - cls, - *_args, - name=name, - _configuration=_configuration, - **kwargs, - ) - - -request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor200ResponseBody = UnmanagedWallet -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, - 'default': _response_for_default, -} -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _create_contract_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - """ - Create a contract - """ - used_path = path.value - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_any_type.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class CreateContract(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def create_contract(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._create_contract_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._create_contract_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/contracts/post.pyi b/fireblocks_client/paths/contracts/post.pyi deleted file mode 100644 index dd7c0e50..00000000 --- a/fireblocks_client/paths/contracts/post.pyi +++ /dev/null @@ -1,214 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.unmanaged_wallet import UnmanagedWallet -from fireblocks_client.model.error import Error - -# body param - - -class SchemaForRequestBodyApplicationJson( - schemas.AnyTypeSchema, -): - - - class MetaOapg: - - class properties: - name = schemas.StrSchema - __annotations__ = { - "name": name, - } - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaForRequestBodyApplicationJson': - return super().__new__( - cls, - *_args, - name=name, - _configuration=_configuration, - **kwargs, - ) - - -request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, -) -XRequestIDSchema = schemas.StrSchema -SchemaFor200ResponseBody = UnmanagedWallet -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _create_contract_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - """ - Create a contract - """ - used_path = path.value - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_any_type.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class CreateContract(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def create_contract(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._create_contract_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._create_contract_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/contracts_contract_id/__init__.py b/fireblocks_client/paths/contracts_contract_id/__init__.py deleted file mode 100644 index 29a46f90..00000000 --- a/fireblocks_client/paths/contracts_contract_id/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.contracts_contract_id import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.CONTRACTS_CONTRACT_ID \ No newline at end of file diff --git a/fireblocks_client/paths/contracts_contract_id/delete.py b/fireblocks_client/paths/contracts_contract_id/delete.py deleted file mode 100644 index b4c07ed6..00000000 --- a/fireblocks_client/paths/contracts_contract_id/delete.py +++ /dev/null @@ -1,198 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error import Error - -from . import path - -# Path params -ContractIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'contractId': typing.Union[ContractIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_contract_id = api_client.PathParameter( - name="contractId", - style=api_client.ParameterStyle.SIMPLE, - schema=ContractIdSchema, - required=True, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -ResponseHeadersFor201 = typing_extensions.TypedDict( - 'ResponseHeadersFor201', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor201(api_client.ApiResponse): - response: urllib3.HTTPResponse - headers: ResponseHeadersFor201 - body: schemas.Unset = schemas.unset - - -_response_for_201 = api_client.OpenApiResponse( - response_cls=ApiResponseFor201, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '201': _response_for_201, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _delete_contract_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Delete a contract - """ - path_params = {} - for parameter in ( - request_path_contract_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_contract_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='delete'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class DeleteContract(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def delete_contract(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._delete_contract_oapg(params, request_options) - - -class ApiFordelete(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def delete(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._delete_contract_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/contracts_contract_id/delete.pyi b/fireblocks_client/paths/contracts_contract_id/delete.pyi deleted file mode 100644 index 92551280..00000000 --- a/fireblocks_client/paths/contracts_contract_id/delete.pyi +++ /dev/null @@ -1,182 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error import Error - -# Path params -ContractIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'contractId': typing.Union[ContractIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_contract_id = api_client.PathParameter( - name="contractId", - style=api_client.ParameterStyle.SIMPLE, - schema=ContractIdSchema, - required=True, -) -XRequestIDSchema = schemas.StrSchema -ResponseHeadersFor201 = typing_extensions.TypedDict( - 'ResponseHeadersFor201', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor201(api_client.ApiResponse): - response: urllib3.HTTPResponse - headers: ResponseHeadersFor201 - body: schemas.Unset = schemas.unset - - -_response_for_201 = api_client.OpenApiResponse( - response_cls=ApiResponseFor201, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _delete_contract_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Delete a contract - """ - path_params = {} - for parameter in ( - request_path_contract_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_contract_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='delete'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class DeleteContract(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def delete_contract(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._delete_contract_oapg(params, request_options) - - -class ApiFordelete(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def delete(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._delete_contract_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/contracts_contract_id/get.py b/fireblocks_client/paths/contracts_contract_id/get.py deleted file mode 100644 index 3d733464..00000000 --- a/fireblocks_client/paths/contracts_contract_id/get.py +++ /dev/null @@ -1,207 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.unmanaged_wallet import UnmanagedWallet -from fireblocks_client.model.error import Error - -from . import path - -# Path params -ContractIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'contractId': typing.Union[ContractIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_contract_id = api_client.PathParameter( - name="contractId", - style=api_client.ParameterStyle.SIMPLE, - schema=ContractIdSchema, - required=True, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor200ResponseBody = UnmanagedWallet -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, - 'default': _response_for_default, -} -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_contract_by_id_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Find a specific contract - """ - path_params = {} - for parameter in ( - request_path_contract_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_contract_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetContractById(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_contract_by_id(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_contract_by_id_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_contract_by_id_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/contracts_contract_id/get.pyi b/fireblocks_client/paths/contracts_contract_id/get.pyi deleted file mode 100644 index 81d846e3..00000000 --- a/fireblocks_client/paths/contracts_contract_id/get.pyi +++ /dev/null @@ -1,191 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.unmanaged_wallet import UnmanagedWallet -from fireblocks_client.model.error import Error - -# Path params -ContractIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'contractId': typing.Union[ContractIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_contract_id = api_client.PathParameter( - name="contractId", - style=api_client.ParameterStyle.SIMPLE, - schema=ContractIdSchema, - required=True, -) -XRequestIDSchema = schemas.StrSchema -SchemaFor200ResponseBody = UnmanagedWallet -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_contract_by_id_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Find a specific contract - """ - path_params = {} - for parameter in ( - request_path_contract_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_contract_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetContractById(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_contract_by_id(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_contract_by_id_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_contract_by_id_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/contracts_contract_id_asset_id/__init__.py b/fireblocks_client/paths/contracts_contract_id_asset_id/__init__.py deleted file mode 100644 index 785fbbcc..00000000 --- a/fireblocks_client/paths/contracts_contract_id_asset_id/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.contracts_contract_id_asset_id import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.CONTRACTS_CONTRACT_ID_ASSET_ID \ No newline at end of file diff --git a/fireblocks_client/paths/contracts_contract_id_asset_id/delete.py b/fireblocks_client/paths/contracts_contract_id_asset_id/delete.py deleted file mode 100644 index 137a227c..00000000 --- a/fireblocks_client/paths/contracts_contract_id_asset_id/delete.py +++ /dev/null @@ -1,208 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error import Error - -from . import path - -# Path params -ContractIdSchema = schemas.StrSchema -AssetIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'contractId': typing.Union[ContractIdSchema, str, ], - 'assetId': typing.Union[AssetIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_contract_id = api_client.PathParameter( - name="contractId", - style=api_client.ParameterStyle.SIMPLE, - schema=ContractIdSchema, - required=True, -) -request_path_asset_id = api_client.PathParameter( - name="assetId", - style=api_client.ParameterStyle.SIMPLE, - schema=AssetIdSchema, - required=True, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -ResponseHeadersFor201 = typing_extensions.TypedDict( - 'ResponseHeadersFor201', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor201(api_client.ApiResponse): - response: urllib3.HTTPResponse - headers: ResponseHeadersFor201 - body: schemas.Unset = schemas.unset - - -_response_for_201 = api_client.OpenApiResponse( - response_cls=ApiResponseFor201, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '201': _response_for_201, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _remove_asset_from_contract_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Delete a contract asset - """ - path_params = {} - for parameter in ( - request_path_contract_id, - request_path_asset_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_contract_id, - request_path_asset_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='delete'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class RemoveAssetFromContract(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def remove_asset_from_contract(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._remove_asset_from_contract_oapg(params, request_options) - - -class ApiFordelete(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def delete(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._remove_asset_from_contract_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/contracts_contract_id_asset_id/delete.pyi b/fireblocks_client/paths/contracts_contract_id_asset_id/delete.pyi deleted file mode 100644 index 60992155..00000000 --- a/fireblocks_client/paths/contracts_contract_id_asset_id/delete.pyi +++ /dev/null @@ -1,192 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error import Error - -# Path params -ContractIdSchema = schemas.StrSchema -AssetIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'contractId': typing.Union[ContractIdSchema, str, ], - 'assetId': typing.Union[AssetIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_contract_id = api_client.PathParameter( - name="contractId", - style=api_client.ParameterStyle.SIMPLE, - schema=ContractIdSchema, - required=True, -) -request_path_asset_id = api_client.PathParameter( - name="assetId", - style=api_client.ParameterStyle.SIMPLE, - schema=AssetIdSchema, - required=True, -) -XRequestIDSchema = schemas.StrSchema -ResponseHeadersFor201 = typing_extensions.TypedDict( - 'ResponseHeadersFor201', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor201(api_client.ApiResponse): - response: urllib3.HTTPResponse - headers: ResponseHeadersFor201 - body: schemas.Unset = schemas.unset - - -_response_for_201 = api_client.OpenApiResponse( - response_cls=ApiResponseFor201, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _remove_asset_from_contract_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Delete a contract asset - """ - path_params = {} - for parameter in ( - request_path_contract_id, - request_path_asset_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_contract_id, - request_path_asset_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='delete'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class RemoveAssetFromContract(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def remove_asset_from_contract(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._remove_asset_from_contract_oapg(params, request_options) - - -class ApiFordelete(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def delete(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._remove_asset_from_contract_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/contracts_contract_id_asset_id/get.py b/fireblocks_client/paths/contracts_contract_id_asset_id/get.py deleted file mode 100644 index 30d38c0b..00000000 --- a/fireblocks_client/paths/contracts_contract_id_asset_id/get.py +++ /dev/null @@ -1,217 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.external_wallet_asset import ExternalWalletAsset -from fireblocks_client.model.error import Error - -from . import path - -# Path params -ContractIdSchema = schemas.StrSchema -AssetIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'contractId': typing.Union[ContractIdSchema, str, ], - 'assetId': typing.Union[AssetIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_contract_id = api_client.PathParameter( - name="contractId", - style=api_client.ParameterStyle.SIMPLE, - schema=ContractIdSchema, - required=True, -) -request_path_asset_id = api_client.PathParameter( - name="assetId", - style=api_client.ParameterStyle.SIMPLE, - schema=AssetIdSchema, - required=True, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor200ResponseBody = ExternalWalletAsset -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, - 'default': _response_for_default, -} -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_asset_in_contract_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Find a contract asset - """ - path_params = {} - for parameter in ( - request_path_contract_id, - request_path_asset_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_contract_id, - request_path_asset_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetAssetInContract(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_asset_in_contract(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_asset_in_contract_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_asset_in_contract_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/contracts_contract_id_asset_id/get.pyi b/fireblocks_client/paths/contracts_contract_id_asset_id/get.pyi deleted file mode 100644 index a6465bfd..00000000 --- a/fireblocks_client/paths/contracts_contract_id_asset_id/get.pyi +++ /dev/null @@ -1,201 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.external_wallet_asset import ExternalWalletAsset -from fireblocks_client.model.error import Error - -# Path params -ContractIdSchema = schemas.StrSchema -AssetIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'contractId': typing.Union[ContractIdSchema, str, ], - 'assetId': typing.Union[AssetIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_contract_id = api_client.PathParameter( - name="contractId", - style=api_client.ParameterStyle.SIMPLE, - schema=ContractIdSchema, - required=True, -) -request_path_asset_id = api_client.PathParameter( - name="assetId", - style=api_client.ParameterStyle.SIMPLE, - schema=AssetIdSchema, - required=True, -) -XRequestIDSchema = schemas.StrSchema -SchemaFor200ResponseBody = ExternalWalletAsset -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_asset_in_contract_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Find a contract asset - """ - path_params = {} - for parameter in ( - request_path_contract_id, - request_path_asset_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_contract_id, - request_path_asset_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetAssetInContract(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_asset_in_contract(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_asset_in_contract_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_asset_in_contract_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/contracts_contract_id_asset_id/post.py b/fireblocks_client/paths/contracts_contract_id_asset_id/post.py deleted file mode 100644 index 960c08d8..00000000 --- a/fireblocks_client/paths/contracts_contract_id_asset_id/post.py +++ /dev/null @@ -1,301 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.external_wallet_asset import ExternalWalletAsset -from fireblocks_client.model.error import Error - -from . import path - -# Path params -ContractIdSchema = schemas.StrSchema -AssetIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'contractId': typing.Union[ContractIdSchema, str, ], - 'assetId': typing.Union[AssetIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_contract_id = api_client.PathParameter( - name="contractId", - style=api_client.ParameterStyle.SIMPLE, - schema=ContractIdSchema, - required=True, -) -request_path_asset_id = api_client.PathParameter( - name="assetId", - style=api_client.ParameterStyle.SIMPLE, - schema=AssetIdSchema, - required=True, -) -# body param - - -class SchemaForRequestBodyApplicationJson( - schemas.AnyTypeSchema, -): - - - class MetaOapg: - required = { - "address", - } - - class properties: - address = schemas.StrSchema - tag = schemas.StrSchema - __annotations__ = { - "address": address, - "tag": tag, - } - - - address: MetaOapg.properties.address - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["address"]) -> MetaOapg.properties.address: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["tag"]) -> MetaOapg.properties.tag: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["address", "tag", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["address"]) -> MetaOapg.properties.address: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["tag"]) -> typing.Union[MetaOapg.properties.tag, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["address", "tag", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - address: typing.Union[MetaOapg.properties.address, str, ], - tag: typing.Union[MetaOapg.properties.tag, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaForRequestBodyApplicationJson': - return super().__new__( - cls, - *_args, - address=address, - tag=tag, - _configuration=_configuration, - **kwargs, - ) - - -request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor200ResponseBody = ExternalWalletAsset -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, - 'default': _response_for_default, -} -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _add_asset_to_contract_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - """ - Add an asset to a contract - """ - path_params = {} - for parameter in ( - request_path_contract_id, - request_path_asset_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_contract_id, - request_path_asset_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_any_type.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class AddAssetToContract(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def add_asset_to_contract(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._add_asset_to_contract_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._add_asset_to_contract_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/contracts_contract_id_asset_id/post.pyi b/fireblocks_client/paths/contracts_contract_id_asset_id/post.pyi deleted file mode 100644 index cf5c1fcf..00000000 --- a/fireblocks_client/paths/contracts_contract_id_asset_id/post.pyi +++ /dev/null @@ -1,285 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.external_wallet_asset import ExternalWalletAsset -from fireblocks_client.model.error import Error - -# Path params -ContractIdSchema = schemas.StrSchema -AssetIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'contractId': typing.Union[ContractIdSchema, str, ], - 'assetId': typing.Union[AssetIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_contract_id = api_client.PathParameter( - name="contractId", - style=api_client.ParameterStyle.SIMPLE, - schema=ContractIdSchema, - required=True, -) -request_path_asset_id = api_client.PathParameter( - name="assetId", - style=api_client.ParameterStyle.SIMPLE, - schema=AssetIdSchema, - required=True, -) -# body param - - -class SchemaForRequestBodyApplicationJson( - schemas.AnyTypeSchema, -): - - - class MetaOapg: - required = { - "address", - } - - class properties: - address = schemas.StrSchema - tag = schemas.StrSchema - __annotations__ = { - "address": address, - "tag": tag, - } - - - address: MetaOapg.properties.address - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["address"]) -> MetaOapg.properties.address: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["tag"]) -> MetaOapg.properties.tag: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["address", "tag", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["address"]) -> MetaOapg.properties.address: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["tag"]) -> typing.Union[MetaOapg.properties.tag, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["address", "tag", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - address: typing.Union[MetaOapg.properties.address, str, ], - tag: typing.Union[MetaOapg.properties.tag, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaForRequestBodyApplicationJson': - return super().__new__( - cls, - *_args, - address=address, - tag=tag, - _configuration=_configuration, - **kwargs, - ) - - -request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, -) -XRequestIDSchema = schemas.StrSchema -SchemaFor200ResponseBody = ExternalWalletAsset -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _add_asset_to_contract_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - """ - Add an asset to a contract - """ - path_params = {} - for parameter in ( - request_path_contract_id, - request_path_asset_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_contract_id, - request_path_asset_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_any_type.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class AddAssetToContract(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def add_asset_to_contract(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._add_asset_to_contract_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._add_asset_to_contract_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/estimate_network_fee/__init__.py b/fireblocks_client/paths/estimate_network_fee/__init__.py deleted file mode 100644 index 6639de6d..00000000 --- a/fireblocks_client/paths/estimate_network_fee/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.estimate_network_fee import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.ESTIMATE_NETWORK_FEE \ No newline at end of file diff --git a/fireblocks_client/paths/estimate_network_fee/get.py b/fireblocks_client/paths/estimate_network_fee/get.py deleted file mode 100644 index a7b12944..00000000 --- a/fireblocks_client/paths/estimate_network_fee/get.py +++ /dev/null @@ -1,205 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.estimated_network_fee_response import EstimatedNetworkFeeResponse -from fireblocks_client.model.error import Error - -from . import path - -# Query params -AssetIdSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - 'assetId': typing.Union[AssetIdSchema, str, ], - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_asset_id = api_client.QueryParameter( - name="assetId", - style=api_client.ParameterStyle.FORM, - schema=AssetIdSchema, - required=True, - explode=True, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor200ResponseBody = EstimatedNetworkFeeResponse -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, - 'default': _response_for_default, -} -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _estimate_network_fee_oapg(self, params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - """ - Estimate the required fee for an asset - """ - query_params = {} - if params and params.get("asset_id"): - query_params["asset_id"] = params.get("asset_id") - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_asset_id, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class EstimateNetworkFee(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def estimate_network_fee(self , params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - return self._estimate_network_fee_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - return self._estimate_network_fee_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/estimate_network_fee/get.pyi b/fireblocks_client/paths/estimate_network_fee/get.pyi deleted file mode 100644 index 71219d06..00000000 --- a/fireblocks_client/paths/estimate_network_fee/get.pyi +++ /dev/null @@ -1,189 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.estimated_network_fee_response import EstimatedNetworkFeeResponse -from fireblocks_client.model.error import Error - -# Query params -AssetIdSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - 'assetId': typing.Union[AssetIdSchema, str, ], - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_asset_id = api_client.QueryParameter( - name="assetId", - style=api_client.ParameterStyle.FORM, - schema=AssetIdSchema, - required=True, - explode=True, -) -XRequestIDSchema = schemas.StrSchema -SchemaFor200ResponseBody = EstimatedNetworkFeeResponse -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _estimate_network_fee_oapg(self, params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - """ - Estimate the required fee for an asset - """ - query_params = {} - if params and params.get("asset_id"): - query_params["asset_id"] = params.get("asset_id") - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_asset_id, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class EstimateNetworkFee(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def estimate_network_fee(self , params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - return self._estimate_network_fee_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - return self._estimate_network_fee_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/exchange_accounts/__init__.py b/fireblocks_client/paths/exchange_accounts/__init__.py deleted file mode 100644 index d675756c..00000000 --- a/fireblocks_client/paths/exchange_accounts/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.exchange_accounts import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.EXCHANGE_ACCOUNTS \ No newline at end of file diff --git a/fireblocks_client/paths/exchange_accounts/get.py b/fireblocks_client/paths/exchange_accounts/get.py deleted file mode 100644 index bc34231b..00000000 --- a/fireblocks_client/paths/exchange_accounts/get.py +++ /dev/null @@ -1,186 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.exchange_account import ExchangeAccount -from fireblocks_client.model.error import Error - -from . import path - -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) - - -class SchemaFor200ResponseBody( - schemas.ListSchema -): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['ExchangeAccount']: - return ExchangeAccount - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['ExchangeAccount'], typing.List['ExchangeAccount']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'SchemaFor200ResponseBody': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'ExchangeAccount': - return super().__getitem__(i) -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, - 'default': _response_for_default, -} -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_exchange_accounts_oapg(self, request_options: RequestOptions = None): - """ - List exchange accounts - """ - used_path = path.value - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetExchangeAccounts(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_exchange_accounts(self , request_options: RequestOptions = None): - return self._get_exchange_accounts_oapg(request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , request_options: RequestOptions = None): - return self._get_exchange_accounts_oapg(request_options) - - diff --git a/fireblocks_client/paths/exchange_accounts/get.pyi b/fireblocks_client/paths/exchange_accounts/get.pyi deleted file mode 100644 index bad82dc6..00000000 --- a/fireblocks_client/paths/exchange_accounts/get.pyi +++ /dev/null @@ -1,170 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.exchange_account import ExchangeAccount -from fireblocks_client.model.error import Error - -XRequestIDSchema = schemas.StrSchema - - -class SchemaFor200ResponseBody( - schemas.ListSchema -): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['ExchangeAccount']: - return ExchangeAccount - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['ExchangeAccount'], typing.List['ExchangeAccount']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'SchemaFor200ResponseBody': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'ExchangeAccount': - return super().__getitem__(i) -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_exchange_accounts_oapg(self, request_options: RequestOptions = None): - """ - List exchange accounts - """ - used_path = path.value - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetExchangeAccounts(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_exchange_accounts(self , request_options: RequestOptions = None): - return self._get_exchange_accounts_oapg(request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , request_options: RequestOptions = None): - return self._get_exchange_accounts_oapg(request_options) - - diff --git a/fireblocks_client/paths/exchange_accounts_exchange_account_id/__init__.py b/fireblocks_client/paths/exchange_accounts_exchange_account_id/__init__.py deleted file mode 100644 index 1c5b6800..00000000 --- a/fireblocks_client/paths/exchange_accounts_exchange_account_id/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.exchange_accounts_exchange_account_id import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.EXCHANGE_ACCOUNTS_EXCHANGE_ACCOUNT_ID \ No newline at end of file diff --git a/fireblocks_client/paths/exchange_accounts_exchange_account_id/get.py b/fireblocks_client/paths/exchange_accounts_exchange_account_id/get.py deleted file mode 100644 index 76b2b945..00000000 --- a/fireblocks_client/paths/exchange_accounts_exchange_account_id/get.py +++ /dev/null @@ -1,207 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.exchange_account import ExchangeAccount -from fireblocks_client.model.error import Error - -from . import path - -# Path params -ExchangeAccountIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'exchangeAccountId': typing.Union[ExchangeAccountIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_exchange_account_id = api_client.PathParameter( - name="exchangeAccountId", - style=api_client.ParameterStyle.SIMPLE, - schema=ExchangeAccountIdSchema, - required=True, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor200ResponseBody = ExchangeAccount -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, - 'default': _response_for_default, -} -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_exchange_account_by_id_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Find a specific exchange account - """ - path_params = {} - for parameter in ( - request_path_exchange_account_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_exchange_account_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetExchangeAccountById(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_exchange_account_by_id(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_exchange_account_by_id_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_exchange_account_by_id_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/exchange_accounts_exchange_account_id/get.pyi b/fireblocks_client/paths/exchange_accounts_exchange_account_id/get.pyi deleted file mode 100644 index 4e9c5f47..00000000 --- a/fireblocks_client/paths/exchange_accounts_exchange_account_id/get.pyi +++ /dev/null @@ -1,191 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.exchange_account import ExchangeAccount -from fireblocks_client.model.error import Error - -# Path params -ExchangeAccountIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'exchangeAccountId': typing.Union[ExchangeAccountIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_exchange_account_id = api_client.PathParameter( - name="exchangeAccountId", - style=api_client.ParameterStyle.SIMPLE, - schema=ExchangeAccountIdSchema, - required=True, -) -XRequestIDSchema = schemas.StrSchema -SchemaFor200ResponseBody = ExchangeAccount -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_exchange_account_by_id_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Find a specific exchange account - """ - path_params = {} - for parameter in ( - request_path_exchange_account_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_exchange_account_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetExchangeAccountById(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_exchange_account_by_id(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_exchange_account_by_id_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_exchange_account_by_id_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/exchange_accounts_exchange_account_id_asset_id/__init__.py b/fireblocks_client/paths/exchange_accounts_exchange_account_id_asset_id/__init__.py deleted file mode 100644 index 8f5b4400..00000000 --- a/fireblocks_client/paths/exchange_accounts_exchange_account_id_asset_id/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.exchange_accounts_exchange_account_id_asset_id import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.EXCHANGE_ACCOUNTS_EXCHANGE_ACCOUNT_ID_ASSET_ID \ No newline at end of file diff --git a/fireblocks_client/paths/exchange_accounts_exchange_account_id_asset_id/get.py b/fireblocks_client/paths/exchange_accounts_exchange_account_id_asset_id/get.py deleted file mode 100644 index ade0a5c7..00000000 --- a/fireblocks_client/paths/exchange_accounts_exchange_account_id_asset_id/get.py +++ /dev/null @@ -1,217 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.exchange_asset import ExchangeAsset -from fireblocks_client.model.error import Error - -from . import path - -# Path params -ExchangeAccountIdSchema = schemas.StrSchema -AssetIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'exchangeAccountId': typing.Union[ExchangeAccountIdSchema, str, ], - 'assetId': typing.Union[AssetIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_exchange_account_id = api_client.PathParameter( - name="exchangeAccountId", - style=api_client.ParameterStyle.SIMPLE, - schema=ExchangeAccountIdSchema, - required=True, -) -request_path_asset_id = api_client.PathParameter( - name="assetId", - style=api_client.ParameterStyle.SIMPLE, - schema=AssetIdSchema, - required=True, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor200ResponseBody = ExchangeAsset -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, - 'default': _response_for_default, -} -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_exchange_account_asset_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Find an asset for an exchange account - """ - path_params = {} - for parameter in ( - request_path_exchange_account_id, - request_path_asset_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_exchange_account_id, - request_path_asset_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetExchangeAccountAsset(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_exchange_account_asset(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_exchange_account_asset_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_exchange_account_asset_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/exchange_accounts_exchange_account_id_asset_id/get.pyi b/fireblocks_client/paths/exchange_accounts_exchange_account_id_asset_id/get.pyi deleted file mode 100644 index 162f6bfd..00000000 --- a/fireblocks_client/paths/exchange_accounts_exchange_account_id_asset_id/get.pyi +++ /dev/null @@ -1,201 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.exchange_asset import ExchangeAsset -from fireblocks_client.model.error import Error - -# Path params -ExchangeAccountIdSchema = schemas.StrSchema -AssetIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'exchangeAccountId': typing.Union[ExchangeAccountIdSchema, str, ], - 'assetId': typing.Union[AssetIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_exchange_account_id = api_client.PathParameter( - name="exchangeAccountId", - style=api_client.ParameterStyle.SIMPLE, - schema=ExchangeAccountIdSchema, - required=True, -) -request_path_asset_id = api_client.PathParameter( - name="assetId", - style=api_client.ParameterStyle.SIMPLE, - schema=AssetIdSchema, - required=True, -) -XRequestIDSchema = schemas.StrSchema -SchemaFor200ResponseBody = ExchangeAsset -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_exchange_account_asset_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Find an asset for an exchange account - """ - path_params = {} - for parameter in ( - request_path_exchange_account_id, - request_path_asset_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_exchange_account_id, - request_path_asset_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetExchangeAccountAsset(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_exchange_account_asset(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_exchange_account_asset_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_exchange_account_asset_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/exchange_accounts_exchange_account_id_convert/__init__.py b/fireblocks_client/paths/exchange_accounts_exchange_account_id_convert/__init__.py deleted file mode 100644 index 29e8fa3c..00000000 --- a/fireblocks_client/paths/exchange_accounts_exchange_account_id_convert/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.exchange_accounts_exchange_account_id_convert import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.EXCHANGE_ACCOUNTS_EXCHANGE_ACCOUNT_ID_CONVERT \ No newline at end of file diff --git a/fireblocks_client/paths/exchange_accounts_exchange_account_id_convert/post.py b/fireblocks_client/paths/exchange_accounts_exchange_account_id_convert/post.py deleted file mode 100644 index 912896f4..00000000 --- a/fireblocks_client/paths/exchange_accounts_exchange_account_id_convert/post.py +++ /dev/null @@ -1,296 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error import Error - -from . import path - -# Path params -ExchangeAccountIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'exchangeAccountId': typing.Union[ExchangeAccountIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_exchange_account_id = api_client.PathParameter( - name="exchangeAccountId", - style=api_client.ParameterStyle.SIMPLE, - schema=ExchangeAccountIdSchema, - required=True, -) -# body param - - -class SchemaForRequestBodyApplicationJson( - schemas.AnyTypeSchema, -): - - - class MetaOapg: - required = { - "amount", - "destAsset", - "srcAsset", - } - - class properties: - srcAsset = schemas.StrSchema - destAsset = schemas.StrSchema - amount = schemas.NumberSchema - __annotations__ = { - "srcAsset": srcAsset, - "destAsset": destAsset, - "amount": amount, - } - - - amount: MetaOapg.properties.amount - destAsset: MetaOapg.properties.destAsset - srcAsset: MetaOapg.properties.srcAsset - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["srcAsset"]) -> MetaOapg.properties.srcAsset: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["destAsset"]) -> MetaOapg.properties.destAsset: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["amount"]) -> MetaOapg.properties.amount: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["srcAsset", "destAsset", "amount", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["srcAsset"]) -> MetaOapg.properties.srcAsset: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["destAsset"]) -> MetaOapg.properties.destAsset: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["amount"]) -> MetaOapg.properties.amount: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["srcAsset", "destAsset", "amount", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - amount: typing.Union[MetaOapg.properties.amount, decimal.Decimal, int, float, ], - destAsset: typing.Union[MetaOapg.properties.destAsset, str, ], - srcAsset: typing.Union[MetaOapg.properties.srcAsset, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaForRequestBodyApplicationJson': - return super().__new__( - cls, - *_args, - amount=amount, - destAsset=destAsset, - srcAsset=srcAsset, - _configuration=_configuration, - **kwargs, - ) - - -request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - headers: ResponseHeadersFor200 - body: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _convert_assets_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - """ - Convert exchange account funds from the source asset to the destination asset. Coinbase (USD to USDC, USDC to USD) and Bitso (MXN to USD) are supported conversions. - """ - path_params = {} - for parameter in ( - request_path_exchange_account_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_exchange_account_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_any_type.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class ConvertAssets(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def convert_assets(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._convert_assets_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._convert_assets_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/exchange_accounts_exchange_account_id_convert/post.pyi b/fireblocks_client/paths/exchange_accounts_exchange_account_id_convert/post.pyi deleted file mode 100644 index 39a44e1f..00000000 --- a/fireblocks_client/paths/exchange_accounts_exchange_account_id_convert/post.pyi +++ /dev/null @@ -1,280 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error import Error - -# Path params -ExchangeAccountIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'exchangeAccountId': typing.Union[ExchangeAccountIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_exchange_account_id = api_client.PathParameter( - name="exchangeAccountId", - style=api_client.ParameterStyle.SIMPLE, - schema=ExchangeAccountIdSchema, - required=True, -) -# body param - - -class SchemaForRequestBodyApplicationJson( - schemas.AnyTypeSchema, -): - - - class MetaOapg: - required = { - "amount", - "destAsset", - "srcAsset", - } - - class properties: - srcAsset = schemas.StrSchema - destAsset = schemas.StrSchema - amount = schemas.NumberSchema - __annotations__ = { - "srcAsset": srcAsset, - "destAsset": destAsset, - "amount": amount, - } - - - amount: MetaOapg.properties.amount - destAsset: MetaOapg.properties.destAsset - srcAsset: MetaOapg.properties.srcAsset - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["srcAsset"]) -> MetaOapg.properties.srcAsset: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["destAsset"]) -> MetaOapg.properties.destAsset: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["amount"]) -> MetaOapg.properties.amount: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["srcAsset", "destAsset", "amount", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["srcAsset"]) -> MetaOapg.properties.srcAsset: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["destAsset"]) -> MetaOapg.properties.destAsset: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["amount"]) -> MetaOapg.properties.amount: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["srcAsset", "destAsset", "amount", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - amount: typing.Union[MetaOapg.properties.amount, decimal.Decimal, int, float, ], - destAsset: typing.Union[MetaOapg.properties.destAsset, str, ], - srcAsset: typing.Union[MetaOapg.properties.srcAsset, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaForRequestBodyApplicationJson': - return super().__new__( - cls, - *_args, - amount=amount, - destAsset=destAsset, - srcAsset=srcAsset, - _configuration=_configuration, - **kwargs, - ) - - -request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, -) -XRequestIDSchema = schemas.StrSchema -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - headers: ResponseHeadersFor200 - body: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _convert_assets_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - """ - Convert exchange account funds from the source asset to the destination asset. Coinbase (USD to USDC, USDC to USD) and Bitso (MXN to USD) are supported conversions. - """ - path_params = {} - for parameter in ( - request_path_exchange_account_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_exchange_account_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_any_type.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class ConvertAssets(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def convert_assets(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._convert_assets_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._convert_assets_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/exchange_accounts_exchange_account_id_internal_transfer/__init__.py b/fireblocks_client/paths/exchange_accounts_exchange_account_id_internal_transfer/__init__.py deleted file mode 100644 index b6c6cc4d..00000000 --- a/fireblocks_client/paths/exchange_accounts_exchange_account_id_internal_transfer/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.exchange_accounts_exchange_account_id_internal_transfer import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.EXCHANGE_ACCOUNTS_EXCHANGE_ACCOUNT_ID_INTERNAL_TRANSFER \ No newline at end of file diff --git a/fireblocks_client/paths/exchange_accounts_exchange_account_id_internal_transfer/post.py b/fireblocks_client/paths/exchange_accounts_exchange_account_id_internal_transfer/post.py deleted file mode 100644 index 1696bffe..00000000 --- a/fireblocks_client/paths/exchange_accounts_exchange_account_id_internal_transfer/post.py +++ /dev/null @@ -1,218 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.create_internal_transfer_request import CreateInternalTransferRequest -from fireblocks_client.model.error import Error - -from . import path - -# Path params -ExchangeAccountIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'exchangeAccountId': typing.Union[ExchangeAccountIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_exchange_account_id = api_client.PathParameter( - name="exchangeAccountId", - style=api_client.ParameterStyle.SIMPLE, - schema=ExchangeAccountIdSchema, - required=True, -) -# body param -SchemaForRequestBodyApplicationJson = CreateInternalTransferRequest - - -request_body_create_internal_transfer_request = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -ResponseHeadersFor201 = typing_extensions.TypedDict( - 'ResponseHeadersFor201', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor201(api_client.ApiResponse): - response: urllib3.HTTPResponse - headers: ResponseHeadersFor201 - body: schemas.Unset = schemas.unset - - -_response_for_201 = api_client.OpenApiResponse( - response_cls=ApiResponseFor201, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '201': _response_for_201, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _internal_transfer_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - """ - Internal tranfer for exchange accounts - """ - path_params = {} - for parameter in ( - request_path_exchange_account_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_exchange_account_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_create_internal_transfer_request.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class InternalTransfer(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def internal_transfer(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._internal_transfer_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._internal_transfer_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/exchange_accounts_exchange_account_id_internal_transfer/post.pyi b/fireblocks_client/paths/exchange_accounts_exchange_account_id_internal_transfer/post.pyi deleted file mode 100644 index d42a17b6..00000000 --- a/fireblocks_client/paths/exchange_accounts_exchange_account_id_internal_transfer/post.pyi +++ /dev/null @@ -1,202 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.create_internal_transfer_request import CreateInternalTransferRequest -from fireblocks_client.model.error import Error - -# Path params -ExchangeAccountIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'exchangeAccountId': typing.Union[ExchangeAccountIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_exchange_account_id = api_client.PathParameter( - name="exchangeAccountId", - style=api_client.ParameterStyle.SIMPLE, - schema=ExchangeAccountIdSchema, - required=True, -) -# body param -SchemaForRequestBodyApplicationJson = CreateInternalTransferRequest - - -request_body_create_internal_transfer_request = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, -) -XRequestIDSchema = schemas.StrSchema -ResponseHeadersFor201 = typing_extensions.TypedDict( - 'ResponseHeadersFor201', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor201(api_client.ApiResponse): - response: urllib3.HTTPResponse - headers: ResponseHeadersFor201 - body: schemas.Unset = schemas.unset - - -_response_for_201 = api_client.OpenApiResponse( - response_cls=ApiResponseFor201, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _internal_transfer_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - """ - Internal tranfer for exchange accounts - """ - path_params = {} - for parameter in ( - request_path_exchange_account_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_exchange_account_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_create_internal_transfer_request.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class InternalTransfer(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def internal_transfer(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._internal_transfer_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._internal_transfer_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/external_wallets/__init__.py b/fireblocks_client/paths/external_wallets/__init__.py deleted file mode 100644 index 8c00cd34..00000000 --- a/fireblocks_client/paths/external_wallets/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.external_wallets import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.EXTERNAL_WALLETS \ No newline at end of file diff --git a/fireblocks_client/paths/external_wallets/get.py b/fireblocks_client/paths/external_wallets/get.py deleted file mode 100644 index 101006aa..00000000 --- a/fireblocks_client/paths/external_wallets/get.py +++ /dev/null @@ -1,186 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.unmanaged_wallet import UnmanagedWallet -from fireblocks_client.model.error import Error - -from . import path - -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) - - -class SchemaFor200ResponseBody( - schemas.ListSchema -): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['UnmanagedWallet']: - return UnmanagedWallet - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['UnmanagedWallet'], typing.List['UnmanagedWallet']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'SchemaFor200ResponseBody': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'UnmanagedWallet': - return super().__getitem__(i) -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, - 'default': _response_for_default, -} -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_external_wallets_oapg(self, request_options: RequestOptions = None): - """ - List external wallets - """ - used_path = path.value - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetExternalWallets(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_external_wallets(self , request_options: RequestOptions = None): - return self._get_external_wallets_oapg(request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , request_options: RequestOptions = None): - return self._get_external_wallets_oapg(request_options) - - diff --git a/fireblocks_client/paths/external_wallets/get.pyi b/fireblocks_client/paths/external_wallets/get.pyi deleted file mode 100644 index 3b26109b..00000000 --- a/fireblocks_client/paths/external_wallets/get.pyi +++ /dev/null @@ -1,170 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.unmanaged_wallet import UnmanagedWallet -from fireblocks_client.model.error import Error - -XRequestIDSchema = schemas.StrSchema - - -class SchemaFor200ResponseBody( - schemas.ListSchema -): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['UnmanagedWallet']: - return UnmanagedWallet - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['UnmanagedWallet'], typing.List['UnmanagedWallet']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'SchemaFor200ResponseBody': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'UnmanagedWallet': - return super().__getitem__(i) -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_external_wallets_oapg(self, request_options: RequestOptions = None): - """ - List external wallets - """ - used_path = path.value - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetExternalWallets(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_external_wallets(self , request_options: RequestOptions = None): - return self._get_external_wallets_oapg(request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , request_options: RequestOptions = None): - return self._get_external_wallets_oapg(request_options) - - diff --git a/fireblocks_client/paths/external_wallets/post.py b/fireblocks_client/paths/external_wallets/post.py deleted file mode 100644 index df51ccb2..00000000 --- a/fireblocks_client/paths/external_wallets/post.py +++ /dev/null @@ -1,240 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.unmanaged_wallet import UnmanagedWallet -from fireblocks_client.model.error import Error - -from . import path - -# body param - - -class SchemaForRequestBodyApplicationJson( - schemas.AnyTypeSchema, -): - - - class MetaOapg: - - class properties: - name = schemas.StrSchema - customerRefId = schemas.StrSchema - __annotations__ = { - "name": name, - "customerRefId": customerRefId, - } - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["customerRefId"]) -> MetaOapg.properties.customerRefId: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "customerRefId", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["customerRefId"]) -> typing.Union[MetaOapg.properties.customerRefId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "customerRefId", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, - customerRefId: typing.Union[MetaOapg.properties.customerRefId, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaForRequestBodyApplicationJson': - return super().__new__( - cls, - *_args, - name=name, - customerRefId=customerRefId, - _configuration=_configuration, - **kwargs, - ) - - -request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor200ResponseBody = UnmanagedWallet -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, - 'default': _response_for_default, -} -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _create_external_wallet_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - """ - Create an external wallet - """ - used_path = path.value - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_any_type.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class CreateExternalWallet(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def create_external_wallet(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._create_external_wallet_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._create_external_wallet_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/external_wallets/post.pyi b/fireblocks_client/paths/external_wallets/post.pyi deleted file mode 100644 index d9c5a3e2..00000000 --- a/fireblocks_client/paths/external_wallets/post.pyi +++ /dev/null @@ -1,224 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.unmanaged_wallet import UnmanagedWallet -from fireblocks_client.model.error import Error - -# body param - - -class SchemaForRequestBodyApplicationJson( - schemas.AnyTypeSchema, -): - - - class MetaOapg: - - class properties: - name = schemas.StrSchema - customerRefId = schemas.StrSchema - __annotations__ = { - "name": name, - "customerRefId": customerRefId, - } - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["customerRefId"]) -> MetaOapg.properties.customerRefId: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "customerRefId", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["customerRefId"]) -> typing.Union[MetaOapg.properties.customerRefId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "customerRefId", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, - customerRefId: typing.Union[MetaOapg.properties.customerRefId, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaForRequestBodyApplicationJson': - return super().__new__( - cls, - *_args, - name=name, - customerRefId=customerRefId, - _configuration=_configuration, - **kwargs, - ) - - -request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, -) -XRequestIDSchema = schemas.StrSchema -SchemaFor200ResponseBody = UnmanagedWallet -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _create_external_wallet_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - """ - Create an external wallet - """ - used_path = path.value - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_any_type.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class CreateExternalWallet(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def create_external_wallet(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._create_external_wallet_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._create_external_wallet_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/external_wallets_wallet_id/__init__.py b/fireblocks_client/paths/external_wallets_wallet_id/__init__.py deleted file mode 100644 index 455d5152..00000000 --- a/fireblocks_client/paths/external_wallets_wallet_id/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.external_wallets_wallet_id import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.EXTERNAL_WALLETS_WALLET_ID \ No newline at end of file diff --git a/fireblocks_client/paths/external_wallets_wallet_id/delete.py b/fireblocks_client/paths/external_wallets_wallet_id/delete.py deleted file mode 100644 index 9bf7df9d..00000000 --- a/fireblocks_client/paths/external_wallets_wallet_id/delete.py +++ /dev/null @@ -1,198 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error import Error - -from . import path - -# Path params -WalletIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'walletId': typing.Union[WalletIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_wallet_id = api_client.PathParameter( - name="walletId", - style=api_client.ParameterStyle.SIMPLE, - schema=WalletIdSchema, - required=True, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -ResponseHeadersFor201 = typing_extensions.TypedDict( - 'ResponseHeadersFor201', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor201(api_client.ApiResponse): - response: urllib3.HTTPResponse - headers: ResponseHeadersFor201 - body: schemas.Unset = schemas.unset - - -_response_for_201 = api_client.OpenApiResponse( - response_cls=ApiResponseFor201, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '201': _response_for_201, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _delete_external_wallet_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Delete an external wallet - """ - path_params = {} - for parameter in ( - request_path_wallet_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_wallet_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='delete'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class DeleteExternalWallet(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def delete_external_wallet(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._delete_external_wallet_oapg(params, request_options) - - -class ApiFordelete(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def delete(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._delete_external_wallet_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/external_wallets_wallet_id/delete.pyi b/fireblocks_client/paths/external_wallets_wallet_id/delete.pyi deleted file mode 100644 index f532ea29..00000000 --- a/fireblocks_client/paths/external_wallets_wallet_id/delete.pyi +++ /dev/null @@ -1,182 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error import Error - -# Path params -WalletIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'walletId': typing.Union[WalletIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_wallet_id = api_client.PathParameter( - name="walletId", - style=api_client.ParameterStyle.SIMPLE, - schema=WalletIdSchema, - required=True, -) -XRequestIDSchema = schemas.StrSchema -ResponseHeadersFor201 = typing_extensions.TypedDict( - 'ResponseHeadersFor201', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor201(api_client.ApiResponse): - response: urllib3.HTTPResponse - headers: ResponseHeadersFor201 - body: schemas.Unset = schemas.unset - - -_response_for_201 = api_client.OpenApiResponse( - response_cls=ApiResponseFor201, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _delete_external_wallet_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Delete an external wallet - """ - path_params = {} - for parameter in ( - request_path_wallet_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_wallet_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='delete'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class DeleteExternalWallet(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def delete_external_wallet(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._delete_external_wallet_oapg(params, request_options) - - -class ApiFordelete(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def delete(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._delete_external_wallet_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/external_wallets_wallet_id/get.py b/fireblocks_client/paths/external_wallets_wallet_id/get.py deleted file mode 100644 index e9e9b654..00000000 --- a/fireblocks_client/paths/external_wallets_wallet_id/get.py +++ /dev/null @@ -1,207 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.unmanaged_wallet import UnmanagedWallet -from fireblocks_client.model.error import Error - -from . import path - -# Path params -WalletIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'walletId': typing.Union[WalletIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_wallet_id = api_client.PathParameter( - name="walletId", - style=api_client.ParameterStyle.SIMPLE, - schema=WalletIdSchema, - required=True, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor200ResponseBody = UnmanagedWallet -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, - 'default': _response_for_default, -} -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_external_wallet_by_id_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Find an external wallet - """ - path_params = {} - for parameter in ( - request_path_wallet_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_wallet_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetExternalWalletById(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_external_wallet_by_id(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_external_wallet_by_id_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_external_wallet_by_id_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/external_wallets_wallet_id/get.pyi b/fireblocks_client/paths/external_wallets_wallet_id/get.pyi deleted file mode 100644 index f87f3e5b..00000000 --- a/fireblocks_client/paths/external_wallets_wallet_id/get.pyi +++ /dev/null @@ -1,191 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.unmanaged_wallet import UnmanagedWallet -from fireblocks_client.model.error import Error - -# Path params -WalletIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'walletId': typing.Union[WalletIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_wallet_id = api_client.PathParameter( - name="walletId", - style=api_client.ParameterStyle.SIMPLE, - schema=WalletIdSchema, - required=True, -) -XRequestIDSchema = schemas.StrSchema -SchemaFor200ResponseBody = UnmanagedWallet -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_external_wallet_by_id_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Find an external wallet - """ - path_params = {} - for parameter in ( - request_path_wallet_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_wallet_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetExternalWalletById(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_external_wallet_by_id(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_external_wallet_by_id_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_external_wallet_by_id_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/external_wallets_wallet_id_asset_id/__init__.py b/fireblocks_client/paths/external_wallets_wallet_id_asset_id/__init__.py deleted file mode 100644 index ee5794d4..00000000 --- a/fireblocks_client/paths/external_wallets_wallet_id_asset_id/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.external_wallets_wallet_id_asset_id import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.EXTERNAL_WALLETS_WALLET_ID_ASSET_ID \ No newline at end of file diff --git a/fireblocks_client/paths/external_wallets_wallet_id_asset_id/delete.py b/fireblocks_client/paths/external_wallets_wallet_id_asset_id/delete.py deleted file mode 100644 index e3835e34..00000000 --- a/fireblocks_client/paths/external_wallets_wallet_id_asset_id/delete.py +++ /dev/null @@ -1,208 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error import Error - -from . import path - -# Path params -WalletIdSchema = schemas.StrSchema -AssetIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'walletId': typing.Union[WalletIdSchema, str, ], - 'assetId': typing.Union[AssetIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_wallet_id = api_client.PathParameter( - name="walletId", - style=api_client.ParameterStyle.SIMPLE, - schema=WalletIdSchema, - required=True, -) -request_path_asset_id = api_client.PathParameter( - name="assetId", - style=api_client.ParameterStyle.SIMPLE, - schema=AssetIdSchema, - required=True, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -ResponseHeadersFor201 = typing_extensions.TypedDict( - 'ResponseHeadersFor201', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor201(api_client.ApiResponse): - response: urllib3.HTTPResponse - headers: ResponseHeadersFor201 - body: schemas.Unset = schemas.unset - - -_response_for_201 = api_client.OpenApiResponse( - response_cls=ApiResponseFor201, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '201': _response_for_201, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _remove_asset_from_external_wallet_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Delete an asset from an external wallet - """ - path_params = {} - for parameter in ( - request_path_wallet_id, - request_path_asset_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_wallet_id, - request_path_asset_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='delete'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class RemoveAssetFromExternalWallet(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def remove_asset_from_external_wallet(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._remove_asset_from_external_wallet_oapg(params, request_options) - - -class ApiFordelete(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def delete(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._remove_asset_from_external_wallet_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/external_wallets_wallet_id_asset_id/delete.pyi b/fireblocks_client/paths/external_wallets_wallet_id_asset_id/delete.pyi deleted file mode 100644 index 03b9470d..00000000 --- a/fireblocks_client/paths/external_wallets_wallet_id_asset_id/delete.pyi +++ /dev/null @@ -1,192 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error import Error - -# Path params -WalletIdSchema = schemas.StrSchema -AssetIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'walletId': typing.Union[WalletIdSchema, str, ], - 'assetId': typing.Union[AssetIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_wallet_id = api_client.PathParameter( - name="walletId", - style=api_client.ParameterStyle.SIMPLE, - schema=WalletIdSchema, - required=True, -) -request_path_asset_id = api_client.PathParameter( - name="assetId", - style=api_client.ParameterStyle.SIMPLE, - schema=AssetIdSchema, - required=True, -) -XRequestIDSchema = schemas.StrSchema -ResponseHeadersFor201 = typing_extensions.TypedDict( - 'ResponseHeadersFor201', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor201(api_client.ApiResponse): - response: urllib3.HTTPResponse - headers: ResponseHeadersFor201 - body: schemas.Unset = schemas.unset - - -_response_for_201 = api_client.OpenApiResponse( - response_cls=ApiResponseFor201, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _remove_asset_from_external_wallet_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Delete an asset from an external wallet - """ - path_params = {} - for parameter in ( - request_path_wallet_id, - request_path_asset_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_wallet_id, - request_path_asset_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='delete'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class RemoveAssetFromExternalWallet(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def remove_asset_from_external_wallet(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._remove_asset_from_external_wallet_oapg(params, request_options) - - -class ApiFordelete(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def delete(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._remove_asset_from_external_wallet_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/external_wallets_wallet_id_asset_id/get.py b/fireblocks_client/paths/external_wallets_wallet_id_asset_id/get.py deleted file mode 100644 index 233ff909..00000000 --- a/fireblocks_client/paths/external_wallets_wallet_id_asset_id/get.py +++ /dev/null @@ -1,217 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.external_wallet_asset import ExternalWalletAsset -from fireblocks_client.model.error import Error - -from . import path - -# Path params -WalletIdSchema = schemas.StrSchema -AssetIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'walletId': typing.Union[WalletIdSchema, str, ], - 'assetId': typing.Union[AssetIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_wallet_id = api_client.PathParameter( - name="walletId", - style=api_client.ParameterStyle.SIMPLE, - schema=WalletIdSchema, - required=True, -) -request_path_asset_id = api_client.PathParameter( - name="assetId", - style=api_client.ParameterStyle.SIMPLE, - schema=AssetIdSchema, - required=True, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor200ResponseBody = ExternalWalletAsset -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, - 'default': _response_for_default, -} -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_asset_in_external_wallet_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Get an asset from an external wallet - """ - path_params = {} - for parameter in ( - request_path_wallet_id, - request_path_asset_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_wallet_id, - request_path_asset_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetAssetInExternalWallet(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_asset_in_external_wallet(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_asset_in_external_wallet_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_asset_in_external_wallet_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/external_wallets_wallet_id_asset_id/get.pyi b/fireblocks_client/paths/external_wallets_wallet_id_asset_id/get.pyi deleted file mode 100644 index 712fac80..00000000 --- a/fireblocks_client/paths/external_wallets_wallet_id_asset_id/get.pyi +++ /dev/null @@ -1,201 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.external_wallet_asset import ExternalWalletAsset -from fireblocks_client.model.error import Error - -# Path params -WalletIdSchema = schemas.StrSchema -AssetIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'walletId': typing.Union[WalletIdSchema, str, ], - 'assetId': typing.Union[AssetIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_wallet_id = api_client.PathParameter( - name="walletId", - style=api_client.ParameterStyle.SIMPLE, - schema=WalletIdSchema, - required=True, -) -request_path_asset_id = api_client.PathParameter( - name="assetId", - style=api_client.ParameterStyle.SIMPLE, - schema=AssetIdSchema, - required=True, -) -XRequestIDSchema = schemas.StrSchema -SchemaFor200ResponseBody = ExternalWalletAsset -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_asset_in_external_wallet_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Get an asset from an external wallet - """ - path_params = {} - for parameter in ( - request_path_wallet_id, - request_path_asset_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_wallet_id, - request_path_asset_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetAssetInExternalWallet(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_asset_in_external_wallet(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_asset_in_external_wallet_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_asset_in_external_wallet_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/external_wallets_wallet_id_asset_id/post.py b/fireblocks_client/paths/external_wallets_wallet_id_asset_id/post.py deleted file mode 100644 index 744fd780..00000000 --- a/fireblocks_client/paths/external_wallets_wallet_id_asset_id/post.py +++ /dev/null @@ -1,838 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.external_wallet_asset import ExternalWalletAsset -from fireblocks_client.model.error import Error - -from . import path - -# Path params -WalletIdSchema = schemas.StrSchema -AssetIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'walletId': typing.Union[WalletIdSchema, str, ], - 'assetId': typing.Union[AssetIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_wallet_id = api_client.PathParameter( - name="walletId", - style=api_client.ParameterStyle.SIMPLE, - schema=WalletIdSchema, - required=True, -) -request_path_asset_id = api_client.PathParameter( - name="assetId", - style=api_client.ParameterStyle.SIMPLE, - schema=AssetIdSchema, - required=True, -) -# body param - - -class SchemaForRequestBodyApplicationJson( - schemas.ComposedSchema, -): - - - class MetaOapg: - - - class one_of_0( - schemas.AnyTypeSchema, - ): - - - class MetaOapg: - required = { - "address", - } - - class properties: - address = schemas.StrSchema - tag = schemas.StrSchema - __annotations__ = { - "address": address, - "tag": tag, - } - - - address: MetaOapg.properties.address - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["address"]) -> MetaOapg.properties.address: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["tag"]) -> MetaOapg.properties.tag: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["address", "tag", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["address"]) -> MetaOapg.properties.address: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["tag"]) -> typing.Union[MetaOapg.properties.tag, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["address", "tag", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - address: typing.Union[MetaOapg.properties.address, str, ], - tag: typing.Union[MetaOapg.properties.tag, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'one_of_0': - return super().__new__( - cls, - *_args, - address=address, - tag=tag, - _configuration=_configuration, - **kwargs, - ) - - - class one_of_1( - schemas.AnyTypeSchema, - ): - - - class MetaOapg: - required = { - "additionalInfo", - } - - class properties: - - - class additionalInfo( - schemas.ComposedBase, - schemas.DictSchema - ): - - - class MetaOapg: - - - class one_of_0( - schemas.AnyTypeSchema, - ): - - - class MetaOapg: - required = { - "accountHolderCity", - "ibanCity", - "accountHolderPostalCode", - "accountHolderCountry", - "iban", - "accountHolderGivenName", - "ibanCountry", - "accountHolderAddress1", - } - - class properties: - accountHolderGivenName = schemas.StrSchema - accountHolderSurname = schemas.StrSchema - accountHolderCity = schemas.StrSchema - accountHolderCountry = schemas.StrSchema - accountHolderAddress1 = schemas.StrSchema - accountHolderAddress2 = schemas.StrSchema - accountHolderDistrict = schemas.StrSchema - accountHolderPostalCode = schemas.StrSchema - iban = schemas.StrSchema - ibanCity = schemas.StrSchema - ibanCountry = schemas.StrSchema - __annotations__ = { - "accountHolderGivenName": accountHolderGivenName, - "accountHolderSurname": accountHolderSurname, - "accountHolderCity": accountHolderCity, - "accountHolderCountry": accountHolderCountry, - "accountHolderAddress1": accountHolderAddress1, - "accountHolderAddress2": accountHolderAddress2, - "accountHolderDistrict": accountHolderDistrict, - "accountHolderPostalCode": accountHolderPostalCode, - "iban": iban, - "ibanCity": ibanCity, - "ibanCountry": ibanCountry, - } - - - accountHolderCity: MetaOapg.properties.accountHolderCity - ibanCity: MetaOapg.properties.ibanCity - accountHolderPostalCode: MetaOapg.properties.accountHolderPostalCode - accountHolderCountry: MetaOapg.properties.accountHolderCountry - iban: MetaOapg.properties.iban - accountHolderGivenName: MetaOapg.properties.accountHolderGivenName - ibanCountry: MetaOapg.properties.ibanCountry - accountHolderAddress1: MetaOapg.properties.accountHolderAddress1 - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["accountHolderGivenName"]) -> MetaOapg.properties.accountHolderGivenName: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["accountHolderSurname"]) -> MetaOapg.properties.accountHolderSurname: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["accountHolderCity"]) -> MetaOapg.properties.accountHolderCity: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["accountHolderCountry"]) -> MetaOapg.properties.accountHolderCountry: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["accountHolderAddress1"]) -> MetaOapg.properties.accountHolderAddress1: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["accountHolderAddress2"]) -> MetaOapg.properties.accountHolderAddress2: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["accountHolderDistrict"]) -> MetaOapg.properties.accountHolderDistrict: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["accountHolderPostalCode"]) -> MetaOapg.properties.accountHolderPostalCode: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["iban"]) -> MetaOapg.properties.iban: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["ibanCity"]) -> MetaOapg.properties.ibanCity: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["ibanCountry"]) -> MetaOapg.properties.ibanCountry: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["accountHolderGivenName", "accountHolderSurname", "accountHolderCity", "accountHolderCountry", "accountHolderAddress1", "accountHolderAddress2", "accountHolderDistrict", "accountHolderPostalCode", "iban", "ibanCity", "ibanCountry", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["accountHolderGivenName"]) -> MetaOapg.properties.accountHolderGivenName: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["accountHolderSurname"]) -> typing.Union[MetaOapg.properties.accountHolderSurname, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["accountHolderCity"]) -> MetaOapg.properties.accountHolderCity: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["accountHolderCountry"]) -> MetaOapg.properties.accountHolderCountry: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["accountHolderAddress1"]) -> MetaOapg.properties.accountHolderAddress1: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["accountHolderAddress2"]) -> typing.Union[MetaOapg.properties.accountHolderAddress2, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["accountHolderDistrict"]) -> typing.Union[MetaOapg.properties.accountHolderDistrict, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["accountHolderPostalCode"]) -> MetaOapg.properties.accountHolderPostalCode: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["iban"]) -> MetaOapg.properties.iban: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["ibanCity"]) -> MetaOapg.properties.ibanCity: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["ibanCountry"]) -> MetaOapg.properties.ibanCountry: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["accountHolderGivenName", "accountHolderSurname", "accountHolderCity", "accountHolderCountry", "accountHolderAddress1", "accountHolderAddress2", "accountHolderDistrict", "accountHolderPostalCode", "iban", "ibanCity", "ibanCountry", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - accountHolderCity: typing.Union[MetaOapg.properties.accountHolderCity, str, ], - ibanCity: typing.Union[MetaOapg.properties.ibanCity, str, ], - accountHolderPostalCode: typing.Union[MetaOapg.properties.accountHolderPostalCode, str, ], - accountHolderCountry: typing.Union[MetaOapg.properties.accountHolderCountry, str, ], - iban: typing.Union[MetaOapg.properties.iban, str, ], - accountHolderGivenName: typing.Union[MetaOapg.properties.accountHolderGivenName, str, ], - ibanCountry: typing.Union[MetaOapg.properties.ibanCountry, str, ], - accountHolderAddress1: typing.Union[MetaOapg.properties.accountHolderAddress1, str, ], - accountHolderSurname: typing.Union[MetaOapg.properties.accountHolderSurname, str, schemas.Unset] = schemas.unset, - accountHolderAddress2: typing.Union[MetaOapg.properties.accountHolderAddress2, str, schemas.Unset] = schemas.unset, - accountHolderDistrict: typing.Union[MetaOapg.properties.accountHolderDistrict, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'one_of_0': - return super().__new__( - cls, - *_args, - accountHolderCity=accountHolderCity, - ibanCity=ibanCity, - accountHolderPostalCode=accountHolderPostalCode, - accountHolderCountry=accountHolderCountry, - iban=iban, - accountHolderGivenName=accountHolderGivenName, - ibanCountry=ibanCountry, - accountHolderAddress1=accountHolderAddress1, - accountHolderSurname=accountHolderSurname, - accountHolderAddress2=accountHolderAddress2, - accountHolderDistrict=accountHolderDistrict, - _configuration=_configuration, - **kwargs, - ) - - - class one_of_1( - schemas.AnyTypeSchema, - ): - - - class MetaOapg: - required = { - "abaAccountNumber", - "accountHolderCity", - "abaRoutingNumber", - "accountHolderPostalCode", - "accountHolderCountry", - "accountHolderGivenName", - "accountHolderAddress1", - "abaCountry", - } - - class properties: - accountHolderGivenName = schemas.StrSchema - accountHolderSurname = schemas.StrSchema - accountHolderCity = schemas.StrSchema - accountHolderCountry = schemas.StrSchema - accountHolderAddress1 = schemas.StrSchema - accountHolderAddress2 = schemas.StrSchema - accountHolderDistrict = schemas.StrSchema - accountHolderPostalCode = schemas.StrSchema - abaRoutingNumber = schemas.StrSchema - abaAccountNumber = schemas.StrSchema - abaCountry = schemas.StrSchema - __annotations__ = { - "accountHolderGivenName": accountHolderGivenName, - "accountHolderSurname": accountHolderSurname, - "accountHolderCity": accountHolderCity, - "accountHolderCountry": accountHolderCountry, - "accountHolderAddress1": accountHolderAddress1, - "accountHolderAddress2": accountHolderAddress2, - "accountHolderDistrict": accountHolderDistrict, - "accountHolderPostalCode": accountHolderPostalCode, - "abaRoutingNumber": abaRoutingNumber, - "abaAccountNumber": abaAccountNumber, - "abaCountry": abaCountry, - } - - - abaAccountNumber: MetaOapg.properties.abaAccountNumber - accountHolderCity: MetaOapg.properties.accountHolderCity - abaRoutingNumber: MetaOapg.properties.abaRoutingNumber - accountHolderPostalCode: MetaOapg.properties.accountHolderPostalCode - accountHolderCountry: MetaOapg.properties.accountHolderCountry - accountHolderGivenName: MetaOapg.properties.accountHolderGivenName - accountHolderAddress1: MetaOapg.properties.accountHolderAddress1 - abaCountry: MetaOapg.properties.abaCountry - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["accountHolderGivenName"]) -> MetaOapg.properties.accountHolderGivenName: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["accountHolderSurname"]) -> MetaOapg.properties.accountHolderSurname: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["accountHolderCity"]) -> MetaOapg.properties.accountHolderCity: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["accountHolderCountry"]) -> MetaOapg.properties.accountHolderCountry: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["accountHolderAddress1"]) -> MetaOapg.properties.accountHolderAddress1: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["accountHolderAddress2"]) -> MetaOapg.properties.accountHolderAddress2: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["accountHolderDistrict"]) -> MetaOapg.properties.accountHolderDistrict: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["accountHolderPostalCode"]) -> MetaOapg.properties.accountHolderPostalCode: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["abaRoutingNumber"]) -> MetaOapg.properties.abaRoutingNumber: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["abaAccountNumber"]) -> MetaOapg.properties.abaAccountNumber: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["abaCountry"]) -> MetaOapg.properties.abaCountry: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["accountHolderGivenName", "accountHolderSurname", "accountHolderCity", "accountHolderCountry", "accountHolderAddress1", "accountHolderAddress2", "accountHolderDistrict", "accountHolderPostalCode", "abaRoutingNumber", "abaAccountNumber", "abaCountry", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["accountHolderGivenName"]) -> MetaOapg.properties.accountHolderGivenName: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["accountHolderSurname"]) -> typing.Union[MetaOapg.properties.accountHolderSurname, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["accountHolderCity"]) -> MetaOapg.properties.accountHolderCity: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["accountHolderCountry"]) -> MetaOapg.properties.accountHolderCountry: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["accountHolderAddress1"]) -> MetaOapg.properties.accountHolderAddress1: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["accountHolderAddress2"]) -> typing.Union[MetaOapg.properties.accountHolderAddress2, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["accountHolderDistrict"]) -> typing.Union[MetaOapg.properties.accountHolderDistrict, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["accountHolderPostalCode"]) -> MetaOapg.properties.accountHolderPostalCode: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["abaRoutingNumber"]) -> MetaOapg.properties.abaRoutingNumber: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["abaAccountNumber"]) -> MetaOapg.properties.abaAccountNumber: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["abaCountry"]) -> MetaOapg.properties.abaCountry: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["accountHolderGivenName", "accountHolderSurname", "accountHolderCity", "accountHolderCountry", "accountHolderAddress1", "accountHolderAddress2", "accountHolderDistrict", "accountHolderPostalCode", "abaRoutingNumber", "abaAccountNumber", "abaCountry", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - abaAccountNumber: typing.Union[MetaOapg.properties.abaAccountNumber, str, ], - accountHolderCity: typing.Union[MetaOapg.properties.accountHolderCity, str, ], - abaRoutingNumber: typing.Union[MetaOapg.properties.abaRoutingNumber, str, ], - accountHolderPostalCode: typing.Union[MetaOapg.properties.accountHolderPostalCode, str, ], - accountHolderCountry: typing.Union[MetaOapg.properties.accountHolderCountry, str, ], - accountHolderGivenName: typing.Union[MetaOapg.properties.accountHolderGivenName, str, ], - accountHolderAddress1: typing.Union[MetaOapg.properties.accountHolderAddress1, str, ], - abaCountry: typing.Union[MetaOapg.properties.abaCountry, str, ], - accountHolderSurname: typing.Union[MetaOapg.properties.accountHolderSurname, str, schemas.Unset] = schemas.unset, - accountHolderAddress2: typing.Union[MetaOapg.properties.accountHolderAddress2, str, schemas.Unset] = schemas.unset, - accountHolderDistrict: typing.Union[MetaOapg.properties.accountHolderDistrict, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'one_of_1': - return super().__new__( - cls, - *_args, - abaAccountNumber=abaAccountNumber, - accountHolderCity=accountHolderCity, - abaRoutingNumber=abaRoutingNumber, - accountHolderPostalCode=accountHolderPostalCode, - accountHolderCountry=accountHolderCountry, - accountHolderGivenName=accountHolderGivenName, - accountHolderAddress1=accountHolderAddress1, - abaCountry=abaCountry, - accountHolderSurname=accountHolderSurname, - accountHolderAddress2=accountHolderAddress2, - accountHolderDistrict=accountHolderDistrict, - _configuration=_configuration, - **kwargs, - ) - - - class one_of_2( - schemas.AnyTypeSchema, - ): - - - class MetaOapg: - required = { - "speiClabe", - } - - class properties: - speiClabe = schemas.StrSchema - speiName = schemas.StrSchema - __annotations__ = { - "speiClabe": speiClabe, - "speiName": speiName, - } - - - speiClabe: MetaOapg.properties.speiClabe - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["speiClabe"]) -> MetaOapg.properties.speiClabe: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["speiName"]) -> MetaOapg.properties.speiName: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["speiClabe", "speiName", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["speiClabe"]) -> MetaOapg.properties.speiClabe: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["speiName"]) -> typing.Union[MetaOapg.properties.speiName, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["speiClabe", "speiName", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - speiClabe: typing.Union[MetaOapg.properties.speiClabe, str, ], - speiName: typing.Union[MetaOapg.properties.speiName, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'one_of_2': - return super().__new__( - cls, - *_args, - speiClabe=speiClabe, - speiName=speiName, - _configuration=_configuration, - **kwargs, - ) - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.one_of_0, - cls.one_of_1, - cls.one_of_2, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'additionalInfo': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - __annotations__ = { - "additionalInfo": additionalInfo, - } - - - additionalInfo: MetaOapg.properties.additionalInfo - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["additionalInfo"]) -> MetaOapg.properties.additionalInfo: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["additionalInfo", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["additionalInfo"]) -> MetaOapg.properties.additionalInfo: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["additionalInfo", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - additionalInfo: typing.Union[MetaOapg.properties.additionalInfo, dict, frozendict.frozendict, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'one_of_1': - return super().__new__( - cls, - *_args, - additionalInfo=additionalInfo, - _configuration=_configuration, - **kwargs, - ) - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.one_of_0, - cls.one_of_1, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaForRequestBodyApplicationJson': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - - -request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor200ResponseBody = ExternalWalletAsset -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, - 'default': _response_for_default, -} -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _add_asset_to_external_wallet_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - """ - Add an asset to an external wallet. - """ - path_params = {} - for parameter in ( - request_path_wallet_id, - request_path_asset_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_wallet_id, - request_path_asset_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_any_type.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class AddAssetToExternalWallet(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def add_asset_to_external_wallet(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._add_asset_to_external_wallet_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._add_asset_to_external_wallet_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/external_wallets_wallet_id_asset_id/post.pyi b/fireblocks_client/paths/external_wallets_wallet_id_asset_id/post.pyi deleted file mode 100644 index b3994f3e..00000000 --- a/fireblocks_client/paths/external_wallets_wallet_id_asset_id/post.pyi +++ /dev/null @@ -1,822 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.external_wallet_asset import ExternalWalletAsset -from fireblocks_client.model.error import Error - -# Path params -WalletIdSchema = schemas.StrSchema -AssetIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'walletId': typing.Union[WalletIdSchema, str, ], - 'assetId': typing.Union[AssetIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_wallet_id = api_client.PathParameter( - name="walletId", - style=api_client.ParameterStyle.SIMPLE, - schema=WalletIdSchema, - required=True, -) -request_path_asset_id = api_client.PathParameter( - name="assetId", - style=api_client.ParameterStyle.SIMPLE, - schema=AssetIdSchema, - required=True, -) -# body param - - -class SchemaForRequestBodyApplicationJson( - schemas.ComposedSchema, -): - - - class MetaOapg: - - - class one_of_0( - schemas.AnyTypeSchema, - ): - - - class MetaOapg: - required = { - "address", - } - - class properties: - address = schemas.StrSchema - tag = schemas.StrSchema - __annotations__ = { - "address": address, - "tag": tag, - } - - - address: MetaOapg.properties.address - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["address"]) -> MetaOapg.properties.address: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["tag"]) -> MetaOapg.properties.tag: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["address", "tag", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["address"]) -> MetaOapg.properties.address: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["tag"]) -> typing.Union[MetaOapg.properties.tag, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["address", "tag", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - address: typing.Union[MetaOapg.properties.address, str, ], - tag: typing.Union[MetaOapg.properties.tag, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'one_of_0': - return super().__new__( - cls, - *_args, - address=address, - tag=tag, - _configuration=_configuration, - **kwargs, - ) - - - class one_of_1( - schemas.AnyTypeSchema, - ): - - - class MetaOapg: - required = { - "additionalInfo", - } - - class properties: - - - class additionalInfo( - schemas.ComposedBase, - schemas.DictSchema - ): - - - class MetaOapg: - - - class one_of_0( - schemas.AnyTypeSchema, - ): - - - class MetaOapg: - required = { - "accountHolderCity", - "ibanCity", - "accountHolderPostalCode", - "accountHolderCountry", - "iban", - "accountHolderGivenName", - "ibanCountry", - "accountHolderAddress1", - } - - class properties: - accountHolderGivenName = schemas.StrSchema - accountHolderSurname = schemas.StrSchema - accountHolderCity = schemas.StrSchema - accountHolderCountry = schemas.StrSchema - accountHolderAddress1 = schemas.StrSchema - accountHolderAddress2 = schemas.StrSchema - accountHolderDistrict = schemas.StrSchema - accountHolderPostalCode = schemas.StrSchema - iban = schemas.StrSchema - ibanCity = schemas.StrSchema - ibanCountry = schemas.StrSchema - __annotations__ = { - "accountHolderGivenName": accountHolderGivenName, - "accountHolderSurname": accountHolderSurname, - "accountHolderCity": accountHolderCity, - "accountHolderCountry": accountHolderCountry, - "accountHolderAddress1": accountHolderAddress1, - "accountHolderAddress2": accountHolderAddress2, - "accountHolderDistrict": accountHolderDistrict, - "accountHolderPostalCode": accountHolderPostalCode, - "iban": iban, - "ibanCity": ibanCity, - "ibanCountry": ibanCountry, - } - - - accountHolderCity: MetaOapg.properties.accountHolderCity - ibanCity: MetaOapg.properties.ibanCity - accountHolderPostalCode: MetaOapg.properties.accountHolderPostalCode - accountHolderCountry: MetaOapg.properties.accountHolderCountry - iban: MetaOapg.properties.iban - accountHolderGivenName: MetaOapg.properties.accountHolderGivenName - ibanCountry: MetaOapg.properties.ibanCountry - accountHolderAddress1: MetaOapg.properties.accountHolderAddress1 - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["accountHolderGivenName"]) -> MetaOapg.properties.accountHolderGivenName: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["accountHolderSurname"]) -> MetaOapg.properties.accountHolderSurname: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["accountHolderCity"]) -> MetaOapg.properties.accountHolderCity: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["accountHolderCountry"]) -> MetaOapg.properties.accountHolderCountry: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["accountHolderAddress1"]) -> MetaOapg.properties.accountHolderAddress1: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["accountHolderAddress2"]) -> MetaOapg.properties.accountHolderAddress2: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["accountHolderDistrict"]) -> MetaOapg.properties.accountHolderDistrict: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["accountHolderPostalCode"]) -> MetaOapg.properties.accountHolderPostalCode: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["iban"]) -> MetaOapg.properties.iban: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["ibanCity"]) -> MetaOapg.properties.ibanCity: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["ibanCountry"]) -> MetaOapg.properties.ibanCountry: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["accountHolderGivenName", "accountHolderSurname", "accountHolderCity", "accountHolderCountry", "accountHolderAddress1", "accountHolderAddress2", "accountHolderDistrict", "accountHolderPostalCode", "iban", "ibanCity", "ibanCountry", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["accountHolderGivenName"]) -> MetaOapg.properties.accountHolderGivenName: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["accountHolderSurname"]) -> typing.Union[MetaOapg.properties.accountHolderSurname, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["accountHolderCity"]) -> MetaOapg.properties.accountHolderCity: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["accountHolderCountry"]) -> MetaOapg.properties.accountHolderCountry: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["accountHolderAddress1"]) -> MetaOapg.properties.accountHolderAddress1: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["accountHolderAddress2"]) -> typing.Union[MetaOapg.properties.accountHolderAddress2, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["accountHolderDistrict"]) -> typing.Union[MetaOapg.properties.accountHolderDistrict, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["accountHolderPostalCode"]) -> MetaOapg.properties.accountHolderPostalCode: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["iban"]) -> MetaOapg.properties.iban: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["ibanCity"]) -> MetaOapg.properties.ibanCity: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["ibanCountry"]) -> MetaOapg.properties.ibanCountry: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["accountHolderGivenName", "accountHolderSurname", "accountHolderCity", "accountHolderCountry", "accountHolderAddress1", "accountHolderAddress2", "accountHolderDistrict", "accountHolderPostalCode", "iban", "ibanCity", "ibanCountry", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - accountHolderCity: typing.Union[MetaOapg.properties.accountHolderCity, str, ], - ibanCity: typing.Union[MetaOapg.properties.ibanCity, str, ], - accountHolderPostalCode: typing.Union[MetaOapg.properties.accountHolderPostalCode, str, ], - accountHolderCountry: typing.Union[MetaOapg.properties.accountHolderCountry, str, ], - iban: typing.Union[MetaOapg.properties.iban, str, ], - accountHolderGivenName: typing.Union[MetaOapg.properties.accountHolderGivenName, str, ], - ibanCountry: typing.Union[MetaOapg.properties.ibanCountry, str, ], - accountHolderAddress1: typing.Union[MetaOapg.properties.accountHolderAddress1, str, ], - accountHolderSurname: typing.Union[MetaOapg.properties.accountHolderSurname, str, schemas.Unset] = schemas.unset, - accountHolderAddress2: typing.Union[MetaOapg.properties.accountHolderAddress2, str, schemas.Unset] = schemas.unset, - accountHolderDistrict: typing.Union[MetaOapg.properties.accountHolderDistrict, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'one_of_0': - return super().__new__( - cls, - *_args, - accountHolderCity=accountHolderCity, - ibanCity=ibanCity, - accountHolderPostalCode=accountHolderPostalCode, - accountHolderCountry=accountHolderCountry, - iban=iban, - accountHolderGivenName=accountHolderGivenName, - ibanCountry=ibanCountry, - accountHolderAddress1=accountHolderAddress1, - accountHolderSurname=accountHolderSurname, - accountHolderAddress2=accountHolderAddress2, - accountHolderDistrict=accountHolderDistrict, - _configuration=_configuration, - **kwargs, - ) - - - class one_of_1( - schemas.AnyTypeSchema, - ): - - - class MetaOapg: - required = { - "abaAccountNumber", - "accountHolderCity", - "abaRoutingNumber", - "accountHolderPostalCode", - "accountHolderCountry", - "accountHolderGivenName", - "accountHolderAddress1", - "abaCountry", - } - - class properties: - accountHolderGivenName = schemas.StrSchema - accountHolderSurname = schemas.StrSchema - accountHolderCity = schemas.StrSchema - accountHolderCountry = schemas.StrSchema - accountHolderAddress1 = schemas.StrSchema - accountHolderAddress2 = schemas.StrSchema - accountHolderDistrict = schemas.StrSchema - accountHolderPostalCode = schemas.StrSchema - abaRoutingNumber = schemas.StrSchema - abaAccountNumber = schemas.StrSchema - abaCountry = schemas.StrSchema - __annotations__ = { - "accountHolderGivenName": accountHolderGivenName, - "accountHolderSurname": accountHolderSurname, - "accountHolderCity": accountHolderCity, - "accountHolderCountry": accountHolderCountry, - "accountHolderAddress1": accountHolderAddress1, - "accountHolderAddress2": accountHolderAddress2, - "accountHolderDistrict": accountHolderDistrict, - "accountHolderPostalCode": accountHolderPostalCode, - "abaRoutingNumber": abaRoutingNumber, - "abaAccountNumber": abaAccountNumber, - "abaCountry": abaCountry, - } - - - abaAccountNumber: MetaOapg.properties.abaAccountNumber - accountHolderCity: MetaOapg.properties.accountHolderCity - abaRoutingNumber: MetaOapg.properties.abaRoutingNumber - accountHolderPostalCode: MetaOapg.properties.accountHolderPostalCode - accountHolderCountry: MetaOapg.properties.accountHolderCountry - accountHolderGivenName: MetaOapg.properties.accountHolderGivenName - accountHolderAddress1: MetaOapg.properties.accountHolderAddress1 - abaCountry: MetaOapg.properties.abaCountry - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["accountHolderGivenName"]) -> MetaOapg.properties.accountHolderGivenName: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["accountHolderSurname"]) -> MetaOapg.properties.accountHolderSurname: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["accountHolderCity"]) -> MetaOapg.properties.accountHolderCity: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["accountHolderCountry"]) -> MetaOapg.properties.accountHolderCountry: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["accountHolderAddress1"]) -> MetaOapg.properties.accountHolderAddress1: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["accountHolderAddress2"]) -> MetaOapg.properties.accountHolderAddress2: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["accountHolderDistrict"]) -> MetaOapg.properties.accountHolderDistrict: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["accountHolderPostalCode"]) -> MetaOapg.properties.accountHolderPostalCode: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["abaRoutingNumber"]) -> MetaOapg.properties.abaRoutingNumber: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["abaAccountNumber"]) -> MetaOapg.properties.abaAccountNumber: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["abaCountry"]) -> MetaOapg.properties.abaCountry: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["accountHolderGivenName", "accountHolderSurname", "accountHolderCity", "accountHolderCountry", "accountHolderAddress1", "accountHolderAddress2", "accountHolderDistrict", "accountHolderPostalCode", "abaRoutingNumber", "abaAccountNumber", "abaCountry", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["accountHolderGivenName"]) -> MetaOapg.properties.accountHolderGivenName: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["accountHolderSurname"]) -> typing.Union[MetaOapg.properties.accountHolderSurname, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["accountHolderCity"]) -> MetaOapg.properties.accountHolderCity: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["accountHolderCountry"]) -> MetaOapg.properties.accountHolderCountry: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["accountHolderAddress1"]) -> MetaOapg.properties.accountHolderAddress1: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["accountHolderAddress2"]) -> typing.Union[MetaOapg.properties.accountHolderAddress2, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["accountHolderDistrict"]) -> typing.Union[MetaOapg.properties.accountHolderDistrict, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["accountHolderPostalCode"]) -> MetaOapg.properties.accountHolderPostalCode: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["abaRoutingNumber"]) -> MetaOapg.properties.abaRoutingNumber: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["abaAccountNumber"]) -> MetaOapg.properties.abaAccountNumber: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["abaCountry"]) -> MetaOapg.properties.abaCountry: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["accountHolderGivenName", "accountHolderSurname", "accountHolderCity", "accountHolderCountry", "accountHolderAddress1", "accountHolderAddress2", "accountHolderDistrict", "accountHolderPostalCode", "abaRoutingNumber", "abaAccountNumber", "abaCountry", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - abaAccountNumber: typing.Union[MetaOapg.properties.abaAccountNumber, str, ], - accountHolderCity: typing.Union[MetaOapg.properties.accountHolderCity, str, ], - abaRoutingNumber: typing.Union[MetaOapg.properties.abaRoutingNumber, str, ], - accountHolderPostalCode: typing.Union[MetaOapg.properties.accountHolderPostalCode, str, ], - accountHolderCountry: typing.Union[MetaOapg.properties.accountHolderCountry, str, ], - accountHolderGivenName: typing.Union[MetaOapg.properties.accountHolderGivenName, str, ], - accountHolderAddress1: typing.Union[MetaOapg.properties.accountHolderAddress1, str, ], - abaCountry: typing.Union[MetaOapg.properties.abaCountry, str, ], - accountHolderSurname: typing.Union[MetaOapg.properties.accountHolderSurname, str, schemas.Unset] = schemas.unset, - accountHolderAddress2: typing.Union[MetaOapg.properties.accountHolderAddress2, str, schemas.Unset] = schemas.unset, - accountHolderDistrict: typing.Union[MetaOapg.properties.accountHolderDistrict, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'one_of_1': - return super().__new__( - cls, - *_args, - abaAccountNumber=abaAccountNumber, - accountHolderCity=accountHolderCity, - abaRoutingNumber=abaRoutingNumber, - accountHolderPostalCode=accountHolderPostalCode, - accountHolderCountry=accountHolderCountry, - accountHolderGivenName=accountHolderGivenName, - accountHolderAddress1=accountHolderAddress1, - abaCountry=abaCountry, - accountHolderSurname=accountHolderSurname, - accountHolderAddress2=accountHolderAddress2, - accountHolderDistrict=accountHolderDistrict, - _configuration=_configuration, - **kwargs, - ) - - - class one_of_2( - schemas.AnyTypeSchema, - ): - - - class MetaOapg: - required = { - "speiClabe", - } - - class properties: - speiClabe = schemas.StrSchema - speiName = schemas.StrSchema - __annotations__ = { - "speiClabe": speiClabe, - "speiName": speiName, - } - - - speiClabe: MetaOapg.properties.speiClabe - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["speiClabe"]) -> MetaOapg.properties.speiClabe: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["speiName"]) -> MetaOapg.properties.speiName: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["speiClabe", "speiName", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["speiClabe"]) -> MetaOapg.properties.speiClabe: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["speiName"]) -> typing.Union[MetaOapg.properties.speiName, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["speiClabe", "speiName", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - speiClabe: typing.Union[MetaOapg.properties.speiClabe, str, ], - speiName: typing.Union[MetaOapg.properties.speiName, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'one_of_2': - return super().__new__( - cls, - *_args, - speiClabe=speiClabe, - speiName=speiName, - _configuration=_configuration, - **kwargs, - ) - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.one_of_0, - cls.one_of_1, - cls.one_of_2, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'additionalInfo': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - __annotations__ = { - "additionalInfo": additionalInfo, - } - - - additionalInfo: MetaOapg.properties.additionalInfo - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["additionalInfo"]) -> MetaOapg.properties.additionalInfo: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["additionalInfo", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["additionalInfo"]) -> MetaOapg.properties.additionalInfo: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["additionalInfo", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - additionalInfo: typing.Union[MetaOapg.properties.additionalInfo, dict, frozendict.frozendict, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'one_of_1': - return super().__new__( - cls, - *_args, - additionalInfo=additionalInfo, - _configuration=_configuration, - **kwargs, - ) - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.one_of_0, - cls.one_of_1, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaForRequestBodyApplicationJson': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - - -request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, -) -XRequestIDSchema = schemas.StrSchema -SchemaFor200ResponseBody = ExternalWalletAsset -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _add_asset_to_external_wallet_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - """ - Add an asset to an external wallet. - """ - path_params = {} - for parameter in ( - request_path_wallet_id, - request_path_asset_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_wallet_id, - request_path_asset_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_any_type.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class AddAssetToExternalWallet(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def add_asset_to_external_wallet(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._add_asset_to_external_wallet_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._add_asset_to_external_wallet_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/external_wallets_wallet_id_set_customer_ref_id/__init__.py b/fireblocks_client/paths/external_wallets_wallet_id_set_customer_ref_id/__init__.py deleted file mode 100644 index c31b9861..00000000 --- a/fireblocks_client/paths/external_wallets_wallet_id_set_customer_ref_id/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.external_wallets_wallet_id_set_customer_ref_id import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.EXTERNAL_WALLETS_WALLET_ID_SET_CUSTOMER_REF_ID \ No newline at end of file diff --git a/fireblocks_client/paths/external_wallets_wallet_id_set_customer_ref_id/post.py b/fireblocks_client/paths/external_wallets_wallet_id_set_customer_ref_id/post.py deleted file mode 100644 index cfb79376..00000000 --- a/fireblocks_client/paths/external_wallets_wallet_id_set_customer_ref_id/post.py +++ /dev/null @@ -1,268 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error import Error - -from . import path - -# Path params -WalletIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'walletId': typing.Union[WalletIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_wallet_id = api_client.PathParameter( - name="walletId", - style=api_client.ParameterStyle.SIMPLE, - schema=WalletIdSchema, - required=True, -) -# body param - - -class SchemaForRequestBodyApplicationJson( - schemas.AnyTypeSchema, -): - - - class MetaOapg: - - class properties: - customerRefId = schemas.StrSchema - __annotations__ = { - "customerRefId": customerRefId, - } - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["customerRefId"]) -> MetaOapg.properties.customerRefId: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["customerRefId", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["customerRefId"]) -> typing.Union[MetaOapg.properties.customerRefId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["customerRefId", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - customerRefId: typing.Union[MetaOapg.properties.customerRefId, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaForRequestBodyApplicationJson': - return super().__new__( - cls, - *_args, - customerRefId=customerRefId, - _configuration=_configuration, - **kwargs, - ) - - -request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -ResponseHeadersFor201 = typing_extensions.TypedDict( - 'ResponseHeadersFor201', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor201(api_client.ApiResponse): - response: urllib3.HTTPResponse - headers: ResponseHeadersFor201 - body: schemas.Unset = schemas.unset - - -_response_for_201 = api_client.OpenApiResponse( - response_cls=ApiResponseFor201, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '201': _response_for_201, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _set_customer_ref_id_for_external_wallet_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - """ - Set an AML customer reference ID for an external wallet - """ - path_params = {} - for parameter in ( - request_path_wallet_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_wallet_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_any_type.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class SetCustomerRefIdForExternalWallet(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def set_customer_ref_id_for_external_wallet(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._set_customer_ref_id_for_external_wallet_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._set_customer_ref_id_for_external_wallet_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/external_wallets_wallet_id_set_customer_ref_id/post.pyi b/fireblocks_client/paths/external_wallets_wallet_id_set_customer_ref_id/post.pyi deleted file mode 100644 index c38536a9..00000000 --- a/fireblocks_client/paths/external_wallets_wallet_id_set_customer_ref_id/post.pyi +++ /dev/null @@ -1,252 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error import Error - -# Path params -WalletIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'walletId': typing.Union[WalletIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_wallet_id = api_client.PathParameter( - name="walletId", - style=api_client.ParameterStyle.SIMPLE, - schema=WalletIdSchema, - required=True, -) -# body param - - -class SchemaForRequestBodyApplicationJson( - schemas.AnyTypeSchema, -): - - - class MetaOapg: - - class properties: - customerRefId = schemas.StrSchema - __annotations__ = { - "customerRefId": customerRefId, - } - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["customerRefId"]) -> MetaOapg.properties.customerRefId: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["customerRefId", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["customerRefId"]) -> typing.Union[MetaOapg.properties.customerRefId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["customerRefId", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - customerRefId: typing.Union[MetaOapg.properties.customerRefId, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaForRequestBodyApplicationJson': - return super().__new__( - cls, - *_args, - customerRefId=customerRefId, - _configuration=_configuration, - **kwargs, - ) - - -request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -XRequestIDSchema = schemas.StrSchema -ResponseHeadersFor201 = typing_extensions.TypedDict( - 'ResponseHeadersFor201', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor201(api_client.ApiResponse): - response: urllib3.HTTPResponse - headers: ResponseHeadersFor201 - body: schemas.Unset = schemas.unset - - -_response_for_201 = api_client.OpenApiResponse( - response_cls=ApiResponseFor201, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _set_customer_ref_id_for_external_wallet_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - """ - Set an AML customer reference ID for an external wallet - """ - path_params = {} - for parameter in ( - request_path_wallet_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_wallet_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_any_type.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class SetCustomerRefIdForExternalWallet(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def set_customer_ref_id_for_external_wallet(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._set_customer_ref_id_for_external_wallet_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._set_customer_ref_id_for_external_wallet_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/fiat_accounts/__init__.py b/fireblocks_client/paths/fiat_accounts/__init__.py deleted file mode 100644 index d94adc8b..00000000 --- a/fireblocks_client/paths/fiat_accounts/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.fiat_accounts import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.FIAT_ACCOUNTS \ No newline at end of file diff --git a/fireblocks_client/paths/fiat_accounts/get.py b/fireblocks_client/paths/fiat_accounts/get.py deleted file mode 100644 index 467224f7..00000000 --- a/fireblocks_client/paths/fiat_accounts/get.py +++ /dev/null @@ -1,186 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.fiat_account import FiatAccount -from fireblocks_client.model.error import Error - -from . import path - -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) - - -class SchemaFor200ResponseBody( - schemas.ListSchema -): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['FiatAccount']: - return FiatAccount - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['FiatAccount'], typing.List['FiatAccount']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'SchemaFor200ResponseBody': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'FiatAccount': - return super().__getitem__(i) -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, - 'default': _response_for_default, -} -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_fiat_accounts_oapg(self, request_options: RequestOptions = None): - """ - List fiat accounts - """ - used_path = path.value - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetFiatAccounts(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_fiat_accounts(self , request_options: RequestOptions = None): - return self._get_fiat_accounts_oapg(request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , request_options: RequestOptions = None): - return self._get_fiat_accounts_oapg(request_options) - - diff --git a/fireblocks_client/paths/fiat_accounts/get.pyi b/fireblocks_client/paths/fiat_accounts/get.pyi deleted file mode 100644 index e8dd6ff5..00000000 --- a/fireblocks_client/paths/fiat_accounts/get.pyi +++ /dev/null @@ -1,170 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.fiat_account import FiatAccount -from fireblocks_client.model.error import Error - -XRequestIDSchema = schemas.StrSchema - - -class SchemaFor200ResponseBody( - schemas.ListSchema -): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['FiatAccount']: - return FiatAccount - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['FiatAccount'], typing.List['FiatAccount']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'SchemaFor200ResponseBody': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'FiatAccount': - return super().__getitem__(i) -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_fiat_accounts_oapg(self, request_options: RequestOptions = None): - """ - List fiat accounts - """ - used_path = path.value - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetFiatAccounts(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_fiat_accounts(self , request_options: RequestOptions = None): - return self._get_fiat_accounts_oapg(request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , request_options: RequestOptions = None): - return self._get_fiat_accounts_oapg(request_options) - - diff --git a/fireblocks_client/paths/fiat_accounts_account_id/__init__.py b/fireblocks_client/paths/fiat_accounts_account_id/__init__.py deleted file mode 100644 index f539b577..00000000 --- a/fireblocks_client/paths/fiat_accounts_account_id/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.fiat_accounts_account_id import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.FIAT_ACCOUNTS_ACCOUNT_ID \ No newline at end of file diff --git a/fireblocks_client/paths/fiat_accounts_account_id/get.py b/fireblocks_client/paths/fiat_accounts_account_id/get.py deleted file mode 100644 index 7fc098ab..00000000 --- a/fireblocks_client/paths/fiat_accounts_account_id/get.py +++ /dev/null @@ -1,207 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.fiat_account import FiatAccount -from fireblocks_client.model.error import Error - -from . import path - -# Path params -AccountIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'accountId': typing.Union[AccountIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_account_id = api_client.PathParameter( - name="accountId", - style=api_client.ParameterStyle.SIMPLE, - schema=AccountIdSchema, - required=True, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor200ResponseBody = FiatAccount -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, - 'default': _response_for_default, -} -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_fiat_account_by_id_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Find a specific fiat account - """ - path_params = {} - for parameter in ( - request_path_account_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_account_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetFiatAccountById(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_fiat_account_by_id(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_fiat_account_by_id_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_fiat_account_by_id_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/fiat_accounts_account_id/get.pyi b/fireblocks_client/paths/fiat_accounts_account_id/get.pyi deleted file mode 100644 index d6b3ac0b..00000000 --- a/fireblocks_client/paths/fiat_accounts_account_id/get.pyi +++ /dev/null @@ -1,191 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.fiat_account import FiatAccount -from fireblocks_client.model.error import Error - -# Path params -AccountIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'accountId': typing.Union[AccountIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_account_id = api_client.PathParameter( - name="accountId", - style=api_client.ParameterStyle.SIMPLE, - schema=AccountIdSchema, - required=True, -) -XRequestIDSchema = schemas.StrSchema -SchemaFor200ResponseBody = FiatAccount -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_fiat_account_by_id_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Find a specific fiat account - """ - path_params = {} - for parameter in ( - request_path_account_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_account_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetFiatAccountById(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_fiat_account_by_id(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_fiat_account_by_id_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_fiat_account_by_id_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/fiat_accounts_account_id_deposit_from_linked_dda/__init__.py b/fireblocks_client/paths/fiat_accounts_account_id_deposit_from_linked_dda/__init__.py deleted file mode 100644 index 70fbfa19..00000000 --- a/fireblocks_client/paths/fiat_accounts_account_id_deposit_from_linked_dda/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.fiat_accounts_account_id_deposit_from_linked_dda import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.FIAT_ACCOUNTS_ACCOUNT_ID_DEPOSIT_FROM_LINKED_DDA \ No newline at end of file diff --git a/fireblocks_client/paths/fiat_accounts_account_id_deposit_from_linked_dda/post.py b/fireblocks_client/paths/fiat_accounts_account_id_deposit_from_linked_dda/post.py deleted file mode 100644 index 2e62f43a..00000000 --- a/fireblocks_client/paths/fiat_accounts_account_id_deposit_from_linked_dda/post.py +++ /dev/null @@ -1,267 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error import Error - -from . import path - -# Path params -AccountIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'accountId': typing.Union[AccountIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_account_id = api_client.PathParameter( - name="accountId", - style=api_client.ParameterStyle.SIMPLE, - schema=AccountIdSchema, - required=True, -) -# body param - - -class SchemaForRequestBodyApplicationJson( - schemas.AnyTypeSchema, -): - - - class MetaOapg: - - class properties: - amount = schemas.NumberSchema - __annotations__ = { - "amount": amount, - } - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["amount"]) -> MetaOapg.properties.amount: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["amount", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["amount"]) -> typing.Union[MetaOapg.properties.amount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["amount", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - amount: typing.Union[MetaOapg.properties.amount, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaForRequestBodyApplicationJson': - return super().__new__( - cls, - *_args, - amount=amount, - _configuration=_configuration, - **kwargs, - ) - - -request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -ResponseHeadersFor201 = typing_extensions.TypedDict( - 'ResponseHeadersFor201', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor201(api_client.ApiResponse): - response: urllib3.HTTPResponse - headers: ResponseHeadersFor201 - body: schemas.Unset = schemas.unset - - -_response_for_201 = api_client.OpenApiResponse( - response_cls=ApiResponseFor201, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '201': _response_for_201, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _deposit_funds_from_linked_dda_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - """ - Deposit funds from DDA - """ - path_params = {} - for parameter in ( - request_path_account_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_account_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_any_type.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class DepositFundsFromLinkedDda(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def deposit_funds_from_linked_dda(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._deposit_funds_from_linked_dda_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._deposit_funds_from_linked_dda_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/fiat_accounts_account_id_deposit_from_linked_dda/post.pyi b/fireblocks_client/paths/fiat_accounts_account_id_deposit_from_linked_dda/post.pyi deleted file mode 100644 index 6ce55ea2..00000000 --- a/fireblocks_client/paths/fiat_accounts_account_id_deposit_from_linked_dda/post.pyi +++ /dev/null @@ -1,251 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error import Error - -# Path params -AccountIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'accountId': typing.Union[AccountIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_account_id = api_client.PathParameter( - name="accountId", - style=api_client.ParameterStyle.SIMPLE, - schema=AccountIdSchema, - required=True, -) -# body param - - -class SchemaForRequestBodyApplicationJson( - schemas.AnyTypeSchema, -): - - - class MetaOapg: - - class properties: - amount = schemas.NumberSchema - __annotations__ = { - "amount": amount, - } - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["amount"]) -> MetaOapg.properties.amount: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["amount", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["amount"]) -> typing.Union[MetaOapg.properties.amount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["amount", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - amount: typing.Union[MetaOapg.properties.amount, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaForRequestBodyApplicationJson': - return super().__new__( - cls, - *_args, - amount=amount, - _configuration=_configuration, - **kwargs, - ) - - -request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, -) -XRequestIDSchema = schemas.StrSchema -ResponseHeadersFor201 = typing_extensions.TypedDict( - 'ResponseHeadersFor201', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor201(api_client.ApiResponse): - response: urllib3.HTTPResponse - headers: ResponseHeadersFor201 - body: schemas.Unset = schemas.unset - - -_response_for_201 = api_client.OpenApiResponse( - response_cls=ApiResponseFor201, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _deposit_funds_from_linked_dda_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - """ - Deposit funds from DDA - """ - path_params = {} - for parameter in ( - request_path_account_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_account_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_any_type.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class DepositFundsFromLinkedDda(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def deposit_funds_from_linked_dda(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._deposit_funds_from_linked_dda_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._deposit_funds_from_linked_dda_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/fiat_accounts_account_id_redeem_to_linked_dda/__init__.py b/fireblocks_client/paths/fiat_accounts_account_id_redeem_to_linked_dda/__init__.py deleted file mode 100644 index d873db7f..00000000 --- a/fireblocks_client/paths/fiat_accounts_account_id_redeem_to_linked_dda/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.fiat_accounts_account_id_redeem_to_linked_dda import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.FIAT_ACCOUNTS_ACCOUNT_ID_REDEEM_TO_LINKED_DDA \ No newline at end of file diff --git a/fireblocks_client/paths/fiat_accounts_account_id_redeem_to_linked_dda/post.py b/fireblocks_client/paths/fiat_accounts_account_id_redeem_to_linked_dda/post.py deleted file mode 100644 index bca7b6e2..00000000 --- a/fireblocks_client/paths/fiat_accounts_account_id_redeem_to_linked_dda/post.py +++ /dev/null @@ -1,267 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error import Error - -from . import path - -# Path params -AccountIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'accountId': typing.Union[AccountIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_account_id = api_client.PathParameter( - name="accountId", - style=api_client.ParameterStyle.SIMPLE, - schema=AccountIdSchema, - required=True, -) -# body param - - -class SchemaForRequestBodyApplicationJson( - schemas.AnyTypeSchema, -): - - - class MetaOapg: - - class properties: - amount = schemas.NumberSchema - __annotations__ = { - "amount": amount, - } - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["amount"]) -> MetaOapg.properties.amount: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["amount", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["amount"]) -> typing.Union[MetaOapg.properties.amount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["amount", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - amount: typing.Union[MetaOapg.properties.amount, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaForRequestBodyApplicationJson': - return super().__new__( - cls, - *_args, - amount=amount, - _configuration=_configuration, - **kwargs, - ) - - -request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -ResponseHeadersFor201 = typing_extensions.TypedDict( - 'ResponseHeadersFor201', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor201(api_client.ApiResponse): - response: urllib3.HTTPResponse - headers: ResponseHeadersFor201 - body: schemas.Unset = schemas.unset - - -_response_for_201 = api_client.OpenApiResponse( - response_cls=ApiResponseFor201, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '201': _response_for_201, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _redeem_funds_to_linked_dda_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - """ - Redeem funds to DDA - """ - path_params = {} - for parameter in ( - request_path_account_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_account_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_any_type.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class RedeemFundsToLinkedDda(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def redeem_funds_to_linked_dda(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._redeem_funds_to_linked_dda_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._redeem_funds_to_linked_dda_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/fiat_accounts_account_id_redeem_to_linked_dda/post.pyi b/fireblocks_client/paths/fiat_accounts_account_id_redeem_to_linked_dda/post.pyi deleted file mode 100644 index 129858d0..00000000 --- a/fireblocks_client/paths/fiat_accounts_account_id_redeem_to_linked_dda/post.pyi +++ /dev/null @@ -1,251 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error import Error - -# Path params -AccountIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'accountId': typing.Union[AccountIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_account_id = api_client.PathParameter( - name="accountId", - style=api_client.ParameterStyle.SIMPLE, - schema=AccountIdSchema, - required=True, -) -# body param - - -class SchemaForRequestBodyApplicationJson( - schemas.AnyTypeSchema, -): - - - class MetaOapg: - - class properties: - amount = schemas.NumberSchema - __annotations__ = { - "amount": amount, - } - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["amount"]) -> MetaOapg.properties.amount: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["amount", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["amount"]) -> typing.Union[MetaOapg.properties.amount, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["amount", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - amount: typing.Union[MetaOapg.properties.amount, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaForRequestBodyApplicationJson': - return super().__new__( - cls, - *_args, - amount=amount, - _configuration=_configuration, - **kwargs, - ) - - -request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, -) -XRequestIDSchema = schemas.StrSchema -ResponseHeadersFor201 = typing_extensions.TypedDict( - 'ResponseHeadersFor201', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor201(api_client.ApiResponse): - response: urllib3.HTTPResponse - headers: ResponseHeadersFor201 - body: schemas.Unset = schemas.unset - - -_response_for_201 = api_client.OpenApiResponse( - response_cls=ApiResponseFor201, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _redeem_funds_to_linked_dda_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - """ - Redeem funds to DDA - """ - path_params = {} - for parameter in ( - request_path_account_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_account_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_any_type.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class RedeemFundsToLinkedDda(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def redeem_funds_to_linked_dda(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._redeem_funds_to_linked_dda_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._redeem_funds_to_linked_dda_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/gas_station/__init__.py b/fireblocks_client/paths/gas_station/__init__.py deleted file mode 100644 index 59054e62..00000000 --- a/fireblocks_client/paths/gas_station/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.gas_station import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.GAS_STATION \ No newline at end of file diff --git a/fireblocks_client/paths/gas_station/get.py b/fireblocks_client/paths/gas_station/get.py deleted file mode 100644 index 68283680..00000000 --- a/fireblocks_client/paths/gas_station/get.py +++ /dev/null @@ -1,161 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.gas_station_properties_response import GasStationPropertiesResponse -from fireblocks_client.model.error import Error - -from . import path - -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor200ResponseBody = GasStationPropertiesResponse -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, - 'default': _response_for_default, -} -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_gas_station_oapg(self, request_options: RequestOptions = None): - """ - Get gas station settings - """ - used_path = path.value - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetGasStation(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_gas_station(self , request_options: RequestOptions = None): - return self._get_gas_station_oapg(request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , request_options: RequestOptions = None): - return self._get_gas_station_oapg(request_options) - - diff --git a/fireblocks_client/paths/gas_station/get.pyi b/fireblocks_client/paths/gas_station/get.pyi deleted file mode 100644 index c30341d8..00000000 --- a/fireblocks_client/paths/gas_station/get.pyi +++ /dev/null @@ -1,145 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.gas_station_properties_response import GasStationPropertiesResponse -from fireblocks_client.model.error import Error - -XRequestIDSchema = schemas.StrSchema -SchemaFor200ResponseBody = GasStationPropertiesResponse -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_gas_station_oapg(self, request_options: RequestOptions = None): - """ - Get gas station settings - """ - used_path = path.value - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetGasStation(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_gas_station(self , request_options: RequestOptions = None): - return self._get_gas_station_oapg(request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , request_options: RequestOptions = None): - return self._get_gas_station_oapg(request_options) - - diff --git a/fireblocks_client/paths/gas_station_asset_id/__init__.py b/fireblocks_client/paths/gas_station_asset_id/__init__.py deleted file mode 100644 index 909aeb90..00000000 --- a/fireblocks_client/paths/gas_station_asset_id/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.gas_station_asset_id import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.GAS_STATION_ASSET_ID \ No newline at end of file diff --git a/fireblocks_client/paths/gas_station_asset_id/get.py b/fireblocks_client/paths/gas_station_asset_id/get.py deleted file mode 100644 index 49a0ecd9..00000000 --- a/fireblocks_client/paths/gas_station_asset_id/get.py +++ /dev/null @@ -1,207 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.gas_station_properties_response import GasStationPropertiesResponse -from fireblocks_client.model.error import Error - -from . import path - -# Path params -AssetIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'assetId': typing.Union[AssetIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_asset_id = api_client.PathParameter( - name="assetId", - style=api_client.ParameterStyle.SIMPLE, - schema=AssetIdSchema, - required=True, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor200ResponseBody = GasStationPropertiesResponse -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, - 'default': _response_for_default, -} -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_gas_station_by_asset_id_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Get gas station settings by asset - """ - path_params = {} - for parameter in ( - request_path_asset_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_asset_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetGasStationByAssetId(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_gas_station_by_asset_id(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_gas_station_by_asset_id_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_gas_station_by_asset_id_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/gas_station_asset_id/get.pyi b/fireblocks_client/paths/gas_station_asset_id/get.pyi deleted file mode 100644 index 8e0ef877..00000000 --- a/fireblocks_client/paths/gas_station_asset_id/get.pyi +++ /dev/null @@ -1,191 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.gas_station_properties_response import GasStationPropertiesResponse -from fireblocks_client.model.error import Error - -# Path params -AssetIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'assetId': typing.Union[AssetIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_asset_id = api_client.PathParameter( - name="assetId", - style=api_client.ParameterStyle.SIMPLE, - schema=AssetIdSchema, - required=True, -) -XRequestIDSchema = schemas.StrSchema -SchemaFor200ResponseBody = GasStationPropertiesResponse -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_gas_station_by_asset_id_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Get gas station settings by asset - """ - path_params = {} - for parameter in ( - request_path_asset_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_asset_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetGasStationByAssetId(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_gas_station_by_asset_id(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_gas_station_by_asset_id_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_gas_station_by_asset_id_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/gas_station_configuration/__init__.py b/fireblocks_client/paths/gas_station_configuration/__init__.py deleted file mode 100644 index 23d5d3ef..00000000 --- a/fireblocks_client/paths/gas_station_configuration/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.gas_station_configuration import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.GAS_STATION_CONFIGURATION \ No newline at end of file diff --git a/fireblocks_client/paths/gas_station_configuration/put.py b/fireblocks_client/paths/gas_station_configuration/put.py deleted file mode 100644 index 1d3c790e..00000000 --- a/fireblocks_client/paths/gas_station_configuration/put.py +++ /dev/null @@ -1,173 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.gas_station_configuration import GasStationConfiguration -from fireblocks_client.model.error import Error - -from . import path - -# body param -SchemaForRequestBodyApplicationJson = GasStationConfiguration - - -request_body_gas_station_configuration = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -ResponseHeadersFor201 = typing_extensions.TypedDict( - 'ResponseHeadersFor201', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor201(api_client.ApiResponse): - response: urllib3.HTTPResponse - headers: ResponseHeadersFor201 - body: schemas.Unset = schemas.unset - - -_response_for_201 = api_client.OpenApiResponse( - response_cls=ApiResponseFor201, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '201': _response_for_201, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _update_gas_station_configuration_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - """ - Edit gas station settings - """ - used_path = path.value - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_gas_station_configuration.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='put'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class UpdateGasStationConfiguration(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def update_gas_station_configuration(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._update_gas_station_configuration_oapg(params, request_options) - - -class ApiForput(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def put(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._update_gas_station_configuration_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/gas_station_configuration/put.pyi b/fireblocks_client/paths/gas_station_configuration/put.pyi deleted file mode 100644 index 208526a0..00000000 --- a/fireblocks_client/paths/gas_station_configuration/put.pyi +++ /dev/null @@ -1,157 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.gas_station_configuration import GasStationConfiguration -from fireblocks_client.model.error import Error - -# body param -SchemaForRequestBodyApplicationJson = GasStationConfiguration - - -request_body_gas_station_configuration = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -XRequestIDSchema = schemas.StrSchema -ResponseHeadersFor201 = typing_extensions.TypedDict( - 'ResponseHeadersFor201', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor201(api_client.ApiResponse): - response: urllib3.HTTPResponse - headers: ResponseHeadersFor201 - body: schemas.Unset = schemas.unset - - -_response_for_201 = api_client.OpenApiResponse( - response_cls=ApiResponseFor201, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _update_gas_station_configuration_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - """ - Edit gas station settings - """ - used_path = path.value - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_gas_station_configuration.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='put'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class UpdateGasStationConfiguration(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def update_gas_station_configuration(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._update_gas_station_configuration_oapg(params, request_options) - - -class ApiForput(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def put(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._update_gas_station_configuration_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/gas_station_configuration_asset_id/__init__.py b/fireblocks_client/paths/gas_station_configuration_asset_id/__init__.py deleted file mode 100644 index 6267b183..00000000 --- a/fireblocks_client/paths/gas_station_configuration_asset_id/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.gas_station_configuration_asset_id import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.GAS_STATION_CONFIGURATION_ASSET_ID \ No newline at end of file diff --git a/fireblocks_client/paths/gas_station_configuration_asset_id/put.py b/fireblocks_client/paths/gas_station_configuration_asset_id/put.py deleted file mode 100644 index 49d40327..00000000 --- a/fireblocks_client/paths/gas_station_configuration_asset_id/put.py +++ /dev/null @@ -1,219 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.gas_station_configuration import GasStationConfiguration -from fireblocks_client.model.error import Error - -from . import path - -# Path params -AssetIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'assetId': typing.Union[AssetIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_asset_id = api_client.PathParameter( - name="assetId", - style=api_client.ParameterStyle.SIMPLE, - schema=AssetIdSchema, - required=True, -) -# body param -SchemaForRequestBodyApplicationJson = GasStationConfiguration - - -request_body_gas_station_configuration = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -ResponseHeadersFor201 = typing_extensions.TypedDict( - 'ResponseHeadersFor201', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor201(api_client.ApiResponse): - response: urllib3.HTTPResponse - headers: ResponseHeadersFor201 - body: schemas.Unset = schemas.unset - - -_response_for_201 = api_client.OpenApiResponse( - response_cls=ApiResponseFor201, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '201': _response_for_201, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _update_gas_station_configuration_by_asset_id_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - """ - Edit gas station settings for an asset - """ - path_params = {} - for parameter in ( - request_path_asset_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_asset_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_gas_station_configuration.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='put'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class UpdateGasStationConfigurationByAssetId(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def update_gas_station_configuration_by_asset_id(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._update_gas_station_configuration_by_asset_id_oapg(params, request_options) - - -class ApiForput(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def put(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._update_gas_station_configuration_by_asset_id_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/gas_station_configuration_asset_id/put.pyi b/fireblocks_client/paths/gas_station_configuration_asset_id/put.pyi deleted file mode 100644 index 057d6b7f..00000000 --- a/fireblocks_client/paths/gas_station_configuration_asset_id/put.pyi +++ /dev/null @@ -1,203 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.gas_station_configuration import GasStationConfiguration -from fireblocks_client.model.error import Error - -# Path params -AssetIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'assetId': typing.Union[AssetIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_asset_id = api_client.PathParameter( - name="assetId", - style=api_client.ParameterStyle.SIMPLE, - schema=AssetIdSchema, - required=True, -) -# body param -SchemaForRequestBodyApplicationJson = GasStationConfiguration - - -request_body_gas_station_configuration = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -XRequestIDSchema = schemas.StrSchema -ResponseHeadersFor201 = typing_extensions.TypedDict( - 'ResponseHeadersFor201', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor201(api_client.ApiResponse): - response: urllib3.HTTPResponse - headers: ResponseHeadersFor201 - body: schemas.Unset = schemas.unset - - -_response_for_201 = api_client.OpenApiResponse( - response_cls=ApiResponseFor201, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _update_gas_station_configuration_by_asset_id_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - """ - Edit gas station settings for an asset - """ - path_params = {} - for parameter in ( - request_path_asset_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_asset_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_gas_station_configuration.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='put'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class UpdateGasStationConfigurationByAssetId(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def update_gas_station_configuration_by_asset_id(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._update_gas_station_configuration_by_asset_id_oapg(params, request_options) - - -class ApiForput(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def put(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._update_gas_station_configuration_by_asset_id_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/internal_wallets/__init__.py b/fireblocks_client/paths/internal_wallets/__init__.py deleted file mode 100644 index 69bd2fe1..00000000 --- a/fireblocks_client/paths/internal_wallets/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.internal_wallets import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.INTERNAL_WALLETS \ No newline at end of file diff --git a/fireblocks_client/paths/internal_wallets/get.py b/fireblocks_client/paths/internal_wallets/get.py deleted file mode 100644 index 8424b970..00000000 --- a/fireblocks_client/paths/internal_wallets/get.py +++ /dev/null @@ -1,186 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.unmanaged_wallet import UnmanagedWallet -from fireblocks_client.model.error import Error - -from . import path - -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) - - -class SchemaFor200ResponseBody( - schemas.ListSchema -): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['UnmanagedWallet']: - return UnmanagedWallet - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['UnmanagedWallet'], typing.List['UnmanagedWallet']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'SchemaFor200ResponseBody': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'UnmanagedWallet': - return super().__getitem__(i) -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, - 'default': _response_for_default, -} -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_internal_wallets_oapg(self, request_options: RequestOptions = None): - """ - List internal wallets - """ - used_path = path.value - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetInternalWallets(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_internal_wallets(self , request_options: RequestOptions = None): - return self._get_internal_wallets_oapg(request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , request_options: RequestOptions = None): - return self._get_internal_wallets_oapg(request_options) - - diff --git a/fireblocks_client/paths/internal_wallets/get.pyi b/fireblocks_client/paths/internal_wallets/get.pyi deleted file mode 100644 index ae4e0f50..00000000 --- a/fireblocks_client/paths/internal_wallets/get.pyi +++ /dev/null @@ -1,170 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.unmanaged_wallet import UnmanagedWallet -from fireblocks_client.model.error import Error - -XRequestIDSchema = schemas.StrSchema - - -class SchemaFor200ResponseBody( - schemas.ListSchema -): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['UnmanagedWallet']: - return UnmanagedWallet - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['UnmanagedWallet'], typing.List['UnmanagedWallet']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'SchemaFor200ResponseBody': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'UnmanagedWallet': - return super().__getitem__(i) -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_internal_wallets_oapg(self, request_options: RequestOptions = None): - """ - List internal wallets - """ - used_path = path.value - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetInternalWallets(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_internal_wallets(self , request_options: RequestOptions = None): - return self._get_internal_wallets_oapg(request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , request_options: RequestOptions = None): - return self._get_internal_wallets_oapg(request_options) - - diff --git a/fireblocks_client/paths/internal_wallets/post.py b/fireblocks_client/paths/internal_wallets/post.py deleted file mode 100644 index 128f13c8..00000000 --- a/fireblocks_client/paths/internal_wallets/post.py +++ /dev/null @@ -1,240 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.unmanaged_wallet import UnmanagedWallet -from fireblocks_client.model.error import Error - -from . import path - -# body param - - -class SchemaForRequestBodyApplicationJson( - schemas.AnyTypeSchema, -): - - - class MetaOapg: - - class properties: - name = schemas.StrSchema - customerRefId = schemas.StrSchema - __annotations__ = { - "name": name, - "customerRefId": customerRefId, - } - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["customerRefId"]) -> MetaOapg.properties.customerRefId: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "customerRefId", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["customerRefId"]) -> typing.Union[MetaOapg.properties.customerRefId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "customerRefId", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, - customerRefId: typing.Union[MetaOapg.properties.customerRefId, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaForRequestBodyApplicationJson': - return super().__new__( - cls, - *_args, - name=name, - customerRefId=customerRefId, - _configuration=_configuration, - **kwargs, - ) - - -request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor200ResponseBody = UnmanagedWallet -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, - 'default': _response_for_default, -} -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _create_internal_wallet_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - """ - Create an internal wallet - """ - used_path = path.value - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_any_type.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class CreateInternalWallet(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def create_internal_wallet(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._create_internal_wallet_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._create_internal_wallet_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/internal_wallets/post.pyi b/fireblocks_client/paths/internal_wallets/post.pyi deleted file mode 100644 index 377e599d..00000000 --- a/fireblocks_client/paths/internal_wallets/post.pyi +++ /dev/null @@ -1,224 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.unmanaged_wallet import UnmanagedWallet -from fireblocks_client.model.error import Error - -# body param - - -class SchemaForRequestBodyApplicationJson( - schemas.AnyTypeSchema, -): - - - class MetaOapg: - - class properties: - name = schemas.StrSchema - customerRefId = schemas.StrSchema - __annotations__ = { - "name": name, - "customerRefId": customerRefId, - } - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["customerRefId"]) -> MetaOapg.properties.customerRefId: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "customerRefId", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["customerRefId"]) -> typing.Union[MetaOapg.properties.customerRefId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "customerRefId", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, - customerRefId: typing.Union[MetaOapg.properties.customerRefId, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaForRequestBodyApplicationJson': - return super().__new__( - cls, - *_args, - name=name, - customerRefId=customerRefId, - _configuration=_configuration, - **kwargs, - ) - - -request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, -) -XRequestIDSchema = schemas.StrSchema -SchemaFor200ResponseBody = UnmanagedWallet -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _create_internal_wallet_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - """ - Create an internal wallet - """ - used_path = path.value - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_any_type.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class CreateInternalWallet(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def create_internal_wallet(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._create_internal_wallet_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._create_internal_wallet_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/internal_wallets_wallet_id/__init__.py b/fireblocks_client/paths/internal_wallets_wallet_id/__init__.py deleted file mode 100644 index 3326f4db..00000000 --- a/fireblocks_client/paths/internal_wallets_wallet_id/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.internal_wallets_wallet_id import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.INTERNAL_WALLETS_WALLET_ID \ No newline at end of file diff --git a/fireblocks_client/paths/internal_wallets_wallet_id/delete.py b/fireblocks_client/paths/internal_wallets_wallet_id/delete.py deleted file mode 100644 index da7017e6..00000000 --- a/fireblocks_client/paths/internal_wallets_wallet_id/delete.py +++ /dev/null @@ -1,198 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error import Error - -from . import path - -# Path params -WalletIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'walletId': typing.Union[WalletIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_wallet_id = api_client.PathParameter( - name="walletId", - style=api_client.ParameterStyle.SIMPLE, - schema=WalletIdSchema, - required=True, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -ResponseHeadersFor201 = typing_extensions.TypedDict( - 'ResponseHeadersFor201', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor201(api_client.ApiResponse): - response: urllib3.HTTPResponse - headers: ResponseHeadersFor201 - body: schemas.Unset = schemas.unset - - -_response_for_201 = api_client.OpenApiResponse( - response_cls=ApiResponseFor201, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '201': _response_for_201, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _delete_internal_wallet_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Delete an internal wallet - """ - path_params = {} - for parameter in ( - request_path_wallet_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_wallet_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='delete'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class DeleteInternalWallet(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def delete_internal_wallet(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._delete_internal_wallet_oapg(params, request_options) - - -class ApiFordelete(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def delete(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._delete_internal_wallet_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/internal_wallets_wallet_id/delete.pyi b/fireblocks_client/paths/internal_wallets_wallet_id/delete.pyi deleted file mode 100644 index 523d0f3b..00000000 --- a/fireblocks_client/paths/internal_wallets_wallet_id/delete.pyi +++ /dev/null @@ -1,182 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error import Error - -# Path params -WalletIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'walletId': typing.Union[WalletIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_wallet_id = api_client.PathParameter( - name="walletId", - style=api_client.ParameterStyle.SIMPLE, - schema=WalletIdSchema, - required=True, -) -XRequestIDSchema = schemas.StrSchema -ResponseHeadersFor201 = typing_extensions.TypedDict( - 'ResponseHeadersFor201', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor201(api_client.ApiResponse): - response: urllib3.HTTPResponse - headers: ResponseHeadersFor201 - body: schemas.Unset = schemas.unset - - -_response_for_201 = api_client.OpenApiResponse( - response_cls=ApiResponseFor201, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _delete_internal_wallet_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Delete an internal wallet - """ - path_params = {} - for parameter in ( - request_path_wallet_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_wallet_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='delete'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class DeleteInternalWallet(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def delete_internal_wallet(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._delete_internal_wallet_oapg(params, request_options) - - -class ApiFordelete(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def delete(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._delete_internal_wallet_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/internal_wallets_wallet_id/get.py b/fireblocks_client/paths/internal_wallets_wallet_id/get.py deleted file mode 100644 index ec6eb8be..00000000 --- a/fireblocks_client/paths/internal_wallets_wallet_id/get.py +++ /dev/null @@ -1,207 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.unmanaged_wallet import UnmanagedWallet -from fireblocks_client.model.error import Error - -from . import path - -# Path params -WalletIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'walletId': typing.Union[WalletIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_wallet_id = api_client.PathParameter( - name="walletId", - style=api_client.ParameterStyle.SIMPLE, - schema=WalletIdSchema, - required=True, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor200ResponseBody = UnmanagedWallet -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, - 'default': _response_for_default, -} -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_internal_wallet_by_id_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Get assets for internal wallet - """ - path_params = {} - for parameter in ( - request_path_wallet_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_wallet_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetInternalWalletById(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_internal_wallet_by_id(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_internal_wallet_by_id_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_internal_wallet_by_id_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/internal_wallets_wallet_id/get.pyi b/fireblocks_client/paths/internal_wallets_wallet_id/get.pyi deleted file mode 100644 index 67f569f9..00000000 --- a/fireblocks_client/paths/internal_wallets_wallet_id/get.pyi +++ /dev/null @@ -1,191 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.unmanaged_wallet import UnmanagedWallet -from fireblocks_client.model.error import Error - -# Path params -WalletIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'walletId': typing.Union[WalletIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_wallet_id = api_client.PathParameter( - name="walletId", - style=api_client.ParameterStyle.SIMPLE, - schema=WalletIdSchema, - required=True, -) -XRequestIDSchema = schemas.StrSchema -SchemaFor200ResponseBody = UnmanagedWallet -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_internal_wallet_by_id_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Get assets for internal wallet - """ - path_params = {} - for parameter in ( - request_path_wallet_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_wallet_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetInternalWalletById(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_internal_wallet_by_id(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_internal_wallet_by_id_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_internal_wallet_by_id_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/internal_wallets_wallet_id_asset_id/__init__.py b/fireblocks_client/paths/internal_wallets_wallet_id_asset_id/__init__.py deleted file mode 100644 index b59e97f6..00000000 --- a/fireblocks_client/paths/internal_wallets_wallet_id_asset_id/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.internal_wallets_wallet_id_asset_id import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.INTERNAL_WALLETS_WALLET_ID_ASSET_ID \ No newline at end of file diff --git a/fireblocks_client/paths/internal_wallets_wallet_id_asset_id/delete.py b/fireblocks_client/paths/internal_wallets_wallet_id_asset_id/delete.py deleted file mode 100644 index 984a8d04..00000000 --- a/fireblocks_client/paths/internal_wallets_wallet_id_asset_id/delete.py +++ /dev/null @@ -1,208 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error import Error - -from . import path - -# Path params -WalletIdSchema = schemas.StrSchema -AssetIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'walletId': typing.Union[WalletIdSchema, str, ], - 'assetId': typing.Union[AssetIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_wallet_id = api_client.PathParameter( - name="walletId", - style=api_client.ParameterStyle.SIMPLE, - schema=WalletIdSchema, - required=True, -) -request_path_asset_id = api_client.PathParameter( - name="assetId", - style=api_client.ParameterStyle.SIMPLE, - schema=AssetIdSchema, - required=True, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -ResponseHeadersFor201 = typing_extensions.TypedDict( - 'ResponseHeadersFor201', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor201(api_client.ApiResponse): - response: urllib3.HTTPResponse - headers: ResponseHeadersFor201 - body: schemas.Unset = schemas.unset - - -_response_for_201 = api_client.OpenApiResponse( - response_cls=ApiResponseFor201, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '201': _response_for_201, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _delete_internal_wallet_asset_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Delete a whitelisted address from an internal wallet - """ - path_params = {} - for parameter in ( - request_path_wallet_id, - request_path_asset_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_wallet_id, - request_path_asset_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='delete'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class DeleteInternalWalletAsset(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def delete_internal_wallet_asset(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._delete_internal_wallet_asset_oapg(params, request_options) - - -class ApiFordelete(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def delete(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._delete_internal_wallet_asset_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/internal_wallets_wallet_id_asset_id/delete.pyi b/fireblocks_client/paths/internal_wallets_wallet_id_asset_id/delete.pyi deleted file mode 100644 index 62259830..00000000 --- a/fireblocks_client/paths/internal_wallets_wallet_id_asset_id/delete.pyi +++ /dev/null @@ -1,192 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error import Error - -# Path params -WalletIdSchema = schemas.StrSchema -AssetIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'walletId': typing.Union[WalletIdSchema, str, ], - 'assetId': typing.Union[AssetIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_wallet_id = api_client.PathParameter( - name="walletId", - style=api_client.ParameterStyle.SIMPLE, - schema=WalletIdSchema, - required=True, -) -request_path_asset_id = api_client.PathParameter( - name="assetId", - style=api_client.ParameterStyle.SIMPLE, - schema=AssetIdSchema, - required=True, -) -XRequestIDSchema = schemas.StrSchema -ResponseHeadersFor201 = typing_extensions.TypedDict( - 'ResponseHeadersFor201', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor201(api_client.ApiResponse): - response: urllib3.HTTPResponse - headers: ResponseHeadersFor201 - body: schemas.Unset = schemas.unset - - -_response_for_201 = api_client.OpenApiResponse( - response_cls=ApiResponseFor201, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _delete_internal_wallet_asset_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Delete a whitelisted address from an internal wallet - """ - path_params = {} - for parameter in ( - request_path_wallet_id, - request_path_asset_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_wallet_id, - request_path_asset_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='delete'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class DeleteInternalWalletAsset(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def delete_internal_wallet_asset(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._delete_internal_wallet_asset_oapg(params, request_options) - - -class ApiFordelete(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def delete(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._delete_internal_wallet_asset_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/internal_wallets_wallet_id_asset_id/get.py b/fireblocks_client/paths/internal_wallets_wallet_id_asset_id/get.py deleted file mode 100644 index ab681a19..00000000 --- a/fireblocks_client/paths/internal_wallets_wallet_id_asset_id/get.py +++ /dev/null @@ -1,217 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error import Error -from fireblocks_client.model.wallet_asset import WalletAsset - -from . import path - -# Path params -WalletIdSchema = schemas.StrSchema -AssetIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'walletId': typing.Union[WalletIdSchema, str, ], - 'assetId': typing.Union[AssetIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_wallet_id = api_client.PathParameter( - name="walletId", - style=api_client.ParameterStyle.SIMPLE, - schema=WalletIdSchema, - required=True, -) -request_path_asset_id = api_client.PathParameter( - name="assetId", - style=api_client.ParameterStyle.SIMPLE, - schema=AssetIdSchema, - required=True, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor200ResponseBody = WalletAsset -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, - 'default': _response_for_default, -} -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_internal_wallet_asset_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Get an asset from an internal wallet - """ - path_params = {} - for parameter in ( - request_path_wallet_id, - request_path_asset_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_wallet_id, - request_path_asset_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetInternalWalletAsset(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_internal_wallet_asset(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_internal_wallet_asset_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_internal_wallet_asset_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/internal_wallets_wallet_id_asset_id/get.pyi b/fireblocks_client/paths/internal_wallets_wallet_id_asset_id/get.pyi deleted file mode 100644 index 67cb4b8b..00000000 --- a/fireblocks_client/paths/internal_wallets_wallet_id_asset_id/get.pyi +++ /dev/null @@ -1,201 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error import Error -from fireblocks_client.model.wallet_asset import WalletAsset - -# Path params -WalletIdSchema = schemas.StrSchema -AssetIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'walletId': typing.Union[WalletIdSchema, str, ], - 'assetId': typing.Union[AssetIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_wallet_id = api_client.PathParameter( - name="walletId", - style=api_client.ParameterStyle.SIMPLE, - schema=WalletIdSchema, - required=True, -) -request_path_asset_id = api_client.PathParameter( - name="assetId", - style=api_client.ParameterStyle.SIMPLE, - schema=AssetIdSchema, - required=True, -) -XRequestIDSchema = schemas.StrSchema -SchemaFor200ResponseBody = WalletAsset -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_internal_wallet_asset_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Get an asset from an internal wallet - """ - path_params = {} - for parameter in ( - request_path_wallet_id, - request_path_asset_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_wallet_id, - request_path_asset_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetInternalWalletAsset(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_internal_wallet_asset(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_internal_wallet_asset_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_internal_wallet_asset_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/internal_wallets_wallet_id_asset_id/post.py b/fireblocks_client/paths/internal_wallets_wallet_id_asset_id/post.py deleted file mode 100644 index cb77c039..00000000 --- a/fireblocks_client/paths/internal_wallets_wallet_id_asset_id/post.py +++ /dev/null @@ -1,301 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error import Error -from fireblocks_client.model.wallet_asset import WalletAsset - -from . import path - -# Path params -WalletIdSchema = schemas.StrSchema -AssetIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'walletId': typing.Union[WalletIdSchema, str, ], - 'assetId': typing.Union[AssetIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_wallet_id = api_client.PathParameter( - name="walletId", - style=api_client.ParameterStyle.SIMPLE, - schema=WalletIdSchema, - required=True, -) -request_path_asset_id = api_client.PathParameter( - name="assetId", - style=api_client.ParameterStyle.SIMPLE, - schema=AssetIdSchema, - required=True, -) -# body param - - -class SchemaForRequestBodyApplicationJson( - schemas.AnyTypeSchema, -): - - - class MetaOapg: - required = { - "address", - } - - class properties: - address = schemas.StrSchema - tag = schemas.StrSchema - __annotations__ = { - "address": address, - "tag": tag, - } - - - address: MetaOapg.properties.address - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["address"]) -> MetaOapg.properties.address: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["tag"]) -> MetaOapg.properties.tag: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["address", "tag", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["address"]) -> MetaOapg.properties.address: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["tag"]) -> typing.Union[MetaOapg.properties.tag, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["address", "tag", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - address: typing.Union[MetaOapg.properties.address, str, ], - tag: typing.Union[MetaOapg.properties.tag, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaForRequestBodyApplicationJson': - return super().__new__( - cls, - *_args, - address=address, - tag=tag, - _configuration=_configuration, - **kwargs, - ) - - -request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor200ResponseBody = WalletAsset -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, - 'default': _response_for_default, -} -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _create_internal_wallet_asset_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - """ - Add an asset to an internal wallet - """ - path_params = {} - for parameter in ( - request_path_wallet_id, - request_path_asset_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_wallet_id, - request_path_asset_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_any_type.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class CreateInternalWalletAsset(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def create_internal_wallet_asset(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._create_internal_wallet_asset_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._create_internal_wallet_asset_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/internal_wallets_wallet_id_asset_id/post.pyi b/fireblocks_client/paths/internal_wallets_wallet_id_asset_id/post.pyi deleted file mode 100644 index 89654919..00000000 --- a/fireblocks_client/paths/internal_wallets_wallet_id_asset_id/post.pyi +++ /dev/null @@ -1,285 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error import Error -from fireblocks_client.model.wallet_asset import WalletAsset - -# Path params -WalletIdSchema = schemas.StrSchema -AssetIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'walletId': typing.Union[WalletIdSchema, str, ], - 'assetId': typing.Union[AssetIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_wallet_id = api_client.PathParameter( - name="walletId", - style=api_client.ParameterStyle.SIMPLE, - schema=WalletIdSchema, - required=True, -) -request_path_asset_id = api_client.PathParameter( - name="assetId", - style=api_client.ParameterStyle.SIMPLE, - schema=AssetIdSchema, - required=True, -) -# body param - - -class SchemaForRequestBodyApplicationJson( - schemas.AnyTypeSchema, -): - - - class MetaOapg: - required = { - "address", - } - - class properties: - address = schemas.StrSchema - tag = schemas.StrSchema - __annotations__ = { - "address": address, - "tag": tag, - } - - - address: MetaOapg.properties.address - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["address"]) -> MetaOapg.properties.address: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["tag"]) -> MetaOapg.properties.tag: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["address", "tag", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["address"]) -> MetaOapg.properties.address: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["tag"]) -> typing.Union[MetaOapg.properties.tag, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["address", "tag", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - address: typing.Union[MetaOapg.properties.address, str, ], - tag: typing.Union[MetaOapg.properties.tag, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaForRequestBodyApplicationJson': - return super().__new__( - cls, - *_args, - address=address, - tag=tag, - _configuration=_configuration, - **kwargs, - ) - - -request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, -) -XRequestIDSchema = schemas.StrSchema -SchemaFor200ResponseBody = WalletAsset -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _create_internal_wallet_asset_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - """ - Add an asset to an internal wallet - """ - path_params = {} - for parameter in ( - request_path_wallet_id, - request_path_asset_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_wallet_id, - request_path_asset_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_any_type.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class CreateInternalWalletAsset(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def create_internal_wallet_asset(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._create_internal_wallet_asset_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._create_internal_wallet_asset_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/internal_wallets_wallet_id_set_customer_ref_id/__init__.py b/fireblocks_client/paths/internal_wallets_wallet_id_set_customer_ref_id/__init__.py deleted file mode 100644 index 965c29ab..00000000 --- a/fireblocks_client/paths/internal_wallets_wallet_id_set_customer_ref_id/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.internal_wallets_wallet_id_set_customer_ref_id import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.INTERNAL_WALLETS_WALLET_ID_SET_CUSTOMER_REF_ID \ No newline at end of file diff --git a/fireblocks_client/paths/internal_wallets_wallet_id_set_customer_ref_id/post.py b/fireblocks_client/paths/internal_wallets_wallet_id_set_customer_ref_id/post.py deleted file mode 100644 index f178a990..00000000 --- a/fireblocks_client/paths/internal_wallets_wallet_id_set_customer_ref_id/post.py +++ /dev/null @@ -1,268 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error import Error - -from . import path - -# Path params -WalletIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'walletId': typing.Union[WalletIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_wallet_id = api_client.PathParameter( - name="walletId", - style=api_client.ParameterStyle.SIMPLE, - schema=WalletIdSchema, - required=True, -) -# body param - - -class SchemaForRequestBodyApplicationJson( - schemas.AnyTypeSchema, -): - - - class MetaOapg: - - class properties: - customerRefId = schemas.StrSchema - __annotations__ = { - "customerRefId": customerRefId, - } - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["customerRefId"]) -> MetaOapg.properties.customerRefId: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["customerRefId", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["customerRefId"]) -> typing.Union[MetaOapg.properties.customerRefId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["customerRefId", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - customerRefId: typing.Union[MetaOapg.properties.customerRefId, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaForRequestBodyApplicationJson': - return super().__new__( - cls, - *_args, - customerRefId=customerRefId, - _configuration=_configuration, - **kwargs, - ) - - -request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -ResponseHeadersFor201 = typing_extensions.TypedDict( - 'ResponseHeadersFor201', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor201(api_client.ApiResponse): - response: urllib3.HTTPResponse - headers: ResponseHeadersFor201 - body: schemas.Unset = schemas.unset - - -_response_for_201 = api_client.OpenApiResponse( - response_cls=ApiResponseFor201, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '201': _response_for_201, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _set_customer_ref_id_for_internal_wallet_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - """ - Set an AML/KYT customer reference ID for an internal wallet - """ - path_params = {} - for parameter in ( - request_path_wallet_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_wallet_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_any_type.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class SetCustomerRefIdForInternalWallet(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def set_customer_ref_id_for_internal_wallet(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._set_customer_ref_id_for_internal_wallet_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._set_customer_ref_id_for_internal_wallet_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/internal_wallets_wallet_id_set_customer_ref_id/post.pyi b/fireblocks_client/paths/internal_wallets_wallet_id_set_customer_ref_id/post.pyi deleted file mode 100644 index dede87d2..00000000 --- a/fireblocks_client/paths/internal_wallets_wallet_id_set_customer_ref_id/post.pyi +++ /dev/null @@ -1,252 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error import Error - -# Path params -WalletIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'walletId': typing.Union[WalletIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_wallet_id = api_client.PathParameter( - name="walletId", - style=api_client.ParameterStyle.SIMPLE, - schema=WalletIdSchema, - required=True, -) -# body param - - -class SchemaForRequestBodyApplicationJson( - schemas.AnyTypeSchema, -): - - - class MetaOapg: - - class properties: - customerRefId = schemas.StrSchema - __annotations__ = { - "customerRefId": customerRefId, - } - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["customerRefId"]) -> MetaOapg.properties.customerRefId: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["customerRefId", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["customerRefId"]) -> typing.Union[MetaOapg.properties.customerRefId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["customerRefId", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - customerRefId: typing.Union[MetaOapg.properties.customerRefId, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaForRequestBodyApplicationJson': - return super().__new__( - cls, - *_args, - customerRefId=customerRefId, - _configuration=_configuration, - **kwargs, - ) - - -request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -XRequestIDSchema = schemas.StrSchema -ResponseHeadersFor201 = typing_extensions.TypedDict( - 'ResponseHeadersFor201', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor201(api_client.ApiResponse): - response: urllib3.HTTPResponse - headers: ResponseHeadersFor201 - body: schemas.Unset = schemas.unset - - -_response_for_201 = api_client.OpenApiResponse( - response_cls=ApiResponseFor201, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _set_customer_ref_id_for_internal_wallet_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - """ - Set an AML/KYT customer reference ID for an internal wallet - """ - path_params = {} - for parameter in ( - request_path_wallet_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_wallet_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_any_type.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class SetCustomerRefIdForInternalWallet(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def set_customer_ref_id_for_internal_wallet(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._set_customer_ref_id_for_internal_wallet_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._set_customer_ref_id_for_internal_wallet_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/management_ota/__init__.py b/fireblocks_client/paths/management_ota/__init__.py deleted file mode 100644 index ede1c2c6..00000000 --- a/fireblocks_client/paths/management_ota/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.management_ota import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.MANAGEMENT_OTA \ No newline at end of file diff --git a/fireblocks_client/paths/management_ota/get.py b/fireblocks_client/paths/management_ota/get.py deleted file mode 100644 index 4bdb4a57..00000000 --- a/fireblocks_client/paths/management_ota/get.py +++ /dev/null @@ -1,166 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from . import path - - - -class SchemaFor200ResponseBodyApplicationJson( - schemas.AnyTypeSchema, -): - - - class MetaOapg: - - class properties: - enabled = schemas.BoolSchema - __annotations__ = { - "enabled": enabled, - } - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["enabled"]) -> MetaOapg.properties.enabled: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["enabled", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["enabled"]) -> typing.Union[MetaOapg.properties.enabled, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["enabled", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - enabled: typing.Union[MetaOapg.properties.enabled, bool, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaFor200ResponseBodyApplicationJson': - return super().__new__( - cls, - *_args, - enabled=enabled, - _configuration=_configuration, - **kwargs, - ) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: schemas.Unset = schemas.unset - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, -) -_status_code_to_response = { - '200': _response_for_200, - '404': _response_for_404, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_ota_status_oapg(self, request_options: RequestOptions = None): - """ - Returns current OTA status - """ - used_path = path.value - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetOtaStatus(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_ota_status(self , request_options: RequestOptions = None): - return self._get_ota_status_oapg(request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , request_options: RequestOptions = None): - return self._get_ota_status_oapg(request_options) - - diff --git a/fireblocks_client/paths/management_ota/get.pyi b/fireblocks_client/paths/management_ota/get.pyi deleted file mode 100644 index 6634e002..00000000 --- a/fireblocks_client/paths/management_ota/get.pyi +++ /dev/null @@ -1,160 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - - - -class SchemaFor200ResponseBodyApplicationJson( - schemas.AnyTypeSchema, -): - - - class MetaOapg: - - class properties: - enabled = schemas.BoolSchema - __annotations__ = { - "enabled": enabled, - } - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["enabled"]) -> MetaOapg.properties.enabled: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["enabled", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["enabled"]) -> typing.Union[MetaOapg.properties.enabled, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["enabled", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - enabled: typing.Union[MetaOapg.properties.enabled, bool, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaFor200ResponseBodyApplicationJson': - return super().__new__( - cls, - *_args, - enabled=enabled, - _configuration=_configuration, - **kwargs, - ) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: schemas.Unset = schemas.unset - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_ota_status_oapg(self, request_options: RequestOptions = None): - """ - Returns current OTA status - """ - used_path = path.value - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetOtaStatus(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_ota_status(self , request_options: RequestOptions = None): - return self._get_ota_status_oapg(request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , request_options: RequestOptions = None): - return self._get_ota_status_oapg(request_options) - - diff --git a/fireblocks_client/paths/management_ota/post.py b/fireblocks_client/paths/management_ota/post.py deleted file mode 100644 index 422ad76d..00000000 --- a/fireblocks_client/paths/management_ota/post.py +++ /dev/null @@ -1,202 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from . import path - -# body param - - -class SchemaForRequestBodyApplicationJson( - schemas.AnyTypeSchema, -): - - - class MetaOapg: - - class properties: - enable = schemas.BoolSchema - __annotations__ = { - "enable": enable, - } - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["enable"]) -> MetaOapg.properties.enable: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["enable", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["enable"]) -> typing.Union[MetaOapg.properties.enable, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["enable", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - enable: typing.Union[MetaOapg.properties.enable, bool, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaForRequestBodyApplicationJson': - return super().__new__( - cls, - *_args, - enable=enable, - _configuration=_configuration, - **kwargs, - ) - - -request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) - - -@dataclass -class ApiResponseFor202(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: schemas.Unset = schemas.unset - headers: schemas.Unset = schemas.unset - - -_response_for_202 = api_client.OpenApiResponse( - response_cls=ApiResponseFor202, -) - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: schemas.Unset = schemas.unset - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, -) - - -@dataclass -class ApiResponseFor409(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: schemas.Unset = schemas.unset - headers: schemas.Unset = schemas.unset - - -_response_for_409 = api_client.OpenApiResponse( - response_cls=ApiResponseFor409, -) - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: schemas.Unset = schemas.unset - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, -) -_status_code_to_response = { - '202': _response_for_202, - '400': _response_for_400, - '409': _response_for_409, - '500': _response_for_500, -} - - -class BaseApi(api_client.Api): - - def _set_ota_status_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - """ - Enable or disable transactions to OTA - """ - used_path = path.value - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_any_type.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class SetOtaStatus(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def set_ota_status(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._set_ota_status_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._set_ota_status_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/management_ota/post.pyi b/fireblocks_client/paths/management_ota/post.pyi deleted file mode 100644 index 420e83ba..00000000 --- a/fireblocks_client/paths/management_ota/post.pyi +++ /dev/null @@ -1,194 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -# body param - - -class SchemaForRequestBodyApplicationJson( - schemas.AnyTypeSchema, -): - - - class MetaOapg: - - class properties: - enable = schemas.BoolSchema - __annotations__ = { - "enable": enable, - } - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["enable"]) -> MetaOapg.properties.enable: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["enable", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["enable"]) -> typing.Union[MetaOapg.properties.enable, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["enable", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - enable: typing.Union[MetaOapg.properties.enable, bool, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaForRequestBodyApplicationJson': - return super().__new__( - cls, - *_args, - enable=enable, - _configuration=_configuration, - **kwargs, - ) - - -request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) - - -@dataclass -class ApiResponseFor202(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: schemas.Unset = schemas.unset - headers: schemas.Unset = schemas.unset - - -_response_for_202 = api_client.OpenApiResponse( - response_cls=ApiResponseFor202, -) - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: schemas.Unset = schemas.unset - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, -) - - -@dataclass -class ApiResponseFor409(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: schemas.Unset = schemas.unset - headers: schemas.Unset = schemas.unset - - -_response_for_409 = api_client.OpenApiResponse( - response_cls=ApiResponseFor409, -) - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: schemas.Unset = schemas.unset - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, -) - - -class BaseApi(api_client.Api): - - def _set_ota_status_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - """ - Enable or disable transactions to OTA - """ - used_path = path.value - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_any_type.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class SetOtaStatus(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def set_ota_status(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._set_ota_status_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._set_ota_status_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/network_connections/__init__.py b/fireblocks_client/paths/network_connections/__init__.py deleted file mode 100644 index b48e5d06..00000000 --- a/fireblocks_client/paths/network_connections/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.network_connections import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.NETWORK_CONNECTIONS \ No newline at end of file diff --git a/fireblocks_client/paths/network_connections/get.py b/fireblocks_client/paths/network_connections/get.py deleted file mode 100644 index f32a2221..00000000 --- a/fireblocks_client/paths/network_connections/get.py +++ /dev/null @@ -1,186 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error import Error -from fireblocks_client.model.network_connection_response import NetworkConnectionResponse - -from . import path - -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) - - -class SchemaFor200ResponseBody( - schemas.ListSchema -): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['NetworkConnectionResponse']: - return NetworkConnectionResponse - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['NetworkConnectionResponse'], typing.List['NetworkConnectionResponse']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'SchemaFor200ResponseBody': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'NetworkConnectionResponse': - return super().__getitem__(i) -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, - 'default': _response_for_default, -} -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_network_connections_oapg(self, request_options: RequestOptions = None): - """ - List network connections - """ - used_path = path.value - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetNetworkConnections(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_network_connections(self , request_options: RequestOptions = None): - return self._get_network_connections_oapg(request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , request_options: RequestOptions = None): - return self._get_network_connections_oapg(request_options) - - diff --git a/fireblocks_client/paths/network_connections/get.pyi b/fireblocks_client/paths/network_connections/get.pyi deleted file mode 100644 index e4f0f2c6..00000000 --- a/fireblocks_client/paths/network_connections/get.pyi +++ /dev/null @@ -1,170 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error import Error -from fireblocks_client.model.network_connection_response import NetworkConnectionResponse - -XRequestIDSchema = schemas.StrSchema - - -class SchemaFor200ResponseBody( - schemas.ListSchema -): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['NetworkConnectionResponse']: - return NetworkConnectionResponse - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['NetworkConnectionResponse'], typing.List['NetworkConnectionResponse']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'SchemaFor200ResponseBody': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'NetworkConnectionResponse': - return super().__getitem__(i) -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_network_connections_oapg(self, request_options: RequestOptions = None): - """ - List network connections - """ - used_path = path.value - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetNetworkConnections(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_network_connections(self , request_options: RequestOptions = None): - return self._get_network_connections_oapg(request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , request_options: RequestOptions = None): - return self._get_network_connections_oapg(request_options) - - diff --git a/fireblocks_client/paths/network_connections/post.py b/fireblocks_client/paths/network_connections/post.py deleted file mode 100644 index 982d2212..00000000 --- a/fireblocks_client/paths/network_connections/post.py +++ /dev/null @@ -1,181 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error import Error -from fireblocks_client.model.network_connection import NetworkConnection -from fireblocks_client.model.network_connection_response import NetworkConnectionResponse - -from . import path - -# body param -SchemaForRequestBodyApplicationJson = NetworkConnection - - -request_body_network_connection = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor201ResponseBody = NetworkConnectionResponse -ResponseHeadersFor201 = typing_extensions.TypedDict( - 'ResponseHeadersFor201', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor201(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor201ResponseBody, - ] - headers: ResponseHeadersFor201 - - -_response_for_201 = api_client.OpenApiResponse( - response_cls=ApiResponseFor201, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor201ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '201': _response_for_201, - 'default': _response_for_default, -} -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _create_network_connection_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - """ - Creates a new network connection - """ - used_path = path.value - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_network_connection.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class CreateNetworkConnection(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def create_network_connection(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._create_network_connection_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._create_network_connection_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/network_connections/post.pyi b/fireblocks_client/paths/network_connections/post.pyi deleted file mode 100644 index 752ba36f..00000000 --- a/fireblocks_client/paths/network_connections/post.pyi +++ /dev/null @@ -1,165 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error import Error -from fireblocks_client.model.network_connection import NetworkConnection -from fireblocks_client.model.network_connection_response import NetworkConnectionResponse - -# body param -SchemaForRequestBodyApplicationJson = NetworkConnection - - -request_body_network_connection = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, -) -XRequestIDSchema = schemas.StrSchema -SchemaFor201ResponseBody = NetworkConnectionResponse -ResponseHeadersFor201 = typing_extensions.TypedDict( - 'ResponseHeadersFor201', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor201(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor201ResponseBody, - ] - headers: ResponseHeadersFor201 - - -_response_for_201 = api_client.OpenApiResponse( - response_cls=ApiResponseFor201, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor201ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _create_network_connection_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - """ - Creates a new network connection - """ - used_path = path.value - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_network_connection.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class CreateNetworkConnection(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def create_network_connection(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._create_network_connection_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._create_network_connection_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/network_connections_connection_id/__init__.py b/fireblocks_client/paths/network_connections_connection_id/__init__.py deleted file mode 100644 index 9b012b31..00000000 --- a/fireblocks_client/paths/network_connections_connection_id/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.network_connections_connection_id import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.NETWORK_CONNECTIONS_CONNECTION_ID \ No newline at end of file diff --git a/fireblocks_client/paths/network_connections_connection_id/delete.py b/fireblocks_client/paths/network_connections_connection_id/delete.py deleted file mode 100644 index 01477a26..00000000 --- a/fireblocks_client/paths/network_connections_connection_id/delete.py +++ /dev/null @@ -1,261 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error import Error - -from . import path - -# Path params -ConnectionIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'connectionId': typing.Union[ConnectionIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_connection_id = api_client.PathParameter( - name="connectionId", - style=api_client.ParameterStyle.SIMPLE, - schema=ConnectionIdSchema, - required=True, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) - - -class SchemaFor200ResponseBody( - schemas.AnyTypeSchema, -): - - - class MetaOapg: - required = { - "success", - } - - class properties: - success = schemas.BoolSchema - __annotations__ = { - "success": success, - } - - - success: MetaOapg.properties.success - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["success"]) -> MetaOapg.properties.success: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["success", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["success"]) -> MetaOapg.properties.success: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["success", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - success: typing.Union[MetaOapg.properties.success, bool, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaFor200ResponseBody': - return super().__new__( - cls, - *_args, - success=success, - _configuration=_configuration, - **kwargs, - ) -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, - 'default': _response_for_default, -} -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _delete_network_connection_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Deletes a network connection by ID - """ - path_params = {} - for parameter in ( - request_path_connection_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_connection_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='delete'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class DeleteNetworkConnection(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def delete_network_connection(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._delete_network_connection_oapg(params, request_options) - - -class ApiFordelete(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def delete(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._delete_network_connection_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/network_connections_connection_id/delete.pyi b/fireblocks_client/paths/network_connections_connection_id/delete.pyi deleted file mode 100644 index e36436b2..00000000 --- a/fireblocks_client/paths/network_connections_connection_id/delete.pyi +++ /dev/null @@ -1,245 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error import Error - -# Path params -ConnectionIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'connectionId': typing.Union[ConnectionIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_connection_id = api_client.PathParameter( - name="connectionId", - style=api_client.ParameterStyle.SIMPLE, - schema=ConnectionIdSchema, - required=True, -) -XRequestIDSchema = schemas.StrSchema - - -class SchemaFor200ResponseBody( - schemas.AnyTypeSchema, -): - - - class MetaOapg: - required = { - "success", - } - - class properties: - success = schemas.BoolSchema - __annotations__ = { - "success": success, - } - - - success: MetaOapg.properties.success - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["success"]) -> MetaOapg.properties.success: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["success", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["success"]) -> MetaOapg.properties.success: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["success", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - success: typing.Union[MetaOapg.properties.success, bool, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaFor200ResponseBody': - return super().__new__( - cls, - *_args, - success=success, - _configuration=_configuration, - **kwargs, - ) -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _delete_network_connection_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Deletes a network connection by ID - """ - path_params = {} - for parameter in ( - request_path_connection_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_connection_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='delete'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class DeleteNetworkConnection(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def delete_network_connection(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._delete_network_connection_oapg(params, request_options) - - -class ApiFordelete(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def delete(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._delete_network_connection_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/network_connections_connection_id/get.py b/fireblocks_client/paths/network_connections_connection_id/get.py deleted file mode 100644 index d6fdc4a7..00000000 --- a/fireblocks_client/paths/network_connections_connection_id/get.py +++ /dev/null @@ -1,207 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error import Error -from fireblocks_client.model.network_connection_response import NetworkConnectionResponse - -from . import path - -# Path params -ConnectionIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'connectionId': typing.Union[ConnectionIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_connection_id = api_client.PathParameter( - name="connectionId", - style=api_client.ParameterStyle.SIMPLE, - schema=ConnectionIdSchema, - required=True, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor200ResponseBody = NetworkConnectionResponse -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, - 'default': _response_for_default, -} -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_network_connection_by_id_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Get a network connection - """ - path_params = {} - for parameter in ( - request_path_connection_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_connection_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetNetworkConnectionById(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_network_connection_by_id(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_network_connection_by_id_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_network_connection_by_id_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/network_connections_connection_id/get.pyi b/fireblocks_client/paths/network_connections_connection_id/get.pyi deleted file mode 100644 index d22597e0..00000000 --- a/fireblocks_client/paths/network_connections_connection_id/get.pyi +++ /dev/null @@ -1,191 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error import Error -from fireblocks_client.model.network_connection_response import NetworkConnectionResponse - -# Path params -ConnectionIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'connectionId': typing.Union[ConnectionIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_connection_id = api_client.PathParameter( - name="connectionId", - style=api_client.ParameterStyle.SIMPLE, - schema=ConnectionIdSchema, - required=True, -) -XRequestIDSchema = schemas.StrSchema -SchemaFor200ResponseBody = NetworkConnectionResponse -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_network_connection_by_id_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Get a network connection - """ - path_params = {} - for parameter in ( - request_path_connection_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_connection_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetNetworkConnectionById(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_network_connection_by_id(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_network_connection_by_id_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_network_connection_by_id_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/network_connections_connection_id_is_third_party_routing_asset_type/__init__.py b/fireblocks_client/paths/network_connections_connection_id_is_third_party_routing_asset_type/__init__.py deleted file mode 100644 index 0089054a..00000000 --- a/fireblocks_client/paths/network_connections_connection_id_is_third_party_routing_asset_type/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.network_connections_connection_id_is_third_party_routing_asset_type import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.NETWORK_CONNECTIONS_CONNECTION_ID_IS_THIRD_PARTY_ROUTING_ASSET_TYPE \ No newline at end of file diff --git a/fireblocks_client/paths/network_connections_connection_id_is_third_party_routing_asset_type/get.py b/fireblocks_client/paths/network_connections_connection_id_is_third_party_routing_asset_type/get.py deleted file mode 100644 index 2bbfb207..00000000 --- a/fireblocks_client/paths/network_connections_connection_id_is_third_party_routing_asset_type/get.py +++ /dev/null @@ -1,311 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error import Error - -from . import path - -# Path params -ConnectionIdSchema = schemas.StrSchema - - -class AssetTypeSchema( - schemas.EnumBase, - schemas.StrSchema -): - - - class MetaOapg: - enum_value_to_name = { - "CRYPTO": "CRYPTO", - "SIGNET": "SIGNET", - "SEN": "SEN", - "SIGNET_TEST": "SIGNET_TEST", - "SEN_TEST": "SEN_TEST", - } - - @schemas.classproperty - def CRYPTO(cls): - return cls("CRYPTO") - - @schemas.classproperty - def SIGNET(cls): - return cls("SIGNET") - - @schemas.classproperty - def SEN(cls): - return cls("SEN") - - @schemas.classproperty - def SIGNET_TEST(cls): - return cls("SIGNET_TEST") - - @schemas.classproperty - def SEN_TEST(cls): - return cls("SEN_TEST") -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'connectionId': typing.Union[ConnectionIdSchema, str, ], - 'assetType': typing.Union[AssetTypeSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_connection_id = api_client.PathParameter( - name="connectionId", - style=api_client.ParameterStyle.SIMPLE, - schema=ConnectionIdSchema, - required=True, -) -request_path_asset_type = api_client.PathParameter( - name="assetType", - style=api_client.ParameterStyle.SIMPLE, - schema=AssetTypeSchema, - required=True, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) - - -class SchemaFor200ResponseBody( - schemas.AnyTypeSchema, -): - - - class MetaOapg: - - class properties: - isThirdPartyRouting = schemas.BoolSchema - description = schemas.StrSchema - __annotations__ = { - "isThirdPartyRouting": isThirdPartyRouting, - "description": description, - } - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["isThirdPartyRouting"]) -> MetaOapg.properties.isThirdPartyRouting: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["description"]) -> MetaOapg.properties.description: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["isThirdPartyRouting", "description", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["isThirdPartyRouting"]) -> typing.Union[MetaOapg.properties.isThirdPartyRouting, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["description"]) -> typing.Union[MetaOapg.properties.description, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["isThirdPartyRouting", "description", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - isThirdPartyRouting: typing.Union[MetaOapg.properties.isThirdPartyRouting, bool, schemas.Unset] = schemas.unset, - description: typing.Union[MetaOapg.properties.description, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaFor200ResponseBody': - return super().__new__( - cls, - *_args, - isThirdPartyRouting=isThirdPartyRouting, - description=description, - _configuration=_configuration, - **kwargs, - ) -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, - 'default': _response_for_default, -} -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _check_third_party_routing_for_network_connection_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Retrieve third-party network routing validation by asset type. - """ - path_params = {} - for parameter in ( - request_path_connection_id, - request_path_asset_type, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_connection_id, - request_path_asset_type, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class CheckThirdPartyRoutingForNetworkConnection(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def check_third_party_routing_for_network_connection(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._check_third_party_routing_for_network_connection_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._check_third_party_routing_for_network_connection_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/network_connections_connection_id_is_third_party_routing_asset_type/get.pyi b/fireblocks_client/paths/network_connections_connection_id_is_third_party_routing_asset_type/get.pyi deleted file mode 100644 index aca08256..00000000 --- a/fireblocks_client/paths/network_connections_connection_id_is_third_party_routing_asset_type/get.pyi +++ /dev/null @@ -1,285 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error import Error - -# Path params -ConnectionIdSchema = schemas.StrSchema - - -class AssetTypeSchema( - schemas.EnumBase, - schemas.StrSchema -): - - @schemas.classproperty - def CRYPTO(cls): - return cls("CRYPTO") - - @schemas.classproperty - def SIGNET(cls): - return cls("SIGNET") - - @schemas.classproperty - def SEN(cls): - return cls("SEN") - - @schemas.classproperty - def SIGNET_TEST(cls): - return cls("SIGNET_TEST") - - @schemas.classproperty - def SEN_TEST(cls): - return cls("SEN_TEST") -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'connectionId': typing.Union[ConnectionIdSchema, str, ], - 'assetType': typing.Union[AssetTypeSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_connection_id = api_client.PathParameter( - name="connectionId", - style=api_client.ParameterStyle.SIMPLE, - schema=ConnectionIdSchema, - required=True, -) -request_path_asset_type = api_client.PathParameter( - name="assetType", - style=api_client.ParameterStyle.SIMPLE, - schema=AssetTypeSchema, - required=True, -) -XRequestIDSchema = schemas.StrSchema - - -class SchemaFor200ResponseBody( - schemas.AnyTypeSchema, -): - - - class MetaOapg: - - class properties: - isThirdPartyRouting = schemas.BoolSchema - description = schemas.StrSchema - __annotations__ = { - "isThirdPartyRouting": isThirdPartyRouting, - "description": description, - } - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["isThirdPartyRouting"]) -> MetaOapg.properties.isThirdPartyRouting: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["description"]) -> MetaOapg.properties.description: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["isThirdPartyRouting", "description", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["isThirdPartyRouting"]) -> typing.Union[MetaOapg.properties.isThirdPartyRouting, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["description"]) -> typing.Union[MetaOapg.properties.description, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["isThirdPartyRouting", "description", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - isThirdPartyRouting: typing.Union[MetaOapg.properties.isThirdPartyRouting, bool, schemas.Unset] = schemas.unset, - description: typing.Union[MetaOapg.properties.description, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaFor200ResponseBody': - return super().__new__( - cls, - *_args, - isThirdPartyRouting=isThirdPartyRouting, - description=description, - _configuration=_configuration, - **kwargs, - ) -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _check_third_party_routing_for_network_connection_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Retrieve third-party network routing validation by asset type. - """ - path_params = {} - for parameter in ( - request_path_connection_id, - request_path_asset_type, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_connection_id, - request_path_asset_type, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class CheckThirdPartyRoutingForNetworkConnection(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def check_third_party_routing_for_network_connection(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._check_third_party_routing_for_network_connection_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._check_third_party_routing_for_network_connection_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/network_connections_connection_id_set_routing_policy/__init__.py b/fireblocks_client/paths/network_connections_connection_id_set_routing_policy/__init__.py deleted file mode 100644 index 36c5d264..00000000 --- a/fireblocks_client/paths/network_connections_connection_id_set_routing_policy/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.network_connections_connection_id_set_routing_policy import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.NETWORK_CONNECTIONS_CONNECTION_ID_SET_ROUTING_POLICY \ No newline at end of file diff --git a/fireblocks_client/paths/network_connections_connection_id_set_routing_policy/patch.py b/fireblocks_client/paths/network_connections_connection_id_set_routing_policy/patch.py deleted file mode 100644 index 7623c934..00000000 --- a/fireblocks_client/paths/network_connections_connection_id_set_routing_policy/patch.py +++ /dev/null @@ -1,339 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.network_connection_routing_policy import NetworkConnectionRoutingPolicy -from fireblocks_client.model.error import Error - -from . import path - -# Path params -ConnectionIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'connectionId': typing.Union[ConnectionIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_connection_id = api_client.PathParameter( - name="connectionId", - style=api_client.ParameterStyle.SIMPLE, - schema=ConnectionIdSchema, - required=True, -) -# body param - - -class SchemaForRequestBodyApplicationJson( - schemas.AnyTypeSchema, -): - - - class MetaOapg: - required = { - "routingPolicy", - } - - class properties: - - @staticmethod - def routingPolicy() -> typing.Type['NetworkConnectionRoutingPolicy']: - return NetworkConnectionRoutingPolicy - __annotations__ = { - "routingPolicy": routingPolicy, - } - - - routingPolicy: 'NetworkConnectionRoutingPolicy' - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["routingPolicy"]) -> 'NetworkConnectionRoutingPolicy': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["routingPolicy", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["routingPolicy"]) -> 'NetworkConnectionRoutingPolicy': ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["routingPolicy", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - routingPolicy: 'NetworkConnectionRoutingPolicy', - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaForRequestBodyApplicationJson': - return super().__new__( - cls, - *_args, - routingPolicy=routingPolicy, - _configuration=_configuration, - **kwargs, - ) - - -request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) - - -class SchemaFor200ResponseBody( - schemas.AnyTypeSchema, -): - - - class MetaOapg: - required = { - "success", - } - - class properties: - success = schemas.BoolSchema - __annotations__ = { - "success": success, - } - - - success: MetaOapg.properties.success - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["success"]) -> MetaOapg.properties.success: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["success", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["success"]) -> MetaOapg.properties.success: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["success", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - success: typing.Union[MetaOapg.properties.success, bool, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaFor200ResponseBody': - return super().__new__( - cls, - *_args, - success=success, - _configuration=_configuration, - **kwargs, - ) -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, - 'default': _response_for_default, -} -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _set_routing_policy_for_network_connection_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - """ - Update network connection routing policy. - """ - path_params = {} - for parameter in ( - request_path_connection_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_connection_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_any_type.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='patch'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class SetRoutingPolicyForNetworkConnection(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def set_routing_policy_for_network_connection(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._set_routing_policy_for_network_connection_oapg(params, request_options) - - -class ApiForpatch(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def patch(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._set_routing_policy_for_network_connection_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/network_connections_connection_id_set_routing_policy/patch.pyi b/fireblocks_client/paths/network_connections_connection_id_set_routing_policy/patch.pyi deleted file mode 100644 index c4609f11..00000000 --- a/fireblocks_client/paths/network_connections_connection_id_set_routing_policy/patch.pyi +++ /dev/null @@ -1,323 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.network_connection_routing_policy import NetworkConnectionRoutingPolicy -from fireblocks_client.model.error import Error - -# Path params -ConnectionIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'connectionId': typing.Union[ConnectionIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_connection_id = api_client.PathParameter( - name="connectionId", - style=api_client.ParameterStyle.SIMPLE, - schema=ConnectionIdSchema, - required=True, -) -# body param - - -class SchemaForRequestBodyApplicationJson( - schemas.AnyTypeSchema, -): - - - class MetaOapg: - required = { - "routingPolicy", - } - - class properties: - - @staticmethod - def routingPolicy() -> typing.Type['NetworkConnectionRoutingPolicy']: - return NetworkConnectionRoutingPolicy - __annotations__ = { - "routingPolicy": routingPolicy, - } - - - routingPolicy: 'NetworkConnectionRoutingPolicy' - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["routingPolicy"]) -> 'NetworkConnectionRoutingPolicy': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["routingPolicy", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["routingPolicy"]) -> 'NetworkConnectionRoutingPolicy': ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["routingPolicy", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - routingPolicy: 'NetworkConnectionRoutingPolicy', - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaForRequestBodyApplicationJson': - return super().__new__( - cls, - *_args, - routingPolicy=routingPolicy, - _configuration=_configuration, - **kwargs, - ) - - -request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, -) -XRequestIDSchema = schemas.StrSchema - - -class SchemaFor200ResponseBody( - schemas.AnyTypeSchema, -): - - - class MetaOapg: - required = { - "success", - } - - class properties: - success = schemas.BoolSchema - __annotations__ = { - "success": success, - } - - - success: MetaOapg.properties.success - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["success"]) -> MetaOapg.properties.success: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["success", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["success"]) -> MetaOapg.properties.success: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["success", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - success: typing.Union[MetaOapg.properties.success, bool, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaFor200ResponseBody': - return super().__new__( - cls, - *_args, - success=success, - _configuration=_configuration, - **kwargs, - ) -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _set_routing_policy_for_network_connection_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - """ - Update network connection routing policy. - """ - path_params = {} - for parameter in ( - request_path_connection_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_connection_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_any_type.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='patch'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class SetRoutingPolicyForNetworkConnection(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def set_routing_policy_for_network_connection(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._set_routing_policy_for_network_connection_oapg(params, request_options) - - -class ApiForpatch(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def patch(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._set_routing_policy_for_network_connection_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/network_ids/__init__.py b/fireblocks_client/paths/network_ids/__init__.py deleted file mode 100644 index 8d850ddb..00000000 --- a/fireblocks_client/paths/network_ids/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.network_ids import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.NETWORK_IDS \ No newline at end of file diff --git a/fireblocks_client/paths/network_ids/get.py b/fireblocks_client/paths/network_ids/get.py deleted file mode 100644 index c49f5d95..00000000 --- a/fireblocks_client/paths/network_ids/get.py +++ /dev/null @@ -1,218 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.network_id_response import NetworkIdResponse -from fireblocks_client.model.error import Error - -from . import path - -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) - - -class SchemaFor200ResponseBody( - schemas.ListSchema -): - - - class MetaOapg: - - - class items( - schemas.ComposedSchema, - ): - - - class MetaOapg: - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - NetworkIdResponse, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'items': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ]], typing.List[typing.Union[MetaOapg.items, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'SchemaFor200ResponseBody': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, - 'default': _response_for_default, -} -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_network_ids_oapg(self, request_options: RequestOptions = None): - """ - Returns all network IDs, both local IDs and discoverable remote IDs - """ - used_path = path.value - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetNetworkIds(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_network_ids(self , request_options: RequestOptions = None): - return self._get_network_ids_oapg(request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , request_options: RequestOptions = None): - return self._get_network_ids_oapg(request_options) - - diff --git a/fireblocks_client/paths/network_ids/get.pyi b/fireblocks_client/paths/network_ids/get.pyi deleted file mode 100644 index d4e8de68..00000000 --- a/fireblocks_client/paths/network_ids/get.pyi +++ /dev/null @@ -1,202 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.network_id_response import NetworkIdResponse -from fireblocks_client.model.error import Error - -XRequestIDSchema = schemas.StrSchema - - -class SchemaFor200ResponseBody( - schemas.ListSchema -): - - - class MetaOapg: - - - class items( - schemas.ComposedSchema, - ): - - - class MetaOapg: - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - NetworkIdResponse, - ] - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'items': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ]], typing.List[typing.Union[MetaOapg.items, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'SchemaFor200ResponseBody': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_network_ids_oapg(self, request_options: RequestOptions = None): - """ - Returns all network IDs, both local IDs and discoverable remote IDs - """ - used_path = path.value - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetNetworkIds(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_network_ids(self , request_options: RequestOptions = None): - return self._get_network_ids_oapg(request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , request_options: RequestOptions = None): - return self._get_network_ids_oapg(request_options) - - diff --git a/fireblocks_client/paths/network_ids/post.py b/fireblocks_client/paths/network_ids/post.py deleted file mode 100644 index cca24980..00000000 --- a/fireblocks_client/paths/network_ids/post.py +++ /dev/null @@ -1,249 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.network_id_response import NetworkIdResponse -from fireblocks_client.model.network_id_routing_policy import NetworkIdRoutingPolicy -from fireblocks_client.model.error import Error - -from . import path - -# body param - - -class SchemaForRequestBodyApplicationJson( - schemas.AnyTypeSchema, -): - - - class MetaOapg: - required = { - "name", - } - - class properties: - name = schemas.StrSchema - - @staticmethod - def routingPolicy() -> typing.Type['NetworkIdRoutingPolicy']: - return NetworkIdRoutingPolicy - __annotations__ = { - "name": name, - "routingPolicy": routingPolicy, - } - - - name: MetaOapg.properties.name - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["routingPolicy"]) -> 'NetworkIdRoutingPolicy': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "routingPolicy", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["routingPolicy"]) -> typing.Union['NetworkIdRoutingPolicy', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "routingPolicy", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - name: typing.Union[MetaOapg.properties.name, str, ], - routingPolicy: typing.Union['NetworkIdRoutingPolicy', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaForRequestBodyApplicationJson': - return super().__new__( - cls, - *_args, - name=name, - routingPolicy=routingPolicy, - _configuration=_configuration, - **kwargs, - ) - - -request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor201ResponseBody = NetworkIdResponse -ResponseHeadersFor201 = typing_extensions.TypedDict( - 'ResponseHeadersFor201', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor201(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor201ResponseBody, - ] - headers: ResponseHeadersFor201 - - -_response_for_201 = api_client.OpenApiResponse( - response_cls=ApiResponseFor201, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor201ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '201': _response_for_201, - 'default': _response_for_default, -} -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _create_network_id_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - """ - Creates a new Network ID - """ - used_path = path.value - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_any_type.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class CreateNetworkId(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def create_network_id(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._create_network_id_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._create_network_id_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/network_ids/post.pyi b/fireblocks_client/paths/network_ids/post.pyi deleted file mode 100644 index 52e1725a..00000000 --- a/fireblocks_client/paths/network_ids/post.pyi +++ /dev/null @@ -1,233 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.network_id_response import NetworkIdResponse -from fireblocks_client.model.network_id_routing_policy import NetworkIdRoutingPolicy -from fireblocks_client.model.error import Error - -# body param - - -class SchemaForRequestBodyApplicationJson( - schemas.AnyTypeSchema, -): - - - class MetaOapg: - required = { - "name", - } - - class properties: - name = schemas.StrSchema - - @staticmethod - def routingPolicy() -> typing.Type['NetworkIdRoutingPolicy']: - return NetworkIdRoutingPolicy - __annotations__ = { - "name": name, - "routingPolicy": routingPolicy, - } - - - name: MetaOapg.properties.name - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["routingPolicy"]) -> 'NetworkIdRoutingPolicy': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "routingPolicy", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["routingPolicy"]) -> typing.Union['NetworkIdRoutingPolicy', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "routingPolicy", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - name: typing.Union[MetaOapg.properties.name, str, ], - routingPolicy: typing.Union['NetworkIdRoutingPolicy', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaForRequestBodyApplicationJson': - return super().__new__( - cls, - *_args, - name=name, - routingPolicy=routingPolicy, - _configuration=_configuration, - **kwargs, - ) - - -request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, -) -XRequestIDSchema = schemas.StrSchema -SchemaFor201ResponseBody = NetworkIdResponse -ResponseHeadersFor201 = typing_extensions.TypedDict( - 'ResponseHeadersFor201', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor201(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor201ResponseBody, - ] - headers: ResponseHeadersFor201 - - -_response_for_201 = api_client.OpenApiResponse( - response_cls=ApiResponseFor201, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor201ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _create_network_id_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - """ - Creates a new Network ID - """ - used_path = path.value - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_any_type.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class CreateNetworkId(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def create_network_id(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._create_network_id_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._create_network_id_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/network_ids_network_id/__init__.py b/fireblocks_client/paths/network_ids_network_id/__init__.py deleted file mode 100644 index 448e0b67..00000000 --- a/fireblocks_client/paths/network_ids_network_id/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.network_ids_network_id import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.NETWORK_IDS_NETWORK_ID \ No newline at end of file diff --git a/fireblocks_client/paths/network_ids_network_id/delete.py b/fireblocks_client/paths/network_ids_network_id/delete.py deleted file mode 100644 index 1be12a31..00000000 --- a/fireblocks_client/paths/network_ids_network_id/delete.py +++ /dev/null @@ -1,246 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error import Error - -from . import path - -# Path params -NetworkIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'networkId': typing.Union[NetworkIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_network_id = api_client.PathParameter( - name="networkId", - style=api_client.ParameterStyle.SIMPLE, - schema=NetworkIdSchema, - required=True, -) - - -class SchemaFor200ResponseBody( - schemas.AnyTypeSchema, -): - - - class MetaOapg: - required = { - "success", - } - - class properties: - success = schemas.BoolSchema - __annotations__ = { - "success": success, - } - - - success: MetaOapg.properties.success - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["success"]) -> MetaOapg.properties.success: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["success", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["success"]) -> MetaOapg.properties.success: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["success", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - success: typing.Union[MetaOapg.properties.success, bool, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaFor200ResponseBody': - return super().__new__( - cls, - *_args, - success=success, - _configuration=_configuration, - **kwargs, - ) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, - 'default': _response_for_default, -} -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _delete_network_id_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Deletes specific network ID. - """ - path_params = {} - for parameter in ( - request_path_network_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_network_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='delete'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class DeleteNetworkId(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def delete_network_id(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._delete_network_id_oapg(params, request_options) - - -class ApiFordelete(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def delete(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._delete_network_id_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/network_ids_network_id/delete.pyi b/fireblocks_client/paths/network_ids_network_id/delete.pyi deleted file mode 100644 index 9f1908a6..00000000 --- a/fireblocks_client/paths/network_ids_network_id/delete.pyi +++ /dev/null @@ -1,235 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error import Error - -# Path params -NetworkIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'networkId': typing.Union[NetworkIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_network_id = api_client.PathParameter( - name="networkId", - style=api_client.ParameterStyle.SIMPLE, - schema=NetworkIdSchema, - required=True, -) - - -class SchemaFor200ResponseBody( - schemas.AnyTypeSchema, -): - - - class MetaOapg: - required = { - "success", - } - - class properties: - success = schemas.BoolSchema - __annotations__ = { - "success": success, - } - - - success: MetaOapg.properties.success - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["success"]) -> MetaOapg.properties.success: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["success", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["success"]) -> MetaOapg.properties.success: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["success", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - success: typing.Union[MetaOapg.properties.success, bool, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaFor200ResponseBody': - return super().__new__( - cls, - *_args, - success=success, - _configuration=_configuration, - **kwargs, - ) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _delete_network_id_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Deletes specific network ID. - """ - path_params = {} - for parameter in ( - request_path_network_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_network_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='delete'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class DeleteNetworkId(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def delete_network_id(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._delete_network_id_oapg(params, request_options) - - -class ApiFordelete(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def delete(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._delete_network_id_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/network_ids_network_id/get.py b/fireblocks_client/paths/network_ids_network_id/get.py deleted file mode 100644 index 954b9096..00000000 --- a/fireblocks_client/paths/network_ids_network_id/get.py +++ /dev/null @@ -1,207 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.network_id_response import NetworkIdResponse -from fireblocks_client.model.error import Error - -from . import path - -# Path params -NetworkIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'networkId': typing.Union[NetworkIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_network_id = api_client.PathParameter( - name="networkId", - style=api_client.ParameterStyle.SIMPLE, - schema=NetworkIdSchema, - required=True, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor200ResponseBody = NetworkIdResponse -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, - 'default': _response_for_default, -} -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_network_id_by_id_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Returns specific network ID. - """ - path_params = {} - for parameter in ( - request_path_network_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_network_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetNetworkIdById(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_network_id_by_id(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_network_id_by_id_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_network_id_by_id_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/network_ids_network_id/get.pyi b/fireblocks_client/paths/network_ids_network_id/get.pyi deleted file mode 100644 index f9b899b4..00000000 --- a/fireblocks_client/paths/network_ids_network_id/get.pyi +++ /dev/null @@ -1,191 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.network_id_response import NetworkIdResponse -from fireblocks_client.model.error import Error - -# Path params -NetworkIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'networkId': typing.Union[NetworkIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_network_id = api_client.PathParameter( - name="networkId", - style=api_client.ParameterStyle.SIMPLE, - schema=NetworkIdSchema, - required=True, -) -XRequestIDSchema = schemas.StrSchema -SchemaFor200ResponseBody = NetworkIdResponse -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_network_id_by_id_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Returns specific network ID. - """ - path_params = {} - for parameter in ( - request_path_network_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_network_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetNetworkIdById(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_network_id_by_id(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_network_id_by_id_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_network_id_by_id_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/network_ids_network_id_set_discoverability/__init__.py b/fireblocks_client/paths/network_ids_network_id_set_discoverability/__init__.py deleted file mode 100644 index f2565455..00000000 --- a/fireblocks_client/paths/network_ids_network_id_set_discoverability/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.network_ids_network_id_set_discoverability import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.NETWORK_IDS_NETWORK_ID_SET_DISCOVERABILITY \ No newline at end of file diff --git a/fireblocks_client/paths/network_ids_network_id_set_discoverability/patch.py b/fireblocks_client/paths/network_ids_network_id_set_discoverability/patch.py deleted file mode 100644 index c5569190..00000000 --- a/fireblocks_client/paths/network_ids_network_id_set_discoverability/patch.py +++ /dev/null @@ -1,336 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error import Error - -from . import path - -# Path params -NetworkIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'networkId': typing.Union[NetworkIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_network_id = api_client.PathParameter( - name="networkId", - style=api_client.ParameterStyle.SIMPLE, - schema=NetworkIdSchema, - required=True, -) -# body param - - -class SchemaForRequestBodyApplicationJson( - schemas.AnyTypeSchema, -): - - - class MetaOapg: - required = { - "isDiscoverable", - } - - class properties: - isDiscoverable = schemas.BoolSchema - __annotations__ = { - "isDiscoverable": isDiscoverable, - } - - - isDiscoverable: MetaOapg.properties.isDiscoverable - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["isDiscoverable"]) -> MetaOapg.properties.isDiscoverable: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["isDiscoverable", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["isDiscoverable"]) -> MetaOapg.properties.isDiscoverable: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["isDiscoverable", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - isDiscoverable: typing.Union[MetaOapg.properties.isDiscoverable, bool, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaForRequestBodyApplicationJson': - return super().__new__( - cls, - *_args, - isDiscoverable=isDiscoverable, - _configuration=_configuration, - **kwargs, - ) - - -request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) - - -class SchemaFor200ResponseBody( - schemas.AnyTypeSchema, -): - - - class MetaOapg: - required = { - "success", - } - - class properties: - success = schemas.BoolSchema - __annotations__ = { - "success": success, - } - - - success: MetaOapg.properties.success - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["success"]) -> MetaOapg.properties.success: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["success", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["success"]) -> MetaOapg.properties.success: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["success", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - success: typing.Union[MetaOapg.properties.success, bool, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaFor200ResponseBody': - return super().__new__( - cls, - *_args, - success=success, - _configuration=_configuration, - **kwargs, - ) -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, - 'default': _response_for_default, -} -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _set_discoverability_for_network_id_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - """ - Update network ID's discoverability. - """ - path_params = {} - for parameter in ( - request_path_network_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_network_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_any_type.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='patch'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class SetDiscoverabilityForNetworkId(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def set_discoverability_for_network_id(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._set_discoverability_for_network_id_oapg(params, request_options) - - -class ApiForpatch(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def patch(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._set_discoverability_for_network_id_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/network_ids_network_id_set_discoverability/patch.pyi b/fireblocks_client/paths/network_ids_network_id_set_discoverability/patch.pyi deleted file mode 100644 index 7051da7c..00000000 --- a/fireblocks_client/paths/network_ids_network_id_set_discoverability/patch.pyi +++ /dev/null @@ -1,320 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error import Error - -# Path params -NetworkIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'networkId': typing.Union[NetworkIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_network_id = api_client.PathParameter( - name="networkId", - style=api_client.ParameterStyle.SIMPLE, - schema=NetworkIdSchema, - required=True, -) -# body param - - -class SchemaForRequestBodyApplicationJson( - schemas.AnyTypeSchema, -): - - - class MetaOapg: - required = { - "isDiscoverable", - } - - class properties: - isDiscoverable = schemas.BoolSchema - __annotations__ = { - "isDiscoverable": isDiscoverable, - } - - - isDiscoverable: MetaOapg.properties.isDiscoverable - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["isDiscoverable"]) -> MetaOapg.properties.isDiscoverable: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["isDiscoverable", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["isDiscoverable"]) -> MetaOapg.properties.isDiscoverable: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["isDiscoverable", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - isDiscoverable: typing.Union[MetaOapg.properties.isDiscoverable, bool, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaForRequestBodyApplicationJson': - return super().__new__( - cls, - *_args, - isDiscoverable=isDiscoverable, - _configuration=_configuration, - **kwargs, - ) - - -request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -XRequestIDSchema = schemas.StrSchema - - -class SchemaFor200ResponseBody( - schemas.AnyTypeSchema, -): - - - class MetaOapg: - required = { - "success", - } - - class properties: - success = schemas.BoolSchema - __annotations__ = { - "success": success, - } - - - success: MetaOapg.properties.success - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["success"]) -> MetaOapg.properties.success: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["success", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["success"]) -> MetaOapg.properties.success: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["success", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - success: typing.Union[MetaOapg.properties.success, bool, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaFor200ResponseBody': - return super().__new__( - cls, - *_args, - success=success, - _configuration=_configuration, - **kwargs, - ) -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _set_discoverability_for_network_id_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - """ - Update network ID's discoverability. - """ - path_params = {} - for parameter in ( - request_path_network_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_network_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_any_type.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='patch'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class SetDiscoverabilityForNetworkId(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def set_discoverability_for_network_id(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._set_discoverability_for_network_id_oapg(params, request_options) - - -class ApiForpatch(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def patch(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._set_discoverability_for_network_id_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/network_ids_network_id_set_name/__init__.py b/fireblocks_client/paths/network_ids_network_id_set_name/__init__.py deleted file mode 100644 index d4230023..00000000 --- a/fireblocks_client/paths/network_ids_network_id_set_name/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.network_ids_network_id_set_name import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.NETWORK_IDS_NETWORK_ID_SET_NAME \ No newline at end of file diff --git a/fireblocks_client/paths/network_ids_network_id_set_name/patch.py b/fireblocks_client/paths/network_ids_network_id_set_name/patch.py deleted file mode 100644 index 546263da..00000000 --- a/fireblocks_client/paths/network_ids_network_id_set_name/patch.py +++ /dev/null @@ -1,336 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error import Error - -from . import path - -# Path params -NetworkIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'networkId': typing.Union[NetworkIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_network_id = api_client.PathParameter( - name="networkId", - style=api_client.ParameterStyle.SIMPLE, - schema=NetworkIdSchema, - required=True, -) -# body param - - -class SchemaForRequestBodyApplicationJson( - schemas.AnyTypeSchema, -): - - - class MetaOapg: - required = { - "name", - } - - class properties: - name = schemas.StrSchema - __annotations__ = { - "name": name, - } - - - name: MetaOapg.properties.name - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - name: typing.Union[MetaOapg.properties.name, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaForRequestBodyApplicationJson': - return super().__new__( - cls, - *_args, - name=name, - _configuration=_configuration, - **kwargs, - ) - - -request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) - - -class SchemaFor200ResponseBody( - schemas.AnyTypeSchema, -): - - - class MetaOapg: - required = { - "success", - } - - class properties: - success = schemas.BoolSchema - __annotations__ = { - "success": success, - } - - - success: MetaOapg.properties.success - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["success"]) -> MetaOapg.properties.success: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["success", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["success"]) -> MetaOapg.properties.success: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["success", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - success: typing.Union[MetaOapg.properties.success, bool, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaFor200ResponseBody': - return super().__new__( - cls, - *_args, - success=success, - _configuration=_configuration, - **kwargs, - ) -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, - 'default': _response_for_default, -} -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _set_network_id_name_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - """ - Update network ID's name. - """ - path_params = {} - for parameter in ( - request_path_network_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_network_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_any_type.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='patch'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class SetNetworkIdName(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def set_network_id_name(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._set_network_id_name_oapg(params, request_options) - - -class ApiForpatch(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def patch(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._set_network_id_name_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/network_ids_network_id_set_name/patch.pyi b/fireblocks_client/paths/network_ids_network_id_set_name/patch.pyi deleted file mode 100644 index 3c80ae4e..00000000 --- a/fireblocks_client/paths/network_ids_network_id_set_name/patch.pyi +++ /dev/null @@ -1,320 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error import Error - -# Path params -NetworkIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'networkId': typing.Union[NetworkIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_network_id = api_client.PathParameter( - name="networkId", - style=api_client.ParameterStyle.SIMPLE, - schema=NetworkIdSchema, - required=True, -) -# body param - - -class SchemaForRequestBodyApplicationJson( - schemas.AnyTypeSchema, -): - - - class MetaOapg: - required = { - "name", - } - - class properties: - name = schemas.StrSchema - __annotations__ = { - "name": name, - } - - - name: MetaOapg.properties.name - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - name: typing.Union[MetaOapg.properties.name, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaForRequestBodyApplicationJson': - return super().__new__( - cls, - *_args, - name=name, - _configuration=_configuration, - **kwargs, - ) - - -request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -XRequestIDSchema = schemas.StrSchema - - -class SchemaFor200ResponseBody( - schemas.AnyTypeSchema, -): - - - class MetaOapg: - required = { - "success", - } - - class properties: - success = schemas.BoolSchema - __annotations__ = { - "success": success, - } - - - success: MetaOapg.properties.success - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["success"]) -> MetaOapg.properties.success: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["success", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["success"]) -> MetaOapg.properties.success: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["success", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - success: typing.Union[MetaOapg.properties.success, bool, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaFor200ResponseBody': - return super().__new__( - cls, - *_args, - success=success, - _configuration=_configuration, - **kwargs, - ) -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _set_network_id_name_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - """ - Update network ID's name. - """ - path_params = {} - for parameter in ( - request_path_network_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_network_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_any_type.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='patch'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class SetNetworkIdName(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def set_network_id_name(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._set_network_id_name_oapg(params, request_options) - - -class ApiForpatch(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def patch(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._set_network_id_name_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/network_ids_network_id_set_routing_policy/__init__.py b/fireblocks_client/paths/network_ids_network_id_set_routing_policy/__init__.py deleted file mode 100644 index d1814937..00000000 --- a/fireblocks_client/paths/network_ids_network_id_set_routing_policy/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.network_ids_network_id_set_routing_policy import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.NETWORK_IDS_NETWORK_ID_SET_ROUTING_POLICY \ No newline at end of file diff --git a/fireblocks_client/paths/network_ids_network_id_set_routing_policy/patch.py b/fireblocks_client/paths/network_ids_network_id_set_routing_policy/patch.py deleted file mode 100644 index 65bae0e5..00000000 --- a/fireblocks_client/paths/network_ids_network_id_set_routing_policy/patch.py +++ /dev/null @@ -1,339 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.network_id_routing_policy import NetworkIdRoutingPolicy -from fireblocks_client.model.error import Error - -from . import path - -# Path params -NetworkIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'networkId': typing.Union[NetworkIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_network_id = api_client.PathParameter( - name="networkId", - style=api_client.ParameterStyle.SIMPLE, - schema=NetworkIdSchema, - required=True, -) -# body param - - -class SchemaForRequestBodyApplicationJson( - schemas.AnyTypeSchema, -): - - - class MetaOapg: - required = { - "routingPolicy", - } - - class properties: - - @staticmethod - def routingPolicy() -> typing.Type['NetworkIdRoutingPolicy']: - return NetworkIdRoutingPolicy - __annotations__ = { - "routingPolicy": routingPolicy, - } - - - routingPolicy: 'NetworkIdRoutingPolicy' - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["routingPolicy"]) -> 'NetworkIdRoutingPolicy': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["routingPolicy", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["routingPolicy"]) -> 'NetworkIdRoutingPolicy': ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["routingPolicy", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - routingPolicy: 'NetworkIdRoutingPolicy', - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaForRequestBodyApplicationJson': - return super().__new__( - cls, - *_args, - routingPolicy=routingPolicy, - _configuration=_configuration, - **kwargs, - ) - - -request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) - - -class SchemaFor200ResponseBody( - schemas.AnyTypeSchema, -): - - - class MetaOapg: - required = { - "success", - } - - class properties: - success = schemas.BoolSchema - __annotations__ = { - "success": success, - } - - - success: MetaOapg.properties.success - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["success"]) -> MetaOapg.properties.success: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["success", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["success"]) -> MetaOapg.properties.success: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["success", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - success: typing.Union[MetaOapg.properties.success, bool, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaFor200ResponseBody': - return super().__new__( - cls, - *_args, - success=success, - _configuration=_configuration, - **kwargs, - ) -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, - 'default': _response_for_default, -} -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _set_routing_policy_for_network_id_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - """ - Update network id routing policy. - """ - path_params = {} - for parameter in ( - request_path_network_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_network_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_any_type.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='patch'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class SetRoutingPolicyForNetworkId(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def set_routing_policy_for_network_id(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._set_routing_policy_for_network_id_oapg(params, request_options) - - -class ApiForpatch(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def patch(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._set_routing_policy_for_network_id_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/network_ids_network_id_set_routing_policy/patch.pyi b/fireblocks_client/paths/network_ids_network_id_set_routing_policy/patch.pyi deleted file mode 100644 index 1ab9a051..00000000 --- a/fireblocks_client/paths/network_ids_network_id_set_routing_policy/patch.pyi +++ /dev/null @@ -1,323 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.network_id_routing_policy import NetworkIdRoutingPolicy -from fireblocks_client.model.error import Error - -# Path params -NetworkIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'networkId': typing.Union[NetworkIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_network_id = api_client.PathParameter( - name="networkId", - style=api_client.ParameterStyle.SIMPLE, - schema=NetworkIdSchema, - required=True, -) -# body param - - -class SchemaForRequestBodyApplicationJson( - schemas.AnyTypeSchema, -): - - - class MetaOapg: - required = { - "routingPolicy", - } - - class properties: - - @staticmethod - def routingPolicy() -> typing.Type['NetworkIdRoutingPolicy']: - return NetworkIdRoutingPolicy - __annotations__ = { - "routingPolicy": routingPolicy, - } - - - routingPolicy: 'NetworkIdRoutingPolicy' - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["routingPolicy"]) -> 'NetworkIdRoutingPolicy': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["routingPolicy", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["routingPolicy"]) -> 'NetworkIdRoutingPolicy': ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["routingPolicy", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - routingPolicy: 'NetworkIdRoutingPolicy', - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaForRequestBodyApplicationJson': - return super().__new__( - cls, - *_args, - routingPolicy=routingPolicy, - _configuration=_configuration, - **kwargs, - ) - - -request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, -) -XRequestIDSchema = schemas.StrSchema - - -class SchemaFor200ResponseBody( - schemas.AnyTypeSchema, -): - - - class MetaOapg: - required = { - "success", - } - - class properties: - success = schemas.BoolSchema - __annotations__ = { - "success": success, - } - - - success: MetaOapg.properties.success - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["success"]) -> MetaOapg.properties.success: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["success", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["success"]) -> MetaOapg.properties.success: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["success", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - success: typing.Union[MetaOapg.properties.success, bool, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaFor200ResponseBody': - return super().__new__( - cls, - *_args, - success=success, - _configuration=_configuration, - **kwargs, - ) -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _set_routing_policy_for_network_id_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - """ - Update network id routing policy. - """ - path_params = {} - for parameter in ( - request_path_network_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_network_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_any_type.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='patch'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class SetRoutingPolicyForNetworkId(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def set_routing_policy_for_network_id(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._set_routing_policy_for_network_id_oapg(params, request_options) - - -class ApiForpatch(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def patch(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._set_routing_policy_for_network_id_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/nfts_ownership_collections/__init__.py b/fireblocks_client/paths/nfts_ownership_collections/__init__.py deleted file mode 100644 index 31c1ef3c..00000000 --- a/fireblocks_client/paths/nfts_ownership_collections/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.nfts_ownership_collections import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.NFTS_OWNERSHIP_COLLECTIONS \ No newline at end of file diff --git a/fireblocks_client/paths/nfts_ownership_collections/get.py b/fireblocks_client/paths/nfts_ownership_collections/get.py deleted file mode 100644 index 5187fd1a..00000000 --- a/fireblocks_client/paths/nfts_ownership_collections/get.py +++ /dev/null @@ -1,369 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.paging import Paging -from fireblocks_client.model.collection_ownership_response import CollectionOwnershipResponse - -from . import path - -# Query params - - -class SearchSchema( - schemas.StrSchema -): - - - class MetaOapg: -PageCursorSchema = schemas.StrSchema - - -class PageSizeSchema( - schemas.NumberSchema -): - - - class MetaOapg: - inclusive_maximum = 100 - inclusive_minimum = 1 - - -class SortSchema( - schemas.ListSchema -): - - - class MetaOapg: - - - class items( - schemas.EnumBase, - schemas.StrSchema - ): - - - class MetaOapg: - enum_value_to_name = { - "name": "NAME", - } - - @schemas.classproperty - def NAME(cls): - return cls("name") - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'SortSchema': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - - -class OrderSchema( - schemas.EnumBase, - schemas.StrSchema -): - - - class MetaOapg: - enum_value_to_name = { - "DESC": "DESC", - "ASC": "ASC", - } - - @schemas.classproperty - def DESC(cls): - return cls("DESC") - - @schemas.classproperty - def ASC(cls): - return cls("ASC") -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'search': typing.Union[SearchSchema, str, ], - 'pageCursor': typing.Union[PageCursorSchema, str, ], - 'pageSize': typing.Union[PageSizeSchema, decimal.Decimal, int, float, ], - 'sort': typing.Union[SortSchema, list, tuple, ], - 'order': typing.Union[OrderSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_search = api_client.QueryParameter( - name="search", - style=api_client.ParameterStyle.FORM, - schema=SearchSchema, - explode=True, -) -request_query_page_cursor = api_client.QueryParameter( - name="pageCursor", - style=api_client.ParameterStyle.FORM, - schema=PageCursorSchema, - explode=True, -) -request_query_page_size = api_client.QueryParameter( - name="pageSize", - style=api_client.ParameterStyle.FORM, - schema=PageSizeSchema, - explode=True, -) -request_query_sort = api_client.QueryParameter( - name="sort", - style=api_client.ParameterStyle.FORM, - schema=SortSchema, - explode=True, -) -request_query_order = api_client.QueryParameter( - name="order", - style=api_client.ParameterStyle.FORM, - schema=OrderSchema, - explode=True, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) - - -class SchemaFor200ResponseBodyApplicationJson( - schemas.AnyTypeSchema, -): - - - class MetaOapg: - - class properties: - - @staticmethod - def paging() -> typing.Type['Paging']: - return Paging - - - class data( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['CollectionOwnershipResponse']: - return CollectionOwnershipResponse - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['CollectionOwnershipResponse'], typing.List['CollectionOwnershipResponse']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'data': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'CollectionOwnershipResponse': - return super().__getitem__(i) - __annotations__ = { - "paging": paging, - "data": data, - } - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["paging"]) -> 'Paging': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["data"]) -> MetaOapg.properties.data: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["paging", "data", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["paging"]) -> typing.Union['Paging', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> typing.Union[MetaOapg.properties.data, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["paging", "data", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - paging: typing.Union['Paging', schemas.Unset] = schemas.unset, - data: typing.Union[MetaOapg.properties.data, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaFor200ResponseBodyApplicationJson': - return super().__new__( - cls, - *_args, - paging=paging, - data=data, - _configuration=_configuration, - **kwargs, - ) -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _list_owned_collections_oapg(self, params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - """ - List owned collections (paginated) - """ - query_params = {} - if params and params.get("search"): - query_params["search"] = params.get("search") - if params and params.get("page_cursor"): - query_params["page_cursor"] = params.get("page_cursor") - if params and params.get("page_size"): - query_params["page_size"] = params.get("page_size") - if params and params.get("sort"): - query_params["sort"] = params.get("sort") - if params and params.get("order"): - query_params["order"] = params.get("order") - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_search, - request_query_page_cursor, - request_query_page_size, - request_query_sort, - request_query_order, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class ListOwnedCollections(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def list_owned_collections(self , params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - return self._list_owned_collections_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - return self._list_owned_collections_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/nfts_ownership_collections/get.pyi b/fireblocks_client/paths/nfts_ownership_collections/get.pyi deleted file mode 100644 index 20e930c0..00000000 --- a/fireblocks_client/paths/nfts_ownership_collections/get.pyi +++ /dev/null @@ -1,340 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.paging import Paging -from fireblocks_client.model.collection_ownership_response import CollectionOwnershipResponse - -# Query params - - -class SearchSchema( - schemas.StrSchema -): - pass -PageCursorSchema = schemas.StrSchema - - -class PageSizeSchema( - schemas.NumberSchema -): - pass - - -class SortSchema( - schemas.ListSchema -): - - - class MetaOapg: - - - class items( - schemas.EnumBase, - schemas.StrSchema - ): - - @schemas.classproperty - def NAME(cls): - return cls("name") - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'SortSchema': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - - -class OrderSchema( - schemas.EnumBase, - schemas.StrSchema -): - - @schemas.classproperty - def DESC(cls): - return cls("DESC") - - @schemas.classproperty - def ASC(cls): - return cls("ASC") -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'search': typing.Union[SearchSchema, str, ], - 'pageCursor': typing.Union[PageCursorSchema, str, ], - 'pageSize': typing.Union[PageSizeSchema, decimal.Decimal, int, float, ], - 'sort': typing.Union[SortSchema, list, tuple, ], - 'order': typing.Union[OrderSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_search = api_client.QueryParameter( - name="search", - style=api_client.ParameterStyle.FORM, - schema=SearchSchema, - explode=True, -) -request_query_page_cursor = api_client.QueryParameter( - name="pageCursor", - style=api_client.ParameterStyle.FORM, - schema=PageCursorSchema, - explode=True, -) -request_query_page_size = api_client.QueryParameter( - name="pageSize", - style=api_client.ParameterStyle.FORM, - schema=PageSizeSchema, - explode=True, -) -request_query_sort = api_client.QueryParameter( - name="sort", - style=api_client.ParameterStyle.FORM, - schema=SortSchema, - explode=True, -) -request_query_order = api_client.QueryParameter( - name="order", - style=api_client.ParameterStyle.FORM, - schema=OrderSchema, - explode=True, -) -XRequestIDSchema = schemas.StrSchema - - -class SchemaFor200ResponseBodyApplicationJson( - schemas.AnyTypeSchema, -): - - - class MetaOapg: - - class properties: - - @staticmethod - def paging() -> typing.Type['Paging']: - return Paging - - - class data( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['CollectionOwnershipResponse']: - return CollectionOwnershipResponse - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['CollectionOwnershipResponse'], typing.List['CollectionOwnershipResponse']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'data': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'CollectionOwnershipResponse': - return super().__getitem__(i) - __annotations__ = { - "paging": paging, - "data": data, - } - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["paging"]) -> 'Paging': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["data"]) -> MetaOapg.properties.data: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["paging", "data", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["paging"]) -> typing.Union['Paging', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> typing.Union[MetaOapg.properties.data, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["paging", "data", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - paging: typing.Union['Paging', schemas.Unset] = schemas.unset, - data: typing.Union[MetaOapg.properties.data, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaFor200ResponseBodyApplicationJson': - return super().__new__( - cls, - *_args, - paging=paging, - data=data, - _configuration=_configuration, - **kwargs, - ) -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _list_owned_collections_oapg(self, params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - """ - List owned collections (paginated) - """ - query_params = {} - if params and params.get("search"): - query_params["search"] = params.get("search") - if params and params.get("page_cursor"): - query_params["page_cursor"] = params.get("page_cursor") - if params and params.get("page_size"): - query_params["page_size"] = params.get("page_size") - if params and params.get("sort"): - query_params["sort"] = params.get("sort") - if params and params.get("order"): - query_params["order"] = params.get("order") - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_search, - request_query_page_cursor, - request_query_page_size, - request_query_sort, - request_query_order, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class ListOwnedCollections(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def list_owned_collections(self , params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - return self._list_owned_collections_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - return self._list_owned_collections_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/nfts_ownership_tokens/__init__.py b/fireblocks_client/paths/nfts_ownership_tokens/__init__.py deleted file mode 100644 index 862bf63a..00000000 --- a/fireblocks_client/paths/nfts_ownership_tokens/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.nfts_ownership_tokens import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.NFTS_OWNERSHIP_TOKENS \ No newline at end of file diff --git a/fireblocks_client/paths/nfts_ownership_tokens/get.py b/fireblocks_client/paths/nfts_ownership_tokens/get.py deleted file mode 100644 index e4e9d987..00000000 --- a/fireblocks_client/paths/nfts_ownership_tokens/get.py +++ /dev/null @@ -1,489 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.paging import Paging -from fireblocks_client.model.token_ownership_response import TokenOwnershipResponse - -from . import path - -# Query params - - -class BlockchainDescriptorSchema( - schemas.EnumBase, - schemas.StrSchema -): - - - class MetaOapg: - enum_value_to_name = { - "ETH": "ETH", - "ETH_TEST3": "ETH_TEST3", - "POLYGON": "POLYGON", - "POLYGON_TEST_MUMBAI": "POLYGON_TEST_MUMBAI", - } - - @schemas.classproperty - def ETH(cls): - return cls("ETH") - - @schemas.classproperty - def ETH_TEST3(cls): - return cls("ETH_TEST3") - - @schemas.classproperty - def POLYGON(cls): - return cls("POLYGON") - - @schemas.classproperty - def POLYGON_TEST_MUMBAI(cls): - return cls("POLYGON_TEST_MUMBAI") -VaultAccountIdsSchema = schemas.StrSchema -IdsSchema = schemas.StrSchema -CollectionIdsSchema = schemas.StrSchema -PageCursorSchema = schemas.StrSchema - - -class PageSizeSchema( - schemas.NumberSchema -): - - - class MetaOapg: - inclusive_maximum = 100 - inclusive_minimum = 1 - - -class SortSchema( - schemas.ListSchema -): - - - class MetaOapg: - - - class items( - schemas.EnumBase, - schemas.StrSchema - ): - - - class MetaOapg: - enum_value_to_name = { - "ownershipLastUpdateTime": "OWNERSHIP_LAST_UPDATE_TIME", - "name": "NAME", - "collection.name": "COLLECTION_NAME", - "blockchainDescriptor": "BLOCKCHAIN_DESCRIPTOR", - } - - @schemas.classproperty - def OWNERSHIP_LAST_UPDATE_TIME(cls): - return cls("ownershipLastUpdateTime") - - @schemas.classproperty - def NAME(cls): - return cls("name") - - @schemas.classproperty - def COLLECTION_NAME(cls): - return cls("collection.name") - - @schemas.classproperty - def BLOCKCHAIN_DESCRIPTOR(cls): - return cls("blockchainDescriptor") - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'SortSchema': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - - -class OrderSchema( - schemas.EnumBase, - schemas.StrSchema -): - - - class MetaOapg: - enum_value_to_name = { - "DESC": "DESC", - "ASC": "ASC", - } - - @schemas.classproperty - def DESC(cls): - return cls("DESC") - - @schemas.classproperty - def ASC(cls): - return cls("ASC") - - -class StatusSchema( - schemas.EnumBase, - schemas.StrSchema -): - - - class MetaOapg: - enum_value_to_name = { - "LISTED": "LISTED", - "ARCHIVED": "ARCHIVED", - } - - @schemas.classproperty - def LISTED(cls): - return cls("LISTED") - - @schemas.classproperty - def ARCHIVED(cls): - return cls("ARCHIVED") - - -class SearchSchema( - schemas.StrSchema -): - - - class MetaOapg: -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'blockchainDescriptor': typing.Union[BlockchainDescriptorSchema, str, ], - 'vaultAccountIds': typing.Union[VaultAccountIdsSchema, str, ], - 'ids': typing.Union[IdsSchema, str, ], - 'collectionIds': typing.Union[CollectionIdsSchema, str, ], - 'pageCursor': typing.Union[PageCursorSchema, str, ], - 'pageSize': typing.Union[PageSizeSchema, decimal.Decimal, int, float, ], - 'sort': typing.Union[SortSchema, list, tuple, ], - 'order': typing.Union[OrderSchema, str, ], - 'status': typing.Union[StatusSchema, str, ], - 'search': typing.Union[SearchSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_blockchain_descriptor = api_client.QueryParameter( - name="blockchainDescriptor", - style=api_client.ParameterStyle.FORM, - schema=BlockchainDescriptorSchema, - explode=True, -) -request_query_vault_account_ids = api_client.QueryParameter( - name="vaultAccountIds", - style=api_client.ParameterStyle.FORM, - schema=VaultAccountIdsSchema, - explode=True, -) -request_query_ids = api_client.QueryParameter( - name="ids", - style=api_client.ParameterStyle.FORM, - schema=IdsSchema, - explode=True, -) -request_query_collection_ids = api_client.QueryParameter( - name="collectionIds", - style=api_client.ParameterStyle.FORM, - schema=CollectionIdsSchema, - explode=True, -) -request_query_page_cursor = api_client.QueryParameter( - name="pageCursor", - style=api_client.ParameterStyle.FORM, - schema=PageCursorSchema, - explode=True, -) -request_query_page_size = api_client.QueryParameter( - name="pageSize", - style=api_client.ParameterStyle.FORM, - schema=PageSizeSchema, - explode=True, -) -request_query_sort = api_client.QueryParameter( - name="sort", - style=api_client.ParameterStyle.FORM, - schema=SortSchema, - explode=True, -) -request_query_order = api_client.QueryParameter( - name="order", - style=api_client.ParameterStyle.FORM, - schema=OrderSchema, - explode=True, -) -request_query_status = api_client.QueryParameter( - name="status", - style=api_client.ParameterStyle.FORM, - schema=StatusSchema, - explode=True, -) -request_query_search = api_client.QueryParameter( - name="search", - style=api_client.ParameterStyle.FORM, - schema=SearchSchema, - explode=True, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) - - -class SchemaFor200ResponseBodyApplicationJson( - schemas.AnyTypeSchema, -): - - - class MetaOapg: - - class properties: - - @staticmethod - def paging() -> typing.Type['Paging']: - return Paging - - - class data( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['TokenOwnershipResponse']: - return TokenOwnershipResponse - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['TokenOwnershipResponse'], typing.List['TokenOwnershipResponse']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'data': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'TokenOwnershipResponse': - return super().__getitem__(i) - __annotations__ = { - "paging": paging, - "data": data, - } - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["paging"]) -> 'Paging': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["data"]) -> MetaOapg.properties.data: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["paging", "data", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["paging"]) -> typing.Union['Paging', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> typing.Union[MetaOapg.properties.data, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["paging", "data", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - paging: typing.Union['Paging', schemas.Unset] = schemas.unset, - data: typing.Union[MetaOapg.properties.data, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaFor200ResponseBodyApplicationJson': - return super().__new__( - cls, - *_args, - paging=paging, - data=data, - _configuration=_configuration, - **kwargs, - ) -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_ownership_tokens_oapg(self, params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - """ - List all owned tokens (paginated) - """ - query_params = {} - if params and params.get("blockchain_descriptor"): - query_params["blockchain_descriptor"] = params.get("blockchain_descriptor") - if params and params.get("vault_account_ids"): - query_params["vault_account_ids"] = params.get("vault_account_ids") - if params and params.get("ids"): - query_params["ids"] = params.get("ids") - if params and params.get("collection_ids"): - query_params["collection_ids"] = params.get("collection_ids") - if params and params.get("page_cursor"): - query_params["page_cursor"] = params.get("page_cursor") - if params and params.get("page_size"): - query_params["page_size"] = params.get("page_size") - if params and params.get("sort"): - query_params["sort"] = params.get("sort") - if params and params.get("order"): - query_params["order"] = params.get("order") - if params and params.get("status"): - query_params["status"] = params.get("status") - if params and params.get("search"): - query_params["search"] = params.get("search") - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_blockchain_descriptor, - request_query_vault_account_ids, - request_query_ids, - request_query_collection_ids, - request_query_page_cursor, - request_query_page_size, - request_query_sort, - request_query_order, - request_query_status, - request_query_search, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetOwnershipTokens(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_ownership_tokens(self , params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - return self._get_ownership_tokens_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - return self._get_ownership_tokens_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/nfts_ownership_tokens/get.pyi b/fireblocks_client/paths/nfts_ownership_tokens/get.pyi deleted file mode 100644 index 83ec97eb..00000000 --- a/fireblocks_client/paths/nfts_ownership_tokens/get.pyi +++ /dev/null @@ -1,441 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.paging import Paging -from fireblocks_client.model.token_ownership_response import TokenOwnershipResponse - -# Query params - - -class BlockchainDescriptorSchema( - schemas.EnumBase, - schemas.StrSchema -): - - @schemas.classproperty - def ETH(cls): - return cls("ETH") - - @schemas.classproperty - def ETH_TEST3(cls): - return cls("ETH_TEST3") - - @schemas.classproperty - def POLYGON(cls): - return cls("POLYGON") - - @schemas.classproperty - def POLYGON_TEST_MUMBAI(cls): - return cls("POLYGON_TEST_MUMBAI") -VaultAccountIdsSchema = schemas.StrSchema -IdsSchema = schemas.StrSchema -CollectionIdsSchema = schemas.StrSchema -PageCursorSchema = schemas.StrSchema - - -class PageSizeSchema( - schemas.NumberSchema -): - pass - - -class SortSchema( - schemas.ListSchema -): - - - class MetaOapg: - - - class items( - schemas.EnumBase, - schemas.StrSchema - ): - - @schemas.classproperty - def OWNERSHIP_LAST_UPDATE_TIME(cls): - return cls("ownershipLastUpdateTime") - - @schemas.classproperty - def NAME(cls): - return cls("name") - - @schemas.classproperty - def COLLECTION_NAME(cls): - return cls("collection.name") - - @schemas.classproperty - def BLOCKCHAIN_DESCRIPTOR(cls): - return cls("blockchainDescriptor") - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'SortSchema': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - - -class OrderSchema( - schemas.EnumBase, - schemas.StrSchema -): - - @schemas.classproperty - def DESC(cls): - return cls("DESC") - - @schemas.classproperty - def ASC(cls): - return cls("ASC") - - -class StatusSchema( - schemas.EnumBase, - schemas.StrSchema -): - - @schemas.classproperty - def LISTED(cls): - return cls("LISTED") - - @schemas.classproperty - def ARCHIVED(cls): - return cls("ARCHIVED") - - -class SearchSchema( - schemas.StrSchema -): - pass -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'blockchainDescriptor': typing.Union[BlockchainDescriptorSchema, str, ], - 'vaultAccountIds': typing.Union[VaultAccountIdsSchema, str, ], - 'ids': typing.Union[IdsSchema, str, ], - 'collectionIds': typing.Union[CollectionIdsSchema, str, ], - 'pageCursor': typing.Union[PageCursorSchema, str, ], - 'pageSize': typing.Union[PageSizeSchema, decimal.Decimal, int, float, ], - 'sort': typing.Union[SortSchema, list, tuple, ], - 'order': typing.Union[OrderSchema, str, ], - 'status': typing.Union[StatusSchema, str, ], - 'search': typing.Union[SearchSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_blockchain_descriptor = api_client.QueryParameter( - name="blockchainDescriptor", - style=api_client.ParameterStyle.FORM, - schema=BlockchainDescriptorSchema, - explode=True, -) -request_query_vault_account_ids = api_client.QueryParameter( - name="vaultAccountIds", - style=api_client.ParameterStyle.FORM, - schema=VaultAccountIdsSchema, - explode=True, -) -request_query_ids = api_client.QueryParameter( - name="ids", - style=api_client.ParameterStyle.FORM, - schema=IdsSchema, - explode=True, -) -request_query_collection_ids = api_client.QueryParameter( - name="collectionIds", - style=api_client.ParameterStyle.FORM, - schema=CollectionIdsSchema, - explode=True, -) -request_query_page_cursor = api_client.QueryParameter( - name="pageCursor", - style=api_client.ParameterStyle.FORM, - schema=PageCursorSchema, - explode=True, -) -request_query_page_size = api_client.QueryParameter( - name="pageSize", - style=api_client.ParameterStyle.FORM, - schema=PageSizeSchema, - explode=True, -) -request_query_sort = api_client.QueryParameter( - name="sort", - style=api_client.ParameterStyle.FORM, - schema=SortSchema, - explode=True, -) -request_query_order = api_client.QueryParameter( - name="order", - style=api_client.ParameterStyle.FORM, - schema=OrderSchema, - explode=True, -) -request_query_status = api_client.QueryParameter( - name="status", - style=api_client.ParameterStyle.FORM, - schema=StatusSchema, - explode=True, -) -request_query_search = api_client.QueryParameter( - name="search", - style=api_client.ParameterStyle.FORM, - schema=SearchSchema, - explode=True, -) -XRequestIDSchema = schemas.StrSchema - - -class SchemaFor200ResponseBodyApplicationJson( - schemas.AnyTypeSchema, -): - - - class MetaOapg: - - class properties: - - @staticmethod - def paging() -> typing.Type['Paging']: - return Paging - - - class data( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['TokenOwnershipResponse']: - return TokenOwnershipResponse - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['TokenOwnershipResponse'], typing.List['TokenOwnershipResponse']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'data': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'TokenOwnershipResponse': - return super().__getitem__(i) - __annotations__ = { - "paging": paging, - "data": data, - } - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["paging"]) -> 'Paging': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["data"]) -> MetaOapg.properties.data: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["paging", "data", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["paging"]) -> typing.Union['Paging', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> typing.Union[MetaOapg.properties.data, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["paging", "data", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - paging: typing.Union['Paging', schemas.Unset] = schemas.unset, - data: typing.Union[MetaOapg.properties.data, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaFor200ResponseBodyApplicationJson': - return super().__new__( - cls, - *_args, - paging=paging, - data=data, - _configuration=_configuration, - **kwargs, - ) -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_ownership_tokens_oapg(self, params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - """ - List all owned tokens (paginated) - """ - query_params = {} - if params and params.get("blockchain_descriptor"): - query_params["blockchain_descriptor"] = params.get("blockchain_descriptor") - if params and params.get("vault_account_ids"): - query_params["vault_account_ids"] = params.get("vault_account_ids") - if params and params.get("ids"): - query_params["ids"] = params.get("ids") - if params and params.get("collection_ids"): - query_params["collection_ids"] = params.get("collection_ids") - if params and params.get("page_cursor"): - query_params["page_cursor"] = params.get("page_cursor") - if params and params.get("page_size"): - query_params["page_size"] = params.get("page_size") - if params and params.get("sort"): - query_params["sort"] = params.get("sort") - if params and params.get("order"): - query_params["order"] = params.get("order") - if params and params.get("status"): - query_params["status"] = params.get("status") - if params and params.get("search"): - query_params["search"] = params.get("search") - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_blockchain_descriptor, - request_query_vault_account_ids, - request_query_ids, - request_query_collection_ids, - request_query_page_cursor, - request_query_page_size, - request_query_sort, - request_query_order, - request_query_status, - request_query_search, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetOwnershipTokens(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_ownership_tokens(self , params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - return self._get_ownership_tokens_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - return self._get_ownership_tokens_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/nfts_ownership_tokens/put.py b/fireblocks_client/paths/nfts_ownership_tokens/put.py deleted file mode 100644 index 32b4a5d7..00000000 --- a/fireblocks_client/paths/nfts_ownership_tokens/put.py +++ /dev/null @@ -1,189 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from . import path - -# Query params - - -class BlockchainDescriptorSchema( - schemas.EnumBase, - schemas.StrSchema -): - - - class MetaOapg: - enum_value_to_name = { - "ETH": "ETH", - "ETH_TEST3": "ETH_TEST3", - "POLYGON": "POLYGON", - "POLYGON_TEST_MUMBAI": "POLYGON_TEST_MUMBAI", - } - - @schemas.classproperty - def ETH(cls): - return cls("ETH") - - @schemas.classproperty - def ETH_TEST3(cls): - return cls("ETH_TEST3") - - @schemas.classproperty - def POLYGON(cls): - return cls("POLYGON") - - @schemas.classproperty - def POLYGON_TEST_MUMBAI(cls): - return cls("POLYGON_TEST_MUMBAI") -VaultAccountIdSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - 'blockchainDescriptor': typing.Union[BlockchainDescriptorSchema, str, ], - 'vaultAccountId': typing.Union[VaultAccountIdSchema, str, ], - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_blockchain_descriptor = api_client.QueryParameter( - name="blockchainDescriptor", - style=api_client.ParameterStyle.FORM, - schema=BlockchainDescriptorSchema, - required=True, - explode=True, -) -request_query_vault_account_id = api_client.QueryParameter( - name="vaultAccountId", - style=api_client.ParameterStyle.FORM, - schema=VaultAccountIdSchema, - required=True, - explode=True, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -ResponseHeadersFor202 = typing_extensions.TypedDict( - 'ResponseHeadersFor202', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor202(api_client.ApiResponse): - response: urllib3.HTTPResponse - headers: ResponseHeadersFor202 - body: schemas.Unset = schemas.unset - - -_response_for_202 = api_client.OpenApiResponse( - response_cls=ApiResponseFor202, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '202': _response_for_202, -} - - -class BaseApi(api_client.Api): - - def _update_ownership_tokens_oapg(self, params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - """ - Refresh vault account tokens - """ - query_params = {} - if params and params.get("blockchain_descriptor"): - query_params["blockchain_descriptor"] = params.get("blockchain_descriptor") - if params and params.get("vault_account_id"): - query_params["vault_account_id"] = params.get("vault_account_id") - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_blockchain_descriptor, - request_query_vault_account_id, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='put'.upper(), - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class UpdateOwnershipTokens(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def update_ownership_tokens(self , params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - return self._update_ownership_tokens_oapg(params, request_options) - - -class ApiForput(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def put(self , params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - return self._update_ownership_tokens_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/nfts_ownership_tokens/put.pyi b/fireblocks_client/paths/nfts_ownership_tokens/put.pyi deleted file mode 100644 index 286b7418..00000000 --- a/fireblocks_client/paths/nfts_ownership_tokens/put.pyi +++ /dev/null @@ -1,170 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -# Query params - - -class BlockchainDescriptorSchema( - schemas.EnumBase, - schemas.StrSchema -): - - @schemas.classproperty - def ETH(cls): - return cls("ETH") - - @schemas.classproperty - def ETH_TEST3(cls): - return cls("ETH_TEST3") - - @schemas.classproperty - def POLYGON(cls): - return cls("POLYGON") - - @schemas.classproperty - def POLYGON_TEST_MUMBAI(cls): - return cls("POLYGON_TEST_MUMBAI") -VaultAccountIdSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - 'blockchainDescriptor': typing.Union[BlockchainDescriptorSchema, str, ], - 'vaultAccountId': typing.Union[VaultAccountIdSchema, str, ], - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_blockchain_descriptor = api_client.QueryParameter( - name="blockchainDescriptor", - style=api_client.ParameterStyle.FORM, - schema=BlockchainDescriptorSchema, - required=True, - explode=True, -) -request_query_vault_account_id = api_client.QueryParameter( - name="vaultAccountId", - style=api_client.ParameterStyle.FORM, - schema=VaultAccountIdSchema, - required=True, - explode=True, -) -XRequestIDSchema = schemas.StrSchema -ResponseHeadersFor202 = typing_extensions.TypedDict( - 'ResponseHeadersFor202', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor202(api_client.ApiResponse): - response: urllib3.HTTPResponse - headers: ResponseHeadersFor202 - body: schemas.Unset = schemas.unset - - -_response_for_202 = api_client.OpenApiResponse( - response_cls=ApiResponseFor202, - headers=[ - x_request_id_parameter, - ] -) - - -class BaseApi(api_client.Api): - - def _update_ownership_tokens_oapg(self, params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - """ - Refresh vault account tokens - """ - query_params = {} - if params and params.get("blockchain_descriptor"): - query_params["blockchain_descriptor"] = params.get("blockchain_descriptor") - if params and params.get("vault_account_id"): - query_params["vault_account_id"] = params.get("vault_account_id") - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_blockchain_descriptor, - request_query_vault_account_id, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='put'.upper(), - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class UpdateOwnershipTokens(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def update_ownership_tokens(self , params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - return self._update_ownership_tokens_oapg(params, request_options) - - -class ApiForput(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def put(self , params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - return self._update_ownership_tokens_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/nfts_ownership_tokens_id_status/__init__.py b/fireblocks_client/paths/nfts_ownership_tokens_id_status/__init__.py deleted file mode 100644 index d0a6db54..00000000 --- a/fireblocks_client/paths/nfts_ownership_tokens_id_status/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.nfts_ownership_tokens_id_status import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.NFTS_OWNERSHIP_TOKENS_ID_STATUS \ No newline at end of file diff --git a/fireblocks_client/paths/nfts_ownership_tokens_id_status/put.py b/fireblocks_client/paths/nfts_ownership_tokens_id_status/put.py deleted file mode 100644 index 792c24b7..00000000 --- a/fireblocks_client/paths/nfts_ownership_tokens_id_status/put.py +++ /dev/null @@ -1,176 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.update_token_ownership_status_dto import UpdateTokenOwnershipStatusDto - -from . import path - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -# body param -SchemaForRequestBodyApplicationJson = UpdateTokenOwnershipStatusDto - - -request_body_update_token_ownership_status_dto = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - headers: ResponseHeadersFor200 - body: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, -} - - -class BaseApi(api_client.Api): - - def _update_token_ownership_status_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - """ - Update token ownership status - """ - path_params = {} - for parameter in ( - request_path_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_update_token_ownership_status_dto.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='put'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class UpdateTokenOwnershipStatus(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def update_token_ownership_status(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._update_token_ownership_status_oapg(params, request_options) - - -class ApiForput(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def put(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._update_token_ownership_status_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/nfts_ownership_tokens_id_status/put.pyi b/fireblocks_client/paths/nfts_ownership_tokens_id_status/put.pyi deleted file mode 100644 index ba3a5571..00000000 --- a/fireblocks_client/paths/nfts_ownership_tokens_id_status/put.pyi +++ /dev/null @@ -1,166 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.update_token_ownership_status_dto import UpdateTokenOwnershipStatusDto - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -# body param -SchemaForRequestBodyApplicationJson = UpdateTokenOwnershipStatusDto - - -request_body_update_token_ownership_status_dto = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -XRequestIDSchema = schemas.StrSchema -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - headers: ResponseHeadersFor200 - body: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - headers=[ - x_request_id_parameter, - ] -) - - -class BaseApi(api_client.Api): - - def _update_token_ownership_status_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - """ - Update token ownership status - """ - path_params = {} - for parameter in ( - request_path_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_update_token_ownership_status_dto.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='put'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class UpdateTokenOwnershipStatus(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def update_token_ownership_status(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._update_token_ownership_status_oapg(params, request_options) - - -class ApiForput(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def put(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._update_token_ownership_status_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/nfts_tokens/__init__.py b/fireblocks_client/paths/nfts_tokens/__init__.py deleted file mode 100644 index a767ee1b..00000000 --- a/fireblocks_client/paths/nfts_tokens/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.nfts_tokens import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.NFTS_TOKENS \ No newline at end of file diff --git a/fireblocks_client/paths/nfts_tokens/get.py b/fireblocks_client/paths/nfts_tokens/get.py deleted file mode 100644 index 4f980401..00000000 --- a/fireblocks_client/paths/nfts_tokens/get.py +++ /dev/null @@ -1,373 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.token_response import TokenResponse -from fireblocks_client.model.paging import Paging - -from . import path - -# Query params -IdsSchema = schemas.StrSchema -PageCursorSchema = schemas.StrSchema - - -class PageSizeSchema( - schemas.NumberSchema -): - - - class MetaOapg: - inclusive_maximum = 100 - inclusive_minimum = 1 - - -class SortSchema( - schemas.ListSchema -): - - - class MetaOapg: - - - class items( - schemas.EnumBase, - schemas.StrSchema - ): - - - class MetaOapg: - enum_value_to_name = { - "collection.name": "COLLECTION_NAME", - "name": "NAME", - "blockchainDescriptor": "BLOCKCHAIN_DESCRIPTOR", - } - - @schemas.classproperty - def COLLECTION_NAME(cls): - return cls("collection.name") - - @schemas.classproperty - def NAME(cls): - return cls("name") - - @schemas.classproperty - def BLOCKCHAIN_DESCRIPTOR(cls): - return cls("blockchainDescriptor") - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'SortSchema': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - - -class OrderSchema( - schemas.EnumBase, - schemas.StrSchema -): - - - class MetaOapg: - enum_value_to_name = { - "DESC": "DESC", - "ASC": "ASC", - } - - @schemas.classproperty - def DESC(cls): - return cls("DESC") - - @schemas.classproperty - def ASC(cls): - return cls("ASC") -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - 'ids': typing.Union[IdsSchema, str, ], - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'pageCursor': typing.Union[PageCursorSchema, str, ], - 'pageSize': typing.Union[PageSizeSchema, decimal.Decimal, int, float, ], - 'sort': typing.Union[SortSchema, list, tuple, ], - 'order': typing.Union[OrderSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_ids = api_client.QueryParameter( - name="ids", - style=api_client.ParameterStyle.FORM, - schema=IdsSchema, - required=True, - explode=True, -) -request_query_page_cursor = api_client.QueryParameter( - name="pageCursor", - style=api_client.ParameterStyle.FORM, - schema=PageCursorSchema, - explode=True, -) -request_query_page_size = api_client.QueryParameter( - name="pageSize", - style=api_client.ParameterStyle.FORM, - schema=PageSizeSchema, - explode=True, -) -request_query_sort = api_client.QueryParameter( - name="sort", - style=api_client.ParameterStyle.FORM, - schema=SortSchema, - explode=True, -) -request_query_order = api_client.QueryParameter( - name="order", - style=api_client.ParameterStyle.FORM, - schema=OrderSchema, - explode=True, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) - - -class SchemaFor200ResponseBodyApplicationJson( - schemas.AnyTypeSchema, -): - - - class MetaOapg: - - class properties: - - @staticmethod - def paging() -> typing.Type['Paging']: - return Paging - - - class data( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['TokenResponse']: - return TokenResponse - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['TokenResponse'], typing.List['TokenResponse']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'data': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'TokenResponse': - return super().__getitem__(i) - __annotations__ = { - "paging": paging, - "data": data, - } - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["paging"]) -> 'Paging': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["data"]) -> MetaOapg.properties.data: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["paging", "data", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["paging"]) -> typing.Union['Paging', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> typing.Union[MetaOapg.properties.data, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["paging", "data", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - paging: typing.Union['Paging', schemas.Unset] = schemas.unset, - data: typing.Union[MetaOapg.properties.data, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaFor200ResponseBodyApplicationJson': - return super().__new__( - cls, - *_args, - paging=paging, - data=data, - _configuration=_configuration, - **kwargs, - ) -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_nfts_oapg(self, params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - """ - List tokens by IDs - """ - query_params = {} - if params and params.get("ids"): - query_params["ids"] = params.get("ids") - if params and params.get("page_cursor"): - query_params["page_cursor"] = params.get("page_cursor") - if params and params.get("page_size"): - query_params["page_size"] = params.get("page_size") - if params and params.get("sort"): - query_params["sort"] = params.get("sort") - if params and params.get("order"): - query_params["order"] = params.get("order") - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_ids, - request_query_page_cursor, - request_query_page_size, - request_query_sort, - request_query_order, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetNfts(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_nfts(self , params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - return self._get_nfts_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - return self._get_nfts_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/nfts_tokens/get.pyi b/fireblocks_client/paths/nfts_tokens/get.pyi deleted file mode 100644 index e3fcbc3a..00000000 --- a/fireblocks_client/paths/nfts_tokens/get.pyi +++ /dev/null @@ -1,344 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.token_response import TokenResponse -from fireblocks_client.model.paging import Paging - -# Query params -IdsSchema = schemas.StrSchema -PageCursorSchema = schemas.StrSchema - - -class PageSizeSchema( - schemas.NumberSchema -): - pass - - -class SortSchema( - schemas.ListSchema -): - - - class MetaOapg: - - - class items( - schemas.EnumBase, - schemas.StrSchema - ): - - @schemas.classproperty - def COLLECTION_NAME(cls): - return cls("collection.name") - - @schemas.classproperty - def NAME(cls): - return cls("name") - - @schemas.classproperty - def BLOCKCHAIN_DESCRIPTOR(cls): - return cls("blockchainDescriptor") - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'SortSchema': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - - -class OrderSchema( - schemas.EnumBase, - schemas.StrSchema -): - - @schemas.classproperty - def DESC(cls): - return cls("DESC") - - @schemas.classproperty - def ASC(cls): - return cls("ASC") -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - 'ids': typing.Union[IdsSchema, str, ], - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'pageCursor': typing.Union[PageCursorSchema, str, ], - 'pageSize': typing.Union[PageSizeSchema, decimal.Decimal, int, float, ], - 'sort': typing.Union[SortSchema, list, tuple, ], - 'order': typing.Union[OrderSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_ids = api_client.QueryParameter( - name="ids", - style=api_client.ParameterStyle.FORM, - schema=IdsSchema, - required=True, - explode=True, -) -request_query_page_cursor = api_client.QueryParameter( - name="pageCursor", - style=api_client.ParameterStyle.FORM, - schema=PageCursorSchema, - explode=True, -) -request_query_page_size = api_client.QueryParameter( - name="pageSize", - style=api_client.ParameterStyle.FORM, - schema=PageSizeSchema, - explode=True, -) -request_query_sort = api_client.QueryParameter( - name="sort", - style=api_client.ParameterStyle.FORM, - schema=SortSchema, - explode=True, -) -request_query_order = api_client.QueryParameter( - name="order", - style=api_client.ParameterStyle.FORM, - schema=OrderSchema, - explode=True, -) -XRequestIDSchema = schemas.StrSchema - - -class SchemaFor200ResponseBodyApplicationJson( - schemas.AnyTypeSchema, -): - - - class MetaOapg: - - class properties: - - @staticmethod - def paging() -> typing.Type['Paging']: - return Paging - - - class data( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['TokenResponse']: - return TokenResponse - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['TokenResponse'], typing.List['TokenResponse']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'data': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'TokenResponse': - return super().__getitem__(i) - __annotations__ = { - "paging": paging, - "data": data, - } - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["paging"]) -> 'Paging': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["data"]) -> MetaOapg.properties.data: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["paging", "data", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["paging"]) -> typing.Union['Paging', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> typing.Union[MetaOapg.properties.data, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["paging", "data", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - paging: typing.Union['Paging', schemas.Unset] = schemas.unset, - data: typing.Union[MetaOapg.properties.data, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaFor200ResponseBodyApplicationJson': - return super().__new__( - cls, - *_args, - paging=paging, - data=data, - _configuration=_configuration, - **kwargs, - ) -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_nfts_oapg(self, params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - """ - List tokens by IDs - """ - query_params = {} - if params and params.get("ids"): - query_params["ids"] = params.get("ids") - if params and params.get("page_cursor"): - query_params["page_cursor"] = params.get("page_cursor") - if params and params.get("page_size"): - query_params["page_size"] = params.get("page_size") - if params and params.get("sort"): - query_params["sort"] = params.get("sort") - if params and params.get("order"): - query_params["order"] = params.get("order") - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_ids, - request_query_page_cursor, - request_query_page_size, - request_query_sort, - request_query_order, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetNfts(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_nfts(self , params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - return self._get_nfts_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - return self._get_nfts_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/nfts_tokens_id/__init__.py b/fireblocks_client/paths/nfts_tokens_id/__init__.py deleted file mode 100644 index 4f8c61ea..00000000 --- a/fireblocks_client/paths/nfts_tokens_id/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.nfts_tokens_id import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.NFTS_TOKENS_ID \ No newline at end of file diff --git a/fireblocks_client/paths/nfts_tokens_id/get.py b/fireblocks_client/paths/nfts_tokens_id/get.py deleted file mode 100644 index eb2c842f..00000000 --- a/fireblocks_client/paths/nfts_tokens_id/get.py +++ /dev/null @@ -1,166 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.token_response import TokenResponse - -from . import path - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor200ResponseBodyApplicationJson = TokenResponse -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_nft_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - List token data by ID - """ - path_params = {} - for parameter in ( - request_path_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetNft(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_nft(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_nft_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_nft_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/nfts_tokens_id/get.pyi b/fireblocks_client/paths/nfts_tokens_id/get.pyi deleted file mode 100644 index 77c2e43a..00000000 --- a/fireblocks_client/paths/nfts_tokens_id/get.pyi +++ /dev/null @@ -1,156 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.token_response import TokenResponse - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -XRequestIDSchema = schemas.StrSchema -SchemaFor200ResponseBodyApplicationJson = TokenResponse -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_nft_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - List token data by ID - """ - path_params = {} - for parameter in ( - request_path_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetNft(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_nft(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_nft_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_nft_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/nfts_tokens_id/put.py b/fireblocks_client/paths/nfts_tokens_id/put.py deleted file mode 100644 index 52228a05..00000000 --- a/fireblocks_client/paths/nfts_tokens_id/put.py +++ /dev/null @@ -1,149 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from . import path - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -ResponseHeadersFor202 = typing_extensions.TypedDict( - 'ResponseHeadersFor202', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor202(api_client.ApiResponse): - response: urllib3.HTTPResponse - headers: ResponseHeadersFor202 - body: schemas.Unset = schemas.unset - - -_response_for_202 = api_client.OpenApiResponse( - response_cls=ApiResponseFor202, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '202': _response_for_202, -} - - -class BaseApi(api_client.Api): - - def _refresh_nft_metadata_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Refresh token metadata - """ - path_params = {} - for parameter in ( - request_path_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='put'.upper(), - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class RefreshNftMetadata(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def refresh_nft_metadata(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._refresh_nft_metadata_oapg(params, request_options) - - -class ApiForput(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def put(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._refresh_nft_metadata_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/nfts_tokens_id/put.pyi b/fireblocks_client/paths/nfts_tokens_id/put.pyi deleted file mode 100644 index 70bc8a3a..00000000 --- a/fireblocks_client/paths/nfts_tokens_id/put.pyi +++ /dev/null @@ -1,139 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -XRequestIDSchema = schemas.StrSchema -ResponseHeadersFor202 = typing_extensions.TypedDict( - 'ResponseHeadersFor202', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor202(api_client.ApiResponse): - response: urllib3.HTTPResponse - headers: ResponseHeadersFor202 - body: schemas.Unset = schemas.unset - - -_response_for_202 = api_client.OpenApiResponse( - response_cls=ApiResponseFor202, - headers=[ - x_request_id_parameter, - ] -) - - -class BaseApi(api_client.Api): - - def _refresh_nft_metadata_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Refresh token metadata - """ - path_params = {} - for parameter in ( - request_path_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='put'.upper(), - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class RefreshNftMetadata(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def refresh_nft_metadata(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._refresh_nft_metadata_oapg(params, request_options) - - -class ApiForput(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def put(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._refresh_nft_metadata_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/off_exchange_add/__init__.py b/fireblocks_client/paths/off_exchange_add/__init__.py deleted file mode 100644 index e9cd3485..00000000 --- a/fireblocks_client/paths/off_exchange_add/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.off_exchange_add import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.OFF_EXCHANGE_ADD \ No newline at end of file diff --git a/fireblocks_client/paths/off_exchange_add/post.py b/fireblocks_client/paths/off_exchange_add/post.py deleted file mode 100644 index 68e91bd2..00000000 --- a/fireblocks_client/paths/off_exchange_add/post.py +++ /dev/null @@ -1,166 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.add_collateral_request_body import AddCollateralRequestBody -from fireblocks_client.model.error import Error -from fireblocks_client.model.create_transaction_response import CreateTransactionResponse - -from . import path - -# body param -SchemaForRequestBodyApplicationJson = AddCollateralRequestBody - - -request_body_add_collateral_request_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, -) -SchemaFor200ResponseBody = CreateTransactionResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, - 'default': _response_for_default, -} -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _add_off_exchange_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - """ - add collateral - """ - used_path = path.value - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_add_collateral_request_body.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class AddOffExchange(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def add_off_exchange(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._add_off_exchange_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._add_off_exchange_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/off_exchange_add/post.pyi b/fireblocks_client/paths/off_exchange_add/post.pyi deleted file mode 100644 index f3f39e41..00000000 --- a/fireblocks_client/paths/off_exchange_add/post.pyi +++ /dev/null @@ -1,155 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.add_collateral_request_body import AddCollateralRequestBody -from fireblocks_client.model.error import Error -from fireblocks_client.model.create_transaction_response import CreateTransactionResponse - -# body param -SchemaForRequestBodyApplicationJson = AddCollateralRequestBody - - -request_body_add_collateral_request_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, -) -SchemaFor200ResponseBody = CreateTransactionResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _add_off_exchange_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - """ - add collateral - """ - used_path = path.value - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_add_collateral_request_body.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class AddOffExchange(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def add_off_exchange(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._add_off_exchange_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._add_off_exchange_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/off_exchange_collateral_accounts_main_exchange_account_id/__init__.py b/fireblocks_client/paths/off_exchange_collateral_accounts_main_exchange_account_id/__init__.py deleted file mode 100644 index f0f60413..00000000 --- a/fireblocks_client/paths/off_exchange_collateral_accounts_main_exchange_account_id/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.off_exchange_collateral_accounts_main_exchange_account_id import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.OFF_EXCHANGE_COLLATERAL_ACCOUNTS_MAIN_EXCHANGE_ACCOUNT_ID \ No newline at end of file diff --git a/fireblocks_client/paths/off_exchange_collateral_accounts_main_exchange_account_id/get.py b/fireblocks_client/paths/off_exchange_collateral_accounts_main_exchange_account_id/get.py deleted file mode 100644 index 3af275fc..00000000 --- a/fireblocks_client/paths/off_exchange_collateral_accounts_main_exchange_account_id/get.py +++ /dev/null @@ -1,207 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.exchange_account import ExchangeAccount -from fireblocks_client.model.error import Error - -from . import path - -# Path params -MainExchangeAccountIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'mainExchangeAccountId': typing.Union[MainExchangeAccountIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_main_exchange_account_id = api_client.PathParameter( - name="mainExchangeAccountId", - style=api_client.ParameterStyle.SIMPLE, - schema=MainExchangeAccountIdSchema, - required=True, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor200ResponseBody = ExchangeAccount -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, - 'default': _response_for_default, -} -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_off_exchange_collateral_accounts_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Find a specific collateral exchange account - """ - path_params = {} - for parameter in ( - request_path_main_exchange_account_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_main_exchange_account_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetOffExchangeCollateralAccounts(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_off_exchange_collateral_accounts(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_off_exchange_collateral_accounts_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_off_exchange_collateral_accounts_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/off_exchange_collateral_accounts_main_exchange_account_id/get.pyi b/fireblocks_client/paths/off_exchange_collateral_accounts_main_exchange_account_id/get.pyi deleted file mode 100644 index dcefabe5..00000000 --- a/fireblocks_client/paths/off_exchange_collateral_accounts_main_exchange_account_id/get.pyi +++ /dev/null @@ -1,191 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.exchange_account import ExchangeAccount -from fireblocks_client.model.error import Error - -# Path params -MainExchangeAccountIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'mainExchangeAccountId': typing.Union[MainExchangeAccountIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_main_exchange_account_id = api_client.PathParameter( - name="mainExchangeAccountId", - style=api_client.ParameterStyle.SIMPLE, - schema=MainExchangeAccountIdSchema, - required=True, -) -XRequestIDSchema = schemas.StrSchema -SchemaFor200ResponseBody = ExchangeAccount -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_off_exchange_collateral_accounts_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Find a specific collateral exchange account - """ - path_params = {} - for parameter in ( - request_path_main_exchange_account_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_main_exchange_account_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetOffExchangeCollateralAccounts(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_off_exchange_collateral_accounts(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_off_exchange_collateral_accounts_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_off_exchange_collateral_accounts_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/off_exchange_remove/__init__.py b/fireblocks_client/paths/off_exchange_remove/__init__.py deleted file mode 100644 index 9ac9b4f2..00000000 --- a/fireblocks_client/paths/off_exchange_remove/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.off_exchange_remove import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.OFF_EXCHANGE_REMOVE \ No newline at end of file diff --git a/fireblocks_client/paths/off_exchange_remove/post.py b/fireblocks_client/paths/off_exchange_remove/post.py deleted file mode 100644 index 5b2d1900..00000000 --- a/fireblocks_client/paths/off_exchange_remove/post.py +++ /dev/null @@ -1,166 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.remove_collateral_request_body import RemoveCollateralRequestBody -from fireblocks_client.model.error import Error -from fireblocks_client.model.create_transaction_response import CreateTransactionResponse - -from . import path - -# body param -SchemaForRequestBodyApplicationJson = RemoveCollateralRequestBody - - -request_body_remove_collateral_request_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, -) -SchemaFor200ResponseBody = CreateTransactionResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, - 'default': _response_for_default, -} -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _remove_off_exchange_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - """ - remove collateral - """ - used_path = path.value - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_remove_collateral_request_body.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class RemoveOffExchange(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def remove_off_exchange(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._remove_off_exchange_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._remove_off_exchange_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/off_exchange_remove/post.pyi b/fireblocks_client/paths/off_exchange_remove/post.pyi deleted file mode 100644 index 337458ea..00000000 --- a/fireblocks_client/paths/off_exchange_remove/post.pyi +++ /dev/null @@ -1,155 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.remove_collateral_request_body import RemoveCollateralRequestBody -from fireblocks_client.model.error import Error -from fireblocks_client.model.create_transaction_response import CreateTransactionResponse - -# body param -SchemaForRequestBodyApplicationJson = RemoveCollateralRequestBody - - -request_body_remove_collateral_request_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, -) -SchemaFor200ResponseBody = CreateTransactionResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _remove_off_exchange_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - """ - remove collateral - """ - used_path = path.value - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_remove_collateral_request_body.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class RemoveOffExchange(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def remove_off_exchange(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._remove_off_exchange_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._remove_off_exchange_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/off_exchange_settlements_trader/__init__.py b/fireblocks_client/paths/off_exchange_settlements_trader/__init__.py deleted file mode 100644 index 07bf77e6..00000000 --- a/fireblocks_client/paths/off_exchange_settlements_trader/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.off_exchange_settlements_trader import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.OFF_EXCHANGE_SETTLEMENTS_TRADER \ No newline at end of file diff --git a/fireblocks_client/paths/off_exchange_settlements_trader/post.py b/fireblocks_client/paths/off_exchange_settlements_trader/post.py deleted file mode 100644 index cd0b40cb..00000000 --- a/fireblocks_client/paths/off_exchange_settlements_trader/post.py +++ /dev/null @@ -1,166 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.settlement_request_body import SettlementRequestBody -from fireblocks_client.model.error import Error -from fireblocks_client.model.settlement_response import SettlementResponse - -from . import path - -# body param -SchemaForRequestBodyApplicationJson = SettlementRequestBody - - -request_body_settlement_request_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, -) -SchemaFor201ResponseBody = SettlementResponse - - -@dataclass -class ApiResponseFor201(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor201ResponseBody, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_201 = api_client.OpenApiResponse( - response_cls=ApiResponseFor201, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor201ResponseBody), - }, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '201': _response_for_201, - 'default': _response_for_default, -} -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _settle_off_exchange_trades_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - """ - create settlement for a trader - """ - used_path = path.value - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_settlement_request_body.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class SettleOffExchangeTrades(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def settle_off_exchange_trades(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._settle_off_exchange_trades_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._settle_off_exchange_trades_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/off_exchange_settlements_trader/post.pyi b/fireblocks_client/paths/off_exchange_settlements_trader/post.pyi deleted file mode 100644 index 698e58bf..00000000 --- a/fireblocks_client/paths/off_exchange_settlements_trader/post.pyi +++ /dev/null @@ -1,155 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.settlement_request_body import SettlementRequestBody -from fireblocks_client.model.error import Error -from fireblocks_client.model.settlement_response import SettlementResponse - -# body param -SchemaForRequestBodyApplicationJson = SettlementRequestBody - - -request_body_settlement_request_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, -) -SchemaFor201ResponseBody = SettlementResponse - - -@dataclass -class ApiResponseFor201(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor201ResponseBody, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_201 = api_client.OpenApiResponse( - response_cls=ApiResponseFor201, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor201ResponseBody), - }, -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _settle_off_exchange_trades_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - """ - create settlement for a trader - """ - used_path = path.value - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_settlement_request_body.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class SettleOffExchangeTrades(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def settle_off_exchange_trades(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._settle_off_exchange_trades_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._settle_off_exchange_trades_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/off_exchange_settlements_transactions/__init__.py b/fireblocks_client/paths/off_exchange_settlements_transactions/__init__.py deleted file mode 100644 index 35651318..00000000 --- a/fireblocks_client/paths/off_exchange_settlements_transactions/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.off_exchange_settlements_transactions import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.OFF_EXCHANGE_SETTLEMENTS_TRANSACTIONS \ No newline at end of file diff --git a/fireblocks_client/paths/off_exchange_settlements_transactions/get.py b/fireblocks_client/paths/off_exchange_settlements_transactions/get.py deleted file mode 100644 index 2e75d0a3..00000000 --- a/fireblocks_client/paths/off_exchange_settlements_transactions/get.py +++ /dev/null @@ -1,190 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error import Error -from fireblocks_client.model.settlement_response import SettlementResponse - -from . import path - -# Query params -MainExchangeAccountIdSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - 'mainExchangeAccountId': typing.Union[MainExchangeAccountIdSchema, str, ], - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_main_exchange_account_id = api_client.QueryParameter( - name="mainExchangeAccountId", - style=api_client.ParameterStyle.FORM, - schema=MainExchangeAccountIdSchema, - required=True, - explode=True, -) -SchemaFor200ResponseBody = SettlementResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, - 'default': _response_for_default, -} -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_off_exchange_settlement_transactions_oapg(self, params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - """ - get settlements transactions from exchange - """ - query_params = {} - if params and params.get("main_exchange_account_id"): - query_params["main_exchange_account_id"] = params.get("main_exchange_account_id") - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_main_exchange_account_id, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetOffExchangeSettlementTransactions(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_off_exchange_settlement_transactions(self , params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - return self._get_off_exchange_settlement_transactions_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - return self._get_off_exchange_settlement_transactions_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/off_exchange_settlements_transactions/get.pyi b/fireblocks_client/paths/off_exchange_settlements_transactions/get.pyi deleted file mode 100644 index 33d8264d..00000000 --- a/fireblocks_client/paths/off_exchange_settlements_transactions/get.pyi +++ /dev/null @@ -1,179 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error import Error -from fireblocks_client.model.settlement_response import SettlementResponse - -# Query params -MainExchangeAccountIdSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - 'mainExchangeAccountId': typing.Union[MainExchangeAccountIdSchema, str, ], - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_main_exchange_account_id = api_client.QueryParameter( - name="mainExchangeAccountId", - style=api_client.ParameterStyle.FORM, - schema=MainExchangeAccountIdSchema, - required=True, - explode=True, -) -SchemaFor200ResponseBody = SettlementResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_off_exchange_settlement_transactions_oapg(self, params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - """ - get settlements transactions from exchange - """ - query_params = {} - if params and params.get("main_exchange_account_id"): - query_params["main_exchange_account_id"] = params.get("main_exchange_account_id") - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_main_exchange_account_id, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetOffExchangeSettlementTransactions(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_off_exchange_settlement_transactions(self , params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - return self._get_off_exchange_settlement_transactions_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - return self._get_off_exchange_settlement_transactions_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/payments_payout/__init__.py b/fireblocks_client/paths/payments_payout/__init__.py deleted file mode 100644 index 3d7aae63..00000000 --- a/fireblocks_client/paths/payments_payout/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.payments_payout import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.PAYMENTS_PAYOUT \ No newline at end of file diff --git a/fireblocks_client/paths/payments_payout/post.py b/fireblocks_client/paths/payments_payout/post.py deleted file mode 100644 index cbd96379..00000000 --- a/fireblocks_client/paths/payments_payout/post.py +++ /dev/null @@ -1,186 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.payout_response import PayoutResponse -from fireblocks_client.model.error_response import ErrorResponse -from fireblocks_client.model.create_payout_request import CreatePayoutRequest - -from . import path - -# body param -SchemaForRequestBodyApplicationJson = CreatePayoutRequest - - -request_body_create_payout_request = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, -) -SchemaFor200ResponseBodyApplicationJson = PayoutResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ErrorResponse - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = ErrorResponse - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor5XXResponseBodyApplicationJson = ErrorResponse - - -@dataclass -class ApiResponseFor5XX(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor5XXResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_5XX = api_client.OpenApiResponse( - response_cls=ApiResponseFor5XX, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor5XXResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '5XX': _response_for_5XX, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _create_payout_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - """ - Create a payout instruction set - """ - used_path = path.value - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_create_payout_request.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class CreatePayout(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def create_payout(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._create_payout_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._create_payout_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/payments_payout/post.pyi b/fireblocks_client/paths/payments_payout/post.pyi deleted file mode 100644 index 9c0837b0..00000000 --- a/fireblocks_client/paths/payments_payout/post.pyi +++ /dev/null @@ -1,178 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.payout_response import PayoutResponse -from fireblocks_client.model.error_response import ErrorResponse -from fireblocks_client.model.create_payout_request import CreatePayoutRequest - -# body param -SchemaForRequestBodyApplicationJson = CreatePayoutRequest - - -request_body_create_payout_request = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, -) -SchemaFor200ResponseBodyApplicationJson = PayoutResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ErrorResponse - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = ErrorResponse - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor5XXResponseBodyApplicationJson = ErrorResponse - - -@dataclass -class ApiResponseFor5XX(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor5XXResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_5XX = api_client.OpenApiResponse( - response_cls=ApiResponseFor5XX, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor5XXResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _create_payout_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - """ - Create a payout instruction set - """ - used_path = path.value - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_create_payout_request.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class CreatePayout(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def create_payout(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._create_payout_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._create_payout_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/payments_payout_payout_id/__init__.py b/fireblocks_client/paths/payments_payout_payout_id/__init__.py deleted file mode 100644 index fb0467c4..00000000 --- a/fireblocks_client/paths/payments_payout_payout_id/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.payments_payout_payout_id import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.PAYMENTS_PAYOUT_PAYOUT_ID \ No newline at end of file diff --git a/fireblocks_client/paths/payments_payout_payout_id/get.py b/fireblocks_client/paths/payments_payout_payout_id/get.py deleted file mode 100644 index 8b3c7d61..00000000 --- a/fireblocks_client/paths/payments_payout_payout_id/get.py +++ /dev/null @@ -1,212 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.payout_response import PayoutResponse -from fireblocks_client.model.error_response import ErrorResponse - -from . import path - -# Path params -PayoutIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'payoutId': typing.Union[PayoutIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_payout_id = api_client.PathParameter( - name="payoutId", - style=api_client.ParameterStyle.SIMPLE, - schema=PayoutIdSchema, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = PayoutResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = ErrorResponse - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = ErrorResponse - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor5XXResponseBodyApplicationJson = ErrorResponse - - -@dataclass -class ApiResponseFor5XX(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor5XXResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_5XX = api_client.OpenApiResponse( - response_cls=ApiResponseFor5XX, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor5XXResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '404': _response_for_404, - '401': _response_for_401, - '5XX': _response_for_5XX, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_payout_by_id_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Get the status of a payout instruction set - """ - path_params = {} - for parameter in ( - request_path_payout_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_payout_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetPayoutById(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_payout_by_id(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_payout_by_id_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_payout_by_id_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/payments_payout_payout_id/get.pyi b/fireblocks_client/paths/payments_payout_payout_id/get.pyi deleted file mode 100644 index 9dc183b2..00000000 --- a/fireblocks_client/paths/payments_payout_payout_id/get.pyi +++ /dev/null @@ -1,204 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.payout_response import PayoutResponse -from fireblocks_client.model.error_response import ErrorResponse - -# Path params -PayoutIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'payoutId': typing.Union[PayoutIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_payout_id = api_client.PathParameter( - name="payoutId", - style=api_client.ParameterStyle.SIMPLE, - schema=PayoutIdSchema, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = PayoutResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = ErrorResponse - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = ErrorResponse - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor5XXResponseBodyApplicationJson = ErrorResponse - - -@dataclass -class ApiResponseFor5XX(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor5XXResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_5XX = api_client.OpenApiResponse( - response_cls=ApiResponseFor5XX, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor5XXResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_payout_by_id_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Get the status of a payout instruction set - """ - path_params = {} - for parameter in ( - request_path_payout_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_payout_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetPayoutById(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_payout_by_id(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_payout_by_id_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_payout_by_id_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/payments_payout_payout_id_actions_execute/__init__.py b/fireblocks_client/paths/payments_payout_payout_id_actions_execute/__init__.py deleted file mode 100644 index 5d44c2e9..00000000 --- a/fireblocks_client/paths/payments_payout_payout_id_actions_execute/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.payments_payout_payout_id_actions_execute import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.PAYMENTS_PAYOUT_PAYOUT_ID_ACTIONS_EXECUTE \ No newline at end of file diff --git a/fireblocks_client/paths/payments_payout_payout_id_actions_execute/post.py b/fireblocks_client/paths/payments_payout_payout_id_actions_execute/post.py deleted file mode 100644 index 5abb8e3e..00000000 --- a/fireblocks_client/paths/payments_payout_payout_id_actions_execute/post.py +++ /dev/null @@ -1,212 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error_response import ErrorResponse -from fireblocks_client.model.dispatch_payout_response import DispatchPayoutResponse - -from . import path - -# Path params -PayoutIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'payoutId': typing.Union[PayoutIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_payout_id = api_client.PathParameter( - name="payoutId", - style=api_client.ParameterStyle.SIMPLE, - schema=PayoutIdSchema, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = DispatchPayoutResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ErrorResponse - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = ErrorResponse - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor5XXResponseBodyApplicationJson = ErrorResponse - - -@dataclass -class ApiResponseFor5XX(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor5XXResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_5XX = api_client.OpenApiResponse( - response_cls=ApiResponseFor5XX, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor5XXResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '5XX': _response_for_5XX, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _execute_payout_action_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Execute a payout instruction set - """ - path_params = {} - for parameter in ( - request_path_payout_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_payout_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class ExecutePayoutAction(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def execute_payout_action(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._execute_payout_action_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._execute_payout_action_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/payments_payout_payout_id_actions_execute/post.pyi b/fireblocks_client/paths/payments_payout_payout_id_actions_execute/post.pyi deleted file mode 100644 index c4c5b965..00000000 --- a/fireblocks_client/paths/payments_payout_payout_id_actions_execute/post.pyi +++ /dev/null @@ -1,204 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error_response import ErrorResponse -from fireblocks_client.model.dispatch_payout_response import DispatchPayoutResponse - -# Path params -PayoutIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'payoutId': typing.Union[PayoutIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_payout_id = api_client.PathParameter( - name="payoutId", - style=api_client.ParameterStyle.SIMPLE, - schema=PayoutIdSchema, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = DispatchPayoutResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ErrorResponse - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = ErrorResponse - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor5XXResponseBodyApplicationJson = ErrorResponse - - -@dataclass -class ApiResponseFor5XX(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor5XXResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_5XX = api_client.OpenApiResponse( - response_cls=ApiResponseFor5XX, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor5XXResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _execute_payout_action_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Execute a payout instruction set - """ - path_params = {} - for parameter in ( - request_path_payout_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_payout_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class ExecutePayoutAction(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def execute_payout_action(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._execute_payout_action_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._execute_payout_action_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/payments_xb_settlements_configs/__init__.py b/fireblocks_client/paths/payments_xb_settlements_configs/__init__.py deleted file mode 100644 index 74db8484..00000000 --- a/fireblocks_client/paths/payments_xb_settlements_configs/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.payments_xb_settlements_configs import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.PAYMENTS_XBSETTLEMENTS_CONFIGS \ No newline at end of file diff --git a/fireblocks_client/paths/payments_xb_settlements_configs/get.py b/fireblocks_client/paths/payments_xb_settlements_configs/get.py deleted file mode 100644 index eb125c04..00000000 --- a/fireblocks_client/paths/payments_xb_settlements_configs/get.py +++ /dev/null @@ -1,146 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error_response import ErrorResponse -from fireblocks_client.model.xb_settlement_get_all_configs_response import XBSettlementGetAllConfigsResponse - -from . import path - -SchemaFor200ResponseBodyApplicationJson = XBSettlementGetAllConfigsResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = ErrorResponse - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor5XXResponseBodyApplicationJson = ErrorResponse - - -@dataclass -class ApiResponseFor5XX(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor5XXResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_5XX = api_client.OpenApiResponse( - response_cls=ApiResponseFor5XX, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor5XXResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '401': _response_for_401, - '5XX': _response_for_5XX, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_xb_settlement_configs_oapg(self, request_options: RequestOptions = None): - """ - Get all the cross-border settlement configurations - """ - used_path = path.value - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetXbSettlementConfigs(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_xb_settlement_configs(self , request_options: RequestOptions = None): - return self._get_xb_settlement_configs_oapg(request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , request_options: RequestOptions = None): - return self._get_xb_settlement_configs_oapg(request_options) - - diff --git a/fireblocks_client/paths/payments_xb_settlements_configs/get.pyi b/fireblocks_client/paths/payments_xb_settlements_configs/get.pyi deleted file mode 100644 index 3f89390a..00000000 --- a/fireblocks_client/paths/payments_xb_settlements_configs/get.pyi +++ /dev/null @@ -1,139 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error_response import ErrorResponse -from fireblocks_client.model.xb_settlement_get_all_configs_response import XBSettlementGetAllConfigsResponse - -SchemaFor200ResponseBodyApplicationJson = XBSettlementGetAllConfigsResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = ErrorResponse - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor5XXResponseBodyApplicationJson = ErrorResponse - - -@dataclass -class ApiResponseFor5XX(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor5XXResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_5XX = api_client.OpenApiResponse( - response_cls=ApiResponseFor5XX, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor5XXResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_xb_settlement_configs_oapg(self, request_options: RequestOptions = None): - """ - Get all the cross-border settlement configurations - """ - used_path = path.value - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetXbSettlementConfigs(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_xb_settlement_configs(self , request_options: RequestOptions = None): - return self._get_xb_settlement_configs_oapg(request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , request_options: RequestOptions = None): - return self._get_xb_settlement_configs_oapg(request_options) - - diff --git a/fireblocks_client/paths/payments_xb_settlements_configs/post.py b/fireblocks_client/paths/payments_xb_settlements_configs/post.py deleted file mode 100644 index d225338e..00000000 --- a/fireblocks_client/paths/payments_xb_settlements_configs/post.py +++ /dev/null @@ -1,186 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error_response import ErrorResponse -from fireblocks_client.model.xb_settlement_config_model import XBSettlementConfigModel -from fireblocks_client.model.xb_settlement_config_creation_request_body import XBSettlementConfigCreationRequestBody - -from . import path - -# body param -SchemaForRequestBodyApplicationJson = XBSettlementConfigCreationRequestBody - - -request_body_xb_settlement_config_creation_request_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, -) -SchemaFor200ResponseBodyApplicationJson = XBSettlementConfigModel - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ErrorResponse - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = ErrorResponse - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor5XXResponseBodyApplicationJson = ErrorResponse - - -@dataclass -class ApiResponseFor5XX(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor5XXResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_5XX = api_client.OpenApiResponse( - response_cls=ApiResponseFor5XX, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor5XXResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '5XX': _response_for_5XX, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _create_xb_settlement_config_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - """ - Create a new cross-border settlement configuration - """ - used_path = path.value - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_xb_settlement_config_creation_request_body.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class CreateXbSettlementConfig(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def create_xb_settlement_config(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._create_xb_settlement_config_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._create_xb_settlement_config_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/payments_xb_settlements_configs/post.pyi b/fireblocks_client/paths/payments_xb_settlements_configs/post.pyi deleted file mode 100644 index c0050395..00000000 --- a/fireblocks_client/paths/payments_xb_settlements_configs/post.pyi +++ /dev/null @@ -1,178 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error_response import ErrorResponse -from fireblocks_client.model.xb_settlement_config_model import XBSettlementConfigModel -from fireblocks_client.model.xb_settlement_config_creation_request_body import XBSettlementConfigCreationRequestBody - -# body param -SchemaForRequestBodyApplicationJson = XBSettlementConfigCreationRequestBody - - -request_body_xb_settlement_config_creation_request_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, -) -SchemaFor200ResponseBodyApplicationJson = XBSettlementConfigModel - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ErrorResponse - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = ErrorResponse - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor5XXResponseBodyApplicationJson = ErrorResponse - - -@dataclass -class ApiResponseFor5XX(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor5XXResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_5XX = api_client.OpenApiResponse( - response_cls=ApiResponseFor5XX, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor5XXResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _create_xb_settlement_config_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - """ - Create a new cross-border settlement configuration - """ - used_path = path.value - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_xb_settlement_config_creation_request_body.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class CreateXbSettlementConfig(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def create_xb_settlement_config(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._create_xb_settlement_config_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._create_xb_settlement_config_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/payments_xb_settlements_configs_config_id/__init__.py b/fireblocks_client/paths/payments_xb_settlements_configs_config_id/__init__.py deleted file mode 100644 index 7b7d79cd..00000000 --- a/fireblocks_client/paths/payments_xb_settlements_configs_config_id/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.payments_xb_settlements_configs_config_id import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.PAYMENTS_XBSETTLEMENTS_CONFIGS_CONFIG_ID \ No newline at end of file diff --git a/fireblocks_client/paths/payments_xb_settlements_configs_config_id/delete.py b/fireblocks_client/paths/payments_xb_settlements_configs_config_id/delete.py deleted file mode 100644 index c027e717..00000000 --- a/fireblocks_client/paths/payments_xb_settlements_configs_config_id/delete.py +++ /dev/null @@ -1,212 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error_response import ErrorResponse -from fireblocks_client.model.xb_settlement_config_model import XBSettlementConfigModel - -from . import path - -# Path params -ConfigIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'configId': typing.Union[ConfigIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_config_id = api_client.PathParameter( - name="configId", - style=api_client.ParameterStyle.SIMPLE, - schema=ConfigIdSchema, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = XBSettlementConfigModel - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = ErrorResponse - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = ErrorResponse - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor5XXResponseBodyApplicationJson = ErrorResponse - - -@dataclass -class ApiResponseFor5XX(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor5XXResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_5XX = api_client.OpenApiResponse( - response_cls=ApiResponseFor5XX, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor5XXResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '404': _response_for_404, - '401': _response_for_401, - '5XX': _response_for_5XX, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _delete_xb_settlement_config_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Delete a cross-border settlement configuration - """ - path_params = {} - for parameter in ( - request_path_config_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_config_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='delete'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class DeleteXbSettlementConfig(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def delete_xb_settlement_config(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._delete_xb_settlement_config_oapg(params, request_options) - - -class ApiFordelete(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def delete(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._delete_xb_settlement_config_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/payments_xb_settlements_configs_config_id/delete.pyi b/fireblocks_client/paths/payments_xb_settlements_configs_config_id/delete.pyi deleted file mode 100644 index 74a4356b..00000000 --- a/fireblocks_client/paths/payments_xb_settlements_configs_config_id/delete.pyi +++ /dev/null @@ -1,204 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error_response import ErrorResponse -from fireblocks_client.model.xb_settlement_config_model import XBSettlementConfigModel - -# Path params -ConfigIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'configId': typing.Union[ConfigIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_config_id = api_client.PathParameter( - name="configId", - style=api_client.ParameterStyle.SIMPLE, - schema=ConfigIdSchema, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = XBSettlementConfigModel - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = ErrorResponse - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = ErrorResponse - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor5XXResponseBodyApplicationJson = ErrorResponse - - -@dataclass -class ApiResponseFor5XX(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor5XXResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_5XX = api_client.OpenApiResponse( - response_cls=ApiResponseFor5XX, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor5XXResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _delete_xb_settlement_config_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Delete a cross-border settlement configuration - """ - path_params = {} - for parameter in ( - request_path_config_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_config_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='delete'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class DeleteXbSettlementConfig(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def delete_xb_settlement_config(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._delete_xb_settlement_config_oapg(params, request_options) - - -class ApiFordelete(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def delete(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._delete_xb_settlement_config_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/payments_xb_settlements_configs_config_id/get.py b/fireblocks_client/paths/payments_xb_settlements_configs_config_id/get.py deleted file mode 100644 index 07d145b9..00000000 --- a/fireblocks_client/paths/payments_xb_settlements_configs_config_id/get.py +++ /dev/null @@ -1,212 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error_response import ErrorResponse -from fireblocks_client.model.xb_settlement_config_model import XBSettlementConfigModel - -from . import path - -# Path params -ConfigIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'configId': typing.Union[ConfigIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_config_id = api_client.PathParameter( - name="configId", - style=api_client.ParameterStyle.SIMPLE, - schema=ConfigIdSchema, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = XBSettlementConfigModel - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = ErrorResponse - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = ErrorResponse - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor5XXResponseBodyApplicationJson = ErrorResponse - - -@dataclass -class ApiResponseFor5XX(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor5XXResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_5XX = api_client.OpenApiResponse( - response_cls=ApiResponseFor5XX, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor5XXResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '404': _response_for_404, - '401': _response_for_401, - '5XX': _response_for_5XX, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_xb_settlement_config_by_id_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Get a specific cross-border settlement configuration - """ - path_params = {} - for parameter in ( - request_path_config_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_config_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetXbSettlementConfigById(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_xb_settlement_config_by_id(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_xb_settlement_config_by_id_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_xb_settlement_config_by_id_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/payments_xb_settlements_configs_config_id/get.pyi b/fireblocks_client/paths/payments_xb_settlements_configs_config_id/get.pyi deleted file mode 100644 index b7825043..00000000 --- a/fireblocks_client/paths/payments_xb_settlements_configs_config_id/get.pyi +++ /dev/null @@ -1,204 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error_response import ErrorResponse -from fireblocks_client.model.xb_settlement_config_model import XBSettlementConfigModel - -# Path params -ConfigIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'configId': typing.Union[ConfigIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_config_id = api_client.PathParameter( - name="configId", - style=api_client.ParameterStyle.SIMPLE, - schema=ConfigIdSchema, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = XBSettlementConfigModel - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = ErrorResponse - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = ErrorResponse - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor5XXResponseBodyApplicationJson = ErrorResponse - - -@dataclass -class ApiResponseFor5XX(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor5XXResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_5XX = api_client.OpenApiResponse( - response_cls=ApiResponseFor5XX, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor5XXResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_xb_settlement_config_by_id_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Get a specific cross-border settlement configuration - """ - path_params = {} - for parameter in ( - request_path_config_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_config_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetXbSettlementConfigById(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_xb_settlement_config_by_id(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_xb_settlement_config_by_id_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_xb_settlement_config_by_id_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/payments_xb_settlements_configs_config_id/put.py b/fireblocks_client/paths/payments_xb_settlements_configs_config_id/put.py deleted file mode 100644 index 251a31bb..00000000 --- a/fireblocks_client/paths/payments_xb_settlements_configs_config_id/put.py +++ /dev/null @@ -1,252 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error_response import ErrorResponse -from fireblocks_client.model.xb_settlement_config_model import XBSettlementConfigModel -from fireblocks_client.model.xb_settlement_config_edit_request_body import XBSettlementConfigEditRequestBody - -from . import path - -# Path params -ConfigIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'configId': typing.Union[ConfigIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_config_id = api_client.PathParameter( - name="configId", - style=api_client.ParameterStyle.SIMPLE, - schema=ConfigIdSchema, - required=True, -) -# body param -SchemaForRequestBodyApplicationJson = XBSettlementConfigEditRequestBody - - -request_body_xb_settlement_config_edit_request_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, -) -SchemaFor200ResponseBodyApplicationJson = XBSettlementConfigModel - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = ErrorResponse - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ErrorResponse - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = ErrorResponse - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor5XXResponseBodyApplicationJson = ErrorResponse - - -@dataclass -class ApiResponseFor5XX(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor5XXResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_5XX = api_client.OpenApiResponse( - response_cls=ApiResponseFor5XX, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor5XXResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '404': _response_for_404, - '400': _response_for_400, - '401': _response_for_401, - '5XX': _response_for_5XX, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _update_xb_settlement_config_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - """ - Edit a cross-border settlement configuration - """ - path_params = {} - for parameter in ( - request_path_config_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_config_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_xb_settlement_config_edit_request_body.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='put'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class UpdateXbSettlementConfig(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def update_xb_settlement_config(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._update_xb_settlement_config_oapg(params, request_options) - - -class ApiForput(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def put(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._update_xb_settlement_config_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/payments_xb_settlements_configs_config_id/put.pyi b/fireblocks_client/paths/payments_xb_settlements_configs_config_id/put.pyi deleted file mode 100644 index a4a2114e..00000000 --- a/fireblocks_client/paths/payments_xb_settlements_configs_config_id/put.pyi +++ /dev/null @@ -1,243 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error_response import ErrorResponse -from fireblocks_client.model.xb_settlement_config_model import XBSettlementConfigModel -from fireblocks_client.model.xb_settlement_config_edit_request_body import XBSettlementConfigEditRequestBody - -# Path params -ConfigIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'configId': typing.Union[ConfigIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_config_id = api_client.PathParameter( - name="configId", - style=api_client.ParameterStyle.SIMPLE, - schema=ConfigIdSchema, - required=True, -) -# body param -SchemaForRequestBodyApplicationJson = XBSettlementConfigEditRequestBody - - -request_body_xb_settlement_config_edit_request_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, -) -SchemaFor200ResponseBodyApplicationJson = XBSettlementConfigModel - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = ErrorResponse - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ErrorResponse - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = ErrorResponse - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor5XXResponseBodyApplicationJson = ErrorResponse - - -@dataclass -class ApiResponseFor5XX(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor5XXResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_5XX = api_client.OpenApiResponse( - response_cls=ApiResponseFor5XX, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor5XXResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _update_xb_settlement_config_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - """ - Edit a cross-border settlement configuration - """ - path_params = {} - for parameter in ( - request_path_config_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_config_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_xb_settlement_config_edit_request_body.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='put'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class UpdateXbSettlementConfig(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def update_xb_settlement_config(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._update_xb_settlement_config_oapg(params, request_options) - - -class ApiForput(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def put(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._update_xb_settlement_config_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/payments_xb_settlements_flows/__init__.py b/fireblocks_client/paths/payments_xb_settlements_flows/__init__.py deleted file mode 100644 index db90b5f4..00000000 --- a/fireblocks_client/paths/payments_xb_settlements_flows/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.payments_xb_settlements_flows import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.PAYMENTS_XBSETTLEMENTS_FLOWS \ No newline at end of file diff --git a/fireblocks_client/paths/payments_xb_settlements_flows/post.py b/fireblocks_client/paths/payments_xb_settlements_flows/post.py deleted file mode 100644 index 3e341eec..00000000 --- a/fireblocks_client/paths/payments_xb_settlements_flows/post.py +++ /dev/null @@ -1,186 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.xb_settlement_flow_preview_model import XBSettlementFlowPreviewModel -from fireblocks_client.model.error_response import ErrorResponse -from fireblocks_client.model.xb_settlement_create_flow_request_body import XBSettlementCreateFlowRequestBody - -from . import path - -# body param -SchemaForRequestBodyApplicationJson = XBSettlementCreateFlowRequestBody - - -request_body_xb_settlement_create_flow_request_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, -) -SchemaFor200ResponseBodyApplicationJson = XBSettlementFlowPreviewModel - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ErrorResponse - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = ErrorResponse - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor5XXResponseBodyApplicationJson = ErrorResponse - - -@dataclass -class ApiResponseFor5XX(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor5XXResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_5XX = api_client.OpenApiResponse( - response_cls=ApiResponseFor5XX, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor5XXResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '5XX': _response_for_5XX, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _create_xb_settlement_flow_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - """ - Create a new cross-border settlement flow - """ - used_path = path.value - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_xb_settlement_create_flow_request_body.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class CreateXbSettlementFlow(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def create_xb_settlement_flow(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._create_xb_settlement_flow_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._create_xb_settlement_flow_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/payments_xb_settlements_flows/post.pyi b/fireblocks_client/paths/payments_xb_settlements_flows/post.pyi deleted file mode 100644 index 62893a24..00000000 --- a/fireblocks_client/paths/payments_xb_settlements_flows/post.pyi +++ /dev/null @@ -1,178 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.xb_settlement_flow_preview_model import XBSettlementFlowPreviewModel -from fireblocks_client.model.error_response import ErrorResponse -from fireblocks_client.model.xb_settlement_create_flow_request_body import XBSettlementCreateFlowRequestBody - -# body param -SchemaForRequestBodyApplicationJson = XBSettlementCreateFlowRequestBody - - -request_body_xb_settlement_create_flow_request_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, -) -SchemaFor200ResponseBodyApplicationJson = XBSettlementFlowPreviewModel - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ErrorResponse - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = ErrorResponse - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor5XXResponseBodyApplicationJson = ErrorResponse - - -@dataclass -class ApiResponseFor5XX(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor5XXResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_5XX = api_client.OpenApiResponse( - response_cls=ApiResponseFor5XX, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor5XXResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _create_xb_settlement_flow_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - """ - Create a new cross-border settlement flow - """ - used_path = path.value - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_xb_settlement_create_flow_request_body.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class CreateXbSettlementFlow(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def create_xb_settlement_flow(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._create_xb_settlement_flow_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._create_xb_settlement_flow_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/payments_xb_settlements_flows_flow_id/__init__.py b/fireblocks_client/paths/payments_xb_settlements_flows_flow_id/__init__.py deleted file mode 100644 index e5108d21..00000000 --- a/fireblocks_client/paths/payments_xb_settlements_flows_flow_id/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.payments_xb_settlements_flows_flow_id import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.PAYMENTS_XBSETTLEMENTS_FLOWS_FLOW_ID \ No newline at end of file diff --git a/fireblocks_client/paths/payments_xb_settlements_flows_flow_id/get.py b/fireblocks_client/paths/payments_xb_settlements_flows_flow_id/get.py deleted file mode 100644 index 5281c4e6..00000000 --- a/fireblocks_client/paths/payments_xb_settlements_flows_flow_id/get.py +++ /dev/null @@ -1,212 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.xb_settlement_get_flow_response import XBSettlementGetFlowResponse -from fireblocks_client.model.error_response import ErrorResponse - -from . import path - -# Path params -FlowIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'flowId': typing.Union[FlowIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_flow_id = api_client.PathParameter( - name="flowId", - style=api_client.ParameterStyle.SIMPLE, - schema=FlowIdSchema, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = XBSettlementGetFlowResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = ErrorResponse - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = ErrorResponse - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor5XXResponseBodyApplicationJson = ErrorResponse - - -@dataclass -class ApiResponseFor5XX(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor5XXResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_5XX = api_client.OpenApiResponse( - response_cls=ApiResponseFor5XX, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor5XXResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '404': _response_for_404, - '401': _response_for_401, - '5XX': _response_for_5XX, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_xb_settlement_flow_by_id_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Get specific cross-border settlement flow details - """ - path_params = {} - for parameter in ( - request_path_flow_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_flow_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetXbSettlementFlowById(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_xb_settlement_flow_by_id(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_xb_settlement_flow_by_id_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_xb_settlement_flow_by_id_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/payments_xb_settlements_flows_flow_id/get.pyi b/fireblocks_client/paths/payments_xb_settlements_flows_flow_id/get.pyi deleted file mode 100644 index 22fa29a6..00000000 --- a/fireblocks_client/paths/payments_xb_settlements_flows_flow_id/get.pyi +++ /dev/null @@ -1,204 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.xb_settlement_get_flow_response import XBSettlementGetFlowResponse -from fireblocks_client.model.error_response import ErrorResponse - -# Path params -FlowIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'flowId': typing.Union[FlowIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_flow_id = api_client.PathParameter( - name="flowId", - style=api_client.ParameterStyle.SIMPLE, - schema=FlowIdSchema, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = XBSettlementGetFlowResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = ErrorResponse - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = ErrorResponse - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor5XXResponseBodyApplicationJson = ErrorResponse - - -@dataclass -class ApiResponseFor5XX(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor5XXResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_5XX = api_client.OpenApiResponse( - response_cls=ApiResponseFor5XX, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor5XXResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_xb_settlement_flow_by_id_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Get specific cross-border settlement flow details - """ - path_params = {} - for parameter in ( - request_path_flow_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_flow_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetXbSettlementFlowById(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_xb_settlement_flow_by_id(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_xb_settlement_flow_by_id_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_xb_settlement_flow_by_id_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/payments_xb_settlements_flows_flow_id_actions_execute/__init__.py b/fireblocks_client/paths/payments_xb_settlements_flows_flow_id_actions_execute/__init__.py deleted file mode 100644 index 3da5e8c4..00000000 --- a/fireblocks_client/paths/payments_xb_settlements_flows_flow_id_actions_execute/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.payments_xb_settlements_flows_flow_id_actions_execute import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.PAYMENTS_XBSETTLEMENTS_FLOWS_FLOW_ID_ACTIONS_EXECUTE \ No newline at end of file diff --git a/fireblocks_client/paths/payments_xb_settlements_flows_flow_id_actions_execute/post.py b/fireblocks_client/paths/payments_xb_settlements_flows_flow_id_actions_execute/post.py deleted file mode 100644 index 02aaedf5..00000000 --- a/fireblocks_client/paths/payments_xb_settlements_flows_flow_id_actions_execute/post.py +++ /dev/null @@ -1,252 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.xb_settlement_flow_execution_request_body import XBSettlementFlowExecutionRequestBody -from fireblocks_client.model.error_response import ErrorResponse -from fireblocks_client.model.xb_settlement_flow_execution_model import XBSettlementFlowExecutionModel - -from . import path - -# Path params -FlowIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'flowId': typing.Union[FlowIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_flow_id = api_client.PathParameter( - name="flowId", - style=api_client.ParameterStyle.SIMPLE, - schema=FlowIdSchema, - required=True, -) -# body param -SchemaForRequestBodyApplicationJson = XBSettlementFlowExecutionRequestBody - - -request_body_xb_settlement_flow_execution_request_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, -) -SchemaFor200ResponseBodyApplicationJson = XBSettlementFlowExecutionModel - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ErrorResponse - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = ErrorResponse - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = ErrorResponse - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor5XXResponseBodyApplicationJson = ErrorResponse - - -@dataclass -class ApiResponseFor5XX(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor5XXResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_5XX = api_client.OpenApiResponse( - response_cls=ApiResponseFor5XX, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor5XXResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '404': _response_for_404, - '401': _response_for_401, - '5XX': _response_for_5XX, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _execute_xb_settlement_flow_action_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - """ - Execute cross-border settlement flow - """ - path_params = {} - for parameter in ( - request_path_flow_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_flow_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_xb_settlement_flow_execution_request_body.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class ExecuteXbSettlementFlowAction(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def execute_xb_settlement_flow_action(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._execute_xb_settlement_flow_action_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._execute_xb_settlement_flow_action_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/payments_xb_settlements_flows_flow_id_actions_execute/post.pyi b/fireblocks_client/paths/payments_xb_settlements_flows_flow_id_actions_execute/post.pyi deleted file mode 100644 index 7f6942da..00000000 --- a/fireblocks_client/paths/payments_xb_settlements_flows_flow_id_actions_execute/post.pyi +++ /dev/null @@ -1,243 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.xb_settlement_flow_execution_request_body import XBSettlementFlowExecutionRequestBody -from fireblocks_client.model.error_response import ErrorResponse -from fireblocks_client.model.xb_settlement_flow_execution_model import XBSettlementFlowExecutionModel - -# Path params -FlowIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'flowId': typing.Union[FlowIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_flow_id = api_client.PathParameter( - name="flowId", - style=api_client.ParameterStyle.SIMPLE, - schema=FlowIdSchema, - required=True, -) -# body param -SchemaForRequestBodyApplicationJson = XBSettlementFlowExecutionRequestBody - - -request_body_xb_settlement_flow_execution_request_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, -) -SchemaFor200ResponseBodyApplicationJson = XBSettlementFlowExecutionModel - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = ErrorResponse - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = ErrorResponse - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = ErrorResponse - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor5XXResponseBodyApplicationJson = ErrorResponse - - -@dataclass -class ApiResponseFor5XX(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor5XXResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_5XX = api_client.OpenApiResponse( - response_cls=ApiResponseFor5XX, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor5XXResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _execute_xb_settlement_flow_action_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - """ - Execute cross-border settlement flow - """ - path_params = {} - for parameter in ( - request_path_flow_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_flow_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_xb_settlement_flow_execution_request_body.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class ExecuteXbSettlementFlowAction(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def execute_xb_settlement_flow_action(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._execute_xb_settlement_flow_action_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._execute_xb_settlement_flow_action_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/screeening_travel_rule_vasp_update/__init__.py b/fireblocks_client/paths/screeening_travel_rule_vasp_update/__init__.py deleted file mode 100644 index 29549931..00000000 --- a/fireblocks_client/paths/screeening_travel_rule_vasp_update/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.screeening_travel_rule_vasp_update import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.SCREEENING_TRAVEL_RULE_VASP_UPDATE \ No newline at end of file diff --git a/fireblocks_client/paths/screeening_travel_rule_vasp_update/put.py b/fireblocks_client/paths/screeening_travel_rule_vasp_update/put.py deleted file mode 100644 index e8f380c7..00000000 --- a/fireblocks_client/paths/screeening_travel_rule_vasp_update/put.py +++ /dev/null @@ -1,151 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.travel_rule_update_vasp_details import TravelRuleUpdateVASPDetails - -from . import path - -# body param -SchemaForRequestBodyApplicationJson = TravelRuleUpdateVASPDetails - - -request_body_travel_rule_update_vasp_details = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = TravelRuleUpdateVASPDetails - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: schemas.Unset = schemas.unset - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, -) - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: schemas.Unset = schemas.unset - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '500': _response_for_500, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _travel_rule_api_controller_update_vasp_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - """ - Add jsonDidKey to VASP details - """ - used_path = path.value - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_travel_rule_update_vasp_details.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='put'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class TravelRuleApiControllerUpdateVasp(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def travel_rule_api_controller_update_vasp(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._travel_rule_api_controller_update_vasp_oapg(params, request_options) - - -class ApiForput(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def put(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._travel_rule_api_controller_update_vasp_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/screeening_travel_rule_vasp_update/put.pyi b/fireblocks_client/paths/screeening_travel_rule_vasp_update/put.pyi deleted file mode 100644 index bf2eda3e..00000000 --- a/fireblocks_client/paths/screeening_travel_rule_vasp_update/put.pyi +++ /dev/null @@ -1,144 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.travel_rule_update_vasp_details import TravelRuleUpdateVASPDetails - -# body param -SchemaForRequestBodyApplicationJson = TravelRuleUpdateVASPDetails - - -request_body_travel_rule_update_vasp_details = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = TravelRuleUpdateVASPDetails - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: schemas.Unset = schemas.unset - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, -) - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: schemas.Unset = schemas.unset - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _travel_rule_api_controller_update_vasp_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - """ - Add jsonDidKey to VASP details - """ - used_path = path.value - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_travel_rule_update_vasp_details.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='put'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class TravelRuleApiControllerUpdateVasp(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def travel_rule_api_controller_update_vasp(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._travel_rule_api_controller_update_vasp_oapg(params, request_options) - - -class ApiForput(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def put(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._travel_rule_api_controller_update_vasp_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/screening_travel_rule_transaction_validate/__init__.py b/fireblocks_client/paths/screening_travel_rule_transaction_validate/__init__.py deleted file mode 100644 index 964ce3c2..00000000 --- a/fireblocks_client/paths/screening_travel_rule_transaction_validate/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.screening_travel_rule_transaction_validate import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.SCREENING_TRAVEL_RULE_TRANSACTION_VALIDATE \ No newline at end of file diff --git a/fireblocks_client/paths/screening_travel_rule_transaction_validate/post.py b/fireblocks_client/paths/screening_travel_rule_transaction_validate/post.py deleted file mode 100644 index 7227e145..00000000 --- a/fireblocks_client/paths/screening_travel_rule_transaction_validate/post.py +++ /dev/null @@ -1,152 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.travel_rule_validate_transaction_response import TravelRuleValidateTransactionResponse -from fireblocks_client.model.travel_rule_validate_transaction_request import TravelRuleValidateTransactionRequest - -from . import path - -# body param -SchemaForRequestBodyApplicationJson = TravelRuleValidateTransactionRequest - - -request_body_travel_rule_validate_transaction_request = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = TravelRuleValidateTransactionResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: schemas.Unset = schemas.unset - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, -) - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: schemas.Unset = schemas.unset - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '500': _response_for_500, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _validate_travel_rule_transaction_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - """ - Validate Travel Rule Transaction - """ - used_path = path.value - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_travel_rule_validate_transaction_request.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class ValidateTravelRuleTransaction(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def validate_travel_rule_transaction(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._validate_travel_rule_transaction_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._validate_travel_rule_transaction_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/screening_travel_rule_transaction_validate/post.pyi b/fireblocks_client/paths/screening_travel_rule_transaction_validate/post.pyi deleted file mode 100644 index 235640f8..00000000 --- a/fireblocks_client/paths/screening_travel_rule_transaction_validate/post.pyi +++ /dev/null @@ -1,145 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.travel_rule_validate_transaction_response import TravelRuleValidateTransactionResponse -from fireblocks_client.model.travel_rule_validate_transaction_request import TravelRuleValidateTransactionRequest - -# body param -SchemaForRequestBodyApplicationJson = TravelRuleValidateTransactionRequest - - -request_body_travel_rule_validate_transaction_request = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = TravelRuleValidateTransactionResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: schemas.Unset = schemas.unset - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, -) - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: schemas.Unset = schemas.unset - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _validate_travel_rule_transaction_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - """ - Validate Travel Rule Transaction - """ - used_path = path.value - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_travel_rule_validate_transaction_request.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class ValidateTravelRuleTransaction(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def validate_travel_rule_transaction(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._validate_travel_rule_transaction_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._validate_travel_rule_transaction_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/screening_travel_rule_transaction_validate_full/__init__.py b/fireblocks_client/paths/screening_travel_rule_transaction_validate_full/__init__.py deleted file mode 100644 index f5dcd6be..00000000 --- a/fireblocks_client/paths/screening_travel_rule_transaction_validate_full/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.screening_travel_rule_transaction_validate_full import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.SCREENING_TRAVEL_RULE_TRANSACTION_VALIDATE_FULL \ No newline at end of file diff --git a/fireblocks_client/paths/screening_travel_rule_transaction_validate_full/post.py b/fireblocks_client/paths/screening_travel_rule_transaction_validate_full/post.py deleted file mode 100644 index 794a9a89..00000000 --- a/fireblocks_client/paths/screening_travel_rule_transaction_validate_full/post.py +++ /dev/null @@ -1,152 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.travel_rule_validate_full_transaction_request import TravelRuleValidateFullTransactionRequest -from fireblocks_client.model.travel_rule_validate_transaction_response import TravelRuleValidateTransactionResponse - -from . import path - -# body param -SchemaForRequestBodyApplicationJson = TravelRuleValidateFullTransactionRequest - - -request_body_travel_rule_validate_full_transaction_request = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = TravelRuleValidateTransactionResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: schemas.Unset = schemas.unset - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, -) - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: schemas.Unset = schemas.unset - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '500': _response_for_500, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _validate_full_travel_rule_transaction_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - """ - Validate Full Travel Rule Transaction - """ - used_path = path.value - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_travel_rule_validate_full_transaction_request.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class ValidateFullTravelRuleTransaction(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def validate_full_travel_rule_transaction(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._validate_full_travel_rule_transaction_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._validate_full_travel_rule_transaction_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/screening_travel_rule_transaction_validate_full/post.pyi b/fireblocks_client/paths/screening_travel_rule_transaction_validate_full/post.pyi deleted file mode 100644 index e569dfa2..00000000 --- a/fireblocks_client/paths/screening_travel_rule_transaction_validate_full/post.pyi +++ /dev/null @@ -1,145 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.travel_rule_validate_full_transaction_request import TravelRuleValidateFullTransactionRequest -from fireblocks_client.model.travel_rule_validate_transaction_response import TravelRuleValidateTransactionResponse - -# body param -SchemaForRequestBodyApplicationJson = TravelRuleValidateFullTransactionRequest - - -request_body_travel_rule_validate_full_transaction_request = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = TravelRuleValidateTransactionResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: schemas.Unset = schemas.unset - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, -) - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: schemas.Unset = schemas.unset - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _validate_full_travel_rule_transaction_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - """ - Validate Full Travel Rule Transaction - """ - used_path = path.value - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_travel_rule_validate_full_transaction_request.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class ValidateFullTravelRuleTransaction(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def validate_full_travel_rule_transaction(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._validate_full_travel_rule_transaction_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._validate_full_travel_rule_transaction_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/screening_travel_rule_vasp/__init__.py b/fireblocks_client/paths/screening_travel_rule_vasp/__init__.py deleted file mode 100644 index 6e31240e..00000000 --- a/fireblocks_client/paths/screening_travel_rule_vasp/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.screening_travel_rule_vasp import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.SCREENING_TRAVEL_RULE_VASP \ No newline at end of file diff --git a/fireblocks_client/paths/screening_travel_rule_vasp/get.py b/fireblocks_client/paths/screening_travel_rule_vasp/get.py deleted file mode 100644 index 742d2283..00000000 --- a/fireblocks_client/paths/screening_travel_rule_vasp/get.py +++ /dev/null @@ -1,181 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.travel_rule_get_all_vasps_response import TravelRuleGetAllVASPsResponse - -from . import path - -# Query params -OrderSchema = schemas.StrSchema -PerPageSchema = schemas.NumberSchema -PageSchema = schemas.NumberSchema -FieldsSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'order': typing.Union[OrderSchema, str, ], - 'per_page': typing.Union[PerPageSchema, decimal.Decimal, int, float, ], - 'page': typing.Union[PageSchema, decimal.Decimal, int, float, ], - 'fields': typing.Union[FieldsSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_order = api_client.QueryParameter( - name="order", - style=api_client.ParameterStyle.FORM, - schema=OrderSchema, - explode=True, -) -request_query_per_page = api_client.QueryParameter( - name="per_page", - style=api_client.ParameterStyle.FORM, - schema=PerPageSchema, - explode=True, -) -request_query_page = api_client.QueryParameter( - name="page", - style=api_client.ParameterStyle.FORM, - schema=PageSchema, - explode=True, -) -request_query_fields = api_client.QueryParameter( - name="fields", - style=api_client.ParameterStyle.FORM, - schema=FieldsSchema, - explode=True, -) -SchemaFor200ResponseBodyApplicationJson = TravelRuleGetAllVASPsResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_vasps_oapg(self, params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - """ - Get All VASPs - """ - query_params = {} - if params and params.get("order"): - query_params["order"] = params.get("order") - if params and params.get("per_page"): - query_params["per_page"] = params.get("per_page") - if params and params.get("page"): - query_params["page"] = params.get("page") - if params and params.get("fields"): - query_params["fields"] = params.get("fields") - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_order, - request_query_per_page, - request_query_page, - request_query_fields, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetVasps(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_vasps(self , params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - return self._get_vasps_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - return self._get_vasps_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/screening_travel_rule_vasp/get.pyi b/fireblocks_client/paths/screening_travel_rule_vasp/get.pyi deleted file mode 100644 index 96cb19da..00000000 --- a/fireblocks_client/paths/screening_travel_rule_vasp/get.pyi +++ /dev/null @@ -1,176 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.travel_rule_get_all_vasps_response import TravelRuleGetAllVASPsResponse - -# Query params -OrderSchema = schemas.StrSchema -PerPageSchema = schemas.NumberSchema -PageSchema = schemas.NumberSchema -FieldsSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'order': typing.Union[OrderSchema, str, ], - 'per_page': typing.Union[PerPageSchema, decimal.Decimal, int, float, ], - 'page': typing.Union[PageSchema, decimal.Decimal, int, float, ], - 'fields': typing.Union[FieldsSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_order = api_client.QueryParameter( - name="order", - style=api_client.ParameterStyle.FORM, - schema=OrderSchema, - explode=True, -) -request_query_per_page = api_client.QueryParameter( - name="per_page", - style=api_client.ParameterStyle.FORM, - schema=PerPageSchema, - explode=True, -) -request_query_page = api_client.QueryParameter( - name="page", - style=api_client.ParameterStyle.FORM, - schema=PageSchema, - explode=True, -) -request_query_fields = api_client.QueryParameter( - name="fields", - style=api_client.ParameterStyle.FORM, - schema=FieldsSchema, - explode=True, -) -SchemaFor200ResponseBodyApplicationJson = TravelRuleGetAllVASPsResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_vasps_oapg(self, params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - """ - Get All VASPs - """ - query_params = {} - if params and params.get("order"): - query_params["order"] = params.get("order") - if params and params.get("per_page"): - query_params["per_page"] = params.get("per_page") - if params and params.get("page"): - query_params["page"] = params.get("page") - if params and params.get("fields"): - query_params["fields"] = params.get("fields") - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_order, - request_query_per_page, - request_query_page, - request_query_fields, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetVasps(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_vasps(self , params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - return self._get_vasps_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - return self._get_vasps_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/screening_travel_rule_vasp_did/__init__.py b/fireblocks_client/paths/screening_travel_rule_vasp_did/__init__.py deleted file mode 100644 index d45dc894..00000000 --- a/fireblocks_client/paths/screening_travel_rule_vasp_did/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.screening_travel_rule_vasp_did import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.SCREENING_TRAVEL_RULE_VASP_DID \ No newline at end of file diff --git a/fireblocks_client/paths/screening_travel_rule_vasp_did/get.py b/fireblocks_client/paths/screening_travel_rule_vasp_did/get.py deleted file mode 100644 index 92dff470..00000000 --- a/fireblocks_client/paths/screening_travel_rule_vasp_did/get.py +++ /dev/null @@ -1,220 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.travel_rule_vasp import TravelRuleVASP - -from . import path - -# Query params -FieldsSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'fields': typing.Union[FieldsSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_fields = api_client.QueryParameter( - name="fields", - style=api_client.ParameterStyle.FORM, - schema=FieldsSchema, - explode=True, -) -# Path params -DidSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'did': typing.Union[DidSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_did = api_client.PathParameter( - name="did", - style=api_client.ParameterStyle.SIMPLE, - schema=DidSchema, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = TravelRuleVASP - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: schemas.Unset = schemas.unset - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, -) - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: schemas.Unset = schemas.unset - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '500': _response_for_500, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_vaspby_did_oapg(self, params: typing.Union[ RequestQueryParams, RequestPathParams] = None, request_options: RequestOptions = None): - """ - Get VASP details - """ - query_params = {} - if params and params.get("fields"): - query_params["fields"] = params.get("fields") - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - path_params = {} - for parameter in ( - request_path_did, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_did, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - prefix_separator_iterator = None - for parameter in ( - request_query_fields, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetVaspbyDid(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_vaspby_did(self , params: typing.Union[ RequestQueryParams, RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_vaspby_did_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestQueryParams, RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_vaspby_did_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/screening_travel_rule_vasp_did/get.pyi b/fireblocks_client/paths/screening_travel_rule_vasp_did/get.pyi deleted file mode 100644 index 11e18661..00000000 --- a/fireblocks_client/paths/screening_travel_rule_vasp_did/get.pyi +++ /dev/null @@ -1,213 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.travel_rule_vasp import TravelRuleVASP - -# Query params -FieldsSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'fields': typing.Union[FieldsSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_fields = api_client.QueryParameter( - name="fields", - style=api_client.ParameterStyle.FORM, - schema=FieldsSchema, - explode=True, -) -# Path params -DidSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'did': typing.Union[DidSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_did = api_client.PathParameter( - name="did", - style=api_client.ParameterStyle.SIMPLE, - schema=DidSchema, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = TravelRuleVASP - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: schemas.Unset = schemas.unset - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, -) - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: schemas.Unset = schemas.unset - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_vaspby_did_oapg(self, params: typing.Union[ RequestQueryParams, RequestPathParams] = None, request_options: RequestOptions = None): - """ - Get VASP details - """ - query_params = {} - if params and params.get("fields"): - query_params["fields"] = params.get("fields") - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - path_params = {} - for parameter in ( - request_path_did, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_did, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - prefix_separator_iterator = None - for parameter in ( - request_query_fields, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetVaspbyDid(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_vaspby_did(self , params: typing.Union[ RequestQueryParams, RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_vaspby_did_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestQueryParams, RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_vaspby_did_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/supported_assets/__init__.py b/fireblocks_client/paths/supported_assets/__init__.py deleted file mode 100644 index 75c3aae0..00000000 --- a/fireblocks_client/paths/supported_assets/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.supported_assets import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.SUPPORTED_ASSETS \ No newline at end of file diff --git a/fireblocks_client/paths/supported_assets/get.py b/fireblocks_client/paths/supported_assets/get.py deleted file mode 100644 index 80695603..00000000 --- a/fireblocks_client/paths/supported_assets/get.py +++ /dev/null @@ -1,186 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.asset_type_response import AssetTypeResponse -from fireblocks_client.model.error import Error - -from . import path - -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) - - -class SchemaFor200ResponseBody( - schemas.ListSchema -): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['AssetTypeResponse']: - return AssetTypeResponse - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['AssetTypeResponse'], typing.List['AssetTypeResponse']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'SchemaFor200ResponseBody': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'AssetTypeResponse': - return super().__getitem__(i) -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, - 'default': _response_for_default, -} -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_supported_assets_oapg(self, request_options: RequestOptions = None): - """ - List all asset types supported by Fireblocks - """ - used_path = path.value - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetSupportedAssets(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_supported_assets(self , request_options: RequestOptions = None): - return self._get_supported_assets_oapg(request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , request_options: RequestOptions = None): - return self._get_supported_assets_oapg(request_options) - - diff --git a/fireblocks_client/paths/supported_assets/get.pyi b/fireblocks_client/paths/supported_assets/get.pyi deleted file mode 100644 index b16a327d..00000000 --- a/fireblocks_client/paths/supported_assets/get.pyi +++ /dev/null @@ -1,170 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.asset_type_response import AssetTypeResponse -from fireblocks_client.model.error import Error - -XRequestIDSchema = schemas.StrSchema - - -class SchemaFor200ResponseBody( - schemas.ListSchema -): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['AssetTypeResponse']: - return AssetTypeResponse - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['AssetTypeResponse'], typing.List['AssetTypeResponse']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'SchemaFor200ResponseBody': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'AssetTypeResponse': - return super().__getitem__(i) -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_supported_assets_oapg(self, request_options: RequestOptions = None): - """ - List all asset types supported by Fireblocks - """ - used_path = path.value - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetSupportedAssets(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_supported_assets(self , request_options: RequestOptions = None): - return self._get_supported_assets_oapg(request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , request_options: RequestOptions = None): - return self._get_supported_assets_oapg(request_options) - - diff --git a/fireblocks_client/paths/tap_active_policy/__init__.py b/fireblocks_client/paths/tap_active_policy/__init__.py deleted file mode 100644 index 0c6deb84..00000000 --- a/fireblocks_client/paths/tap_active_policy/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.tap_active_policy import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.TAP_ACTIVE_POLICY \ No newline at end of file diff --git a/fireblocks_client/paths/tap_active_policy/get.py b/fireblocks_client/paths/tap_active_policy/get.py deleted file mode 100644 index 17376d24..00000000 --- a/fireblocks_client/paths/tap_active_policy/get.py +++ /dev/null @@ -1,161 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error import Error -from fireblocks_client.model.policy_and_validation_response import PolicyAndValidationResponse - -from . import path - -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor200ResponseBody = PolicyAndValidationResponse -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, - 'default': _response_for_default, -} -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_active_policy_oapg(self, request_options: RequestOptions = None): - """ - Get the active policy and its validation - """ - used_path = path.value - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetActivePolicy(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_active_policy(self , request_options: RequestOptions = None): - return self._get_active_policy_oapg(request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , request_options: RequestOptions = None): - return self._get_active_policy_oapg(request_options) - - diff --git a/fireblocks_client/paths/tap_active_policy/get.pyi b/fireblocks_client/paths/tap_active_policy/get.pyi deleted file mode 100644 index dd0fb03b..00000000 --- a/fireblocks_client/paths/tap_active_policy/get.pyi +++ /dev/null @@ -1,145 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error import Error -from fireblocks_client.model.policy_and_validation_response import PolicyAndValidationResponse - -XRequestIDSchema = schemas.StrSchema -SchemaFor200ResponseBody = PolicyAndValidationResponse -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_active_policy_oapg(self, request_options: RequestOptions = None): - """ - Get the active policy and its validation - """ - used_path = path.value - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetActivePolicy(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_active_policy(self , request_options: RequestOptions = None): - return self._get_active_policy_oapg(request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , request_options: RequestOptions = None): - return self._get_active_policy_oapg(request_options) - - diff --git a/fireblocks_client/paths/tap_draft/__init__.py b/fireblocks_client/paths/tap_draft/__init__.py deleted file mode 100644 index a7ff4e63..00000000 --- a/fireblocks_client/paths/tap_draft/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.tap_draft import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.TAP_DRAFT \ No newline at end of file diff --git a/fireblocks_client/paths/tap_draft/get.py b/fireblocks_client/paths/tap_draft/get.py deleted file mode 100644 index f92e8227..00000000 --- a/fireblocks_client/paths/tap_draft/get.py +++ /dev/null @@ -1,161 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.draft_review_and_validation_response import DraftReviewAndValidationResponse -from fireblocks_client.model.error import Error - -from . import path - -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor200ResponseBody = DraftReviewAndValidationResponse -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, - 'default': _response_for_default, -} -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_draft_oapg(self, request_options: RequestOptions = None): - """ - Get the active draft - """ - used_path = path.value - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetDraft(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_draft(self , request_options: RequestOptions = None): - return self._get_draft_oapg(request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , request_options: RequestOptions = None): - return self._get_draft_oapg(request_options) - - diff --git a/fireblocks_client/paths/tap_draft/get.pyi b/fireblocks_client/paths/tap_draft/get.pyi deleted file mode 100644 index 34392d79..00000000 --- a/fireblocks_client/paths/tap_draft/get.pyi +++ /dev/null @@ -1,145 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.draft_review_and_validation_response import DraftReviewAndValidationResponse -from fireblocks_client.model.error import Error - -XRequestIDSchema = schemas.StrSchema -SchemaFor200ResponseBody = DraftReviewAndValidationResponse -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_draft_oapg(self, request_options: RequestOptions = None): - """ - Get the active draft - """ - used_path = path.value - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetDraft(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_draft(self , request_options: RequestOptions = None): - return self._get_draft_oapg(request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , request_options: RequestOptions = None): - return self._get_draft_oapg(request_options) - - diff --git a/fireblocks_client/paths/tap_draft/post.py b/fireblocks_client/paths/tap_draft/post.py deleted file mode 100644 index 4161da48..00000000 --- a/fireblocks_client/paths/tap_draft/post.py +++ /dev/null @@ -1,231 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.publish_result import PublishResult -from fireblocks_client.model.error import Error - -from . import path - -# body param - - -class SchemaForRequestBodyApplicationJson( - schemas.AnyTypeSchema, -): - - - class MetaOapg: - - class properties: - draftId = schemas.StrSchema - __annotations__ = { - "draftId": draftId, - } - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["draftId"]) -> MetaOapg.properties.draftId: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["draftId", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["draftId"]) -> typing.Union[MetaOapg.properties.draftId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["draftId", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - draftId: typing.Union[MetaOapg.properties.draftId, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaForRequestBodyApplicationJson': - return super().__new__( - cls, - *_args, - draftId=draftId, - _configuration=_configuration, - **kwargs, - ) - - -request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor201ResponseBody = PublishResult -ResponseHeadersFor201 = typing_extensions.TypedDict( - 'ResponseHeadersFor201', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor201(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor201ResponseBody, - ] - headers: ResponseHeadersFor201 - - -_response_for_201 = api_client.OpenApiResponse( - response_cls=ApiResponseFor201, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor201ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '201': _response_for_201, - 'default': _response_for_default, -} -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _publish_draft_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - """ - Send publish request for a certain draft id - """ - used_path = path.value - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_any_type.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class PublishDraft(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def publish_draft(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._publish_draft_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._publish_draft_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/tap_draft/post.pyi b/fireblocks_client/paths/tap_draft/post.pyi deleted file mode 100644 index 60431707..00000000 --- a/fireblocks_client/paths/tap_draft/post.pyi +++ /dev/null @@ -1,215 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.publish_result import PublishResult -from fireblocks_client.model.error import Error - -# body param - - -class SchemaForRequestBodyApplicationJson( - schemas.AnyTypeSchema, -): - - - class MetaOapg: - - class properties: - draftId = schemas.StrSchema - __annotations__ = { - "draftId": draftId, - } - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["draftId"]) -> MetaOapg.properties.draftId: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["draftId", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["draftId"]) -> typing.Union[MetaOapg.properties.draftId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["draftId", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - draftId: typing.Union[MetaOapg.properties.draftId, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaForRequestBodyApplicationJson': - return super().__new__( - cls, - *_args, - draftId=draftId, - _configuration=_configuration, - **kwargs, - ) - - -request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -XRequestIDSchema = schemas.StrSchema -SchemaFor201ResponseBody = PublishResult -ResponseHeadersFor201 = typing_extensions.TypedDict( - 'ResponseHeadersFor201', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor201(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor201ResponseBody, - ] - headers: ResponseHeadersFor201 - - -_response_for_201 = api_client.OpenApiResponse( - response_cls=ApiResponseFor201, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor201ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _publish_draft_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - """ - Send publish request for a certain draft id - """ - used_path = path.value - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_any_type.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class PublishDraft(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def publish_draft(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._publish_draft_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._publish_draft_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/tap_draft/put.py b/fireblocks_client/paths/tap_draft/put.py deleted file mode 100644 index 88a45c0b..00000000 --- a/fireblocks_client/paths/tap_draft/put.py +++ /dev/null @@ -1,257 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.policy_rule import PolicyRule -from fireblocks_client.model.draft_review_and_validation_response import DraftReviewAndValidationResponse -from fireblocks_client.model.error import Error - -from . import path - -# body param - - -class SchemaForRequestBodyApplicationJson( - schemas.AnyTypeSchema, -): - - - class MetaOapg: - - class properties: - - - class rules( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['PolicyRule']: - return PolicyRule - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['PolicyRule'], typing.List['PolicyRule']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'rules': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'PolicyRule': - return super().__getitem__(i) - __annotations__ = { - "rules": rules, - } - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["rules"]) -> MetaOapg.properties.rules: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["rules", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["rules"]) -> typing.Union[MetaOapg.properties.rules, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["rules", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - rules: typing.Union[MetaOapg.properties.rules, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaForRequestBodyApplicationJson': - return super().__new__( - cls, - *_args, - rules=rules, - _configuration=_configuration, - **kwargs, - ) - - -request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor200ResponseBody = DraftReviewAndValidationResponse -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, - 'default': _response_for_default, -} -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _update_draft_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - """ - Update the draft with a new set of rules - """ - used_path = path.value - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_any_type.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='put'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class UpdateDraft(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def update_draft(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._update_draft_oapg(params, request_options) - - -class ApiForput(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def put(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._update_draft_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/tap_draft/put.pyi b/fireblocks_client/paths/tap_draft/put.pyi deleted file mode 100644 index 853a148d..00000000 --- a/fireblocks_client/paths/tap_draft/put.pyi +++ /dev/null @@ -1,241 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.policy_rule import PolicyRule -from fireblocks_client.model.draft_review_and_validation_response import DraftReviewAndValidationResponse -from fireblocks_client.model.error import Error - -# body param - - -class SchemaForRequestBodyApplicationJson( - schemas.AnyTypeSchema, -): - - - class MetaOapg: - - class properties: - - - class rules( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['PolicyRule']: - return PolicyRule - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['PolicyRule'], typing.List['PolicyRule']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'rules': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'PolicyRule': - return super().__getitem__(i) - __annotations__ = { - "rules": rules, - } - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["rules"]) -> MetaOapg.properties.rules: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["rules", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["rules"]) -> typing.Union[MetaOapg.properties.rules, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["rules", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - rules: typing.Union[MetaOapg.properties.rules, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaForRequestBodyApplicationJson': - return super().__new__( - cls, - *_args, - rules=rules, - _configuration=_configuration, - **kwargs, - ) - - -request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -XRequestIDSchema = schemas.StrSchema -SchemaFor200ResponseBody = DraftReviewAndValidationResponse -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _update_draft_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - """ - Update the draft with a new set of rules - """ - used_path = path.value - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_any_type.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='put'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class UpdateDraft(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def update_draft(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._update_draft_oapg(params, request_options) - - -class ApiForput(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def put(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._update_draft_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/tap_publish/__init__.py b/fireblocks_client/paths/tap_publish/__init__.py deleted file mode 100644 index 736e7795..00000000 --- a/fireblocks_client/paths/tap_publish/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.tap_publish import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.TAP_PUBLISH \ No newline at end of file diff --git a/fireblocks_client/paths/tap_publish/post.py b/fireblocks_client/paths/tap_publish/post.py deleted file mode 100644 index 1cc97bb0..00000000 --- a/fireblocks_client/paths/tap_publish/post.py +++ /dev/null @@ -1,257 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.policy_rule import PolicyRule -from fireblocks_client.model.publish_result import PublishResult -from fireblocks_client.model.error import Error - -from . import path - -# body param - - -class SchemaForRequestBodyApplicationJson( - schemas.AnyTypeSchema, -): - - - class MetaOapg: - - class properties: - - - class rules( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['PolicyRule']: - return PolicyRule - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['PolicyRule'], typing.List['PolicyRule']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'rules': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'PolicyRule': - return super().__getitem__(i) - __annotations__ = { - "rules": rules, - } - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["rules"]) -> MetaOapg.properties.rules: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["rules", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["rules"]) -> typing.Union[MetaOapg.properties.rules, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["rules", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - rules: typing.Union[MetaOapg.properties.rules, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaForRequestBodyApplicationJson': - return super().__new__( - cls, - *_args, - rules=rules, - _configuration=_configuration, - **kwargs, - ) - - -request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor201ResponseBody = PublishResult -ResponseHeadersFor201 = typing_extensions.TypedDict( - 'ResponseHeadersFor201', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor201(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor201ResponseBody, - ] - headers: ResponseHeadersFor201 - - -_response_for_201 = api_client.OpenApiResponse( - response_cls=ApiResponseFor201, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor201ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '201': _response_for_201, - 'default': _response_for_default, -} -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _publish_policy_rules_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - """ - Send publish request for a set of policy rules - """ - used_path = path.value - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_any_type.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class PublishPolicyRules(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def publish_policy_rules(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._publish_policy_rules_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._publish_policy_rules_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/tap_publish/post.pyi b/fireblocks_client/paths/tap_publish/post.pyi deleted file mode 100644 index a6743a65..00000000 --- a/fireblocks_client/paths/tap_publish/post.pyi +++ /dev/null @@ -1,241 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.policy_rule import PolicyRule -from fireblocks_client.model.publish_result import PublishResult -from fireblocks_client.model.error import Error - -# body param - - -class SchemaForRequestBodyApplicationJson( - schemas.AnyTypeSchema, -): - - - class MetaOapg: - - class properties: - - - class rules( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['PolicyRule']: - return PolicyRule - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['PolicyRule'], typing.List['PolicyRule']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'rules': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'PolicyRule': - return super().__getitem__(i) - __annotations__ = { - "rules": rules, - } - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["rules"]) -> MetaOapg.properties.rules: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["rules", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["rules"]) -> typing.Union[MetaOapg.properties.rules, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["rules", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - rules: typing.Union[MetaOapg.properties.rules, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaForRequestBodyApplicationJson': - return super().__new__( - cls, - *_args, - rules=rules, - _configuration=_configuration, - **kwargs, - ) - - -request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -XRequestIDSchema = schemas.StrSchema -SchemaFor201ResponseBody = PublishResult -ResponseHeadersFor201 = typing_extensions.TypedDict( - 'ResponseHeadersFor201', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor201(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor201ResponseBody, - ] - headers: ResponseHeadersFor201 - - -_response_for_201 = api_client.OpenApiResponse( - response_cls=ApiResponseFor201, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor201ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _publish_policy_rules_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - """ - Send publish request for a set of policy rules - """ - used_path = path.value - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_any_type.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class PublishPolicyRules(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def publish_policy_rules(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._publish_policy_rules_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._publish_policy_rules_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/transactions/__init__.py b/fireblocks_client/paths/transactions/__init__.py deleted file mode 100644 index fa02012e..00000000 --- a/fireblocks_client/paths/transactions/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.transactions import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.TRANSACTIONS \ No newline at end of file diff --git a/fireblocks_client/paths/transactions/get.py b/fireblocks_client/paths/transactions/get.py deleted file mode 100644 index 1404bbd1..00000000 --- a/fireblocks_client/paths/transactions/get.py +++ /dev/null @@ -1,551 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error import Error -from fireblocks_client.model.transaction_response import TransactionResponse - -from . import path - -# Query params -BeforeSchema = schemas.StrSchema -AfterSchema = schemas.StrSchema -StatusSchema = schemas.StrSchema - - -class OrderBySchema( - schemas.EnumBase, - schemas.StrSchema -): - - - class MetaOapg: - enum_value_to_name = { - "createdAt": "CREATED_AT", - "lastUpdated": "LAST_UPDATED", - } - - @schemas.classproperty - def CREATED_AT(cls): - return cls("createdAt") - - @schemas.classproperty - def LAST_UPDATED(cls): - return cls("lastUpdated") - - -class SortSchema( - schemas.EnumBase, - schemas.StrSchema -): - - - class MetaOapg: - enum_value_to_name = { - "ASC": "ASC", - "DESC": "DESC", - } - - @schemas.classproperty - def ASC(cls): - return cls("ASC") - - @schemas.classproperty - def DESC(cls): - return cls("DESC") - - -class LimitSchema( - schemas.IntSchema -): - - - class MetaOapg: - inclusive_minimum = 1 - - -class SourceTypeSchema( - schemas.EnumBase, - schemas.StrSchema -): - - - class MetaOapg: - enum_value_to_name = { - "VAULT_ACCOUNT": "VAULT_ACCOUNT", - "EXCHANGE_ACCOUNT": "EXCHANGE_ACCOUNT", - "INTERNAL_WALLET": "INTERNAL_WALLET", - "EXTERNAL_WALLET": "EXTERNAL_WALLET", - "FIAT_ACCOUNT": "FIAT_ACCOUNT", - "NETWORK_CONNECTION": "NETWORK_CONNECTION", - "COMPOUND": "COMPOUND", - "UNKNOWN": "UNKNOWN", - "GAS_STATION": "GAS_STATION", - "END_USER_WALLET": "END_USER_WALLET", - } - - @schemas.classproperty - def VAULT_ACCOUNT(cls): - return cls("VAULT_ACCOUNT") - - @schemas.classproperty - def EXCHANGE_ACCOUNT(cls): - return cls("EXCHANGE_ACCOUNT") - - @schemas.classproperty - def INTERNAL_WALLET(cls): - return cls("INTERNAL_WALLET") - - @schemas.classproperty - def EXTERNAL_WALLET(cls): - return cls("EXTERNAL_WALLET") - - @schemas.classproperty - def FIAT_ACCOUNT(cls): - return cls("FIAT_ACCOUNT") - - @schemas.classproperty - def NETWORK_CONNECTION(cls): - return cls("NETWORK_CONNECTION") - - @schemas.classproperty - def COMPOUND(cls): - return cls("COMPOUND") - - @schemas.classproperty - def UNKNOWN(cls): - return cls("UNKNOWN") - - @schemas.classproperty - def GAS_STATION(cls): - return cls("GAS_STATION") - - @schemas.classproperty - def END_USER_WALLET(cls): - return cls("END_USER_WALLET") -SourceIdSchema = schemas.StrSchema - - -class DestTypeSchema( - schemas.EnumBase, - schemas.StrSchema -): - - - class MetaOapg: - enum_value_to_name = { - "VAULT_ACCOUNT": "VAULT_ACCOUNT", - "EXCHANGE_ACCOUNT": "EXCHANGE_ACCOUNT", - "INTERNAL_WALLET": "INTERNAL_WALLET", - "EXTERNAL_WALLET": "EXTERNAL_WALLET", - "FIAT_ACCOUNT": "FIAT_ACCOUNT", - "NETWORK_CONNECTION": "NETWORK_CONNECTION", - "COMPOUND": "COMPOUND", - "ONE_TIME_ADDRESS": "ONE_TIME_ADDRESS", - "END_USER_WALLET": "END_USER_WALLET", - } - - @schemas.classproperty - def VAULT_ACCOUNT(cls): - return cls("VAULT_ACCOUNT") - - @schemas.classproperty - def EXCHANGE_ACCOUNT(cls): - return cls("EXCHANGE_ACCOUNT") - - @schemas.classproperty - def INTERNAL_WALLET(cls): - return cls("INTERNAL_WALLET") - - @schemas.classproperty - def EXTERNAL_WALLET(cls): - return cls("EXTERNAL_WALLET") - - @schemas.classproperty - def FIAT_ACCOUNT(cls): - return cls("FIAT_ACCOUNT") - - @schemas.classproperty - def NETWORK_CONNECTION(cls): - return cls("NETWORK_CONNECTION") - - @schemas.classproperty - def COMPOUND(cls): - return cls("COMPOUND") - - @schemas.classproperty - def ONE_TIME_ADDRESS(cls): - return cls("ONE_TIME_ADDRESS") - - @schemas.classproperty - def END_USER_WALLET(cls): - return cls("END_USER_WALLET") -DestIdSchema = schemas.StrSchema -AssetsSchema = schemas.StrSchema -TxHashSchema = schemas.StrSchema -SourceWalletIdSchema = schemas.StrSchema -DestWalletIdSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'before': typing.Union[BeforeSchema, str, ], - 'after': typing.Union[AfterSchema, str, ], - 'status': typing.Union[StatusSchema, str, ], - 'orderBy': typing.Union[OrderBySchema, str, ], - 'sort': typing.Union[SortSchema, str, ], - 'limit': typing.Union[LimitSchema, decimal.Decimal, int, ], - 'sourceType': typing.Union[SourceTypeSchema, str, ], - 'sourceId': typing.Union[SourceIdSchema, str, ], - 'destType': typing.Union[DestTypeSchema, str, ], - 'destId': typing.Union[DestIdSchema, str, ], - 'assets': typing.Union[AssetsSchema, str, ], - 'txHash': typing.Union[TxHashSchema, str, ], - 'sourceWalletId': typing.Union[SourceWalletIdSchema, str, ], - 'destWalletId': typing.Union[DestWalletIdSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_before = api_client.QueryParameter( - name="before", - style=api_client.ParameterStyle.FORM, - schema=BeforeSchema, - explode=True, -) -request_query_after = api_client.QueryParameter( - name="after", - style=api_client.ParameterStyle.FORM, - schema=AfterSchema, - explode=True, -) -request_query_status = api_client.QueryParameter( - name="status", - style=api_client.ParameterStyle.FORM, - schema=StatusSchema, - explode=True, -) -request_query_order_by = api_client.QueryParameter( - name="orderBy", - style=api_client.ParameterStyle.FORM, - schema=OrderBySchema, - explode=True, -) -request_query_sort = api_client.QueryParameter( - name="sort", - style=api_client.ParameterStyle.FORM, - schema=SortSchema, - explode=True, -) -request_query_limit = api_client.QueryParameter( - name="limit", - style=api_client.ParameterStyle.FORM, - schema=LimitSchema, - explode=True, -) -request_query_source_type = api_client.QueryParameter( - name="sourceType", - style=api_client.ParameterStyle.FORM, - schema=SourceTypeSchema, - explode=True, -) -request_query_source_id = api_client.QueryParameter( - name="sourceId", - style=api_client.ParameterStyle.FORM, - schema=SourceIdSchema, - explode=True, -) -request_query_dest_type = api_client.QueryParameter( - name="destType", - style=api_client.ParameterStyle.FORM, - schema=DestTypeSchema, - explode=True, -) -request_query_dest_id = api_client.QueryParameter( - name="destId", - style=api_client.ParameterStyle.FORM, - schema=DestIdSchema, - explode=True, -) -request_query_assets = api_client.QueryParameter( - name="assets", - style=api_client.ParameterStyle.FORM, - schema=AssetsSchema, - explode=True, -) -request_query_tx_hash = api_client.QueryParameter( - name="txHash", - style=api_client.ParameterStyle.FORM, - schema=TxHashSchema, - explode=True, -) -request_query_source_wallet_id = api_client.QueryParameter( - name="sourceWalletId", - style=api_client.ParameterStyle.FORM, - schema=SourceWalletIdSchema, - explode=True, -) -request_query_dest_wallet_id = api_client.QueryParameter( - name="destWalletId", - style=api_client.ParameterStyle.FORM, - schema=DestWalletIdSchema, - explode=True, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -NextPageSchema = schemas.StrSchema -next_page_parameter = api_client.HeaderParameter( - name="next-page", - style=api_client.ParameterStyle.SIMPLE, - schema=NextPageSchema, -) -PrevPageSchema = schemas.StrSchema -prev_page_parameter = api_client.HeaderParameter( - name="prev-page", - style=api_client.ParameterStyle.SIMPLE, - schema=PrevPageSchema, -) - - -class SchemaFor200ResponseBody( - schemas.ListSchema -): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['TransactionResponse']: - return TransactionResponse - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['TransactionResponse'], typing.List['TransactionResponse']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'SchemaFor200ResponseBody': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'TransactionResponse': - return super().__getitem__(i) -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - 'next-page': NextPageSchema, - 'prev-page': PrevPageSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - next_page_parameter, - prev_page_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, - 'default': _response_for_default, -} -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_transactions_oapg(self, params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - """ - List transaction history - """ - query_params = {} - if params and params.get("before"): - query_params["before"] = params.get("before") - if params and params.get("after"): - query_params["after"] = params.get("after") - if params and params.get("status"): - query_params["status"] = params.get("status") - if params and params.get("order_by"): - query_params["order_by"] = params.get("order_by") - if params and params.get("sort"): - query_params["sort"] = params.get("sort") - if params and params.get("limit"): - query_params["limit"] = params.get("limit") - if params and params.get("source_type"): - query_params["source_type"] = params.get("source_type") - if params and params.get("source_id"): - query_params["source_id"] = params.get("source_id") - if params and params.get("dest_type"): - query_params["dest_type"] = params.get("dest_type") - if params and params.get("dest_id"): - query_params["dest_id"] = params.get("dest_id") - if params and params.get("assets"): - query_params["assets"] = params.get("assets") - if params and params.get("tx_hash"): - query_params["tx_hash"] = params.get("tx_hash") - if params and params.get("source_wallet_id"): - query_params["source_wallet_id"] = params.get("source_wallet_id") - if params and params.get("dest_wallet_id"): - query_params["dest_wallet_id"] = params.get("dest_wallet_id") - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_before, - request_query_after, - request_query_status, - request_query_order_by, - request_query_sort, - request_query_limit, - request_query_source_type, - request_query_source_id, - request_query_dest_type, - request_query_dest_id, - request_query_assets, - request_query_tx_hash, - request_query_source_wallet_id, - request_query_dest_wallet_id, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetTransactions(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_transactions(self , params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - return self._get_transactions_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - return self._get_transactions_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/transactions/get.pyi b/fireblocks_client/paths/transactions/get.pyi deleted file mode 100644 index 3de9fe13..00000000 --- a/fireblocks_client/paths/transactions/get.pyi +++ /dev/null @@ -1,479 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error import Error -from fireblocks_client.model.transaction_response import TransactionResponse - -# Query params -BeforeSchema = schemas.StrSchema -AfterSchema = schemas.StrSchema -StatusSchema = schemas.StrSchema - - -class OrderBySchema( - schemas.EnumBase, - schemas.StrSchema -): - - @schemas.classproperty - def CREATED_AT(cls): - return cls("createdAt") - - @schemas.classproperty - def LAST_UPDATED(cls): - return cls("lastUpdated") - - -class SortSchema( - schemas.EnumBase, - schemas.StrSchema -): - - @schemas.classproperty - def ASC(cls): - return cls("ASC") - - @schemas.classproperty - def DESC(cls): - return cls("DESC") - - -class LimitSchema( - schemas.IntSchema -): - pass - - -class SourceTypeSchema( - schemas.EnumBase, - schemas.StrSchema -): - - @schemas.classproperty - def VAULT_ACCOUNT(cls): - return cls("VAULT_ACCOUNT") - - @schemas.classproperty - def EXCHANGE_ACCOUNT(cls): - return cls("EXCHANGE_ACCOUNT") - - @schemas.classproperty - def INTERNAL_WALLET(cls): - return cls("INTERNAL_WALLET") - - @schemas.classproperty - def EXTERNAL_WALLET(cls): - return cls("EXTERNAL_WALLET") - - @schemas.classproperty - def FIAT_ACCOUNT(cls): - return cls("FIAT_ACCOUNT") - - @schemas.classproperty - def NETWORK_CONNECTION(cls): - return cls("NETWORK_CONNECTION") - - @schemas.classproperty - def COMPOUND(cls): - return cls("COMPOUND") - - @schemas.classproperty - def UNKNOWN(cls): - return cls("UNKNOWN") - - @schemas.classproperty - def GAS_STATION(cls): - return cls("GAS_STATION") - - @schemas.classproperty - def END_USER_WALLET(cls): - return cls("END_USER_WALLET") -SourceIdSchema = schemas.StrSchema - - -class DestTypeSchema( - schemas.EnumBase, - schemas.StrSchema -): - - @schemas.classproperty - def VAULT_ACCOUNT(cls): - return cls("VAULT_ACCOUNT") - - @schemas.classproperty - def EXCHANGE_ACCOUNT(cls): - return cls("EXCHANGE_ACCOUNT") - - @schemas.classproperty - def INTERNAL_WALLET(cls): - return cls("INTERNAL_WALLET") - - @schemas.classproperty - def EXTERNAL_WALLET(cls): - return cls("EXTERNAL_WALLET") - - @schemas.classproperty - def FIAT_ACCOUNT(cls): - return cls("FIAT_ACCOUNT") - - @schemas.classproperty - def NETWORK_CONNECTION(cls): - return cls("NETWORK_CONNECTION") - - @schemas.classproperty - def COMPOUND(cls): - return cls("COMPOUND") - - @schemas.classproperty - def ONE_TIME_ADDRESS(cls): - return cls("ONE_TIME_ADDRESS") - - @schemas.classproperty - def END_USER_WALLET(cls): - return cls("END_USER_WALLET") -DestIdSchema = schemas.StrSchema -AssetsSchema = schemas.StrSchema -TxHashSchema = schemas.StrSchema -SourceWalletIdSchema = schemas.StrSchema -DestWalletIdSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'before': typing.Union[BeforeSchema, str, ], - 'after': typing.Union[AfterSchema, str, ], - 'status': typing.Union[StatusSchema, str, ], - 'orderBy': typing.Union[OrderBySchema, str, ], - 'sort': typing.Union[SortSchema, str, ], - 'limit': typing.Union[LimitSchema, decimal.Decimal, int, ], - 'sourceType': typing.Union[SourceTypeSchema, str, ], - 'sourceId': typing.Union[SourceIdSchema, str, ], - 'destType': typing.Union[DestTypeSchema, str, ], - 'destId': typing.Union[DestIdSchema, str, ], - 'assets': typing.Union[AssetsSchema, str, ], - 'txHash': typing.Union[TxHashSchema, str, ], - 'sourceWalletId': typing.Union[SourceWalletIdSchema, str, ], - 'destWalletId': typing.Union[DestWalletIdSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_before = api_client.QueryParameter( - name="before", - style=api_client.ParameterStyle.FORM, - schema=BeforeSchema, - explode=True, -) -request_query_after = api_client.QueryParameter( - name="after", - style=api_client.ParameterStyle.FORM, - schema=AfterSchema, - explode=True, -) -request_query_status = api_client.QueryParameter( - name="status", - style=api_client.ParameterStyle.FORM, - schema=StatusSchema, - explode=True, -) -request_query_order_by = api_client.QueryParameter( - name="orderBy", - style=api_client.ParameterStyle.FORM, - schema=OrderBySchema, - explode=True, -) -request_query_sort = api_client.QueryParameter( - name="sort", - style=api_client.ParameterStyle.FORM, - schema=SortSchema, - explode=True, -) -request_query_limit = api_client.QueryParameter( - name="limit", - style=api_client.ParameterStyle.FORM, - schema=LimitSchema, - explode=True, -) -request_query_source_type = api_client.QueryParameter( - name="sourceType", - style=api_client.ParameterStyle.FORM, - schema=SourceTypeSchema, - explode=True, -) -request_query_source_id = api_client.QueryParameter( - name="sourceId", - style=api_client.ParameterStyle.FORM, - schema=SourceIdSchema, - explode=True, -) -request_query_dest_type = api_client.QueryParameter( - name="destType", - style=api_client.ParameterStyle.FORM, - schema=DestTypeSchema, - explode=True, -) -request_query_dest_id = api_client.QueryParameter( - name="destId", - style=api_client.ParameterStyle.FORM, - schema=DestIdSchema, - explode=True, -) -request_query_assets = api_client.QueryParameter( - name="assets", - style=api_client.ParameterStyle.FORM, - schema=AssetsSchema, - explode=True, -) -request_query_tx_hash = api_client.QueryParameter( - name="txHash", - style=api_client.ParameterStyle.FORM, - schema=TxHashSchema, - explode=True, -) -request_query_source_wallet_id = api_client.QueryParameter( - name="sourceWalletId", - style=api_client.ParameterStyle.FORM, - schema=SourceWalletIdSchema, - explode=True, -) -request_query_dest_wallet_id = api_client.QueryParameter( - name="destWalletId", - style=api_client.ParameterStyle.FORM, - schema=DestWalletIdSchema, - explode=True, -) -XRequestIDSchema = schemas.StrSchema -NextPageSchema = schemas.StrSchema -PrevPageSchema = schemas.StrSchema - - -class SchemaFor200ResponseBody( - schemas.ListSchema -): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['TransactionResponse']: - return TransactionResponse - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['TransactionResponse'], typing.List['TransactionResponse']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'SchemaFor200ResponseBody': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'TransactionResponse': - return super().__getitem__(i) -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - 'next-page': NextPageSchema, - 'prev-page': PrevPageSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - next_page_parameter, - prev_page_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_transactions_oapg(self, params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - """ - List transaction history - """ - query_params = {} - if params and params.get("before"): - query_params["before"] = params.get("before") - if params and params.get("after"): - query_params["after"] = params.get("after") - if params and params.get("status"): - query_params["status"] = params.get("status") - if params and params.get("order_by"): - query_params["order_by"] = params.get("order_by") - if params and params.get("sort"): - query_params["sort"] = params.get("sort") - if params and params.get("limit"): - query_params["limit"] = params.get("limit") - if params and params.get("source_type"): - query_params["source_type"] = params.get("source_type") - if params and params.get("source_id"): - query_params["source_id"] = params.get("source_id") - if params and params.get("dest_type"): - query_params["dest_type"] = params.get("dest_type") - if params and params.get("dest_id"): - query_params["dest_id"] = params.get("dest_id") - if params and params.get("assets"): - query_params["assets"] = params.get("assets") - if params and params.get("tx_hash"): - query_params["tx_hash"] = params.get("tx_hash") - if params and params.get("source_wallet_id"): - query_params["source_wallet_id"] = params.get("source_wallet_id") - if params and params.get("dest_wallet_id"): - query_params["dest_wallet_id"] = params.get("dest_wallet_id") - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_before, - request_query_after, - request_query_status, - request_query_order_by, - request_query_sort, - request_query_limit, - request_query_source_type, - request_query_source_id, - request_query_dest_type, - request_query_dest_id, - request_query_assets, - request_query_tx_hash, - request_query_source_wallet_id, - request_query_dest_wallet_id, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetTransactions(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_transactions(self , params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - return self._get_transactions_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - return self._get_transactions_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/transactions/post.py b/fireblocks_client/paths/transactions/post.py deleted file mode 100644 index f092aa43..00000000 --- a/fireblocks_client/paths/transactions/post.py +++ /dev/null @@ -1,189 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.transaction_request import TransactionRequest -from fireblocks_client.model.error import Error -from fireblocks_client.model.create_transaction_response import CreateTransactionResponse - -from . import path - -# body param -SchemaForRequestBodyApplicationJson = TransactionRequest - - -request_body_transaction_request = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor200ResponseBody = CreateTransactionResponse -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, - 'default': _response_for_default, -} -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _create_transaction_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - """ - Create a new transaction - """ - used_path = path.value - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_transaction_request.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("ncw"): - if (params.get("source", {}).get("type") == 'END_USER_WALLET' and not request_options.get("ncw", {}).get("walletId")): - walletId = request_options.get("data", {}).get("source", {}).get("walletId") - - ncw_wallet_id = request_options.get("ncw", {}).get("walletId") - if ncw_wallet_id: - _headers.add("X-End-User-Wallet-Id", ncwWalletId) - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class CreateTransaction(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def create_transaction(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._create_transaction_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._create_transaction_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/transactions/post.pyi b/fireblocks_client/paths/transactions/post.pyi deleted file mode 100644 index 96215fae..00000000 --- a/fireblocks_client/paths/transactions/post.pyi +++ /dev/null @@ -1,173 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.transaction_request import TransactionRequest -from fireblocks_client.model.error import Error -from fireblocks_client.model.create_transaction_response import CreateTransactionResponse - -# body param -SchemaForRequestBodyApplicationJson = TransactionRequest - - -request_body_transaction_request = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, -) -XRequestIDSchema = schemas.StrSchema -SchemaFor200ResponseBody = CreateTransactionResponse -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _create_transaction_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - """ - Create a new transaction - """ - used_path = path.value - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_transaction_request.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("ncw"): - if (params.get("source", {}).get("type") == 'END_USER_WALLET' and not request_options.get("ncw", {}).get("walletId")): - walletId = request_options.get("data", {}).get("source", {}).get("walletId") - - ncw_wallet_id = request_options.get("ncw", {}).get("walletId") - if ncw_wallet_id: - _headers.add("X-End-User-Wallet-Id", ncwWalletId) - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class CreateTransaction(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def create_transaction(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._create_transaction_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._create_transaction_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/transactions_estimate_fee/__init__.py b/fireblocks_client/paths/transactions_estimate_fee/__init__.py deleted file mode 100644 index 7ca9a580..00000000 --- a/fireblocks_client/paths/transactions_estimate_fee/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.transactions_estimate_fee import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.TRANSACTIONS_ESTIMATE_FEE \ No newline at end of file diff --git a/fireblocks_client/paths/transactions_estimate_fee/post.py b/fireblocks_client/paths/transactions_estimate_fee/post.py deleted file mode 100644 index f3ad9f24..00000000 --- a/fireblocks_client/paths/transactions_estimate_fee/post.py +++ /dev/null @@ -1,181 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.transaction_request import TransactionRequest -from fireblocks_client.model.error import Error -from fireblocks_client.model.estimated_transaction_fee_response import EstimatedTransactionFeeResponse - -from . import path - -# body param -SchemaForRequestBodyApplicationJson = TransactionRequest - - -request_body_transaction_request = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor200ResponseBody = EstimatedTransactionFeeResponse -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, - 'default': _response_for_default, -} -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _estimate_transaction_fee_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - """ - Estimate transaction fee - """ - used_path = path.value - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_transaction_request.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class EstimateTransactionFee(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def estimate_transaction_fee(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._estimate_transaction_fee_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._estimate_transaction_fee_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/transactions_estimate_fee/post.pyi b/fireblocks_client/paths/transactions_estimate_fee/post.pyi deleted file mode 100644 index a44a4012..00000000 --- a/fireblocks_client/paths/transactions_estimate_fee/post.pyi +++ /dev/null @@ -1,165 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.transaction_request import TransactionRequest -from fireblocks_client.model.error import Error -from fireblocks_client.model.estimated_transaction_fee_response import EstimatedTransactionFeeResponse - -# body param -SchemaForRequestBodyApplicationJson = TransactionRequest - - -request_body_transaction_request = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, -) -XRequestIDSchema = schemas.StrSchema -SchemaFor200ResponseBody = EstimatedTransactionFeeResponse -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _estimate_transaction_fee_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - """ - Estimate transaction fee - """ - used_path = path.value - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_transaction_request.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class EstimateTransactionFee(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def estimate_transaction_fee(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._estimate_transaction_fee_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._estimate_transaction_fee_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/transactions_external_tx_id_external_tx_id_/__init__.py b/fireblocks_client/paths/transactions_external_tx_id_external_tx_id_/__init__.py deleted file mode 100644 index 2ea6bbf7..00000000 --- a/fireblocks_client/paths/transactions_external_tx_id_external_tx_id_/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.transactions_external_tx_id_external_tx_id_ import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.TRANSACTIONS_EXTERNAL_TX_ID_EXTERNAL_TX_ID_ \ No newline at end of file diff --git a/fireblocks_client/paths/transactions_external_tx_id_external_tx_id_/get.py b/fireblocks_client/paths/transactions_external_tx_id_external_tx_id_/get.py deleted file mode 100644 index 29569b67..00000000 --- a/fireblocks_client/paths/transactions_external_tx_id_external_tx_id_/get.py +++ /dev/null @@ -1,207 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error import Error -from fireblocks_client.model.transaction_response import TransactionResponse - -from . import path - -# Path params -ExternalTxIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'externalTxId': typing.Union[ExternalTxIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_external_tx_id = api_client.PathParameter( - name="externalTxId", - style=api_client.ParameterStyle.SIMPLE, - schema=ExternalTxIdSchema, - required=True, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor200ResponseBody = TransactionResponse -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, - 'default': _response_for_default, -} -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_transaction_by_external_id_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Find a specific transaction by external transaction ID - """ - path_params = {} - for parameter in ( - request_path_external_tx_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_external_tx_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetTransactionByExternalId(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_transaction_by_external_id(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_transaction_by_external_id_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_transaction_by_external_id_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/transactions_external_tx_id_external_tx_id_/get.pyi b/fireblocks_client/paths/transactions_external_tx_id_external_tx_id_/get.pyi deleted file mode 100644 index 35c0bbe5..00000000 --- a/fireblocks_client/paths/transactions_external_tx_id_external_tx_id_/get.pyi +++ /dev/null @@ -1,191 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error import Error -from fireblocks_client.model.transaction_response import TransactionResponse - -# Path params -ExternalTxIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'externalTxId': typing.Union[ExternalTxIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_external_tx_id = api_client.PathParameter( - name="externalTxId", - style=api_client.ParameterStyle.SIMPLE, - schema=ExternalTxIdSchema, - required=True, -) -XRequestIDSchema = schemas.StrSchema -SchemaFor200ResponseBody = TransactionResponse -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_transaction_by_external_id_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Find a specific transaction by external transaction ID - """ - path_params = {} - for parameter in ( - request_path_external_tx_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_external_tx_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetTransactionByExternalId(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_transaction_by_external_id(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_transaction_by_external_id_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_transaction_by_external_id_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/transactions_tx_id/__init__.py b/fireblocks_client/paths/transactions_tx_id/__init__.py deleted file mode 100644 index 645563a6..00000000 --- a/fireblocks_client/paths/transactions_tx_id/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.transactions_tx_id import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.TRANSACTIONS_TX_ID \ No newline at end of file diff --git a/fireblocks_client/paths/transactions_tx_id/get.py b/fireblocks_client/paths/transactions_tx_id/get.py deleted file mode 100644 index 23b14714..00000000 --- a/fireblocks_client/paths/transactions_tx_id/get.py +++ /dev/null @@ -1,242 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error import Error -from fireblocks_client.model.transaction_response import TransactionResponse - -from . import path - -# Path params -TxIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'txId': typing.Union[TxIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_tx_id = api_client.PathParameter( - name="txId", - style=api_client.ParameterStyle.SIMPLE, - schema=TxIdSchema, - required=True, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor200ResponseBody = TransactionResponse -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor400ResponseBodyApplicationJson = Error -ResponseHeadersFor400 = typing_extensions.TypedDict( - 'ResponseHeadersFor400', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor400 - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - 'default': _response_for_default, -} -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_transaction_by_id_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Find a specific transaction by Fireblocks transaction ID - """ - path_params = {} - for parameter in ( - request_path_tx_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_tx_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetTransactionById(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_transaction_by_id(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_transaction_by_id_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_transaction_by_id_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/transactions_tx_id/get.pyi b/fireblocks_client/paths/transactions_tx_id/get.pyi deleted file mode 100644 index ef8366da..00000000 --- a/fireblocks_client/paths/transactions_tx_id/get.pyi +++ /dev/null @@ -1,220 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error import Error -from fireblocks_client.model.transaction_response import TransactionResponse - -# Path params -TxIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'txId': typing.Union[TxIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_tx_id = api_client.PathParameter( - name="txId", - style=api_client.ParameterStyle.SIMPLE, - schema=TxIdSchema, - required=True, -) -XRequestIDSchema = schemas.StrSchema -SchemaFor200ResponseBody = TransactionResponse -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor400ResponseBodyApplicationJson = Error -ResponseHeadersFor400 = typing_extensions.TypedDict( - 'ResponseHeadersFor400', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor400 - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_transaction_by_id_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Find a specific transaction by Fireblocks transaction ID - """ - path_params = {} - for parameter in ( - request_path_tx_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_tx_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetTransactionById(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_transaction_by_id(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_transaction_by_id_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_transaction_by_id_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/transactions_tx_id_cancel/__init__.py b/fireblocks_client/paths/transactions_tx_id_cancel/__init__.py deleted file mode 100644 index 0fe1dad4..00000000 --- a/fireblocks_client/paths/transactions_tx_id_cancel/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.transactions_tx_id_cancel import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.TRANSACTIONS_TX_ID_CANCEL \ No newline at end of file diff --git a/fireblocks_client/paths/transactions_tx_id_cancel/post.py b/fireblocks_client/paths/transactions_tx_id_cancel/post.py deleted file mode 100644 index 87a86fc5..00000000 --- a/fireblocks_client/paths/transactions_tx_id_cancel/post.py +++ /dev/null @@ -1,207 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error import Error -from fireblocks_client.model.cancel_transaction_response import CancelTransactionResponse - -from . import path - -# Path params -TxIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'txId': typing.Union[TxIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_tx_id = api_client.PathParameter( - name="txId", - style=api_client.ParameterStyle.SIMPLE, - schema=TxIdSchema, - required=True, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor200ResponseBody = CancelTransactionResponse -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, - 'default': _response_for_default, -} -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _cancel_transaction_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Cancel a transaction - """ - path_params = {} - for parameter in ( - request_path_tx_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_tx_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class CancelTransaction(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def cancel_transaction(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._cancel_transaction_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._cancel_transaction_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/transactions_tx_id_cancel/post.pyi b/fireblocks_client/paths/transactions_tx_id_cancel/post.pyi deleted file mode 100644 index b77ce122..00000000 --- a/fireblocks_client/paths/transactions_tx_id_cancel/post.pyi +++ /dev/null @@ -1,191 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error import Error -from fireblocks_client.model.cancel_transaction_response import CancelTransactionResponse - -# Path params -TxIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'txId': typing.Union[TxIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_tx_id = api_client.PathParameter( - name="txId", - style=api_client.ParameterStyle.SIMPLE, - schema=TxIdSchema, - required=True, -) -XRequestIDSchema = schemas.StrSchema -SchemaFor200ResponseBody = CancelTransactionResponse -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _cancel_transaction_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Cancel a transaction - """ - path_params = {} - for parameter in ( - request_path_tx_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_tx_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class CancelTransaction(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def cancel_transaction(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._cancel_transaction_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._cancel_transaction_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/transactions_tx_id_drop/__init__.py b/fireblocks_client/paths/transactions_tx_id_drop/__init__.py deleted file mode 100644 index f98ef4f7..00000000 --- a/fireblocks_client/paths/transactions_tx_id_drop/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.transactions_tx_id_drop import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.TRANSACTIONS_TX_ID_DROP \ No newline at end of file diff --git a/fireblocks_client/paths/transactions_tx_id_drop/post.py b/fireblocks_client/paths/transactions_tx_id_drop/post.py deleted file mode 100644 index 3f40bdfd..00000000 --- a/fireblocks_client/paths/transactions_tx_id_drop/post.py +++ /dev/null @@ -1,227 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.drop_transaction_response import DropTransactionResponse -from fireblocks_client.model.drop_transaction_request import DropTransactionRequest -from fireblocks_client.model.error import Error - -from . import path - -# Path params -TxIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'txId': typing.Union[TxIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_tx_id = api_client.PathParameter( - name="txId", - style=api_client.ParameterStyle.SIMPLE, - schema=TxIdSchema, - required=True, -) -# body param -SchemaForRequestBodyApplicationJson = DropTransactionRequest - - -request_body_drop_transaction_request = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor200ResponseBody = DropTransactionResponse -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, - 'default': _response_for_default, -} -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _drop_transaction_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - """ - Drop ETH transaction by ID - """ - path_params = {} - for parameter in ( - request_path_tx_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_tx_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_drop_transaction_request.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class DropTransaction(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def drop_transaction(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._drop_transaction_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._drop_transaction_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/transactions_tx_id_drop/post.pyi b/fireblocks_client/paths/transactions_tx_id_drop/post.pyi deleted file mode 100644 index 552ac342..00000000 --- a/fireblocks_client/paths/transactions_tx_id_drop/post.pyi +++ /dev/null @@ -1,211 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.drop_transaction_response import DropTransactionResponse -from fireblocks_client.model.drop_transaction_request import DropTransactionRequest -from fireblocks_client.model.error import Error - -# Path params -TxIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'txId': typing.Union[TxIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_tx_id = api_client.PathParameter( - name="txId", - style=api_client.ParameterStyle.SIMPLE, - schema=TxIdSchema, - required=True, -) -# body param -SchemaForRequestBodyApplicationJson = DropTransactionRequest - - -request_body_drop_transaction_request = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, -) -XRequestIDSchema = schemas.StrSchema -SchemaFor200ResponseBody = DropTransactionResponse -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _drop_transaction_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - """ - Drop ETH transaction by ID - """ - path_params = {} - for parameter in ( - request_path_tx_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_tx_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_drop_transaction_request.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class DropTransaction(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def drop_transaction(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._drop_transaction_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._drop_transaction_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/transactions_tx_id_freeze/__init__.py b/fireblocks_client/paths/transactions_tx_id_freeze/__init__.py deleted file mode 100644 index c62db917..00000000 --- a/fireblocks_client/paths/transactions_tx_id_freeze/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.transactions_tx_id_freeze import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.TRANSACTIONS_TX_ID_FREEZE \ No newline at end of file diff --git a/fireblocks_client/paths/transactions_tx_id_freeze/post.py b/fireblocks_client/paths/transactions_tx_id_freeze/post.py deleted file mode 100644 index 0fd1051e..00000000 --- a/fireblocks_client/paths/transactions_tx_id_freeze/post.py +++ /dev/null @@ -1,166 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.freeze_transaction_response import FreezeTransactionResponse - -from . import path - -# Path params -TxIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'txId': typing.Union[TxIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_tx_id = api_client.PathParameter( - name="txId", - style=api_client.ParameterStyle.SIMPLE, - schema=TxIdSchema, - required=True, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor200ResponseBody = FreezeTransactionResponse -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, -} -_all_accept_content_types = ( - '*/*', -) - - -class BaseApi(api_client.Api): - - def _freeze_transaction_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Freeze a transaction - """ - path_params = {} - for parameter in ( - request_path_tx_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_tx_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class FreezeTransaction(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def freeze_transaction(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._freeze_transaction_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._freeze_transaction_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/transactions_tx_id_freeze/post.pyi b/fireblocks_client/paths/transactions_tx_id_freeze/post.pyi deleted file mode 100644 index 9834984f..00000000 --- a/fireblocks_client/paths/transactions_tx_id_freeze/post.pyi +++ /dev/null @@ -1,156 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.freeze_transaction_response import FreezeTransactionResponse - -# Path params -TxIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'txId': typing.Union[TxIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_tx_id = api_client.PathParameter( - name="txId", - style=api_client.ParameterStyle.SIMPLE, - schema=TxIdSchema, - required=True, -) -XRequestIDSchema = schemas.StrSchema -SchemaFor200ResponseBody = FreezeTransactionResponse -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - '*/*', -) - - -class BaseApi(api_client.Api): - - def _freeze_transaction_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Freeze a transaction - """ - path_params = {} - for parameter in ( - request_path_tx_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_tx_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class FreezeTransaction(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def freeze_transaction(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._freeze_transaction_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._freeze_transaction_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/transactions_tx_id_set_confirmation_threshold/__init__.py b/fireblocks_client/paths/transactions_tx_id_set_confirmation_threshold/__init__.py deleted file mode 100644 index f63088e4..00000000 --- a/fireblocks_client/paths/transactions_tx_id_set_confirmation_threshold/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.transactions_tx_id_set_confirmation_threshold import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.TRANSACTIONS_TX_ID_SET_CONFIRMATION_THRESHOLD \ No newline at end of file diff --git a/fireblocks_client/paths/transactions_tx_id_set_confirmation_threshold/post.py b/fireblocks_client/paths/transactions_tx_id_set_confirmation_threshold/post.py deleted file mode 100644 index bca7a029..00000000 --- a/fireblocks_client/paths/transactions_tx_id_set_confirmation_threshold/post.py +++ /dev/null @@ -1,227 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.set_confirmations_threshold_response import SetConfirmationsThresholdResponse -from fireblocks_client.model.error import Error -from fireblocks_client.model.set_confirmations_threshold_request import SetConfirmationsThresholdRequest - -from . import path - -# Path params -TxIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'txId': typing.Union[TxIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_tx_id = api_client.PathParameter( - name="txId", - style=api_client.ParameterStyle.SIMPLE, - schema=TxIdSchema, - required=True, -) -# body param -SchemaForRequestBodyApplicationJson = SetConfirmationsThresholdRequest - - -request_body_set_confirmations_threshold_request = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor200ResponseBody = SetConfirmationsThresholdResponse -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, - 'default': _response_for_default, -} -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _set_confirmation_threshold_for_transaction_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - """ - Set confirmation threshold by transaction ID - """ - path_params = {} - for parameter in ( - request_path_tx_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_tx_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_set_confirmations_threshold_request.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class SetConfirmationThresholdForTransaction(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def set_confirmation_threshold_for_transaction(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._set_confirmation_threshold_for_transaction_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._set_confirmation_threshold_for_transaction_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/transactions_tx_id_set_confirmation_threshold/post.pyi b/fireblocks_client/paths/transactions_tx_id_set_confirmation_threshold/post.pyi deleted file mode 100644 index e31d6dce..00000000 --- a/fireblocks_client/paths/transactions_tx_id_set_confirmation_threshold/post.pyi +++ /dev/null @@ -1,211 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.set_confirmations_threshold_response import SetConfirmationsThresholdResponse -from fireblocks_client.model.error import Error -from fireblocks_client.model.set_confirmations_threshold_request import SetConfirmationsThresholdRequest - -# Path params -TxIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'txId': typing.Union[TxIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_tx_id = api_client.PathParameter( - name="txId", - style=api_client.ParameterStyle.SIMPLE, - schema=TxIdSchema, - required=True, -) -# body param -SchemaForRequestBodyApplicationJson = SetConfirmationsThresholdRequest - - -request_body_set_confirmations_threshold_request = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, -) -XRequestIDSchema = schemas.StrSchema -SchemaFor200ResponseBody = SetConfirmationsThresholdResponse -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _set_confirmation_threshold_for_transaction_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - """ - Set confirmation threshold by transaction ID - """ - path_params = {} - for parameter in ( - request_path_tx_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_tx_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_set_confirmations_threshold_request.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class SetConfirmationThresholdForTransaction(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def set_confirmation_threshold_for_transaction(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._set_confirmation_threshold_for_transaction_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._set_confirmation_threshold_for_transaction_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/transactions_tx_id_unfreeze/__init__.py b/fireblocks_client/paths/transactions_tx_id_unfreeze/__init__.py deleted file mode 100644 index f67b4990..00000000 --- a/fireblocks_client/paths/transactions_tx_id_unfreeze/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.transactions_tx_id_unfreeze import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.TRANSACTIONS_TX_ID_UNFREEZE \ No newline at end of file diff --git a/fireblocks_client/paths/transactions_tx_id_unfreeze/post.py b/fireblocks_client/paths/transactions_tx_id_unfreeze/post.py deleted file mode 100644 index ef3514c8..00000000 --- a/fireblocks_client/paths/transactions_tx_id_unfreeze/post.py +++ /dev/null @@ -1,166 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.unfreeze_transaction_response import UnfreezeTransactionResponse - -from . import path - -# Path params -TxIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'txId': typing.Union[TxIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_tx_id = api_client.PathParameter( - name="txId", - style=api_client.ParameterStyle.SIMPLE, - schema=TxIdSchema, - required=True, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor200ResponseBody = UnfreezeTransactionResponse -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, -} -_all_accept_content_types = ( - '*/*', -) - - -class BaseApi(api_client.Api): - - def _unfreeze_transaction_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Unfreeze a transaction - """ - path_params = {} - for parameter in ( - request_path_tx_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_tx_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class UnfreezeTransaction(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def unfreeze_transaction(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._unfreeze_transaction_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._unfreeze_transaction_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/transactions_tx_id_unfreeze/post.pyi b/fireblocks_client/paths/transactions_tx_id_unfreeze/post.pyi deleted file mode 100644 index 40793c61..00000000 --- a/fireblocks_client/paths/transactions_tx_id_unfreeze/post.pyi +++ /dev/null @@ -1,156 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.unfreeze_transaction_response import UnfreezeTransactionResponse - -# Path params -TxIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'txId': typing.Union[TxIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_tx_id = api_client.PathParameter( - name="txId", - style=api_client.ParameterStyle.SIMPLE, - schema=TxIdSchema, - required=True, -) -XRequestIDSchema = schemas.StrSchema -SchemaFor200ResponseBody = UnfreezeTransactionResponse -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - '*/*', -) - - -class BaseApi(api_client.Api): - - def _unfreeze_transaction_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Unfreeze a transaction - """ - path_params = {} - for parameter in ( - request_path_tx_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_tx_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class UnfreezeTransaction(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def unfreeze_transaction(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._unfreeze_transaction_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._unfreeze_transaction_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/transactions_validate_address_asset_id_address/__init__.py b/fireblocks_client/paths/transactions_validate_address_asset_id_address/__init__.py deleted file mode 100644 index f7e24a80..00000000 --- a/fireblocks_client/paths/transactions_validate_address_asset_id_address/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.transactions_validate_address_asset_id_address import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.TRANSACTIONS_VALIDATE_ADDRESS_ASSET_ID_ADDRESS \ No newline at end of file diff --git a/fireblocks_client/paths/transactions_validate_address_asset_id_address/get.py b/fireblocks_client/paths/transactions_validate_address_asset_id_address/get.py deleted file mode 100644 index 4be07a65..00000000 --- a/fireblocks_client/paths/transactions_validate_address_asset_id_address/get.py +++ /dev/null @@ -1,217 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.validate_address_response import ValidateAddressResponse -from fireblocks_client.model.error import Error - -from . import path - -# Path params -AssetIdSchema = schemas.StrSchema -AddressSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'assetId': typing.Union[AssetIdSchema, str, ], - 'address': typing.Union[AddressSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_asset_id = api_client.PathParameter( - name="assetId", - style=api_client.ParameterStyle.SIMPLE, - schema=AssetIdSchema, - required=True, -) -request_path_address = api_client.PathParameter( - name="address", - style=api_client.ParameterStyle.SIMPLE, - schema=AddressSchema, - required=True, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor200ResponseBody = ValidateAddressResponse -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, - 'default': _response_for_default, -} -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _validate_address_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Validate destination address - """ - path_params = {} - for parameter in ( - request_path_asset_id, - request_path_address, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_asset_id, - request_path_address, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class ValidateAddress(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def validate_address(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._validate_address_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._validate_address_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/transactions_validate_address_asset_id_address/get.pyi b/fireblocks_client/paths/transactions_validate_address_asset_id_address/get.pyi deleted file mode 100644 index 15f9dddb..00000000 --- a/fireblocks_client/paths/transactions_validate_address_asset_id_address/get.pyi +++ /dev/null @@ -1,201 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.validate_address_response import ValidateAddressResponse -from fireblocks_client.model.error import Error - -# Path params -AssetIdSchema = schemas.StrSchema -AddressSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'assetId': typing.Union[AssetIdSchema, str, ], - 'address': typing.Union[AddressSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_asset_id = api_client.PathParameter( - name="assetId", - style=api_client.ParameterStyle.SIMPLE, - schema=AssetIdSchema, - required=True, -) -request_path_address = api_client.PathParameter( - name="address", - style=api_client.ParameterStyle.SIMPLE, - schema=AddressSchema, - required=True, -) -XRequestIDSchema = schemas.StrSchema -SchemaFor200ResponseBody = ValidateAddressResponse -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _validate_address_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Validate destination address - """ - path_params = {} - for parameter in ( - request_path_asset_id, - request_path_address, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_asset_id, - request_path_address, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class ValidateAddress(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def validate_address(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._validate_address_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._validate_address_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/tx_hash_tx_hash_set_confirmation_threshold/__init__.py b/fireblocks_client/paths/tx_hash_tx_hash_set_confirmation_threshold/__init__.py deleted file mode 100644 index 81aec9ef..00000000 --- a/fireblocks_client/paths/tx_hash_tx_hash_set_confirmation_threshold/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.tx_hash_tx_hash_set_confirmation_threshold import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.TX_HASH_TX_HASH_SET_CONFIRMATION_THRESHOLD \ No newline at end of file diff --git a/fireblocks_client/paths/tx_hash_tx_hash_set_confirmation_threshold/post.py b/fireblocks_client/paths/tx_hash_tx_hash_set_confirmation_threshold/post.py deleted file mode 100644 index 82a9ced0..00000000 --- a/fireblocks_client/paths/tx_hash_tx_hash_set_confirmation_threshold/post.py +++ /dev/null @@ -1,227 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.set_confirmations_threshold_response import SetConfirmationsThresholdResponse -from fireblocks_client.model.error import Error -from fireblocks_client.model.set_confirmations_threshold_request import SetConfirmationsThresholdRequest - -from . import path - -# Path params -TxHashSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'txHash': typing.Union[TxHashSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_tx_hash = api_client.PathParameter( - name="txHash", - style=api_client.ParameterStyle.SIMPLE, - schema=TxHashSchema, - required=True, -) -# body param -SchemaForRequestBodyApplicationJson = SetConfirmationsThresholdRequest - - -request_body_set_confirmations_threshold_request = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor200ResponseBody = SetConfirmationsThresholdResponse -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, - 'default': _response_for_default, -} -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _set_confirmation_threshold_for_transaction_by_hash_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - """ - Set confirmation threshold by transaction hash - """ - path_params = {} - for parameter in ( - request_path_tx_hash, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_tx_hash, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_set_confirmations_threshold_request.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class SetConfirmationThresholdForTransactionByHash(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def set_confirmation_threshold_for_transaction_by_hash(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._set_confirmation_threshold_for_transaction_by_hash_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._set_confirmation_threshold_for_transaction_by_hash_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/tx_hash_tx_hash_set_confirmation_threshold/post.pyi b/fireblocks_client/paths/tx_hash_tx_hash_set_confirmation_threshold/post.pyi deleted file mode 100644 index fa96b428..00000000 --- a/fireblocks_client/paths/tx_hash_tx_hash_set_confirmation_threshold/post.pyi +++ /dev/null @@ -1,211 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.set_confirmations_threshold_response import SetConfirmationsThresholdResponse -from fireblocks_client.model.error import Error -from fireblocks_client.model.set_confirmations_threshold_request import SetConfirmationsThresholdRequest - -# Path params -TxHashSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'txHash': typing.Union[TxHashSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_tx_hash = api_client.PathParameter( - name="txHash", - style=api_client.ParameterStyle.SIMPLE, - schema=TxHashSchema, - required=True, -) -# body param -SchemaForRequestBodyApplicationJson = SetConfirmationsThresholdRequest - - -request_body_set_confirmations_threshold_request = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, -) -XRequestIDSchema = schemas.StrSchema -SchemaFor200ResponseBody = SetConfirmationsThresholdResponse -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _set_confirmation_threshold_for_transaction_by_hash_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - """ - Set confirmation threshold by transaction hash - """ - path_params = {} - for parameter in ( - request_path_tx_hash, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_tx_hash, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_set_confirmations_threshold_request.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class SetConfirmationThresholdForTransactionByHash(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def set_confirmation_threshold_for_transaction_by_hash(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._set_confirmation_threshold_for_transaction_by_hash_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._set_confirmation_threshold_for_transaction_by_hash_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/users/__init__.py b/fireblocks_client/paths/users/__init__.py deleted file mode 100644 index ff4384cb..00000000 --- a/fireblocks_client/paths/users/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.users import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.USERS \ No newline at end of file diff --git a/fireblocks_client/paths/users/get.py b/fireblocks_client/paths/users/get.py deleted file mode 100644 index bc396f14..00000000 --- a/fireblocks_client/paths/users/get.py +++ /dev/null @@ -1,161 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.get_users_response import GetUsersResponse -from fireblocks_client.model.error import Error - -from . import path - -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor200ResponseBody = GetUsersResponse -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, - 'default': _response_for_default, -} -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_users_oapg(self, request_options: RequestOptions = None): - """ - List users - """ - used_path = path.value - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetUsers(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_users(self , request_options: RequestOptions = None): - return self._get_users_oapg(request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , request_options: RequestOptions = None): - return self._get_users_oapg(request_options) - - diff --git a/fireblocks_client/paths/users/get.pyi b/fireblocks_client/paths/users/get.pyi deleted file mode 100644 index eeb7bc74..00000000 --- a/fireblocks_client/paths/users/get.pyi +++ /dev/null @@ -1,145 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.get_users_response import GetUsersResponse -from fireblocks_client.model.error import Error - -XRequestIDSchema = schemas.StrSchema -SchemaFor200ResponseBody = GetUsersResponse -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_users_oapg(self, request_options: RequestOptions = None): - """ - List users - """ - used_path = path.value - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetUsers(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_users(self , request_options: RequestOptions = None): - return self._get_users_oapg(request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , request_options: RequestOptions = None): - return self._get_users_oapg(request_options) - - diff --git a/fireblocks_client/paths/users_groups/__init__.py b/fireblocks_client/paths/users_groups/__init__.py deleted file mode 100644 index 7bf8b4a1..00000000 --- a/fireblocks_client/paths/users_groups/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.users_groups import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.USERS_GROUPS \ No newline at end of file diff --git a/fireblocks_client/paths/users_groups/get.py b/fireblocks_client/paths/users_groups/get.py deleted file mode 100644 index aa380b23..00000000 --- a/fireblocks_client/paths/users_groups/get.py +++ /dev/null @@ -1,161 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.users_groups_response import UsersGroupsResponse -from fireblocks_client.model.error import Error - -from . import path - -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor200ResponseBody = UsersGroupsResponse -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, - 'default': _response_for_default, -} -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_user_groups_oapg(self, request_options: RequestOptions = None): - """ - List users groups - """ - used_path = path.value - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetUserGroups(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_user_groups(self , request_options: RequestOptions = None): - return self._get_user_groups_oapg(request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , request_options: RequestOptions = None): - return self._get_user_groups_oapg(request_options) - - diff --git a/fireblocks_client/paths/users_groups/get.pyi b/fireblocks_client/paths/users_groups/get.pyi deleted file mode 100644 index 621810a6..00000000 --- a/fireblocks_client/paths/users_groups/get.pyi +++ /dev/null @@ -1,145 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.users_groups_response import UsersGroupsResponse -from fireblocks_client.model.error import Error - -XRequestIDSchema = schemas.StrSchema -SchemaFor200ResponseBody = UsersGroupsResponse -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_user_groups_oapg(self, request_options: RequestOptions = None): - """ - List users groups - """ - used_path = path.value - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetUserGroups(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_user_groups(self , request_options: RequestOptions = None): - return self._get_user_groups_oapg(request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , request_options: RequestOptions = None): - return self._get_user_groups_oapg(request_options) - - diff --git a/fireblocks_client/paths/users_groups/post.py b/fireblocks_client/paths/users_groups/post.py deleted file mode 100644 index 20eaba46..00000000 --- a/fireblocks_client/paths/users_groups/post.py +++ /dev/null @@ -1,182 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.user_group_create_request import UserGroupCreateRequest -from fireblocks_client.model.create_users_group_response import CreateUsersGroupResponse -from fireblocks_client.model.error import Error - -from . import path - -# body param -SchemaForRequestBodyApplicationJson = UserGroupCreateRequest - - -request_body_user_group_create_request = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor201ResponseBody = CreateUsersGroupResponse -ResponseHeadersFor201 = typing_extensions.TypedDict( - 'ResponseHeadersFor201', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor201(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor201ResponseBody, - ] - headers: ResponseHeadersFor201 - - -_response_for_201 = api_client.OpenApiResponse( - response_cls=ApiResponseFor201, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor201ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '201': _response_for_201, - 'default': _response_for_default, -} -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _create_user_group_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - """ - Create users group - """ - used_path = path.value - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_user_group_create_request.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class CreateUserGroup(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def create_user_group(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._create_user_group_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._create_user_group_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/users_groups/post.pyi b/fireblocks_client/paths/users_groups/post.pyi deleted file mode 100644 index ddf71956..00000000 --- a/fireblocks_client/paths/users_groups/post.pyi +++ /dev/null @@ -1,166 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.user_group_create_request import UserGroupCreateRequest -from fireblocks_client.model.create_users_group_response import CreateUsersGroupResponse -from fireblocks_client.model.error import Error - -# body param -SchemaForRequestBodyApplicationJson = UserGroupCreateRequest - - -request_body_user_group_create_request = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -XRequestIDSchema = schemas.StrSchema -SchemaFor201ResponseBody = CreateUsersGroupResponse -ResponseHeadersFor201 = typing_extensions.TypedDict( - 'ResponseHeadersFor201', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor201(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor201ResponseBody, - ] - headers: ResponseHeadersFor201 - - -_response_for_201 = api_client.OpenApiResponse( - response_cls=ApiResponseFor201, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor201ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _create_user_group_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - """ - Create users group - """ - used_path = path.value - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_user_group_create_request.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class CreateUserGroup(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def create_user_group(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._create_user_group_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._create_user_group_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/users_groups_group_id/__init__.py b/fireblocks_client/paths/users_groups_group_id/__init__.py deleted file mode 100644 index 7a1f5c12..00000000 --- a/fireblocks_client/paths/users_groups_group_id/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.users_groups_group_id import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.USERS_GROUPS_GROUP_ID \ No newline at end of file diff --git a/fireblocks_client/paths/users_groups_group_id/delete.py b/fireblocks_client/paths/users_groups_group_id/delete.py deleted file mode 100644 index 9d29a7d7..00000000 --- a/fireblocks_client/paths/users_groups_group_id/delete.py +++ /dev/null @@ -1,198 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error import Error - -from . import path - -# Path params -GroupIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'groupId': typing.Union[GroupIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_group_id = api_client.PathParameter( - name="groupId", - style=api_client.ParameterStyle.SIMPLE, - schema=GroupIdSchema, - required=True, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -ResponseHeadersFor204 = typing_extensions.TypedDict( - 'ResponseHeadersFor204', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor204(api_client.ApiResponse): - response: urllib3.HTTPResponse - headers: ResponseHeadersFor204 - body: schemas.Unset = schemas.unset - - -_response_for_204 = api_client.OpenApiResponse( - response_cls=ApiResponseFor204, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '204': _response_for_204, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _delete_user_group_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Delete users group - """ - path_params = {} - for parameter in ( - request_path_group_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_group_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='delete'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class DeleteUserGroup(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def delete_user_group(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._delete_user_group_oapg(params, request_options) - - -class ApiFordelete(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def delete(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._delete_user_group_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/users_groups_group_id/delete.pyi b/fireblocks_client/paths/users_groups_group_id/delete.pyi deleted file mode 100644 index 0c5170ff..00000000 --- a/fireblocks_client/paths/users_groups_group_id/delete.pyi +++ /dev/null @@ -1,182 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error import Error - -# Path params -GroupIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'groupId': typing.Union[GroupIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_group_id = api_client.PathParameter( - name="groupId", - style=api_client.ParameterStyle.SIMPLE, - schema=GroupIdSchema, - required=True, -) -XRequestIDSchema = schemas.StrSchema -ResponseHeadersFor204 = typing_extensions.TypedDict( - 'ResponseHeadersFor204', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor204(api_client.ApiResponse): - response: urllib3.HTTPResponse - headers: ResponseHeadersFor204 - body: schemas.Unset = schemas.unset - - -_response_for_204 = api_client.OpenApiResponse( - response_cls=ApiResponseFor204, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _delete_user_group_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Delete users group - """ - path_params = {} - for parameter in ( - request_path_group_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_group_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='delete'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class DeleteUserGroup(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def delete_user_group(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._delete_user_group_oapg(params, request_options) - - -class ApiFordelete(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def delete(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._delete_user_group_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/users_groups_group_id/get.py b/fireblocks_client/paths/users_groups_group_id/get.py deleted file mode 100644 index 63e1a31b..00000000 --- a/fireblocks_client/paths/users_groups_group_id/get.py +++ /dev/null @@ -1,207 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.users_group_response import UsersGroupResponse -from fireblocks_client.model.error import Error - -from . import path - -# Path params -GroupIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'groupId': typing.Union[GroupIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_group_id = api_client.PathParameter( - name="groupId", - style=api_client.ParameterStyle.SIMPLE, - schema=GroupIdSchema, - required=True, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor200ResponseBody = UsersGroupResponse -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, - 'default': _response_for_default, -} -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_user_group_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Get users group - """ - path_params = {} - for parameter in ( - request_path_group_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_group_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetUserGroup(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_user_group(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_user_group_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_user_group_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/users_groups_group_id/get.pyi b/fireblocks_client/paths/users_groups_group_id/get.pyi deleted file mode 100644 index 217fe017..00000000 --- a/fireblocks_client/paths/users_groups_group_id/get.pyi +++ /dev/null @@ -1,191 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.users_group_response import UsersGroupResponse -from fireblocks_client.model.error import Error - -# Path params -GroupIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'groupId': typing.Union[GroupIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_group_id = api_client.PathParameter( - name="groupId", - style=api_client.ParameterStyle.SIMPLE, - schema=GroupIdSchema, - required=True, -) -XRequestIDSchema = schemas.StrSchema -SchemaFor200ResponseBody = UsersGroupResponse -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_user_group_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Get users group - """ - path_params = {} - for parameter in ( - request_path_group_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_group_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetUserGroup(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_user_group(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_user_group_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_user_group_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/users_groups_group_id/put.py b/fireblocks_client/paths/users_groups_group_id/put.py deleted file mode 100644 index 8651a073..00000000 --- a/fireblocks_client/paths/users_groups_group_id/put.py +++ /dev/null @@ -1,228 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.user_group_update_request import UserGroupUpdateRequest -from fireblocks_client.model.user_group_create_response import UserGroupCreateResponse -from fireblocks_client.model.error import Error - -from . import path - -# Path params -GroupIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'groupId': typing.Union[GroupIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_group_id = api_client.PathParameter( - name="groupId", - style=api_client.ParameterStyle.SIMPLE, - schema=GroupIdSchema, - required=True, -) -# body param -SchemaForRequestBodyApplicationJson = UserGroupUpdateRequest - - -request_body_user_group_update_request = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor200ResponseBody = UserGroupCreateResponse -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, - 'default': _response_for_default, -} -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _update_user_group_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - """ - Update users group - """ - path_params = {} - for parameter in ( - request_path_group_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_group_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_user_group_update_request.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='put'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class UpdateUserGroup(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def update_user_group(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._update_user_group_oapg(params, request_options) - - -class ApiForput(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def put(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._update_user_group_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/users_groups_group_id/put.pyi b/fireblocks_client/paths/users_groups_group_id/put.pyi deleted file mode 100644 index 3a72ba4e..00000000 --- a/fireblocks_client/paths/users_groups_group_id/put.pyi +++ /dev/null @@ -1,212 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.user_group_update_request import UserGroupUpdateRequest -from fireblocks_client.model.user_group_create_response import UserGroupCreateResponse -from fireblocks_client.model.error import Error - -# Path params -GroupIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'groupId': typing.Union[GroupIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_group_id = api_client.PathParameter( - name="groupId", - style=api_client.ParameterStyle.SIMPLE, - schema=GroupIdSchema, - required=True, -) -# body param -SchemaForRequestBodyApplicationJson = UserGroupUpdateRequest - - -request_body_user_group_update_request = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -XRequestIDSchema = schemas.StrSchema -SchemaFor200ResponseBody = UserGroupCreateResponse -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _update_user_group_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - """ - Update users group - """ - path_params = {} - for parameter in ( - request_path_group_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_group_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_user_group_update_request.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='put'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class UpdateUserGroup(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def update_user_group(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._update_user_group_oapg(params, request_options) - - -class ApiForput(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def put(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._update_user_group_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/vault_accounts/__init__.py b/fireblocks_client/paths/vault_accounts/__init__.py deleted file mode 100644 index dbaaa36c..00000000 --- a/fireblocks_client/paths/vault_accounts/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.vault_accounts import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.VAULT_ACCOUNTS \ No newline at end of file diff --git a/fireblocks_client/paths/vault_accounts/get.py b/fireblocks_client/paths/vault_accounts/get.py deleted file mode 100644 index 30b43968..00000000 --- a/fireblocks_client/paths/vault_accounts/get.py +++ /dev/null @@ -1,262 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.vault_account import VaultAccount -from fireblocks_client.model.error import Error - -from . import path - -# Query params -NamePrefixSchema = schemas.StrSchema -NameSuffixSchema = schemas.StrSchema -MinAmountThresholdSchema = schemas.NumberSchema -AssetIdSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'namePrefix': typing.Union[NamePrefixSchema, str, ], - 'nameSuffix': typing.Union[NameSuffixSchema, str, ], - 'minAmountThreshold': typing.Union[MinAmountThresholdSchema, decimal.Decimal, int, float, ], - 'assetId': typing.Union[AssetIdSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_name_prefix = api_client.QueryParameter( - name="namePrefix", - style=api_client.ParameterStyle.FORM, - schema=NamePrefixSchema, - explode=True, -) -request_query_name_suffix = api_client.QueryParameter( - name="nameSuffix", - style=api_client.ParameterStyle.FORM, - schema=NameSuffixSchema, - explode=True, -) -request_query_min_amount_threshold = api_client.QueryParameter( - name="minAmountThreshold", - style=api_client.ParameterStyle.FORM, - schema=MinAmountThresholdSchema, - explode=True, -) -request_query_asset_id = api_client.QueryParameter( - name="assetId", - style=api_client.ParameterStyle.FORM, - schema=AssetIdSchema, - explode=True, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) - - -class SchemaFor200ResponseBody( - schemas.ListSchema -): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['VaultAccount']: - return VaultAccount - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['VaultAccount'], typing.List['VaultAccount']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'SchemaFor200ResponseBody': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'VaultAccount': - return super().__getitem__(i) -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, - 'default': _response_for_default, -} -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_vault_accounts_oapg(self, params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - """ - List vault accounts - """ - query_params = {} - if params and params.get("name_prefix"): - query_params["name_prefix"] = params.get("name_prefix") - if params and params.get("name_suffix"): - query_params["name_suffix"] = params.get("name_suffix") - if params and params.get("min_amount_threshold"): - query_params["min_amount_threshold"] = params.get("min_amount_threshold") - if params and params.get("asset_id"): - query_params["asset_id"] = params.get("asset_id") - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_name_prefix, - request_query_name_suffix, - request_query_min_amount_threshold, - request_query_asset_id, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetVaultAccounts(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_vault_accounts(self , params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - return self._get_vault_accounts_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - return self._get_vault_accounts_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/vault_accounts/get.pyi b/fireblocks_client/paths/vault_accounts/get.pyi deleted file mode 100644 index 13502bb8..00000000 --- a/fireblocks_client/paths/vault_accounts/get.pyi +++ /dev/null @@ -1,246 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.vault_account import VaultAccount -from fireblocks_client.model.error import Error - -# Query params -NamePrefixSchema = schemas.StrSchema -NameSuffixSchema = schemas.StrSchema -MinAmountThresholdSchema = schemas.NumberSchema -AssetIdSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'namePrefix': typing.Union[NamePrefixSchema, str, ], - 'nameSuffix': typing.Union[NameSuffixSchema, str, ], - 'minAmountThreshold': typing.Union[MinAmountThresholdSchema, decimal.Decimal, int, float, ], - 'assetId': typing.Union[AssetIdSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_name_prefix = api_client.QueryParameter( - name="namePrefix", - style=api_client.ParameterStyle.FORM, - schema=NamePrefixSchema, - explode=True, -) -request_query_name_suffix = api_client.QueryParameter( - name="nameSuffix", - style=api_client.ParameterStyle.FORM, - schema=NameSuffixSchema, - explode=True, -) -request_query_min_amount_threshold = api_client.QueryParameter( - name="minAmountThreshold", - style=api_client.ParameterStyle.FORM, - schema=MinAmountThresholdSchema, - explode=True, -) -request_query_asset_id = api_client.QueryParameter( - name="assetId", - style=api_client.ParameterStyle.FORM, - schema=AssetIdSchema, - explode=True, -) -XRequestIDSchema = schemas.StrSchema - - -class SchemaFor200ResponseBody( - schemas.ListSchema -): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['VaultAccount']: - return VaultAccount - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['VaultAccount'], typing.List['VaultAccount']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'SchemaFor200ResponseBody': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'VaultAccount': - return super().__getitem__(i) -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_vault_accounts_oapg(self, params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - """ - List vault accounts - """ - query_params = {} - if params and params.get("name_prefix"): - query_params["name_prefix"] = params.get("name_prefix") - if params and params.get("name_suffix"): - query_params["name_suffix"] = params.get("name_suffix") - if params and params.get("min_amount_threshold"): - query_params["min_amount_threshold"] = params.get("min_amount_threshold") - if params and params.get("asset_id"): - query_params["asset_id"] = params.get("asset_id") - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_name_prefix, - request_query_name_suffix, - request_query_min_amount_threshold, - request_query_asset_id, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetVaultAccounts(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_vault_accounts(self , params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - return self._get_vault_accounts_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - return self._get_vault_accounts_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/vault_accounts/post.py b/fireblocks_client/paths/vault_accounts/post.py deleted file mode 100644 index 9991dd26..00000000 --- a/fireblocks_client/paths/vault_accounts/post.py +++ /dev/null @@ -1,261 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.vault_account import VaultAccount -from fireblocks_client.model.error import Error - -from . import path - -# body param - - -class SchemaForRequestBodyApplicationJson( - schemas.AnyTypeSchema, -): - - - class MetaOapg: - - class properties: - name = schemas.StrSchema - hiddenOnUI = schemas.BoolSchema - customerRefId = schemas.StrSchema - autoFuel = schemas.BoolSchema - __annotations__ = { - "name": name, - "hiddenOnUI": hiddenOnUI, - "customerRefId": customerRefId, - "autoFuel": autoFuel, - } - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["hiddenOnUI"]) -> MetaOapg.properties.hiddenOnUI: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["customerRefId"]) -> MetaOapg.properties.customerRefId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["autoFuel"]) -> MetaOapg.properties.autoFuel: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "hiddenOnUI", "customerRefId", "autoFuel", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["hiddenOnUI"]) -> typing.Union[MetaOapg.properties.hiddenOnUI, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["customerRefId"]) -> typing.Union[MetaOapg.properties.customerRefId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["autoFuel"]) -> typing.Union[MetaOapg.properties.autoFuel, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "hiddenOnUI", "customerRefId", "autoFuel", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, - hiddenOnUI: typing.Union[MetaOapg.properties.hiddenOnUI, bool, schemas.Unset] = schemas.unset, - customerRefId: typing.Union[MetaOapg.properties.customerRefId, str, schemas.Unset] = schemas.unset, - autoFuel: typing.Union[MetaOapg.properties.autoFuel, bool, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaForRequestBodyApplicationJson': - return super().__new__( - cls, - *_args, - name=name, - hiddenOnUI=hiddenOnUI, - customerRefId=customerRefId, - autoFuel=autoFuel, - _configuration=_configuration, - **kwargs, - ) - - -request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor200ResponseBody = VaultAccount -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, - 'default': _response_for_default, -} -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _create_vault_account_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - """ - Create a new vault account - """ - used_path = path.value - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_any_type.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class CreateVaultAccount(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def create_vault_account(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._create_vault_account_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._create_vault_account_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/vault_accounts/post.pyi b/fireblocks_client/paths/vault_accounts/post.pyi deleted file mode 100644 index 9674b663..00000000 --- a/fireblocks_client/paths/vault_accounts/post.pyi +++ /dev/null @@ -1,245 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.vault_account import VaultAccount -from fireblocks_client.model.error import Error - -# body param - - -class SchemaForRequestBodyApplicationJson( - schemas.AnyTypeSchema, -): - - - class MetaOapg: - - class properties: - name = schemas.StrSchema - hiddenOnUI = schemas.BoolSchema - customerRefId = schemas.StrSchema - autoFuel = schemas.BoolSchema - __annotations__ = { - "name": name, - "hiddenOnUI": hiddenOnUI, - "customerRefId": customerRefId, - "autoFuel": autoFuel, - } - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["hiddenOnUI"]) -> MetaOapg.properties.hiddenOnUI: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["customerRefId"]) -> MetaOapg.properties.customerRefId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["autoFuel"]) -> MetaOapg.properties.autoFuel: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "hiddenOnUI", "customerRefId", "autoFuel", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["hiddenOnUI"]) -> typing.Union[MetaOapg.properties.hiddenOnUI, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["customerRefId"]) -> typing.Union[MetaOapg.properties.customerRefId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["autoFuel"]) -> typing.Union[MetaOapg.properties.autoFuel, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "hiddenOnUI", "customerRefId", "autoFuel", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, - hiddenOnUI: typing.Union[MetaOapg.properties.hiddenOnUI, bool, schemas.Unset] = schemas.unset, - customerRefId: typing.Union[MetaOapg.properties.customerRefId, str, schemas.Unset] = schemas.unset, - autoFuel: typing.Union[MetaOapg.properties.autoFuel, bool, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaForRequestBodyApplicationJson': - return super().__new__( - cls, - *_args, - name=name, - hiddenOnUI=hiddenOnUI, - customerRefId=customerRefId, - autoFuel=autoFuel, - _configuration=_configuration, - **kwargs, - ) - - -request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -XRequestIDSchema = schemas.StrSchema -SchemaFor200ResponseBody = VaultAccount -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _create_vault_account_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - """ - Create a new vault account - """ - used_path = path.value - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_any_type.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class CreateVaultAccount(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def create_vault_account(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._create_vault_account_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[SchemaForRequestBodyApplicationJson,] = None, request_options: RequestOptions = None): - return self._create_vault_account_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/vault_accounts_paged/__init__.py b/fireblocks_client/paths/vault_accounts_paged/__init__.py deleted file mode 100644 index 83761b18..00000000 --- a/fireblocks_client/paths/vault_accounts_paged/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.vault_accounts_paged import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.VAULT_ACCOUNTS_PAGED \ No newline at end of file diff --git a/fireblocks_client/paths/vault_accounts_paged/get.py b/fireblocks_client/paths/vault_accounts_paged/get.py deleted file mode 100644 index 13511903..00000000 --- a/fireblocks_client/paths/vault_accounts_paged/get.py +++ /dev/null @@ -1,269 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.vault_accounts_paged_response import VaultAccountsPagedResponse - -from . import path - -# Query params -NamePrefixSchema = schemas.StrSchema -NameSuffixSchema = schemas.StrSchema -MinAmountThresholdSchema = schemas.NumberSchema -AssetIdSchema = schemas.StrSchema - - -class OrderBySchema( - schemas.EnumBase, - schemas.StrSchema -): - - - class MetaOapg: - enum_value_to_name = { - "ASC": "ASC", - "DESC": "DESC", - } - - @schemas.classproperty - def ASC(cls): - return cls("ASC") - - @schemas.classproperty - def DESC(cls): - return cls("DESC") -BeforeSchema = schemas.StrSchema -AfterSchema = schemas.StrSchema - - -class LimitSchema( - schemas.NumberSchema -): - - - class MetaOapg: - inclusive_maximum = 500 - inclusive_minimum = 1 -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'namePrefix': typing.Union[NamePrefixSchema, str, ], - 'nameSuffix': typing.Union[NameSuffixSchema, str, ], - 'minAmountThreshold': typing.Union[MinAmountThresholdSchema, decimal.Decimal, int, float, ], - 'assetId': typing.Union[AssetIdSchema, str, ], - 'orderBy': typing.Union[OrderBySchema, str, ], - 'before': typing.Union[BeforeSchema, str, ], - 'after': typing.Union[AfterSchema, str, ], - 'limit': typing.Union[LimitSchema, decimal.Decimal, int, float, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_name_prefix = api_client.QueryParameter( - name="namePrefix", - style=api_client.ParameterStyle.FORM, - schema=NamePrefixSchema, - explode=True, -) -request_query_name_suffix = api_client.QueryParameter( - name="nameSuffix", - style=api_client.ParameterStyle.FORM, - schema=NameSuffixSchema, - explode=True, -) -request_query_min_amount_threshold = api_client.QueryParameter( - name="minAmountThreshold", - style=api_client.ParameterStyle.FORM, - schema=MinAmountThresholdSchema, - explode=True, -) -request_query_asset_id = api_client.QueryParameter( - name="assetId", - style=api_client.ParameterStyle.FORM, - schema=AssetIdSchema, - explode=True, -) -request_query_order_by = api_client.QueryParameter( - name="orderBy", - style=api_client.ParameterStyle.FORM, - schema=OrderBySchema, - explode=True, -) -request_query_before = api_client.QueryParameter( - name="before", - style=api_client.ParameterStyle.FORM, - schema=BeforeSchema, - explode=True, -) -request_query_after = api_client.QueryParameter( - name="after", - style=api_client.ParameterStyle.FORM, - schema=AfterSchema, - explode=True, -) -request_query_limit = api_client.QueryParameter( - name="limit", - style=api_client.ParameterStyle.FORM, - schema=LimitSchema, - explode=True, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor200ResponseBody = VaultAccountsPagedResponse -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, -} -_all_accept_content_types = ( - '*/*', -) - - -class BaseApi(api_client.Api): - - def _get_paged_vault_accounts_oapg(self, params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - """ - List vault acounts (Paginated) - """ - query_params = {} - if params and params.get("name_prefix"): - query_params["name_prefix"] = params.get("name_prefix") - if params and params.get("name_suffix"): - query_params["name_suffix"] = params.get("name_suffix") - if params and params.get("min_amount_threshold"): - query_params["min_amount_threshold"] = params.get("min_amount_threshold") - if params and params.get("asset_id"): - query_params["asset_id"] = params.get("asset_id") - if params and params.get("order_by"): - query_params["order_by"] = params.get("order_by") - if params and params.get("before"): - query_params["before"] = params.get("before") - if params and params.get("after"): - query_params["after"] = params.get("after") - if params and params.get("limit"): - query_params["limit"] = params.get("limit") - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_name_prefix, - request_query_name_suffix, - request_query_min_amount_threshold, - request_query_asset_id, - request_query_order_by, - request_query_before, - request_query_after, - request_query_limit, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetPagedVaultAccounts(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_paged_vault_accounts(self , params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - return self._get_paged_vault_accounts_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - return self._get_paged_vault_accounts_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/vault_accounts_paged/get.pyi b/fireblocks_client/paths/vault_accounts_paged/get.pyi deleted file mode 100644 index ad85a041..00000000 --- a/fireblocks_client/paths/vault_accounts_paged/get.pyi +++ /dev/null @@ -1,248 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.vault_accounts_paged_response import VaultAccountsPagedResponse - -# Query params -NamePrefixSchema = schemas.StrSchema -NameSuffixSchema = schemas.StrSchema -MinAmountThresholdSchema = schemas.NumberSchema -AssetIdSchema = schemas.StrSchema - - -class OrderBySchema( - schemas.EnumBase, - schemas.StrSchema -): - - @schemas.classproperty - def ASC(cls): - return cls("ASC") - - @schemas.classproperty - def DESC(cls): - return cls("DESC") -BeforeSchema = schemas.StrSchema -AfterSchema = schemas.StrSchema - - -class LimitSchema( - schemas.NumberSchema -): - pass -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'namePrefix': typing.Union[NamePrefixSchema, str, ], - 'nameSuffix': typing.Union[NameSuffixSchema, str, ], - 'minAmountThreshold': typing.Union[MinAmountThresholdSchema, decimal.Decimal, int, float, ], - 'assetId': typing.Union[AssetIdSchema, str, ], - 'orderBy': typing.Union[OrderBySchema, str, ], - 'before': typing.Union[BeforeSchema, str, ], - 'after': typing.Union[AfterSchema, str, ], - 'limit': typing.Union[LimitSchema, decimal.Decimal, int, float, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_name_prefix = api_client.QueryParameter( - name="namePrefix", - style=api_client.ParameterStyle.FORM, - schema=NamePrefixSchema, - explode=True, -) -request_query_name_suffix = api_client.QueryParameter( - name="nameSuffix", - style=api_client.ParameterStyle.FORM, - schema=NameSuffixSchema, - explode=True, -) -request_query_min_amount_threshold = api_client.QueryParameter( - name="minAmountThreshold", - style=api_client.ParameterStyle.FORM, - schema=MinAmountThresholdSchema, - explode=True, -) -request_query_asset_id = api_client.QueryParameter( - name="assetId", - style=api_client.ParameterStyle.FORM, - schema=AssetIdSchema, - explode=True, -) -request_query_order_by = api_client.QueryParameter( - name="orderBy", - style=api_client.ParameterStyle.FORM, - schema=OrderBySchema, - explode=True, -) -request_query_before = api_client.QueryParameter( - name="before", - style=api_client.ParameterStyle.FORM, - schema=BeforeSchema, - explode=True, -) -request_query_after = api_client.QueryParameter( - name="after", - style=api_client.ParameterStyle.FORM, - schema=AfterSchema, - explode=True, -) -request_query_limit = api_client.QueryParameter( - name="limit", - style=api_client.ParameterStyle.FORM, - schema=LimitSchema, - explode=True, -) -XRequestIDSchema = schemas.StrSchema -SchemaFor200ResponseBody = VaultAccountsPagedResponse -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - '*/*', -) - - -class BaseApi(api_client.Api): - - def _get_paged_vault_accounts_oapg(self, params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - """ - List vault acounts (Paginated) - """ - query_params = {} - if params and params.get("name_prefix"): - query_params["name_prefix"] = params.get("name_prefix") - if params and params.get("name_suffix"): - query_params["name_suffix"] = params.get("name_suffix") - if params and params.get("min_amount_threshold"): - query_params["min_amount_threshold"] = params.get("min_amount_threshold") - if params and params.get("asset_id"): - query_params["asset_id"] = params.get("asset_id") - if params and params.get("order_by"): - query_params["order_by"] = params.get("order_by") - if params and params.get("before"): - query_params["before"] = params.get("before") - if params and params.get("after"): - query_params["after"] = params.get("after") - if params and params.get("limit"): - query_params["limit"] = params.get("limit") - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_name_prefix, - request_query_name_suffix, - request_query_min_amount_threshold, - request_query_asset_id, - request_query_order_by, - request_query_before, - request_query_after, - request_query_limit, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetPagedVaultAccounts(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_paged_vault_accounts(self , params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - return self._get_paged_vault_accounts_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - return self._get_paged_vault_accounts_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id/__init__.py b/fireblocks_client/paths/vault_accounts_vault_account_id/__init__.py deleted file mode 100644 index b843b0a8..00000000 --- a/fireblocks_client/paths/vault_accounts_vault_account_id/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.vault_accounts_vault_account_id import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.VAULT_ACCOUNTS_VAULT_ACCOUNT_ID \ No newline at end of file diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id/get.py b/fireblocks_client/paths/vault_accounts_vault_account_id/get.py deleted file mode 100644 index 4cf9bfc4..00000000 --- a/fireblocks_client/paths/vault_accounts_vault_account_id/get.py +++ /dev/null @@ -1,207 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.vault_account import VaultAccount -from fireblocks_client.model.error import Error - -from . import path - -# Path params -VaultAccountIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'vaultAccountId': typing.Union[VaultAccountIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_vault_account_id = api_client.PathParameter( - name="vaultAccountId", - style=api_client.ParameterStyle.SIMPLE, - schema=VaultAccountIdSchema, - required=True, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor200ResponseBody = VaultAccount -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, - 'default': _response_for_default, -} -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_vault_account_by_id_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Find a vault account by ID - """ - path_params = {} - for parameter in ( - request_path_vault_account_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_vault_account_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetVaultAccountById(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_vault_account_by_id(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_vault_account_by_id_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_vault_account_by_id_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id/get.pyi b/fireblocks_client/paths/vault_accounts_vault_account_id/get.pyi deleted file mode 100644 index 4282d49f..00000000 --- a/fireblocks_client/paths/vault_accounts_vault_account_id/get.pyi +++ /dev/null @@ -1,191 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.vault_account import VaultAccount -from fireblocks_client.model.error import Error - -# Path params -VaultAccountIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'vaultAccountId': typing.Union[VaultAccountIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_vault_account_id = api_client.PathParameter( - name="vaultAccountId", - style=api_client.ParameterStyle.SIMPLE, - schema=VaultAccountIdSchema, - required=True, -) -XRequestIDSchema = schemas.StrSchema -SchemaFor200ResponseBody = VaultAccount -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_vault_account_by_id_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Find a vault account by ID - """ - path_params = {} - for parameter in ( - request_path_vault_account_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_vault_account_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetVaultAccountById(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_vault_account_by_id(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_vault_account_by_id_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_vault_account_by_id_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id/put.py b/fireblocks_client/paths/vault_accounts_vault_account_id/put.py deleted file mode 100644 index d3c28c68..00000000 --- a/fireblocks_client/paths/vault_accounts_vault_account_id/put.py +++ /dev/null @@ -1,268 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error import Error - -from . import path - -# Path params -VaultAccountIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'vaultAccountId': typing.Union[VaultAccountIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_vault_account_id = api_client.PathParameter( - name="vaultAccountId", - style=api_client.ParameterStyle.SIMPLE, - schema=VaultAccountIdSchema, - required=True, -) -# body param - - -class SchemaForRequestBodyApplicationJson( - schemas.AnyTypeSchema, -): - - - class MetaOapg: - - class properties: - name = schemas.StrSchema - __annotations__ = { - "name": name, - } - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaForRequestBodyApplicationJson': - return super().__new__( - cls, - *_args, - name=name, - _configuration=_configuration, - **kwargs, - ) - - -request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -ResponseHeadersFor201 = typing_extensions.TypedDict( - 'ResponseHeadersFor201', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor201(api_client.ApiResponse): - response: urllib3.HTTPResponse - headers: ResponseHeadersFor201 - body: schemas.Unset = schemas.unset - - -_response_for_201 = api_client.OpenApiResponse( - response_cls=ApiResponseFor201, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '201': _response_for_201, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _update_vault_account_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - """ - Rename a vault account - """ - path_params = {} - for parameter in ( - request_path_vault_account_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_vault_account_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_any_type.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='put'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class UpdateVaultAccount(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def update_vault_account(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._update_vault_account_oapg(params, request_options) - - -class ApiForput(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def put(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._update_vault_account_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id/put.pyi b/fireblocks_client/paths/vault_accounts_vault_account_id/put.pyi deleted file mode 100644 index ec74cae3..00000000 --- a/fireblocks_client/paths/vault_accounts_vault_account_id/put.pyi +++ /dev/null @@ -1,252 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error import Error - -# Path params -VaultAccountIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'vaultAccountId': typing.Union[VaultAccountIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_vault_account_id = api_client.PathParameter( - name="vaultAccountId", - style=api_client.ParameterStyle.SIMPLE, - schema=VaultAccountIdSchema, - required=True, -) -# body param - - -class SchemaForRequestBodyApplicationJson( - schemas.AnyTypeSchema, -): - - - class MetaOapg: - - class properties: - name = schemas.StrSchema - __annotations__ = { - "name": name, - } - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaForRequestBodyApplicationJson': - return super().__new__( - cls, - *_args, - name=name, - _configuration=_configuration, - **kwargs, - ) - - -request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -XRequestIDSchema = schemas.StrSchema -ResponseHeadersFor201 = typing_extensions.TypedDict( - 'ResponseHeadersFor201', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor201(api_client.ApiResponse): - response: urllib3.HTTPResponse - headers: ResponseHeadersFor201 - body: schemas.Unset = schemas.unset - - -_response_for_201 = api_client.OpenApiResponse( - response_cls=ApiResponseFor201, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _update_vault_account_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - """ - Rename a vault account - """ - path_params = {} - for parameter in ( - request_path_vault_account_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_vault_account_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_any_type.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='put'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class UpdateVaultAccount(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def update_vault_account(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._update_vault_account_oapg(params, request_options) - - -class ApiForput(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def put(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._update_vault_account_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id/__init__.py b/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id/__init__.py deleted file mode 100644 index 46075d81..00000000 --- a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.vault_accounts_vault_account_id_asset_id import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.VAULT_ACCOUNTS_VAULT_ACCOUNT_ID_ASSET_ID \ No newline at end of file diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id/get.py b/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id/get.py deleted file mode 100644 index 99e90045..00000000 --- a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id/get.py +++ /dev/null @@ -1,202 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.vault_asset import VaultAsset -from fireblocks_client.model.error import Error - -from . import path - -# Path params -VaultAccountIdSchema = schemas.StrSchema -AssetIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'vaultAccountId': typing.Union[VaultAccountIdSchema, str, ], - 'assetId': typing.Union[AssetIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_vault_account_id = api_client.PathParameter( - name="vaultAccountId", - style=api_client.ParameterStyle.SIMPLE, - schema=VaultAccountIdSchema, - required=True, -) -request_path_asset_id = api_client.PathParameter( - name="assetId", - style=api_client.ParameterStyle.SIMPLE, - schema=AssetIdSchema, - required=True, -) -SchemaFor200ResponseBody = VaultAsset - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, - 'default': _response_for_default, -} -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_vault_account_asset_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Get the asset balance for a vault account - """ - path_params = {} - for parameter in ( - request_path_vault_account_id, - request_path_asset_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_vault_account_id, - request_path_asset_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetVaultAccountAsset(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_vault_account_asset(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_vault_account_asset_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_vault_account_asset_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id/get.pyi b/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id/get.pyi deleted file mode 100644 index 59c7d2f5..00000000 --- a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id/get.pyi +++ /dev/null @@ -1,191 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.vault_asset import VaultAsset -from fireblocks_client.model.error import Error - -# Path params -VaultAccountIdSchema = schemas.StrSchema -AssetIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'vaultAccountId': typing.Union[VaultAccountIdSchema, str, ], - 'assetId': typing.Union[AssetIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_vault_account_id = api_client.PathParameter( - name="vaultAccountId", - style=api_client.ParameterStyle.SIMPLE, - schema=VaultAccountIdSchema, - required=True, -) -request_path_asset_id = api_client.PathParameter( - name="assetId", - style=api_client.ParameterStyle.SIMPLE, - schema=AssetIdSchema, - required=True, -) -SchemaFor200ResponseBody = VaultAsset - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_vault_account_asset_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Get the asset balance for a vault account - """ - path_params = {} - for parameter in ( - request_path_vault_account_id, - request_path_asset_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_vault_account_id, - request_path_asset_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetVaultAccountAsset(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_vault_account_asset(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_vault_account_asset_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_vault_account_asset_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id/post.py b/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id/post.py deleted file mode 100644 index 5bce3274..00000000 --- a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id/post.py +++ /dev/null @@ -1,286 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.create_vault_asset_response import CreateVaultAssetResponse -from fireblocks_client.model.error import Error - -from . import path - -# Path params -VaultAccountIdSchema = schemas.StrSchema -AssetIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'vaultAccountId': typing.Union[VaultAccountIdSchema, str, ], - 'assetId': typing.Union[AssetIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_vault_account_id = api_client.PathParameter( - name="vaultAccountId", - style=api_client.ParameterStyle.SIMPLE, - schema=VaultAccountIdSchema, - required=True, -) -request_path_asset_id = api_client.PathParameter( - name="assetId", - style=api_client.ParameterStyle.SIMPLE, - schema=AssetIdSchema, - required=True, -) -# body param - - -class SchemaForRequestBodyApplicationJson( - schemas.AnyTypeSchema, -): - - - class MetaOapg: - - class properties: - eosAccountName = schemas.StrSchema - __annotations__ = { - "eosAccountName": eosAccountName, - } - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["eosAccountName"]) -> MetaOapg.properties.eosAccountName: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["eosAccountName", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["eosAccountName"]) -> typing.Union[MetaOapg.properties.eosAccountName, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["eosAccountName", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - eosAccountName: typing.Union[MetaOapg.properties.eosAccountName, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaForRequestBodyApplicationJson': - return super().__new__( - cls, - *_args, - eosAccountName=eosAccountName, - _configuration=_configuration, - **kwargs, - ) - - -request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor200ResponseBody = CreateVaultAssetResponse -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, - 'default': _response_for_default, -} -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _create_vault_account_asset_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - """ - Create a new wallet - """ - path_params = {} - for parameter in ( - request_path_vault_account_id, - request_path_asset_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_vault_account_id, - request_path_asset_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_any_type.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class CreateVaultAccountAsset(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def create_vault_account_asset(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._create_vault_account_asset_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._create_vault_account_asset_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id/post.pyi b/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id/post.pyi deleted file mode 100644 index 806cd4ef..00000000 --- a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id/post.pyi +++ /dev/null @@ -1,270 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.create_vault_asset_response import CreateVaultAssetResponse -from fireblocks_client.model.error import Error - -# Path params -VaultAccountIdSchema = schemas.StrSchema -AssetIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'vaultAccountId': typing.Union[VaultAccountIdSchema, str, ], - 'assetId': typing.Union[AssetIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_vault_account_id = api_client.PathParameter( - name="vaultAccountId", - style=api_client.ParameterStyle.SIMPLE, - schema=VaultAccountIdSchema, - required=True, -) -request_path_asset_id = api_client.PathParameter( - name="assetId", - style=api_client.ParameterStyle.SIMPLE, - schema=AssetIdSchema, - required=True, -) -# body param - - -class SchemaForRequestBodyApplicationJson( - schemas.AnyTypeSchema, -): - - - class MetaOapg: - - class properties: - eosAccountName = schemas.StrSchema - __annotations__ = { - "eosAccountName": eosAccountName, - } - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["eosAccountName"]) -> MetaOapg.properties.eosAccountName: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["eosAccountName", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["eosAccountName"]) -> typing.Union[MetaOapg.properties.eosAccountName, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["eosAccountName", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - eosAccountName: typing.Union[MetaOapg.properties.eosAccountName, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaForRequestBodyApplicationJson': - return super().__new__( - cls, - *_args, - eosAccountName=eosAccountName, - _configuration=_configuration, - **kwargs, - ) - - -request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, -) -XRequestIDSchema = schemas.StrSchema -SchemaFor200ResponseBody = CreateVaultAssetResponse -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _create_vault_account_asset_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - """ - Create a new wallet - """ - path_params = {} - for parameter in ( - request_path_vault_account_id, - request_path_asset_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_vault_account_id, - request_path_asset_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_any_type.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class CreateVaultAccountAsset(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def create_vault_account_asset(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._create_vault_account_asset_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._create_vault_account_asset_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_activate/__init__.py b/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_activate/__init__.py deleted file mode 100644 index 057ab56f..00000000 --- a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_activate/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.vault_accounts_vault_account_id_asset_id_activate import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.VAULT_ACCOUNTS_VAULT_ACCOUNT_ID_ASSET_ID_ACTIVATE \ No newline at end of file diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_activate/post.py b/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_activate/post.py deleted file mode 100644 index 98dafaf5..00000000 --- a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_activate/post.py +++ /dev/null @@ -1,217 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.create_vault_asset_response import CreateVaultAssetResponse -from fireblocks_client.model.error import Error - -from . import path - -# Path params -VaultAccountIdSchema = schemas.StrSchema -AssetIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'vaultAccountId': typing.Union[VaultAccountIdSchema, str, ], - 'assetId': typing.Union[AssetIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_vault_account_id = api_client.PathParameter( - name="vaultAccountId", - style=api_client.ParameterStyle.SIMPLE, - schema=VaultAccountIdSchema, - required=True, -) -request_path_asset_id = api_client.PathParameter( - name="assetId", - style=api_client.ParameterStyle.SIMPLE, - schema=AssetIdSchema, - required=True, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor200ResponseBody = CreateVaultAssetResponse -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, - 'default': _response_for_default, -} -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _activate_asset_for_vault_account_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Activate a wallet in a vault account - """ - path_params = {} - for parameter in ( - request_path_vault_account_id, - request_path_asset_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_vault_account_id, - request_path_asset_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class ActivateAssetForVaultAccount(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def activate_asset_for_vault_account(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._activate_asset_for_vault_account_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._activate_asset_for_vault_account_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_activate/post.pyi b/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_activate/post.pyi deleted file mode 100644 index 48221d26..00000000 --- a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_activate/post.pyi +++ /dev/null @@ -1,201 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.create_vault_asset_response import CreateVaultAssetResponse -from fireblocks_client.model.error import Error - -# Path params -VaultAccountIdSchema = schemas.StrSchema -AssetIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'vaultAccountId': typing.Union[VaultAccountIdSchema, str, ], - 'assetId': typing.Union[AssetIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_vault_account_id = api_client.PathParameter( - name="vaultAccountId", - style=api_client.ParameterStyle.SIMPLE, - schema=VaultAccountIdSchema, - required=True, -) -request_path_asset_id = api_client.PathParameter( - name="assetId", - style=api_client.ParameterStyle.SIMPLE, - schema=AssetIdSchema, - required=True, -) -XRequestIDSchema = schemas.StrSchema -SchemaFor200ResponseBody = CreateVaultAssetResponse -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _activate_asset_for_vault_account_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Activate a wallet in a vault account - """ - path_params = {} - for parameter in ( - request_path_vault_account_id, - request_path_asset_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_vault_account_id, - request_path_asset_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class ActivateAssetForVaultAccount(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def activate_asset_for_vault_account(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._activate_asset_for_vault_account_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._activate_asset_for_vault_account_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses/__init__.py b/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses/__init__.py deleted file mode 100644 index 6a5d5132..00000000 --- a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.vault_accounts_vault_account_id_asset_id_addresses import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.VAULT_ACCOUNTS_VAULT_ACCOUNT_ID_ASSET_ID_ADDRESSES \ No newline at end of file diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses/get.py b/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses/get.py deleted file mode 100644 index e5516c9c..00000000 --- a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses/get.py +++ /dev/null @@ -1,242 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.vault_wallet_address import VaultWalletAddress -from fireblocks_client.model.error import Error - -from . import path - -# Path params -VaultAccountIdSchema = schemas.StrSchema -AssetIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'vaultAccountId': typing.Union[VaultAccountIdSchema, str, ], - 'assetId': typing.Union[AssetIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_vault_account_id = api_client.PathParameter( - name="vaultAccountId", - style=api_client.ParameterStyle.SIMPLE, - schema=VaultAccountIdSchema, - required=True, -) -request_path_asset_id = api_client.PathParameter( - name="assetId", - style=api_client.ParameterStyle.SIMPLE, - schema=AssetIdSchema, - required=True, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) - - -class SchemaFor200ResponseBody( - schemas.ListSchema -): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['VaultWalletAddress']: - return VaultWalletAddress - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['VaultWalletAddress'], typing.List['VaultWalletAddress']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'SchemaFor200ResponseBody': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'VaultWalletAddress': - return super().__getitem__(i) -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, - 'default': _response_for_default, -} -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_vault_account_asset_addresses_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Get asset addresses - """ - path_params = {} - for parameter in ( - request_path_vault_account_id, - request_path_asset_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_vault_account_id, - request_path_asset_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetVaultAccountAssetAddresses(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_vault_account_asset_addresses(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_vault_account_asset_addresses_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_vault_account_asset_addresses_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses/get.pyi b/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses/get.pyi deleted file mode 100644 index 21b2f021..00000000 --- a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses/get.pyi +++ /dev/null @@ -1,226 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.vault_wallet_address import VaultWalletAddress -from fireblocks_client.model.error import Error - -# Path params -VaultAccountIdSchema = schemas.StrSchema -AssetIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'vaultAccountId': typing.Union[VaultAccountIdSchema, str, ], - 'assetId': typing.Union[AssetIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_vault_account_id = api_client.PathParameter( - name="vaultAccountId", - style=api_client.ParameterStyle.SIMPLE, - schema=VaultAccountIdSchema, - required=True, -) -request_path_asset_id = api_client.PathParameter( - name="assetId", - style=api_client.ParameterStyle.SIMPLE, - schema=AssetIdSchema, - required=True, -) -XRequestIDSchema = schemas.StrSchema - - -class SchemaFor200ResponseBody( - schemas.ListSchema -): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['VaultWalletAddress']: - return VaultWalletAddress - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['VaultWalletAddress'], typing.List['VaultWalletAddress']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'SchemaFor200ResponseBody': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'VaultWalletAddress': - return super().__getitem__(i) -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_vault_account_asset_addresses_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Get asset addresses - """ - path_params = {} - for parameter in ( - request_path_vault_account_id, - request_path_asset_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_vault_account_id, - request_path_asset_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetVaultAccountAssetAddresses(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_vault_account_asset_addresses(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_vault_account_asset_addresses_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_vault_account_asset_addresses_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses/post.py b/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses/post.py deleted file mode 100644 index 5f4a37a6..00000000 --- a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses/post.py +++ /dev/null @@ -1,296 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.create_address_response import CreateAddressResponse -from fireblocks_client.model.error import Error - -from . import path - -# Path params -VaultAccountIdSchema = schemas.StrSchema -AssetIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'vaultAccountId': typing.Union[VaultAccountIdSchema, str, ], - 'assetId': typing.Union[AssetIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_vault_account_id = api_client.PathParameter( - name="vaultAccountId", - style=api_client.ParameterStyle.SIMPLE, - schema=VaultAccountIdSchema, - required=True, -) -request_path_asset_id = api_client.PathParameter( - name="assetId", - style=api_client.ParameterStyle.SIMPLE, - schema=AssetIdSchema, - required=True, -) -# body param - - -class SchemaForRequestBodyApplicationJson( - schemas.AnyTypeSchema, -): - - - class MetaOapg: - - class properties: - description = schemas.StrSchema - customerRefId = schemas.StrSchema - __annotations__ = { - "description": description, - "customerRefId": customerRefId, - } - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["description"]) -> MetaOapg.properties.description: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["customerRefId"]) -> MetaOapg.properties.customerRefId: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["description", "customerRefId", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["description"]) -> typing.Union[MetaOapg.properties.description, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["customerRefId"]) -> typing.Union[MetaOapg.properties.customerRefId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["description", "customerRefId", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - description: typing.Union[MetaOapg.properties.description, str, schemas.Unset] = schemas.unset, - customerRefId: typing.Union[MetaOapg.properties.customerRefId, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaForRequestBodyApplicationJson': - return super().__new__( - cls, - *_args, - description=description, - customerRefId=customerRefId, - _configuration=_configuration, - **kwargs, - ) - - -request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor200ResponseBody = CreateAddressResponse -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, - 'default': _response_for_default, -} -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _create_vault_account_asset_address_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - """ - Create new asset deposit address - """ - path_params = {} - for parameter in ( - request_path_vault_account_id, - request_path_asset_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_vault_account_id, - request_path_asset_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_any_type.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class CreateVaultAccountAssetAddress(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def create_vault_account_asset_address(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._create_vault_account_asset_address_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._create_vault_account_asset_address_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses/post.pyi b/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses/post.pyi deleted file mode 100644 index d40033ef..00000000 --- a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses/post.pyi +++ /dev/null @@ -1,280 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.create_address_response import CreateAddressResponse -from fireblocks_client.model.error import Error - -# Path params -VaultAccountIdSchema = schemas.StrSchema -AssetIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'vaultAccountId': typing.Union[VaultAccountIdSchema, str, ], - 'assetId': typing.Union[AssetIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_vault_account_id = api_client.PathParameter( - name="vaultAccountId", - style=api_client.ParameterStyle.SIMPLE, - schema=VaultAccountIdSchema, - required=True, -) -request_path_asset_id = api_client.PathParameter( - name="assetId", - style=api_client.ParameterStyle.SIMPLE, - schema=AssetIdSchema, - required=True, -) -# body param - - -class SchemaForRequestBodyApplicationJson( - schemas.AnyTypeSchema, -): - - - class MetaOapg: - - class properties: - description = schemas.StrSchema - customerRefId = schemas.StrSchema - __annotations__ = { - "description": description, - "customerRefId": customerRefId, - } - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["description"]) -> MetaOapg.properties.description: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["customerRefId"]) -> MetaOapg.properties.customerRefId: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["description", "customerRefId", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["description"]) -> typing.Union[MetaOapg.properties.description, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["customerRefId"]) -> typing.Union[MetaOapg.properties.customerRefId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["description", "customerRefId", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - description: typing.Union[MetaOapg.properties.description, str, schemas.Unset] = schemas.unset, - customerRefId: typing.Union[MetaOapg.properties.customerRefId, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaForRequestBodyApplicationJson': - return super().__new__( - cls, - *_args, - description=description, - customerRefId=customerRefId, - _configuration=_configuration, - **kwargs, - ) - - -request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, -) -XRequestIDSchema = schemas.StrSchema -SchemaFor200ResponseBody = CreateAddressResponse -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _create_vault_account_asset_address_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - """ - Create new asset deposit address - """ - path_params = {} - for parameter in ( - request_path_vault_account_id, - request_path_asset_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_vault_account_id, - request_path_asset_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_any_type.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class CreateVaultAccountAssetAddress(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def create_vault_account_asset_address(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._create_vault_account_asset_address_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._create_vault_account_asset_address_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses_address_id/__init__.py b/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses_address_id/__init__.py deleted file mode 100644 index 60bcb760..00000000 --- a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses_address_id/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.vault_accounts_vault_account_id_asset_id_addresses_address_id import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.VAULT_ACCOUNTS_VAULT_ACCOUNT_ID_ASSET_ID_ADDRESSES_ADDRESS_ID \ No newline at end of file diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses_address_id/put.py b/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses_address_id/put.py deleted file mode 100644 index a89b4aa2..00000000 --- a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses_address_id/put.py +++ /dev/null @@ -1,287 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error import Error - -from . import path - -# Path params -VaultAccountIdSchema = schemas.StrSchema -AssetIdSchema = schemas.StrSchema -AddressIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'vaultAccountId': typing.Union[VaultAccountIdSchema, str, ], - 'assetId': typing.Union[AssetIdSchema, str, ], - 'addressId': typing.Union[AddressIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_vault_account_id = api_client.PathParameter( - name="vaultAccountId", - style=api_client.ParameterStyle.SIMPLE, - schema=VaultAccountIdSchema, - required=True, -) -request_path_asset_id = api_client.PathParameter( - name="assetId", - style=api_client.ParameterStyle.SIMPLE, - schema=AssetIdSchema, - required=True, -) -request_path_address_id = api_client.PathParameter( - name="addressId", - style=api_client.ParameterStyle.SIMPLE, - schema=AddressIdSchema, - required=True, -) -# body param - - -class SchemaForRequestBodyApplicationJson( - schemas.AnyTypeSchema, -): - - - class MetaOapg: - - class properties: - description = schemas.StrSchema - __annotations__ = { - "description": description, - } - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["description"]) -> MetaOapg.properties.description: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["description", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["description"]) -> typing.Union[MetaOapg.properties.description, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["description", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - description: typing.Union[MetaOapg.properties.description, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaForRequestBodyApplicationJson': - return super().__new__( - cls, - *_args, - description=description, - _configuration=_configuration, - **kwargs, - ) - - -request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -ResponseHeadersFor201 = typing_extensions.TypedDict( - 'ResponseHeadersFor201', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor201(api_client.ApiResponse): - response: urllib3.HTTPResponse - headers: ResponseHeadersFor201 - body: schemas.Unset = schemas.unset - - -_response_for_201 = api_client.OpenApiResponse( - response_cls=ApiResponseFor201, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '201': _response_for_201, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _update_vault_account_asset_address_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - """ - Update address description - """ - path_params = {} - for parameter in ( - request_path_vault_account_id, - request_path_asset_id, - request_path_address_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_vault_account_id, - request_path_asset_id, - request_path_address_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_any_type.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='put'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class UpdateVaultAccountAssetAddress(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def update_vault_account_asset_address(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._update_vault_account_asset_address_oapg(params, request_options) - - -class ApiForput(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def put(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._update_vault_account_asset_address_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses_address_id/put.pyi b/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses_address_id/put.pyi deleted file mode 100644 index 8c6d86f3..00000000 --- a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses_address_id/put.pyi +++ /dev/null @@ -1,271 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error import Error - -# Path params -VaultAccountIdSchema = schemas.StrSchema -AssetIdSchema = schemas.StrSchema -AddressIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'vaultAccountId': typing.Union[VaultAccountIdSchema, str, ], - 'assetId': typing.Union[AssetIdSchema, str, ], - 'addressId': typing.Union[AddressIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_vault_account_id = api_client.PathParameter( - name="vaultAccountId", - style=api_client.ParameterStyle.SIMPLE, - schema=VaultAccountIdSchema, - required=True, -) -request_path_asset_id = api_client.PathParameter( - name="assetId", - style=api_client.ParameterStyle.SIMPLE, - schema=AssetIdSchema, - required=True, -) -request_path_address_id = api_client.PathParameter( - name="addressId", - style=api_client.ParameterStyle.SIMPLE, - schema=AddressIdSchema, - required=True, -) -# body param - - -class SchemaForRequestBodyApplicationJson( - schemas.AnyTypeSchema, -): - - - class MetaOapg: - - class properties: - description = schemas.StrSchema - __annotations__ = { - "description": description, - } - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["description"]) -> MetaOapg.properties.description: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["description", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["description"]) -> typing.Union[MetaOapg.properties.description, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["description", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - description: typing.Union[MetaOapg.properties.description, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaForRequestBodyApplicationJson': - return super().__new__( - cls, - *_args, - description=description, - _configuration=_configuration, - **kwargs, - ) - - -request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, -) -XRequestIDSchema = schemas.StrSchema -ResponseHeadersFor201 = typing_extensions.TypedDict( - 'ResponseHeadersFor201', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor201(api_client.ApiResponse): - response: urllib3.HTTPResponse - headers: ResponseHeadersFor201 - body: schemas.Unset = schemas.unset - - -_response_for_201 = api_client.OpenApiResponse( - response_cls=ApiResponseFor201, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _update_vault_account_asset_address_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - """ - Update address description - """ - path_params = {} - for parameter in ( - request_path_vault_account_id, - request_path_asset_id, - request_path_address_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_vault_account_id, - request_path_asset_id, - request_path_address_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_any_type.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='put'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class UpdateVaultAccountAssetAddress(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def update_vault_account_asset_address(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._update_vault_account_asset_address_oapg(params, request_options) - - -class ApiForput(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def put(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._update_vault_account_asset_address_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses_address_id_create_legacy/__init__.py b/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses_address_id_create_legacy/__init__.py deleted file mode 100644 index b85c26fc..00000000 --- a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses_address_id_create_legacy/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.vault_accounts_vault_account_id_asset_id_addresses_address_id_create_legacy import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.VAULT_ACCOUNTS_VAULT_ACCOUNT_ID_ASSET_ID_ADDRESSES_ADDRESS_ID_CREATE_LEGACY \ No newline at end of file diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses_address_id_create_legacy/post.py b/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses_address_id_create_legacy/post.py deleted file mode 100644 index e507dabd..00000000 --- a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses_address_id_create_legacy/post.py +++ /dev/null @@ -1,227 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.create_address_response import CreateAddressResponse -from fireblocks_client.model.error import Error - -from . import path - -# Path params -VaultAccountIdSchema = schemas.StrSchema -AssetIdSchema = schemas.StrSchema -AddressIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'vaultAccountId': typing.Union[VaultAccountIdSchema, str, ], - 'assetId': typing.Union[AssetIdSchema, str, ], - 'addressId': typing.Union[AddressIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_vault_account_id = api_client.PathParameter( - name="vaultAccountId", - style=api_client.ParameterStyle.SIMPLE, - schema=VaultAccountIdSchema, - required=True, -) -request_path_asset_id = api_client.PathParameter( - name="assetId", - style=api_client.ParameterStyle.SIMPLE, - schema=AssetIdSchema, - required=True, -) -request_path_address_id = api_client.PathParameter( - name="addressId", - style=api_client.ParameterStyle.SIMPLE, - schema=AddressIdSchema, - required=True, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor200ResponseBody = CreateAddressResponse -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, - 'default': _response_for_default, -} -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _create_legacy_address_for_vault_account_asset_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Convert a segwit address to legacy format - """ - path_params = {} - for parameter in ( - request_path_vault_account_id, - request_path_asset_id, - request_path_address_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_vault_account_id, - request_path_asset_id, - request_path_address_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class CreateLegacyAddressForVaultAccountAsset(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def create_legacy_address_for_vault_account_asset(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._create_legacy_address_for_vault_account_asset_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._create_legacy_address_for_vault_account_asset_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses_address_id_create_legacy/post.pyi b/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses_address_id_create_legacy/post.pyi deleted file mode 100644 index 701fe9f3..00000000 --- a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses_address_id_create_legacy/post.pyi +++ /dev/null @@ -1,211 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.create_address_response import CreateAddressResponse -from fireblocks_client.model.error import Error - -# Path params -VaultAccountIdSchema = schemas.StrSchema -AssetIdSchema = schemas.StrSchema -AddressIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'vaultAccountId': typing.Union[VaultAccountIdSchema, str, ], - 'assetId': typing.Union[AssetIdSchema, str, ], - 'addressId': typing.Union[AddressIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_vault_account_id = api_client.PathParameter( - name="vaultAccountId", - style=api_client.ParameterStyle.SIMPLE, - schema=VaultAccountIdSchema, - required=True, -) -request_path_asset_id = api_client.PathParameter( - name="assetId", - style=api_client.ParameterStyle.SIMPLE, - schema=AssetIdSchema, - required=True, -) -request_path_address_id = api_client.PathParameter( - name="addressId", - style=api_client.ParameterStyle.SIMPLE, - schema=AddressIdSchema, - required=True, -) -XRequestIDSchema = schemas.StrSchema -SchemaFor200ResponseBody = CreateAddressResponse -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _create_legacy_address_for_vault_account_asset_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Convert a segwit address to legacy format - """ - path_params = {} - for parameter in ( - request_path_vault_account_id, - request_path_asset_id, - request_path_address_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_vault_account_id, - request_path_asset_id, - request_path_address_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class CreateLegacyAddressForVaultAccountAsset(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def create_legacy_address_for_vault_account_asset(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._create_legacy_address_for_vault_account_asset_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._create_legacy_address_for_vault_account_asset_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses_address_id_set_customer_ref_id/__init__.py b/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses_address_id_set_customer_ref_id/__init__.py deleted file mode 100644 index bc630389..00000000 --- a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses_address_id_set_customer_ref_id/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.vault_accounts_vault_account_id_asset_id_addresses_address_id_set_customer_ref_id import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.VAULT_ACCOUNTS_VAULT_ACCOUNT_ID_ASSET_ID_ADDRESSES_ADDRESS_ID_SET_CUSTOMER_REF_ID \ No newline at end of file diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses_address_id_set_customer_ref_id/post.py b/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses_address_id_set_customer_ref_id/post.py deleted file mode 100644 index e08aa4e9..00000000 --- a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses_address_id_set_customer_ref_id/post.py +++ /dev/null @@ -1,288 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error import Error - -from . import path - -# Path params -VaultAccountIdSchema = schemas.StrSchema -AssetIdSchema = schemas.StrSchema -AddressIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'vaultAccountId': typing.Union[VaultAccountIdSchema, str, ], - 'assetId': typing.Union[AssetIdSchema, str, ], - 'addressId': typing.Union[AddressIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_vault_account_id = api_client.PathParameter( - name="vaultAccountId", - style=api_client.ParameterStyle.SIMPLE, - schema=VaultAccountIdSchema, - required=True, -) -request_path_asset_id = api_client.PathParameter( - name="assetId", - style=api_client.ParameterStyle.SIMPLE, - schema=AssetIdSchema, - required=True, -) -request_path_address_id = api_client.PathParameter( - name="addressId", - style=api_client.ParameterStyle.SIMPLE, - schema=AddressIdSchema, - required=True, -) -# body param - - -class SchemaForRequestBodyApplicationJson( - schemas.AnyTypeSchema, -): - - - class MetaOapg: - - class properties: - customerRefId = schemas.StrSchema - __annotations__ = { - "customerRefId": customerRefId, - } - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["customerRefId"]) -> MetaOapg.properties.customerRefId: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["customerRefId", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["customerRefId"]) -> typing.Union[MetaOapg.properties.customerRefId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["customerRefId", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - customerRefId: typing.Union[MetaOapg.properties.customerRefId, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaForRequestBodyApplicationJson': - return super().__new__( - cls, - *_args, - customerRefId=customerRefId, - _configuration=_configuration, - **kwargs, - ) - - -request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -ResponseHeadersFor201 = typing_extensions.TypedDict( - 'ResponseHeadersFor201', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor201(api_client.ApiResponse): - response: urllib3.HTTPResponse - headers: ResponseHeadersFor201 - body: schemas.Unset = schemas.unset - - -_response_for_201 = api_client.OpenApiResponse( - response_cls=ApiResponseFor201, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '201': _response_for_201, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _set_customer_ref_id_for_vault_account_asset_address_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - """ - Assign AML customer reference ID - """ - path_params = {} - for parameter in ( - request_path_vault_account_id, - request_path_asset_id, - request_path_address_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_vault_account_id, - request_path_asset_id, - request_path_address_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_any_type.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class SetCustomerRefIdForVaultAccountAssetAddress(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def set_customer_ref_id_for_vault_account_asset_address(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._set_customer_ref_id_for_vault_account_asset_address_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._set_customer_ref_id_for_vault_account_asset_address_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses_address_id_set_customer_ref_id/post.pyi b/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses_address_id_set_customer_ref_id/post.pyi deleted file mode 100644 index 93bfc58c..00000000 --- a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_addresses_address_id_set_customer_ref_id/post.pyi +++ /dev/null @@ -1,272 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error import Error - -# Path params -VaultAccountIdSchema = schemas.StrSchema -AssetIdSchema = schemas.StrSchema -AddressIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'vaultAccountId': typing.Union[VaultAccountIdSchema, str, ], - 'assetId': typing.Union[AssetIdSchema, str, ], - 'addressId': typing.Union[AddressIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_vault_account_id = api_client.PathParameter( - name="vaultAccountId", - style=api_client.ParameterStyle.SIMPLE, - schema=VaultAccountIdSchema, - required=True, -) -request_path_asset_id = api_client.PathParameter( - name="assetId", - style=api_client.ParameterStyle.SIMPLE, - schema=AssetIdSchema, - required=True, -) -request_path_address_id = api_client.PathParameter( - name="addressId", - style=api_client.ParameterStyle.SIMPLE, - schema=AddressIdSchema, - required=True, -) -# body param - - -class SchemaForRequestBodyApplicationJson( - schemas.AnyTypeSchema, -): - - - class MetaOapg: - - class properties: - customerRefId = schemas.StrSchema - __annotations__ = { - "customerRefId": customerRefId, - } - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["customerRefId"]) -> MetaOapg.properties.customerRefId: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["customerRefId", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["customerRefId"]) -> typing.Union[MetaOapg.properties.customerRefId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["customerRefId", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - customerRefId: typing.Union[MetaOapg.properties.customerRefId, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaForRequestBodyApplicationJson': - return super().__new__( - cls, - *_args, - customerRefId=customerRefId, - _configuration=_configuration, - **kwargs, - ) - - -request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -XRequestIDSchema = schemas.StrSchema -ResponseHeadersFor201 = typing_extensions.TypedDict( - 'ResponseHeadersFor201', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor201(api_client.ApiResponse): - response: urllib3.HTTPResponse - headers: ResponseHeadersFor201 - body: schemas.Unset = schemas.unset - - -_response_for_201 = api_client.OpenApiResponse( - response_cls=ApiResponseFor201, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _set_customer_ref_id_for_vault_account_asset_address_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - """ - Assign AML customer reference ID - """ - path_params = {} - for parameter in ( - request_path_vault_account_id, - request_path_asset_id, - request_path_address_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_vault_account_id, - request_path_asset_id, - request_path_address_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_any_type.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class SetCustomerRefIdForVaultAccountAssetAddress(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def set_customer_ref_id_for_vault_account_asset_address(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._set_customer_ref_id_for_vault_account_asset_address_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._set_customer_ref_id_for_vault_account_asset_address_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_balance/__init__.py b/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_balance/__init__.py deleted file mode 100644 index d7866d84..00000000 --- a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_balance/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.vault_accounts_vault_account_id_asset_id_balance import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.VAULT_ACCOUNTS_VAULT_ACCOUNT_ID_ASSET_ID_BALANCE \ No newline at end of file diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_balance/post.py b/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_balance/post.py deleted file mode 100644 index 1337e794..00000000 --- a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_balance/post.py +++ /dev/null @@ -1,236 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.vault_asset import VaultAsset -from fireblocks_client.model.error import Error - -from . import path - -# Path params -VaultAccountIdSchema = schemas.StrSchema -AssetIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'vaultAccountId': typing.Union[VaultAccountIdSchema, str, ], - 'assetId': typing.Union[AssetIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_vault_account_id = api_client.PathParameter( - name="vaultAccountId", - style=api_client.ParameterStyle.SIMPLE, - schema=VaultAccountIdSchema, - required=True, -) -request_path_asset_id = api_client.PathParameter( - name="assetId", - style=api_client.ParameterStyle.SIMPLE, - schema=AssetIdSchema, - required=True, -) -# body param -SchemaForRequestBody = schemas.DictSchema - - -request_body_body = api_client.RequestBody( - content={ - '*/*': api_client.MediaType( - schema=SchemaForRequestBody), - }, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor200ResponseBody = VaultAsset -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, - 'default': _response_for_default, -} -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _update_vault_account_asset_balance_oapg(self, params: typing.Union[SchemaForRequestBody, RequestPathParams] = None, request_options: RequestOptions = None): - """ - Refresh asset balance data - """ - path_params = {} - for parameter in ( - request_path_vault_account_id, - request_path_asset_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_vault_account_id, - request_path_asset_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_body.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class UpdateVaultAccountAssetBalance(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def update_vault_account_asset_balance(self , params: typing.Union[SchemaForRequestBody, RequestPathParams] = None, request_options: RequestOptions = None): - return self._update_vault_account_asset_balance_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[SchemaForRequestBody, RequestPathParams] = None, request_options: RequestOptions = None): - return self._update_vault_account_asset_balance_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_balance/post.pyi b/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_balance/post.pyi deleted file mode 100644 index aa763614..00000000 --- a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_balance/post.pyi +++ /dev/null @@ -1,220 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.vault_asset import VaultAsset -from fireblocks_client.model.error import Error - -# Path params -VaultAccountIdSchema = schemas.StrSchema -AssetIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'vaultAccountId': typing.Union[VaultAccountIdSchema, str, ], - 'assetId': typing.Union[AssetIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_vault_account_id = api_client.PathParameter( - name="vaultAccountId", - style=api_client.ParameterStyle.SIMPLE, - schema=VaultAccountIdSchema, - required=True, -) -request_path_asset_id = api_client.PathParameter( - name="assetId", - style=api_client.ParameterStyle.SIMPLE, - schema=AssetIdSchema, - required=True, -) -# body param -SchemaForRequestBody = schemas.DictSchema - - -request_body_body = api_client.RequestBody( - content={ - '*/*': api_client.MediaType( - schema=SchemaForRequestBody), - }, -) -XRequestIDSchema = schemas.StrSchema -SchemaFor200ResponseBody = VaultAsset -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _update_vault_account_asset_balance_oapg(self, params: typing.Union[SchemaForRequestBody, RequestPathParams] = None, request_options: RequestOptions = None): - """ - Refresh asset balance data - """ - path_params = {} - for parameter in ( - request_path_vault_account_id, - request_path_asset_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_vault_account_id, - request_path_asset_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_body.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class UpdateVaultAccountAssetBalance(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def update_vault_account_asset_balance(self , params: typing.Union[SchemaForRequestBody, RequestPathParams] = None, request_options: RequestOptions = None): - return self._update_vault_account_asset_balance_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[SchemaForRequestBody, RequestPathParams] = None, request_options: RequestOptions = None): - return self._update_vault_account_asset_balance_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_change_address_index_public_key_info/__init__.py b/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_change_address_index_public_key_info/__init__.py deleted file mode 100644 index d46ba6b9..00000000 --- a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_change_address_index_public_key_info/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.vault_accounts_vault_account_id_asset_id_change_address_index_public_key_info import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.VAULT_ACCOUNTS_VAULT_ACCOUNT_ID_ASSET_ID_CHANGE_ADDRESS_INDEX_PUBLIC_KEY_INFO \ No newline at end of file diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_change_address_index_public_key_info/get.py b/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_change_address_index_public_key_info/get.py deleted file mode 100644 index 0bc89444..00000000 --- a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_change_address_index_public_key_info/get.py +++ /dev/null @@ -1,280 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.public_key_information import PublicKeyInformation -from fireblocks_client.model.error import Error - -from . import path - -# Query params -CompressedSchema = schemas.BoolSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'compressed': typing.Union[CompressedSchema, bool, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_compressed = api_client.QueryParameter( - name="compressed", - style=api_client.ParameterStyle.FORM, - schema=CompressedSchema, - explode=True, -) -# Path params -VaultAccountIdSchema = schemas.StrSchema -AssetIdSchema = schemas.StrSchema -ChangeSchema = schemas.NumberSchema -AddressIndexSchema = schemas.NumberSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'vaultAccountId': typing.Union[VaultAccountIdSchema, str, ], - 'assetId': typing.Union[AssetIdSchema, str, ], - 'change': typing.Union[ChangeSchema, decimal.Decimal, int, float, ], - 'addressIndex': typing.Union[AddressIndexSchema, decimal.Decimal, int, float, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_vault_account_id = api_client.PathParameter( - name="vaultAccountId", - style=api_client.ParameterStyle.SIMPLE, - schema=VaultAccountIdSchema, - required=True, -) -request_path_asset_id = api_client.PathParameter( - name="assetId", - style=api_client.ParameterStyle.SIMPLE, - schema=AssetIdSchema, - required=True, -) -request_path_change = api_client.PathParameter( - name="change", - style=api_client.ParameterStyle.SIMPLE, - schema=ChangeSchema, - required=True, -) -request_path_address_index = api_client.PathParameter( - name="addressIndex", - style=api_client.ParameterStyle.SIMPLE, - schema=AddressIndexSchema, - required=True, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor200ResponseBody = PublicKeyInformation -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, - 'default': _response_for_default, -} -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_public_key_info_for_address_oapg(self, params: typing.Union[ RequestQueryParams, RequestPathParams] = None, request_options: RequestOptions = None): - """ - Get the public key for a vault account - """ - query_params = {} - if params and params.get("compressed"): - query_params["compressed"] = params.get("compressed") - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - path_params = {} - for parameter in ( - request_path_vault_account_id, - request_path_asset_id, - request_path_change, - request_path_address_index, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_vault_account_id, - request_path_asset_id, - request_path_change, - request_path_address_index, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - prefix_separator_iterator = None - for parameter in ( - request_query_compressed, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetPublicKeyInfoForAddress(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_public_key_info_for_address(self , params: typing.Union[ RequestQueryParams, RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_public_key_info_for_address_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestQueryParams, RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_public_key_info_for_address_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_change_address_index_public_key_info/get.pyi b/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_change_address_index_public_key_info/get.pyi deleted file mode 100644 index 20d26069..00000000 --- a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_change_address_index_public_key_info/get.pyi +++ /dev/null @@ -1,264 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.public_key_information import PublicKeyInformation -from fireblocks_client.model.error import Error - -# Query params -CompressedSchema = schemas.BoolSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'compressed': typing.Union[CompressedSchema, bool, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_compressed = api_client.QueryParameter( - name="compressed", - style=api_client.ParameterStyle.FORM, - schema=CompressedSchema, - explode=True, -) -# Path params -VaultAccountIdSchema = schemas.StrSchema -AssetIdSchema = schemas.StrSchema -ChangeSchema = schemas.NumberSchema -AddressIndexSchema = schemas.NumberSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'vaultAccountId': typing.Union[VaultAccountIdSchema, str, ], - 'assetId': typing.Union[AssetIdSchema, str, ], - 'change': typing.Union[ChangeSchema, decimal.Decimal, int, float, ], - 'addressIndex': typing.Union[AddressIndexSchema, decimal.Decimal, int, float, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_vault_account_id = api_client.PathParameter( - name="vaultAccountId", - style=api_client.ParameterStyle.SIMPLE, - schema=VaultAccountIdSchema, - required=True, -) -request_path_asset_id = api_client.PathParameter( - name="assetId", - style=api_client.ParameterStyle.SIMPLE, - schema=AssetIdSchema, - required=True, -) -request_path_change = api_client.PathParameter( - name="change", - style=api_client.ParameterStyle.SIMPLE, - schema=ChangeSchema, - required=True, -) -request_path_address_index = api_client.PathParameter( - name="addressIndex", - style=api_client.ParameterStyle.SIMPLE, - schema=AddressIndexSchema, - required=True, -) -XRequestIDSchema = schemas.StrSchema -SchemaFor200ResponseBody = PublicKeyInformation -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_public_key_info_for_address_oapg(self, params: typing.Union[ RequestQueryParams, RequestPathParams] = None, request_options: RequestOptions = None): - """ - Get the public key for a vault account - """ - query_params = {} - if params and params.get("compressed"): - query_params["compressed"] = params.get("compressed") - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - path_params = {} - for parameter in ( - request_path_vault_account_id, - request_path_asset_id, - request_path_change, - request_path_address_index, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_vault_account_id, - request_path_asset_id, - request_path_change, - request_path_address_index, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - prefix_separator_iterator = None - for parameter in ( - request_query_compressed, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetPublicKeyInfoForAddress(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_public_key_info_for_address(self , params: typing.Union[ RequestQueryParams, RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_public_key_info_for_address_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestQueryParams, RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_public_key_info_for_address_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_max_spendable_amount/__init__.py b/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_max_spendable_amount/__init__.py deleted file mode 100644 index e08d57f3..00000000 --- a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_max_spendable_amount/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.vault_accounts_vault_account_id_asset_id_max_spendable_amount import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.VAULT_ACCOUNTS_VAULT_ACCOUNT_ID_ASSET_ID_MAX_SPENDABLE_AMOUNT \ No newline at end of file diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_max_spendable_amount/get.py b/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_max_spendable_amount/get.py deleted file mode 100644 index d8266f6c..00000000 --- a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_max_spendable_amount/get.py +++ /dev/null @@ -1,251 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error import Error - -from . import path - -# Query params -ManualSigngingSchema = schemas.BoolSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'manualSignging': typing.Union[ManualSigngingSchema, bool, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_manual_signging = api_client.QueryParameter( - name="manualSignging", - style=api_client.ParameterStyle.FORM, - schema=ManualSigngingSchema, - explode=True, -) -# Path params -VaultAccountIdSchema = schemas.StrSchema -AssetIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'vaultAccountId': typing.Union[VaultAccountIdSchema, str, ], - 'assetId': typing.Union[AssetIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_vault_account_id = api_client.PathParameter( - name="vaultAccountId", - style=api_client.ParameterStyle.SIMPLE, - schema=VaultAccountIdSchema, - required=True, -) -request_path_asset_id = api_client.PathParameter( - name="assetId", - style=api_client.ParameterStyle.SIMPLE, - schema=AssetIdSchema, - required=True, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - headers: ResponseHeadersFor200 - body: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_max_spendable_amount_oapg(self, params: typing.Union[ RequestQueryParams, RequestPathParams] = None, request_options: RequestOptions = None): - """ - Get the maximum spendable amount in a single transaction. - """ - query_params = {} - if params and params.get("manual_signging"): - query_params["manual_signging"] = params.get("manual_signging") - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - path_params = {} - for parameter in ( - request_path_vault_account_id, - request_path_asset_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_vault_account_id, - request_path_asset_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - prefix_separator_iterator = None - for parameter in ( - request_query_manual_signging, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetMaxSpendableAmount(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_max_spendable_amount(self , params: typing.Union[ RequestQueryParams, RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_max_spendable_amount_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestQueryParams, RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_max_spendable_amount_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_max_spendable_amount/get.pyi b/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_max_spendable_amount/get.pyi deleted file mode 100644 index 97348700..00000000 --- a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_max_spendable_amount/get.pyi +++ /dev/null @@ -1,235 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error import Error - -# Query params -ManualSigngingSchema = schemas.BoolSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'manualSignging': typing.Union[ManualSigngingSchema, bool, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_manual_signging = api_client.QueryParameter( - name="manualSignging", - style=api_client.ParameterStyle.FORM, - schema=ManualSigngingSchema, - explode=True, -) -# Path params -VaultAccountIdSchema = schemas.StrSchema -AssetIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'vaultAccountId': typing.Union[VaultAccountIdSchema, str, ], - 'assetId': typing.Union[AssetIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_vault_account_id = api_client.PathParameter( - name="vaultAccountId", - style=api_client.ParameterStyle.SIMPLE, - schema=VaultAccountIdSchema, - required=True, -) -request_path_asset_id = api_client.PathParameter( - name="assetId", - style=api_client.ParameterStyle.SIMPLE, - schema=AssetIdSchema, - required=True, -) -XRequestIDSchema = schemas.StrSchema -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - headers: ResponseHeadersFor200 - body: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_max_spendable_amount_oapg(self, params: typing.Union[ RequestQueryParams, RequestPathParams] = None, request_options: RequestOptions = None): - """ - Get the maximum spendable amount in a single transaction. - """ - query_params = {} - if params and params.get("manual_signging"): - query_params["manual_signging"] = params.get("manual_signging") - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - path_params = {} - for parameter in ( - request_path_vault_account_id, - request_path_asset_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_vault_account_id, - request_path_asset_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - prefix_separator_iterator = None - for parameter in ( - request_query_manual_signging, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetMaxSpendableAmount(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_max_spendable_amount(self , params: typing.Union[ RequestQueryParams, RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_max_spendable_amount_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestQueryParams, RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_max_spendable_amount_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_unspent_inputs/__init__.py b/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_unspent_inputs/__init__.py deleted file mode 100644 index d286d8ef..00000000 --- a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_unspent_inputs/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.vault_accounts_vault_account_id_asset_id_unspent_inputs import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.VAULT_ACCOUNTS_VAULT_ACCOUNT_ID_ASSET_ID_UNSPENT_INPUTS \ No newline at end of file diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_unspent_inputs/get.py b/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_unspent_inputs/get.py deleted file mode 100644 index 56b0f65b..00000000 --- a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_unspent_inputs/get.py +++ /dev/null @@ -1,242 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.unspent_inputs_response import UnspentInputsResponse -from fireblocks_client.model.error import Error - -from . import path - -# Path params -VaultAccountIdSchema = schemas.StrSchema -AssetIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'vaultAccountId': typing.Union[VaultAccountIdSchema, str, ], - 'assetId': typing.Union[AssetIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_vault_account_id = api_client.PathParameter( - name="vaultAccountId", - style=api_client.ParameterStyle.SIMPLE, - schema=VaultAccountIdSchema, - required=True, -) -request_path_asset_id = api_client.PathParameter( - name="assetId", - style=api_client.ParameterStyle.SIMPLE, - schema=AssetIdSchema, - required=True, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) - - -class SchemaFor200ResponseBody( - schemas.ListSchema -): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['UnspentInputsResponse']: - return UnspentInputsResponse - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['UnspentInputsResponse'], typing.List['UnspentInputsResponse']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'SchemaFor200ResponseBody': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'UnspentInputsResponse': - return super().__getitem__(i) -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, - 'default': _response_for_default, -} -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_vault_account_asset_unspent_inputs_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Get UTXO unspent inputs information - """ - path_params = {} - for parameter in ( - request_path_vault_account_id, - request_path_asset_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_vault_account_id, - request_path_asset_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetVaultAccountAssetUnspentInputs(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_vault_account_asset_unspent_inputs(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_vault_account_asset_unspent_inputs_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_vault_account_asset_unspent_inputs_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_unspent_inputs/get.pyi b/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_unspent_inputs/get.pyi deleted file mode 100644 index 701a7218..00000000 --- a/fireblocks_client/paths/vault_accounts_vault_account_id_asset_id_unspent_inputs/get.pyi +++ /dev/null @@ -1,226 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.unspent_inputs_response import UnspentInputsResponse -from fireblocks_client.model.error import Error - -# Path params -VaultAccountIdSchema = schemas.StrSchema -AssetIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'vaultAccountId': typing.Union[VaultAccountIdSchema, str, ], - 'assetId': typing.Union[AssetIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_vault_account_id = api_client.PathParameter( - name="vaultAccountId", - style=api_client.ParameterStyle.SIMPLE, - schema=VaultAccountIdSchema, - required=True, -) -request_path_asset_id = api_client.PathParameter( - name="assetId", - style=api_client.ParameterStyle.SIMPLE, - schema=AssetIdSchema, - required=True, -) -XRequestIDSchema = schemas.StrSchema - - -class SchemaFor200ResponseBody( - schemas.ListSchema -): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['UnspentInputsResponse']: - return UnspentInputsResponse - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['UnspentInputsResponse'], typing.List['UnspentInputsResponse']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'SchemaFor200ResponseBody': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'UnspentInputsResponse': - return super().__getitem__(i) -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_vault_account_asset_unspent_inputs_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Get UTXO unspent inputs information - """ - path_params = {} - for parameter in ( - request_path_vault_account_id, - request_path_asset_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_vault_account_id, - request_path_asset_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetVaultAccountAssetUnspentInputs(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_vault_account_asset_unspent_inputs(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_vault_account_asset_unspent_inputs_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_vault_account_asset_unspent_inputs_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id_hide/__init__.py b/fireblocks_client/paths/vault_accounts_vault_account_id_hide/__init__.py deleted file mode 100644 index 7694978f..00000000 --- a/fireblocks_client/paths/vault_accounts_vault_account_id_hide/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.vault_accounts_vault_account_id_hide import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.VAULT_ACCOUNTS_VAULT_ACCOUNT_ID_HIDE \ No newline at end of file diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id_hide/post.py b/fireblocks_client/paths/vault_accounts_vault_account_id_hide/post.py deleted file mode 100644 index a78f137d..00000000 --- a/fireblocks_client/paths/vault_accounts_vault_account_id_hide/post.py +++ /dev/null @@ -1,198 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error import Error - -from . import path - -# Path params -VaultAccountIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'vaultAccountId': typing.Union[VaultAccountIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_vault_account_id = api_client.PathParameter( - name="vaultAccountId", - style=api_client.ParameterStyle.SIMPLE, - schema=VaultAccountIdSchema, - required=True, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -ResponseHeadersFor201 = typing_extensions.TypedDict( - 'ResponseHeadersFor201', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor201(api_client.ApiResponse): - response: urllib3.HTTPResponse - headers: ResponseHeadersFor201 - body: schemas.Unset = schemas.unset - - -_response_for_201 = api_client.OpenApiResponse( - response_cls=ApiResponseFor201, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '201': _response_for_201, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _hide_vault_account_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Hide a vault account in the console - """ - path_params = {} - for parameter in ( - request_path_vault_account_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_vault_account_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class HideVaultAccount(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def hide_vault_account(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._hide_vault_account_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._hide_vault_account_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id_hide/post.pyi b/fireblocks_client/paths/vault_accounts_vault_account_id_hide/post.pyi deleted file mode 100644 index 051c9ca4..00000000 --- a/fireblocks_client/paths/vault_accounts_vault_account_id_hide/post.pyi +++ /dev/null @@ -1,182 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error import Error - -# Path params -VaultAccountIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'vaultAccountId': typing.Union[VaultAccountIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_vault_account_id = api_client.PathParameter( - name="vaultAccountId", - style=api_client.ParameterStyle.SIMPLE, - schema=VaultAccountIdSchema, - required=True, -) -XRequestIDSchema = schemas.StrSchema -ResponseHeadersFor201 = typing_extensions.TypedDict( - 'ResponseHeadersFor201', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor201(api_client.ApiResponse): - response: urllib3.HTTPResponse - headers: ResponseHeadersFor201 - body: schemas.Unset = schemas.unset - - -_response_for_201 = api_client.OpenApiResponse( - response_cls=ApiResponseFor201, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _hide_vault_account_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Hide a vault account in the console - """ - path_params = {} - for parameter in ( - request_path_vault_account_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_vault_account_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class HideVaultAccount(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def hide_vault_account(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._hide_vault_account_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._hide_vault_account_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id_set_auto_fuel/__init__.py b/fireblocks_client/paths/vault_accounts_vault_account_id_set_auto_fuel/__init__.py deleted file mode 100644 index 081d6f22..00000000 --- a/fireblocks_client/paths/vault_accounts_vault_account_id_set_auto_fuel/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.vault_accounts_vault_account_id_set_auto_fuel import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.VAULT_ACCOUNTS_VAULT_ACCOUNT_ID_SET_AUTO_FUEL \ No newline at end of file diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id_set_auto_fuel/post.py b/fireblocks_client/paths/vault_accounts_vault_account_id_set_auto_fuel/post.py deleted file mode 100644 index e82ba95d..00000000 --- a/fireblocks_client/paths/vault_accounts_vault_account_id_set_auto_fuel/post.py +++ /dev/null @@ -1,268 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error import Error - -from . import path - -# Path params -VaultAccountIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'vaultAccountId': typing.Union[VaultAccountIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_vault_account_id = api_client.PathParameter( - name="vaultAccountId", - style=api_client.ParameterStyle.SIMPLE, - schema=VaultAccountIdSchema, - required=True, -) -# body param - - -class SchemaForRequestBodyApplicationJson( - schemas.AnyTypeSchema, -): - - - class MetaOapg: - - class properties: - autoFuel = schemas.BoolSchema - __annotations__ = { - "autoFuel": autoFuel, - } - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["autoFuel"]) -> MetaOapg.properties.autoFuel: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["autoFuel", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["autoFuel"]) -> typing.Union[MetaOapg.properties.autoFuel, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["autoFuel", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - autoFuel: typing.Union[MetaOapg.properties.autoFuel, bool, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaForRequestBodyApplicationJson': - return super().__new__( - cls, - *_args, - autoFuel=autoFuel, - _configuration=_configuration, - **kwargs, - ) - - -request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -ResponseHeadersFor201 = typing_extensions.TypedDict( - 'ResponseHeadersFor201', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor201(api_client.ApiResponse): - response: urllib3.HTTPResponse - headers: ResponseHeadersFor201 - body: schemas.Unset = schemas.unset - - -_response_for_201 = api_client.OpenApiResponse( - response_cls=ApiResponseFor201, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '201': _response_for_201, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _set_auto_fuel_for_vault_account_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - """ - Turn autofueling on or off - """ - path_params = {} - for parameter in ( - request_path_vault_account_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_vault_account_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_any_type.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class SetAutoFuelForVaultAccount(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def set_auto_fuel_for_vault_account(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._set_auto_fuel_for_vault_account_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._set_auto_fuel_for_vault_account_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id_set_auto_fuel/post.pyi b/fireblocks_client/paths/vault_accounts_vault_account_id_set_auto_fuel/post.pyi deleted file mode 100644 index df16389e..00000000 --- a/fireblocks_client/paths/vault_accounts_vault_account_id_set_auto_fuel/post.pyi +++ /dev/null @@ -1,252 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error import Error - -# Path params -VaultAccountIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'vaultAccountId': typing.Union[VaultAccountIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_vault_account_id = api_client.PathParameter( - name="vaultAccountId", - style=api_client.ParameterStyle.SIMPLE, - schema=VaultAccountIdSchema, - required=True, -) -# body param - - -class SchemaForRequestBodyApplicationJson( - schemas.AnyTypeSchema, -): - - - class MetaOapg: - - class properties: - autoFuel = schemas.BoolSchema - __annotations__ = { - "autoFuel": autoFuel, - } - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["autoFuel"]) -> MetaOapg.properties.autoFuel: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["autoFuel", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["autoFuel"]) -> typing.Union[MetaOapg.properties.autoFuel, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["autoFuel", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - autoFuel: typing.Union[MetaOapg.properties.autoFuel, bool, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaForRequestBodyApplicationJson': - return super().__new__( - cls, - *_args, - autoFuel=autoFuel, - _configuration=_configuration, - **kwargs, - ) - - -request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -XRequestIDSchema = schemas.StrSchema -ResponseHeadersFor201 = typing_extensions.TypedDict( - 'ResponseHeadersFor201', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor201(api_client.ApiResponse): - response: urllib3.HTTPResponse - headers: ResponseHeadersFor201 - body: schemas.Unset = schemas.unset - - -_response_for_201 = api_client.OpenApiResponse( - response_cls=ApiResponseFor201, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _set_auto_fuel_for_vault_account_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - """ - Turn autofueling on or off - """ - path_params = {} - for parameter in ( - request_path_vault_account_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_vault_account_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_any_type.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class SetAutoFuelForVaultAccount(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def set_auto_fuel_for_vault_account(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._set_auto_fuel_for_vault_account_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._set_auto_fuel_for_vault_account_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id_set_customer_ref_id/__init__.py b/fireblocks_client/paths/vault_accounts_vault_account_id_set_customer_ref_id/__init__.py deleted file mode 100644 index eae8de42..00000000 --- a/fireblocks_client/paths/vault_accounts_vault_account_id_set_customer_ref_id/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.vault_accounts_vault_account_id_set_customer_ref_id import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.VAULT_ACCOUNTS_VAULT_ACCOUNT_ID_SET_CUSTOMER_REF_ID \ No newline at end of file diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id_set_customer_ref_id/post.py b/fireblocks_client/paths/vault_accounts_vault_account_id_set_customer_ref_id/post.py deleted file mode 100644 index 2c9e4633..00000000 --- a/fireblocks_client/paths/vault_accounts_vault_account_id_set_customer_ref_id/post.py +++ /dev/null @@ -1,268 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error import Error - -from . import path - -# Path params -VaultAccountIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'vaultAccountId': typing.Union[VaultAccountIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_vault_account_id = api_client.PathParameter( - name="vaultAccountId", - style=api_client.ParameterStyle.SIMPLE, - schema=VaultAccountIdSchema, - required=True, -) -# body param - - -class SchemaForRequestBodyApplicationJson( - schemas.AnyTypeSchema, -): - - - class MetaOapg: - - class properties: - customerRefId = schemas.StrSchema - __annotations__ = { - "customerRefId": customerRefId, - } - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["customerRefId"]) -> MetaOapg.properties.customerRefId: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["customerRefId", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["customerRefId"]) -> typing.Union[MetaOapg.properties.customerRefId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["customerRefId", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - customerRefId: typing.Union[MetaOapg.properties.customerRefId, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaForRequestBodyApplicationJson': - return super().__new__( - cls, - *_args, - customerRefId=customerRefId, - _configuration=_configuration, - **kwargs, - ) - - -request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -ResponseHeadersFor201 = typing_extensions.TypedDict( - 'ResponseHeadersFor201', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor201(api_client.ApiResponse): - response: urllib3.HTTPResponse - headers: ResponseHeadersFor201 - body: schemas.Unset = schemas.unset - - -_response_for_201 = api_client.OpenApiResponse( - response_cls=ApiResponseFor201, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '201': _response_for_201, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _set_customer_ref_id_for_vault_account_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - """ - Set an AML/KYT customer reference ID for a vault account - """ - path_params = {} - for parameter in ( - request_path_vault_account_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_vault_account_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_any_type.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class SetCustomerRefIdForVaultAccount(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def set_customer_ref_id_for_vault_account(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._set_customer_ref_id_for_vault_account_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._set_customer_ref_id_for_vault_account_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id_set_customer_ref_id/post.pyi b/fireblocks_client/paths/vault_accounts_vault_account_id_set_customer_ref_id/post.pyi deleted file mode 100644 index 4cb21c63..00000000 --- a/fireblocks_client/paths/vault_accounts_vault_account_id_set_customer_ref_id/post.pyi +++ /dev/null @@ -1,252 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error import Error - -# Path params -VaultAccountIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'vaultAccountId': typing.Union[VaultAccountIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_vault_account_id = api_client.PathParameter( - name="vaultAccountId", - style=api_client.ParameterStyle.SIMPLE, - schema=VaultAccountIdSchema, - required=True, -) -# body param - - -class SchemaForRequestBodyApplicationJson( - schemas.AnyTypeSchema, -): - - - class MetaOapg: - - class properties: - customerRefId = schemas.StrSchema - __annotations__ = { - "customerRefId": customerRefId, - } - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["customerRefId"]) -> MetaOapg.properties.customerRefId: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["customerRefId", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["customerRefId"]) -> typing.Union[MetaOapg.properties.customerRefId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["customerRefId", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - customerRefId: typing.Union[MetaOapg.properties.customerRefId, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaForRequestBodyApplicationJson': - return super().__new__( - cls, - *_args, - customerRefId=customerRefId, - _configuration=_configuration, - **kwargs, - ) - - -request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -XRequestIDSchema = schemas.StrSchema -ResponseHeadersFor201 = typing_extensions.TypedDict( - 'ResponseHeadersFor201', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor201(api_client.ApiResponse): - response: urllib3.HTTPResponse - headers: ResponseHeadersFor201 - body: schemas.Unset = schemas.unset - - -_response_for_201 = api_client.OpenApiResponse( - response_cls=ApiResponseFor201, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _set_customer_ref_id_for_vault_account_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - """ - Set an AML/KYT customer reference ID for a vault account - """ - path_params = {} - for parameter in ( - request_path_vault_account_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_vault_account_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_any_type.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class SetCustomerRefIdForVaultAccount(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def set_customer_ref_id_for_vault_account(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._set_customer_ref_id_for_vault_account_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._set_customer_ref_id_for_vault_account_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id_unhide/__init__.py b/fireblocks_client/paths/vault_accounts_vault_account_id_unhide/__init__.py deleted file mode 100644 index 21d0b6c5..00000000 --- a/fireblocks_client/paths/vault_accounts_vault_account_id_unhide/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.vault_accounts_vault_account_id_unhide import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.VAULT_ACCOUNTS_VAULT_ACCOUNT_ID_UNHIDE \ No newline at end of file diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id_unhide/post.py b/fireblocks_client/paths/vault_accounts_vault_account_id_unhide/post.py deleted file mode 100644 index 95ba741d..00000000 --- a/fireblocks_client/paths/vault_accounts_vault_account_id_unhide/post.py +++ /dev/null @@ -1,198 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error import Error - -from . import path - -# Path params -VaultAccountIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'vaultAccountId': typing.Union[VaultAccountIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_vault_account_id = api_client.PathParameter( - name="vaultAccountId", - style=api_client.ParameterStyle.SIMPLE, - schema=VaultAccountIdSchema, - required=True, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -ResponseHeadersFor201 = typing_extensions.TypedDict( - 'ResponseHeadersFor201', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor201(api_client.ApiResponse): - response: urllib3.HTTPResponse - headers: ResponseHeadersFor201 - body: schemas.Unset = schemas.unset - - -_response_for_201 = api_client.OpenApiResponse( - response_cls=ApiResponseFor201, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '201': _response_for_201, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _unhide_vault_account_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Unhide a vault account in the console - """ - path_params = {} - for parameter in ( - request_path_vault_account_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_vault_account_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class UnhideVaultAccount(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def unhide_vault_account(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._unhide_vault_account_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._unhide_vault_account_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/vault_accounts_vault_account_id_unhide/post.pyi b/fireblocks_client/paths/vault_accounts_vault_account_id_unhide/post.pyi deleted file mode 100644 index 2439f00d..00000000 --- a/fireblocks_client/paths/vault_accounts_vault_account_id_unhide/post.pyi +++ /dev/null @@ -1,182 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error import Error - -# Path params -VaultAccountIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'vaultAccountId': typing.Union[VaultAccountIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_vault_account_id = api_client.PathParameter( - name="vaultAccountId", - style=api_client.ParameterStyle.SIMPLE, - schema=VaultAccountIdSchema, - required=True, -) -XRequestIDSchema = schemas.StrSchema -ResponseHeadersFor201 = typing_extensions.TypedDict( - 'ResponseHeadersFor201', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor201(api_client.ApiResponse): - response: urllib3.HTTPResponse - headers: ResponseHeadersFor201 - body: schemas.Unset = schemas.unset - - -_response_for_201 = api_client.OpenApiResponse( - response_cls=ApiResponseFor201, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _unhide_vault_account_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Unhide a vault account in the console - """ - path_params = {} - for parameter in ( - request_path_vault_account_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_vault_account_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class UnhideVaultAccount(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def unhide_vault_account(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._unhide_vault_account_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._unhide_vault_account_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/vault_asset_wallets/__init__.py b/fireblocks_client/paths/vault_asset_wallets/__init__.py deleted file mode 100644 index 98e6c058..00000000 --- a/fireblocks_client/paths/vault_asset_wallets/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.vault_asset_wallets import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.VAULT_ASSET_WALLETS \ No newline at end of file diff --git a/fireblocks_client/paths/vault_asset_wallets/get.py b/fireblocks_client/paths/vault_asset_wallets/get.py deleted file mode 100644 index 250a8496..00000000 --- a/fireblocks_client/paths/vault_asset_wallets/get.py +++ /dev/null @@ -1,216 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.paginated_asset_wallet_response import PaginatedAssetWalletResponse - -from . import path - -# Query params -TotalAmountLargerThanSchema = schemas.NumberSchema -AssetIdSchema = schemas.StrSchema -BeforeSchema = schemas.StrSchema -AfterSchema = schemas.StrSchema - - -class LimitSchema( - schemas.NumberSchema -): - - - class MetaOapg: - inclusive_maximum = 1000 - inclusive_minimum = 1 -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'totalAmountLargerThan': typing.Union[TotalAmountLargerThanSchema, decimal.Decimal, int, float, ], - 'assetId': typing.Union[AssetIdSchema, str, ], - 'before': typing.Union[BeforeSchema, str, ], - 'after': typing.Union[AfterSchema, str, ], - 'limit': typing.Union[LimitSchema, decimal.Decimal, int, float, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_total_amount_larger_than = api_client.QueryParameter( - name="totalAmountLargerThan", - style=api_client.ParameterStyle.FORM, - schema=TotalAmountLargerThanSchema, - explode=True, -) -request_query_asset_id = api_client.QueryParameter( - name="assetId", - style=api_client.ParameterStyle.FORM, - schema=AssetIdSchema, - explode=True, -) -request_query_before = api_client.QueryParameter( - name="before", - style=api_client.ParameterStyle.FORM, - schema=BeforeSchema, - explode=True, -) -request_query_after = api_client.QueryParameter( - name="after", - style=api_client.ParameterStyle.FORM, - schema=AfterSchema, - explode=True, -) -request_query_limit = api_client.QueryParameter( - name="limit", - style=api_client.ParameterStyle.FORM, - schema=LimitSchema, - explode=True, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor200ResponseBody = PaginatedAssetWalletResponse -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, -} -_all_accept_content_types = ( - '*/*', -) - - -class BaseApi(api_client.Api): - - def _get_asset_wallets_oapg(self, params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - """ - List asset wallets (Paginated) - """ - query_params = {} - if params and params.get("total_amount_larger_than"): - query_params["total_amount_larger_than"] = params.get("total_amount_larger_than") - if params and params.get("asset_id"): - query_params["asset_id"] = params.get("asset_id") - if params and params.get("before"): - query_params["before"] = params.get("before") - if params and params.get("after"): - query_params["after"] = params.get("after") - if params and params.get("limit"): - query_params["limit"] = params.get("limit") - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_total_amount_larger_than, - request_query_asset_id, - request_query_before, - request_query_after, - request_query_limit, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetAssetWallets(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_asset_wallets(self , params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - return self._get_asset_wallets_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - return self._get_asset_wallets_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/vault_asset_wallets/get.pyi b/fireblocks_client/paths/vault_asset_wallets/get.pyi deleted file mode 100644 index bc05b810..00000000 --- a/fireblocks_client/paths/vault_asset_wallets/get.pyi +++ /dev/null @@ -1,202 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.paginated_asset_wallet_response import PaginatedAssetWalletResponse - -# Query params -TotalAmountLargerThanSchema = schemas.NumberSchema -AssetIdSchema = schemas.StrSchema -BeforeSchema = schemas.StrSchema -AfterSchema = schemas.StrSchema - - -class LimitSchema( - schemas.NumberSchema -): - pass -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'totalAmountLargerThan': typing.Union[TotalAmountLargerThanSchema, decimal.Decimal, int, float, ], - 'assetId': typing.Union[AssetIdSchema, str, ], - 'before': typing.Union[BeforeSchema, str, ], - 'after': typing.Union[AfterSchema, str, ], - 'limit': typing.Union[LimitSchema, decimal.Decimal, int, float, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_total_amount_larger_than = api_client.QueryParameter( - name="totalAmountLargerThan", - style=api_client.ParameterStyle.FORM, - schema=TotalAmountLargerThanSchema, - explode=True, -) -request_query_asset_id = api_client.QueryParameter( - name="assetId", - style=api_client.ParameterStyle.FORM, - schema=AssetIdSchema, - explode=True, -) -request_query_before = api_client.QueryParameter( - name="before", - style=api_client.ParameterStyle.FORM, - schema=BeforeSchema, - explode=True, -) -request_query_after = api_client.QueryParameter( - name="after", - style=api_client.ParameterStyle.FORM, - schema=AfterSchema, - explode=True, -) -request_query_limit = api_client.QueryParameter( - name="limit", - style=api_client.ParameterStyle.FORM, - schema=LimitSchema, - explode=True, -) -XRequestIDSchema = schemas.StrSchema -SchemaFor200ResponseBody = PaginatedAssetWalletResponse -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - '*/*', -) - - -class BaseApi(api_client.Api): - - def _get_asset_wallets_oapg(self, params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - """ - List asset wallets (Paginated) - """ - query_params = {} - if params and params.get("total_amount_larger_than"): - query_params["total_amount_larger_than"] = params.get("total_amount_larger_than") - if params and params.get("asset_id"): - query_params["asset_id"] = params.get("asset_id") - if params and params.get("before"): - query_params["before"] = params.get("before") - if params and params.get("after"): - query_params["after"] = params.get("after") - if params and params.get("limit"): - query_params["limit"] = params.get("limit") - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_total_amount_larger_than, - request_query_asset_id, - request_query_before, - request_query_after, - request_query_limit, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetAssetWallets(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_asset_wallets(self , params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - return self._get_asset_wallets_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - return self._get_asset_wallets_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/vault_assets/__init__.py b/fireblocks_client/paths/vault_assets/__init__.py deleted file mode 100644 index c9b0d57f..00000000 --- a/fireblocks_client/paths/vault_assets/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.vault_assets import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.VAULT_ASSETS \ No newline at end of file diff --git a/fireblocks_client/paths/vault_assets/get.py b/fireblocks_client/paths/vault_assets/get.py deleted file mode 100644 index 5855caee..00000000 --- a/fireblocks_client/paths/vault_assets/get.py +++ /dev/null @@ -1,240 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.vault_asset import VaultAsset -from fireblocks_client.model.error import Error - -from . import path - -# Query params -AccountNamePrefixSchema = schemas.StrSchema -AccountNameSuffixSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'accountNamePrefix': typing.Union[AccountNamePrefixSchema, str, ], - 'accountNameSuffix': typing.Union[AccountNameSuffixSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_account_name_prefix = api_client.QueryParameter( - name="accountNamePrefix", - style=api_client.ParameterStyle.FORM, - schema=AccountNamePrefixSchema, - explode=True, -) -request_query_account_name_suffix = api_client.QueryParameter( - name="accountNameSuffix", - style=api_client.ParameterStyle.FORM, - schema=AccountNameSuffixSchema, - explode=True, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) - - -class SchemaFor200ResponseBody( - schemas.ListSchema -): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['VaultAsset']: - return VaultAsset - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['VaultAsset'], typing.List['VaultAsset']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'SchemaFor200ResponseBody': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'VaultAsset': - return super().__getitem__(i) -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, - 'default': _response_for_default, -} -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_vault_assets_oapg(self, params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - """ - Get asset balance for chosen assets - """ - query_params = {} - if params and params.get("account_name_prefix"): - query_params["account_name_prefix"] = params.get("account_name_prefix") - if params and params.get("account_name_suffix"): - query_params["account_name_suffix"] = params.get("account_name_suffix") - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_account_name_prefix, - request_query_account_name_suffix, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetVaultAssets(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_vault_assets(self , params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - return self._get_vault_assets_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - return self._get_vault_assets_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/vault_assets/get.pyi b/fireblocks_client/paths/vault_assets/get.pyi deleted file mode 100644 index 62196d3f..00000000 --- a/fireblocks_client/paths/vault_assets/get.pyi +++ /dev/null @@ -1,224 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.vault_asset import VaultAsset -from fireblocks_client.model.error import Error - -# Query params -AccountNamePrefixSchema = schemas.StrSchema -AccountNameSuffixSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'accountNamePrefix': typing.Union[AccountNamePrefixSchema, str, ], - 'accountNameSuffix': typing.Union[AccountNameSuffixSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_account_name_prefix = api_client.QueryParameter( - name="accountNamePrefix", - style=api_client.ParameterStyle.FORM, - schema=AccountNamePrefixSchema, - explode=True, -) -request_query_account_name_suffix = api_client.QueryParameter( - name="accountNameSuffix", - style=api_client.ParameterStyle.FORM, - schema=AccountNameSuffixSchema, - explode=True, -) -XRequestIDSchema = schemas.StrSchema - - -class SchemaFor200ResponseBody( - schemas.ListSchema -): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['VaultAsset']: - return VaultAsset - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['VaultAsset'], typing.List['VaultAsset']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'SchemaFor200ResponseBody': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'VaultAsset': - return super().__getitem__(i) -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_vault_assets_oapg(self, params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - """ - Get asset balance for chosen assets - """ - query_params = {} - if params and params.get("account_name_prefix"): - query_params["account_name_prefix"] = params.get("account_name_prefix") - if params and params.get("account_name_suffix"): - query_params["account_name_suffix"] = params.get("account_name_suffix") - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_account_name_prefix, - request_query_account_name_suffix, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetVaultAssets(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_vault_assets(self , params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - return self._get_vault_assets_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - return self._get_vault_assets_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/vault_assets_asset_id/__init__.py b/fireblocks_client/paths/vault_assets_asset_id/__init__.py deleted file mode 100644 index 83f77ab1..00000000 --- a/fireblocks_client/paths/vault_assets_asset_id/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.vault_assets_asset_id import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.VAULT_ASSETS_ASSET_ID \ No newline at end of file diff --git a/fireblocks_client/paths/vault_assets_asset_id/get.py b/fireblocks_client/paths/vault_assets_asset_id/get.py deleted file mode 100644 index c8b425d5..00000000 --- a/fireblocks_client/paths/vault_assets_asset_id/get.py +++ /dev/null @@ -1,207 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.vault_asset import VaultAsset -from fireblocks_client.model.error import Error - -from . import path - -# Path params -AssetIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'assetId': typing.Union[AssetIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_asset_id = api_client.PathParameter( - name="assetId", - style=api_client.ParameterStyle.SIMPLE, - schema=AssetIdSchema, - required=True, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor200ResponseBody = VaultAsset -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, - 'default': _response_for_default, -} -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_vault_asset_by_id_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Get vault balance by asset - """ - path_params = {} - for parameter in ( - request_path_asset_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_asset_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetVaultAssetById(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_vault_asset_by_id(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_vault_asset_by_id_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_vault_asset_by_id_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/vault_assets_asset_id/get.pyi b/fireblocks_client/paths/vault_assets_asset_id/get.pyi deleted file mode 100644 index 49f54341..00000000 --- a/fireblocks_client/paths/vault_assets_asset_id/get.pyi +++ /dev/null @@ -1,191 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.vault_asset import VaultAsset -from fireblocks_client.model.error import Error - -# Path params -AssetIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'assetId': typing.Union[AssetIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_asset_id = api_client.PathParameter( - name="assetId", - style=api_client.ParameterStyle.SIMPLE, - schema=AssetIdSchema, - required=True, -) -XRequestIDSchema = schemas.StrSchema -SchemaFor200ResponseBody = VaultAsset -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_vault_asset_by_id_oapg(self, params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - """ - Get vault balance by asset - """ - path_params = {} - for parameter in ( - request_path_asset_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_asset_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetVaultAssetById(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_vault_asset_by_id(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_vault_asset_by_id_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestPathParams] = None, request_options: RequestOptions = None): - return self._get_vault_asset_by_id_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/vault_public_key_info_/__init__.py b/fireblocks_client/paths/vault_public_key_info_/__init__.py deleted file mode 100644 index 03ec6a07..00000000 --- a/fireblocks_client/paths/vault_public_key_info_/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.vault_public_key_info_ import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.VAULT_PUBLIC_KEY_INFO_ \ No newline at end of file diff --git a/fireblocks_client/paths/vault_public_key_info_/get.py b/fireblocks_client/paths/vault_public_key_info_/get.py deleted file mode 100644 index 5d2a7cfc..00000000 --- a/fireblocks_client/paths/vault_public_key_info_/get.py +++ /dev/null @@ -1,228 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.public_key_information import PublicKeyInformation -from fireblocks_client.model.error import Error - -from . import path - -# Query params -DerivationPathSchema = schemas.StrSchema -AlgorithmSchema = schemas.StrSchema -CompressedSchema = schemas.BoolSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - 'derivationPath': typing.Union[DerivationPathSchema, str, ], - 'algorithm': typing.Union[AlgorithmSchema, str, ], - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'compressed': typing.Union[CompressedSchema, bool, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_derivation_path = api_client.QueryParameter( - name="derivationPath", - style=api_client.ParameterStyle.FORM, - schema=DerivationPathSchema, - required=True, - explode=True, -) -request_query_algorithm = api_client.QueryParameter( - name="algorithm", - style=api_client.ParameterStyle.FORM, - schema=AlgorithmSchema, - required=True, - explode=True, -) -request_query_compressed = api_client.QueryParameter( - name="compressed", - style=api_client.ParameterStyle.FORM, - schema=CompressedSchema, - explode=True, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor200ResponseBody = PublicKeyInformation -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, - 'default': _response_for_default, -} -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_public_key_info_oapg(self, params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - """ - Get the public key information - """ - query_params = {} - if params and params.get("derivation_path"): - query_params["derivation_path"] = params.get("derivation_path") - if params and params.get("algorithm"): - query_params["algorithm"] = params.get("algorithm") - if params and params.get("compressed"): - query_params["compressed"] = params.get("compressed") - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_derivation_path, - request_query_algorithm, - request_query_compressed, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetPublicKeyInfo(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_public_key_info(self , params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - return self._get_public_key_info_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - return self._get_public_key_info_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/vault_public_key_info_/get.pyi b/fireblocks_client/paths/vault_public_key_info_/get.pyi deleted file mode 100644 index 797756ee..00000000 --- a/fireblocks_client/paths/vault_public_key_info_/get.pyi +++ /dev/null @@ -1,212 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.public_key_information import PublicKeyInformation -from fireblocks_client.model.error import Error - -# Query params -DerivationPathSchema = schemas.StrSchema -AlgorithmSchema = schemas.StrSchema -CompressedSchema = schemas.BoolSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - 'derivationPath': typing.Union[DerivationPathSchema, str, ], - 'algorithm': typing.Union[AlgorithmSchema, str, ], - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'compressed': typing.Union[CompressedSchema, bool, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_derivation_path = api_client.QueryParameter( - name="derivationPath", - style=api_client.ParameterStyle.FORM, - schema=DerivationPathSchema, - required=True, - explode=True, -) -request_query_algorithm = api_client.QueryParameter( - name="algorithm", - style=api_client.ParameterStyle.FORM, - schema=AlgorithmSchema, - required=True, - explode=True, -) -request_query_compressed = api_client.QueryParameter( - name="compressed", - style=api_client.ParameterStyle.FORM, - schema=CompressedSchema, - explode=True, -) -XRequestIDSchema = schemas.StrSchema -SchemaFor200ResponseBody = PublicKeyInformation -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _get_public_key_info_oapg(self, params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - """ - Get the public key information - """ - query_params = {} - if params and params.get("derivation_path"): - query_params["derivation_path"] = params.get("derivation_path") - if params and params.get("algorithm"): - query_params["algorithm"] = params.get("algorithm") - if params and params.get("compressed"): - query_params["compressed"] = params.get("compressed") - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_derivation_path, - request_query_algorithm, - request_query_compressed, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class GetPublicKeyInfo(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def get_public_key_info(self , params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - return self._get_public_key_info_oapg(params, request_options) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def get(self , params: typing.Union[ RequestQueryParams,] = None, request_options: RequestOptions = None): - return self._get_public_key_info_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/webhooks_resend/__init__.py b/fireblocks_client/paths/webhooks_resend/__init__.py deleted file mode 100644 index 4c802ee8..00000000 --- a/fireblocks_client/paths/webhooks_resend/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.webhooks_resend import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.WEBHOOKS_RESEND \ No newline at end of file diff --git a/fireblocks_client/paths/webhooks_resend/post.py b/fireblocks_client/paths/webhooks_resend/post.py deleted file mode 100644 index 9170f59f..00000000 --- a/fireblocks_client/paths/webhooks_resend/post.py +++ /dev/null @@ -1,161 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error import Error -from fireblocks_client.model.resend_webhooks_response import ResendWebhooksResponse - -from . import path - -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor200ResponseBody = ResendWebhooksResponse -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, - 'default': _response_for_default, -} -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _resend_webhooks_oapg(self, request_options: RequestOptions = None): - """ - Resend failed webhooks - """ - used_path = path.value - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class ResendWebhooks(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def resend_webhooks(self , request_options: RequestOptions = None): - return self._resend_webhooks_oapg(request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , request_options: RequestOptions = None): - return self._resend_webhooks_oapg(request_options) - - diff --git a/fireblocks_client/paths/webhooks_resend/post.pyi b/fireblocks_client/paths/webhooks_resend/post.pyi deleted file mode 100644 index 8b1e631e..00000000 --- a/fireblocks_client/paths/webhooks_resend/post.pyi +++ /dev/null @@ -1,145 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error import Error -from fireblocks_client.model.resend_webhooks_response import ResendWebhooksResponse - -XRequestIDSchema = schemas.StrSchema -SchemaFor200ResponseBody = ResendWebhooksResponse -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBody, - ] - headers: ResponseHeadersFor200 - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - '*/*': api_client.MediaType( - schema=SchemaFor200ResponseBody), - }, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - '*/*', - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _resend_webhooks_oapg(self, request_options: RequestOptions = None): - """ - Resend failed webhooks - """ - used_path = path.value - _headers = HTTPHeaderDict() - _fields = None - _body = None - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class ResendWebhooks(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def resend_webhooks(self , request_options: RequestOptions = None): - return self._resend_webhooks_oapg(request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , request_options: RequestOptions = None): - return self._resend_webhooks_oapg(request_options) - - diff --git a/fireblocks_client/paths/webhooks_resend_tx_id/__init__.py b/fireblocks_client/paths/webhooks_resend_tx_id/__init__.py deleted file mode 100644 index d4b3b6f6..00000000 --- a/fireblocks_client/paths/webhooks_resend_tx_id/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from fireblocks_client.paths.webhooks_resend_tx_id import Api - -from fireblocks_client.paths import PathValues - -path = PathValues.WEBHOOKS_RESEND_TX_ID \ No newline at end of file diff --git a/fireblocks_client/paths/webhooks_resend_tx_id/post.py b/fireblocks_client/paths/webhooks_resend_tx_id/post.py deleted file mode 100644 index 2ccde734..00000000 --- a/fireblocks_client/paths/webhooks_resend_tx_id/post.py +++ /dev/null @@ -1,278 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error import Error - -from . import path - -# Path params -TxIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'txId': typing.Union[TxIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_tx_id = api_client.PathParameter( - name="txId", - style=api_client.ParameterStyle.SIMPLE, - schema=TxIdSchema, - required=True, -) -# body param - - -class SchemaForRequestBodyApplicationJson( - schemas.AnyTypeSchema, -): - - - class MetaOapg: - - class properties: - resendCreated = schemas.BoolSchema - resendStatusUpdated = schemas.BoolSchema - __annotations__ = { - "resendCreated": resendCreated, - "resendStatusUpdated": resendStatusUpdated, - } - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["resendCreated"]) -> MetaOapg.properties.resendCreated: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["resendStatusUpdated"]) -> MetaOapg.properties.resendStatusUpdated: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["resendCreated", "resendStatusUpdated", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["resendCreated"]) -> typing.Union[MetaOapg.properties.resendCreated, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["resendStatusUpdated"]) -> typing.Union[MetaOapg.properties.resendStatusUpdated, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["resendCreated", "resendStatusUpdated", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - resendCreated: typing.Union[MetaOapg.properties.resendCreated, bool, schemas.Unset] = schemas.unset, - resendStatusUpdated: typing.Union[MetaOapg.properties.resendStatusUpdated, bool, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaForRequestBodyApplicationJson': - return super().__new__( - cls, - *_args, - resendCreated=resendCreated, - resendStatusUpdated=resendStatusUpdated, - _configuration=_configuration, - **kwargs, - ) - - -request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - headers: ResponseHeadersFor200 - body: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -x_request_id_parameter = api_client.HeaderParameter( - name="X-Request-ID", - style=api_client.ParameterStyle.SIMPLE, - schema=XRequestIDSchema, -) -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_status_code_to_response = { - '200': _response_for_200, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _resend_webhooks_for_transaction_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - """ - Resend failed webhooks for a transaction by ID - """ - path_params = {} - for parameter in ( - request_path_tx_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_tx_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_any_type.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class ResendWebhooksForTransaction(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def resend_webhooks_for_transaction(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._resend_webhooks_for_transaction_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._resend_webhooks_for_transaction_oapg(params, request_options) - - diff --git a/fireblocks_client/paths/webhooks_resend_tx_id/post.pyi b/fireblocks_client/paths/webhooks_resend_tx_id/post.pyi deleted file mode 100644 index 6f18c43c..00000000 --- a/fireblocks_client/paths/webhooks_resend_tx_id/post.pyi +++ /dev/null @@ -1,262 +0,0 @@ -# coding: utf-8 -from dataclasses import dataclass -import typing_extensions -from fireblocks_client.model.request_options import RequestOptions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from fireblocks_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from fireblocks_client import schemas # noqa: F401 - -from fireblocks_client.model.error import Error - -# Path params -TxIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'txId': typing.Union[TxIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_tx_id = api_client.PathParameter( - name="txId", - style=api_client.ParameterStyle.SIMPLE, - schema=TxIdSchema, - required=True, -) -# body param - - -class SchemaForRequestBodyApplicationJson( - schemas.AnyTypeSchema, -): - - - class MetaOapg: - - class properties: - resendCreated = schemas.BoolSchema - resendStatusUpdated = schemas.BoolSchema - __annotations__ = { - "resendCreated": resendCreated, - "resendStatusUpdated": resendStatusUpdated, - } - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["resendCreated"]) -> MetaOapg.properties.resendCreated: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["resendStatusUpdated"]) -> MetaOapg.properties.resendStatusUpdated: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["resendCreated", "resendStatusUpdated", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["resendCreated"]) -> typing.Union[MetaOapg.properties.resendCreated, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["resendStatusUpdated"]) -> typing.Union[MetaOapg.properties.resendStatusUpdated, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["resendCreated", "resendStatusUpdated", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - resendCreated: typing.Union[MetaOapg.properties.resendCreated, bool, schemas.Unset] = schemas.unset, - resendStatusUpdated: typing.Union[MetaOapg.properties.resendStatusUpdated, bool, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaForRequestBodyApplicationJson': - return super().__new__( - cls, - *_args, - resendCreated=resendCreated, - resendStatusUpdated=resendStatusUpdated, - _configuration=_configuration, - **kwargs, - ) - - -request_body_any_type = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -XRequestIDSchema = schemas.StrSchema -ResponseHeadersFor200 = typing_extensions.TypedDict( - 'ResponseHeadersFor200', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - headers: ResponseHeadersFor200 - body: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - headers=[ - x_request_id_parameter, - ] -) -XRequestIDSchema = schemas.StrSchema -SchemaFor0ResponseBodyApplicationJson = Error -ResponseHeadersFor0 = typing_extensions.TypedDict( - 'ResponseHeadersFor0', - { - 'X-Request-ID': XRequestIDSchema, - } -) - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: ResponseHeadersFor0 - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, - headers=[ - x_request_id_parameter, - ] -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - - def _resend_webhooks_for_transaction_oapg(self, params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - """ - Resend failed webhooks for a transaction by ID - """ - path_params = {} - for parameter in ( - request_path_tx_id, - ): - if params and params.get(parameter.name): - path_params[parameter.name] = params.get(parameter.name) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_tx_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - _headers = HTTPHeaderDict() - _fields = None - _body = None - serialized_data = request_body_any_type.serialize(params, "application/json") - _headers.add('Content-Type', "application/json") - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - - elif 'body' in serialized_data: - _body = serialized_data['body'] - - if request_options and request_options.get("idempotency_key"): - idempotency_key = request_options.get("idempotency_key") - if idempotency_key: - _headers.add("Idempotency-Key", idempotency_key) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - timeout=10000, - ) - - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response.body - - -class ResendWebhooksForTransaction(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - def resend_webhooks_for_transaction(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._resend_webhooks_for_transaction_oapg(params, request_options) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - def post(self , params: typing.Union[SchemaForRequestBodyApplicationJson, RequestPathParams] = None, request_options: RequestOptions = None): - return self._resend_webhooks_for_transaction_oapg(params, request_options) - - diff --git a/test/test_models/__init__.py b/fireblocks_client/py.typed similarity index 100% rename from test/test_models/__init__.py rename to fireblocks_client/py.typed diff --git a/fireblocks_client/rest.py b/fireblocks_client/rest.py index cde6bcef..4c82c9d1 100644 --- a/fireblocks_client/rest.py +++ b/fireblocks_client/rest.py @@ -3,140 +3,185 @@ """ Fireblocks API - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) The version of the OpenAPI document: 1.6.2 Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + -import logging +import io +import json +import re import ssl -from urllib.parse import urlencode -import typing -import certifi import urllib3 -from urllib3._collections import HTTPHeaderDict from fireblocks_client.exceptions import ApiException, ApiValueError -urllib3.disable_warnings() -logger = logging.getLogger(__name__) +SUPPORTED_SOCKS_PROXIES = {"socks5", "socks5h", "socks4", "socks4a"} +RESTResponseType = urllib3.HTTPResponse + + +def is_socks_proxy_url(url): + if url is None: + return False + split_section = url.split("://") + if len(split_section) < 2: + return False + else: + return split_section[0].lower() in SUPPORTED_SOCKS_PROXIES + + +class RESTResponse(io.IOBase): + + def __init__(self, resp) -> None: + self.response = resp + self.status = resp.status + self.reason = resp.reason + self.data = None + + def read(self): + if self.data is None: + self.data = self.response.data + return self.data + def getheaders(self): + """Returns a dictionary of the response headers.""" + return self.response.headers -class RESTClientObject(object): - def __init__(self, configuration, pools_size=4, maxsize=None): - cert_reqs = ssl.CERT_NONE - ca_certs = certifi.where() + def getheader(self, name, default=None): + """Returns a given response header.""" + return self.response.headers.get(name, default) - addition_pool_args = {} - if configuration.options and configuration.options.retries is not None: - addition_pool_args["retries"] = configuration.retries +class RESTClientObject: + + def __init__(self, configuration) -> None: + # urllib3.PoolManager will pass all kw parameters to connectionpool + # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/poolmanager.py#L75 # noqa: E501 + # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/connectionpool.py#L680 # noqa: E501 + # Custom SSL certificates and client certificates: http://urllib3.readthedocs.io/en/latest/advanced-usage.html # noqa: E501 + + # cert_reqs + if configuration.verify_ssl: + cert_reqs = ssl.CERT_REQUIRED + else: + cert_reqs = ssl.CERT_NONE + + pool_args = { + "cert_reqs": cert_reqs, + "ca_certs": configuration.ssl_ca_cert, + "cert_file": configuration.cert_file, + "key_file": configuration.key_file, + } + if configuration.assert_hostname is not None: + pool_args["assert_hostname"] = configuration.assert_hostname + + if configuration.retries is not None: + pool_args["retries"] = configuration.retries + + if configuration.tls_server_name: + pool_args["server_hostname"] = configuration.tls_server_name if configuration.socket_options is not None: - addition_pool_args["socket_options"] = configuration.socket_options + pool_args["socket_options"] = configuration.socket_options - if maxsize is None: - if configuration.connection_pool_maxsize is not None: - maxsize = configuration.connection_pool_maxsize - else: - maxsize = 4 + if configuration.connection_pool_maxsize is not None: + pool_args["maxsize"] = configuration.connection_pool_maxsize # https pool manager + self.pool_manager: urllib3.PoolManager + if configuration.proxy: - self.pool_manager = urllib3.ProxyManager( - num_pools=pools_size, - maxsize=maxsize, - cert_reqs=cert_reqs, - ca_certs=ca_certs, - cert_file=None, - key_file=None, - proxy_url=configuration.proxy, - proxy_headers=configuration.proxy_headers, - **addition_pool_args - ) + if is_socks_proxy_url(configuration.proxy): + from urllib3.contrib.socks import SOCKSProxyManager + + pool_args["proxy_url"] = configuration.proxy + pool_args["headers"] = configuration.proxy_headers + self.pool_manager = SOCKSProxyManager(**pool_args) + else: + pool_args["proxy_url"] = configuration.proxy + pool_args["proxy_headers"] = configuration.proxy_headers + self.pool_manager = urllib3.ProxyManager(**pool_args) else: - self.pool_manager = urllib3.PoolManager( - num_pools=pools_size, - maxsize=maxsize, - cert_reqs=cert_reqs, - ca_certs=ca_certs, - cert_file=None, - key_file=None, - **addition_pool_args - ) + self.pool_manager = urllib3.PoolManager(**pool_args) def request( self, - method: str, - url: str, - headers: typing.Optional[HTTPHeaderDict] = None, - fields: typing.Optional[ - typing.Tuple[typing.Tuple[str, typing.Any], ...] - ] = None, - body: typing.Optional[typing.Union[str, bytes]] = None, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> urllib3.HTTPResponse: + method, + url, + headers=None, + body=None, + post_params=None, + _request_timeout=None, + ): """Perform requests. :param method: http request method :param url: http request url :param headers: http request headers - :param body: request body, for other types - :param fields: request parameters for - `application/x-www-form-urlencoded` - or `multipart/form-data` - :param stream: if True, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is False. - :param timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param body: request json body, for `application/json` + :param post_params: request post parameters, + `application/x-www-form-urlencoded` + and `multipart/form-data` + :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 + (connection, read) timeouts. """ method = method.upper() assert method in ["GET", "HEAD", "DELETE", "POST", "PUT", "PATCH", "OPTIONS"] - if fields and body: - raise ApiValueError("body parameter cannot be used with fields parameter.") + if post_params and body: + raise ApiValueError( + "body parameter cannot be used with post_params parameter." + ) - fields = fields or {} + post_params = post_params or {} headers = headers or {} - if timeout: - if isinstance(timeout, (int, float)): # noqa: E501,F821 - timeout = urllib3.Timeout(total=timeout) - elif isinstance(timeout, tuple) and len(timeout) == 2: - timeout = urllib3.Timeout(connect=timeout[0], read=timeout[1]) + timeout = None + if _request_timeout: + if isinstance(_request_timeout, (int, float)): + timeout = urllib3.Timeout(total=_request_timeout) + elif isinstance(_request_timeout, tuple) and len(_request_timeout) == 2: + timeout = urllib3.Timeout( + connect=_request_timeout[0], read=_request_timeout[1] + ) try: # For `POST`, `PUT`, `PATCH`, `OPTIONS`, `DELETE` if method in ["POST", "PUT", "PATCH", "OPTIONS", "DELETE"]: - if "Content-Type" not in headers and body is None: + + # no content type provided or payload is json + content_type = headers.get("Content-Type") + if not content_type or re.search("json", content_type, re.IGNORECASE): + request_body = None + if body is not None: + request_body = json.dumps(body) r = self.pool_manager.request( method, url, - preload_content=not stream, + body=request_body, timeout=timeout, headers=headers, + preload_content=False, ) - elif ( - headers["Content-Type"] == "application/x-www-form-urlencoded" - ): # noqa: E501 + elif content_type == "application/x-www-form-urlencoded": r = self.pool_manager.request( method, url, - body=body, - fields=fields, + fields=post_params, encode_multipart=False, - preload_content=not stream, timeout=timeout, headers=headers, + preload_content=False, ) - elif headers["Content-Type"] == "multipart/form-data": + elif content_type == "multipart/form-data": # must del headers['Content-Type'], or the correct # Content-Type which generated by urllib3 will be # overwritten. @@ -144,22 +189,31 @@ def request( r = self.pool_manager.request( method, url, - fields=fields, + fields=post_params, encode_multipart=True, - preload_content=not stream, timeout=timeout, headers=headers, + preload_content=False, ) # Pass a `string` parameter directly in the body to support - # other content types than Json when `body` argument is - # provided in serialized form + # other content types than JSON when `body` argument is + # provided in serialized form. elif isinstance(body, str) or isinstance(body, bytes): - request_body = body + r = self.pool_manager.request( + method, + url, + body=body, + timeout=timeout, + headers=headers, + preload_content=False, + ) + elif headers["Content-Type"] == "text/plain" and isinstance(body, bool): + request_body = "true" if body else "false" r = self.pool_manager.request( method, url, body=request_body, - preload_content=not stream, + preload_content=False, timeout=timeout, headers=headers, ) @@ -174,95 +228,13 @@ def request( r = self.pool_manager.request( method, url, - preload_content=not stream, + fields={}, timeout=timeout, headers=headers, + preload_content=False, ) except urllib3.exceptions.SSLError as e: - msg = "{0}\n{1}".format(type(e).__name__, str(e)) + msg = "\n".join([type(e).__name__, str(e)]) raise ApiException(status=0, reason=msg) - if not stream: - # log response body - logger.debug("response body: %s", r.data) - - return r - - def GET( - self, url, headers=None, stream=False, timeout=None, fields=None - ) -> urllib3.HTTPResponse: - return self.request( - "GET", url, headers=headers, stream=stream, timeout=timeout, fields=fields - ) - - def HEAD( - self, url, headers=None, stream=False, timeout=None, fields=None - ) -> urllib3.HTTPResponse: - return self.request( - "HEAD", url, headers=headers, stream=stream, timeout=timeout, fields=fields - ) - - def OPTIONS( - self, url, headers=None, body=None, stream=False, timeout=None, fields=None - ) -> urllib3.HTTPResponse: - return self.request( - "OPTIONS", - url, - headers=headers, - stream=stream, - timeout=timeout, - body=body, - fields=fields, - ) - - def DELETE( - self, url, headers=None, body=None, stream=False, timeout=None, fields=None - ) -> urllib3.HTTPResponse: - return self.request( - "DELETE", - url, - headers=headers, - stream=stream, - timeout=timeout, - body=body, - fields=fields, - ) - - def POST( - self, url, headers=None, body=None, stream=False, timeout=None, fields=None - ) -> urllib3.HTTPResponse: - return self.request( - "POST", - url, - headers=headers, - stream=stream, - timeout=timeout, - body=body, - fields=fields, - ) - - def PUT( - self, url, headers=None, body=None, stream=False, timeout=None, fields=None - ) -> urllib3.HTTPResponse: - return self.request( - "PUT", - url, - headers=headers, - stream=stream, - timeout=timeout, - body=body, - fields=fields, - ) - - def PATCH( - self, url, headers=None, body=None, stream=False, timeout=None, fields=None - ) -> urllib3.HTTPResponse: - return self.request( - "PATCH", - url, - headers=headers, - stream=stream, - timeout=timeout, - body=body, - fields=fields, - ) + return RESTResponse(r) diff --git a/fireblocks_client/schemas.py b/fireblocks_client/schemas.py deleted file mode 100644 index b0d85fd1..00000000 --- a/fireblocks_client/schemas.py +++ /dev/null @@ -1,3038 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -from collections import defaultdict -from datetime import date, datetime, timedelta # noqa: F401 -import functools -import decimal -import io -import re -import types -import typing -import uuid - -from dateutil.parser.isoparser import isoparser, _takes_ascii -import frozendict - -from fireblocks_client.exceptions import ( - ApiTypeError, - ApiValueError, -) -from fireblocks_client.configuration import ( - Configuration, -) - - -class Unset(object): - """ - An instance of this class is set as the default value for object type(dict) properties that are optional - When a property has an unset value, that property will not be assigned in the dict - """ - - pass - - -unset = Unset() - -none_type = type(None) -file_type = io.IOBase - - -class FileIO(io.FileIO): - """ - A class for storing files - Note: this class is not immutable - """ - - def __new__(cls, _arg: typing.Union[io.FileIO, io.BufferedReader]): - if isinstance(_arg, (io.FileIO, io.BufferedReader)): - if _arg.closed: - raise ApiValueError( - "Invalid file state; file is closed and must be open" - ) - _arg.close() - inst = super(FileIO, cls).__new__(cls, _arg.name) - super(FileIO, inst).__init__(_arg.name) - return inst - raise ApiValueError("FileIO must be passed _arg which contains the open file") - - def __init__(self, _arg: typing.Union[io.FileIO, io.BufferedReader]): - pass - - -def update(d: dict, u: dict): - """ - Adds u to d - Where each dict is defaultdict(set) - """ - if not u: - return d - for k, v in u.items(): - if k not in d: - d[k] = v - else: - d[k] = d[k] | v - - -class ValidationMetadata(frozendict.frozendict): - """ - A class storing metadata that is needed to validate OpenApi Schema payloads - """ - - def __new__( - cls, - path_to_item: typing.Tuple[typing.Union[str, int], ...] = tuple(["args[0]"]), - from_server: bool = False, - configuration: typing.Optional[Configuration] = None, - seen_classes: typing.FrozenSet[typing.Type] = frozenset(), - validated_path_to_schemas: typing.Dict[ - typing.Tuple[typing.Union[str, int], ...], typing.Set[typing.Type] - ] = frozendict.frozendict(), - ): - """ - Args: - path_to_item: the path to the current data being instantiated. - For {'a': [1]} if the code is handling, 1, then the path is ('args[0]', 'a', 0) - This changes from location to location - from_server: whether or not this data came form the server - True when receiving server data - False when instantiating model with client side data not form the server - This does not change from location to location - configuration: the Configuration instance to use - This is needed because in Configuration: - - one can disable validation checking - This does not change from location to location - seen_classes: when deserializing data that matches multiple schemas, this is used to store - the schemas that have been traversed. This is used to stop processing when a cycle is seen. - This changes from location to location - validated_path_to_schemas: stores the already validated schema classes for a given path location - This does not change from location to location - """ - return super().__new__( - cls, - path_to_item=path_to_item, - from_server=from_server, - configuration=configuration, - seen_classes=seen_classes, - validated_path_to_schemas=validated_path_to_schemas, - ) - - def validation_ran_earlier(self, cls: type) -> bool: - validated_schemas = self.validated_path_to_schemas.get(self.path_to_item, set()) - validation_ran_earlier = validated_schemas and cls in validated_schemas - if validation_ran_earlier: - return True - if cls in self.seen_classes: - return True - return False - - @property - def path_to_item(self) -> typing.Tuple[typing.Union[str, int], ...]: - return self.get("path_to_item") - - @property - def from_server(self) -> bool: - return self.get("from_server") - - @property - def configuration(self) -> typing.Optional[Configuration]: - return self.get("configuration") - - @property - def seen_classes(self) -> typing.FrozenSet[typing.Type]: - return self.get("seen_classes") - - @property - def validated_path_to_schemas( - self, - ) -> typing.Dict[ - typing.Tuple[typing.Union[str, int], ...], typing.Set[typing.Type] - ]: - return self.get("validated_path_to_schemas") - - -def add_deeper_validated_schemas( - validation_metadata: ValidationMetadata, path_to_schemas: dict -): - # this is called if validation_ran_earlier and current and deeper locations need to be added - current_path_to_item = validation_metadata.path_to_item - other_path_to_schemas = {} - for path_to_item, schemas in validation_metadata.validated_path_to_schemas.items(): - if len(path_to_item) < len(current_path_to_item): - continue - path_begins_with_current_path = ( - path_to_item[: len(current_path_to_item)] == current_path_to_item - ) - if path_begins_with_current_path: - other_path_to_schemas[path_to_item] = schemas - update(path_to_schemas, other_path_to_schemas) - - -class Singleton: - """ - Enums and singletons are the same - The same instance is returned for a given key of (cls, _arg) - """ - - _instances = {} - - def __new__(cls, _arg: typing.Any, **kwargs): - """ - cls base classes: BoolClass, NoneClass, str, decimal.Decimal - The 3rd key is used in the tuple below for a corner case where an enum contains integer 1 - However 1.0 can also be ingested into that enum schema because 1.0 == 1 and - Decimal('1.0') == Decimal('1') - But if we omitted the 3rd value in the key, then Decimal('1.0') would be stored as Decimal('1') - and json serializing that instance would be '1' rather than the expected '1.0' - Adding the 3rd value, the str of _arg ensures that 1.0 -> Decimal('1.0') which is serialized as 1.0 - """ - key = (cls, _arg, str(_arg)) - if key not in cls._instances: - if isinstance(_arg, (none_type, bool, BoolClass, NoneClass)): - inst = super().__new__(cls) - cls._instances[key] = inst - else: - cls._instances[key] = super().__new__(cls, _arg) - return cls._instances[key] - - def __repr__(self): - if isinstance(self, NoneClass): - return f"<{self.__class__.__name__}: None>" - elif isinstance(self, BoolClass): - if bool(self): - return f"<{self.__class__.__name__}: True>" - return f"<{self.__class__.__name__}: False>" - return f"<{self.__class__.__name__}: {super().__repr__()}>" - - -class classproperty: - def __init__(self, fget): - self.fget = fget - - def __get__(self, owner_self, owner_cls): - return self.fget(owner_cls) - - -class NoneClass(Singleton): - @classproperty - def NONE(cls): - return cls(None) - - def __bool__(self) -> bool: - return False - - -class BoolClass(Singleton): - @classproperty - def TRUE(cls): - return cls(True) - - @classproperty - def FALSE(cls): - return cls(False) - - @functools.lru_cache() - def __bool__(self) -> bool: - for key, instance in self._instances.items(): - if self is instance: - return bool(key[1]) - raise ValueError("Unable to find the boolean value of this instance") - - -class MetaOapgTyped: - exclusive_maximum: typing.Union[int, float] - inclusive_maximum: typing.Union[int, float] - exclusive_minimum: typing.Union[int, float] - inclusive_minimum: typing.Union[int, float] - max_items: int - min_items: int - discriminator: typing.Dict[str, typing.Dict[str, typing.Type["Schema"]]] - - class properties: - # to hold object properties - pass - - additional_properties: typing.Optional[typing.Type["Schema"]] - max_properties: int - min_properties: int - all_of: typing.List[typing.Type["Schema"]] - one_of: typing.List[typing.Type["Schema"]] - any_of: typing.List[typing.Type["Schema"]] - not_schema: typing.Type["Schema"] - max_length: int - min_length: int - items: typing.Type["Schema"] - - -class Schema: - """ - the base class of all swagger/openapi schemas/models - """ - - __inheritable_primitive_types_set = { - decimal.Decimal, - str, - tuple, - frozendict.frozendict, - FileIO, - bytes, - BoolClass, - NoneClass, - } - _types: typing.Set[typing.Type] - MetaOapg = MetaOapgTyped - - @staticmethod - def __get_valid_classes_phrase(input_classes): - """Returns a string phrase describing what types are allowed""" - all_classes = list(input_classes) - all_classes = sorted(all_classes, key=lambda cls: cls.__name__) - all_class_names = [cls.__name__ for cls in all_classes] - if len(all_class_names) == 1: - return "is {0}".format(all_class_names[0]) - return "is one of [{0}]".format(", ".join(all_class_names)) - - @staticmethod - def _get_class_oapg( - item_cls: typing.Union[types.FunctionType, staticmethod, typing.Type["Schema"]] - ) -> typing.Type["Schema"]: - if isinstance(item_cls, types.FunctionType): - # referenced schema - return item_cls() - elif isinstance(item_cls, staticmethod): - # referenced schema - return item_cls.__func__() - return item_cls - - @classmethod - def __type_error_message( - cls, var_value=None, var_name=None, valid_classes=None, key_type=None - ): - """ - Keyword Args: - var_value (any): the variable which has the type_error - var_name (str): the name of the variable which has the typ error - valid_classes (tuple): the accepted classes for current_item's - value - key_type (bool): False if our value is a value in a dict - True if it is a key in a dict - False if our item is an item in a tuple - """ - key_or_value = "value" - if key_type: - key_or_value = "key" - valid_classes_phrase = cls.__get_valid_classes_phrase(valid_classes) - msg = "Invalid type. Required {1} type {2} and " "passed type was {3}".format( - var_name, - key_or_value, - valid_classes_phrase, - type(var_value).__name__, - ) - return msg - - @classmethod - def __get_type_error(cls, var_value, path_to_item, valid_classes, key_type=False): - error_msg = cls.__type_error_message( - var_name=path_to_item[-1], - var_value=var_value, - valid_classes=valid_classes, - key_type=key_type, - ) - return ApiTypeError( - error_msg, - path_to_item=path_to_item, - valid_classes=valid_classes, - key_type=key_type, - ) - - @classmethod - def _validate_oapg( - cls, - arg, - validation_metadata: ValidationMetadata, - ) -> typing.Dict[ - typing.Tuple[typing.Union[str, int], ...], - typing.Set[ - typing.Union[ - "Schema", - str, - decimal.Decimal, - BoolClass, - NoneClass, - frozendict.frozendict, - tuple, - ] - ], - ]: - """ - Schema _validate_oapg - All keyword validation except for type checking was done in calling stack frames - If those validations passed, the validated classes are collected in path_to_schemas - - Returns: - path_to_schemas: a map of path to schemas - - Raises: - ApiValueError: when a string can't be converted into a date or datetime and it must be one of those classes - ApiTypeError: when the input type is not in the list of allowed spec types - """ - base_class = type(arg) - if base_class not in cls._types: - raise cls.__get_type_error( - arg, - validation_metadata.path_to_item, - cls._types, - key_type=False, - ) - - path_to_schemas = {validation_metadata.path_to_item: set()} - path_to_schemas[validation_metadata.path_to_item].add(cls) - path_to_schemas[validation_metadata.path_to_item].add(base_class) - return path_to_schemas - - @staticmethod - def _process_schema_classes_oapg( - schema_classes: typing.Set[ - typing.Union[ - "Schema", - str, - decimal.Decimal, - BoolClass, - NoneClass, - frozendict.frozendict, - tuple, - ] - ] - ): - """ - Processes and mutates schema_classes - If a SomeSchema is a subclass of DictSchema then remove DictSchema because it is already included - """ - if len(schema_classes) < 2: - return - if len(schema_classes) > 2 and UnsetAnyTypeSchema in schema_classes: - schema_classes.remove(UnsetAnyTypeSchema) - x_schema = schema_type_classes & schema_classes - if not x_schema: - return - x_schema = x_schema.pop() - if any(c is not x_schema and issubclass(c, x_schema) for c in schema_classes): - # needed to not have a mro error in get_new_class - schema_classes.remove(x_schema) - - @classmethod - def __get_new_cls( - cls, arg, validation_metadata: ValidationMetadata - ) -> typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Type["Schema"]]: - """ - Make a new dynamic class and return an instance of that class - We are making an instance of cls, but instead of making cls - make a new class, new_cls - which includes dynamic bases including cls - return an instance of that new class - - Dict property + List Item Assignment Use cases: - 1. value is NOT an instance of the required schema class - the value is validated by _validate_oapg - _validate_oapg returns a key value pair - where the key is the path to the item, and the value will be the required manufactured class - made out of the matching schemas - 2. value is an instance of the correct schema type - the value is NOT validated by _validate_oapg, _validate_oapg only checks that the instance is of the correct schema type - for this value, _validate_oapg does NOT return an entry for it in _path_to_schemas - and in list/dict _get_items_oapg,_get_properties_oapg the value will be directly assigned - because value is of the correct type, and validation was run earlier when the instance was created - """ - _path_to_schemas = {} - if validation_metadata.validation_ran_earlier(cls): - add_deeper_validated_schemas(validation_metadata, _path_to_schemas) - else: - other_path_to_schemas = cls._validate_oapg( - arg, validation_metadata=validation_metadata - ) - update(_path_to_schemas, other_path_to_schemas) - # loop through it make a new class for each entry - # do not modify the returned result because it is cached and we would be modifying the cached value - path_to_schemas = {} - for path, schema_classes in _path_to_schemas.items(): - """ - Use cases - 1. N number of schema classes + enum + type != bool/None, classes in path_to_schemas: tuple/frozendict.frozendict/str/Decimal/bytes/FileIo - needs Singleton added - 2. N number of schema classes + enum + type == bool/None, classes in path_to_schemas: BoolClass/NoneClass - Singleton already added - 3. N number of schema classes, classes in path_to_schemas: BoolClass/NoneClass/tuple/frozendict.frozendict/str/Decimal/bytes/FileIo - """ - cls._process_schema_classes_oapg(schema_classes) - enum_schema = any( - issubclass(this_cls, EnumBase) for this_cls in schema_classes - ) - inheritable_primitive_type = schema_classes.intersection( - cls.__inheritable_primitive_types_set - ) - chosen_schema_classes = schema_classes - inheritable_primitive_type - suffix = tuple(inheritable_primitive_type) - if enum_schema and suffix[0] not in {NoneClass, BoolClass}: - suffix = (Singleton,) + suffix - - used_classes = ( - tuple(sorted(chosen_schema_classes, key=lambda a_cls: a_cls.__name__)) - + suffix - ) - mfg_cls = get_new_class(class_name="DynamicSchema", bases=used_classes) - path_to_schemas[path] = mfg_cls - - return path_to_schemas - - @classmethod - def _get_new_instance_without_conversion_oapg( - cls, - arg: typing.Any, - path_to_item: typing.Tuple[typing.Union[str, int], ...], - path_to_schemas: typing.Dict[ - typing.Tuple[typing.Union[str, int], ...], typing.Type["Schema"] - ], - ): - # We have a Dynamic class and we are making an instance of it - if issubclass(cls, frozendict.frozendict) and issubclass(cls, DictBase): - properties = cls._get_properties_oapg(arg, path_to_item, path_to_schemas) - return super(Schema, cls).__new__(cls, properties) - elif issubclass(cls, tuple) and issubclass(cls, ListBase): - items = cls._get_items_oapg(arg, path_to_item, path_to_schemas) - return super(Schema, cls).__new__(cls, items) - """ - str = openapi str, date, and datetime - decimal.Decimal = openapi int and float - FileIO = openapi binary type and the user inputs a file - bytes = openapi binary type and the user inputs bytes - """ - return super(Schema, cls).__new__(cls, arg) - - @classmethod - def from_openapi_data_oapg( - cls, - arg: typing.Union[ - str, - date, - datetime, - int, - float, - decimal.Decimal, - bool, - None, - "Schema", - dict, - frozendict.frozendict, - tuple, - list, - io.FileIO, - io.BufferedReader, - bytes, - ], - _configuration: typing.Optional[Configuration], - ): - """ - Schema from_openapi_data_oapg - """ - from_server = True - validated_path_to_schemas = {} - arg = cast_to_allowed_types(arg, from_server, validated_path_to_schemas) - validation_metadata = ValidationMetadata( - from_server=from_server, - configuration=_configuration, - validated_path_to_schemas=validated_path_to_schemas, - ) - path_to_schemas = cls.__get_new_cls(arg, validation_metadata) - new_cls = path_to_schemas[validation_metadata.path_to_item] - new_inst = new_cls._get_new_instance_without_conversion_oapg( - arg, validation_metadata.path_to_item, path_to_schemas - ) - return new_inst - - @staticmethod - def __get_input_dict(*args, **kwargs) -> frozendict.frozendict: - input_dict = {} - if args and isinstance(args[0], (dict, frozendict.frozendict)): - input_dict.update(args[0]) - if kwargs: - input_dict.update(kwargs) - return frozendict.frozendict(input_dict) - - @staticmethod - def __remove_unsets(kwargs): - return {key: val for key, val in kwargs.items() if val is not unset} - - def __new__( - cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - list, - tuple, - decimal.Decimal, - float, - int, - str, - date, - datetime, - bool, - None, - "Schema", - ], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Union[ - dict, - frozendict.frozendict, - list, - tuple, - decimal.Decimal, - float, - int, - str, - date, - datetime, - bool, - None, - "Schema", - Unset, - ], - ): - """ - Schema __new__ - - Args: - _args (int/float/decimal.Decimal/str/list/tuple/dict/frozendict.frozendict/bool/None): the value - kwargs (str, int/float/decimal.Decimal/str/list/tuple/dict/frozendict.frozendict/bool/None): dict values - _configuration: contains the Configuration that enables json schema validation keywords - like minItems, minLength etc - - Note: double underscores are used here because pycharm thinks that these variables - are instance properties if they are named normally :( - """ - __kwargs = cls.__remove_unsets(kwargs) - if not _args and not __kwargs: - raise TypeError("No input given. args or kwargs must be given.") - if not __kwargs and _args and not isinstance(_args[0], dict): - __arg = _args[0] - else: - __arg = cls.__get_input_dict(*_args, **__kwargs) - __from_server = False - __validated_path_to_schemas = {} - __arg = cast_to_allowed_types(__arg, __from_server, __validated_path_to_schemas) - __validation_metadata = ValidationMetadata( - configuration=_configuration, - from_server=__from_server, - validated_path_to_schemas=__validated_path_to_schemas, - ) - __path_to_schemas = cls.__get_new_cls(__arg, __validation_metadata) - __new_cls = __path_to_schemas[__validation_metadata.path_to_item] - return __new_cls._get_new_instance_without_conversion_oapg( - __arg, __validation_metadata.path_to_item, __path_to_schemas - ) - - def __init__( - self, - *_args: typing.Union[ - dict, - frozendict.frozendict, - list, - tuple, - decimal.Decimal, - float, - int, - str, - date, - datetime, - bool, - None, - "Schema", - ], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Union[ - dict, - frozendict.frozendict, - list, - tuple, - decimal.Decimal, - float, - int, - str, - date, - datetime, - bool, - None, - "Schema", - Unset, - ], - ): - """ - this is needed to fix 'Unexpected argument' warning in pycharm - this code does nothing because all Schema instances are immutable - this means that all input data is passed into and used in new, and after the new instance is made - no new attributes are assigned and init is not used - """ - pass - - -""" -import itertools -data_types = ('None', 'FrozenDict', 'Tuple', 'Str', 'Decimal', 'Bool') -type_to_cls = { - 'None': 'NoneClass', - 'FrozenDict': 'frozendict.frozendict', - 'Tuple': 'tuple', - 'Str': 'str', - 'Decimal': 'decimal.Decimal', - 'Bool': 'BoolClass' -} -cls_tuples = [v for v in itertools.combinations(data_types, 5)] -typed_classes = [f"class {''.join(cls_tuple)}Mixin({', '.join(type_to_cls[typ] for typ in cls_tuple)}):\n pass" for cls_tuple in cls_tuples] -for cls in typed_classes: - print(cls) -object_classes = [f"{''.join(cls_tuple)}Mixin = object" for cls_tuple in cls_tuples] -for cls in object_classes: - print(cls) -""" -if typing.TYPE_CHECKING: - # qty 1 - NoneMixin = NoneClass - FrozenDictMixin = frozendict.frozendict - TupleMixin = tuple - StrMixin = str - DecimalMixin = decimal.Decimal - BoolMixin = BoolClass - BytesMixin = bytes - FileMixin = FileIO - - # qty 2 - class BinaryMixin(bytes, FileIO): - pass - - class NoneFrozenDictMixin(NoneClass, frozendict.frozendict): - pass - - class NoneTupleMixin(NoneClass, tuple): - pass - - class NoneStrMixin(NoneClass, str): - pass - - class NoneDecimalMixin(NoneClass, decimal.Decimal): - pass - - class NoneBoolMixin(NoneClass, BoolClass): - pass - - class FrozenDictTupleMixin(frozendict.frozendict, tuple): - pass - - class FrozenDictStrMixin(frozendict.frozendict, str): - pass - - class FrozenDictDecimalMixin(frozendict.frozendict, decimal.Decimal): - pass - - class FrozenDictBoolMixin(frozendict.frozendict, BoolClass): - pass - - class TupleStrMixin(tuple, str): - pass - - class TupleDecimalMixin(tuple, decimal.Decimal): - pass - - class TupleBoolMixin(tuple, BoolClass): - pass - - class StrDecimalMixin(str, decimal.Decimal): - pass - - class StrBoolMixin(str, BoolClass): - pass - - class DecimalBoolMixin(decimal.Decimal, BoolClass): - pass - - # qty 3 - class NoneFrozenDictTupleMixin(NoneClass, frozendict.frozendict, tuple): - pass - - class NoneFrozenDictStrMixin(NoneClass, frozendict.frozendict, str): - pass - - class NoneFrozenDictDecimalMixin(NoneClass, frozendict.frozendict, decimal.Decimal): - pass - - class NoneFrozenDictBoolMixin(NoneClass, frozendict.frozendict, BoolClass): - pass - - class NoneTupleStrMixin(NoneClass, tuple, str): - pass - - class NoneTupleDecimalMixin(NoneClass, tuple, decimal.Decimal): - pass - - class NoneTupleBoolMixin(NoneClass, tuple, BoolClass): - pass - - class NoneStrDecimalMixin(NoneClass, str, decimal.Decimal): - pass - - class NoneStrBoolMixin(NoneClass, str, BoolClass): - pass - - class NoneDecimalBoolMixin(NoneClass, decimal.Decimal, BoolClass): - pass - - class FrozenDictTupleStrMixin(frozendict.frozendict, tuple, str): - pass - - class FrozenDictTupleDecimalMixin(frozendict.frozendict, tuple, decimal.Decimal): - pass - - class FrozenDictTupleBoolMixin(frozendict.frozendict, tuple, BoolClass): - pass - - class FrozenDictStrDecimalMixin(frozendict.frozendict, str, decimal.Decimal): - pass - - class FrozenDictStrBoolMixin(frozendict.frozendict, str, BoolClass): - pass - - class FrozenDictDecimalBoolMixin(frozendict.frozendict, decimal.Decimal, BoolClass): - pass - - class TupleStrDecimalMixin(tuple, str, decimal.Decimal): - pass - - class TupleStrBoolMixin(tuple, str, BoolClass): - pass - - class TupleDecimalBoolMixin(tuple, decimal.Decimal, BoolClass): - pass - - class StrDecimalBoolMixin(str, decimal.Decimal, BoolClass): - pass - - # qty 4 - class NoneFrozenDictTupleStrMixin(NoneClass, frozendict.frozendict, tuple, str): - pass - - class NoneFrozenDictTupleDecimalMixin( - NoneClass, frozendict.frozendict, tuple, decimal.Decimal - ): - pass - - class NoneFrozenDictTupleBoolMixin( - NoneClass, frozendict.frozendict, tuple, BoolClass - ): - pass - - class NoneFrozenDictStrDecimalMixin( - NoneClass, frozendict.frozendict, str, decimal.Decimal - ): - pass - - class NoneFrozenDictStrBoolMixin(NoneClass, frozendict.frozendict, str, BoolClass): - pass - - class NoneFrozenDictDecimalBoolMixin( - NoneClass, frozendict.frozendict, decimal.Decimal, BoolClass - ): - pass - - class NoneTupleStrDecimalMixin(NoneClass, tuple, str, decimal.Decimal): - pass - - class NoneTupleStrBoolMixin(NoneClass, tuple, str, BoolClass): - pass - - class NoneTupleDecimalBoolMixin(NoneClass, tuple, decimal.Decimal, BoolClass): - pass - - class NoneStrDecimalBoolMixin(NoneClass, str, decimal.Decimal, BoolClass): - pass - - class FrozenDictTupleStrDecimalMixin( - frozendict.frozendict, tuple, str, decimal.Decimal - ): - pass - - class FrozenDictTupleStrBoolMixin(frozendict.frozendict, tuple, str, BoolClass): - pass - - class FrozenDictTupleDecimalBoolMixin( - frozendict.frozendict, tuple, decimal.Decimal, BoolClass - ): - pass - - class FrozenDictStrDecimalBoolMixin( - frozendict.frozendict, str, decimal.Decimal, BoolClass - ): - pass - - class TupleStrDecimalBoolMixin(tuple, str, decimal.Decimal, BoolClass): - pass - - # qty 5 - class NoneFrozenDictTupleStrDecimalMixin( - NoneClass, frozendict.frozendict, tuple, str, decimal.Decimal - ): - pass - - class NoneFrozenDictTupleStrBoolMixin( - NoneClass, frozendict.frozendict, tuple, str, BoolClass - ): - pass - - class NoneFrozenDictTupleDecimalBoolMixin( - NoneClass, frozendict.frozendict, tuple, decimal.Decimal, BoolClass - ): - pass - - class NoneFrozenDictStrDecimalBoolMixin( - NoneClass, frozendict.frozendict, str, decimal.Decimal, BoolClass - ): - pass - - class NoneTupleStrDecimalBoolMixin( - NoneClass, tuple, str, decimal.Decimal, BoolClass - ): - pass - - class FrozenDictTupleStrDecimalBoolMixin( - frozendict.frozendict, tuple, str, decimal.Decimal, BoolClass - ): - pass - - # qty 6 - class NoneFrozenDictTupleStrDecimalBoolMixin( - NoneClass, frozendict.frozendict, tuple, str, decimal.Decimal, BoolClass - ): - pass - - # qty 8 - class NoneFrozenDictTupleStrDecimalBoolFileBytesMixin( - NoneClass, - frozendict.frozendict, - tuple, - str, - decimal.Decimal, - BoolClass, - FileIO, - bytes, - ): - pass - -else: - # qty 1 - class NoneMixin: - _types = {NoneClass} - - class FrozenDictMixin: - _types = {frozendict.frozendict} - - class TupleMixin: - _types = {tuple} - - class StrMixin: - _types = {str} - - class DecimalMixin: - _types = {decimal.Decimal} - - class BoolMixin: - _types = {BoolClass} - - class BytesMixin: - _types = {bytes} - - class FileMixin: - _types = {FileIO} - - # qty 2 - class BinaryMixin: - _types = {bytes, FileIO} - - class NoneFrozenDictMixin: - _types = {NoneClass, frozendict.frozendict} - - class NoneTupleMixin: - _types = {NoneClass, tuple} - - class NoneStrMixin: - _types = {NoneClass, str} - - class NoneDecimalMixin: - _types = {NoneClass, decimal.Decimal} - - class NoneBoolMixin: - _types = {NoneClass, BoolClass} - - class FrozenDictTupleMixin: - _types = {frozendict.frozendict, tuple} - - class FrozenDictStrMixin: - _types = {frozendict.frozendict, str} - - class FrozenDictDecimalMixin: - _types = {frozendict.frozendict, decimal.Decimal} - - class FrozenDictBoolMixin: - _types = {frozendict.frozendict, BoolClass} - - class TupleStrMixin: - _types = {tuple, str} - - class TupleDecimalMixin: - _types = {tuple, decimal.Decimal} - - class TupleBoolMixin: - _types = {tuple, BoolClass} - - class StrDecimalMixin: - _types = {str, decimal.Decimal} - - class StrBoolMixin: - _types = {str, BoolClass} - - class DecimalBoolMixin: - _types = {decimal.Decimal, BoolClass} - - # qty 3 - class NoneFrozenDictTupleMixin: - _types = {NoneClass, frozendict.frozendict, tuple} - - class NoneFrozenDictStrMixin: - _types = {NoneClass, frozendict.frozendict, str} - - class NoneFrozenDictDecimalMixin: - _types = {NoneClass, frozendict.frozendict, decimal.Decimal} - - class NoneFrozenDictBoolMixin: - _types = {NoneClass, frozendict.frozendict, BoolClass} - - class NoneTupleStrMixin: - _types = {NoneClass, tuple, str} - - class NoneTupleDecimalMixin: - _types = {NoneClass, tuple, decimal.Decimal} - - class NoneTupleBoolMixin: - _types = {NoneClass, tuple, BoolClass} - - class NoneStrDecimalMixin: - _types = {NoneClass, str, decimal.Decimal} - - class NoneStrBoolMixin: - _types = {NoneClass, str, BoolClass} - - class NoneDecimalBoolMixin: - _types = {NoneClass, decimal.Decimal, BoolClass} - - class FrozenDictTupleStrMixin: - _types = {frozendict.frozendict, tuple, str} - - class FrozenDictTupleDecimalMixin: - _types = {frozendict.frozendict, tuple, decimal.Decimal} - - class FrozenDictTupleBoolMixin: - _types = {frozendict.frozendict, tuple, BoolClass} - - class FrozenDictStrDecimalMixin: - _types = {frozendict.frozendict, str, decimal.Decimal} - - class FrozenDictStrBoolMixin: - _types = {frozendict.frozendict, str, BoolClass} - - class FrozenDictDecimalBoolMixin: - _types = {frozendict.frozendict, decimal.Decimal, BoolClass} - - class TupleStrDecimalMixin: - _types = {tuple, str, decimal.Decimal} - - class TupleStrBoolMixin: - _types = {tuple, str, BoolClass} - - class TupleDecimalBoolMixin: - _types = {tuple, decimal.Decimal, BoolClass} - - class StrDecimalBoolMixin: - _types = {str, decimal.Decimal, BoolClass} - - # qty 4 - class NoneFrozenDictTupleStrMixin: - _types = {NoneClass, frozendict.frozendict, tuple, str} - - class NoneFrozenDictTupleDecimalMixin: - _types = {NoneClass, frozendict.frozendict, tuple, decimal.Decimal} - - class NoneFrozenDictTupleBoolMixin: - _types = {NoneClass, frozendict.frozendict, tuple, BoolClass} - - class NoneFrozenDictStrDecimalMixin: - _types = {NoneClass, frozendict.frozendict, str, decimal.Decimal} - - class NoneFrozenDictStrBoolMixin: - _types = {NoneClass, frozendict.frozendict, str, BoolClass} - - class NoneFrozenDictDecimalBoolMixin: - _types = {NoneClass, frozendict.frozendict, decimal.Decimal, BoolClass} - - class NoneTupleStrDecimalMixin: - _types = {NoneClass, tuple, str, decimal.Decimal} - - class NoneTupleStrBoolMixin: - _types = {NoneClass, tuple, str, BoolClass} - - class NoneTupleDecimalBoolMixin: - _types = {NoneClass, tuple, decimal.Decimal, BoolClass} - - class NoneStrDecimalBoolMixin: - _types = {NoneClass, str, decimal.Decimal, BoolClass} - - class FrozenDictTupleStrDecimalMixin: - _types = {frozendict.frozendict, tuple, str, decimal.Decimal} - - class FrozenDictTupleStrBoolMixin: - _types = {frozendict.frozendict, tuple, str, BoolClass} - - class FrozenDictTupleDecimalBoolMixin: - _types = {frozendict.frozendict, tuple, decimal.Decimal, BoolClass} - - class FrozenDictStrDecimalBoolMixin: - _types = {frozendict.frozendict, str, decimal.Decimal, BoolClass} - - class TupleStrDecimalBoolMixin: - _types = {tuple, str, decimal.Decimal, BoolClass} - - # qty 5 - class NoneFrozenDictTupleStrDecimalMixin: - _types = {NoneClass, frozendict.frozendict, tuple, str, decimal.Decimal} - - class NoneFrozenDictTupleStrBoolMixin: - _types = {NoneClass, frozendict.frozendict, tuple, str, BoolClass} - - class NoneFrozenDictTupleDecimalBoolMixin: - _types = {NoneClass, frozendict.frozendict, tuple, decimal.Decimal, BoolClass} - - class NoneFrozenDictStrDecimalBoolMixin: - _types = {NoneClass, frozendict.frozendict, str, decimal.Decimal, BoolClass} - - class NoneTupleStrDecimalBoolMixin: - _types = {NoneClass, tuple, str, decimal.Decimal, BoolClass} - - class FrozenDictTupleStrDecimalBoolMixin: - _types = {frozendict.frozendict, tuple, str, decimal.Decimal, BoolClass} - - # qty 6 - class NoneFrozenDictTupleStrDecimalBoolMixin: - _types = { - NoneClass, - frozendict.frozendict, - tuple, - str, - decimal.Decimal, - BoolClass, - } - - # qty 8 - class NoneFrozenDictTupleStrDecimalBoolFileBytesMixin: - _types = { - NoneClass, - frozendict.frozendict, - tuple, - str, - decimal.Decimal, - BoolClass, - FileIO, - bytes, - } - - -class ValidatorBase: - @staticmethod - def _is_json_validation_enabled_oapg(schema_keyword, configuration=None): - """Returns true if JSON schema validation is enabled for the specified - validation keyword. This can be used to skip JSON schema structural validation - as requested in the configuration. - Note: the suffix _oapg stands for openapi python (experimental) generator and - it has been added to prevent collisions with other methods and properties - - Args: - schema_keyword (string): the name of a JSON schema validation keyword. - configuration (Configuration): the configuration class. - """ - - return ( - configuration is None - or not hasattr(configuration, "_disabled_client_side_validations") - or schema_keyword not in configuration._disabled_client_side_validations - ) - - @staticmethod - def _raise_validation_error_message_oapg( - value, constraint_msg, constraint_value, path_to_item, additional_txt="" - ): - raise ApiValueError( - "Invalid value `{value}`, {constraint_msg} `{constraint_value}`{additional_txt} at {path_to_item}".format( - value=value, - constraint_msg=constraint_msg, - constraint_value=constraint_value, - additional_txt=additional_txt, - path_to_item=path_to_item, - ) - ) - - -class EnumBase: - @classmethod - def _validate_oapg( - cls, - arg, - validation_metadata: ValidationMetadata, - ) -> typing.Dict[ - typing.Tuple[typing.Union[str, int], ...], - typing.Set[ - typing.Union[ - "Schema", - str, - decimal.Decimal, - BoolClass, - NoneClass, - frozendict.frozendict, - tuple, - ] - ], - ]: - """ - EnumBase _validate_oapg - Validates that arg is in the enum's allowed values - """ - try: - cls.MetaOapg.enum_value_to_name[arg] - except KeyError: - raise ApiValueError( - "Invalid value {} passed in to {}, allowed_values={}".format( - arg, cls, cls.MetaOapg.enum_value_to_name.keys() - ) - ) - return super()._validate_oapg(arg, validation_metadata=validation_metadata) - - -class BoolBase: - def is_true_oapg(self) -> bool: - """ - A replacement for x is True - True if the instance is a BoolClass True Singleton - """ - if not issubclass(self.__class__, BoolClass): - return False - return bool(self) - - def is_false_oapg(self) -> bool: - """ - A replacement for x is False - True if the instance is a BoolClass False Singleton - """ - if not issubclass(self.__class__, BoolClass): - return False - return bool(self) is False - - -class NoneBase: - def is_none_oapg(self) -> bool: - """ - A replacement for x is None - True if the instance is a NoneClass None Singleton - """ - if issubclass(self.__class__, NoneClass): - return True - return False - - -class StrBase(ValidatorBase): - MetaOapg: MetaOapgTyped - - @property - def as_str_oapg(self) -> str: - return self - - @property - def as_date_oapg(self) -> date: - raise Exception("not implemented") - - @property - def as_datetime_oapg(self) -> datetime: - raise Exception("not implemented") - - @property - def as_decimal_oapg(self) -> decimal.Decimal: - raise Exception("not implemented") - - @property - def as_uuid_oapg(self) -> uuid.UUID: - raise Exception("not implemented") - - @classmethod - def __check_str_validations(cls, arg: str, validation_metadata: ValidationMetadata): - if not hasattr(cls, "MetaOapg"): - return - if ( - cls._is_json_validation_enabled_oapg( - "maxLength", validation_metadata.configuration - ) - and hasattr(cls.MetaOapg, "max_length") - and len(arg) > cls.MetaOapg.max_length - ): - cls._raise_validation_error_message_oapg( - value=arg, - constraint_msg="length must be less than or equal to", - constraint_value=cls.MetaOapg.max_length, - path_to_item=validation_metadata.path_to_item, - ) - - if ( - cls._is_json_validation_enabled_oapg( - "minLength", validation_metadata.configuration - ) - and hasattr(cls.MetaOapg, "min_length") - and len(arg) < cls.MetaOapg.min_length - ): - cls._raise_validation_error_message_oapg( - value=arg, - constraint_msg="length must be greater than or equal to", - constraint_value=cls.MetaOapg.min_length, - path_to_item=validation_metadata.path_to_item, - ) - - if cls._is_json_validation_enabled_oapg( - "pattern", validation_metadata.configuration - ) and hasattr(cls.MetaOapg, "regex"): - for regex_dict in cls.MetaOapg.regex: - flags = regex_dict.get("flags", 0) - if not re.search(regex_dict["pattern"], arg, flags=flags): - if flags != 0: - # Don't print the regex flags if the flags are not - # specified in the OAS document. - cls._raise_validation_error_message_oapg( - value=arg, - constraint_msg="must match regular expression", - constraint_value=regex_dict["pattern"], - path_to_item=validation_metadata.path_to_item, - additional_txt=" with flags=`{}`".format(flags), - ) - cls._raise_validation_error_message_oapg( - value=arg, - constraint_msg="must match regular expression", - constraint_value=regex_dict["pattern"], - path_to_item=validation_metadata.path_to_item, - ) - - @classmethod - def _validate_oapg( - cls, - arg, - validation_metadata: ValidationMetadata, - ) -> typing.Dict[ - typing.Tuple[typing.Union[str, int], ...], - typing.Set[ - typing.Union[ - "Schema", - str, - decimal.Decimal, - BoolClass, - NoneClass, - frozendict.frozendict, - tuple, - ] - ], - ]: - """ - StrBase _validate_oapg - Validates that validations pass - """ - if isinstance(arg, str): - cls.__check_str_validations(arg, validation_metadata) - return super()._validate_oapg(arg, validation_metadata=validation_metadata) - - -class UUIDBase: - @property - @functools.lru_cache() - def as_uuid_oapg(self) -> uuid.UUID: - return uuid.UUID(self) - - @classmethod - def __validate_format( - cls, arg: typing.Optional[str], validation_metadata: ValidationMetadata - ): - if isinstance(arg, str): - try: - uuid.UUID(arg) - return True - except ValueError: - raise ApiValueError( - "Invalid value '{}' for type UUID at {}".format( - arg, validation_metadata.path_to_item - ) - ) - - @classmethod - def _validate_oapg( - cls, - arg, - validation_metadata: typing.Optional[ValidationMetadata] = None, - ): - """ - UUIDBase _validate_oapg - """ - cls.__validate_format(arg, validation_metadata=validation_metadata) - return super()._validate_oapg(arg, validation_metadata=validation_metadata) - - -class CustomIsoparser(isoparser): - @_takes_ascii - def parse_isodatetime(self, dt_str): - components, pos = self._parse_isodate(dt_str) - if len(dt_str) > pos: - if self._sep is None or dt_str[pos : pos + 1] == self._sep: - components += self._parse_isotime(dt_str[pos + 1 :]) - else: - raise ValueError("String contains unknown ISO components") - - if len(components) > 3 and components[3] == 24: - components[3] = 0 - return datetime(*components) + timedelta(days=1) - - if len(components) <= 3: - raise ValueError("Value is not a datetime") - - return datetime(*components) - - @_takes_ascii - def parse_isodate(self, datestr): - components, pos = self._parse_isodate(datestr) - - if len(datestr) > pos: - raise ValueError("String contains invalid time components") - - if len(components) > 3: - raise ValueError("String contains invalid time components") - - return date(*components) - - -DEFAULT_ISOPARSER = CustomIsoparser() - - -class DateBase: - @property - @functools.lru_cache() - def as_date_oapg(self) -> date: - return DEFAULT_ISOPARSER.parse_isodate(self) - - @classmethod - def __validate_format( - cls, arg: typing.Optional[str], validation_metadata: ValidationMetadata - ): - if isinstance(arg, str): - try: - DEFAULT_ISOPARSER.parse_isodate(arg) - return True - except ValueError: - raise ApiValueError( - "Value does not conform to the required ISO-8601 date format. " - "Invalid value '{}' for type date at {}".format( - arg, validation_metadata.path_to_item - ) - ) - - @classmethod - def _validate_oapg( - cls, - arg, - validation_metadata: typing.Optional[ValidationMetadata] = None, - ): - """ - DateBase _validate_oapg - """ - cls.__validate_format(arg, validation_metadata=validation_metadata) - return super()._validate_oapg(arg, validation_metadata=validation_metadata) - - -class DateTimeBase: - @property - @functools.lru_cache() - def as_datetime_oapg(self) -> datetime: - return DEFAULT_ISOPARSER.parse_isodatetime(self) - - @classmethod - def __validate_format( - cls, arg: typing.Optional[str], validation_metadata: ValidationMetadata - ): - if isinstance(arg, str): - try: - DEFAULT_ISOPARSER.parse_isodatetime(arg) - return True - except ValueError: - raise ApiValueError( - "Value does not conform to the required ISO-8601 datetime format. " - "Invalid value '{}' for type datetime at {}".format( - arg, validation_metadata.path_to_item - ) - ) - - @classmethod - def _validate_oapg( - cls, - arg, - validation_metadata: ValidationMetadata, - ): - """ - DateTimeBase _validate_oapg - """ - cls.__validate_format(arg, validation_metadata=validation_metadata) - return super()._validate_oapg(arg, validation_metadata=validation_metadata) - - -class DecimalBase: - """ - A class for storing decimals that are sent over the wire as strings - These schemas must remain based on StrBase rather than NumberBase - because picking base classes must be deterministic - """ - - @property - @functools.lru_cache() - def as_decimal_oapg(self) -> decimal.Decimal: - return decimal.Decimal(self) - - @classmethod - def __validate_format( - cls, arg: typing.Optional[str], validation_metadata: ValidationMetadata - ): - if isinstance(arg, str): - try: - decimal.Decimal(arg) - return True - except decimal.InvalidOperation: - raise ApiValueError( - "Value cannot be converted to a decimal. " - "Invalid value '{}' for type decimal at {}".format( - arg, validation_metadata.path_to_item - ) - ) - - @classmethod - def _validate_oapg( - cls, - arg, - validation_metadata: ValidationMetadata, - ): - """ - DecimalBase _validate_oapg - """ - cls.__validate_format(arg, validation_metadata=validation_metadata) - return super()._validate_oapg(arg, validation_metadata=validation_metadata) - - -class NumberBase(ValidatorBase): - MetaOapg: MetaOapgTyped - - @property - def as_int_oapg(self) -> int: - try: - return self._as_int - except AttributeError: - """ - Note: for some numbers like 9.0 they could be represented as an - integer but our code chooses to store them as - >>> Decimal('9.0').as_tuple() - DecimalTuple(sign=0, digits=(9, 0), exponent=-1) - so we can tell that the value came from a float and convert it back to a float - during later serialization - """ - if self.as_tuple().exponent < 0: - # this could be represented as an integer but should be represented as a float - # because that's what it was serialized from - raise ApiValueError(f"{self} is not an integer") - self._as_int = int(self) - return self._as_int - - @property - def as_float_oapg(self) -> float: - try: - return self._as_float - except AttributeError: - if self.as_tuple().exponent >= 0: - raise ApiValueError(f"{self} is not a float") - self._as_float = float(self) - return self._as_float - - @classmethod - def __check_numeric_validations(cls, arg, validation_metadata: ValidationMetadata): - if not hasattr(cls, "MetaOapg"): - return - if cls._is_json_validation_enabled_oapg( - "multipleOf", validation_metadata.configuration - ) and hasattr(cls.MetaOapg, "multiple_of"): - multiple_of_value = cls.MetaOapg.multiple_of - if not (float(arg) / multiple_of_value).is_integer(): - # Note 'multipleOf' will be as good as the floating point arithmetic. - cls._raise_validation_error_message_oapg( - value=arg, - constraint_msg="value must be a multiple of", - constraint_value=multiple_of_value, - path_to_item=validation_metadata.path_to_item, - ) - - checking_max_or_min_values = any( - hasattr(cls.MetaOapg, validation_key) - for validation_key in { - "exclusive_maximum", - "inclusive_maximum", - "exclusive_minimum", - "inclusive_minimum", - } - ) - if not checking_max_or_min_values: - return - - if ( - cls._is_json_validation_enabled_oapg( - "exclusiveMaximum", validation_metadata.configuration - ) - and hasattr(cls.MetaOapg, "exclusive_maximum") - and arg >= cls.MetaOapg.exclusive_maximum - ): - cls._raise_validation_error_message_oapg( - value=arg, - constraint_msg="must be a value less than", - constraint_value=cls.MetaOapg.exclusive_maximum, - path_to_item=validation_metadata.path_to_item, - ) - - if ( - cls._is_json_validation_enabled_oapg( - "maximum", validation_metadata.configuration - ) - and hasattr(cls.MetaOapg, "inclusive_maximum") - and arg > cls.MetaOapg.inclusive_maximum - ): - cls._raise_validation_error_message_oapg( - value=arg, - constraint_msg="must be a value less than or equal to", - constraint_value=cls.MetaOapg.inclusive_maximum, - path_to_item=validation_metadata.path_to_item, - ) - - if ( - cls._is_json_validation_enabled_oapg( - "exclusiveMinimum", validation_metadata.configuration - ) - and hasattr(cls.MetaOapg, "exclusive_minimum") - and arg <= cls.MetaOapg.exclusive_minimum - ): - cls._raise_validation_error_message_oapg( - value=arg, - constraint_msg="must be a value greater than", - constraint_value=cls.MetaOapg.exclusive_maximum, - path_to_item=validation_metadata.path_to_item, - ) - - if ( - cls._is_json_validation_enabled_oapg( - "minimum", validation_metadata.configuration - ) - and hasattr(cls.MetaOapg, "inclusive_minimum") - and arg < cls.MetaOapg.inclusive_minimum - ): - cls._raise_validation_error_message_oapg( - value=arg, - constraint_msg="must be a value greater than or equal to", - constraint_value=cls.MetaOapg.inclusive_minimum, - path_to_item=validation_metadata.path_to_item, - ) - - @classmethod - def _validate_oapg( - cls, - arg, - validation_metadata: ValidationMetadata, - ) -> typing.Dict[ - typing.Tuple[typing.Union[str, int], ...], - typing.Set[ - typing.Union[ - "Schema", - str, - decimal.Decimal, - BoolClass, - NoneClass, - frozendict.frozendict, - tuple, - ] - ], - ]: - """ - NumberBase _validate_oapg - Validates that validations pass - """ - if isinstance(arg, decimal.Decimal): - cls.__check_numeric_validations(arg, validation_metadata) - return super()._validate_oapg(arg, validation_metadata=validation_metadata) - - -class ListBase(ValidatorBase): - MetaOapg: MetaOapgTyped - - @classmethod - def __validate_items(cls, list_items, validation_metadata: ValidationMetadata): - """ - Ensures that: - - values passed in for items are valid - Exceptions will be raised if: - - invalid arguments were passed in - - Args: - list_items: the input list of items - - Raises: - ApiTypeError - for missing required arguments, or for invalid properties - """ - - # if we have definitions for an items schema, use it - # otherwise accept anything - item_cls = getattr(cls.MetaOapg, "items", UnsetAnyTypeSchema) - item_cls = cls._get_class_oapg(item_cls) - path_to_schemas = {} - for i, value in enumerate(list_items): - item_validation_metadata = ValidationMetadata( - from_server=validation_metadata.from_server, - configuration=validation_metadata.configuration, - path_to_item=validation_metadata.path_to_item + (i,), - validated_path_to_schemas=validation_metadata.validated_path_to_schemas, - ) - if item_validation_metadata.validation_ran_earlier(item_cls): - add_deeper_validated_schemas(item_validation_metadata, path_to_schemas) - continue - other_path_to_schemas = item_cls._validate_oapg( - value, validation_metadata=item_validation_metadata - ) - update(path_to_schemas, other_path_to_schemas) - return path_to_schemas - - @classmethod - def __check_tuple_validations(cls, arg, validation_metadata: ValidationMetadata): - if not hasattr(cls, "MetaOapg"): - return - if ( - cls._is_json_validation_enabled_oapg( - "maxItems", validation_metadata.configuration - ) - and hasattr(cls.MetaOapg, "max_items") - and len(arg) > cls.MetaOapg.max_items - ): - cls._raise_validation_error_message_oapg( - value=arg, - constraint_msg="number of items must be less than or equal to", - constraint_value=cls.MetaOapg.max_items, - path_to_item=validation_metadata.path_to_item, - ) - - if ( - cls._is_json_validation_enabled_oapg( - "minItems", validation_metadata.configuration - ) - and hasattr(cls.MetaOapg, "min_items") - and len(arg) < cls.MetaOapg.min_items - ): - cls._raise_validation_error_message_oapg( - value=arg, - constraint_msg="number of items must be greater than or equal to", - constraint_value=cls.MetaOapg.min_items, - path_to_item=validation_metadata.path_to_item, - ) - - if ( - cls._is_json_validation_enabled_oapg( - "uniqueItems", validation_metadata.configuration - ) - and hasattr(cls.MetaOapg, "unique_items") - and cls.MetaOapg.unique_items - and arg - ): - unique_items = set(arg) - if len(arg) > len(unique_items): - cls._raise_validation_error_message_oapg( - value=arg, - constraint_msg="duplicate items were found, and the tuple must not contain duplicates because", - constraint_value="unique_items==True", - path_to_item=validation_metadata.path_to_item, - ) - - @classmethod - def _validate_oapg( - cls, - arg, - validation_metadata: ValidationMetadata, - ): - """ - ListBase _validate_oapg - We return dynamic classes of different bases depending upon the inputs - This makes it so: - - the returned instance is always a subclass of our defining schema - - this allows us to check type based on whether an instance is a subclass of a schema - - the returned instance is a serializable type (except for None, True, and False) which are enums - - Returns: - new_cls (type): the new class - - Raises: - ApiValueError: when a string can't be converted into a date or datetime and it must be one of those classes - ApiTypeError: when the input type is not in the list of allowed spec types - """ - if isinstance(arg, tuple): - cls.__check_tuple_validations(arg, validation_metadata) - _path_to_schemas = super()._validate_oapg( - arg, validation_metadata=validation_metadata - ) - if not isinstance(arg, tuple): - return _path_to_schemas - updated_vm = ValidationMetadata( - configuration=validation_metadata.configuration, - from_server=validation_metadata.from_server, - path_to_item=validation_metadata.path_to_item, - seen_classes=validation_metadata.seen_classes | frozenset({cls}), - validated_path_to_schemas=validation_metadata.validated_path_to_schemas, - ) - other_path_to_schemas = cls.__validate_items( - arg, validation_metadata=updated_vm - ) - update(_path_to_schemas, other_path_to_schemas) - return _path_to_schemas - - @classmethod - def _get_items_oapg( - cls: "Schema", - arg: typing.List[typing.Any], - path_to_item: typing.Tuple[typing.Union[str, int], ...], - path_to_schemas: typing.Dict[ - typing.Tuple[typing.Union[str, int], ...], typing.Type["Schema"] - ], - ): - """ - ListBase _get_items_oapg - """ - cast_items = [] - - for i, value in enumerate(arg): - item_path_to_item = path_to_item + (i,) - item_cls = path_to_schemas[item_path_to_item] - new_value = item_cls._get_new_instance_without_conversion_oapg( - value, item_path_to_item, path_to_schemas - ) - cast_items.append(new_value) - - return cast_items - - -class Discriminable: - MetaOapg: MetaOapgTyped - - @classmethod - def _ensure_discriminator_value_present_oapg( - cls, disc_property_name: str, validation_metadata: ValidationMetadata, *args - ): - if not args or args and disc_property_name not in args[0]: - # The input data does not contain the discriminator property - raise ApiValueError( - "Cannot deserialize input data due to missing discriminator. " - "The discriminator property '{}' is missing at path: {}".format( - disc_property_name, validation_metadata.path_to_item - ) - ) - - @classmethod - def get_discriminated_class_oapg( - cls, disc_property_name: str, disc_payload_value: str - ): - """ - Used in schemas with discriminators - """ - if not hasattr(cls.MetaOapg, "discriminator"): - return None - disc = cls.MetaOapg.discriminator() - if disc_property_name not in disc: - return None - discriminated_cls = disc[disc_property_name].get(disc_payload_value) - if discriminated_cls is not None: - return discriminated_cls - if not hasattr(cls, "MetaOapg"): - return None - elif not ( - hasattr(cls.MetaOapg, "all_of") - or hasattr(cls.MetaOapg, "one_of") - or hasattr(cls.MetaOapg, "any_of") - ): - return None - # TODO stop traveling if a cycle is hit - if hasattr(cls.MetaOapg, "all_of"): - for allof_cls in cls.MetaOapg.all_of(): - discriminated_cls = allof_cls.get_discriminated_class_oapg( - disc_property_name=disc_property_name, - disc_payload_value=disc_payload_value, - ) - if discriminated_cls is not None: - return discriminated_cls - if hasattr(cls.MetaOapg, "one_of"): - for oneof_cls in cls.MetaOapg.one_of(): - discriminated_cls = oneof_cls.get_discriminated_class_oapg( - disc_property_name=disc_property_name, - disc_payload_value=disc_payload_value, - ) - if discriminated_cls is not None: - return discriminated_cls - if hasattr(cls.MetaOapg, "any_of"): - for anyof_cls in cls.MetaOapg.any_of(): - discriminated_cls = anyof_cls.get_discriminated_class_oapg( - disc_property_name=disc_property_name, - disc_payload_value=disc_payload_value, - ) - if discriminated_cls is not None: - return discriminated_cls - return None - - -class DictBase(Discriminable, ValidatorBase): - @classmethod - def __validate_arg_presence(cls, arg): - """ - Ensures that: - - all required arguments are passed in - - the input variable names are valid - - present in properties or - - accepted because additionalProperties exists - Exceptions will be raised if: - - invalid arguments were passed in - - a var_name is invalid if additional_properties == NotAnyTypeSchema - and var_name not in properties.__annotations__ - - required properties were not passed in - - Args: - arg: the input dict - - Raises: - ApiTypeError - for missing required arguments, or for invalid properties - """ - seen_required_properties = set() - invalid_arguments = [] - required_property_names = getattr(cls.MetaOapg, "required", set()) - additional_properties = getattr( - cls.MetaOapg, "additional_properties", UnsetAnyTypeSchema - ) - properties = getattr(cls.MetaOapg, "properties", {}) - property_annotations = getattr(properties, "__annotations__", {}) - for property_name in arg: - if property_name in required_property_names: - seen_required_properties.add(property_name) - elif property_name in property_annotations: - continue - elif additional_properties is not NotAnyTypeSchema: - continue - else: - invalid_arguments.append(property_name) - missing_required_arguments = list( - required_property_names - seen_required_properties - ) - if missing_required_arguments: - missing_required_arguments.sort() - raise ApiTypeError( - "{} is missing {} required argument{}: {}".format( - cls.__name__, - len(missing_required_arguments), - "s" if len(missing_required_arguments) > 1 else "", - missing_required_arguments, - ) - ) - if invalid_arguments: - invalid_arguments.sort() - raise ApiTypeError( - "{} was passed {} invalid argument{}: {}".format( - cls.__name__, - len(invalid_arguments), - "s" if len(invalid_arguments) > 1 else "", - invalid_arguments, - ) - ) - - @classmethod - def __validate_args(cls, arg, validation_metadata: ValidationMetadata): - """ - Ensures that: - - values passed in for properties are valid - Exceptions will be raised if: - - invalid arguments were passed in - - Args: - arg: the input dict - - Raises: - ApiTypeError - for missing required arguments, or for invalid properties - """ - path_to_schemas = {} - additional_properties = getattr( - cls.MetaOapg, "additional_properties", UnsetAnyTypeSchema - ) - properties = getattr(cls.MetaOapg, "properties", {}) - property_annotations = getattr(properties, "__annotations__", {}) - for property_name, value in arg.items(): - path_to_item = validation_metadata.path_to_item + (property_name,) - if property_name in property_annotations: - schema = property_annotations[property_name] - elif additional_properties is not NotAnyTypeSchema: - if additional_properties is UnsetAnyTypeSchema: - """ - If additionalProperties is unset and this path_to_item does not yet have - any validations on it, validate it. - If it already has validations on it, skip this validation. - """ - if path_to_item in path_to_schemas: - continue - schema = additional_properties - else: - raise ApiTypeError( - "Unable to find schema for value={} in class={} at path_to_item={}".format( - value, cls, validation_metadata.path_to_item + (property_name,) - ) - ) - schema = cls._get_class_oapg(schema) - arg_validation_metadata = ValidationMetadata( - from_server=validation_metadata.from_server, - configuration=validation_metadata.configuration, - path_to_item=path_to_item, - validated_path_to_schemas=validation_metadata.validated_path_to_schemas, - ) - if arg_validation_metadata.validation_ran_earlier(schema): - add_deeper_validated_schemas(arg_validation_metadata, path_to_schemas) - continue - other_path_to_schemas = schema._validate_oapg( - value, validation_metadata=arg_validation_metadata - ) - update(path_to_schemas, other_path_to_schemas) - return path_to_schemas - - @classmethod - def __check_dict_validations(cls, arg, validation_metadata: ValidationMetadata): - if not hasattr(cls, "MetaOapg"): - return - if ( - cls._is_json_validation_enabled_oapg( - "maxProperties", validation_metadata.configuration - ) - and hasattr(cls.MetaOapg, "max_properties") - and len(arg) > cls.MetaOapg.max_properties - ): - cls._raise_validation_error_message_oapg( - value=arg, - constraint_msg="number of properties must be less than or equal to", - constraint_value=cls.MetaOapg.max_properties, - path_to_item=validation_metadata.path_to_item, - ) - - if ( - cls._is_json_validation_enabled_oapg( - "minProperties", validation_metadata.configuration - ) - and hasattr(cls.MetaOapg, "min_properties") - and len(arg) < cls.MetaOapg.min_properties - ): - cls._raise_validation_error_message_oapg( - value=arg, - constraint_msg="number of properties must be greater than or equal to", - constraint_value=cls.MetaOapg.min_properties, - path_to_item=validation_metadata.path_to_item, - ) - - @classmethod - def _validate_oapg( - cls, - arg, - validation_metadata: ValidationMetadata, - ): - """ - DictBase _validate_oapg - We return dynamic classes of different bases depending upon the inputs - This makes it so: - - the returned instance is always a subclass of our defining schema - - this allows us to check type based on whether an instance is a subclass of a schema - - the returned instance is a serializable type (except for None, True, and False) which are enums - - Returns: - new_cls (type): the new class - - Raises: - ApiValueError: when a string can't be converted into a date or datetime and it must be one of those classes - ApiTypeError: when the input type is not in the list of allowed spec types - """ - if isinstance(arg, frozendict.frozendict): - cls.__check_dict_validations(arg, validation_metadata) - _path_to_schemas = super()._validate_oapg( - arg, validation_metadata=validation_metadata - ) - if not isinstance(arg, frozendict.frozendict): - return _path_to_schemas - cls.__validate_arg_presence(arg) - other_path_to_schemas = cls.__validate_args( - arg, validation_metadata=validation_metadata - ) - update(_path_to_schemas, other_path_to_schemas) - try: - discriminator = cls.MetaOapg.discriminator() - except AttributeError: - return _path_to_schemas - # discriminator exists - disc_prop_name = list(discriminator.keys())[0] - cls._ensure_discriminator_value_present_oapg( - disc_prop_name, validation_metadata, arg - ) - discriminated_cls = cls.get_discriminated_class_oapg( - disc_property_name=disc_prop_name, disc_payload_value=arg[disc_prop_name] - ) - if discriminated_cls is None: - raise ApiValueError( - "Invalid discriminator value was passed in to {}.{} Only the values {} are allowed at {}".format( - cls.__name__, - disc_prop_name, - list(discriminator[disc_prop_name].keys()), - validation_metadata.path_to_item + (disc_prop_name,), - ) - ) - updated_vm = ValidationMetadata( - configuration=validation_metadata.configuration, - from_server=validation_metadata.from_server, - path_to_item=validation_metadata.path_to_item, - seen_classes=validation_metadata.seen_classes | frozenset({cls}), - validated_path_to_schemas=validation_metadata.validated_path_to_schemas, - ) - if updated_vm.validation_ran_earlier(discriminated_cls): - add_deeper_validated_schemas(updated_vm, _path_to_schemas) - return _path_to_schemas - other_path_to_schemas = discriminated_cls._validate_oapg( - arg, validation_metadata=updated_vm - ) - update(_path_to_schemas, other_path_to_schemas) - return _path_to_schemas - - @classmethod - def _get_properties_oapg( - cls, - arg: typing.Dict[str, typing.Any], - path_to_item: typing.Tuple[typing.Union[str, int], ...], - path_to_schemas: typing.Dict[ - typing.Tuple[typing.Union[str, int], ...], typing.Type["Schema"] - ], - ): - """ - DictBase _get_properties_oapg, this is how properties are set - These values already passed validation - """ - dict_items = {} - - for property_name_js, value in arg.items(): - property_path_to_item = path_to_item + (property_name_js,) - property_cls = path_to_schemas[property_path_to_item] - new_value = property_cls._get_new_instance_without_conversion_oapg( - value, property_path_to_item, path_to_schemas - ) - dict_items[property_name_js] = new_value - - return dict_items - - def __setattr__(self, name: str, value: typing.Any): - if not isinstance(self, FileIO): - raise AttributeError( - "property setting not supported on immutable instances" - ) - - def __getattr__(self, name: str): - """ - for instance.name access - Properties are only type hinted for required properties - so that hasattr(instance, 'optionalProp') is False when that key is not present - """ - if not isinstance(self, frozendict.frozendict): - return super().__getattr__(name) - if name not in self.__class__.__annotations__: - raise AttributeError(f"{self} has no attribute '{name}'") - try: - value = self[name] - return value - except KeyError as ex: - raise AttributeError(str(ex)) - - def __getitem__(self, name: str): - """ - dict_instance[name] accessor - key errors thrown - """ - if not isinstance(self, frozendict.frozendict): - return super().__getattr__(name) - return super().__getitem__(name) - - def get_item_oapg(self, name: str) -> typing.Union["AnyTypeSchema", Unset]: - # dict_instance[name] accessor - if not isinstance(self, frozendict.frozendict): - raise NotImplementedError() - try: - return super().__getitem__(name) - except KeyError: - return unset - - -def cast_to_allowed_types( - arg: typing.Union[ - str, - date, - datetime, - uuid.UUID, - decimal.Decimal, - int, - float, - None, - dict, - frozendict.frozendict, - list, - tuple, - bytes, - Schema, - io.FileIO, - io.BufferedReader, - ], - from_server: bool, - validated_path_to_schemas: typing.Dict[ - typing.Tuple[typing.Union[str, int], ...], - typing.Set[ - typing.Union[ - "Schema", - str, - decimal.Decimal, - BoolClass, - NoneClass, - frozendict.frozendict, - tuple, - ] - ], - ], - path_to_item: typing.Tuple[typing.Union[str, int], ...] = tuple(["args[0]"]), -) -> typing.Union[ - frozendict.frozendict, - tuple, - decimal.Decimal, - str, - bytes, - BoolClass, - NoneClass, - FileIO, -]: - """ - Casts the input payload arg into the allowed types - The input validated_path_to_schemas is mutated by running this function - - When from_server is False then - - date/datetime is cast to str - - int/float is cast to Decimal - - If a Schema instance is passed in it is converted back to a primitive instance because - One may need to validate that data to the original Schema class AND additional different classes - those additional classes will need to be added to the new manufactured class for that payload - If the code didn't do this and kept the payload as a Schema instance it would fail to validate to other - Schema classes and the code wouldn't be able to mfg a new class that includes all valid schemas - TODO: store the validated schema classes in validation_metadata - - Args: - arg: the payload - from_server: whether this payload came from the server or not - validated_path_to_schemas: a dict that stores the validated classes at any path location in the payload - """ - if isinstance(arg, Schema): - # store the already run validations - schema_classes = set() - for cls in arg.__class__.__bases__: - if cls is Singleton: - # Skip Singleton - continue - schema_classes.add(cls) - validated_path_to_schemas[path_to_item] = schema_classes - - type_error = ApiTypeError( - f"Invalid type. Required value type is str and passed type was {type(arg)} at {path_to_item}" - ) - if isinstance(arg, str): - return str(arg) - elif isinstance(arg, (dict, frozendict.frozendict)): - return frozendict.frozendict( - { - key: cast_to_allowed_types( - val, from_server, validated_path_to_schemas, path_to_item + (key,) - ) - for key, val in arg.items() - } - ) - elif isinstance(arg, (bool, BoolClass)): - """ - this check must come before isinstance(arg, (int, float)) - because isinstance(True, int) is True - """ - if arg: - return BoolClass.TRUE - return BoolClass.FALSE - elif isinstance(arg, int): - return decimal.Decimal(arg) - elif isinstance(arg, float): - decimal_from_float = decimal.Decimal(arg) - if decimal_from_float.as_integer_ratio()[1] == 1: - # 9.0 -> Decimal('9.0') - # 3.4028234663852886e+38 -> Decimal('340282346638528859811704183484516925440.0') - return decimal.Decimal(str(decimal_from_float) + ".0") - return decimal_from_float - elif isinstance(arg, (tuple, list)): - return tuple( - [ - cast_to_allowed_types( - item, from_server, validated_path_to_schemas, path_to_item + (i,) - ) - for i, item in enumerate(arg) - ] - ) - elif isinstance(arg, (none_type, NoneClass)): - return NoneClass.NONE - elif isinstance(arg, (date, datetime)): - if not from_server: - return arg.isoformat() - raise type_error - elif isinstance(arg, uuid.UUID): - if not from_server: - return str(arg) - raise type_error - elif isinstance(arg, decimal.Decimal): - return decimal.Decimal(arg) - elif isinstance(arg, bytes): - return bytes(arg) - elif isinstance(arg, (io.FileIO, io.BufferedReader)): - return FileIO(arg) - raise ValueError( - "Invalid type passed in got input={} type={}".format(arg, type(arg)) - ) - - -class ComposedBase(Discriminable): - @classmethod - def __get_allof_classes(cls, arg, validation_metadata: ValidationMetadata): - path_to_schemas = defaultdict(set) - for allof_cls in cls.MetaOapg.all_of(): - if validation_metadata.validation_ran_earlier(allof_cls): - add_deeper_validated_schemas(validation_metadata, path_to_schemas) - continue - other_path_to_schemas = allof_cls._validate_oapg( - arg, validation_metadata=validation_metadata - ) - update(path_to_schemas, other_path_to_schemas) - return path_to_schemas - - @classmethod - def __get_oneof_class( - cls, - arg, - discriminated_cls, - validation_metadata: ValidationMetadata, - ): - oneof_classes = [] - path_to_schemas = defaultdict(set) - for oneof_cls in cls.MetaOapg.one_of(): - if oneof_cls in path_to_schemas[validation_metadata.path_to_item]: - oneof_classes.append(oneof_cls) - continue - if validation_metadata.validation_ran_earlier(oneof_cls): - oneof_classes.append(oneof_cls) - add_deeper_validated_schemas(validation_metadata, path_to_schemas) - continue - try: - path_to_schemas = oneof_cls._validate_oapg( - arg, validation_metadata=validation_metadata - ) - except (ApiValueError, ApiTypeError) as ex: - if discriminated_cls is not None and oneof_cls is discriminated_cls: - raise ex - continue - oneof_classes.append(oneof_cls) - if not oneof_classes: - raise ApiValueError( - "Invalid inputs given to generate an instance of {}. None " - "of the oneOf schemas matched the input data.".format(cls) - ) - elif len(oneof_classes) > 1: - raise ApiValueError( - "Invalid inputs given to generate an instance of {}. Multiple " - "oneOf schemas {} matched the inputs, but a max of one is allowed.".format( - cls, oneof_classes - ) - ) - # exactly one class matches - return path_to_schemas - - @classmethod - def __get_anyof_classes( - cls, arg, discriminated_cls, validation_metadata: ValidationMetadata - ): - anyof_classes = [] - path_to_schemas = defaultdict(set) - for anyof_cls in cls.MetaOapg.any_of(): - if validation_metadata.validation_ran_earlier(anyof_cls): - anyof_classes.append(anyof_cls) - add_deeper_validated_schemas(validation_metadata, path_to_schemas) - continue - - try: - other_path_to_schemas = anyof_cls._validate_oapg( - arg, validation_metadata=validation_metadata - ) - except (ApiValueError, ApiTypeError) as ex: - if discriminated_cls is not None and anyof_cls is discriminated_cls: - raise ex - continue - anyof_classes.append(anyof_cls) - update(path_to_schemas, other_path_to_schemas) - if not anyof_classes: - raise ApiValueError( - "Invalid inputs given to generate an instance of {}. None " - "of the anyOf schemas matched the input data.".format(cls) - ) - return path_to_schemas - - @classmethod - def _validate_oapg( - cls, - arg, - validation_metadata: ValidationMetadata, - ) -> typing.Dict[ - typing.Tuple[typing.Union[str, int], ...], - typing.Set[ - typing.Union[ - "Schema", - str, - decimal.Decimal, - BoolClass, - NoneClass, - frozendict.frozendict, - tuple, - ] - ], - ]: - """ - ComposedBase _validate_oapg - We return dynamic classes of different bases depending upon the inputs - This makes it so: - - the returned instance is always a subclass of our defining schema - - this allows us to check type based on whether an instance is a subclass of a schema - - the returned instance is a serializable type (except for None, True, and False) which are enums - - Returns: - new_cls (type): the new class - - Raises: - ApiValueError: when a string can't be converted into a date or datetime and it must be one of those classes - ApiTypeError: when the input type is not in the list of allowed spec types - """ - # validation checking on types, validations, and enums - path_to_schemas = super()._validate_oapg( - arg, validation_metadata=validation_metadata - ) - - updated_vm = ValidationMetadata( - configuration=validation_metadata.configuration, - from_server=validation_metadata.from_server, - path_to_item=validation_metadata.path_to_item, - seen_classes=validation_metadata.seen_classes | frozenset({cls}), - validated_path_to_schemas=validation_metadata.validated_path_to_schemas, - ) - - # process composed schema - discriminator = None - if hasattr(cls, "MetaOapg") and hasattr(cls.MetaOapg, "discriminator"): - discriminator = cls.MetaOapg.discriminator() - discriminated_cls = None - if discriminator and arg and isinstance(arg, frozendict.frozendict): - disc_property_name = list(discriminator.keys())[0] - cls._ensure_discriminator_value_present_oapg( - disc_property_name, updated_vm, arg - ) - # get discriminated_cls by looking at the dict in the current class - discriminated_cls = cls.get_discriminated_class_oapg( - disc_property_name=disc_property_name, - disc_payload_value=arg[disc_property_name], - ) - if discriminated_cls is None: - raise ApiValueError( - "Invalid discriminator value '{}' was passed in to {}.{} Only the values {} are allowed at {}".format( - arg[disc_property_name], - cls.__name__, - disc_property_name, - list(discriminator[disc_property_name].keys()), - updated_vm.path_to_item + (disc_property_name,), - ) - ) - - if hasattr(cls, "MetaOapg") and hasattr(cls.MetaOapg, "all_of"): - other_path_to_schemas = cls.__get_allof_classes( - arg, validation_metadata=updated_vm - ) - update(path_to_schemas, other_path_to_schemas) - if hasattr(cls, "MetaOapg") and hasattr(cls.MetaOapg, "one_of"): - other_path_to_schemas = cls.__get_oneof_class( - arg, discriminated_cls=discriminated_cls, validation_metadata=updated_vm - ) - update(path_to_schemas, other_path_to_schemas) - if hasattr(cls, "MetaOapg") and hasattr(cls.MetaOapg, "any_of"): - other_path_to_schemas = cls.__get_anyof_classes( - arg, discriminated_cls=discriminated_cls, validation_metadata=updated_vm - ) - update(path_to_schemas, other_path_to_schemas) - not_cls = None - if hasattr(cls, "MetaOapg") and hasattr(cls.MetaOapg, "not_schema"): - not_cls = cls.MetaOapg.not_schema - not_cls = cls._get_class_oapg(not_cls) - if not_cls: - other_path_to_schemas = None - not_exception = ApiValueError( - "Invalid value '{}' was passed in to {}. Value is invalid because it is disallowed by {}".format( - arg, - cls.__name__, - not_cls.__name__, - ) - ) - if updated_vm.validation_ran_earlier(not_cls): - raise not_exception - - try: - other_path_to_schemas = not_cls._validate_oapg( - arg, validation_metadata=updated_vm - ) - except (ApiValueError, ApiTypeError): - pass - if other_path_to_schemas: - raise not_exception - - if discriminated_cls is not None and not updated_vm.validation_ran_earlier( - discriminated_cls - ): - # TODO use an exception from this package here - add_deeper_validated_schemas(updated_vm, path_to_schemas) - assert discriminated_cls in path_to_schemas[updated_vm.path_to_item] - return path_to_schemas - - -# DictBase, ListBase, NumberBase, StrBase, BoolBase, NoneBase -class ComposedSchema( - ComposedBase, - DictBase, - ListBase, - NumberBase, - StrBase, - BoolBase, - NoneBase, - Schema, - NoneFrozenDictTupleStrDecimalBoolMixin, -): - @classmethod - def from_openapi_data_oapg( - cls, - *args: typing.Any, - _configuration: typing.Optional[Configuration] = None, - **kwargs, - ): - if not args: - if not kwargs: - raise ApiTypeError( - "{} is missing required input data in args or kwargs".format( - cls.__name__ - ) - ) - args = (kwargs,) - return super().from_openapi_data_oapg(args[0], _configuration=_configuration) - - -class ListSchema(ListBase, Schema, TupleMixin): - @classmethod - def from_openapi_data_oapg( - cls, - arg: typing.List[typing.Any], - _configuration: typing.Optional[Configuration] = None, - ): - return super().from_openapi_data_oapg(arg, _configuration=_configuration) - - def __new__( - cls, - _arg: typing.Union[typing.List[typing.Any], typing.Tuple[typing.Any]], - **kwargs: Configuration, - ): - return super().__new__(cls, _arg, **kwargs) - - -class NoneSchema(NoneBase, Schema, NoneMixin): - @classmethod - def from_openapi_data_oapg( - cls, arg: None, _configuration: typing.Optional[Configuration] = None - ): - return super().from_openapi_data_oapg(arg, _configuration=_configuration) - - def __new__(cls, _arg: None, **kwargs: Configuration): - return super().__new__(cls, _arg, **kwargs) - - -class NumberSchema(NumberBase, Schema, DecimalMixin): - """ - This is used for type: number with no format - Both integers AND floats are accepted - """ - - @classmethod - def from_openapi_data_oapg( - cls, - arg: typing.Union[int, float], - _configuration: typing.Optional[Configuration] = None, - ): - return super().from_openapi_data_oapg(arg, _configuration=_configuration) - - def __new__( - cls, _arg: typing.Union[decimal.Decimal, int, float], **kwargs: Configuration - ): - return super().__new__(cls, _arg, **kwargs) - - -class IntBase: - @property - def as_int_oapg(self) -> int: - try: - return self._as_int - except AttributeError: - self._as_int = int(self) - return self._as_int - - @classmethod - def __validate_format( - cls, - arg: typing.Optional[decimal.Decimal], - validation_metadata: ValidationMetadata, - ): - if isinstance(arg, decimal.Decimal): - denominator = arg.as_integer_ratio()[-1] - if denominator != 1: - raise ApiValueError( - "Invalid value '{}' for type integer at {}".format( - arg, validation_metadata.path_to_item - ) - ) - - @classmethod - def _validate_oapg( - cls, - arg, - validation_metadata: ValidationMetadata, - ): - """ - IntBase _validate_oapg - TODO what about types = (int, number) -> IntBase, NumberBase? We could drop int and keep number only - """ - cls.__validate_format(arg, validation_metadata=validation_metadata) - return super()._validate_oapg(arg, validation_metadata=validation_metadata) - - -class IntSchema(IntBase, NumberSchema): - @classmethod - def from_openapi_data_oapg( - cls, arg: int, _configuration: typing.Optional[Configuration] = None - ): - return super().from_openapi_data_oapg(arg, _configuration=_configuration) - - def __new__(cls, _arg: typing.Union[decimal.Decimal, int], **kwargs: Configuration): - return super().__new__(cls, _arg, **kwargs) - - -class Int32Base: - __inclusive_minimum = decimal.Decimal(-2147483648) - __inclusive_maximum = decimal.Decimal(2147483647) - - @classmethod - def __validate_format( - cls, - arg: typing.Optional[decimal.Decimal], - validation_metadata: ValidationMetadata, - ): - if isinstance(arg, decimal.Decimal) and arg.as_tuple().exponent == 0: - if not cls.__inclusive_minimum <= arg <= cls.__inclusive_maximum: - raise ApiValueError( - "Invalid value '{}' for type int32 at {}".format( - arg, validation_metadata.path_to_item - ) - ) - - @classmethod - def _validate_oapg( - cls, - arg, - validation_metadata: ValidationMetadata, - ): - """ - Int32Base _validate_oapg - """ - cls.__validate_format(arg, validation_metadata=validation_metadata) - return super()._validate_oapg(arg, validation_metadata=validation_metadata) - - -class Int32Schema(Int32Base, IntSchema): - pass - - -class Int64Base: - __inclusive_minimum = decimal.Decimal(-9223372036854775808) - __inclusive_maximum = decimal.Decimal(9223372036854775807) - - @classmethod - def __validate_format( - cls, - arg: typing.Optional[decimal.Decimal], - validation_metadata: ValidationMetadata, - ): - if isinstance(arg, decimal.Decimal) and arg.as_tuple().exponent == 0: - if not cls.__inclusive_minimum <= arg <= cls.__inclusive_maximum: - raise ApiValueError( - "Invalid value '{}' for type int64 at {}".format( - arg, validation_metadata.path_to_item - ) - ) - - @classmethod - def _validate_oapg( - cls, - arg, - validation_metadata: ValidationMetadata, - ): - """ - Int64Base _validate_oapg - """ - cls.__validate_format(arg, validation_metadata=validation_metadata) - return super()._validate_oapg(arg, validation_metadata=validation_metadata) - - -class Int64Schema(Int64Base, IntSchema): - pass - - -class Float32Base: - __inclusive_minimum = decimal.Decimal(-3.4028234663852886e38) - __inclusive_maximum = decimal.Decimal(3.4028234663852886e38) - - @classmethod - def __validate_format( - cls, - arg: typing.Optional[decimal.Decimal], - validation_metadata: ValidationMetadata, - ): - if isinstance(arg, decimal.Decimal): - if not cls.__inclusive_minimum <= arg <= cls.__inclusive_maximum: - raise ApiValueError( - "Invalid value '{}' for type float at {}".format( - arg, validation_metadata.path_to_item - ) - ) - - @classmethod - def _validate_oapg( - cls, - arg, - validation_metadata: ValidationMetadata, - ): - """ - Float32Base _validate_oapg - """ - cls.__validate_format(arg, validation_metadata=validation_metadata) - return super()._validate_oapg(arg, validation_metadata=validation_metadata) - - -class Float32Schema(Float32Base, NumberSchema): - @classmethod - def from_openapi_data_oapg( - cls, arg: float, _configuration: typing.Optional[Configuration] = None - ): - return super().from_openapi_data_oapg(arg, _configuration=_configuration) - - -class Float64Base: - __inclusive_minimum = decimal.Decimal(-1.7976931348623157e308) - __inclusive_maximum = decimal.Decimal(1.7976931348623157e308) - - @classmethod - def __validate_format( - cls, - arg: typing.Optional[decimal.Decimal], - validation_metadata: ValidationMetadata, - ): - if isinstance(arg, decimal.Decimal): - if not cls.__inclusive_minimum <= arg <= cls.__inclusive_maximum: - raise ApiValueError( - "Invalid value '{}' for type double at {}".format( - arg, validation_metadata.path_to_item - ) - ) - - @classmethod - def _validate_oapg( - cls, - arg, - validation_metadata: ValidationMetadata, - ): - """ - Float64Base _validate_oapg - """ - cls.__validate_format(arg, validation_metadata=validation_metadata) - return super()._validate_oapg(arg, validation_metadata=validation_metadata) - - -class Float64Schema(Float64Base, NumberSchema): - @classmethod - def from_openapi_data_oapg( - cls, arg: float, _configuration: typing.Optional[Configuration] = None - ): - # todo check format - return super().from_openapi_data_oapg(arg, _configuration=_configuration) - - -class StrSchema(StrBase, Schema, StrMixin): - """ - date + datetime string types must inherit from this class - That is because one can validate a str payload as both: - - type: string (format unset) - - type: string, format: date - """ - - @classmethod - def from_openapi_data_oapg( - cls, arg: str, _configuration: typing.Optional[Configuration] = None - ) -> "StrSchema": - return super().from_openapi_data_oapg(arg, _configuration=_configuration) - - def __new__( - cls, _arg: typing.Union[str, date, datetime, uuid.UUID], **kwargs: Configuration - ): - return super().__new__(cls, _arg, **kwargs) - - -class UUIDSchema(UUIDBase, StrSchema): - def __new__(cls, _arg: typing.Union[str, uuid.UUID], **kwargs: Configuration): - return super().__new__(cls, _arg, **kwargs) - - -class DateSchema(DateBase, StrSchema): - def __new__(cls, _arg: typing.Union[str, date], **kwargs: Configuration): - return super().__new__(cls, _arg, **kwargs) - - -class DateTimeSchema(DateTimeBase, StrSchema): - def __new__(cls, _arg: typing.Union[str, datetime], **kwargs: Configuration): - return super().__new__(cls, _arg, **kwargs) - - -class DecimalSchema(DecimalBase, StrSchema): - def __new__(cls, _arg: str, **kwargs: Configuration): - """ - Note: Decimals may not be passed in because cast_to_allowed_types is only invoked once for payloads - which can be simple (str) or complex (dicts or lists with nested values) - Because casting is only done once and recursively casts all values prior to validation then for a potential - client side Decimal input if Decimal was accepted as an input in DecimalSchema then one would not know - if one was using it for a StrSchema (where it should be cast to str) or one is using it for NumberSchema - where it should stay as Decimal. - """ - return super().__new__(cls, _arg, **kwargs) - - -class BytesSchema(Schema, BytesMixin): - """ - this class will subclass bytes and is immutable - """ - - def __new__(cls, _arg: bytes, **kwargs: Configuration): - return super(Schema, cls).__new__(cls, _arg) - - -class FileSchema(Schema, FileMixin): - """ - This class is NOT immutable - Dynamic classes are built using it for example when AnyType allows in binary data - Al other schema classes ARE immutable - If one wanted to make this immutable one could make this a DictSchema with required properties: - - data = BytesSchema (which would be an immutable bytes based schema) - - file_name = StrSchema - and cast_to_allowed_types would convert bytes and file instances into dicts containing data + file_name - The downside would be that data would be stored in memory which one may not want to do for very large files - - The developer is responsible for closing this file and deleting it - - This class was kept as mutable: - - to allow file reading and writing to disk - - to be able to preserve file name info - """ - - def __new__( - cls, _arg: typing.Union[io.FileIO, io.BufferedReader], **kwargs: Configuration - ): - return super(Schema, cls).__new__(cls, _arg) - - -class BinaryBase: - pass - - -class BinarySchema(ComposedBase, BinaryBase, Schema, BinaryMixin): - class MetaOapg: - @staticmethod - def one_of(): - return [ - BytesSchema, - FileSchema, - ] - - def __new__( - cls, - _arg: typing.Union[io.FileIO, io.BufferedReader, bytes], - **kwargs: Configuration, - ): - return super().__new__(cls, _arg) - - -class BoolSchema(BoolBase, Schema, BoolMixin): - @classmethod - def from_openapi_data_oapg( - cls, arg: bool, _configuration: typing.Optional[Configuration] = None - ): - return super().from_openapi_data_oapg(arg, _configuration=_configuration) - - def __new__(cls, _arg: bool, **kwargs: ValidationMetadata): - return super().__new__(cls, _arg, **kwargs) - - -class AnyTypeSchema( - DictBase, - ListBase, - NumberBase, - StrBase, - BoolBase, - NoneBase, - Schema, - NoneFrozenDictTupleStrDecimalBoolFileBytesMixin, -): - # Python representation of a schema defined as true or {} - pass - - -class UnsetAnyTypeSchema(AnyTypeSchema): - # Used when additionalProperties/items was not explicitly defined and a defining schema is needed - pass - - -class NotAnyTypeSchema( - ComposedSchema, -): - """ - Python representation of a schema defined as false or {'not': {}} - Does not allow inputs in of AnyType - Note: validations on this class are never run because the code knows that no inputs will ever validate - """ - - class MetaOapg: - not_schema = AnyTypeSchema - - def __new__( - cls, - *_args, - _configuration: typing.Optional[Configuration] = None, - ) -> "NotAnyTypeSchema": - return super().__new__( - cls, - *_args, - _configuration=_configuration, - ) - - -class DictSchema(DictBase, Schema, FrozenDictMixin): - @classmethod - def from_openapi_data_oapg( - cls, - arg: typing.Dict[str, typing.Any], - _configuration: typing.Optional[Configuration] = None, - ): - return super().from_openapi_data_oapg(arg, _configuration=_configuration) - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict], - **kwargs: typing.Union[ - dict, - frozendict.frozendict, - list, - tuple, - decimal.Decimal, - float, - int, - str, - date, - datetime, - bool, - None, - bytes, - Schema, - Unset, - ValidationMetadata, - ], - ): - return super().__new__(cls, *_args, **kwargs) - - -schema_type_classes = { - NoneSchema, - DictSchema, - ListSchema, - NumberSchema, - StrSchema, - BoolSchema, - AnyTypeSchema, -} - - -@functools.lru_cache() -def get_new_class( - class_name: str, - bases: typing.Tuple[typing.Type[typing.Union[Schema, typing.Any]], ...], -) -> typing.Type[Schema]: - """ - Returns a new class that is made with the subclass bases - """ - new_cls: typing.Type[Schema] = type(class_name, bases, {}) - return new_cls - - -LOG_CACHE_USAGE = False - - -def log_cache_usage(cache_fn): - if LOG_CACHE_USAGE: - print(cache_fn.__name__, cache_fn.cache_info()) diff --git a/git_push.sh b/git_push.sh index 200e975d..f53a75d4 100644 --- a/git_push.sh +++ b/git_push.sh @@ -38,14 +38,14 @@ git add . git commit -m "$release_note" # Sets the new remote -git_remote=`git remote` +git_remote=$(git remote) if [ "$git_remote" = "" ]; then # git remote not defined if [ "$GIT_TOKEN" = "" ]; then echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git else - git remote add origin https://${git_user_id}:${GIT_TOKEN}@${git_host}/${git_user_id}/${git_repo_id}.git + git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git fi fi @@ -55,4 +55,3 @@ git pull origin master # Pushes (Forces) the changes in the local repository up to the remote repository echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" git push origin master 2>&1 | grep -v 'To https' - diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 00000000..f8063780 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,71 @@ +[tool.poetry] +name = "fireblocks_client" +version = "1.0.0" +description = "Fireblocks API" +authors = ["OpenAPI Generator Community "] +license = "NoLicense" +readme = "README.md" +repository = "https://github.com/GIT_USER_ID/GIT_REPO_ID" +keywords = ["OpenAPI", "OpenAPI-Generator", "Fireblocks API"] +include = ["fireblocks_client/py.typed"] + +[tool.poetry.dependencies] +python = "^3.7" + +urllib3 = ">= 1.25.3" +python-dateutil = ">=2.8.2" +pydantic = ">=2" +typing-extensions = ">=4.7.1" + +[tool.poetry.dev-dependencies] +pytest = ">=7.2.1" +tox = ">=3.9.0" +flake8 = ">=4.0.0" +types-python-dateutil = ">=2.8.19.14" +mypy = "1.4.1" + + +[build-system] +requires = ["setuptools"] +build-backend = "setuptools.build_meta" + +[tool.pylint.'MESSAGES CONTROL'] +extension-pkg-whitelist = "pydantic" + +[tool.mypy] +files = [ + "fireblocks_client", + #"test", # auto-generated tests + "tests", # hand-written tests +] +# TODO: enable "strict" once all these individual checks are passing +# strict = true + +# List from: https://mypy.readthedocs.io/en/stable/existing_code.html#introduce-stricter-options +warn_unused_configs = true +warn_redundant_casts = true +warn_unused_ignores = true + +## Getting these passing should be easy +strict_equality = true +strict_concatenate = true + +## Strongly recommend enabling this one as soon as you can +check_untyped_defs = true + +## These shouldn't be too much additional work, but may be tricky to +## get passing if you use a lot of untyped libraries +disallow_subclassing_any = true +disallow_untyped_decorators = true +disallow_any_generics = true + +### These next few are various gradations of forcing use of type annotations +#disallow_untyped_calls = true +#disallow_incomplete_defs = true +#disallow_untyped_defs = true +# +### This one isn't too hard to get passing, but return on investment is lower +#no_implicit_reexport = true +# +### This one can be tricky to get passing if you use a lot of untyped libraries +#warn_return_any = true diff --git a/requirements.txt b/requirements.txt index db8fad8d..cc85509e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,11 +1,5 @@ +python_dateutil >= 2.5.3 setuptools >= 21.0.0 -urllib3 >= 2.0.0 -pydantic >= 1.10.2 -aenum >= 3.1.11 -PyJWT >= 2.3.0 -cryptography>=2.7 -requests>=2.22.0 -certifi >= 14.5.14 -frozendict ~= 2.3.4 -python-dateutil ~= 2.7.0 -typing_extensions ~= 4.3.0 +urllib3 >= 1.25.3, < 2.1.0 +pydantic >= 2 +typing-extensions >= 4.7.1 diff --git a/setup.cfg b/setup.cfg index 52d64e11..11433ee8 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,2 @@ [flake8] max-line-length=99 - -[metadata] -description-file = README.md \ No newline at end of file diff --git a/setup.py b/setup.py index 0e79ab80..eccf27f4 100644 --- a/setup.py +++ b/setup.py @@ -3,61 +3,48 @@ """ Fireblocks API - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) The version of the OpenAPI document: 1.6.2 Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + from setuptools import setup, find_packages # noqa: H301 -NAME = "fireblocks" # To install the library, run the following # # python setup.py install # # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools - +NAME = "fireblocks" +VERSION = "1.0.0" +PYTHON_REQUIRES = ">=3.7" REQUIRES = [ - "certifi >= 14.5.14", - "frozendict ~= 2.3.4", - "python-dateutil ~= 2.7.0", - "setuptools >= 21.0.0", - "typing_extensions ~= 4.3.0", - "urllib3 ~= 2.0.0", - "aenum >= 3.1.11", - "cryptography >= 2.7", - "PyJWT >= 2.3.0", - "requests >= 2.22.0", - "typing_extensions ~= 4.3.0", - "python-dateutil ~= 2.7.0", + "urllib3 >= 1.25.3, < 2.1.0", + "python-dateutil", + "pydantic >= 2", + "typing-extensions >= 4.7.1", ] -with open("README.md", "r", encoding="utf-8") as f: - long_description = f.read() - setup( name=NAME, - version="v0.0.1", - description="Fireblocks Auto Generated SDK", - author="Fireblocks", + version=VERSION, + description="Fireblocks API", + author="OpenAPI Generator community", author_email="support@fireblocks.com", - url="https://pypi.org/project/fireblocks", - keywords=["Fireblocks", "SDK", "Fireblocks API"], - python_requires=">=3.7", + url="", + keywords=["OpenAPI", "OpenAPI-Generator", "Fireblocks API"], install_requires=REQUIRES, packages=find_packages(exclude=["test", "tests"]), include_package_data=True, - license="MIT License (MIT)", - long_description=long_description, - long_description_content_type="text/markdown", - classifiers=[ - 'Development Status :: 4 - Beta', - 'Intended Audience :: Developers', - 'Topic :: Software Development', - 'License :: OSI Approved :: MIT License', - 'Programming Language :: Python :: 3.7', - ], + long_description_content_type='text/markdown', + long_description="""\ + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + """, # noqa: E501 + package_data={"fireblocks_client": ["py.typed"]}, ) diff --git a/test-requirements.txt b/test-requirements.txt index 2d88b034..8e6d8cb1 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -1,3 +1,5 @@ -pytest~=4.6.7 # needed for python 3.4 +pytest~=7.1.3 pytest-cov>=2.8.1 -pytest-randomly==1.2.3 # needed for python 3.4 +pytest-randomly>=3.12.0 +mypy>=1.4.1 +types-python-dateutil>=2.8.19 diff --git a/test/test_abi_function.py b/test/test_abi_function.py new file mode 100644 index 00000000..15ee2123 --- /dev/null +++ b/test/test_abi_function.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.abi_function import AbiFunction + + +class TestAbiFunction(unittest.TestCase): + """AbiFunction unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AbiFunction: + """Test AbiFunction + 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 `AbiFunction` + """ + model = AbiFunction() + if include_optional: + return AbiFunction( + name = 'mint', + state_mutability = 'pure', + type = 'constructor', + inputs = [ + fireblocks_client.models.parameter.Parameter( + name = '_name', + description = 'The name of the token', + internal_type = 'string', + type = 'string', + components = [ + fireblocks_client.models.parameter.Parameter( + name = '_name', + description = 'The name of the token', + internal_type = 'string', + type = 'string', ) + ], ) + ], + outputs = [ + fireblocks_client.models.parameter.Parameter( + name = '_name', + description = 'The name of the token', + internal_type = 'string', + type = 'string', + components = [ + fireblocks_client.models.parameter.Parameter( + name = '_name', + description = 'The name of the token', + internal_type = 'string', + type = 'string', ) + ], ) + ], + description = '' + ) + else: + return AbiFunction( + type = 'constructor', + inputs = [ + fireblocks_client.models.parameter.Parameter( + name = '_name', + description = 'The name of the token', + internal_type = 'string', + type = 'string', + components = [ + fireblocks_client.models.parameter.Parameter( + name = '_name', + description = 'The name of the token', + internal_type = 'string', + type = 'string', ) + ], ) + ], + ) + """ + + def testAbiFunction(self): + """Test AbiFunction""" + # 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/test/test_account.py b/test/test_account.py new file mode 100644 index 00000000..d3cf0ce5 --- /dev/null +++ b/test/test_account.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.account import Account + + +class TestAccount(unittest.TestCase): + """Account unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> Account: + """Test Account + 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 `Account` + """ + model = Account() + if include_optional: + return Account( + account_id = '', + account_type = 'EXCHANGE_ACCOUNT' + ) + else: + return Account( + account_id = '', + account_type = 'EXCHANGE_ACCOUNT', + ) + """ + + def testAccount(self): + """Test Account""" + # 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/test/test_account_type.py b/test/test_account_type.py new file mode 100644 index 00000000..970fea5e --- /dev/null +++ b/test/test_account_type.py @@ -0,0 +1,36 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.account_type import AccountType + + +class TestAccountType(unittest.TestCase): + """AccountType unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAccountType(self): + """Test AccountType""" + # inst = AccountType() + + +if __name__ == "__main__": + unittest.main() diff --git a/test/test_add_asset_to_external_wallet_request.py b/test/test_add_asset_to_external_wallet_request.py new file mode 100644 index 00000000..ead28df0 --- /dev/null +++ b/test/test_add_asset_to_external_wallet_request.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.add_asset_to_external_wallet_request import ( + AddAssetToExternalWalletRequest, +) + + +class TestAddAssetToExternalWalletRequest(unittest.TestCase): + """AddAssetToExternalWalletRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AddAssetToExternalWalletRequest: + """Test AddAssetToExternalWalletRequest + 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 `AddAssetToExternalWalletRequest` + """ + model = AddAssetToExternalWalletRequest() + if include_optional: + return AddAssetToExternalWalletRequest( + address = '', + tag = '', + additional_info = fireblocks_client.models.add_asset_to_external_wallet_request_one_of_1_additional_info.AddAssetToExternalWalletRequest_oneOf_1_additionalInfo() + ) + else: + return AddAssetToExternalWalletRequest( + address = '', + additional_info = fireblocks_client.models.add_asset_to_external_wallet_request_one_of_1_additional_info.AddAssetToExternalWalletRequest_oneOf_1_additionalInfo(), + ) + """ + + def testAddAssetToExternalWalletRequest(self): + """Test AddAssetToExternalWalletRequest""" + # 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/test/test_add_asset_to_external_wallet_request_one_of.py b/test/test_add_asset_to_external_wallet_request_one_of.py new file mode 100644 index 00000000..6edd7092 --- /dev/null +++ b/test/test_add_asset_to_external_wallet_request_one_of.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.add_asset_to_external_wallet_request_one_of import ( + AddAssetToExternalWalletRequestOneOf, +) + + +class TestAddAssetToExternalWalletRequestOneOf(unittest.TestCase): + """AddAssetToExternalWalletRequestOneOf unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AddAssetToExternalWalletRequestOneOf: + """Test AddAssetToExternalWalletRequestOneOf + 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 `AddAssetToExternalWalletRequestOneOf` + """ + model = AddAssetToExternalWalletRequestOneOf() + if include_optional: + return AddAssetToExternalWalletRequestOneOf( + address = '', + tag = '' + ) + else: + return AddAssetToExternalWalletRequestOneOf( + address = '', + ) + """ + + def testAddAssetToExternalWalletRequestOneOf(self): + """Test AddAssetToExternalWalletRequestOneOf""" + # 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/test/test_add_asset_to_external_wallet_request_one_of1.py b/test/test_add_asset_to_external_wallet_request_one_of1.py new file mode 100644 index 00000000..dff8b5fc --- /dev/null +++ b/test/test_add_asset_to_external_wallet_request_one_of1.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.add_asset_to_external_wallet_request_one_of1 import ( + AddAssetToExternalWalletRequestOneOf1, +) + + +class TestAddAssetToExternalWalletRequestOneOf1(unittest.TestCase): + """AddAssetToExternalWalletRequestOneOf1 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AddAssetToExternalWalletRequestOneOf1: + """Test AddAssetToExternalWalletRequestOneOf1 + 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 `AddAssetToExternalWalletRequestOneOf1` + """ + model = AddAssetToExternalWalletRequestOneOf1() + if include_optional: + return AddAssetToExternalWalletRequestOneOf1( + additional_info = fireblocks_client.models.add_asset_to_external_wallet_request_one_of_1_additional_info.AddAssetToExternalWalletRequest_oneOf_1_additionalInfo() + ) + else: + return AddAssetToExternalWalletRequestOneOf1( + additional_info = fireblocks_client.models.add_asset_to_external_wallet_request_one_of_1_additional_info.AddAssetToExternalWalletRequest_oneOf_1_additionalInfo(), + ) + """ + + def testAddAssetToExternalWalletRequestOneOf1(self): + """Test AddAssetToExternalWalletRequestOneOf1""" + # 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/test/test_add_asset_to_external_wallet_request_one_of1_additional_info.py b/test/test_add_asset_to_external_wallet_request_one_of1_additional_info.py new file mode 100644 index 00000000..6cbd8817 --- /dev/null +++ b/test/test_add_asset_to_external_wallet_request_one_of1_additional_info.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.add_asset_to_external_wallet_request_one_of1_additional_info import ( + AddAssetToExternalWalletRequestOneOf1AdditionalInfo, +) + + +class TestAddAssetToExternalWalletRequestOneOf1AdditionalInfo(unittest.TestCase): + """AddAssetToExternalWalletRequestOneOf1AdditionalInfo unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance( + self, include_optional + ) -> AddAssetToExternalWalletRequestOneOf1AdditionalInfo: + """Test AddAssetToExternalWalletRequestOneOf1AdditionalInfo + 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 `AddAssetToExternalWalletRequestOneOf1AdditionalInfo` + """ + model = AddAssetToExternalWalletRequestOneOf1AdditionalInfo() + if include_optional: + return AddAssetToExternalWalletRequestOneOf1AdditionalInfo( + account_holder_given_name = '', + account_holder_surname = '', + account_holder_city = '', + account_holder_country = '', + account_holder_address1 = '', + account_holder_address2 = '', + account_holder_district = '', + account_holder_postal_code = '', + iban = '', + iban_city = '', + iban_country = '', + aba_routing_number = '', + aba_account_number = '', + aba_country = '', + spei_clabe = '', + spei_name = '' + ) + else: + return AddAssetToExternalWalletRequestOneOf1AdditionalInfo( + account_holder_given_name = '', + account_holder_city = '', + account_holder_country = '', + account_holder_address1 = '', + account_holder_postal_code = '', + iban = '', + iban_city = '', + iban_country = '', + aba_routing_number = '', + aba_account_number = '', + aba_country = '', + spei_clabe = '', + ) + """ + + def testAddAssetToExternalWalletRequestOneOf1AdditionalInfo(self): + """Test AddAssetToExternalWalletRequestOneOf1AdditionalInfo""" + # 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/test/test_add_asset_to_external_wallet_request_one_of1_additional_info_one_of.py b/test/test_add_asset_to_external_wallet_request_one_of1_additional_info_one_of.py new file mode 100644 index 00000000..7b5dc5c3 --- /dev/null +++ b/test/test_add_asset_to_external_wallet_request_one_of1_additional_info_one_of.py @@ -0,0 +1,76 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.add_asset_to_external_wallet_request_one_of1_additional_info_one_of import ( + AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf, +) + + +class TestAddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf(unittest.TestCase): + """AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance( + self, include_optional + ) -> AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf: + """Test AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf + 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 `AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf` + """ + model = AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf() + if include_optional: + return AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf( + account_holder_given_name = '', + account_holder_surname = '', + account_holder_city = '', + account_holder_country = '', + account_holder_address1 = '', + account_holder_address2 = '', + account_holder_district = '', + account_holder_postal_code = '', + iban = '', + iban_city = '', + iban_country = '' + ) + else: + return AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf( + account_holder_given_name = '', + account_holder_city = '', + account_holder_country = '', + account_holder_address1 = '', + account_holder_postal_code = '', + iban = '', + iban_city = '', + iban_country = '', + ) + """ + + def testAddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf(self): + """Test AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf""" + # 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/test/test_add_asset_to_external_wallet_request_one_of1_additional_info_one_of1.py b/test/test_add_asset_to_external_wallet_request_one_of1_additional_info_one_of1.py new file mode 100644 index 00000000..d791744f --- /dev/null +++ b/test/test_add_asset_to_external_wallet_request_one_of1_additional_info_one_of1.py @@ -0,0 +1,76 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.add_asset_to_external_wallet_request_one_of1_additional_info_one_of1 import ( + AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1, +) + + +class TestAddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1(unittest.TestCase): + """AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance( + self, include_optional + ) -> AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1: + """Test AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 + 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 `AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1` + """ + model = AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1() + if include_optional: + return AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1( + account_holder_given_name = '', + account_holder_surname = '', + account_holder_city = '', + account_holder_country = '', + account_holder_address1 = '', + account_holder_address2 = '', + account_holder_district = '', + account_holder_postal_code = '', + aba_routing_number = '', + aba_account_number = '', + aba_country = '' + ) + else: + return AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1( + account_holder_given_name = '', + account_holder_city = '', + account_holder_country = '', + account_holder_address1 = '', + account_holder_postal_code = '', + aba_routing_number = '', + aba_account_number = '', + aba_country = '', + ) + """ + + def testAddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1(self): + """Test AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1""" + # 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/test/test_add_asset_to_external_wallet_request_one_of1_additional_info_one_of2.py b/test/test_add_asset_to_external_wallet_request_one_of1_additional_info_one_of2.py new file mode 100644 index 00000000..1084dbaf --- /dev/null +++ b/test/test_add_asset_to_external_wallet_request_one_of1_additional_info_one_of2.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.add_asset_to_external_wallet_request_one_of1_additional_info_one_of2 import ( + AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2, +) + + +class TestAddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2(unittest.TestCase): + """AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance( + self, include_optional + ) -> AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2: + """Test AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2 + 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 `AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2` + """ + model = AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2() + if include_optional: + return AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2( + spei_clabe = '', + spei_name = '' + ) + else: + return AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2( + spei_clabe = '', + ) + """ + + def testAddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2(self): + """Test AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2""" + # 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/test/test_add_collateral_request_body.py b/test/test_add_collateral_request_body.py new file mode 100644 index 00000000..e39d5902 --- /dev/null +++ b/test/test_add_collateral_request_body.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.add_collateral_request_body import ( + AddCollateralRequestBody, +) + + +class TestAddCollateralRequestBody(unittest.TestCase): + """AddCollateralRequestBody unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AddCollateralRequestBody: + """Test AddCollateralRequestBody + 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 `AddCollateralRequestBody` + """ + model = AddCollateralRequestBody() + if include_optional: + return AddCollateralRequestBody( + transaction_request = fireblocks_client.models.transaction_request.TransactionRequest( + operation = 'TRANSFER', + note = 'Ticket 123', + external_tx_id = '00000000-0000-0000-0000-000000000000', + asset_id = 'ETH', + source = fireblocks_client.models.source_transfer_peer_path.SourceTransferPeerPath( + type = 'VAULT_ACCOUNT', + sub_type = 'BINANCE', + id = '', + name = '', + wallet_id = '', ), + destination = fireblocks_client.models.destination_transfer_peer_path.DestinationTransferPeerPath( + type = 'VAULT_ACCOUNT', + id = '', + name = '', + wallet_id = '', + one_time_address = fireblocks_client.models.one_time_address.OneTimeAddress( + address = '', + tag = '', ), ), + destinations = [ + fireblocks_client.models.transaction_request_destination.TransactionRequestDestination( + amount = '', ) + ], + amount = null, + treat_as_gross_amount = False, + force_sweep = False, + fee_level = 'MEDIUM', + fee = null, + priority_fee = null, + fail_on_low_fee = True, + max_fee = '120', + gas_limit = null, + gas_price = null, + network_fee = null, + replace_tx_by_hash = '00000000-0000-0000-0000-000000000000', + extra_parameters = fireblocks_client.models.extra_parameters.extraParameters(), + customer_ref_id = 'abcdef', + travel_rule_message = fireblocks_client.models.travel_rule_create_transaction_request.TravelRuleCreateTransactionRequest( + originator_vas_pdid = '', + beneficiary_vas_pdid = '', + beneficiary_vas_pname = '', + transaction_blockchain_info = null, + originator = null, + beneficiary = null, + encrypted = '', + protocol = '', + skip_beneficiary_data_validation = True, + travel_rule_behavior = True, + originator_proof = null, + beneficiary_proof = null, + pii = null, ), + auto_staking = True, + network_staking = null, + cpu_staking = null, ), + is_src_collateral = True + ) + else: + return AddCollateralRequestBody( + ) + """ + + def testAddCollateralRequestBody(self): + """Test AddCollateralRequestBody""" + # 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/test/test_add_contract_asset_request.py b/test/test_add_contract_asset_request.py new file mode 100644 index 00000000..aed02883 --- /dev/null +++ b/test/test_add_contract_asset_request.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.add_contract_asset_request import AddContractAssetRequest + + +class TestAddContractAssetRequest(unittest.TestCase): + """AddContractAssetRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AddContractAssetRequest: + """Test AddContractAssetRequest + 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 `AddContractAssetRequest` + """ + model = AddContractAssetRequest() + if include_optional: + return AddContractAssetRequest( + address = '', + tag = '' + ) + else: + return AddContractAssetRequest( + address = '', + ) + """ + + def testAddContractAssetRequest(self): + """Test AddContractAssetRequest""" + # 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/test/test_additional_info_dto.py b/test/test_additional_info_dto.py new file mode 100644 index 00000000..51ea315c --- /dev/null +++ b/test/test_additional_info_dto.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.additional_info_dto import AdditionalInfoDto + + +class TestAdditionalInfoDto(unittest.TestCase): + """AdditionalInfoDto unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdditionalInfoDto: + """Test AdditionalInfoDto + 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 `AdditionalInfoDto` + """ + model = AdditionalInfoDto() + if include_optional: + return AdditionalInfoDto( + estimated_annual_reward = 6.48, + lockup_period = 172800000, + activation_period = 172800000 + ) + else: + return AdditionalInfoDto( + estimated_annual_reward = 6.48, + lockup_period = 172800000, + activation_period = 172800000, + ) + """ + + def testAdditionalInfoDto(self): + """Test AdditionalInfoDto""" + # 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/test/test_aml_registration_result.py b/test/test_aml_registration_result.py new file mode 100644 index 00000000..cd7a30a8 --- /dev/null +++ b/test/test_aml_registration_result.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.aml_registration_result import AmlRegistrationResult + + +class TestAmlRegistrationResult(unittest.TestCase): + """AmlRegistrationResult unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AmlRegistrationResult: + """Test AmlRegistrationResult + 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 `AmlRegistrationResult` + """ + model = AmlRegistrationResult() + if include_optional: + return AmlRegistrationResult( + provider = '', + success = True, + timestamp = 1.337 + ) + else: + return AmlRegistrationResult( + ) + """ + + def testAmlRegistrationResult(self): + """Test AmlRegistrationResult""" + # 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/test/test_aml_screening_result.py b/test/test_aml_screening_result.py new file mode 100644 index 00000000..68a98fa8 --- /dev/null +++ b/test/test_aml_screening_result.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.aml_screening_result import AmlScreeningResult + + +class TestAmlScreeningResult(unittest.TestCase): + """AmlScreeningResult unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AmlScreeningResult: + """Test AmlScreeningResult + 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 `AmlScreeningResult` + """ + model = AmlScreeningResult() + if include_optional: + return AmlScreeningResult( + provider = '', + payload = None + ) + else: + return AmlScreeningResult( + ) + """ + + def testAmlScreeningResult(self): + """Test AmlScreeningResult""" + # 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/test/test_amount_aggregation_time_period_method.py b/test/test_amount_aggregation_time_period_method.py new file mode 100644 index 00000000..13401905 --- /dev/null +++ b/test/test_amount_aggregation_time_period_method.py @@ -0,0 +1,38 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.amount_aggregation_time_period_method import ( + AmountAggregationTimePeriodMethod, +) + + +class TestAmountAggregationTimePeriodMethod(unittest.TestCase): + """AmountAggregationTimePeriodMethod unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAmountAggregationTimePeriodMethod(self): + """Test AmountAggregationTimePeriodMethod""" + # inst = AmountAggregationTimePeriodMethod() + + +if __name__ == "__main__": + unittest.main() diff --git a/test/test_amount_and_chain_descriptor.py b/test/test_amount_and_chain_descriptor.py new file mode 100644 index 00000000..8a6a4e0d --- /dev/null +++ b/test/test_amount_and_chain_descriptor.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.amount_and_chain_descriptor import ( + AmountAndChainDescriptor, +) + + +class TestAmountAndChainDescriptor(unittest.TestCase): + """AmountAndChainDescriptor unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AmountAndChainDescriptor: + """Test AmountAndChainDescriptor + 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 `AmountAndChainDescriptor` + """ + model = AmountAndChainDescriptor() + if include_optional: + return AmountAndChainDescriptor( + chain_descriptor = 'ETH', + amount = '32.007149606' + ) + else: + return AmountAndChainDescriptor( + chain_descriptor = 'ETH', + amount = '32.007149606', + ) + """ + + def testAmountAndChainDescriptor(self): + """Test AmountAndChainDescriptor""" + # 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/test/test_amount_info.py b/test/test_amount_info.py new file mode 100644 index 00000000..d34201ef --- /dev/null +++ b/test/test_amount_info.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.amount_info import AmountInfo + + +class TestAmountInfo(unittest.TestCase): + """AmountInfo unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AmountInfo: + """Test AmountInfo + 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 `AmountInfo` + """ + model = AmountInfo() + if include_optional: + return AmountInfo( + amount = '', + requested_amount = '', + net_amount = '', + amount_usd = '' + ) + else: + return AmountInfo( + ) + """ + + def testAmountInfo(self): + """Test AmountInfo""" + # 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/test/test_api_key.py b/test/test_api_key.py new file mode 100644 index 00000000..a65cd15a --- /dev/null +++ b/test/test_api_key.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.api_key import ApiKey + + +class TestApiKey(unittest.TestCase): + """ApiKey unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ApiKey: + """Test ApiKey + 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 `ApiKey` + """ + model = ApiKey() + if include_optional: + return ApiKey( + id = '44fcead0-7053-4831-a53a-df7fb90d440f', + last_seen = '2021-07-01T00:00Z' + ) + else: + return ApiKey( + id = '44fcead0-7053-4831-a53a-df7fb90d440f', + last_seen = '2021-07-01T00:00Z', + ) + """ + + def testApiKey(self): + """Test ApiKey""" + # 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/test/test_api_keys_paginated_response.py b/test/test_api_keys_paginated_response.py new file mode 100644 index 00000000..25983117 --- /dev/null +++ b/test/test_api_keys_paginated_response.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.api_keys_paginated_response import ( + ApiKeysPaginatedResponse, +) + + +class TestApiKeysPaginatedResponse(unittest.TestCase): + """ApiKeysPaginatedResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ApiKeysPaginatedResponse: + """Test ApiKeysPaginatedResponse + 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 `ApiKeysPaginatedResponse` + """ + model = ApiKeysPaginatedResponse() + if include_optional: + return ApiKeysPaginatedResponse( + data = [ + fireblocks_client.models.api_key.ApiKey( + id = '44fcead0-7053-4831-a53a-df7fb90d440f', + last_seen = '2021-07-01T00:00Z', ) + ], + next = 'eJ0eXAiOiJKV1QiLCJhbGcOiJIUzI1NiJ9' + ) + else: + return ApiKeysPaginatedResponse( + data = [ + fireblocks_client.models.api_key.ApiKey( + id = '44fcead0-7053-4831-a53a-df7fb90d440f', + last_seen = '2021-07-01T00:00Z', ) + ], + ) + """ + + def testApiKeysPaginatedResponse(self): + """Test ApiKeysPaginatedResponse""" + # 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/test/test_api_user.py b/test/test_api_user.py new file mode 100644 index 00000000..06952805 --- /dev/null +++ b/test/test_api_user.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.api_user import APIUser + + +class TestAPIUser(unittest.TestCase): + """APIUser unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> APIUser: + """Test APIUser + 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 `APIUser` + """ + model = APIUser() + if include_optional: + return APIUser( + id = '', + name = '', + role = 'OWNER', + enabled = True, + status = 'PENDING_ACTIVATION', + user_type = 'API' + ) + else: + return APIUser( + ) + """ + + def testAPIUser(self): + """Test APIUser""" + # 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/test/test_api_user_api.py b/test/test_api_user_api.py new file mode 100644 index 00000000..36a9d7e7 --- /dev/null +++ b/test/test_api_user_api.py @@ -0,0 +1,46 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.api.api_user_api import ApiUserApi + + +class TestApiUserApi(unittest.TestCase): + """ApiUserApi unit test stubs""" + + def setUp(self) -> None: + self.api = ApiUserApi() + + def tearDown(self) -> None: + pass + + def test_create_api_user(self) -> None: + """Test case for create_api_user + + Create Api user + """ + pass + + def test_get_api_users(self) -> None: + """Test case for get_api_users + + Get Api users + """ + pass + + +if __name__ == "__main__": + unittest.main() diff --git a/test/test_asset_already_exist_http_error.py b/test/test_asset_already_exist_http_error.py new file mode 100644 index 00000000..f2abd67a --- /dev/null +++ b/test/test_asset_already_exist_http_error.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.asset_already_exist_http_error import ( + AssetAlreadyExistHttpError, +) + + +class TestAssetAlreadyExistHttpError(unittest.TestCase): + """AssetAlreadyExistHttpError unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AssetAlreadyExistHttpError: + """Test AssetAlreadyExistHttpError + 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 `AssetAlreadyExistHttpError` + """ + model = AssetAlreadyExistHttpError() + if include_optional: + return AssetAlreadyExistHttpError( + status_code = 409, + message = '', + error = 'Conflict' + ) + else: + return AssetAlreadyExistHttpError( + ) + """ + + def testAssetAlreadyExistHttpError(self): + """Test AssetAlreadyExistHttpError""" + # 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/test/test_asset_amount.py b/test/test_asset_amount.py new file mode 100644 index 00000000..a6b26776 --- /dev/null +++ b/test/test_asset_amount.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.asset_amount import AssetAmount + + +class TestAssetAmount(unittest.TestCase): + """AssetAmount unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AssetAmount: + """Test AssetAmount + 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 `AssetAmount` + """ + model = AssetAmount() + if include_optional: + return AssetAmount( + amount = '', + asset_id = '' + ) + else: + return AssetAmount( + amount = '', + asset_id = '', + ) + """ + + def testAssetAmount(self): + """Test AssetAmount""" + # 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/test/test_asset_bad_request_error_response.py b/test/test_asset_bad_request_error_response.py new file mode 100644 index 00000000..19174514 --- /dev/null +++ b/test/test_asset_bad_request_error_response.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.asset_bad_request_error_response import ( + AssetBadRequestErrorResponse, +) + + +class TestAssetBadRequestErrorResponse(unittest.TestCase): + """AssetBadRequestErrorResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AssetBadRequestErrorResponse: + """Test AssetBadRequestErrorResponse + 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 `AssetBadRequestErrorResponse` + """ + model = AssetBadRequestErrorResponse() + if include_optional: + return AssetBadRequestErrorResponse( + message = 'Listing an asset on the requested blockchain is not supported', + code = '3001' + ) + else: + return AssetBadRequestErrorResponse( + message = 'Listing an asset on the requested blockchain is not supported', + code = '3001', + ) + """ + + def testAssetBadRequestErrorResponse(self): + """Test AssetBadRequestErrorResponse""" + # 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/test/test_asset_conflict_error_response.py b/test/test_asset_conflict_error_response.py new file mode 100644 index 00000000..b3faa9e4 --- /dev/null +++ b/test/test_asset_conflict_error_response.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.asset_conflict_error_response import ( + AssetConflictErrorResponse, +) + + +class TestAssetConflictErrorResponse(unittest.TestCase): + """AssetConflictErrorResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AssetConflictErrorResponse: + """Test AssetConflictErrorResponse + 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 `AssetConflictErrorResponse` + """ + model = AssetConflictErrorResponse() + if include_optional: + return AssetConflictErrorResponse( + message = 'Asset already listed', + code = '3002' + ) + else: + return AssetConflictErrorResponse( + message = 'Asset already listed', + code = '3002', + ) + """ + + def testAssetConflictErrorResponse(self): + """Test AssetConflictErrorResponse""" + # 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/test/test_asset_does_not_exist_http_error.py b/test/test_asset_does_not_exist_http_error.py new file mode 100644 index 00000000..90303b41 --- /dev/null +++ b/test/test_asset_does_not_exist_http_error.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.asset_does_not_exist_http_error import ( + AssetDoesNotExistHttpError, +) + + +class TestAssetDoesNotExistHttpError(unittest.TestCase): + """AssetDoesNotExistHttpError unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AssetDoesNotExistHttpError: + """Test AssetDoesNotExistHttpError + 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 `AssetDoesNotExistHttpError` + """ + model = AssetDoesNotExistHttpError() + if include_optional: + return AssetDoesNotExistHttpError( + status_code = 404, + message = '', + error = 'Not Found' + ) + else: + return AssetDoesNotExistHttpError( + ) + """ + + def testAssetDoesNotExistHttpError(self): + """Test AssetDoesNotExistHttpError""" + # 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/test/test_asset_forbidden_error_response.py b/test/test_asset_forbidden_error_response.py new file mode 100644 index 00000000..65c01034 --- /dev/null +++ b/test/test_asset_forbidden_error_response.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.asset_forbidden_error_response import ( + AssetForbiddenErrorResponse, +) + + +class TestAssetForbiddenErrorResponse(unittest.TestCase): + """AssetForbiddenErrorResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AssetForbiddenErrorResponse: + """Test AssetForbiddenErrorResponse + 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 `AssetForbiddenErrorResponse` + """ + model = AssetForbiddenErrorResponse() + if include_optional: + return AssetForbiddenErrorResponse( + message = 'Asset creation quota reached', + code = '3006' + ) + else: + return AssetForbiddenErrorResponse( + message = 'Asset creation quota reached', + code = '3006', + ) + """ + + def testAssetForbiddenErrorResponse(self): + """Test AssetForbiddenErrorResponse""" + # 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/test/test_asset_internal_server_error_response.py b/test/test_asset_internal_server_error_response.py new file mode 100644 index 00000000..4c366fce --- /dev/null +++ b/test/test_asset_internal_server_error_response.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.asset_internal_server_error_response import ( + AssetInternalServerErrorResponse, +) + + +class TestAssetInternalServerErrorResponse(unittest.TestCase): + """AssetInternalServerErrorResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AssetInternalServerErrorResponse: + """Test AssetInternalServerErrorResponse + 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 `AssetInternalServerErrorResponse` + """ + model = AssetInternalServerErrorResponse() + if include_optional: + return AssetInternalServerErrorResponse( + message = 'Internal server error', + code = '3005' + ) + else: + return AssetInternalServerErrorResponse( + message = 'Internal server error', + code = '3005', + ) + """ + + def testAssetInternalServerErrorResponse(self): + """Test AssetInternalServerErrorResponse""" + # 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/test/test_asset_metadata_dto.py b/test/test_asset_metadata_dto.py new file mode 100644 index 00000000..2abcf031 --- /dev/null +++ b/test/test_asset_metadata_dto.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.asset_metadata_dto import AssetMetadataDto + + +class TestAssetMetadataDto(unittest.TestCase): + """AssetMetadataDto unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AssetMetadataDto: + """Test AssetMetadataDto + 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 `AssetMetadataDto` + """ + model = AssetMetadataDto() + if include_optional: + return AssetMetadataDto( + asset_id = 'BQ5R_MY_TOKEN', + name = 'MyToken', + symbol = 'MYT', + network_protocol = 'ETH', + total_supply = '1000000000000000', + holders_count = 6, + type = 'ERC20', + contract_address = '0x1234567890abcdef1234567890abcdef12345678', + issuer_address = 'rGyXjc5d7s17vvt3NtKKascvJrnSxV21kQ', + testnet = True, + blockchain = 'ETH_TEST5', + decimals = 18, + vault_account_id = '0' + ) + else: + return AssetMetadataDto( + asset_id = 'BQ5R_MY_TOKEN', + ) + """ + + def testAssetMetadataDto(self): + """Test AssetMetadataDto""" + # 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/test/test_asset_not_found_error_response.py b/test/test_asset_not_found_error_response.py new file mode 100644 index 00000000..a0afb3ed --- /dev/null +++ b/test/test_asset_not_found_error_response.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.asset_not_found_error_response import ( + AssetNotFoundErrorResponse, +) + + +class TestAssetNotFoundErrorResponse(unittest.TestCase): + """AssetNotFoundErrorResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AssetNotFoundErrorResponse: + """Test AssetNotFoundErrorResponse + 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 `AssetNotFoundErrorResponse` + """ + model = AssetNotFoundErrorResponse() + if include_optional: + return AssetNotFoundErrorResponse( + message = 'Invalid address, could not get asset information', + code = '3009' + ) + else: + return AssetNotFoundErrorResponse( + message = 'Invalid address, could not get asset information', + code = '3009', + ) + """ + + def testAssetNotFoundErrorResponse(self): + """Test AssetNotFoundErrorResponse""" + # 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/test/test_asset_response.py b/test/test_asset_response.py new file mode 100644 index 00000000..49ba7a07 --- /dev/null +++ b/test/test_asset_response.py @@ -0,0 +1,75 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.asset_response import AssetResponse + + +class TestAssetResponse(unittest.TestCase): + """AssetResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AssetResponse: + """Test AssetResponse + 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 `AssetResponse` + """ + model = AssetResponse() + if include_optional: + return AssetResponse( + legacy_id = 'TST3_ETH', + asset_class = 'FT', + onchain = fireblocks_client.models.asset_response_onchain.AssetResponse_onchain( + symbol = 'TST3', + name = 'Test 3', + address = '0xe7A9as1oa38bc4da0248s179E30aa94CcF453991', + decimals = 18, + standard = 'ERC20', ), + metadata = fireblocks_client.models.asset_response_metadata.AssetResponse_metadata( + scope = 'Global', + deprecated = False, ) + ) + else: + return AssetResponse( + legacy_id = 'TST3_ETH', + asset_class = 'FT', + onchain = fireblocks_client.models.asset_response_onchain.AssetResponse_onchain( + symbol = 'TST3', + name = 'Test 3', + address = '0xe7A9as1oa38bc4da0248s179E30aa94CcF453991', + decimals = 18, + standard = 'ERC20', ), + metadata = fireblocks_client.models.asset_response_metadata.AssetResponse_metadata( + scope = 'Global', + deprecated = False, ), + ) + """ + + def testAssetResponse(self): + """Test AssetResponse""" + # 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/test/test_asset_response_metadata.py b/test/test_asset_response_metadata.py new file mode 100644 index 00000000..1e923460 --- /dev/null +++ b/test/test_asset_response_metadata.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.asset_response_metadata import AssetResponseMetadata + + +class TestAssetResponseMetadata(unittest.TestCase): + """AssetResponseMetadata unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AssetResponseMetadata: + """Test AssetResponseMetadata + 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 `AssetResponseMetadata` + """ + model = AssetResponseMetadata() + if include_optional: + return AssetResponseMetadata( + scope = 'Global', + deprecated = False + ) + else: + return AssetResponseMetadata( + scope = 'Global', + deprecated = False, + ) + """ + + def testAssetResponseMetadata(self): + """Test AssetResponseMetadata""" + # 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/test/test_asset_response_onchain.py b/test/test_asset_response_onchain.py new file mode 100644 index 00000000..aa446356 --- /dev/null +++ b/test/test_asset_response_onchain.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.asset_response_onchain import AssetResponseOnchain + + +class TestAssetResponseOnchain(unittest.TestCase): + """AssetResponseOnchain unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AssetResponseOnchain: + """Test AssetResponseOnchain + 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 `AssetResponseOnchain` + """ + model = AssetResponseOnchain() + if include_optional: + return AssetResponseOnchain( + symbol = 'TST3', + name = 'Test 3', + address = '0xe7A9as1oa38bc4da0248s179E30aa94CcF453991', + decimals = 18, + standard = 'ERC20' + ) + else: + return AssetResponseOnchain( + symbol = 'TST3', + name = 'Test 3', + decimals = 18, + standard = 'ERC20', + ) + """ + + def testAssetResponseOnchain(self): + """Test AssetResponseOnchain""" + # 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/test/test_asset_type_response.py b/test/test_asset_type_response.py new file mode 100644 index 00000000..b239e2ea --- /dev/null +++ b/test/test_asset_type_response.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.asset_type_response import AssetTypeResponse + + +class TestAssetTypeResponse(unittest.TestCase): + """AssetTypeResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AssetTypeResponse: + """Test AssetTypeResponse + 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 `AssetTypeResponse` + """ + model = AssetTypeResponse() + if include_optional: + return AssetTypeResponse( + id = '', + name = '', + type = '', + contract_address = '', + native_asset = '', + decimals = 1.337 + ) + else: + return AssetTypeResponse( + id = '', + name = '', + type = '', + ) + """ + + def testAssetTypeResponse(self): + """Test AssetTypeResponse""" + # 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/test/test_asset_wallet.py b/test/test_asset_wallet.py new file mode 100644 index 00000000..58aab220 --- /dev/null +++ b/test/test_asset_wallet.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.asset_wallet import AssetWallet + + +class TestAssetWallet(unittest.TestCase): + """AssetWallet unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AssetWallet: + """Test AssetWallet + 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 `AssetWallet` + """ + model = AssetWallet() + if include_optional: + return AssetWallet( + vault_id = '', + asset_id = '', + available = '', + total = '', + pending = '', + staked = '', + frozen = '', + locked_amount = '', + block_height = '', + block_hash = '', + creation_timestamp = '' + ) + else: + return AssetWallet( + ) + """ + + def testAssetWallet(self): + """Test AssetWallet""" + # 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/test/test_assets_api.py b/test/test_assets_api.py new file mode 100644 index 00000000..a3db3a25 --- /dev/null +++ b/test/test_assets_api.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.api.assets_api import AssetsApi + + +class TestAssetsApi(unittest.TestCase): + """AssetsApi unit test stubs""" + + def setUp(self) -> None: + self.api = AssetsApi() + + def tearDown(self) -> None: + pass + + def test_create_assets_bulk(self) -> None: + """Test case for create_assets_bulk + + Bulk creation of wallets + """ + pass + + +if __name__ == "__main__": + unittest.main() diff --git a/test/test_audit_log_data.py b/test/test_audit_log_data.py new file mode 100644 index 00000000..3da9f224 --- /dev/null +++ b/test/test_audit_log_data.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.audit_log_data import AuditLogData + + +class TestAuditLogData(unittest.TestCase): + """AuditLogData unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AuditLogData: + """Test AuditLogData + 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 `AuditLogData` + """ + model = AuditLogData() + if include_optional: + return AuditLogData( + id = '', + timestamp = '', + created_at = '', + user = '', + subject = '', + event = '', + tenant_id = '', + user_id = '' + ) + else: + return AuditLogData( + ) + """ + + def testAuditLogData(self): + """Test AuditLogData""" + # 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/test/test_audit_logs_api.py b/test/test_audit_logs_api.py new file mode 100644 index 00000000..3fd04a3f --- /dev/null +++ b/test/test_audit_logs_api.py @@ -0,0 +1,46 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.api.audit_logs_api import AuditLogsApi + + +class TestAuditLogsApi(unittest.TestCase): + """AuditLogsApi unit test stubs""" + + def setUp(self) -> None: + self.api = AuditLogsApi() + + def tearDown(self) -> None: + pass + + def test_get_audit_logs(self) -> None: + """Test case for get_audit_logs + + Get audit logs + """ + pass + + def test_get_audits(self) -> None: + """Test case for get_audits + + Get audit logs + """ + pass + + +if __name__ == "__main__": + unittest.main() diff --git a/test/test_auditor_data.py b/test/test_auditor_data.py new file mode 100644 index 00000000..bb9855fc --- /dev/null +++ b/test/test_auditor_data.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.auditor_data import AuditorData + + +class TestAuditorData(unittest.TestCase): + """AuditorData unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AuditorData: + """Test AuditorData + 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 `AuditorData` + """ + model = AuditorData() + if include_optional: + return AuditorData( + name = '', + image_url = '', + link = '' + ) + else: + return AuditorData( + name = '', + image_url = '', + link = '', + ) + """ + + def testAuditorData(self): + """Test AuditorData""" + # 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/test/test_authorization_groups.py b/test/test_authorization_groups.py new file mode 100644 index 00000000..e1e66ae3 --- /dev/null +++ b/test/test_authorization_groups.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.authorization_groups import AuthorizationGroups + + +class TestAuthorizationGroups(unittest.TestCase): + """AuthorizationGroups unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AuthorizationGroups: + """Test AuthorizationGroups + 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 `AuthorizationGroups` + """ + model = AuthorizationGroups() + if include_optional: + return AuthorizationGroups( + th = 1.337, + users = { + 'PENDING_AUTHORIZATION' : 'PENDING_AUTHORIZATION' + } + ) + else: + return AuthorizationGroups( + ) + """ + + def testAuthorizationGroups(self): + """Test AuthorizationGroups""" + # 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/test/test_authorization_info.py b/test/test_authorization_info.py new file mode 100644 index 00000000..e513f23e --- /dev/null +++ b/test/test_authorization_info.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.authorization_info import AuthorizationInfo + + +class TestAuthorizationInfo(unittest.TestCase): + """AuthorizationInfo unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AuthorizationInfo: + """Test AuthorizationInfo + 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 `AuthorizationInfo` + """ + model = AuthorizationInfo() + if include_optional: + return AuthorizationInfo( + allow_operator_as_authorizer = True, + logic = 'AND', + groups = [ + fireblocks_client.models.authorization_groups.AuthorizationGroups( + th = 1.337, + users = { + 'PENDING_AUTHORIZATION' : 'PENDING_AUTHORIZATION' + }, ) + ] + ) + else: + return AuthorizationInfo( + ) + """ + + def testAuthorizationInfo(self): + """Test AuthorizationInfo""" + # 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/test/test_block_info.py b/test/test_block_info.py new file mode 100644 index 00000000..7410519f --- /dev/null +++ b/test/test_block_info.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.block_info import BlockInfo + + +class TestBlockInfo(unittest.TestCase): + """BlockInfo unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BlockInfo: + """Test BlockInfo + 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 `BlockInfo` + """ + model = BlockInfo() + if include_optional: + return BlockInfo( + block_height = '', + block_hash = '' + ) + else: + return BlockInfo( + ) + """ + + def testBlockInfo(self): + """Test BlockInfo""" + # 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/test/test_blockchains_assets_api.py b/test/test_blockchains_assets_api.py new file mode 100644 index 00000000..d2080a1d --- /dev/null +++ b/test/test_blockchains_assets_api.py @@ -0,0 +1,46 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.api.blockchains_assets_api import BlockchainsAssetsApi + + +class TestBlockchainsAssetsApi(unittest.TestCase): + """BlockchainsAssetsApi unit test stubs""" + + def setUp(self) -> None: + self.api = BlockchainsAssetsApi() + + def tearDown(self) -> None: + pass + + def test_get_supported_assets(self) -> None: + """Test case for get_supported_assets + + List all asset types supported by Fireblocks + """ + pass + + def test_register_new_asset(self) -> None: + """Test case for register_new_asset + + Register an asset + """ + pass + + +if __name__ == "__main__": + unittest.main() diff --git a/test/test_cancel_transaction_response.py b/test/test_cancel_transaction_response.py new file mode 100644 index 00000000..5a2bb167 --- /dev/null +++ b/test/test_cancel_transaction_response.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.cancel_transaction_response import ( + CancelTransactionResponse, +) + + +class TestCancelTransactionResponse(unittest.TestCase): + """CancelTransactionResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CancelTransactionResponse: + """Test CancelTransactionResponse + 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 `CancelTransactionResponse` + """ + model = CancelTransactionResponse() + if include_optional: + return CancelTransactionResponse( + success = True + ) + else: + return CancelTransactionResponse( + ) + """ + + def testCancelTransactionResponse(self): + """Test CancelTransactionResponse""" + # 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/test/test_chain_info_response_dto.py b/test/test_chain_info_response_dto.py new file mode 100644 index 00000000..500c7151 --- /dev/null +++ b/test/test_chain_info_response_dto.py @@ -0,0 +1,69 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.chain_info_response_dto import ChainInfoResponseDto + + +class TestChainInfoResponseDto(unittest.TestCase): + """ChainInfoResponseDto unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ChainInfoResponseDto: + """Test ChainInfoResponseDto + 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 `ChainInfoResponseDto` + """ + model = ChainInfoResponseDto() + if include_optional: + return ChainInfoResponseDto( + chain_descriptor = 'SOL', + current_epoch = 483, + epoch_elapsed = 0.31, + epoch_duration = 172800000, + additional_info = fireblocks_client.models.additional_info_dto.AdditionalInfoDto( + estimated_annual_reward = 6.48, + lockup_period = 172800000, + activation_period = 172800000, ) + ) + else: + return ChainInfoResponseDto( + chain_descriptor = 'SOL', + current_epoch = 483, + epoch_elapsed = 0.31, + epoch_duration = 172800000, + additional_info = fireblocks_client.models.additional_info_dto.AdditionalInfoDto( + estimated_annual_reward = 6.48, + lockup_period = 172800000, + activation_period = 172800000, ), + ) + """ + + def testChainInfoResponseDto(self): + """Test ChainInfoResponseDto""" + # 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/test/test_collection_metadata_dto.py b/test/test_collection_metadata_dto.py new file mode 100644 index 00000000..89ad9fc7 --- /dev/null +++ b/test/test_collection_metadata_dto.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.collection_metadata_dto import CollectionMetadataDto + + +class TestCollectionMetadataDto(unittest.TestCase): + """CollectionMetadataDto unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CollectionMetadataDto: + """Test CollectionMetadataDto + 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 `CollectionMetadataDto` + """ + model = CollectionMetadataDto() + if include_optional: + return CollectionMetadataDto( + fb_collection_id = '911fe739f0d4d123c98fd366c3bed35c6e30c00e', + name = 'Rarible', + symbol = 'RARI', + standard = 'ERC721', + blockchain_descriptor = 'ETH_TEST5', + contract_address = '0x1723017329a804564bC8d215496C89eaBf1F3211' + ) + else: + return CollectionMetadataDto( + fb_collection_id = '911fe739f0d4d123c98fd366c3bed35c6e30c00e', + blockchain_descriptor = 'ETH_TEST5', + ) + """ + + def testCollectionMetadataDto(self): + """Test CollectionMetadataDto""" + # 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/test/test_collection_ownership_response.py b/test/test_collection_ownership_response.py new file mode 100644 index 00000000..a8f1f07c --- /dev/null +++ b/test/test_collection_ownership_response.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.collection_ownership_response import ( + CollectionOwnershipResponse, +) + + +class TestCollectionOwnershipResponse(unittest.TestCase): + """CollectionOwnershipResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CollectionOwnershipResponse: + """Test CollectionOwnershipResponse + 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 `CollectionOwnershipResponse` + """ + model = CollectionOwnershipResponse() + if include_optional: + return CollectionOwnershipResponse( + id = '', + name = '', + symbol = '', + standard = '', + blockchain_descriptor = 'ETH', + contract_address = '' + ) + else: + return CollectionOwnershipResponse( + id = '', + blockchain_descriptor = 'ETH', + ) + """ + + def testCollectionOwnershipResponse(self): + """Test CollectionOwnershipResponse""" + # 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/test/test_compliance_api.py b/test/test_compliance_api.py new file mode 100644 index 00000000..ad78007b --- /dev/null +++ b/test/test_compliance_api.py @@ -0,0 +1,81 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.api.compliance_api import ComplianceApi + + +class TestComplianceApi(unittest.TestCase): + """ComplianceApi unit test stubs""" + + def setUp(self) -> None: + self.api = ComplianceApi() + + def tearDown(self) -> None: + pass + + def test_get_aml_post_screening_policy(self) -> None: + """Test case for get_aml_post_screening_policy + + AML - View Post-Screening Policy + """ + pass + + def test_get_aml_screening_policy(self) -> None: + """Test case for get_aml_screening_policy + + AML - View Screening Policy + """ + pass + + def test_get_post_screening_policy(self) -> None: + """Test case for get_post_screening_policy + + Travel Rule - View Post-Screening Policy + """ + pass + + def test_get_screening_policy(self) -> None: + """Test case for get_screening_policy + + Travel Rule - View Screening Policy + """ + pass + + def test_update_aml_screening_configuration(self) -> None: + """Test case for update_aml_screening_configuration + + Update AML Configuration + """ + pass + + def test_update_screening_configuration(self) -> None: + """Test case for update_screening_configuration + + Tenant - Screening Configuration + """ + pass + + def test_update_travel_rule_config(self) -> None: + """Test case for update_travel_rule_config + + Update Travel Rule Configuration + """ + pass + + +if __name__ == "__main__": + unittest.main() diff --git a/test/test_compliance_result.py b/test/test_compliance_result.py new file mode 100644 index 00000000..30b367c6 --- /dev/null +++ b/test/test_compliance_result.py @@ -0,0 +1,84 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.compliance_result import ComplianceResult + + +class TestComplianceResult(unittest.TestCase): + """ComplianceResult unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ComplianceResult: + """Test ComplianceResult + 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 `ComplianceResult` + """ + model = ComplianceResult() + if include_optional: + return ComplianceResult( + aml = [ + fireblocks_client.models.compliance_screening_result.ComplianceScreeningResult( + provider = '', + payload = fireblocks_client.models.payload.payload(), + bypass_reason = '', + screening_status = 'COMPLETED', + timestamp = 1.337, ) + ], + tr = [ + fireblocks_client.models.compliance_screening_result.ComplianceScreeningResult( + provider = '', + payload = fireblocks_client.models.payload.payload(), + bypass_reason = '', + screening_status = 'COMPLETED', + timestamp = 1.337, ) + ], + aml_list = [ + fireblocks_client.models.compliance_screening_result.ComplianceScreeningResult( + provider = '', + payload = fireblocks_client.models.payload.payload(), + bypass_reason = '', + screening_status = 'COMPLETED', + timestamp = 1.337, ) + ], + status = 'Started', + aml_registration = [ + fireblocks_client.models.aml_registration_result.AmlRegistrationResult( + provider = '', + success = True, + timestamp = 1.337, ) + ] + ) + else: + return ComplianceResult( + ) + """ + + def testComplianceResult(self): + """Test ComplianceResult""" + # 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/test/test_compliance_screening_configuration_api.py b/test/test_compliance_screening_configuration_api.py new file mode 100644 index 00000000..c209ffc9 --- /dev/null +++ b/test/test_compliance_screening_configuration_api.py @@ -0,0 +1,48 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.api.compliance_screening_configuration_api import ( + ComplianceScreeningConfigurationApi, +) + + +class TestComplianceScreeningConfigurationApi(unittest.TestCase): + """ComplianceScreeningConfigurationApi unit test stubs""" + + def setUp(self) -> None: + self.api = ComplianceScreeningConfigurationApi() + + def tearDown(self) -> None: + pass + + def test_get_aml_screening_configuration(self) -> None: + """Test case for get_aml_screening_configuration + + Get AML Screening Policy Configuration + """ + pass + + def test_get_screening_configuration(self) -> None: + """Test case for get_screening_configuration + + Get Travel Rule Screening Policy Configuration + """ + pass + + +if __name__ == "__main__": + unittest.main() diff --git a/test/test_compliance_screening_result.py b/test/test_compliance_screening_result.py new file mode 100644 index 00000000..1a41dced --- /dev/null +++ b/test/test_compliance_screening_result.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.compliance_screening_result import ( + ComplianceScreeningResult, +) + + +class TestComplianceScreeningResult(unittest.TestCase): + """ComplianceScreeningResult unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ComplianceScreeningResult: + """Test ComplianceScreeningResult + 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 `ComplianceScreeningResult` + """ + model = ComplianceScreeningResult() + if include_optional: + return ComplianceScreeningResult( + provider = '', + payload = None, + bypass_reason = '', + screening_status = 'COMPLETED', + timestamp = 1.337 + ) + else: + return ComplianceScreeningResult( + ) + """ + + def testComplianceScreeningResult(self): + """Test ComplianceScreeningResult""" + # 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/test/test_config_change_request_status.py b/test/test_config_change_request_status.py new file mode 100644 index 00000000..28c567f8 --- /dev/null +++ b/test/test_config_change_request_status.py @@ -0,0 +1,38 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.config_change_request_status import ( + ConfigChangeRequestStatus, +) + + +class TestConfigChangeRequestStatus(unittest.TestCase): + """ConfigChangeRequestStatus unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testConfigChangeRequestStatus(self): + """Test ConfigChangeRequestStatus""" + # inst = ConfigChangeRequestStatus() + + +if __name__ == "__main__": + unittest.main() diff --git a/test/test_config_conversion_operation_snapshot.py b/test/test_config_conversion_operation_snapshot.py new file mode 100644 index 00000000..ca3d43c6 --- /dev/null +++ b/test/test_config_conversion_operation_snapshot.py @@ -0,0 +1,71 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.config_conversion_operation_snapshot import ( + ConfigConversionOperationSnapshot, +) + + +class TestConfigConversionOperationSnapshot(unittest.TestCase): + """ConfigConversionOperationSnapshot unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ConfigConversionOperationSnapshot: + """Test ConfigConversionOperationSnapshot + 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 `ConfigConversionOperationSnapshot` + """ + model = ConfigConversionOperationSnapshot() + if include_optional: + return ConfigConversionOperationSnapshot( + operation_id = '', + type = 'CONVERSION', + params = fireblocks_client.models.conversion_operation_config_params.ConversionOperationConfigParams( + amount = '', + account_id = '', + src_asset_id = '', + dest_asset_id = '', + slippage_basis_points = 0, ) + ) + else: + return ConfigConversionOperationSnapshot( + operation_id = '', + type = 'CONVERSION', + params = fireblocks_client.models.conversion_operation_config_params.ConversionOperationConfigParams( + amount = '', + account_id = '', + src_asset_id = '', + dest_asset_id = '', + slippage_basis_points = 0, ), + ) + """ + + def testConfigConversionOperationSnapshot(self): + """Test ConfigConversionOperationSnapshot""" + # 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/test/test_config_disbursement_operation_snapshot.py b/test/test_config_disbursement_operation_snapshot.py new file mode 100644 index 00000000..a9e49f54 --- /dev/null +++ b/test/test_config_disbursement_operation_snapshot.py @@ -0,0 +1,73 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.config_disbursement_operation_snapshot import ( + ConfigDisbursementOperationSnapshot, +) + + +class TestConfigDisbursementOperationSnapshot(unittest.TestCase): + """ConfigDisbursementOperationSnapshot unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ConfigDisbursementOperationSnapshot: + """Test ConfigDisbursementOperationSnapshot + 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 `ConfigDisbursementOperationSnapshot` + """ + model = ConfigDisbursementOperationSnapshot() + if include_optional: + return ConfigDisbursementOperationSnapshot( + operation_id = '', + type = 'DISBURSEMENT', + params = fireblocks_client.models.disbursement_operation_config_params.DisbursementOperationConfigParams( + payment_account = fireblocks_client.models.account.Account( + account_id = '', + account_type = 'EXCHANGE_ACCOUNT', ), + instruction_set = [ + null + ], ) + ) + else: + return ConfigDisbursementOperationSnapshot( + operation_id = '', + type = 'DISBURSEMENT', + params = fireblocks_client.models.disbursement_operation_config_params.DisbursementOperationConfigParams( + payment_account = fireblocks_client.models.account.Account( + account_id = '', + account_type = 'EXCHANGE_ACCOUNT', ), + instruction_set = [ + null + ], ), + ) + """ + + def testConfigDisbursementOperationSnapshot(self): + """Test ConfigDisbursementOperationSnapshot""" + # 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/test/test_config_operation.py b/test/test_config_operation.py new file mode 100644 index 00000000..618e9ff4 --- /dev/null +++ b/test/test_config_operation.py @@ -0,0 +1,78 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.config_operation import ConfigOperation + + +class TestConfigOperation(unittest.TestCase): + """ConfigOperation unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ConfigOperation: + """Test ConfigOperation + 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 `ConfigOperation` + """ + model = ConfigOperation() + if include_optional: + return ConfigOperation( + operation_id = '', + type = 'DISBURSEMENT', + params = fireblocks_client.models.disbursement_operation_config_params.DisbursementOperationConfigParams( + payment_account = fireblocks_client.models.account.Account( + account_id = '', + account_type = 'EXCHANGE_ACCOUNT', ), + instruction_set = [ + null + ], ), + status = 'PENDING', + validation_failure = fireblocks_client.models.disbursement_validation_failure.DisbursementValidationFailure( + reason = 'ACCOUNT_NOT_FOUND', + data = { + 'key' : null + }, ) + ) + else: + return ConfigOperation( + operation_id = '', + type = 'DISBURSEMENT', + params = fireblocks_client.models.disbursement_operation_config_params.DisbursementOperationConfigParams( + payment_account = fireblocks_client.models.account.Account( + account_id = '', + account_type = 'EXCHANGE_ACCOUNT', ), + instruction_set = [ + null + ], ), + status = 'PENDING', + ) + """ + + def testConfigOperation(self): + """Test ConfigOperation""" + # 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/test/test_config_operation_snapshot.py b/test/test_config_operation_snapshot.py new file mode 100644 index 00000000..14361d10 --- /dev/null +++ b/test/test_config_operation_snapshot.py @@ -0,0 +1,71 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.config_operation_snapshot import ConfigOperationSnapshot + + +class TestConfigOperationSnapshot(unittest.TestCase): + """ConfigOperationSnapshot unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ConfigOperationSnapshot: + """Test ConfigOperationSnapshot + 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 `ConfigOperationSnapshot` + """ + model = ConfigOperationSnapshot() + if include_optional: + return ConfigOperationSnapshot( + operation_id = '', + type = 'DISBURSEMENT', + params = fireblocks_client.models.disbursement_operation_config_params.DisbursementOperationConfigParams( + payment_account = fireblocks_client.models.account.Account( + account_id = '', + account_type = 'EXCHANGE_ACCOUNT', ), + instruction_set = [ + null + ], ) + ) + else: + return ConfigOperationSnapshot( + operation_id = '', + type = 'DISBURSEMENT', + params = fireblocks_client.models.disbursement_operation_config_params.DisbursementOperationConfigParams( + payment_account = fireblocks_client.models.account.Account( + account_id = '', + account_type = 'EXCHANGE_ACCOUNT', ), + instruction_set = [ + null + ], ), + ) + """ + + def testConfigOperationSnapshot(self): + """Test ConfigOperationSnapshot""" + # 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/test/test_config_operation_status.py b/test/test_config_operation_status.py new file mode 100644 index 00000000..1084bbd7 --- /dev/null +++ b/test/test_config_operation_status.py @@ -0,0 +1,36 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.config_operation_status import ConfigOperationStatus + + +class TestConfigOperationStatus(unittest.TestCase): + """ConfigOperationStatus unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testConfigOperationStatus(self): + """Test ConfigOperationStatus""" + # inst = ConfigOperationStatus() + + +if __name__ == "__main__": + unittest.main() diff --git a/test/test_config_transfer_operation_snapshot.py b/test/test_config_transfer_operation_snapshot.py new file mode 100644 index 00000000..11d7f197 --- /dev/null +++ b/test/test_config_transfer_operation_snapshot.py @@ -0,0 +1,73 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.config_transfer_operation_snapshot import ( + ConfigTransferOperationSnapshot, +) + + +class TestConfigTransferOperationSnapshot(unittest.TestCase): + """ConfigTransferOperationSnapshot unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ConfigTransferOperationSnapshot: + """Test ConfigTransferOperationSnapshot + 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 `ConfigTransferOperationSnapshot` + """ + model = ConfigTransferOperationSnapshot() + if include_optional: + return ConfigTransferOperationSnapshot( + operation_id = '', + type = 'TRANSFER', + params = fireblocks_client.models.transfer_operation_config_params.TransferOperationConfigParams( + amount = '', + asset_id = '', + source = fireblocks_client.models.account.Account( + account_id = '', + account_type = 'EXCHANGE_ACCOUNT', ), + destination = null, ) + ) + else: + return ConfigTransferOperationSnapshot( + operation_id = '', + type = 'TRANSFER', + params = fireblocks_client.models.transfer_operation_config_params.TransferOperationConfigParams( + amount = '', + asset_id = '', + source = fireblocks_client.models.account.Account( + account_id = '', + account_type = 'EXCHANGE_ACCOUNT', ), + destination = null, ), + ) + """ + + def testConfigTransferOperationSnapshot(self): + """Test ConfigTransferOperationSnapshot""" + # 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/test/test_console_user.py b/test/test_console_user.py new file mode 100644 index 00000000..1f82352d --- /dev/null +++ b/test/test_console_user.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.console_user import ConsoleUser + + +class TestConsoleUser(unittest.TestCase): + """ConsoleUser unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ConsoleUser: + """Test ConsoleUser + 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 `ConsoleUser` + """ + model = ConsoleUser() + if include_optional: + return ConsoleUser( + id = '', + first_name = '', + last_name = '', + email = '', + role = 'OWNER', + enabled = True, + status = 'PENDING_ACTIVATION', + user_type = 'API' + ) + else: + return ConsoleUser( + ) + """ + + def testConsoleUser(self): + """Test ConsoleUser""" + # 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/test/test_console_user_api.py b/test/test_console_user_api.py new file mode 100644 index 00000000..75fa9d2e --- /dev/null +++ b/test/test_console_user_api.py @@ -0,0 +1,46 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.api.console_user_api import ConsoleUserApi + + +class TestConsoleUserApi(unittest.TestCase): + """ConsoleUserApi unit test stubs""" + + def setUp(self) -> None: + self.api = ConsoleUserApi() + + def tearDown(self) -> None: + pass + + def test_create_console_user(self) -> None: + """Test case for create_console_user + + Create console user + """ + pass + + def test_get_console_users(self) -> None: + """Test case for get_console_users + + Get console users + """ + pass + + +if __name__ == "__main__": + unittest.main() diff --git a/test/test_contract_abi_response_dto.py b/test/test_contract_abi_response_dto.py new file mode 100644 index 00000000..ccd31250 --- /dev/null +++ b/test/test_contract_abi_response_dto.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.contract_abi_response_dto import ContractAbiResponseDto + + +class TestContractAbiResponseDto(unittest.TestCase): + """ContractAbiResponseDto unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ContractAbiResponseDto: + """Test ContractAbiResponseDto + 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 `ContractAbiResponseDto` + """ + model = ContractAbiResponseDto() + if include_optional: + return ContractAbiResponseDto( + abi = [{"inputs":[{"internalType":"address","name":"implementation","type":"address"},{"internalType":"bytes","name":"_data","type":"bytes"}],"stateMutability":"nonpayable","type":"constructor"}], + implementation_abi = [{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"nonpayable","type":"function","name":"mint"}] + ) + else: + return ContractAbiResponseDto( + abi = [{"inputs":[{"internalType":"address","name":"implementation","type":"address"},{"internalType":"bytes","name":"_data","type":"bytes"}],"stateMutability":"nonpayable","type":"constructor"}], + ) + """ + + def testContractAbiResponseDto(self): + """Test ContractAbiResponseDto""" + # 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/test/test_contract_attributes.py b/test/test_contract_attributes.py new file mode 100644 index 00000000..ed0bd568 --- /dev/null +++ b/test/test_contract_attributes.py @@ -0,0 +1,73 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.contract_attributes import ContractAttributes + + +class TestContractAttributes(unittest.TestCase): + """ContractAttributes unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ContractAttributes: + """Test ContractAttributes + 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 `ContractAttributes` + """ + model = ContractAttributes() + if include_optional: + return ContractAttributes( + use_cases = [ + '' + ], + standards = [ + '' + ], + auditor = fireblocks_client.models.auditor_data.AuditorData( + name = '', + image_url = '', + link = '', ) + ) + else: + return ContractAttributes( + use_cases = [ + '' + ], + standards = [ + '' + ], + auditor = fireblocks_client.models.auditor_data.AuditorData( + name = '', + image_url = '', + link = '', ), + ) + """ + + def testContractAttributes(self): + """Test ContractAttributes""" + # 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/test/test_contract_deploy_request.py b/test/test_contract_deploy_request.py new file mode 100644 index 00000000..f06ce6d7 --- /dev/null +++ b/test/test_contract_deploy_request.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.contract_deploy_request import ContractDeployRequest + + +class TestContractDeployRequest(unittest.TestCase): + """ContractDeployRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ContractDeployRequest: + """Test ContractDeployRequest + 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 `ContractDeployRequest` + """ + model = ContractDeployRequest() + if include_optional: + return ContractDeployRequest( + asset_id = 'ETH_TEST5', + vault_account_id = '0', + constructor_parameters = [{"internalType":"string","name":"name_","type":"string","value":"TokenName"},{"internalType":"string","name":"symbol_","type":"string","value":"TokenSymbol"}] + ) + else: + return ContractDeployRequest( + asset_id = 'ETH_TEST5', + vault_account_id = '0', + ) + """ + + def testContractDeployRequest(self): + """Test ContractDeployRequest""" + # 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/test/test_contract_deploy_response.py b/test/test_contract_deploy_response.py new file mode 100644 index 00000000..106fb0f1 --- /dev/null +++ b/test/test_contract_deploy_response.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.contract_deploy_response import ContractDeployResponse + + +class TestContractDeployResponse(unittest.TestCase): + """ContractDeployResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ContractDeployResponse: + """Test ContractDeployResponse + 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 `ContractDeployResponse` + """ + model = ContractDeployResponse() + if include_optional: + return ContractDeployResponse( + tx_id = 'b70701f4-d7b1-4795-a8ee-b09cdb5b850d' + ) + else: + return ContractDeployResponse( + tx_id = 'b70701f4-d7b1-4795-a8ee-b09cdb5b850d', + ) + """ + + def testContractDeployResponse(self): + """Test ContractDeployResponse""" + # 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/test/test_contract_doc.py b/test/test_contract_doc.py new file mode 100644 index 00000000..7492ccaa --- /dev/null +++ b/test/test_contract_doc.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.contract_doc import ContractDoc + + +class TestContractDoc(unittest.TestCase): + """ContractDoc unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ContractDoc: + """Test ContractDoc + 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 `ContractDoc` + """ + model = ContractDoc() + if include_optional: + return ContractDoc( + details = 'A token that can be minted and burned', + events = 'Upgraded(address): {"details": "Emitted when the implementation is upgraded."}', + kind = 'dev', + methods = {"constructor":{"details":"Initializes the contract"}}, + version = '1' + ) + else: + return ContractDoc( + kind = 'dev', + methods = {"constructor":{"details":"Initializes the contract"}}, + version = '1', + ) + """ + + def testContractDoc(self): + """Test ContractDoc""" + # 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/test/test_contract_interactions_api.py b/test/test_contract_interactions_api.py new file mode 100644 index 00000000..0a1e186f --- /dev/null +++ b/test/test_contract_interactions_api.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.api.contract_interactions_api import ContractInteractionsApi + + +class TestContractInteractionsApi(unittest.TestCase): + """ContractInteractionsApi unit test stubs""" + + def setUp(self) -> None: + self.api = ContractInteractionsApi() + + def tearDown(self) -> None: + pass + + def test_get_deployed_contract_abi(self) -> None: + """Test case for get_deployed_contract_abi + + Return deployed contract's ABI + """ + pass + + def test_read_call_function(self) -> None: + """Test case for read_call_function + + Call a read function on a deployed contract + """ + pass + + def test_write_call_function(self) -> None: + """Test case for write_call_function + + Call a write function on a deployed contract + """ + pass + + +if __name__ == "__main__": + unittest.main() diff --git a/test/test_contract_metadata_dto.py b/test/test_contract_metadata_dto.py new file mode 100644 index 00000000..d8b7696e --- /dev/null +++ b/test/test_contract_metadata_dto.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.contract_metadata_dto import ContractMetadataDto + + +class TestContractMetadataDto(unittest.TestCase): + """ContractMetadataDto unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ContractMetadataDto: + """Test ContractMetadataDto + 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 `ContractMetadataDto` + """ + model = ContractMetadataDto() + if include_optional: + return ContractMetadataDto( + id = 'fbfbfbfb-fbfb-fbfb-fbfb-fbfbfbfbfbfb', + blockchain_id = 'B7QG017M', + contract_address = '0x1234567890abcdef1234567890abcdef12345678', + contract_template_id = 'b70701f4-d7b1-4795-a8ee-b09cdb5b850d', + vault_account_id = '0' + ) + else: + return ContractMetadataDto( + id = 'fbfbfbfb-fbfb-fbfb-fbfb-fbfbfbfbfbfb', + blockchain_id = 'B7QG017M', + contract_address = '0x1234567890abcdef1234567890abcdef12345678', + contract_template_id = 'b70701f4-d7b1-4795-a8ee-b09cdb5b850d', + ) + """ + + def testContractMetadataDto(self): + """Test ContractMetadataDto""" + # 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/test/test_contract_template_dto.py b/test/test_contract_template_dto.py new file mode 100644 index 00000000..08001de3 --- /dev/null +++ b/test/test_contract_template_dto.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.contract_template_dto import ContractTemplateDto + + +class TestContractTemplateDto(unittest.TestCase): + """ContractTemplateDto unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ContractTemplateDto: + """Test ContractTemplateDto + 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 `ContractTemplateDto` + """ + model = ContractTemplateDto() + if include_optional: + return ContractTemplateDto( + id = 'b70701f4-d7b1-4795-a8ee-b09cdb5b850d', + name = 'My Contract', + description = 'an ERC20 implementation', + long_description = 'a full ERC20 implementation, containing the following: + + - mint + - burn +', + abi = [ + [{"inputs":[{"internalType":"address","name":"implementation","type":"address"},{"internalType":"bytes","name":"_data","type":"bytes"}],"stateMutability":"payable","type":"constructor"}] + ], + attributes = fireblocks_client.models.contract_attributes.ContractAttributes( + use_cases = [ + '' + ], + standards = [ + '' + ], + auditor = fireblocks_client.models.auditor_data.AuditorData( + name = '', + image_url = '', + link = '', ), ), + docs = fireblocks_client.models.contract_doc.ContractDoc( + details = 'A token that can be minted and burned', + events = 'Upgraded(address): {"details": "Emitted when the implementation is upgraded."}', + kind = 'dev', + methods = {"constructor":{"details":"Initializes the contract"}}, + version = '1', ), + owner = 'b70701f4-d7b1-4795-a8ee-b09cdb5b850d', + vendor = fireblocks_client.models.vendor_dto.VendorDto( + id = 'b70701f4-d7b1-4795-a8ee-b09cdb5b4453', + name = 'Fireblocks', ), + is_public = True, + can_deploy = True, + type = 'FUNGIBLE_TOKEN', + implementation_contract_id = '', + initialization_phase = 'ON_DEPLOYMENT' + ) + else: + return ContractTemplateDto( + id = 'b70701f4-d7b1-4795-a8ee-b09cdb5b850d', + name = 'My Contract', + description = 'an ERC20 implementation', + abi = [ + [{"inputs":[{"internalType":"address","name":"implementation","type":"address"},{"internalType":"bytes","name":"_data","type":"bytes"}],"stateMutability":"payable","type":"constructor"}] + ], + is_public = True, + initialization_phase = 'ON_DEPLOYMENT', + ) + """ + + def testContractTemplateDto(self): + """Test ContractTemplateDto""" + # 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/test/test_contract_templates_api.py b/test/test_contract_templates_api.py new file mode 100644 index 00000000..1bcc9410 --- /dev/null +++ b/test/test_contract_templates_api.py @@ -0,0 +1,81 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.api.contract_templates_api import ContractTemplatesApi + + +class TestContractTemplatesApi(unittest.TestCase): + """ContractTemplatesApi unit test stubs""" + + def setUp(self) -> None: + self.api = ContractTemplatesApi() + + def tearDown(self) -> None: + pass + + def test_delete_contract_template_by_id(self) -> None: + """Test case for delete_contract_template_by_id + + Delete a contract template by id + """ + pass + + def test_deploy_contract(self) -> None: + """Test case for deploy_contract + + Deploy contract + """ + pass + + def test_get_constructor_by_contract_template_id(self) -> None: + """Test case for get_constructor_by_contract_template_id + + Return contract template's constructor + """ + pass + + def test_get_contract_template_by_id(self) -> None: + """Test case for get_contract_template_by_id + + Return contract template by id + """ + pass + + def test_get_contract_templates(self) -> None: + """Test case for get_contract_templates + + List all contract templates + """ + pass + + def test_get_function_abi_by_contract_template_id(self) -> None: + """Test case for get_function_abi_by_contract_template_id + + Return contract template's function + """ + pass + + def test_upload_contract_template(self) -> None: + """Test case for upload_contract_template + + Upload contract template + """ + pass + + +if __name__ == "__main__": + unittest.main() diff --git a/test/test_contract_upload_request.py b/test/test_contract_upload_request.py new file mode 100644 index 00000000..e048136e --- /dev/null +++ b/test/test_contract_upload_request.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.contract_upload_request import ContractUploadRequest + + +class TestContractUploadRequest(unittest.TestCase): + """ContractUploadRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ContractUploadRequest: + """Test ContractUploadRequest + 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 `ContractUploadRequest` + """ + model = ContractUploadRequest() + if include_optional: + return ContractUploadRequest( + name = 'My Contract', + description = 'an ERC20 implementation', + long_description = 'a full ERC20 implementation, containing the following: + + - mint + - burn +', + bytecode = '', + sourcecode = '', + type = 'FUNGIBLE_TOKEN', + docs = fireblocks_client.models.contract_doc.ContractDoc( + details = 'A token that can be minted and burned', + events = 'Upgraded(address): {"details": "Emitted when the implementation is upgraded."}', + kind = 'dev', + methods = {"constructor":{"details":"Initializes the contract"}}, + version = '1', ), + abi = [ + [{"inputs":[{"internalType":"address","name":"implementation","type":"address"},{"internalType":"bytes","name":"_data","type":"bytes"}],"stateMutability":"payable","type":"constructor"}] + ], + attributes = fireblocks_client.models.contract_attributes.ContractAttributes( + use_cases = [ + '' + ], + standards = [ + '' + ], + auditor = fireblocks_client.models.auditor_data.AuditorData( + name = '', + image_url = '', + link = '', ), ) + ) + else: + return ContractUploadRequest( + name = 'My Contract', + description = 'an ERC20 implementation', + bytecode = '', + abi = [ + [{"inputs":[{"internalType":"address","name":"implementation","type":"address"},{"internalType":"bytes","name":"_data","type":"bytes"}],"stateMutability":"payable","type":"constructor"}] + ], + ) + """ + + def testContractUploadRequest(self): + """Test ContractUploadRequest""" + # 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/test/test_contracts_api.py b/test/test_contracts_api.py new file mode 100644 index 00000000..ce963f6c --- /dev/null +++ b/test/test_contracts_api.py @@ -0,0 +1,81 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.api.contracts_api import ContractsApi + + +class TestContractsApi(unittest.TestCase): + """ContractsApi unit test stubs""" + + def setUp(self) -> None: + self.api = ContractsApi() + + def tearDown(self) -> None: + pass + + def test_add_contract_asset(self) -> None: + """Test case for add_contract_asset + + Add an asset to a contract + """ + pass + + def test_create_contract(self) -> None: + """Test case for create_contract + + Create a contract + """ + pass + + def test_delete_contract(self) -> None: + """Test case for delete_contract + + Delete a contract + """ + pass + + def test_delete_contract_asset(self) -> None: + """Test case for delete_contract_asset + + Delete a contract asset + """ + pass + + def test_get_contract(self) -> None: + """Test case for get_contract + + Find a specific contract + """ + pass + + def test_get_contract_asset(self) -> None: + """Test case for get_contract_asset + + Find a contract asset + """ + pass + + def test_get_contracts(self) -> None: + """Test case for get_contracts + + List contracts + """ + pass + + +if __name__ == "__main__": + unittest.main() diff --git a/test/test_conversion_config_operation.py b/test/test_conversion_config_operation.py new file mode 100644 index 00000000..2deb25a3 --- /dev/null +++ b/test/test_conversion_config_operation.py @@ -0,0 +1,78 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.conversion_config_operation import ( + ConversionConfigOperation, +) + + +class TestConversionConfigOperation(unittest.TestCase): + """ConversionConfigOperation unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ConversionConfigOperation: + """Test ConversionConfigOperation + 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 `ConversionConfigOperation` + """ + model = ConversionConfigOperation() + if include_optional: + return ConversionConfigOperation( + operation_id = '', + type = 'CONVERSION', + params = fireblocks_client.models.conversion_operation_config_params.ConversionOperationConfigParams( + amount = '', + account_id = '', + src_asset_id = '', + dest_asset_id = '', + slippage_basis_points = 0, ), + status = 'PENDING', + validation_failure = fireblocks_client.models.conversion_validation_failure.ConversionValidationFailure( + reason = 'ACCOUNT_NOT_FOUND', + data = { + 'key' : null + }, ) + ) + else: + return ConversionConfigOperation( + operation_id = '', + type = 'CONVERSION', + params = fireblocks_client.models.conversion_operation_config_params.ConversionOperationConfigParams( + amount = '', + account_id = '', + src_asset_id = '', + dest_asset_id = '', + slippage_basis_points = 0, ), + status = 'PENDING', + ) + """ + + def testConversionConfigOperation(self): + """Test ConversionConfigOperation""" + # 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/test/test_conversion_operation_config_params.py b/test/test_conversion_operation_config_params.py new file mode 100644 index 00000000..0708bcc0 --- /dev/null +++ b/test/test_conversion_operation_config_params.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.conversion_operation_config_params import ( + ConversionOperationConfigParams, +) + + +class TestConversionOperationConfigParams(unittest.TestCase): + """ConversionOperationConfigParams unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ConversionOperationConfigParams: + """Test ConversionOperationConfigParams + 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 `ConversionOperationConfigParams` + """ + model = ConversionOperationConfigParams() + if include_optional: + return ConversionOperationConfigParams( + amount = '', + account_id = '', + src_asset_id = '', + dest_asset_id = '', + slippage_basis_points = 0 + ) + else: + return ConversionOperationConfigParams( + dest_asset_id = '', + ) + """ + + def testConversionOperationConfigParams(self): + """Test ConversionOperationConfigParams""" + # 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/test/test_conversion_operation_execution.py b/test/test_conversion_operation_execution.py new file mode 100644 index 00000000..75859884 --- /dev/null +++ b/test/test_conversion_operation_execution.py @@ -0,0 +1,83 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.conversion_operation_execution import ( + ConversionOperationExecution, +) + + +class TestConversionOperationExecution(unittest.TestCase): + """ConversionOperationExecution unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ConversionOperationExecution: + """Test ConversionOperationExecution + 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 `ConversionOperationExecution` + """ + model = ConversionOperationExecution() + if include_optional: + return ConversionOperationExecution( + input = fireblocks_client.models.conversion_operation_config_params.ConversionOperationConfigParams( + amount = '', + account_id = '', + src_asset_id = '', + dest_asset_id = '', + slippage_basis_points = 0, ), + output = fireblocks_client.models.conversion_operation_execution_output.ConversionOperationExecutionOutput( + amount = fireblocks_client.models.asset_amount.AssetAmount( + amount = '', + asset_id = '', ), + fee = fireblocks_client.models.asset_amount.AssetAmount( + amount = '', + asset_id = '', ), + conversion_rate = '', ), + started_at = 1.337, + finished_at = 1.337, + failure = fireblocks_client.models.conversion_operation_failure.ConversionOperationFailure( + reason = 'INVALID_AMOUNT', + data = { + 'key' : null + }, ) + ) + else: + return ConversionOperationExecution( + input = fireblocks_client.models.conversion_operation_config_params.ConversionOperationConfigParams( + amount = '', + account_id = '', + src_asset_id = '', + dest_asset_id = '', + slippage_basis_points = 0, ), + started_at = 1.337, + ) + """ + + def testConversionOperationExecution(self): + """Test ConversionOperationExecution""" + # 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/test/test_conversion_operation_execution_output.py b/test/test_conversion_operation_execution_output.py new file mode 100644 index 00000000..5d37c549 --- /dev/null +++ b/test/test_conversion_operation_execution_output.py @@ -0,0 +1,69 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.conversion_operation_execution_output import ( + ConversionOperationExecutionOutput, +) + + +class TestConversionOperationExecutionOutput(unittest.TestCase): + """ConversionOperationExecutionOutput unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ConversionOperationExecutionOutput: + """Test ConversionOperationExecutionOutput + 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 `ConversionOperationExecutionOutput` + """ + model = ConversionOperationExecutionOutput() + if include_optional: + return ConversionOperationExecutionOutput( + amount = fireblocks_client.models.asset_amount.AssetAmount( + amount = '', + asset_id = '', ), + fee = fireblocks_client.models.asset_amount.AssetAmount( + amount = '', + asset_id = '', ), + conversion_rate = '' + ) + else: + return ConversionOperationExecutionOutput( + amount = fireblocks_client.models.asset_amount.AssetAmount( + amount = '', + asset_id = '', ), + fee = fireblocks_client.models.asset_amount.AssetAmount( + amount = '', + asset_id = '', ), + conversion_rate = '', + ) + """ + + def testConversionOperationExecutionOutput(self): + """Test ConversionOperationExecutionOutput""" + # 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/test/test_conversion_operation_execution_params.py b/test/test_conversion_operation_execution_params.py new file mode 100644 index 00000000..704dd06d --- /dev/null +++ b/test/test_conversion_operation_execution_params.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.conversion_operation_execution_params import ( + ConversionOperationExecutionParams, +) + + +class TestConversionOperationExecutionParams(unittest.TestCase): + """ConversionOperationExecutionParams unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ConversionOperationExecutionParams: + """Test ConversionOperationExecutionParams + 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 `ConversionOperationExecutionParams` + """ + model = ConversionOperationExecutionParams() + if include_optional: + return ConversionOperationExecutionParams( + config_operation_id = '', + execution_params = fireblocks_client.models.conversion_operation_execution_params_execution_params.ConversionOperationExecutionParams_executionParams( + amount = '', + account_id = '', + src_asset_id = '', + dest_asset_id = '', + slippage_basis_points = 0, ) + ) + else: + return ConversionOperationExecutionParams( + config_operation_id = '', + ) + """ + + def testConversionOperationExecutionParams(self): + """Test ConversionOperationExecutionParams""" + # 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/test/test_conversion_operation_execution_params_execution_params.py b/test/test_conversion_operation_execution_params_execution_params.py new file mode 100644 index 00000000..45a764c5 --- /dev/null +++ b/test/test_conversion_operation_execution_params_execution_params.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.conversion_operation_execution_params_execution_params import ( + ConversionOperationExecutionParamsExecutionParams, +) + + +class TestConversionOperationExecutionParamsExecutionParams(unittest.TestCase): + """ConversionOperationExecutionParamsExecutionParams unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance( + self, include_optional + ) -> ConversionOperationExecutionParamsExecutionParams: + """Test ConversionOperationExecutionParamsExecutionParams + 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 `ConversionOperationExecutionParamsExecutionParams` + """ + model = ConversionOperationExecutionParamsExecutionParams() + if include_optional: + return ConversionOperationExecutionParamsExecutionParams( + amount = '', + account_id = '', + src_asset_id = '', + dest_asset_id = '', + slippage_basis_points = 0 + ) + else: + return ConversionOperationExecutionParamsExecutionParams( + ) + """ + + def testConversionOperationExecutionParamsExecutionParams(self): + """Test ConversionOperationExecutionParamsExecutionParams""" + # 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/test/test_conversion_operation_failure.py b/test/test_conversion_operation_failure.py new file mode 100644 index 00000000..4255097e --- /dev/null +++ b/test/test_conversion_operation_failure.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.conversion_operation_failure import ( + ConversionOperationFailure, +) + + +class TestConversionOperationFailure(unittest.TestCase): + """ConversionOperationFailure unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ConversionOperationFailure: + """Test ConversionOperationFailure + 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 `ConversionOperationFailure` + """ + model = ConversionOperationFailure() + if include_optional: + return ConversionOperationFailure( + reason = 'INVALID_AMOUNT', + data = { + 'key' : null + } + ) + else: + return ConversionOperationFailure( + reason = 'INVALID_AMOUNT', + ) + """ + + def testConversionOperationFailure(self): + """Test ConversionOperationFailure""" + # 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/test/test_conversion_operation_preview.py b/test/test_conversion_operation_preview.py new file mode 100644 index 00000000..da84fd9e --- /dev/null +++ b/test/test_conversion_operation_preview.py @@ -0,0 +1,81 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.conversion_operation_preview import ( + ConversionOperationPreview, +) + + +class TestConversionOperationPreview(unittest.TestCase): + """ConversionOperationPreview unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ConversionOperationPreview: + """Test ConversionOperationPreview + 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 `ConversionOperationPreview` + """ + model = ConversionOperationPreview() + if include_optional: + return ConversionOperationPreview( + input = fireblocks_client.models.conversion_operation_config_params.ConversionOperationConfigParams( + amount = '', + account_id = '', + src_asset_id = '', + dest_asset_id = '', + slippage_basis_points = 0, ), + output = fireblocks_client.models.conversion_operation_preview_output.ConversionOperationPreviewOutput( + amount = fireblocks_client.models.asset_amount.AssetAmount( + amount = '', + asset_id = '', ), + fee = fireblocks_client.models.asset_amount.AssetAmount( + amount = '', + asset_id = '', ), + conversion_rate = '', + time_seconds = 1.337, ), + failure = fireblocks_client.models.conversion_operation_failure.ConversionOperationFailure( + reason = 'INVALID_AMOUNT', + data = { + 'key' : null + }, ) + ) + else: + return ConversionOperationPreview( + input = fireblocks_client.models.conversion_operation_config_params.ConversionOperationConfigParams( + amount = '', + account_id = '', + src_asset_id = '', + dest_asset_id = '', + slippage_basis_points = 0, ), + ) + """ + + def testConversionOperationPreview(self): + """Test ConversionOperationPreview""" + # 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/test/test_conversion_operation_preview_output.py b/test/test_conversion_operation_preview_output.py new file mode 100644 index 00000000..4a53145f --- /dev/null +++ b/test/test_conversion_operation_preview_output.py @@ -0,0 +1,71 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.conversion_operation_preview_output import ( + ConversionOperationPreviewOutput, +) + + +class TestConversionOperationPreviewOutput(unittest.TestCase): + """ConversionOperationPreviewOutput unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ConversionOperationPreviewOutput: + """Test ConversionOperationPreviewOutput + 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 `ConversionOperationPreviewOutput` + """ + model = ConversionOperationPreviewOutput() + if include_optional: + return ConversionOperationPreviewOutput( + amount = fireblocks_client.models.asset_amount.AssetAmount( + amount = '', + asset_id = '', ), + fee = fireblocks_client.models.asset_amount.AssetAmount( + amount = '', + asset_id = '', ), + conversion_rate = '', + time_seconds = 1.337 + ) + else: + return ConversionOperationPreviewOutput( + amount = fireblocks_client.models.asset_amount.AssetAmount( + amount = '', + asset_id = '', ), + fee = fireblocks_client.models.asset_amount.AssetAmount( + amount = '', + asset_id = '', ), + conversion_rate = '', + time_seconds = 1.337, + ) + """ + + def testConversionOperationPreviewOutput(self): + """Test ConversionOperationPreviewOutput""" + # 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/test/test_conversion_operation_type.py b/test/test_conversion_operation_type.py new file mode 100644 index 00000000..3e469384 --- /dev/null +++ b/test/test_conversion_operation_type.py @@ -0,0 +1,36 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.conversion_operation_type import ConversionOperationType + + +class TestConversionOperationType(unittest.TestCase): + """ConversionOperationType unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testConversionOperationType(self): + """Test ConversionOperationType""" + # inst = ConversionOperationType() + + +if __name__ == "__main__": + unittest.main() diff --git a/test/test_conversion_validation_failure.py b/test/test_conversion_validation_failure.py new file mode 100644 index 00000000..bb6eb050 --- /dev/null +++ b/test/test_conversion_validation_failure.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.conversion_validation_failure import ( + ConversionValidationFailure, +) + + +class TestConversionValidationFailure(unittest.TestCase): + """ConversionValidationFailure unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ConversionValidationFailure: + """Test ConversionValidationFailure + 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 `ConversionValidationFailure` + """ + model = ConversionValidationFailure() + if include_optional: + return ConversionValidationFailure( + reason = 'ACCOUNT_NOT_FOUND', + data = { + 'key' : null + } + ) + else: + return ConversionValidationFailure( + reason = 'ACCOUNT_NOT_FOUND', + ) + """ + + def testConversionValidationFailure(self): + """Test ConversionValidationFailure""" + # 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/test/test_convert_assets_request.py b/test/test_convert_assets_request.py new file mode 100644 index 00000000..d9caba58 --- /dev/null +++ b/test/test_convert_assets_request.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.convert_assets_request import ConvertAssetsRequest + + +class TestConvertAssetsRequest(unittest.TestCase): + """ConvertAssetsRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ConvertAssetsRequest: + """Test ConvertAssetsRequest + 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 `ConvertAssetsRequest` + """ + model = ConvertAssetsRequest() + if include_optional: + return ConvertAssetsRequest( + src_asset = '', + dest_asset = '', + amount = 1.337 + ) + else: + return ConvertAssetsRequest( + src_asset = '', + dest_asset = '', + amount = 1.337, + ) + """ + + def testConvertAssetsRequest(self): + """Test ConvertAssetsRequest""" + # 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/test/test_convert_assets_response.py b/test/test_convert_assets_response.py new file mode 100644 index 00000000..12fd1d3c --- /dev/null +++ b/test/test_convert_assets_response.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.convert_assets_response import ConvertAssetsResponse + + +class TestConvertAssetsResponse(unittest.TestCase): + """ConvertAssetsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ConvertAssetsResponse: + """Test ConvertAssetsResponse + 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 `ConvertAssetsResponse` + """ + model = ConvertAssetsResponse() + if include_optional: + return ConvertAssetsResponse( + success = True + ) + else: + return ConvertAssetsResponse( + success = True, + ) + """ + + def testConvertAssetsResponse(self): + """Test ConvertAssetsResponse""" + # 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/test/test_cosigner.py b/test/test_cosigner.py new file mode 100644 index 00000000..6f139311 --- /dev/null +++ b/test/test_cosigner.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.cosigner import Cosigner + + +class TestCosigner(unittest.TestCase): + """Cosigner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> Cosigner: + """Test Cosigner + 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 `Cosigner` + """ + model = Cosigner() + if include_optional: + return Cosigner( + archived = False, + id = '44fcead0-7053-4831-a53a-df7fb90d440f', + name = 'My Cosigner 1' + ) + else: + return Cosigner( + archived = False, + id = '44fcead0-7053-4831-a53a-df7fb90d440f', + ) + """ + + def testCosigner(self): + """Test Cosigner""" + # 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/test/test_cosigners_beta_api.py b/test/test_cosigners_beta_api.py new file mode 100644 index 00000000..fb54f78e --- /dev/null +++ b/test/test_cosigners_beta_api.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.api.cosigners_beta_api import CosignersBetaApi + + +class TestCosignersBetaApi(unittest.TestCase): + """CosignersBetaApi unit test stubs""" + + def setUp(self) -> None: + self.api = CosignersBetaApi() + + def tearDown(self) -> None: + pass + + def test_get_api_key(self) -> None: + """Test case for get_api_key + + Get API key + """ + pass + + def test_get_api_keys(self) -> None: + """Test case for get_api_keys + + Get all API keys + """ + pass + + def test_get_cosigner(self) -> None: + """Test case for get_cosigner + + Get cosigner + """ + pass + + def test_get_cosigners(self) -> None: + """Test case for get_cosigners + + Get all cosigners + """ + pass + + def test_rename_cosigner(self) -> None: + """Test case for rename_cosigner + + Rename cosigner + """ + pass + + +if __name__ == "__main__": + unittest.main() diff --git a/test/test_cosigners_paginated_response.py b/test/test_cosigners_paginated_response.py new file mode 100644 index 00000000..4f38697e --- /dev/null +++ b/test/test_cosigners_paginated_response.py @@ -0,0 +1,68 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.cosigners_paginated_response import ( + CosignersPaginatedResponse, +) + + +class TestCosignersPaginatedResponse(unittest.TestCase): + """CosignersPaginatedResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CosignersPaginatedResponse: + """Test CosignersPaginatedResponse + 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 `CosignersPaginatedResponse` + """ + model = CosignersPaginatedResponse() + if include_optional: + return CosignersPaginatedResponse( + data = [ + fireblocks_client.models.cosigner.Cosigner( + archived = False, + id = '44fcead0-7053-4831-a53a-df7fb90d440f', + name = 'My Cosigner 1', ) + ], + next = 'eJ0eXAiOiJKV1QiLCJhbGcOiJIUzI1NiJ9' + ) + else: + return CosignersPaginatedResponse( + data = [ + fireblocks_client.models.cosigner.Cosigner( + archived = False, + id = '44fcead0-7053-4831-a53a-df7fb90d440f', + name = 'My Cosigner 1', ) + ], + ) + """ + + def testCosignersPaginatedResponse(self): + """Test CosignersPaginatedResponse""" + # 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/test/test_create_address_request.py b/test/test_create_address_request.py new file mode 100644 index 00000000..1021577f --- /dev/null +++ b/test/test_create_address_request.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.create_address_request import CreateAddressRequest + + +class TestCreateAddressRequest(unittest.TestCase): + """CreateAddressRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CreateAddressRequest: + """Test CreateAddressRequest + 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 `CreateAddressRequest` + """ + model = CreateAddressRequest() + if include_optional: + return CreateAddressRequest( + description = '', + customer_ref_id = '' + ) + else: + return CreateAddressRequest( + ) + """ + + def testCreateAddressRequest(self): + """Test CreateAddressRequest""" + # 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/test/test_create_address_response.py b/test/test_create_address_response.py new file mode 100644 index 00000000..9091b92e --- /dev/null +++ b/test/test_create_address_response.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.create_address_response import CreateAddressResponse + + +class TestCreateAddressResponse(unittest.TestCase): + """CreateAddressResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CreateAddressResponse: + """Test CreateAddressResponse + 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 `CreateAddressResponse` + """ + model = CreateAddressResponse() + if include_optional: + return CreateAddressResponse( + address = '', + legacy_address = '', + enterprise_address = '', + tag = '', + bip44_address_index = 56 + ) + else: + return CreateAddressResponse( + ) + """ + + def testCreateAddressResponse(self): + """Test CreateAddressResponse""" + # 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/test/test_create_api_user.py b/test/test_create_api_user.py new file mode 100644 index 00000000..5700d46f --- /dev/null +++ b/test/test_create_api_user.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.create_api_user import CreateAPIUser + + +class TestCreateAPIUser(unittest.TestCase): + """CreateAPIUser unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CreateAPIUser: + """Test CreateAPIUser + 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 `CreateAPIUser` + """ + model = CreateAPIUser() + if include_optional: + return CreateAPIUser( + role = '', + name = '', + csr_pem = '-----BEGIN CERTIFICATE REQUEST-----aaa-----END CERTIFICATE REQUEST-----', + co_signer_setup_type = 'SGX_MACHINE', + co_signer_setup_is_first_user = True + ) + else: + return CreateAPIUser( + role = '', + name = '', + csr_pem = '-----BEGIN CERTIFICATE REQUEST-----aaa-----END CERTIFICATE REQUEST-----', + ) + """ + + def testCreateAPIUser(self): + """Test CreateAPIUser""" + # 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/test/test_create_assets_bulk_request.py b/test/test_create_assets_bulk_request.py new file mode 100644 index 00000000..9a5f7591 --- /dev/null +++ b/test/test_create_assets_bulk_request.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.create_assets_bulk_request import CreateAssetsBulkRequest + + +class TestCreateAssetsBulkRequest(unittest.TestCase): + """CreateAssetsBulkRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CreateAssetsBulkRequest: + """Test CreateAssetsBulkRequest + 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 `CreateAssetsBulkRequest` + """ + model = CreateAssetsBulkRequest() + if include_optional: + return CreateAssetsBulkRequest( + asset_id = '', + vault_account_id_from = '', + vault_account_id_to = '' + ) + else: + return CreateAssetsBulkRequest( + ) + """ + + def testCreateAssetsBulkRequest(self): + """Test CreateAssetsBulkRequest""" + # 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/test/test_create_assets_request.py b/test/test_create_assets_request.py new file mode 100644 index 00000000..c5b3e44a --- /dev/null +++ b/test/test_create_assets_request.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.create_assets_request import CreateAssetsRequest + + +class TestCreateAssetsRequest(unittest.TestCase): + """CreateAssetsRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CreateAssetsRequest: + """Test CreateAssetsRequest + 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 `CreateAssetsRequest` + """ + model = CreateAssetsRequest() + if include_optional: + return CreateAssetsRequest( + eos_account_name = '' + ) + else: + return CreateAssetsRequest( + ) + """ + + def testCreateAssetsRequest(self): + """Test CreateAssetsRequest""" + # 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/test/test_create_config_operation_request.py b/test/test_create_config_operation_request.py new file mode 100644 index 00000000..3129fb08 --- /dev/null +++ b/test/test_create_config_operation_request.py @@ -0,0 +1,71 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.create_config_operation_request import ( + CreateConfigOperationRequest, +) + + +class TestCreateConfigOperationRequest(unittest.TestCase): + """CreateConfigOperationRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CreateConfigOperationRequest: + """Test CreateConfigOperationRequest + 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 `CreateConfigOperationRequest` + """ + model = CreateConfigOperationRequest() + if include_optional: + return CreateConfigOperationRequest( + type = 'DISBURSEMENT', + params = fireblocks_client.models.disbursement_operation_config_params.DisbursementOperationConfigParams( + payment_account = fireblocks_client.models.account.Account( + account_id = '', + account_type = 'EXCHANGE_ACCOUNT', ), + instruction_set = [ + null + ], ) + ) + else: + return CreateConfigOperationRequest( + type = 'DISBURSEMENT', + params = fireblocks_client.models.disbursement_operation_config_params.DisbursementOperationConfigParams( + payment_account = fireblocks_client.models.account.Account( + account_id = '', + account_type = 'EXCHANGE_ACCOUNT', ), + instruction_set = [ + null + ], ), + ) + """ + + def testCreateConfigOperationRequest(self): + """Test CreateConfigOperationRequest""" + # 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/test/test_create_connection_request.py b/test/test_create_connection_request.py new file mode 100644 index 00000000..7b365adc --- /dev/null +++ b/test/test_create_connection_request.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.create_connection_request import CreateConnectionRequest + + +class TestCreateConnectionRequest(unittest.TestCase): + """CreateConnectionRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CreateConnectionRequest: + """Test CreateConnectionRequest + 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 `CreateConnectionRequest` + """ + model = CreateConnectionRequest() + if include_optional: + return CreateConnectionRequest( + vault_account_id = 1, + fee_level = 'MEDIUM', + uri = 'wc:77752975-906f-48f5-b59f-047826ee947e@1?bridge=https%3A%2F%2F0.bridge.walletconnect.org&key=64be99adc6086b7a729b0ec8c7e1f174927ab92e84f5c6f9527050225344a637', + chain_ids = [ETH], + ncw_id = 'b8337f1d-bd61-4d6c-afc1-4c9d60aa2132', + ncw_account_id = 1 + ) + else: + return CreateConnectionRequest( + vault_account_id = 1, + fee_level = 'MEDIUM', + uri = 'wc:77752975-906f-48f5-b59f-047826ee947e@1?bridge=https%3A%2F%2F0.bridge.walletconnect.org&key=64be99adc6086b7a729b0ec8c7e1f174927ab92e84f5c6f9527050225344a637', + ncw_id = 'b8337f1d-bd61-4d6c-afc1-4c9d60aa2132', + ncw_account_id = 1, + ) + """ + + def testCreateConnectionRequest(self): + """Test CreateConnectionRequest""" + # 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/test/test_create_connection_response.py b/test/test_create_connection_response.py new file mode 100644 index 00000000..64d1aa6d --- /dev/null +++ b/test/test_create_connection_response.py @@ -0,0 +1,65 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.create_connection_response import CreateConnectionResponse + + +class TestCreateConnectionResponse(unittest.TestCase): + """CreateConnectionResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CreateConnectionResponse: + """Test CreateConnectionResponse + 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 `CreateConnectionResponse` + """ + model = CreateConnectionResponse() + if include_optional: + return CreateConnectionResponse( + id = '4e9e7051-f3b2-48e9-8ee6-b12492552657', + session_metadata = fireblocks_client.models.session_metadata.SessionMetadata( + app_url = '', + app_name = '', + app_description = '', + app_icon = '', ) + ) + else: + return CreateConnectionResponse( + id = '4e9e7051-f3b2-48e9-8ee6-b12492552657', + session_metadata = fireblocks_client.models.session_metadata.SessionMetadata( + app_url = '', + app_name = '', + app_description = '', + app_icon = '', ), + ) + """ + + def testCreateConnectionResponse(self): + """Test CreateConnectionResponse""" + # 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/test/test_create_console_user.py b/test/test_create_console_user.py new file mode 100644 index 00000000..67158ce1 --- /dev/null +++ b/test/test_create_console_user.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.create_console_user import CreateConsoleUser + + +class TestCreateConsoleUser(unittest.TestCase): + """CreateConsoleUser unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CreateConsoleUser: + """Test CreateConsoleUser + 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 `CreateConsoleUser` + """ + model = CreateConsoleUser() + if include_optional: + return CreateConsoleUser( + first_name = '', + last_name = '', + role = '', + email = '' + ) + else: + return CreateConsoleUser( + first_name = '', + last_name = '', + role = '', + email = '', + ) + """ + + def testCreateConsoleUser(self): + """Test CreateConsoleUser""" + # 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/test/test_create_contract_request.py b/test/test_create_contract_request.py new file mode 100644 index 00000000..91c10481 --- /dev/null +++ b/test/test_create_contract_request.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.create_contract_request import CreateContractRequest + + +class TestCreateContractRequest(unittest.TestCase): + """CreateContractRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CreateContractRequest: + """Test CreateContractRequest + 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 `CreateContractRequest` + """ + model = CreateContractRequest() + if include_optional: + return CreateContractRequest( + name = '' + ) + else: + return CreateContractRequest( + ) + """ + + def testCreateContractRequest(self): + """Test CreateContractRequest""" + # 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/test/test_create_conversion_config_operation_request.py b/test/test_create_conversion_config_operation_request.py new file mode 100644 index 00000000..d4a913a3 --- /dev/null +++ b/test/test_create_conversion_config_operation_request.py @@ -0,0 +1,69 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.create_conversion_config_operation_request import ( + CreateConversionConfigOperationRequest, +) + + +class TestCreateConversionConfigOperationRequest(unittest.TestCase): + """CreateConversionConfigOperationRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CreateConversionConfigOperationRequest: + """Test CreateConversionConfigOperationRequest + 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 `CreateConversionConfigOperationRequest` + """ + model = CreateConversionConfigOperationRequest() + if include_optional: + return CreateConversionConfigOperationRequest( + type = 'CONVERSION', + params = fireblocks_client.models.conversion_operation_config_params.ConversionOperationConfigParams( + amount = '', + account_id = '', + src_asset_id = '', + dest_asset_id = '', + slippage_basis_points = 0, ) + ) + else: + return CreateConversionConfigOperationRequest( + type = 'CONVERSION', + params = fireblocks_client.models.conversion_operation_config_params.ConversionOperationConfigParams( + amount = '', + account_id = '', + src_asset_id = '', + dest_asset_id = '', + slippage_basis_points = 0, ), + ) + """ + + def testCreateConversionConfigOperationRequest(self): + """Test CreateConversionConfigOperationRequest""" + # 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/test/test_create_disbursement_config_operation_request.py b/test/test_create_disbursement_config_operation_request.py new file mode 100644 index 00000000..d79072b9 --- /dev/null +++ b/test/test_create_disbursement_config_operation_request.py @@ -0,0 +1,73 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.create_disbursement_config_operation_request import ( + CreateDisbursementConfigOperationRequest, +) + + +class TestCreateDisbursementConfigOperationRequest(unittest.TestCase): + """CreateDisbursementConfigOperationRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance( + self, include_optional + ) -> CreateDisbursementConfigOperationRequest: + """Test CreateDisbursementConfigOperationRequest + 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 `CreateDisbursementConfigOperationRequest` + """ + model = CreateDisbursementConfigOperationRequest() + if include_optional: + return CreateDisbursementConfigOperationRequest( + type = 'DISBURSEMENT', + params = fireblocks_client.models.disbursement_operation_config_params.DisbursementOperationConfigParams( + payment_account = fireblocks_client.models.account.Account( + account_id = '', + account_type = 'EXCHANGE_ACCOUNT', ), + instruction_set = [ + null + ], ) + ) + else: + return CreateDisbursementConfigOperationRequest( + type = 'DISBURSEMENT', + params = fireblocks_client.models.disbursement_operation_config_params.DisbursementOperationConfigParams( + payment_account = fireblocks_client.models.account.Account( + account_id = '', + account_type = 'EXCHANGE_ACCOUNT', ), + instruction_set = [ + null + ], ), + ) + """ + + def testCreateDisbursementConfigOperationRequest(self): + """Test CreateDisbursementConfigOperationRequest""" + # 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/test/test_create_internal_transfer_request.py b/test/test_create_internal_transfer_request.py new file mode 100644 index 00000000..9b1f8adf --- /dev/null +++ b/test/test_create_internal_transfer_request.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.create_internal_transfer_request import ( + CreateInternalTransferRequest, +) + + +class TestCreateInternalTransferRequest(unittest.TestCase): + """CreateInternalTransferRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CreateInternalTransferRequest: + """Test CreateInternalTransferRequest + 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 `CreateInternalTransferRequest` + """ + model = CreateInternalTransferRequest() + if include_optional: + return CreateInternalTransferRequest( + asset = '', + amount = '', + source_type = 'COIN_FUTURES', + dest_type = 'COIN_FUTURES' + ) + else: + return CreateInternalTransferRequest( + ) + """ + + def testCreateInternalTransferRequest(self): + """Test CreateInternalTransferRequest""" + # 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/test/test_create_internal_wallet_asset_request.py b/test/test_create_internal_wallet_asset_request.py new file mode 100644 index 00000000..def67b88 --- /dev/null +++ b/test/test_create_internal_wallet_asset_request.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.create_internal_wallet_asset_request import ( + CreateInternalWalletAssetRequest, +) + + +class TestCreateInternalWalletAssetRequest(unittest.TestCase): + """CreateInternalWalletAssetRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CreateInternalWalletAssetRequest: + """Test CreateInternalWalletAssetRequest + 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 `CreateInternalWalletAssetRequest` + """ + model = CreateInternalWalletAssetRequest() + if include_optional: + return CreateInternalWalletAssetRequest( + address = '', + tag = '' + ) + else: + return CreateInternalWalletAssetRequest( + address = '', + ) + """ + + def testCreateInternalWalletAssetRequest(self): + """Test CreateInternalWalletAssetRequest""" + # 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/test/test_create_multiple_accounts_request.py b/test/test_create_multiple_accounts_request.py new file mode 100644 index 00000000..24ea0188 --- /dev/null +++ b/test/test_create_multiple_accounts_request.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.create_multiple_accounts_request import ( + CreateMultipleAccountsRequest, +) + + +class TestCreateMultipleAccountsRequest(unittest.TestCase): + """CreateMultipleAccountsRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CreateMultipleAccountsRequest: + """Test CreateMultipleAccountsRequest + 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 `CreateMultipleAccountsRequest` + """ + model = CreateMultipleAccountsRequest() + if include_optional: + return CreateMultipleAccountsRequest( + count = 56, + asset_ids = [ + '' + ] + ) + else: + return CreateMultipleAccountsRequest( + ) + """ + + def testCreateMultipleAccountsRequest(self): + """Test CreateMultipleAccountsRequest""" + # 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/test/test_create_ncw_connection_request.py b/test/test_create_ncw_connection_request.py new file mode 100644 index 00000000..0c5453b3 --- /dev/null +++ b/test/test_create_ncw_connection_request.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.create_ncw_connection_request import ( + CreateNcwConnectionRequest, +) + + +class TestCreateNcwConnectionRequest(unittest.TestCase): + """CreateNcwConnectionRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CreateNcwConnectionRequest: + """Test CreateNcwConnectionRequest + 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 `CreateNcwConnectionRequest` + """ + model = CreateNcwConnectionRequest() + if include_optional: + return CreateNcwConnectionRequest( + ncw_id = 'b8337f1d-bd61-4d6c-afc1-4c9d60aa2132', + ncw_account_id = 1, + fee_level = 'MEDIUM', + uri = 'wc:77752975-906f-48f5-b59f-047826ee947e@1?bridge=https%3A%2F%2F0.bridge.walletconnect.org&key=64be99adc6086b7a729b0ec8c7e1f174927ab92e84f5c6f9527050225344a637', + chain_ids = ["ETH"] + ) + else: + return CreateNcwConnectionRequest( + ncw_id = 'b8337f1d-bd61-4d6c-afc1-4c9d60aa2132', + ncw_account_id = 1, + fee_level = 'MEDIUM', + uri = 'wc:77752975-906f-48f5-b59f-047826ee947e@1?bridge=https%3A%2F%2F0.bridge.walletconnect.org&key=64be99adc6086b7a729b0ec8c7e1f174927ab92e84f5c6f9527050225344a637', + ) + """ + + def testCreateNcwConnectionRequest(self): + """Test CreateNcwConnectionRequest""" + # 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/test/test_create_network_id_request.py b/test/test_create_network_id_request.py new file mode 100644 index 00000000..5f4c96c8 --- /dev/null +++ b/test/test_create_network_id_request.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.create_network_id_request import CreateNetworkIdRequest + + +class TestCreateNetworkIdRequest(unittest.TestCase): + """CreateNetworkIdRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CreateNetworkIdRequest: + """Test CreateNetworkIdRequest + 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 `CreateNetworkIdRequest` + """ + model = CreateNetworkIdRequest() + if include_optional: + return CreateNetworkIdRequest( + name = '', + routing_policy = { + 'key' : null + } + ) + else: + return CreateNetworkIdRequest( + name = '', + ) + """ + + def testCreateNetworkIdRequest(self): + """Test CreateNetworkIdRequest""" + # 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/test/test_create_payout_request.py b/test/test_create_payout_request.py new file mode 100644 index 00000000..ba055183 --- /dev/null +++ b/test/test_create_payout_request.py @@ -0,0 +1,79 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.create_payout_request import CreatePayoutRequest + + +class TestCreatePayoutRequest(unittest.TestCase): + """CreatePayoutRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CreatePayoutRequest: + """Test CreatePayoutRequest + 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 `CreatePayoutRequest` + """ + model = CreatePayoutRequest() + if include_optional: + return CreatePayoutRequest( + payment_account = fireblocks_client.models.payment_account.PaymentAccount( + id = '', + type = 'VAULT_ACCOUNT', ), + instruction_set = [ + fireblocks_client.models.payout_instruction.PayoutInstruction( + id = '', + payee_account = fireblocks_client.models.payee_account.PayeeAccount( + id = '', + type = 'VAULT_ACCOUNT', ), + amount = fireblocks_client.models.instruction_amount.InstructionAmount( + amount = '', + asset_id = '', ), ) + ] + ) + else: + return CreatePayoutRequest( + payment_account = fireblocks_client.models.payment_account.PaymentAccount( + id = '', + type = 'VAULT_ACCOUNT', ), + instruction_set = [ + fireblocks_client.models.payout_instruction.PayoutInstruction( + id = '', + payee_account = fireblocks_client.models.payee_account.PayeeAccount( + id = '', + type = 'VAULT_ACCOUNT', ), + amount = fireblocks_client.models.instruction_amount.InstructionAmount( + amount = '', + asset_id = '', ), ) + ], + ) + """ + + def testCreatePayoutRequest(self): + """Test CreatePayoutRequest""" + # 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/test/test_create_token_request_dto.py b/test/test_create_token_request_dto.py new file mode 100644 index 00000000..e4125a77 --- /dev/null +++ b/test/test_create_token_request_dto.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.create_token_request_dto import CreateTokenRequestDto + + +class TestCreateTokenRequestDto(unittest.TestCase): + """CreateTokenRequestDto unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CreateTokenRequestDto: + """Test CreateTokenRequestDto + 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 `CreateTokenRequestDto` + """ + model = CreateTokenRequestDto() + if include_optional: + return CreateTokenRequestDto( + blockchain_id = 'B7QG017M', + asset_id = 'ETH_TEST5', + vault_account_id = '0', + create_params = None, + display_name = '' + ) + else: + return CreateTokenRequestDto( + vault_account_id = '0', + create_params = None, + ) + """ + + def testCreateTokenRequestDto(self): + """Test CreateTokenRequestDto""" + # 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/test/test_create_token_request_dto_create_params.py b/test/test_create_token_request_dto_create_params.py new file mode 100644 index 00000000..91bfc725 --- /dev/null +++ b/test/test_create_token_request_dto_create_params.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.create_token_request_dto_create_params import ( + CreateTokenRequestDtoCreateParams, +) + + +class TestCreateTokenRequestDtoCreateParams(unittest.TestCase): + """CreateTokenRequestDtoCreateParams unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CreateTokenRequestDtoCreateParams: + """Test CreateTokenRequestDtoCreateParams + 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 `CreateTokenRequestDtoCreateParams` + """ + model = CreateTokenRequestDtoCreateParams() + if include_optional: + return CreateTokenRequestDtoCreateParams( + contract_id = 'b70701f4-d7b1-4795-a8ee-b09cdb5b850d', + constructor_params = [{internalType=string, name=name, type=string, value=name}, {internalType=string, name=symbol, type=string, value=symbol}, {components=[{internalType=bool, name=_isMintable, type=bool}], internalType=struct MyStruct, name=customConfigProps, type=tuple, value=[{internalType=bool, name=_isMintable, type=bool, value=false}]}], + symbol = 'MyUSDT', + name = 'My USD Tether', + issuer_address = 'rnDV4JiwgRNhudPY2sm65AzECpRXaasL4r' + ) + else: + return CreateTokenRequestDtoCreateParams( + contract_id = 'b70701f4-d7b1-4795-a8ee-b09cdb5b850d', + symbol = 'MyUSDT', + name = 'My USD Tether', + issuer_address = 'rnDV4JiwgRNhudPY2sm65AzECpRXaasL4r', + ) + """ + + def testCreateTokenRequestDtoCreateParams(self): + """Test CreateTokenRequestDtoCreateParams""" + # 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/test/test_create_transaction_response.py b/test/test_create_transaction_response.py new file mode 100644 index 00000000..6d1d265d --- /dev/null +++ b/test/test_create_transaction_response.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.create_transaction_response import ( + CreateTransactionResponse, +) + + +class TestCreateTransactionResponse(unittest.TestCase): + """CreateTransactionResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CreateTransactionResponse: + """Test CreateTransactionResponse + 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 `CreateTransactionResponse` + """ + model = CreateTransactionResponse() + if include_optional: + return CreateTransactionResponse( + id = '', + status = '', + system_messages = fireblocks_client.models.system_message_info.SystemMessageInfo( + type = 'WARN', + message = 'Slow transaction processing. Outgoing transactions might be stuck.', ) + ) + else: + return CreateTransactionResponse( + ) + """ + + def testCreateTransactionResponse(self): + """Test CreateTransactionResponse""" + # 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/test/test_create_transfer_config_operation_request.py b/test/test_create_transfer_config_operation_request.py new file mode 100644 index 00000000..699ef6dc --- /dev/null +++ b/test/test_create_transfer_config_operation_request.py @@ -0,0 +1,71 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.create_transfer_config_operation_request import ( + CreateTransferConfigOperationRequest, +) + + +class TestCreateTransferConfigOperationRequest(unittest.TestCase): + """CreateTransferConfigOperationRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CreateTransferConfigOperationRequest: + """Test CreateTransferConfigOperationRequest + 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 `CreateTransferConfigOperationRequest` + """ + model = CreateTransferConfigOperationRequest() + if include_optional: + return CreateTransferConfigOperationRequest( + type = 'TRANSFER', + params = fireblocks_client.models.transfer_operation_config_params.TransferOperationConfigParams( + amount = '', + asset_id = '', + source = fireblocks_client.models.account.Account( + account_id = '', + account_type = 'EXCHANGE_ACCOUNT', ), + destination = null, ) + ) + else: + return CreateTransferConfigOperationRequest( + type = 'TRANSFER', + params = fireblocks_client.models.transfer_operation_config_params.TransferOperationConfigParams( + amount = '', + asset_id = '', + source = fireblocks_client.models.account.Account( + account_id = '', + account_type = 'EXCHANGE_ACCOUNT', ), + destination = null, ), + ) + """ + + def testCreateTransferConfigOperationRequest(self): + """Test CreateTransferConfigOperationRequest""" + # 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/test/test_create_user_group_response.py b/test/test_create_user_group_response.py new file mode 100644 index 00000000..d3d2c8a8 --- /dev/null +++ b/test/test_create_user_group_response.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.create_user_group_response import CreateUserGroupResponse + + +class TestCreateUserGroupResponse(unittest.TestCase): + """CreateUserGroupResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CreateUserGroupResponse: + """Test CreateUserGroupResponse + 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 `CreateUserGroupResponse` + """ + model = CreateUserGroupResponse() + if include_optional: + return CreateUserGroupResponse( + id = '', + name = '', + member_ids = [ + '' + ], + status = '' + ) + else: + return CreateUserGroupResponse( + ) + """ + + def testCreateUserGroupResponse(self): + """Test CreateUserGroupResponse""" + # 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/test/test_create_vault_account_connection_request.py b/test/test_create_vault_account_connection_request.py new file mode 100644 index 00000000..275d46d0 --- /dev/null +++ b/test/test_create_vault_account_connection_request.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.create_vault_account_connection_request import ( + CreateVaultAccountConnectionRequest, +) + + +class TestCreateVaultAccountConnectionRequest(unittest.TestCase): + """CreateVaultAccountConnectionRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CreateVaultAccountConnectionRequest: + """Test CreateVaultAccountConnectionRequest + 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 `CreateVaultAccountConnectionRequest` + """ + model = CreateVaultAccountConnectionRequest() + if include_optional: + return CreateVaultAccountConnectionRequest( + vault_account_id = 1, + fee_level = 'MEDIUM', + uri = 'wc:77752975-906f-48f5-b59f-047826ee947e@1?bridge=https%3A%2F%2F0.bridge.walletconnect.org&key=64be99adc6086b7a729b0ec8c7e1f174927ab92e84f5c6f9527050225344a637', + chain_ids = ["ETH"] + ) + else: + return CreateVaultAccountConnectionRequest( + vault_account_id = 1, + fee_level = 'MEDIUM', + uri = 'wc:77752975-906f-48f5-b59f-047826ee947e@1?bridge=https%3A%2F%2F0.bridge.walletconnect.org&key=64be99adc6086b7a729b0ec8c7e1f174927ab92e84f5c6f9527050225344a637', + ) + """ + + def testCreateVaultAccountConnectionRequest(self): + """Test CreateVaultAccountConnectionRequest""" + # 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/test/test_create_vault_account_request.py b/test/test_create_vault_account_request.py new file mode 100644 index 00000000..8571344f --- /dev/null +++ b/test/test_create_vault_account_request.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.create_vault_account_request import ( + CreateVaultAccountRequest, +) + + +class TestCreateVaultAccountRequest(unittest.TestCase): + """CreateVaultAccountRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CreateVaultAccountRequest: + """Test CreateVaultAccountRequest + 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 `CreateVaultAccountRequest` + """ + model = CreateVaultAccountRequest() + if include_optional: + return CreateVaultAccountRequest( + name = '', + hidden_on_ui = True, + customer_ref_id = '', + auto_fuel = True + ) + else: + return CreateVaultAccountRequest( + ) + """ + + def testCreateVaultAccountRequest(self): + """Test CreateVaultAccountRequest""" + # 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/test/test_create_vault_asset_response.py b/test/test_create_vault_asset_response.py new file mode 100644 index 00000000..456cc1c8 --- /dev/null +++ b/test/test_create_vault_asset_response.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.create_vault_asset_response import ( + CreateVaultAssetResponse, +) + + +class TestCreateVaultAssetResponse(unittest.TestCase): + """CreateVaultAssetResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CreateVaultAssetResponse: + """Test CreateVaultAssetResponse + 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 `CreateVaultAssetResponse` + """ + model = CreateVaultAssetResponse() + if include_optional: + return CreateVaultAssetResponse( + id = '', + address = '', + legacy_address = '', + enterprise_address = '', + tag = '', + eos_account_name = '', + status = '', + activation_tx_id = '' + ) + else: + return CreateVaultAssetResponse( + ) + """ + + def testCreateVaultAssetResponse(self): + """Test CreateVaultAssetResponse""" + # 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/test/test_create_wallet_request.py b/test/test_create_wallet_request.py new file mode 100644 index 00000000..7a61d6e9 --- /dev/null +++ b/test/test_create_wallet_request.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.create_wallet_request import CreateWalletRequest + + +class TestCreateWalletRequest(unittest.TestCase): + """CreateWalletRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CreateWalletRequest: + """Test CreateWalletRequest + 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 `CreateWalletRequest` + """ + model = CreateWalletRequest() + if include_optional: + return CreateWalletRequest( + name = '', + customer_ref_id = '' + ) + else: + return CreateWalletRequest( + ) + """ + + def testCreateWalletRequest(self): + """Test CreateWalletRequest""" + # 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/test/test_create_workflow_execution_request_params_inner.py b/test/test_create_workflow_execution_request_params_inner.py new file mode 100644 index 00000000..4614a362 --- /dev/null +++ b/test/test_create_workflow_execution_request_params_inner.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.create_workflow_execution_request_params_inner import ( + CreateWorkflowExecutionRequestParamsInner, +) + + +class TestCreateWorkflowExecutionRequestParamsInner(unittest.TestCase): + """CreateWorkflowExecutionRequestParamsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance( + self, include_optional + ) -> CreateWorkflowExecutionRequestParamsInner: + """Test CreateWorkflowExecutionRequestParamsInner + 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 `CreateWorkflowExecutionRequestParamsInner` + """ + model = CreateWorkflowExecutionRequestParamsInner() + if include_optional: + return CreateWorkflowExecutionRequestParamsInner( + config_operation_id = '', + execution_params = fireblocks_client.models.disbursement_operation_execution_params_execution_params.DisbursementOperationExecutionParams_executionParams( + amount = '', + payment_account = fireblocks_client.models.account.Account( + account_id = '', + account_type = 'EXCHANGE_ACCOUNT', ), + instruction_set = [ + null + ], ) + ) + else: + return CreateWorkflowExecutionRequestParamsInner( + config_operation_id = '', + ) + """ + + def testCreateWorkflowExecutionRequestParamsInner(self): + """Test CreateWorkflowExecutionRequestParamsInner""" + # 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/test/test_custom_routing_dest.py b/test/test_custom_routing_dest.py new file mode 100644 index 00000000..5186e686 --- /dev/null +++ b/test/test_custom_routing_dest.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.custom_routing_dest import CustomRoutingDest + + +class TestCustomRoutingDest(unittest.TestCase): + """CustomRoutingDest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CustomRoutingDest: + """Test CustomRoutingDest + 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 `CustomRoutingDest` + """ + model = CustomRoutingDest() + if include_optional: + return CustomRoutingDest( + scheme = 'CUSTOM', + dst_type = 'FIAT_ACCOUNT', + dst_id = '' + ) + else: + return CustomRoutingDest( + scheme = 'CUSTOM', + dst_type = 'FIAT_ACCOUNT', + dst_id = '', + ) + """ + + def testCustomRoutingDest(self): + """Test CustomRoutingDest""" + # 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/test/test_default_network_routing_dest.py b/test/test_default_network_routing_dest.py new file mode 100644 index 00000000..ece91236 --- /dev/null +++ b/test/test_default_network_routing_dest.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.default_network_routing_dest import ( + DefaultNetworkRoutingDest, +) + + +class TestDefaultNetworkRoutingDest(unittest.TestCase): + """DefaultNetworkRoutingDest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DefaultNetworkRoutingDest: + """Test DefaultNetworkRoutingDest + 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 `DefaultNetworkRoutingDest` + """ + model = DefaultNetworkRoutingDest() + if include_optional: + return DefaultNetworkRoutingDest( + scheme = 'DEFAULT' + ) + else: + return DefaultNetworkRoutingDest( + scheme = 'DEFAULT', + ) + """ + + def testDefaultNetworkRoutingDest(self): + """Test DefaultNetworkRoutingDest""" + # 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/test/test_delegation_dto.py b/test/test_delegation_dto.py new file mode 100644 index 00000000..097f9eab --- /dev/null +++ b/test/test_delegation_dto.py @@ -0,0 +1,86 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.delegation_dto import DelegationDto + + +class TestDelegationDto(unittest.TestCase): + """DelegationDto unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DelegationDto: + """Test DelegationDto + 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 `DelegationDto` + """ + model = DelegationDto() + if include_optional: + return DelegationDto( + id = 'b70701f4-d7b1-4795-a8ee-b09cdb5b850a', + vault_account_id = '2', + validator_name = 'FwR3P......tT59f', + provider_name = 'Kiln', + chain_descriptor = 'SOL', + amount = '0.05', + rewards_amount = '0.000856038', + date_created = '2023-07-13T15:55:34.256Z', + status = 'active', + related_transactions = [{"txId":"b70601f4-d7b1-4795-a8ee-b09cdb4r850d","completed":true},{"txId":"c80601f4-d7b1-4795-a8ee-b09cdb5b450c","completed":false}], + validator_address = 'FwR3PbjS5iyqzLiLugrBqKSa5EKZ4vK9SKs7eQXtT59f', + provider_id = 'kiln', + available_actions = ["unstake"], + in_progress = True, + in_progress_tx_id = 'c80601f4-d7b1-4795-a8ee-b09cdb5b450c', + blockchain_position_info = fireblocks_client.models.solana_blockchain_data_dto.SolanaBlockchainDataDto( + stake_account_address = '3Ru67FyzMTcdENmmRL4Eve4dtPd6AdpuypR21q5EQCdq', ) + ) + else: + return DelegationDto( + id = 'b70701f4-d7b1-4795-a8ee-b09cdb5b850a', + vault_account_id = '2', + validator_name = 'FwR3P......tT59f', + provider_name = 'Kiln', + chain_descriptor = 'SOL', + amount = '0.05', + rewards_amount = '0.000856038', + date_created = '2023-07-13T15:55:34.256Z', + status = 'active', + related_transactions = [{"txId":"b70601f4-d7b1-4795-a8ee-b09cdb4r850d","completed":true},{"txId":"c80601f4-d7b1-4795-a8ee-b09cdb5b450c","completed":false}], + validator_address = 'FwR3PbjS5iyqzLiLugrBqKSa5EKZ4vK9SKs7eQXtT59f', + provider_id = 'kiln', + available_actions = ["unstake"], + in_progress = True, + blockchain_position_info = fireblocks_client.models.solana_blockchain_data_dto.SolanaBlockchainDataDto( + stake_account_address = '3Ru67FyzMTcdENmmRL4Eve4dtPd6AdpuypR21q5EQCdq', ), + ) + """ + + def testDelegationDto(self): + """Test DelegationDto""" + # 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/test/test_delegation_summary_dto.py b/test/test_delegation_summary_dto.py new file mode 100644 index 00000000..e7794de6 --- /dev/null +++ b/test/test_delegation_summary_dto.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.delegation_summary_dto import DelegationSummaryDto + + +class TestDelegationSummaryDto(unittest.TestCase): + """DelegationSummaryDto unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DelegationSummaryDto: + """Test DelegationSummaryDto + 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 `DelegationSummaryDto` + """ + model = DelegationSummaryDto() + if include_optional: + return DelegationSummaryDto( + active = [ + fireblocks_client.models.amount_and_chain_descriptor.AmountAndChainDescriptor( + chain_descriptor = 'ETH', + amount = '32.007149606', ) + ], + inactive = [ + fireblocks_client.models.amount_and_chain_descriptor.AmountAndChainDescriptor( + chain_descriptor = 'ETH', + amount = '32.007149606', ) + ], + rewards_amount = [ + fireblocks_client.models.amount_and_chain_descriptor.AmountAndChainDescriptor( + chain_descriptor = 'ETH', + amount = '32.007149606', ) + ], + total_staked = [ + fireblocks_client.models.amount_and_chain_descriptor.AmountAndChainDescriptor( + chain_descriptor = 'ETH', + amount = '32.007149606', ) + ] + ) + else: + return DelegationSummaryDto( + active = [ + fireblocks_client.models.amount_and_chain_descriptor.AmountAndChainDescriptor( + chain_descriptor = 'ETH', + amount = '32.007149606', ) + ], + inactive = [ + fireblocks_client.models.amount_and_chain_descriptor.AmountAndChainDescriptor( + chain_descriptor = 'ETH', + amount = '32.007149606', ) + ], + rewards_amount = [ + fireblocks_client.models.amount_and_chain_descriptor.AmountAndChainDescriptor( + chain_descriptor = 'ETH', + amount = '32.007149606', ) + ], + total_staked = [ + fireblocks_client.models.amount_and_chain_descriptor.AmountAndChainDescriptor( + chain_descriptor = 'ETH', + amount = '32.007149606', ) + ], + ) + """ + + def testDelegationSummaryDto(self): + """Test DelegationSummaryDto""" + # 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/test/test_delete_network_connection_response.py b/test/test_delete_network_connection_response.py new file mode 100644 index 00000000..8a7dcd0c --- /dev/null +++ b/test/test_delete_network_connection_response.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.delete_network_connection_response import ( + DeleteNetworkConnectionResponse, +) + + +class TestDeleteNetworkConnectionResponse(unittest.TestCase): + """DeleteNetworkConnectionResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DeleteNetworkConnectionResponse: + """Test DeleteNetworkConnectionResponse + 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 `DeleteNetworkConnectionResponse` + """ + model = DeleteNetworkConnectionResponse() + if include_optional: + return DeleteNetworkConnectionResponse( + success = True + ) + else: + return DeleteNetworkConnectionResponse( + success = True, + ) + """ + + def testDeleteNetworkConnectionResponse(self): + """Test DeleteNetworkConnectionResponse""" + # 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/test/test_delete_network_id_response.py b/test/test_delete_network_id_response.py new file mode 100644 index 00000000..9f6a2ebb --- /dev/null +++ b/test/test_delete_network_id_response.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.delete_network_id_response import DeleteNetworkIdResponse + + +class TestDeleteNetworkIdResponse(unittest.TestCase): + """DeleteNetworkIdResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DeleteNetworkIdResponse: + """Test DeleteNetworkIdResponse + 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 `DeleteNetworkIdResponse` + """ + model = DeleteNetworkIdResponse() + if include_optional: + return DeleteNetworkIdResponse( + success = True + ) + else: + return DeleteNetworkIdResponse( + success = True, + ) + """ + + def testDeleteNetworkIdResponse(self): + """Test DeleteNetworkIdResponse""" + # 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/test/test_deployed_contract_response_dto.py b/test/test_deployed_contract_response_dto.py new file mode 100644 index 00000000..44573285 --- /dev/null +++ b/test/test_deployed_contract_response_dto.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.deployed_contract_response_dto import ( + DeployedContractResponseDto, +) + + +class TestDeployedContractResponseDto(unittest.TestCase): + """DeployedContractResponseDto unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DeployedContractResponseDto: + """Test DeployedContractResponseDto + 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 `DeployedContractResponseDto` + """ + model = DeployedContractResponseDto() + if include_optional: + return DeployedContractResponseDto( + id = 'b70701f4-d7b1-4795-a8ee-b09cdb5b850d', + contract_address = '0xC2c4e1Db41F0bB97996D0eD0542D2170d146FB66', + contract_template_id = 'b70701f4-d7b1-4795-a8ee-b09cdb5b850d', + vault_account_id = '0', + blockchain_id = '' + ) + else: + return DeployedContractResponseDto( + id = 'b70701f4-d7b1-4795-a8ee-b09cdb5b850d', + contract_address = '0xC2c4e1Db41F0bB97996D0eD0542D2170d146FB66', + contract_template_id = 'b70701f4-d7b1-4795-a8ee-b09cdb5b850d', + blockchain_id = '', + ) + """ + + def testDeployedContractResponseDto(self): + """Test DeployedContractResponseDto""" + # 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/test/test_deployed_contracts_api.py b/test/test_deployed_contracts_api.py new file mode 100644 index 00000000..d653c8a8 --- /dev/null +++ b/test/test_deployed_contracts_api.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.api.deployed_contracts_api import DeployedContractsApi + + +class TestDeployedContractsApi(unittest.TestCase): + """DeployedContractsApi unit test stubs""" + + def setUp(self) -> None: + self.api = DeployedContractsApi() + + def tearDown(self) -> None: + pass + + def test_get_deployed_contract_by_address(self) -> None: + """Test case for get_deployed_contract_by_address + + Return deployed contract data + """ + pass + + def test_get_deployed_contract_by_id(self) -> None: + """Test case for get_deployed_contract_by_id + + Return deployed contract data by id + """ + pass + + def test_get_deployed_contracts(self) -> None: + """Test case for get_deployed_contracts + + List deployed contracts data + """ + pass + + +if __name__ == "__main__": + unittest.main() diff --git a/test/test_deployed_contracts_paginated_response.py b/test/test_deployed_contracts_paginated_response.py new file mode 100644 index 00000000..a06788fd --- /dev/null +++ b/test/test_deployed_contracts_paginated_response.py @@ -0,0 +1,70 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.deployed_contracts_paginated_response import ( + DeployedContractsPaginatedResponse, +) + + +class TestDeployedContractsPaginatedResponse(unittest.TestCase): + """DeployedContractsPaginatedResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DeployedContractsPaginatedResponse: + """Test DeployedContractsPaginatedResponse + 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 `DeployedContractsPaginatedResponse` + """ + model = DeployedContractsPaginatedResponse() + if include_optional: + return DeployedContractsPaginatedResponse( + data = [ + fireblocks_client.models.lean_deployed_contract_response_dto.LeanDeployedContractResponseDto( + id = 'b70701f4-d7b1-4795-a8ee-b09cdb5b850d', + contract_address = '0xC2c4e1Db41F0bB97996D0eD0542D2170d146FB66', + contract_template_id = 'b70701f4-d7b1-4795-a8ee-b09cdb5b850d', + blockchain_id = '', ) + ], + next = 'eJ0eXAiOiJKV1QiLCJhbGcOiJIUzI1NiJ9' + ) + else: + return DeployedContractsPaginatedResponse( + data = [ + fireblocks_client.models.lean_deployed_contract_response_dto.LeanDeployedContractResponseDto( + id = 'b70701f4-d7b1-4795-a8ee-b09cdb5b850d', + contract_address = '0xC2c4e1Db41F0bB97996D0eD0542D2170d146FB66', + contract_template_id = 'b70701f4-d7b1-4795-a8ee-b09cdb5b850d', + blockchain_id = '', ) + ], + ) + """ + + def testDeployedContractsPaginatedResponse(self): + """Test DeployedContractsPaginatedResponse""" + # 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/test/test_deposit_funds_from_linked_dda_response.py b/test/test_deposit_funds_from_linked_dda_response.py new file mode 100644 index 00000000..6589af51 --- /dev/null +++ b/test/test_deposit_funds_from_linked_dda_response.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.deposit_funds_from_linked_dda_response import ( + DepositFundsFromLinkedDDAResponse, +) + + +class TestDepositFundsFromLinkedDDAResponse(unittest.TestCase): + """DepositFundsFromLinkedDDAResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DepositFundsFromLinkedDDAResponse: + """Test DepositFundsFromLinkedDDAResponse + 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 `DepositFundsFromLinkedDDAResponse` + """ + model = DepositFundsFromLinkedDDAResponse() + if include_optional: + return DepositFundsFromLinkedDDAResponse( + success = True + ) + else: + return DepositFundsFromLinkedDDAResponse( + success = True, + ) + """ + + def testDepositFundsFromLinkedDDAResponse(self): + """Test DepositFundsFromLinkedDDAResponse""" + # 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/test/test_destination.py b/test/test_destination.py new file mode 100644 index 00000000..3c197826 --- /dev/null +++ b/test/test_destination.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.destination import Destination + + +class TestDestination(unittest.TestCase): + """Destination unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> Destination: + """Test Destination + 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 `Destination` + """ + model = Destination() + if include_optional: + return Destination( + account_id = '', + account_type = 'EXCHANGE_ACCOUNT', + one_time_address = '', + tag = '' + ) + else: + return Destination( + account_id = '', + account_type = 'EXCHANGE_ACCOUNT', + one_time_address = '', + ) + """ + + def testDestination(self): + """Test Destination""" + # 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/test/test_destination_transfer_peer_path.py b/test/test_destination_transfer_peer_path.py new file mode 100644 index 00000000..2e8a72d2 --- /dev/null +++ b/test/test_destination_transfer_peer_path.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.destination_transfer_peer_path import ( + DestinationTransferPeerPath, +) + + +class TestDestinationTransferPeerPath(unittest.TestCase): + """DestinationTransferPeerPath unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DestinationTransferPeerPath: + """Test DestinationTransferPeerPath + 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 `DestinationTransferPeerPath` + """ + model = DestinationTransferPeerPath() + if include_optional: + return DestinationTransferPeerPath( + type = 'VAULT_ACCOUNT', + sub_type = 'BINANCE', + id = '', + name = '', + wallet_id = '', + one_time_address = fireblocks_client.models.one_time_address.OneTimeAddress( + address = '', + tag = '', ) + ) + else: + return DestinationTransferPeerPath( + type = 'VAULT_ACCOUNT', + ) + """ + + def testDestinationTransferPeerPath(self): + """Test DestinationTransferPeerPath""" + # 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/test/test_destination_transfer_peer_path_response.py b/test/test_destination_transfer_peer_path_response.py new file mode 100644 index 00000000..926f5bc7 --- /dev/null +++ b/test/test_destination_transfer_peer_path_response.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.destination_transfer_peer_path_response import ( + DestinationTransferPeerPathResponse, +) + + +class TestDestinationTransferPeerPathResponse(unittest.TestCase): + """DestinationTransferPeerPathResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DestinationTransferPeerPathResponse: + """Test DestinationTransferPeerPathResponse + 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 `DestinationTransferPeerPathResponse` + """ + model = DestinationTransferPeerPathResponse() + if include_optional: + return DestinationTransferPeerPathResponse( + type = 'VAULT_ACCOUNT', + sub_type = '', + id = '', + name = '', + wallet_id = '' + ) + else: + return DestinationTransferPeerPathResponse( + type = 'VAULT_ACCOUNT', + ) + """ + + def testDestinationTransferPeerPathResponse(self): + """Test DestinationTransferPeerPathResponse""" + # 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/test/test_disbursement_amount_instruction.py b/test/test_disbursement_amount_instruction.py new file mode 100644 index 00000000..a5aa7486 --- /dev/null +++ b/test/test_disbursement_amount_instruction.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.disbursement_amount_instruction import ( + DisbursementAmountInstruction, +) + + +class TestDisbursementAmountInstruction(unittest.TestCase): + """DisbursementAmountInstruction unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DisbursementAmountInstruction: + """Test DisbursementAmountInstruction + 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 `DisbursementAmountInstruction` + """ + model = DisbursementAmountInstruction() + if include_optional: + return DisbursementAmountInstruction( + payee_account = None, + asset_id = '', + amount = '' + ) + else: + return DisbursementAmountInstruction( + payee_account = None, + asset_id = '', + amount = '', + ) + """ + + def testDisbursementAmountInstruction(self): + """Test DisbursementAmountInstruction""" + # 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/test/test_disbursement_config_operation.py b/test/test_disbursement_config_operation.py new file mode 100644 index 00000000..098dd405 --- /dev/null +++ b/test/test_disbursement_config_operation.py @@ -0,0 +1,80 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.disbursement_config_operation import ( + DisbursementConfigOperation, +) + + +class TestDisbursementConfigOperation(unittest.TestCase): + """DisbursementConfigOperation unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DisbursementConfigOperation: + """Test DisbursementConfigOperation + 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 `DisbursementConfigOperation` + """ + model = DisbursementConfigOperation() + if include_optional: + return DisbursementConfigOperation( + operation_id = '', + type = 'DISBURSEMENT', + params = fireblocks_client.models.disbursement_operation_config_params.DisbursementOperationConfigParams( + payment_account = fireblocks_client.models.account.Account( + account_id = '', + account_type = 'EXCHANGE_ACCOUNT', ), + instruction_set = [ + null + ], ), + status = 'PENDING', + validation_failure = fireblocks_client.models.disbursement_validation_failure.DisbursementValidationFailure( + reason = 'ACCOUNT_NOT_FOUND', + data = { + 'key' : null + }, ) + ) + else: + return DisbursementConfigOperation( + operation_id = '', + type = 'DISBURSEMENT', + params = fireblocks_client.models.disbursement_operation_config_params.DisbursementOperationConfigParams( + payment_account = fireblocks_client.models.account.Account( + account_id = '', + account_type = 'EXCHANGE_ACCOUNT', ), + instruction_set = [ + null + ], ), + status = 'PENDING', + ) + """ + + def testDisbursementConfigOperation(self): + """Test DisbursementConfigOperation""" + # 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/test/test_disbursement_instruction.py b/test/test_disbursement_instruction.py new file mode 100644 index 00000000..d1c2b3a5 --- /dev/null +++ b/test/test_disbursement_instruction.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.disbursement_instruction import DisbursementInstruction + + +class TestDisbursementInstruction(unittest.TestCase): + """DisbursementInstruction unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DisbursementInstruction: + """Test DisbursementInstruction + 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 `DisbursementInstruction` + """ + model = DisbursementInstruction() + if include_optional: + return DisbursementInstruction( + payee_account = None, + asset_id = '', + amount = '', + percentage = '' + ) + else: + return DisbursementInstruction( + payee_account = None, + asset_id = '', + amount = '', + percentage = '', + ) + """ + + def testDisbursementInstruction(self): + """Test DisbursementInstruction""" + # 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/test/test_disbursement_instruction_output.py b/test/test_disbursement_instruction_output.py new file mode 100644 index 00000000..6329f5dd --- /dev/null +++ b/test/test_disbursement_instruction_output.py @@ -0,0 +1,69 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.disbursement_instruction_output import ( + DisbursementInstructionOutput, +) + + +class TestDisbursementInstructionOutput(unittest.TestCase): + """DisbursementInstructionOutput unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DisbursementInstructionOutput: + """Test DisbursementInstructionOutput + 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 `DisbursementInstructionOutput` + """ + model = DisbursementInstructionOutput() + if include_optional: + return DisbursementInstructionOutput( + amount = fireblocks_client.models.asset_amount.AssetAmount( + amount = '', + asset_id = '', ), + fee = fireblocks_client.models.asset_amount.AssetAmount( + amount = '', + asset_id = '', ), + payee_account = None + ) + else: + return DisbursementInstructionOutput( + amount = fireblocks_client.models.asset_amount.AssetAmount( + amount = '', + asset_id = '', ), + fee = fireblocks_client.models.asset_amount.AssetAmount( + amount = '', + asset_id = '', ), + payee_account = None, + ) + """ + + def testDisbursementInstructionOutput(self): + """Test DisbursementInstructionOutput""" + # 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/test/test_disbursement_operation_config_params.py b/test/test_disbursement_operation_config_params.py new file mode 100644 index 00000000..d381b5b1 --- /dev/null +++ b/test/test_disbursement_operation_config_params.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.disbursement_operation_config_params import ( + DisbursementOperationConfigParams, +) + + +class TestDisbursementOperationConfigParams(unittest.TestCase): + """DisbursementOperationConfigParams unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DisbursementOperationConfigParams: + """Test DisbursementOperationConfigParams + 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 `DisbursementOperationConfigParams` + """ + model = DisbursementOperationConfigParams() + if include_optional: + return DisbursementOperationConfigParams( + payment_account = fireblocks_client.models.account.Account( + account_id = '', + account_type = 'EXCHANGE_ACCOUNT', ), + instruction_set = [ + null + ] + ) + else: + return DisbursementOperationConfigParams( + instruction_set = [ + null + ], + ) + """ + + def testDisbursementOperationConfigParams(self): + """Test DisbursementOperationConfigParams""" + # 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/test/test_disbursement_operation_execution.py b/test/test_disbursement_operation_execution.py new file mode 100644 index 00000000..c5374272 --- /dev/null +++ b/test/test_disbursement_operation_execution.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.disbursement_operation_execution import ( + DisbursementOperationExecution, +) + + +class TestDisbursementOperationExecution(unittest.TestCase): + """DisbursementOperationExecution unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DisbursementOperationExecution: + """Test DisbursementOperationExecution + 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 `DisbursementOperationExecution` + """ + model = DisbursementOperationExecution() + if include_optional: + return DisbursementOperationExecution( + input = fireblocks_client.models.disbursement_operation_input.DisbursementOperationInput( + amount = '', + payment_account = fireblocks_client.models.account.Account( + account_id = '', + account_type = 'EXCHANGE_ACCOUNT', ), + instruction_set = [ + null + ], ), + output = fireblocks_client.models.disbursement_operation_execution_output.DisbursementOperationExecutionOutput( + instruction_set = [ + fireblocks_client.models.disbursement_instruction_output.DisbursementInstructionOutput( + amount = fireblocks_client.models.asset_amount.AssetAmount( + amount = '', + asset_id = '', ), + fee = fireblocks_client.models.asset_amount.AssetAmount( + amount = '', + asset_id = '', ), + payee_account = null, ) + ], ), + payout_id = '', + started_at = 1.337, + finished_at = 1.337, + failure = fireblocks_client.models.operation_execution_failure.OperationExecutionFailure( + reason = '', + data = { + 'key' : null + }, ) + ) + else: + return DisbursementOperationExecution( + input = fireblocks_client.models.disbursement_operation_input.DisbursementOperationInput( + amount = '', + payment_account = fireblocks_client.models.account.Account( + account_id = '', + account_type = 'EXCHANGE_ACCOUNT', ), + instruction_set = [ + null + ], ), + started_at = 1.337, + ) + """ + + def testDisbursementOperationExecution(self): + """Test DisbursementOperationExecution""" + # 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/test/test_disbursement_operation_execution_output.py b/test/test_disbursement_operation_execution_output.py new file mode 100644 index 00000000..ac3a2217 --- /dev/null +++ b/test/test_disbursement_operation_execution_output.py @@ -0,0 +1,75 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.disbursement_operation_execution_output import ( + DisbursementOperationExecutionOutput, +) + + +class TestDisbursementOperationExecutionOutput(unittest.TestCase): + """DisbursementOperationExecutionOutput unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DisbursementOperationExecutionOutput: + """Test DisbursementOperationExecutionOutput + 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 `DisbursementOperationExecutionOutput` + """ + model = DisbursementOperationExecutionOutput() + if include_optional: + return DisbursementOperationExecutionOutput( + instruction_set = [ + fireblocks_client.models.disbursement_instruction_output.DisbursementInstructionOutput( + amount = fireblocks_client.models.asset_amount.AssetAmount( + amount = '', + asset_id = '', ), + fee = fireblocks_client.models.asset_amount.AssetAmount( + amount = '', + asset_id = '', ), + payee_account = null, ) + ] + ) + else: + return DisbursementOperationExecutionOutput( + instruction_set = [ + fireblocks_client.models.disbursement_instruction_output.DisbursementInstructionOutput( + amount = fireblocks_client.models.asset_amount.AssetAmount( + amount = '', + asset_id = '', ), + fee = fireblocks_client.models.asset_amount.AssetAmount( + amount = '', + asset_id = '', ), + payee_account = null, ) + ], + ) + """ + + def testDisbursementOperationExecutionOutput(self): + """Test DisbursementOperationExecutionOutput""" + # 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/test/test_disbursement_operation_execution_params.py b/test/test_disbursement_operation_execution_params.py new file mode 100644 index 00000000..58cf641f --- /dev/null +++ b/test/test_disbursement_operation_execution_params.py @@ -0,0 +1,65 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.disbursement_operation_execution_params import ( + DisbursementOperationExecutionParams, +) + + +class TestDisbursementOperationExecutionParams(unittest.TestCase): + """DisbursementOperationExecutionParams unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DisbursementOperationExecutionParams: + """Test DisbursementOperationExecutionParams + 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 `DisbursementOperationExecutionParams` + """ + model = DisbursementOperationExecutionParams() + if include_optional: + return DisbursementOperationExecutionParams( + config_operation_id = '', + execution_params = fireblocks_client.models.disbursement_operation_execution_params_execution_params.DisbursementOperationExecutionParams_executionParams( + amount = '', + payment_account = fireblocks_client.models.account.Account( + account_id = '', + account_type = 'EXCHANGE_ACCOUNT', ), + instruction_set = [ + null + ], ) + ) + else: + return DisbursementOperationExecutionParams( + config_operation_id = '', + ) + """ + + def testDisbursementOperationExecutionParams(self): + """Test DisbursementOperationExecutionParams""" + # 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/test/test_disbursement_operation_execution_params_execution_params.py b/test/test_disbursement_operation_execution_params_execution_params.py new file mode 100644 index 00000000..05bb9f06 --- /dev/null +++ b/test/test_disbursement_operation_execution_params_execution_params.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.disbursement_operation_execution_params_execution_params import ( + DisbursementOperationExecutionParamsExecutionParams, +) + + +class TestDisbursementOperationExecutionParamsExecutionParams(unittest.TestCase): + """DisbursementOperationExecutionParamsExecutionParams unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance( + self, include_optional + ) -> DisbursementOperationExecutionParamsExecutionParams: + """Test DisbursementOperationExecutionParamsExecutionParams + 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 `DisbursementOperationExecutionParamsExecutionParams` + """ + model = DisbursementOperationExecutionParamsExecutionParams() + if include_optional: + return DisbursementOperationExecutionParamsExecutionParams( + amount = '', + payment_account = fireblocks_client.models.account.Account( + account_id = '', + account_type = 'EXCHANGE_ACCOUNT', ), + instruction_set = [ + null + ] + ) + else: + return DisbursementOperationExecutionParamsExecutionParams( + ) + """ + + def testDisbursementOperationExecutionParamsExecutionParams(self): + """Test DisbursementOperationExecutionParamsExecutionParams""" + # 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/test/test_disbursement_operation_input.py b/test/test_disbursement_operation_input.py new file mode 100644 index 00000000..16ef1f7b --- /dev/null +++ b/test/test_disbursement_operation_input.py @@ -0,0 +1,68 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.disbursement_operation_input import ( + DisbursementOperationInput, +) + + +class TestDisbursementOperationInput(unittest.TestCase): + """DisbursementOperationInput unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DisbursementOperationInput: + """Test DisbursementOperationInput + 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 `DisbursementOperationInput` + """ + model = DisbursementOperationInput() + if include_optional: + return DisbursementOperationInput( + amount = '', + payment_account = fireblocks_client.models.account.Account( + account_id = '', + account_type = 'EXCHANGE_ACCOUNT', ), + instruction_set = [ + null + ] + ) + else: + return DisbursementOperationInput( + payment_account = fireblocks_client.models.account.Account( + account_id = '', + account_type = 'EXCHANGE_ACCOUNT', ), + instruction_set = [ + null + ], + ) + """ + + def testDisbursementOperationInput(self): + """Test DisbursementOperationInput""" + # 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/test/test_disbursement_operation_preview.py b/test/test_disbursement_operation_preview.py new file mode 100644 index 00000000..10e0f1f0 --- /dev/null +++ b/test/test_disbursement_operation_preview.py @@ -0,0 +1,80 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.disbursement_operation_preview import ( + DisbursementOperationPreview, +) + + +class TestDisbursementOperationPreview(unittest.TestCase): + """DisbursementOperationPreview unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DisbursementOperationPreview: + """Test DisbursementOperationPreview + 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 `DisbursementOperationPreview` + """ + model = DisbursementOperationPreview() + if include_optional: + return DisbursementOperationPreview( + input = fireblocks_client.models.disbursement_operation_input.DisbursementOperationInput( + amount = '', + payment_account = fireblocks_client.models.account.Account( + account_id = '', + account_type = 'EXCHANGE_ACCOUNT', ), + instruction_set = [ + null + ], ), + output = fireblocks_client.models.disbursement_operation_preview_output.DisbursementOperationPreviewOutput( + instruction_set = [ + null + ], ), + failure = fireblocks_client.models.operation_execution_failure.OperationExecutionFailure( + reason = '', + data = { + 'key' : null + }, ) + ) + else: + return DisbursementOperationPreview( + input = fireblocks_client.models.disbursement_operation_input.DisbursementOperationInput( + amount = '', + payment_account = fireblocks_client.models.account.Account( + account_id = '', + account_type = 'EXCHANGE_ACCOUNT', ), + instruction_set = [ + null + ], ), + ) + """ + + def testDisbursementOperationPreview(self): + """Test DisbursementOperationPreview""" + # 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/test/test_disbursement_operation_preview_output.py b/test/test_disbursement_operation_preview_output.py new file mode 100644 index 00000000..645d4fa9 --- /dev/null +++ b/test/test_disbursement_operation_preview_output.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.disbursement_operation_preview_output import ( + DisbursementOperationPreviewOutput, +) + + +class TestDisbursementOperationPreviewOutput(unittest.TestCase): + """DisbursementOperationPreviewOutput unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DisbursementOperationPreviewOutput: + """Test DisbursementOperationPreviewOutput + 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 `DisbursementOperationPreviewOutput` + """ + model = DisbursementOperationPreviewOutput() + if include_optional: + return DisbursementOperationPreviewOutput( + instruction_set = [ + null + ] + ) + else: + return DisbursementOperationPreviewOutput( + instruction_set = [ + null + ], + ) + """ + + def testDisbursementOperationPreviewOutput(self): + """Test DisbursementOperationPreviewOutput""" + # 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/test/test_disbursement_operation_preview_output_instruction_set_inner.py b/test/test_disbursement_operation_preview_output_instruction_set_inner.py new file mode 100644 index 00000000..be10f2c4 --- /dev/null +++ b/test/test_disbursement_operation_preview_output_instruction_set_inner.py @@ -0,0 +1,73 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.disbursement_operation_preview_output_instruction_set_inner import ( + DisbursementOperationPreviewOutputInstructionSetInner, +) + + +class TestDisbursementOperationPreviewOutputInstructionSetInner(unittest.TestCase): + """DisbursementOperationPreviewOutputInstructionSetInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance( + self, include_optional + ) -> DisbursementOperationPreviewOutputInstructionSetInner: + """Test DisbursementOperationPreviewOutputInstructionSetInner + 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 `DisbursementOperationPreviewOutputInstructionSetInner` + """ + model = DisbursementOperationPreviewOutputInstructionSetInner() + if include_optional: + return DisbursementOperationPreviewOutputInstructionSetInner( + amount = fireblocks_client.models.asset_amount.AssetAmount( + amount = '', + asset_id = '', ), + fee = fireblocks_client.models.asset_amount.AssetAmount( + amount = '', + asset_id = '', ), + payee_account = None, + time_seconds = 1.337 + ) + else: + return DisbursementOperationPreviewOutputInstructionSetInner( + amount = fireblocks_client.models.asset_amount.AssetAmount( + amount = '', + asset_id = '', ), + fee = fireblocks_client.models.asset_amount.AssetAmount( + amount = '', + asset_id = '', ), + payee_account = None, + time_seconds = 1.337, + ) + """ + + def testDisbursementOperationPreviewOutputInstructionSetInner(self): + """Test DisbursementOperationPreviewOutputInstructionSetInner""" + # 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/test/test_disbursement_operation_type.py b/test/test_disbursement_operation_type.py new file mode 100644 index 00000000..44cc8930 --- /dev/null +++ b/test/test_disbursement_operation_type.py @@ -0,0 +1,38 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.disbursement_operation_type import ( + DisbursementOperationType, +) + + +class TestDisbursementOperationType(unittest.TestCase): + """DisbursementOperationType unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDisbursementOperationType(self): + """Test DisbursementOperationType""" + # inst = DisbursementOperationType() + + +if __name__ == "__main__": + unittest.main() diff --git a/test/test_disbursement_percentage_instruction.py b/test/test_disbursement_percentage_instruction.py new file mode 100644 index 00000000..01074c28 --- /dev/null +++ b/test/test_disbursement_percentage_instruction.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.disbursement_percentage_instruction import ( + DisbursementPercentageInstruction, +) + + +class TestDisbursementPercentageInstruction(unittest.TestCase): + """DisbursementPercentageInstruction unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DisbursementPercentageInstruction: + """Test DisbursementPercentageInstruction + 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 `DisbursementPercentageInstruction` + """ + model = DisbursementPercentageInstruction() + if include_optional: + return DisbursementPercentageInstruction( + payee_account = None, + asset_id = '', + percentage = '' + ) + else: + return DisbursementPercentageInstruction( + payee_account = None, + asset_id = '', + percentage = '', + ) + """ + + def testDisbursementPercentageInstruction(self): + """Test DisbursementPercentageInstruction""" + # 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/test/test_disbursement_validation_failure.py b/test/test_disbursement_validation_failure.py new file mode 100644 index 00000000..a9bfdeb7 --- /dev/null +++ b/test/test_disbursement_validation_failure.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.disbursement_validation_failure import ( + DisbursementValidationFailure, +) + + +class TestDisbursementValidationFailure(unittest.TestCase): + """DisbursementValidationFailure unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DisbursementValidationFailure: + """Test DisbursementValidationFailure + 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 `DisbursementValidationFailure` + """ + model = DisbursementValidationFailure() + if include_optional: + return DisbursementValidationFailure( + reason = 'ACCOUNT_NOT_FOUND', + data = { + 'key' : null + } + ) + else: + return DisbursementValidationFailure( + reason = 'ACCOUNT_NOT_FOUND', + ) + """ + + def testDisbursementValidationFailure(self): + """Test DisbursementValidationFailure""" + # 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/test/test_dispatch_payout_response.py b/test/test_dispatch_payout_response.py new file mode 100644 index 00000000..b27e3615 --- /dev/null +++ b/test/test_dispatch_payout_response.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.dispatch_payout_response import DispatchPayoutResponse + + +class TestDispatchPayoutResponse(unittest.TestCase): + """DispatchPayoutResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DispatchPayoutResponse: + """Test DispatchPayoutResponse + 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 `DispatchPayoutResponse` + """ + model = DispatchPayoutResponse() + if include_optional: + return DispatchPayoutResponse( + payout_id = '' + ) + else: + return DispatchPayoutResponse( + payout_id = '', + ) + """ + + def testDispatchPayoutResponse(self): + """Test DispatchPayoutResponse""" + # 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/test/test_draft_response.py b/test/test_draft_response.py new file mode 100644 index 00000000..3619e77c --- /dev/null +++ b/test/test_draft_response.py @@ -0,0 +1,191 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.draft_response import DraftResponse + + +class TestDraftResponse(unittest.TestCase): + """DraftResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DraftResponse: + """Test DraftResponse + 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 `DraftResponse` + """ + model = DraftResponse() + if include_optional: + return DraftResponse( + status = '', + rules = [ + fireblocks_client.models.policy_rule.PolicyRule( + operator = '', + operators = fireblocks_client.models.policy_rule_operators.PolicyRule_operators( + wildcard = '*', + users = [ + '' + ], + users_groups = [ + '' + ], + services = [ + '' + ], ), + transaction_type = 'TRANSFER', + designated_signer = '', + designated_signers = fireblocks_client.models.policy_rule_designated_signers.PolicyRule_designatedSigners(), + type = 'TRANSFER', + action = 'ALLOW', + asset = '', + src_type = null, + src_sub_type = null, + src_id = null, + src = fireblocks_client.models.policy_rule_src.PolicyRule_src( + ids = [ + [ + null + ] + ], ), + dst_type = null, + dst_sub_type = null, + dst_id = null, + dst = fireblocks_client.models.policy_rule_dst.PolicyRule_dst(), + dst_address_type = 'WHITELISTED', + amount_currency = 'USD', + amount_scope = 'SINGLE_TX', + amount = null, + period_sec = 1.337, + authorizers = [ + '' + ], + authorizers_count = 1.337, + authorization_groups = fireblocks_client.models.policy_rule_authorization_groups.PolicyRule_authorizationGroups( + logic = 'AND', + allow_operator_as_authorizer = True, + groups = [ + fireblocks_client.models.policy_rule_authorization_groups_groups_inner.PolicyRule_authorizationGroups_groups_inner( + th = 1.337, ) + ], ), + amount_aggregation = fireblocks_client.models.policy_rule_amount_aggregation.PolicyRule_amountAggregation( + src_transfer_peers = 'PER_SINGLE_MATCH', + dst_transfer_peers = 'PER_SINGLE_MATCH', ), + raw_message_signing = fireblocks_client.models.policy_rule_raw_message_signing.PolicyRule_rawMessageSigning( + algorithm = '', + derivation_path = fireblocks_client.models.policy_rule_raw_message_signing_derivation_path.PolicyRule_rawMessageSigning_derivationPath( + path = [ + 1.337 + ], ), ), + apply_for_approve = True, + apply_for_typed_message = True, + external_descriptor = '', ) + ], + draft_id = '', + metadata = fireblocks_client.models.policy_metadata.PolicyMetadata( + edited_by = '', + edited_at = '', + published_by = '', + published_at = '', ) + ) + else: + return DraftResponse( + status = '', + rules = [ + fireblocks_client.models.policy_rule.PolicyRule( + operator = '', + operators = fireblocks_client.models.policy_rule_operators.PolicyRule_operators( + wildcard = '*', + users = [ + '' + ], + users_groups = [ + '' + ], + services = [ + '' + ], ), + transaction_type = 'TRANSFER', + designated_signer = '', + designated_signers = fireblocks_client.models.policy_rule_designated_signers.PolicyRule_designatedSigners(), + type = 'TRANSFER', + action = 'ALLOW', + asset = '', + src_type = null, + src_sub_type = null, + src_id = null, + src = fireblocks_client.models.policy_rule_src.PolicyRule_src( + ids = [ + [ + null + ] + ], ), + dst_type = null, + dst_sub_type = null, + dst_id = null, + dst = fireblocks_client.models.policy_rule_dst.PolicyRule_dst(), + dst_address_type = 'WHITELISTED', + amount_currency = 'USD', + amount_scope = 'SINGLE_TX', + amount = null, + period_sec = 1.337, + authorizers = [ + '' + ], + authorizers_count = 1.337, + authorization_groups = fireblocks_client.models.policy_rule_authorization_groups.PolicyRule_authorizationGroups( + logic = 'AND', + allow_operator_as_authorizer = True, + groups = [ + fireblocks_client.models.policy_rule_authorization_groups_groups_inner.PolicyRule_authorizationGroups_groups_inner( + th = 1.337, ) + ], ), + amount_aggregation = fireblocks_client.models.policy_rule_amount_aggregation.PolicyRule_amountAggregation( + src_transfer_peers = 'PER_SINGLE_MATCH', + dst_transfer_peers = 'PER_SINGLE_MATCH', ), + raw_message_signing = fireblocks_client.models.policy_rule_raw_message_signing.PolicyRule_rawMessageSigning( + algorithm = '', + derivation_path = fireblocks_client.models.policy_rule_raw_message_signing_derivation_path.PolicyRule_rawMessageSigning_derivationPath( + path = [ + 1.337 + ], ), ), + apply_for_approve = True, + apply_for_typed_message = True, + external_descriptor = '', ) + ], + draft_id = '', + metadata = fireblocks_client.models.policy_metadata.PolicyMetadata( + edited_by = '', + edited_at = '', + published_by = '', + published_at = '', ), + ) + """ + + def testDraftResponse(self): + """Test DraftResponse""" + # 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/test/test_draft_review_and_validation_response.py b/test/test_draft_review_and_validation_response.py new file mode 100644 index 00000000..8b668909 --- /dev/null +++ b/test/test_draft_review_and_validation_response.py @@ -0,0 +1,227 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.draft_review_and_validation_response import ( + DraftReviewAndValidationResponse, +) + + +class TestDraftReviewAndValidationResponse(unittest.TestCase): + """DraftReviewAndValidationResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DraftReviewAndValidationResponse: + """Test DraftReviewAndValidationResponse + 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 `DraftReviewAndValidationResponse` + """ + model = DraftReviewAndValidationResponse() + if include_optional: + return DraftReviewAndValidationResponse( + draft_response = fireblocks_client.models.draft_response.DraftResponse( + status = '', + rules = [ + fireblocks_client.models.policy_rule.PolicyRule( + operator = '', + operators = fireblocks_client.models.policy_rule_operators.PolicyRule_operators( + wildcard = '*', + users = [ + '' + ], + users_groups = [ + '' + ], + services = [ + '' + ], ), + transaction_type = 'TRANSFER', + designated_signer = '', + designated_signers = fireblocks_client.models.policy_rule_designated_signers.PolicyRule_designatedSigners(), + type = 'TRANSFER', + action = 'ALLOW', + asset = '', + src_type = null, + src_sub_type = null, + src_id = null, + src = fireblocks_client.models.policy_rule_src.PolicyRule_src( + ids = [ + [ + null + ] + ], ), + dst_type = null, + dst_sub_type = null, + dst_id = null, + dst = fireblocks_client.models.policy_rule_dst.PolicyRule_dst(), + dst_address_type = 'WHITELISTED', + amount_currency = 'USD', + amount_scope = 'SINGLE_TX', + amount = null, + period_sec = 1.337, + authorizers = [ + '' + ], + authorizers_count = 1.337, + authorization_groups = fireblocks_client.models.policy_rule_authorization_groups.PolicyRule_authorizationGroups( + logic = 'AND', + allow_operator_as_authorizer = True, + groups = [ + fireblocks_client.models.policy_rule_authorization_groups_groups_inner.PolicyRule_authorizationGroups_groups_inner( + th = 1.337, ) + ], ), + amount_aggregation = fireblocks_client.models.policy_rule_amount_aggregation.PolicyRule_amountAggregation( + src_transfer_peers = 'PER_SINGLE_MATCH', + dst_transfer_peers = 'PER_SINGLE_MATCH', ), + raw_message_signing = fireblocks_client.models.policy_rule_raw_message_signing.PolicyRule_rawMessageSigning( + algorithm = '', + derivation_path = fireblocks_client.models.policy_rule_raw_message_signing_derivation_path.PolicyRule_rawMessageSigning_derivationPath( + path = [ + 1.337 + ], ), ), + apply_for_approve = True, + apply_for_typed_message = True, + external_descriptor = '', ) + ], + draft_id = '', + metadata = fireblocks_client.models.policy_metadata.PolicyMetadata( + edited_by = '', + edited_at = '', + published_by = '', + published_at = '', ), ), + validation = fireblocks_client.models.policy_validation.PolicyValidation( + status = '', + check_result = fireblocks_client.models.policy_check_result.PolicyCheckResult( + errors = 1.337, + result = [ + fireblocks_client.models.policy_rule_check_result.PolicyRuleCheckResult( + index = 1.337, + status = 'ok', + errors = [ + fireblocks_client.models.policy_rule_error.PolicyRuleError( + error_message = '', + error_code = 1.337, + error_code_name = '', + error_field = 'operator', ) + ], ) + ], ), ) + ) + else: + return DraftReviewAndValidationResponse( + draft_response = fireblocks_client.models.draft_response.DraftResponse( + status = '', + rules = [ + fireblocks_client.models.policy_rule.PolicyRule( + operator = '', + operators = fireblocks_client.models.policy_rule_operators.PolicyRule_operators( + wildcard = '*', + users = [ + '' + ], + users_groups = [ + '' + ], + services = [ + '' + ], ), + transaction_type = 'TRANSFER', + designated_signer = '', + designated_signers = fireblocks_client.models.policy_rule_designated_signers.PolicyRule_designatedSigners(), + type = 'TRANSFER', + action = 'ALLOW', + asset = '', + src_type = null, + src_sub_type = null, + src_id = null, + src = fireblocks_client.models.policy_rule_src.PolicyRule_src( + ids = [ + [ + null + ] + ], ), + dst_type = null, + dst_sub_type = null, + dst_id = null, + dst = fireblocks_client.models.policy_rule_dst.PolicyRule_dst(), + dst_address_type = 'WHITELISTED', + amount_currency = 'USD', + amount_scope = 'SINGLE_TX', + amount = null, + period_sec = 1.337, + authorizers = [ + '' + ], + authorizers_count = 1.337, + authorization_groups = fireblocks_client.models.policy_rule_authorization_groups.PolicyRule_authorizationGroups( + logic = 'AND', + allow_operator_as_authorizer = True, + groups = [ + fireblocks_client.models.policy_rule_authorization_groups_groups_inner.PolicyRule_authorizationGroups_groups_inner( + th = 1.337, ) + ], ), + amount_aggregation = fireblocks_client.models.policy_rule_amount_aggregation.PolicyRule_amountAggregation( + src_transfer_peers = 'PER_SINGLE_MATCH', + dst_transfer_peers = 'PER_SINGLE_MATCH', ), + raw_message_signing = fireblocks_client.models.policy_rule_raw_message_signing.PolicyRule_rawMessageSigning( + algorithm = '', + derivation_path = fireblocks_client.models.policy_rule_raw_message_signing_derivation_path.PolicyRule_rawMessageSigning_derivationPath( + path = [ + 1.337 + ], ), ), + apply_for_approve = True, + apply_for_typed_message = True, + external_descriptor = '', ) + ], + draft_id = '', + metadata = fireblocks_client.models.policy_metadata.PolicyMetadata( + edited_by = '', + edited_at = '', + published_by = '', + published_at = '', ), ), + validation = fireblocks_client.models.policy_validation.PolicyValidation( + status = '', + check_result = fireblocks_client.models.policy_check_result.PolicyCheckResult( + errors = 1.337, + result = [ + fireblocks_client.models.policy_rule_check_result.PolicyRuleCheckResult( + index = 1.337, + status = 'ok', + errors = [ + fireblocks_client.models.policy_rule_error.PolicyRuleError( + error_message = '', + error_code = 1.337, + error_code_name = '', + error_field = 'operator', ) + ], ) + ], ), ), + ) + """ + + def testDraftReviewAndValidationResponse(self): + """Test DraftReviewAndValidationResponse""" + # 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/test/test_drop_transaction_request.py b/test/test_drop_transaction_request.py new file mode 100644 index 00000000..6f0a5185 --- /dev/null +++ b/test/test_drop_transaction_request.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.drop_transaction_request import DropTransactionRequest + + +class TestDropTransactionRequest(unittest.TestCase): + """DropTransactionRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DropTransactionRequest: + """Test DropTransactionRequest + 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 `DropTransactionRequest` + """ + model = DropTransactionRequest() + if include_optional: + return DropTransactionRequest( + tx_id = '', + fee_level = '', + gas_price = '' + ) + else: + return DropTransactionRequest( + ) + """ + + def testDropTransactionRequest(self): + """Test DropTransactionRequest""" + # 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/test/test_drop_transaction_response.py b/test/test_drop_transaction_response.py new file mode 100644 index 00000000..7a05eed5 --- /dev/null +++ b/test/test_drop_transaction_response.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.drop_transaction_response import DropTransactionResponse + + +class TestDropTransactionResponse(unittest.TestCase): + """DropTransactionResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DropTransactionResponse: + """Test DropTransactionResponse + 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 `DropTransactionResponse` + """ + model = DropTransactionResponse() + if include_optional: + return DropTransactionResponse( + tx_status = '', + tx_id = '', + replaced_tx_hash = '' + ) + else: + return DropTransactionResponse( + ) + """ + + def testDropTransactionResponse(self): + """Test DropTransactionResponse""" + # 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/test/test_edit_gas_station_configuration_response.py b/test/test_edit_gas_station_configuration_response.py new file mode 100644 index 00000000..21057138 --- /dev/null +++ b/test/test_edit_gas_station_configuration_response.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.edit_gas_station_configuration_response import ( + EditGasStationConfigurationResponse, +) + + +class TestEditGasStationConfigurationResponse(unittest.TestCase): + """EditGasStationConfigurationResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> EditGasStationConfigurationResponse: + """Test EditGasStationConfigurationResponse + 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 `EditGasStationConfigurationResponse` + """ + model = EditGasStationConfigurationResponse() + if include_optional: + return EditGasStationConfigurationResponse( + success = True + ) + else: + return EditGasStationConfigurationResponse( + success = True, + ) + """ + + def testEditGasStationConfigurationResponse(self): + """Test EditGasStationConfigurationResponse""" + # 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/test/test_error_response.py b/test/test_error_response.py new file mode 100644 index 00000000..1aa0f8b6 --- /dev/null +++ b/test/test_error_response.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.error_response import ErrorResponse + + +class TestErrorResponse(unittest.TestCase): + """ErrorResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ErrorResponse: + """Test ErrorResponse + 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 `ErrorResponse` + """ + model = ErrorResponse() + if include_optional: + return ErrorResponse( + error = fireblocks_client.models.error_response_error.ErrorResponse_error( + type = 'INTERNAL', + message = '', ) + ) + else: + return ErrorResponse( + error = fireblocks_client.models.error_response_error.ErrorResponse_error( + type = 'INTERNAL', + message = '', ), + ) + """ + + def testErrorResponse(self): + """Test ErrorResponse""" + # 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/test/test_error_response_error.py b/test/test_error_response_error.py new file mode 100644 index 00000000..e64c3fa4 --- /dev/null +++ b/test/test_error_response_error.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.error_response_error import ErrorResponseError + + +class TestErrorResponseError(unittest.TestCase): + """ErrorResponseError unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ErrorResponseError: + """Test ErrorResponseError + 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 `ErrorResponseError` + """ + model = ErrorResponseError() + if include_optional: + return ErrorResponseError( + type = 'INTERNAL', + message = '' + ) + else: + return ErrorResponseError( + type = 'INTERNAL', + message = '', + ) + """ + + def testErrorResponseError(self): + """Test ErrorResponseError""" + # 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/test/test_error_schema.py b/test/test_error_schema.py new file mode 100644 index 00000000..24eb97d8 --- /dev/null +++ b/test/test_error_schema.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.error_schema import ErrorSchema + + +class TestErrorSchema(unittest.TestCase): + """ErrorSchema unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ErrorSchema: + """Test ErrorSchema + 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 `ErrorSchema` + """ + model = ErrorSchema() + if include_optional: + return ErrorSchema( + message = '', + code = 1.337 + ) + else: + return ErrorSchema( + ) + """ + + def testErrorSchema(self): + """Test ErrorSchema""" + # 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/test/test_estimated_network_fee_response.py b/test/test_estimated_network_fee_response.py new file mode 100644 index 00000000..541841e7 --- /dev/null +++ b/test/test_estimated_network_fee_response.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.estimated_network_fee_response import ( + EstimatedNetworkFeeResponse, +) + + +class TestEstimatedNetworkFeeResponse(unittest.TestCase): + """EstimatedNetworkFeeResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> EstimatedNetworkFeeResponse: + """Test EstimatedNetworkFeeResponse + 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 `EstimatedNetworkFeeResponse` + """ + model = EstimatedNetworkFeeResponse() + if include_optional: + return EstimatedNetworkFeeResponse( + low = fireblocks_client.models.network_fee.NetworkFee( + fee_per_byte = '', + gas_price = '', + network_fee = '', + base_fee = '', + priority_fee = '', ), + medium = fireblocks_client.models.network_fee.NetworkFee( + fee_per_byte = '', + gas_price = '', + network_fee = '', + base_fee = '', + priority_fee = '', ), + high = fireblocks_client.models.network_fee.NetworkFee( + fee_per_byte = '', + gas_price = '', + network_fee = '', + base_fee = '', + priority_fee = '', ) + ) + else: + return EstimatedNetworkFeeResponse( + low = fireblocks_client.models.network_fee.NetworkFee( + fee_per_byte = '', + gas_price = '', + network_fee = '', + base_fee = '', + priority_fee = '', ), + medium = fireblocks_client.models.network_fee.NetworkFee( + fee_per_byte = '', + gas_price = '', + network_fee = '', + base_fee = '', + priority_fee = '', ), + high = fireblocks_client.models.network_fee.NetworkFee( + fee_per_byte = '', + gas_price = '', + network_fee = '', + base_fee = '', + priority_fee = '', ), + ) + """ + + def testEstimatedNetworkFeeResponse(self): + """Test EstimatedNetworkFeeResponse""" + # 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/test/test_estimated_transaction_fee_response.py b/test/test_estimated_transaction_fee_response.py new file mode 100644 index 00000000..8fc1505c --- /dev/null +++ b/test/test_estimated_transaction_fee_response.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.estimated_transaction_fee_response import ( + EstimatedTransactionFeeResponse, +) + + +class TestEstimatedTransactionFeeResponse(unittest.TestCase): + """EstimatedTransactionFeeResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> EstimatedTransactionFeeResponse: + """Test EstimatedTransactionFeeResponse + 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 `EstimatedTransactionFeeResponse` + """ + model = EstimatedTransactionFeeResponse() + if include_optional: + return EstimatedTransactionFeeResponse( + low = fireblocks_client.models.transaction_fee.TransactionFee( + fee_per_byte = '', + gas_price = 1.337, + gas_limit = '', + network_fee = '', + base_fee = 1.337, + priority_fee = 1.337, + max_fee_per_gas_delta = '', + l1_fee = '', ), + medium = fireblocks_client.models.transaction_fee.TransactionFee( + fee_per_byte = '', + gas_price = 1.337, + gas_limit = '', + network_fee = '', + base_fee = 1.337, + priority_fee = 1.337, + max_fee_per_gas_delta = '', + l1_fee = '', ), + high = fireblocks_client.models.transaction_fee.TransactionFee( + fee_per_byte = '', + gas_price = 1.337, + gas_limit = '', + network_fee = '', + base_fee = 1.337, + priority_fee = 1.337, + max_fee_per_gas_delta = '', + l1_fee = '', ) + ) + else: + return EstimatedTransactionFeeResponse( + low = fireblocks_client.models.transaction_fee.TransactionFee( + fee_per_byte = '', + gas_price = 1.337, + gas_limit = '', + network_fee = '', + base_fee = 1.337, + priority_fee = 1.337, + max_fee_per_gas_delta = '', + l1_fee = '', ), + medium = fireblocks_client.models.transaction_fee.TransactionFee( + fee_per_byte = '', + gas_price = 1.337, + gas_limit = '', + network_fee = '', + base_fee = 1.337, + priority_fee = 1.337, + max_fee_per_gas_delta = '', + l1_fee = '', ), + high = fireblocks_client.models.transaction_fee.TransactionFee( + fee_per_byte = '', + gas_price = 1.337, + gas_limit = '', + network_fee = '', + base_fee = 1.337, + priority_fee = 1.337, + max_fee_per_gas_delta = '', + l1_fee = '', ), + ) + """ + + def testEstimatedTransactionFeeResponse(self): + """Test EstimatedTransactionFeeResponse""" + # 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/test/test_evm_token_create_params_dto.py b/test/test_evm_token_create_params_dto.py new file mode 100644 index 00000000..69ffa6fc --- /dev/null +++ b/test/test_evm_token_create_params_dto.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.evm_token_create_params_dto import EVMTokenCreateParamsDto + + +class TestEVMTokenCreateParamsDto(unittest.TestCase): + """EVMTokenCreateParamsDto unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> EVMTokenCreateParamsDto: + """Test EVMTokenCreateParamsDto + 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 `EVMTokenCreateParamsDto` + """ + model = EVMTokenCreateParamsDto() + if include_optional: + return EVMTokenCreateParamsDto( + contract_id = 'b70701f4-d7b1-4795-a8ee-b09cdb5b850d', + constructor_params = [{"internalType":"string","name":"name","type":"string","value":"name"},{"internalType":"string","name":"symbol","type":"string","value":"symbol"},{"components":[{"internalType":"bool","name":"_isMintable","type":"bool"}],"internalType":"struct MyStruct","name":"customConfigProps","type":"tuple","value":[{"internalType":"bool","name":"_isMintable","type":"bool","value":false}]}] + ) + else: + return EVMTokenCreateParamsDto( + contract_id = 'b70701f4-d7b1-4795-a8ee-b09cdb5b850d', + ) + """ + + def testEVMTokenCreateParamsDto(self): + """Test EVMTokenCreateParamsDto""" + # 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/test/test_exchange_account.py b/test/test_exchange_account.py new file mode 100644 index 00000000..795a9c2a --- /dev/null +++ b/test/test_exchange_account.py @@ -0,0 +1,81 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.exchange_account import ExchangeAccount + + +class TestExchangeAccount(unittest.TestCase): + """ExchangeAccount unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ExchangeAccount: + """Test ExchangeAccount + 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 `ExchangeAccount` + """ + model = ExchangeAccount() + if include_optional: + return ExchangeAccount( + id = '', + type = 'BINANCE', + name = '', + status = '', + assets = [ + fireblocks_client.models.exchange_asset.ExchangeAsset( + id = '', + balance = '', + locked_amount = '', + total = '', + available = '', ) + ], + success = True, + trading_accounts = [ + fireblocks_client.models.exchange_trading_account.ExchangeTradingAccount( + type = '', + name = '', + assets = [ + fireblocks_client.models.exchange_asset.ExchangeAsset( + id = '', + balance = '', + locked_amount = '', + total = '', + available = '', ) + ], ) + ], + is_subaccount = True, + main_account_id = '' + ) + else: + return ExchangeAccount( + ) + """ + + def testExchangeAccount(self): + """Test ExchangeAccount""" + # 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/test/test_exchange_accounts_api.py b/test/test_exchange_accounts_api.py new file mode 100644 index 00000000..1cb455d0 --- /dev/null +++ b/test/test_exchange_accounts_api.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.api.exchange_accounts_api import ExchangeAccountsApi + + +class TestExchangeAccountsApi(unittest.TestCase): + """ExchangeAccountsApi unit test stubs""" + + def setUp(self) -> None: + self.api = ExchangeAccountsApi() + + def tearDown(self) -> None: + pass + + def test_convert_assets(self) -> None: + """Test case for convert_assets + + Convert exchange account funds from the source asset to the destination asset. + """ + pass + + def test_get_exchange_account(self) -> None: + """Test case for get_exchange_account + + Find a specific exchange account + """ + pass + + def test_get_exchange_account_asset(self) -> None: + """Test case for get_exchange_account_asset + + Find an asset for an exchange account + """ + pass + + def test_get_paged_exchange_accounts(self) -> None: + """Test case for get_paged_exchange_accounts + + Pagination list exchange accounts + """ + pass + + def test_internal_transfer(self) -> None: + """Test case for internal_transfer + + Internal transfer for exchange accounts + """ + pass + + +if __name__ == "__main__": + unittest.main() diff --git a/test/test_exchange_accounts_paged.py b/test/test_exchange_accounts_paged.py new file mode 100644 index 00000000..e606a930 --- /dev/null +++ b/test/test_exchange_accounts_paged.py @@ -0,0 +1,80 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.exchange_accounts_paged import ExchangeAccountsPaged + + +class TestExchangeAccountsPaged(unittest.TestCase): + """ExchangeAccountsPaged unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ExchangeAccountsPaged: + """Test ExchangeAccountsPaged + 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 `ExchangeAccountsPaged` + """ + model = ExchangeAccountsPaged() + if include_optional: + return ExchangeAccountsPaged( + exchange_account = [ + fireblocks_client.models.exchange_account.ExchangeAccount( + id = '', + type = 'BINANCE', + name = '', + status = '', + assets = [ + fireblocks_client.models.exchange_asset.ExchangeAsset( + id = '', + balance = '', + locked_amount = '', + total = '', + available = '', ) + ], + success = True, + trading_accounts = [ + fireblocks_client.models.exchange_trading_account.ExchangeTradingAccount( + name = '', ) + ], + is_subaccount = True, + main_account_id = '', ) + ], + paging = fireblocks_client.models.exchange_accounts_paged_paging.ExchangeAccountsPaged_paging( + after = '', + before = '', ), + prev_url = '', + next_url = '' + ) + else: + return ExchangeAccountsPaged( + ) + """ + + def testExchangeAccountsPaged(self): + """Test ExchangeAccountsPaged""" + # 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/test/test_exchange_accounts_paged_paging.py b/test/test_exchange_accounts_paged_paging.py new file mode 100644 index 00000000..a6b56b24 --- /dev/null +++ b/test/test_exchange_accounts_paged_paging.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.exchange_accounts_paged_paging import ( + ExchangeAccountsPagedPaging, +) + + +class TestExchangeAccountsPagedPaging(unittest.TestCase): + """ExchangeAccountsPagedPaging unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ExchangeAccountsPagedPaging: + """Test ExchangeAccountsPagedPaging + 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 `ExchangeAccountsPagedPaging` + """ + model = ExchangeAccountsPagedPaging() + if include_optional: + return ExchangeAccountsPagedPaging( + after = '', + before = '' + ) + else: + return ExchangeAccountsPagedPaging( + ) + """ + + def testExchangeAccountsPagedPaging(self): + """Test ExchangeAccountsPagedPaging""" + # 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/test/test_exchange_asset.py b/test/test_exchange_asset.py new file mode 100644 index 00000000..347def44 --- /dev/null +++ b/test/test_exchange_asset.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.exchange_asset import ExchangeAsset + + +class TestExchangeAsset(unittest.TestCase): + """ExchangeAsset unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ExchangeAsset: + """Test ExchangeAsset + 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 `ExchangeAsset` + """ + model = ExchangeAsset() + if include_optional: + return ExchangeAsset( + id = '', + balance = '', + locked_amount = '', + total = '', + available = '' + ) + else: + return ExchangeAsset( + ) + """ + + def testExchangeAsset(self): + """Test ExchangeAsset""" + # 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/test/test_exchange_settlement_transactions_response.py b/test/test_exchange_settlement_transactions_response.py new file mode 100644 index 00000000..ae8c77ff --- /dev/null +++ b/test/test_exchange_settlement_transactions_response.py @@ -0,0 +1,70 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.exchange_settlement_transactions_response import ( + ExchangeSettlementTransactionsResponse, +) + + +class TestExchangeSettlementTransactionsResponse(unittest.TestCase): + """ExchangeSettlementTransactionsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ExchangeSettlementTransactionsResponse: + """Test ExchangeSettlementTransactionsResponse + 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 `ExchangeSettlementTransactionsResponse` + """ + model = ExchangeSettlementTransactionsResponse() + if include_optional: + return ExchangeSettlementTransactionsResponse( + to_exchange = [ + fireblocks_client.models.to_exchange_transaction.ToExchangeTransaction( + asset_id = '', + amount = '', + dst_address = '', + dst_tag = '', ) + ], + to_collateral = [ + fireblocks_client.models.to_collateral_transaction.ToCollateralTransaction( + asset = '', + amount = '', + src_address = '', + src_tag = '', + fee = '', ) + ] + ) + else: + return ExchangeSettlementTransactionsResponse( + ) + """ + + def testExchangeSettlementTransactionsResponse(self): + """Test ExchangeSettlementTransactionsResponse""" + # 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/test/test_exchange_trading_account.py b/test/test_exchange_trading_account.py new file mode 100644 index 00000000..e47aa7a6 --- /dev/null +++ b/test/test_exchange_trading_account.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.exchange_trading_account import ExchangeTradingAccount + + +class TestExchangeTradingAccount(unittest.TestCase): + """ExchangeTradingAccount unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ExchangeTradingAccount: + """Test ExchangeTradingAccount + 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 `ExchangeTradingAccount` + """ + model = ExchangeTradingAccount() + if include_optional: + return ExchangeTradingAccount( + type = '', + name = '', + assets = [ + fireblocks_client.models.exchange_asset.ExchangeAsset( + id = '', + balance = '', + locked_amount = '', + total = '', + available = '', ) + ] + ) + else: + return ExchangeTradingAccount( + ) + """ + + def testExchangeTradingAccount(self): + """Test ExchangeTradingAccount""" + # 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/test/test_exchange_type.py b/test/test_exchange_type.py new file mode 100644 index 00000000..931969cc --- /dev/null +++ b/test/test_exchange_type.py @@ -0,0 +1,36 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.exchange_type import ExchangeType + + +class TestExchangeType(unittest.TestCase): + """ExchangeType unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testExchangeType(self): + """Test ExchangeType""" + # inst = ExchangeType() + + +if __name__ == "__main__": + unittest.main() diff --git a/test/test_execute_action_request.py b/test/test_execute_action_request.py new file mode 100644 index 00000000..1374a156 --- /dev/null +++ b/test/test_execute_action_request.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.execute_action_request import ExecuteActionRequest + + +class TestExecuteActionRequest(unittest.TestCase): + """ExecuteActionRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ExecuteActionRequest: + """Test ExecuteActionRequest + 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 `ExecuteActionRequest` + """ + model = ExecuteActionRequest() + if include_optional: + return ExecuteActionRequest( + vault_account_id = '22', + provider_id = 'kiln', + stake_amount = '32', + tx_note = 'withdraw request id b70701f4-d7b1-4795-a8ee-b09cdb5b850d #ETH', + fee = '7', + fee_level = 'MEDIUM', + id = 'b70701f4-d7b1-4795-a8ee-b09cdb5b850f' + ) + else: + return ExecuteActionRequest( + vault_account_id = '22', + provider_id = 'kiln', + stake_amount = '32', + id = 'b70701f4-d7b1-4795-a8ee-b09cdb5b850f', + ) + """ + + def testExecuteActionRequest(self): + """Test ExecuteActionRequest""" + # 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/test/test_execute_action_response.py b/test/test_execute_action_response.py new file mode 100644 index 00000000..465b3580 --- /dev/null +++ b/test/test_execute_action_response.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.execute_action_response import ExecuteActionResponse + + +class TestExecuteActionResponse(unittest.TestCase): + """ExecuteActionResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ExecuteActionResponse: + """Test ExecuteActionResponse + 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 `ExecuteActionResponse` + """ + model = ExecuteActionResponse() + if include_optional: + return ExecuteActionResponse( + id = 'b70701f4-d7b1-4795-a8ee-b09cdb5b850d' + ) + else: + return ExecuteActionResponse( + id = 'b70701f4-d7b1-4795-a8ee-b09cdb5b850d', + ) + """ + + def testExecuteActionResponse(self): + """Test ExecuteActionResponse""" + # 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/test/test_execution_conversion_operation.py b/test/test_execution_conversion_operation.py new file mode 100644 index 00000000..3934013e --- /dev/null +++ b/test/test_execution_conversion_operation.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.execution_conversion_operation import ( + ExecutionConversionOperation, +) + + +class TestExecutionConversionOperation(unittest.TestCase): + """ExecutionConversionOperation unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ExecutionConversionOperation: + """Test ExecutionConversionOperation + 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 `ExecutionConversionOperation` + """ + model = ExecutionConversionOperation() + if include_optional: + return ExecutionConversionOperation( + operation_id = '', + status = 'PENDING', + validation_failure = fireblocks_client.models.conversion_validation_failure.ConversionValidationFailure( + reason = 'ACCOUNT_NOT_FOUND', + data = { + 'key' : null + }, ), + operation_type = 'CONVERSION', + preview = fireblocks_client.models.conversion_operation_preview.ConversionOperationPreview( + input = fireblocks_client.models.conversion_operation_config_params.ConversionOperationConfigParams( + amount = '', + account_id = '', + src_asset_id = '', + dest_asset_id = '', + slippage_basis_points = 0, ), + output = fireblocks_client.models.conversion_operation_preview_output.ConversionOperationPreviewOutput( + amount = fireblocks_client.models.asset_amount.AssetAmount( + amount = '', + asset_id = '', ), + fee = fireblocks_client.models.asset_amount.AssetAmount( + amount = '', + asset_id = '', ), + conversion_rate = '', + time_seconds = 1.337, ), + failure = fireblocks_client.models.conversion_operation_failure.ConversionOperationFailure( + reason = 'INVALID_AMOUNT', + data = { + 'key' : null + }, ), ), + execution = fireblocks_client.models.conversion_operation_execution.ConversionOperationExecution( + input = fireblocks_client.models.conversion_operation_config_params.ConversionOperationConfigParams( + amount = '', + account_id = '', + src_asset_id = '', + dest_asset_id = '', + slippage_basis_points = 0, ), + output = fireblocks_client.models.conversion_operation_execution_output.ConversionOperationExecutionOutput( + amount = fireblocks_client.models.asset_amount.AssetAmount( + amount = '', + asset_id = '', ), + fee = fireblocks_client.models.asset_amount.AssetAmount( + amount = '', + asset_id = '', ), + conversion_rate = '', ), + started_at = 1.337, + finished_at = 1.337, + failure = fireblocks_client.models.conversion_operation_failure.ConversionOperationFailure( + reason = 'INVALID_AMOUNT', + data = { + 'key' : null + }, ), ) + ) + else: + return ExecutionConversionOperation( + operation_id = '', + status = 'PENDING', + operation_type = 'CONVERSION', + ) + """ + + def testExecutionConversionOperation(self): + """Test ExecutionConversionOperation""" + # 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/test/test_execution_disbursement_operation.py b/test/test_execution_disbursement_operation.py new file mode 100644 index 00000000..651d0e9f --- /dev/null +++ b/test/test_execution_disbursement_operation.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.execution_disbursement_operation import ( + ExecutionDisbursementOperation, +) + + +class TestExecutionDisbursementOperation(unittest.TestCase): + """ExecutionDisbursementOperation unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ExecutionDisbursementOperation: + """Test ExecutionDisbursementOperation + 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 `ExecutionDisbursementOperation` + """ + model = ExecutionDisbursementOperation() + if include_optional: + return ExecutionDisbursementOperation( + operation_id = '', + status = 'PENDING', + validation_failure = fireblocks_client.models.disbursement_validation_failure.DisbursementValidationFailure( + reason = 'ACCOUNT_NOT_FOUND', + data = { + 'key' : null + }, ), + operation_type = 'DISBURSEMENT', + preview = fireblocks_client.models.disbursement_operation_preview.DisbursementOperationPreview( + input = fireblocks_client.models.disbursement_operation_input.DisbursementOperationInput( + amount = '', + payment_account = fireblocks_client.models.account.Account( + account_id = '', + account_type = 'EXCHANGE_ACCOUNT', ), + instruction_set = [ + null + ], ), + output = fireblocks_client.models.disbursement_operation_preview_output.DisbursementOperationPreviewOutput( + instruction_set = [ + null + ], ), + failure = fireblocks_client.models.operation_execution_failure.OperationExecutionFailure( + reason = '', + data = { + 'key' : null + }, ), ), + execution = fireblocks_client.models.disbursement_operation_execution.DisbursementOperationExecution( + input = fireblocks_client.models.disbursement_operation_input.DisbursementOperationInput( + amount = '', + payment_account = fireblocks_client.models.account.Account( + account_id = '', + account_type = 'EXCHANGE_ACCOUNT', ), + instruction_set = [ + null + ], ), + output = fireblocks_client.models.disbursement_operation_execution_output.DisbursementOperationExecutionOutput( + instruction_set = [ + fireblocks_client.models.disbursement_instruction_output.DisbursementInstructionOutput( + amount = fireblocks_client.models.asset_amount.AssetAmount( + amount = '', + asset_id = '', ), + fee = fireblocks_client.models.asset_amount.AssetAmount( + amount = '', + asset_id = '', ), + payee_account = null, ) + ], ), + payout_id = '', + started_at = 1.337, + finished_at = 1.337, + failure = fireblocks_client.models.operation_execution_failure.OperationExecutionFailure( + reason = '', + data = { + 'key' : null + }, ), ) + ) + else: + return ExecutionDisbursementOperation( + operation_id = '', + status = 'PENDING', + operation_type = 'DISBURSEMENT', + ) + """ + + def testExecutionDisbursementOperation(self): + """Test ExecutionDisbursementOperation""" + # 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/test/test_execution_operation_status.py b/test/test_execution_operation_status.py new file mode 100644 index 00000000..54895eb0 --- /dev/null +++ b/test/test_execution_operation_status.py @@ -0,0 +1,36 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.execution_operation_status import ExecutionOperationStatus + + +class TestExecutionOperationStatus(unittest.TestCase): + """ExecutionOperationStatus unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testExecutionOperationStatus(self): + """Test ExecutionOperationStatus""" + # inst = ExecutionOperationStatus() + + +if __name__ == "__main__": + unittest.main() diff --git a/test/test_execution_screening_operation.py b/test/test_execution_screening_operation.py new file mode 100644 index 00000000..13706329 --- /dev/null +++ b/test/test_execution_screening_operation.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.execution_screening_operation import ( + ExecutionScreeningOperation, +) + + +class TestExecutionScreeningOperation(unittest.TestCase): + """ExecutionScreeningOperation unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ExecutionScreeningOperation: + """Test ExecutionScreeningOperation + 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 `ExecutionScreeningOperation` + """ + model = ExecutionScreeningOperation() + if include_optional: + return ExecutionScreeningOperation( + operation_id = '', + status = 'PENDING', + operation_type = 'SCREENING', + validation_failure = fireblocks_client.models.screening_validation_failure.ScreeningValidationFailure( + reason = 'SCREENING_DISABLED_IN_TENANT', + data = { + 'key' : null + }, ), + execution = fireblocks_client.models.screening_operation_execution.ScreeningOperationExecution( + output = fireblocks_client.models.screening_operation_execution_output.ScreeningOperationExecutionOutput( + verdicts = [ + fireblocks_client.models.screening_verdict.ScreeningVerdict( + verdict = 'PASSED', + execution_operation_id = '', + account = null, + asset_id = '', + amount = '', + matched_rule = fireblocks_client.models.screening_verdict_matched_rule.ScreeningVerdict_matchedRule( + action = '', + category = [ + '' + ], ), ) + ], ), + started_at = 1.337, + finished_at = 1.337, + failure = fireblocks_client.models.screening_operation_failure.ScreeningOperationFailure( + reason = 'AML_PROCESS_FAILED', + data = fireblocks_client.models.screening_operation_execution_output.ScreeningOperationExecutionOutput( + verdicts = [ + fireblocks_client.models.screening_verdict.ScreeningVerdict( + verdict = 'PASSED', + execution_operation_id = '', + account = null, + asset_id = '', + amount = '', ) + ], ), ), ) + ) + else: + return ExecutionScreeningOperation( + operation_id = '', + status = 'PENDING', + operation_type = 'SCREENING', + ) + """ + + def testExecutionScreeningOperation(self): + """Test ExecutionScreeningOperation""" + # 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/test/test_execution_transfer_operation.py b/test/test_execution_transfer_operation.py new file mode 100644 index 00000000..8c2ead90 --- /dev/null +++ b/test/test_execution_transfer_operation.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.execution_transfer_operation import ( + ExecutionTransferOperation, +) + + +class TestExecutionTransferOperation(unittest.TestCase): + """ExecutionTransferOperation unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ExecutionTransferOperation: + """Test ExecutionTransferOperation + 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 `ExecutionTransferOperation` + """ + model = ExecutionTransferOperation() + if include_optional: + return ExecutionTransferOperation( + operation_id = '', + status = 'PENDING', + validation_failure = fireblocks_client.models.transfer_validation_failure.TransferValidationFailure( + reason = 'ACCOUNT_NOT_FOUND', + data = { }, ), + operation_type = 'TRANSFER', + preview = fireblocks_client.models.transfer_operation_preview.TransferOperationPreview( + input = fireblocks_client.models.transfer_operation_config_params.TransferOperationConfigParams( + amount = '', + asset_id = '', + source = fireblocks_client.models.account.Account( + account_id = '', + account_type = 'EXCHANGE_ACCOUNT', ), + destination = null, ), + output = fireblocks_client.models.transfer_operation_preview_output.TransferOperationPreviewOutput( + amount = fireblocks_client.models.asset_amount.AssetAmount( + amount = '', + asset_id = '', ), + fee = fireblocks_client.models.asset_amount.AssetAmount( + amount = '', + asset_id = '', ), + is_sign_required = True, + time_seconds = 1.337, ), + failure = fireblocks_client.models.transfer_operation_failure.TransferOperationFailure( + reason = 'INVALID_AMOUNT', + data = fireblocks_client.models.transfer_operation_failure_data.TransferOperationFailure_data( + tx_id = '', + tx_status = '', + tx_sub_status = '', ), ), ), + execution = fireblocks_client.models.transfer_operation_execution.TransferOperationExecution( + input = fireblocks_client.models.transfer_operation_config_params.TransferOperationConfigParams( + amount = '', + asset_id = '', + source = fireblocks_client.models.account.Account( + account_id = '', + account_type = 'EXCHANGE_ACCOUNT', ), + destination = null, ), + output = fireblocks_client.models.transfer_operation_execution_output.TransferOperationExecutionOutput( + amount = fireblocks_client.models.asset_amount.AssetAmount( + amount = '', + asset_id = '', ), + fee = fireblocks_client.models.asset_amount.AssetAmount( + amount = '', + asset_id = '', ), ), + tx_id = '', + started_at = 1.337, + finished_at = 1.337, + failure = fireblocks_client.models.transfer_operation_failure.TransferOperationFailure( + reason = 'INVALID_AMOUNT', + data = fireblocks_client.models.transfer_operation_failure_data.TransferOperationFailure_data( + tx_id = '', + tx_status = '', + tx_sub_status = '', ), ), ) + ) + else: + return ExecutionTransferOperation( + operation_id = '', + status = 'PENDING', + operation_type = 'TRANSFER', + ) + """ + + def testExecutionTransferOperation(self): + """Test ExecutionTransferOperation""" + # 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/test/test_external_wallet_asset.py b/test/test_external_wallet_asset.py new file mode 100644 index 00000000..cd00290f --- /dev/null +++ b/test/test_external_wallet_asset.py @@ -0,0 +1,79 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.external_wallet_asset import ExternalWalletAsset + + +class TestExternalWalletAsset(unittest.TestCase): + """ExternalWalletAsset unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ExternalWalletAsset: + """Test ExternalWalletAsset + 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 `ExternalWalletAsset` + """ + model = ExternalWalletAsset() + if include_optional: + return ExternalWalletAsset( + id = '', + status = 'WAITING_FOR_APPROVAL', + address = '', + balance = '', + locked_amount = '', + tag = '', + activation_time = '', + additional_info = [ + fireblocks_client.models.wallet_asset_additional_info.WalletAssetAdditionalInfo( + account_holder_given_name = '', + account_holder_surname = '', + account_holder_city = '', + account_holder_country = '', + account_holder_address1 = '', + account_holder_address2 = '', + account_holder_district = '', + account_holder_postal_code = '', + aba_routing_number = '', + aba_account_number = '', + aba_country = '', + iban = '', + iban_city = '', + iban_country = '', + spei_clabe = '', + spei_name = '', ) + ] + ) + else: + return ExternalWalletAsset( + ) + """ + + def testExternalWalletAsset(self): + """Test ExternalWalletAsset""" + # 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/test/test_external_wallets_api.py b/test/test_external_wallets_api.py new file mode 100644 index 00000000..3ca5b30a --- /dev/null +++ b/test/test_external_wallets_api.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.api.external_wallets_api import ExternalWalletsApi + + +class TestExternalWalletsApi(unittest.TestCase): + """ExternalWalletsApi unit test stubs""" + + def setUp(self) -> None: + self.api = ExternalWalletsApi() + + def tearDown(self) -> None: + pass + + def test_add_asset_to_external_wallet(self) -> None: + """Test case for add_asset_to_external_wallet + + Add an asset to an external wallet. + """ + pass + + def test_create_external_wallet(self) -> None: + """Test case for create_external_wallet + + Create an external wallet + """ + pass + + def test_delete_external_wallet(self) -> None: + """Test case for delete_external_wallet + + Delete an external wallet + """ + pass + + def test_get_external_wallet(self) -> None: + """Test case for get_external_wallet + + Find an external wallet + """ + pass + + def test_get_external_wallet_asset(self) -> None: + """Test case for get_external_wallet_asset + + Get an asset from an external wallet + """ + pass + + def test_get_external_wallets(self) -> None: + """Test case for get_external_wallets + + List external wallets + """ + pass + + def test_remove_asset_from_external_wallet(self) -> None: + """Test case for remove_asset_from_external_wallet + + Delete an asset from an external wallet + """ + pass + + def test_set_external_wallet_customer_ref_id(self) -> None: + """Test case for set_external_wallet_customer_ref_id + + Set an AML customer reference ID for an external wallet + """ + pass + + +if __name__ == "__main__": + unittest.main() diff --git a/test/test_fee_info.py b/test/test_fee_info.py new file mode 100644 index 00000000..2e7268b9 --- /dev/null +++ b/test/test_fee_info.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.fee_info import FeeInfo + + +class TestFeeInfo(unittest.TestCase): + """FeeInfo unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> FeeInfo: + """Test FeeInfo + 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 `FeeInfo` + """ + model = FeeInfo() + if include_optional: + return FeeInfo( + network_fee = '', + service_fee = '', + gas_price = '' + ) + else: + return FeeInfo( + ) + """ + + def testFeeInfo(self): + """Test FeeInfo""" + # 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/test/test_fiat_account.py b/test/test_fiat_account.py new file mode 100644 index 00000000..dbd5ffd6 --- /dev/null +++ b/test/test_fiat_account.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.fiat_account import FiatAccount + + +class TestFiatAccount(unittest.TestCase): + """FiatAccount unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> FiatAccount: + """Test FiatAccount + 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 `FiatAccount` + """ + model = FiatAccount() + if include_optional: + return FiatAccount( + id = '', + type = 'BLINC', + name = '', + address = '', + assets = [ + fireblocks_client.models.fiat_asset.FiatAsset( + id = '', + balance = '', ) + ] + ) + else: + return FiatAccount( + ) + """ + + def testFiatAccount(self): + """Test FiatAccount""" + # 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/test/test_fiat_account_type.py b/test/test_fiat_account_type.py new file mode 100644 index 00000000..cadf0131 --- /dev/null +++ b/test/test_fiat_account_type.py @@ -0,0 +1,36 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.fiat_account_type import FiatAccountType + + +class TestFiatAccountType(unittest.TestCase): + """FiatAccountType unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testFiatAccountType(self): + """Test FiatAccountType""" + # inst = FiatAccountType() + + +if __name__ == "__main__": + unittest.main() diff --git a/test/test_fiat_accounts_api.py b/test/test_fiat_accounts_api.py new file mode 100644 index 00000000..a4fa6707 --- /dev/null +++ b/test/test_fiat_accounts_api.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.api.fiat_accounts_api import FiatAccountsApi + + +class TestFiatAccountsApi(unittest.TestCase): + """FiatAccountsApi unit test stubs""" + + def setUp(self) -> None: + self.api = FiatAccountsApi() + + def tearDown(self) -> None: + pass + + def test_deposit_funds_from_linked_dda(self) -> None: + """Test case for deposit_funds_from_linked_dda + + Deposit funds from DDA + """ + pass + + def test_get_fiat_account(self) -> None: + """Test case for get_fiat_account + + Find a specific fiat account + """ + pass + + def test_get_fiat_accounts(self) -> None: + """Test case for get_fiat_accounts + + List fiat accounts + """ + pass + + def test_redeem_funds_to_linked_dda(self) -> None: + """Test case for redeem_funds_to_linked_dda + + Redeem funds to DDA + """ + pass + + +if __name__ == "__main__": + unittest.main() diff --git a/test/test_fiat_asset.py b/test/test_fiat_asset.py new file mode 100644 index 00000000..01588592 --- /dev/null +++ b/test/test_fiat_asset.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.fiat_asset import FiatAsset + + +class TestFiatAsset(unittest.TestCase): + """FiatAsset unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> FiatAsset: + """Test FiatAsset + 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 `FiatAsset` + """ + model = FiatAsset() + if include_optional: + return FiatAsset( + id = '', + balance = '' + ) + else: + return FiatAsset( + ) + """ + + def testFiatAsset(self): + """Test FiatAsset""" + # 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/test/test_freeze_transaction_response.py b/test/test_freeze_transaction_response.py new file mode 100644 index 00000000..24925932 --- /dev/null +++ b/test/test_freeze_transaction_response.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.freeze_transaction_response import ( + FreezeTransactionResponse, +) + + +class TestFreezeTransactionResponse(unittest.TestCase): + """FreezeTransactionResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> FreezeTransactionResponse: + """Test FreezeTransactionResponse + 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 `FreezeTransactionResponse` + """ + model = FreezeTransactionResponse() + if include_optional: + return FreezeTransactionResponse( + success = True + ) + else: + return FreezeTransactionResponse( + ) + """ + + def testFreezeTransactionResponse(self): + """Test FreezeTransactionResponse""" + # 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/test/test_function_doc.py b/test/test_function_doc.py new file mode 100644 index 00000000..8bfac6e3 --- /dev/null +++ b/test/test_function_doc.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.function_doc import FunctionDoc + + +class TestFunctionDoc(unittest.TestCase): + """FunctionDoc unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> FunctionDoc: + """Test FunctionDoc + 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 `FunctionDoc` + """ + model = FunctionDoc() + if include_optional: + return FunctionDoc( + details = '', + params = { + 'key' : '' + }, + returns = { + 'key' : '' + } + ) + else: + return FunctionDoc( + ) + """ + + def testFunctionDoc(self): + """Test FunctionDoc""" + # 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/test/test_funds.py b/test/test_funds.py new file mode 100644 index 00000000..1089e033 --- /dev/null +++ b/test/test_funds.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.funds import Funds + + +class TestFunds(unittest.TestCase): + """Funds unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> Funds: + """Test Funds + 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 `Funds` + """ + model = Funds() + if include_optional: + return Funds( + amount = 1.337 + ) + else: + return Funds( + ) + """ + + def testFunds(self): + """Test Funds""" + # 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/test/test_gas_station_configuration.py b/test/test_gas_station_configuration.py new file mode 100644 index 00000000..689cf5cf --- /dev/null +++ b/test/test_gas_station_configuration.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.gas_station_configuration import GasStationConfiguration + + +class TestGasStationConfiguration(unittest.TestCase): + """GasStationConfiguration unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GasStationConfiguration: + """Test GasStationConfiguration + 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 `GasStationConfiguration` + """ + model = GasStationConfiguration() + if include_optional: + return GasStationConfiguration( + gas_threshold = '', + gas_cap = '', + max_gas_price = '' + ) + else: + return GasStationConfiguration( + ) + """ + + def testGasStationConfiguration(self): + """Test GasStationConfiguration""" + # 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/test/test_gas_station_configuration_response.py b/test/test_gas_station_configuration_response.py new file mode 100644 index 00000000..1b6fe88f --- /dev/null +++ b/test/test_gas_station_configuration_response.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.gas_station_configuration_response import ( + GasStationConfigurationResponse, +) + + +class TestGasStationConfigurationResponse(unittest.TestCase): + """GasStationConfigurationResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GasStationConfigurationResponse: + """Test GasStationConfigurationResponse + 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 `GasStationConfigurationResponse` + """ + model = GasStationConfigurationResponse() + if include_optional: + return GasStationConfigurationResponse( + gas_threshold = '', + gas_cap = '', + max_gas_price = '' + ) + else: + return GasStationConfigurationResponse( + ) + """ + + def testGasStationConfigurationResponse(self): + """Test GasStationConfigurationResponse""" + # 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/test/test_gas_station_properties_response.py b/test/test_gas_station_properties_response.py new file mode 100644 index 00000000..c23b4ebb --- /dev/null +++ b/test/test_gas_station_properties_response.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.gas_station_properties_response import ( + GasStationPropertiesResponse, +) + + +class TestGasStationPropertiesResponse(unittest.TestCase): + """GasStationPropertiesResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GasStationPropertiesResponse: + """Test GasStationPropertiesResponse + 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 `GasStationPropertiesResponse` + """ + model = GasStationPropertiesResponse() + if include_optional: + return GasStationPropertiesResponse( + balance = None, + configuration = fireblocks_client.models.gas_station_configuration_response.GasStationConfigurationResponse( + gas_threshold = '', + gas_cap = '', + max_gas_price = '', ) + ) + else: + return GasStationPropertiesResponse( + ) + """ + + def testGasStationPropertiesResponse(self): + """Test GasStationPropertiesResponse""" + # 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/test/test_gas_stations_api.py b/test/test_gas_stations_api.py new file mode 100644 index 00000000..6a0bf484 --- /dev/null +++ b/test/test_gas_stations_api.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.api.gas_stations_api import GasStationsApi + + +class TestGasStationsApi(unittest.TestCase): + """GasStationsApi unit test stubs""" + + def setUp(self) -> None: + self.api = GasStationsApi() + + def tearDown(self) -> None: + pass + + def test_get_gas_station_by_asset_id(self) -> None: + """Test case for get_gas_station_by_asset_id + + Get gas station settings by asset + """ + pass + + def test_get_gas_station_info(self) -> None: + """Test case for get_gas_station_info + + Get gas station settings + """ + pass + + def test_update_gas_station_configuration(self) -> None: + """Test case for update_gas_station_configuration + + Edit gas station settings + """ + pass + + def test_update_gas_station_configuration_by_asset_id(self) -> None: + """Test case for update_gas_station_configuration_by_asset_id + + Edit gas station settings for an asset + """ + pass + + +if __name__ == "__main__": + unittest.main() diff --git a/test/test_get_api_users_response.py b/test/test_get_api_users_response.py new file mode 100644 index 00000000..deda3335 --- /dev/null +++ b/test/test_get_api_users_response.py @@ -0,0 +1,71 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.get_api_users_response import GetAPIUsersResponse + + +class TestGetAPIUsersResponse(unittest.TestCase): + """GetAPIUsersResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetAPIUsersResponse: + """Test GetAPIUsersResponse + 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 `GetAPIUsersResponse` + """ + model = GetAPIUsersResponse() + if include_optional: + return GetAPIUsersResponse( + users = [ + fireblocks_client.models.api_user.APIUser( + id = '', + name = '', + role = 'OWNER', + enabled = True, + status = 'PENDING_ACTIVATION', + user_type = 'API', ) + ] + ) + else: + return GetAPIUsersResponse( + users = [ + fireblocks_client.models.api_user.APIUser( + id = '', + name = '', + role = 'OWNER', + enabled = True, + status = 'PENDING_ACTIVATION', + user_type = 'API', ) + ], + ) + """ + + def testGetAPIUsersResponse(self): + """Test GetAPIUsersResponse""" + # 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/test/test_get_audit_logs_response.py b/test/test_get_audit_logs_response.py new file mode 100644 index 00000000..c258f23d --- /dev/null +++ b/test/test_get_audit_logs_response.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.get_audit_logs_response import GetAuditLogsResponse + + +class TestGetAuditLogsResponse(unittest.TestCase): + """GetAuditLogsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetAuditLogsResponse: + """Test GetAuditLogsResponse + 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 `GetAuditLogsResponse` + """ + model = GetAuditLogsResponse() + if include_optional: + return GetAuditLogsResponse( + data = [ + fireblocks_client.models.audit_log_data.AuditLogData( + id = '', + timestamp = '', + created_at = '', + user = '', + subject = '', + event = '', + tenant_id = '', + user_id = '', ) + ], + cursor = '', + total = 1.337 + ) + else: + return GetAuditLogsResponse( + ) + """ + + def testGetAuditLogsResponse(self): + """Test GetAuditLogsResponse""" + # 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/test/test_get_audit_logs_response_dto.py b/test/test_get_audit_logs_response_dto.py new file mode 100644 index 00000000..5afb1e61 --- /dev/null +++ b/test/test_get_audit_logs_response_dto.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.get_audit_logs_response_dto import GetAuditLogsResponseDTO + + +class TestGetAuditLogsResponseDTO(unittest.TestCase): + """GetAuditLogsResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetAuditLogsResponseDTO: + """Test GetAuditLogsResponseDTO + 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 `GetAuditLogsResponseDTO` + """ + model = GetAuditLogsResponseDTO() + if include_optional: + return GetAuditLogsResponseDTO( + data = [ + None + ], + total = 1.337, + cursor = '' + ) + else: + return GetAuditLogsResponseDTO( + ) + """ + + def testGetAuditLogsResponseDTO(self): + """Test GetAuditLogsResponseDTO""" + # 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/test/test_get_connections_response.py b/test/test_get_connections_response.py new file mode 100644 index 00000000..677c2cbd --- /dev/null +++ b/test/test_get_connections_response.py @@ -0,0 +1,79 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.get_connections_response import GetConnectionsResponse + + +class TestGetConnectionsResponse(unittest.TestCase): + """GetConnectionsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetConnectionsResponse: + """Test GetConnectionsResponse + 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 `GetConnectionsResponse` + """ + model = GetConnectionsResponse() + if include_optional: + return GetConnectionsResponse( + data = [ + fireblocks_client.models.session_dto.SessionDTO( + id = '4e9e7051-f3b2-48e9-8ee6-b12492552657', + user_id = '', + session_metadata = null, + vault_account_id = 1, + fee_level = 'MEDIUM', + chain_ids = ["ETH","ETH_TEST","SOL"], + connection_type = 'WalletConnect', + connection_method = 'API', + creation_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) + ], + paging = fireblocks_client.models.paging.Paging( + next = '', ) + ) + else: + return GetConnectionsResponse( + data = [ + fireblocks_client.models.session_dto.SessionDTO( + id = '4e9e7051-f3b2-48e9-8ee6-b12492552657', + user_id = '', + session_metadata = null, + vault_account_id = 1, + fee_level = 'MEDIUM', + chain_ids = ["ETH","ETH_TEST","SOL"], + connection_type = 'WalletConnect', + connection_method = 'API', + creation_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) + ], + ) + """ + + def testGetConnectionsResponse(self): + """Test GetConnectionsResponse""" + # 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/test/test_get_console_users_response.py b/test/test_get_console_users_response.py new file mode 100644 index 00000000..9a8b1de2 --- /dev/null +++ b/test/test_get_console_users_response.py @@ -0,0 +1,75 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.get_console_users_response import GetConsoleUsersResponse + + +class TestGetConsoleUsersResponse(unittest.TestCase): + """GetConsoleUsersResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetConsoleUsersResponse: + """Test GetConsoleUsersResponse + 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 `GetConsoleUsersResponse` + """ + model = GetConsoleUsersResponse() + if include_optional: + return GetConsoleUsersResponse( + users = [ + fireblocks_client.models.console_user.ConsoleUser( + id = '', + first_name = '', + last_name = '', + email = '', + role = 'OWNER', + enabled = True, + status = 'PENDING_ACTIVATION', + user_type = 'API', ) + ] + ) + else: + return GetConsoleUsersResponse( + users = [ + fireblocks_client.models.console_user.ConsoleUser( + id = '', + first_name = '', + last_name = '', + email = '', + role = 'OWNER', + enabled = True, + status = 'PENDING_ACTIVATION', + user_type = 'API', ) + ], + ) + """ + + def testGetConsoleUsersResponse(self): + """Test GetConsoleUsersResponse""" + # 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/test/test_get_filter_parameter.py b/test/test_get_filter_parameter.py new file mode 100644 index 00000000..5d49f3da --- /dev/null +++ b/test/test_get_filter_parameter.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.get_filter_parameter import GetFilterParameter + + +class TestGetFilterParameter(unittest.TestCase): + """GetFilterParameter unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetFilterParameter: + """Test GetFilterParameter + 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 `GetFilterParameter` + """ + model = GetFilterParameter() + if include_optional: + return GetFilterParameter( + id = '', + user_id = '', + vault_account_id = 1.337, + connection_method = '', + fee_level = '', + app_url = '', + app_name = '' + ) + else: + return GetFilterParameter( + ) + """ + + def testGetFilterParameter(self): + """Test GetFilterParameter""" + # 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/test/test_get_max_spendable_amount_response.py b/test/test_get_max_spendable_amount_response.py new file mode 100644 index 00000000..4dcc1035 --- /dev/null +++ b/test/test_get_max_spendable_amount_response.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.get_max_spendable_amount_response import ( + GetMaxSpendableAmountResponse, +) + + +class TestGetMaxSpendableAmountResponse(unittest.TestCase): + """GetMaxSpendableAmountResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetMaxSpendableAmountResponse: + """Test GetMaxSpendableAmountResponse + 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 `GetMaxSpendableAmountResponse` + """ + model = GetMaxSpendableAmountResponse() + if include_optional: + return GetMaxSpendableAmountResponse( + max_spendable_amount = '' + ) + else: + return GetMaxSpendableAmountResponse( + ) + """ + + def testGetMaxSpendableAmountResponse(self): + """Test GetMaxSpendableAmountResponse""" + # 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/test/test_get_nfts_response.py b/test/test_get_nfts_response.py new file mode 100644 index 00000000..c67cf60d --- /dev/null +++ b/test/test_get_nfts_response.py @@ -0,0 +1,73 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.get_nfts_response import GetNFTsResponse + + +class TestGetNFTsResponse(unittest.TestCase): + """GetNFTsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetNFTsResponse: + """Test GetNFTsResponse + 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 `GetNFTsResponse` + """ + model = GetNFTsResponse() + if include_optional: + return GetNFTsResponse( + paging = fireblocks_client.models.paging.Paging( + next = '', ), + data = [ + fireblocks_client.models.token_response.TokenResponse( + id = '', + token_id = '', + standard = '', + metadata_uri = '', + cached_metadata_uri = '', + media = [ + fireblocks_client.models.media_entity_response.MediaEntityResponse( + url = '', + content_type = 'IMAGE', ) + ], + spam = null, + collection = null, + blockchain_descriptor = 'ETH', + description = '', + name = '', ) + ] + ) + else: + return GetNFTsResponse( + ) + """ + + def testGetNFTsResponse(self): + """Test GetNFTsResponse""" + # 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/test/test_get_ota_status_response.py b/test/test_get_ota_status_response.py new file mode 100644 index 00000000..f9ef5308 --- /dev/null +++ b/test/test_get_ota_status_response.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.get_ota_status_response import GetOtaStatusResponse + + +class TestGetOtaStatusResponse(unittest.TestCase): + """GetOtaStatusResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetOtaStatusResponse: + """Test GetOtaStatusResponse + 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 `GetOtaStatusResponse` + """ + model = GetOtaStatusResponse() + if include_optional: + return GetOtaStatusResponse( + enabled = True + ) + else: + return GetOtaStatusResponse( + ) + """ + + def testGetOtaStatusResponse(self): + """Test GetOtaStatusResponse""" + # 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/test/test_get_ownership_tokens_response.py b/test/test_get_ownership_tokens_response.py new file mode 100644 index 00000000..dcab778e --- /dev/null +++ b/test/test_get_ownership_tokens_response.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.get_ownership_tokens_response import ( + GetOwnershipTokensResponse, +) + + +class TestGetOwnershipTokensResponse(unittest.TestCase): + """GetOwnershipTokensResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetOwnershipTokensResponse: + """Test GetOwnershipTokensResponse + 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 `GetOwnershipTokensResponse` + """ + model = GetOwnershipTokensResponse() + if include_optional: + return GetOwnershipTokensResponse( + paging = fireblocks_client.models.paging.Paging( + next = '', ), + data = [ + fireblocks_client.models.token_ownership_response.TokenOwnershipResponse( + id = '', + token_id = '', + standard = '', + metadata_uri = '', + cached_metadata_uri = '', + media = [ + fireblocks_client.models.media_entity_response.MediaEntityResponse( + url = '', + content_type = 'IMAGE', ) + ], + spam = null, + collection = null, + balance = '', + vault_account_id = '', + ownership_start_time = 1.337, + ownership_last_update_time = 1.337, + blockchain_descriptor = 'ETH', + description = '', + name = '', + ncw_id = '', + ncw_account_id = '', + status = 'LISTED', ) + ] + ) + else: + return GetOwnershipTokensResponse( + ) + """ + + def testGetOwnershipTokensResponse(self): + """Test GetOwnershipTokensResponse""" + # 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/test/test_get_transaction_operation.py b/test/test_get_transaction_operation.py new file mode 100644 index 00000000..7f215eaa --- /dev/null +++ b/test/test_get_transaction_operation.py @@ -0,0 +1,36 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.get_transaction_operation import GetTransactionOperation + + +class TestGetTransactionOperation(unittest.TestCase): + """GetTransactionOperation unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testGetTransactionOperation(self): + """Test GetTransactionOperation""" + # inst = GetTransactionOperation() + + +if __name__ == "__main__": + unittest.main() diff --git a/test/test_get_whitelist_ip_addresses_response.py b/test/test_get_whitelist_ip_addresses_response.py new file mode 100644 index 00000000..233988bd --- /dev/null +++ b/test/test_get_whitelist_ip_addresses_response.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.get_whitelist_ip_addresses_response import ( + GetWhitelistIpAddressesResponse, +) + + +class TestGetWhitelistIpAddressesResponse(unittest.TestCase): + """GetWhitelistIpAddressesResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetWhitelistIpAddressesResponse: + """Test GetWhitelistIpAddressesResponse + 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 `GetWhitelistIpAddressesResponse` + """ + model = GetWhitelistIpAddressesResponse() + if include_optional: + return GetWhitelistIpAddressesResponse( + user_id = '', + whitelisted_ips = [ + '' + ] + ) + else: + return GetWhitelistIpAddressesResponse( + ) + """ + + def testGetWhitelistIpAddressesResponse(self): + """Test GetWhitelistIpAddressesResponse""" + # 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/test/test_get_workspace_status_response.py b/test/test_get_workspace_status_response.py new file mode 100644 index 00000000..6341f004 --- /dev/null +++ b/test/test_get_workspace_status_response.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.get_workspace_status_response import ( + GetWorkspaceStatusResponse, +) + + +class TestGetWorkspaceStatusResponse(unittest.TestCase): + """GetWorkspaceStatusResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetWorkspaceStatusResponse: + """Test GetWorkspaceStatusResponse + 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 `GetWorkspaceStatusResponse` + """ + model = GetWorkspaceStatusResponse() + if include_optional: + return GetWorkspaceStatusResponse( + status = '' + ) + else: + return GetWorkspaceStatusResponse( + ) + """ + + def testGetWorkspaceStatusResponse(self): + """Test GetWorkspaceStatusResponse""" + # 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/test/test_http_contract_does_not_exist_error.py b/test/test_http_contract_does_not_exist_error.py new file mode 100644 index 00000000..27e6e064 --- /dev/null +++ b/test/test_http_contract_does_not_exist_error.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.http_contract_does_not_exist_error import ( + HttpContractDoesNotExistError, +) + + +class TestHttpContractDoesNotExistError(unittest.TestCase): + """HttpContractDoesNotExistError unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> HttpContractDoesNotExistError: + """Test HttpContractDoesNotExistError + 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 `HttpContractDoesNotExistError` + """ + model = HttpContractDoesNotExistError() + if include_optional: + return HttpContractDoesNotExistError( + message = 'Contract does not exist', + code = '404' + ) + else: + return HttpContractDoesNotExistError( + ) + """ + + def testHttpContractDoesNotExistError(self): + """Test HttpContractDoesNotExistError""" + # 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/test/test_instruction_amount.py b/test/test_instruction_amount.py new file mode 100644 index 00000000..af13e47f --- /dev/null +++ b/test/test_instruction_amount.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.instruction_amount import InstructionAmount + + +class TestInstructionAmount(unittest.TestCase): + """InstructionAmount unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> InstructionAmount: + """Test InstructionAmount + 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 `InstructionAmount` + """ + model = InstructionAmount() + if include_optional: + return InstructionAmount( + amount = '', + asset_id = '' + ) + else: + return InstructionAmount( + amount = '', + asset_id = '', + ) + """ + + def testInstructionAmount(self): + """Test InstructionAmount""" + # 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/test/test_internal_transfer_response.py b/test/test_internal_transfer_response.py new file mode 100644 index 00000000..eee50c77 --- /dev/null +++ b/test/test_internal_transfer_response.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.internal_transfer_response import InternalTransferResponse + + +class TestInternalTransferResponse(unittest.TestCase): + """InternalTransferResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> InternalTransferResponse: + """Test InternalTransferResponse + 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 `InternalTransferResponse` + """ + model = InternalTransferResponse() + if include_optional: + return InternalTransferResponse( + success = True + ) + else: + return InternalTransferResponse( + success = True, + ) + """ + + def testInternalTransferResponse(self): + """Test InternalTransferResponse""" + # 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/test/test_internal_wallets_api.py b/test/test_internal_wallets_api.py new file mode 100644 index 00000000..8a5ac414 --- /dev/null +++ b/test/test_internal_wallets_api.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.api.internal_wallets_api import InternalWalletsApi + + +class TestInternalWalletsApi(unittest.TestCase): + """InternalWalletsApi unit test stubs""" + + def setUp(self) -> None: + self.api = InternalWalletsApi() + + def tearDown(self) -> None: + pass + + def test_create_internal_wallet(self) -> None: + """Test case for create_internal_wallet + + Create an internal wallet + """ + pass + + def test_create_internal_wallet_asset(self) -> None: + """Test case for create_internal_wallet_asset + + Add an asset to an internal wallet + """ + pass + + def test_delete_internal_wallet(self) -> None: + """Test case for delete_internal_wallet + + Delete an internal wallet + """ + pass + + def test_delete_internal_wallet_asset(self) -> None: + """Test case for delete_internal_wallet_asset + + Delete a whitelisted address from an internal wallet + """ + pass + + def test_get_internal_wallet(self) -> None: + """Test case for get_internal_wallet + + Get assets for internal wallet + """ + pass + + def test_get_internal_wallet_asset(self) -> None: + """Test case for get_internal_wallet_asset + + Get an asset from an internal wallet + """ + pass + + def test_get_internal_wallets(self) -> None: + """Test case for get_internal_wallets + + List internal wallets + """ + pass + + def test_set_customer_ref_id_for_internal_wallet(self) -> None: + """Test case for set_customer_ref_id_for_internal_wallet + + Set an AML/KYT customer reference ID for an internal wallet + """ + pass + + +if __name__ == "__main__": + unittest.main() diff --git a/test/test_job.py b/test/test_job.py new file mode 100644 index 00000000..e0ea1a63 --- /dev/null +++ b/test/test_job.py @@ -0,0 +1,70 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.job import Job + + +class TestJob(unittest.TestCase): + """Job unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> Job: + """Test Job + 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 `Job` + """ + model = Job() + if include_optional: + return Job( + id = '', + tenant_id = '', + type = '', + user_id = '', + created = 1.337, + updated = 1.337, + state = '', + tasks = [ + fireblocks_client.models.task.Task( + id = '', + job_id = '', + type = '', + tenant_id = '', + created = 1.337, + updated = 1.337, + state = '', ) + ] + ) + else: + return Job( + ) + """ + + def testJob(self): + """Test Job""" + # 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/test/test_job_created.py b/test/test_job_created.py new file mode 100644 index 00000000..b99029bb --- /dev/null +++ b/test/test_job_created.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.job_created import JobCreated + + +class TestJobCreated(unittest.TestCase): + """JobCreated unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> JobCreated: + """Test JobCreated + 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 `JobCreated` + """ + model = JobCreated() + if include_optional: + return JobCreated( + job_id = '' + ) + else: + return JobCreated( + ) + """ + + def testJobCreated(self): + """Test JobCreated""" + # 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/test/test_job_management_api.py b/test/test_job_management_api.py new file mode 100644 index 00000000..41c5391c --- /dev/null +++ b/test/test_job_management_api.py @@ -0,0 +1,74 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.api.job_management_api import JobManagementApi + + +class TestJobManagementApi(unittest.TestCase): + """JobManagementApi unit test stubs""" + + def setUp(self) -> None: + self.api = JobManagementApi() + + def tearDown(self) -> None: + pass + + def test_cancel_job(self) -> None: + """Test case for cancel_job + + Cancel a running job + """ + pass + + def test_continue_job(self) -> None: + """Test case for continue_job + + Continue a paused job + """ + pass + + def test_get_job(self) -> None: + """Test case for get_job + + Get job details + """ + pass + + def test_get_job_tasks(self) -> None: + """Test case for get_job_tasks + + Return a list of tasks for given job + """ + pass + + def test_get_jobs(self) -> None: + """Test case for get_jobs + + Return a list of jobs belonging to tenant + """ + pass + + def test_pause_job(self) -> None: + """Test case for pause_job + + Pause a job + """ + pass + + +if __name__ == "__main__": + unittest.main() diff --git a/test/test_lean_abi_function.py b/test/test_lean_abi_function.py new file mode 100644 index 00000000..6c49abb3 --- /dev/null +++ b/test/test_lean_abi_function.py @@ -0,0 +1,86 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.lean_abi_function import LeanAbiFunction + + +class TestLeanAbiFunction(unittest.TestCase): + """LeanAbiFunction unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> LeanAbiFunction: + """Test LeanAbiFunction + 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 `LeanAbiFunction` + """ + model = LeanAbiFunction() + if include_optional: + return LeanAbiFunction( + name = 'initialize', + inputs = [ + fireblocks_client.models.parameter_with_value.ParameterWithValue( + name = '_name', + description = 'The name of the token', + internal_type = 'string', + type = 'string', + components = [ + fireblocks_client.models.parameter.Parameter( + name = '_name', + description = 'The name of the token', + internal_type = 'string', + type = 'string', ) + ], + value = 'true', + function_value = null, ) + ] + ) + else: + return LeanAbiFunction( + inputs = [ + fireblocks_client.models.parameter_with_value.ParameterWithValue( + name = '_name', + description = 'The name of the token', + internal_type = 'string', + type = 'string', + components = [ + fireblocks_client.models.parameter.Parameter( + name = '_name', + description = 'The name of the token', + internal_type = 'string', + type = 'string', ) + ], + value = 'true', + function_value = null, ) + ], + ) + """ + + def testLeanAbiFunction(self): + """Test LeanAbiFunction""" + # 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/test/test_lean_contract_dto.py b/test/test_lean_contract_dto.py new file mode 100644 index 00000000..8ec711a1 --- /dev/null +++ b/test/test_lean_contract_dto.py @@ -0,0 +1,78 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.lean_contract_dto import LeanContractDto + + +class TestLeanContractDto(unittest.TestCase): + """LeanContractDto unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> LeanContractDto: + """Test LeanContractDto + 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 `LeanContractDto` + """ + model = LeanContractDto() + if include_optional: + return LeanContractDto( + id = 'b70701f4-d7b1-4795-a8ee-b09cdb5b850d', + name = 'My Contract', + description = 'an ERC20 implementation', + attributes = fireblocks_client.models.contract_attributes.ContractAttributes( + use_cases = [ + '' + ], + standards = [ + '' + ], + auditor = fireblocks_client.models.auditor_data.AuditorData( + name = '', + image_url = '', + link = '', ), ), + is_public = True, + can_deploy = True, + owner = 'b70701f4-d7b1-4795-a8ee-b09cdb5b850d', + vendor = fireblocks_client.models.vendor_dto.VendorDto( + id = 'b70701f4-d7b1-4795-a8ee-b09cdb5b4453', + name = 'Fireblocks', ), + type = 'FUNGIBLE_TOKEN' + ) + else: + return LeanContractDto( + id = 'b70701f4-d7b1-4795-a8ee-b09cdb5b850d', + name = 'My Contract', + description = 'an ERC20 implementation', + is_public = True, + ) + """ + + def testLeanContractDto(self): + """Test LeanContractDto""" + # 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/test/test_lean_deployed_contract_response_dto.py b/test/test_lean_deployed_contract_response_dto.py new file mode 100644 index 00000000..d4674bfe --- /dev/null +++ b/test/test_lean_deployed_contract_response_dto.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.lean_deployed_contract_response_dto import ( + LeanDeployedContractResponseDto, +) + + +class TestLeanDeployedContractResponseDto(unittest.TestCase): + """LeanDeployedContractResponseDto unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> LeanDeployedContractResponseDto: + """Test LeanDeployedContractResponseDto + 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 `LeanDeployedContractResponseDto` + """ + model = LeanDeployedContractResponseDto() + if include_optional: + return LeanDeployedContractResponseDto( + id = 'b70701f4-d7b1-4795-a8ee-b09cdb5b850d', + contract_address = '0xC2c4e1Db41F0bB97996D0eD0542D2170d146FB66', + contract_template_id = 'b70701f4-d7b1-4795-a8ee-b09cdb5b850d', + blockchain_id = '' + ) + else: + return LeanDeployedContractResponseDto( + id = 'b70701f4-d7b1-4795-a8ee-b09cdb5b850d', + contract_address = '0xC2c4e1Db41F0bB97996D0eD0542D2170d146FB66', + contract_template_id = 'b70701f4-d7b1-4795-a8ee-b09cdb5b850d', + blockchain_id = '', + ) + """ + + def testLeanDeployedContractResponseDto(self): + """Test LeanDeployedContractResponseDto""" + # 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/test/test_list_owned_collections_response.py b/test/test_list_owned_collections_response.py new file mode 100644 index 00000000..d69ee685 --- /dev/null +++ b/test/test_list_owned_collections_response.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.list_owned_collections_response import ( + ListOwnedCollectionsResponse, +) + + +class TestListOwnedCollectionsResponse(unittest.TestCase): + """ListOwnedCollectionsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ListOwnedCollectionsResponse: + """Test ListOwnedCollectionsResponse + 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 `ListOwnedCollectionsResponse` + """ + model = ListOwnedCollectionsResponse() + if include_optional: + return ListOwnedCollectionsResponse( + paging = fireblocks_client.models.paging.Paging( + next = '', ), + data = [ + fireblocks_client.models.collection_ownership_response.CollectionOwnershipResponse( + id = '', + name = '', + symbol = '', + standard = '', + blockchain_descriptor = 'ETH', + contract_address = '', ) + ] + ) + else: + return ListOwnedCollectionsResponse( + ) + """ + + def testListOwnedCollectionsResponse(self): + """Test ListOwnedCollectionsResponse""" + # 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/test/test_list_owned_tokens_response.py b/test/test_list_owned_tokens_response.py new file mode 100644 index 00000000..0be94784 --- /dev/null +++ b/test/test_list_owned_tokens_response.py @@ -0,0 +1,73 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.list_owned_tokens_response import ListOwnedTokensResponse + + +class TestListOwnedTokensResponse(unittest.TestCase): + """ListOwnedTokensResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ListOwnedTokensResponse: + """Test ListOwnedTokensResponse + 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 `ListOwnedTokensResponse` + """ + model = ListOwnedTokensResponse() + if include_optional: + return ListOwnedTokensResponse( + paging = fireblocks_client.models.paging.Paging( + next = '', ), + data = [ + fireblocks_client.models.token_response.TokenResponse( + id = '', + token_id = '', + standard = '', + metadata_uri = '', + cached_metadata_uri = '', + media = [ + fireblocks_client.models.media_entity_response.MediaEntityResponse( + url = '', + content_type = 'IMAGE', ) + ], + spam = null, + collection = null, + blockchain_descriptor = 'ETH', + description = '', + name = '', ) + ] + ) + else: + return ListOwnedTokensResponse( + ) + """ + + def testListOwnedTokensResponse(self): + """Test ListOwnedTokensResponse""" + # 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/test/test_media_entity_response.py b/test/test_media_entity_response.py new file mode 100644 index 00000000..ebf892f4 --- /dev/null +++ b/test/test_media_entity_response.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.media_entity_response import MediaEntityResponse + + +class TestMediaEntityResponse(unittest.TestCase): + """MediaEntityResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> MediaEntityResponse: + """Test MediaEntityResponse + 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 `MediaEntityResponse` + """ + model = MediaEntityResponse() + if include_optional: + return MediaEntityResponse( + url = '', + content_type = 'IMAGE' + ) + else: + return MediaEntityResponse( + url = '', + content_type = 'IMAGE', + ) + """ + + def testMediaEntityResponse(self): + """Test MediaEntityResponse""" + # 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/test/test_models/test_add_collateral_request_body.py b/test/test_models/test_add_collateral_request_body.py deleted file mode 100644 index 252a39b6..00000000 --- a/test/test_models/test_add_collateral_request_body.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.add_collateral_request_body import AddCollateralRequestBody -from fireblocks_client import configuration - - -class TestAddCollateralRequestBody(unittest.TestCase): - """AddCollateralRequestBody unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_aml_screening_result.py b/test/test_models/test_aml_screening_result.py deleted file mode 100644 index 8bf59840..00000000 --- a/test/test_models/test_aml_screening_result.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.aml_screening_result import AmlScreeningResult -from fireblocks_client import configuration - - -class TestAmlScreeningResult(unittest.TestCase): - """AmlScreeningResult unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_amount_aggregation_time_period_method.py b/test/test_models/test_amount_aggregation_time_period_method.py deleted file mode 100644 index fb6ff08e..00000000 --- a/test/test_models/test_amount_aggregation_time_period_method.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.amount_aggregation_time_period_method import AmountAggregationTimePeriodMethod -from fireblocks_client import configuration - - -class TestAmountAggregationTimePeriodMethod(unittest.TestCase): - """AmountAggregationTimePeriodMethod unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_amount_info.py b/test/test_models/test_amount_info.py deleted file mode 100644 index e6fa2041..00000000 --- a/test/test_models/test_amount_info.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.amount_info import AmountInfo -from fireblocks_client import configuration - - -class TestAmountInfo(unittest.TestCase): - """AmountInfo unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_asset_type_response.py b/test/test_models/test_asset_type_response.py deleted file mode 100644 index 25fdf57f..00000000 --- a/test/test_models/test_asset_type_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.asset_type_response import AssetTypeResponse -from fireblocks_client import configuration - - -class TestAssetTypeResponse(unittest.TestCase): - """AssetTypeResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_asset_wallet.py b/test/test_models/test_asset_wallet.py deleted file mode 100644 index 27623ed3..00000000 --- a/test/test_models/test_asset_wallet.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.asset_wallet import AssetWallet -from fireblocks_client import configuration - - -class TestAssetWallet(unittest.TestCase): - """AssetWallet unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_authorization_groups.py b/test/test_models/test_authorization_groups.py deleted file mode 100644 index ddcff7f6..00000000 --- a/test/test_models/test_authorization_groups.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.authorization_groups import AuthorizationGroups -from fireblocks_client import configuration - - -class TestAuthorizationGroups(unittest.TestCase): - """AuthorizationGroups unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_authorization_info.py b/test/test_models/test_authorization_info.py deleted file mode 100644 index 1df0d40a..00000000 --- a/test/test_models/test_authorization_info.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.authorization_info import AuthorizationInfo -from fireblocks_client import configuration - - -class TestAuthorizationInfo(unittest.TestCase): - """AuthorizationInfo unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_block_info.py b/test/test_models/test_block_info.py deleted file mode 100644 index ccc23ee9..00000000 --- a/test/test_models/test_block_info.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.block_info import BlockInfo -from fireblocks_client import configuration - - -class TestBlockInfo(unittest.TestCase): - """BlockInfo unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_cancel_transaction_response.py b/test/test_models/test_cancel_transaction_response.py deleted file mode 100644 index 7a4b990c..00000000 --- a/test/test_models/test_cancel_transaction_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.cancel_transaction_response import CancelTransactionResponse -from fireblocks_client import configuration - - -class TestCancelTransactionResponse(unittest.TestCase): - """CancelTransactionResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_collection_ownership_response.py b/test/test_models/test_collection_ownership_response.py deleted file mode 100644 index b34d8fa7..00000000 --- a/test/test_models/test_collection_ownership_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.collection_ownership_response import CollectionOwnershipResponse -from fireblocks_client import configuration - - -class TestCollectionOwnershipResponse(unittest.TestCase): - """CollectionOwnershipResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_config_change_request_status.py b/test/test_models/test_config_change_request_status.py deleted file mode 100644 index 8a8e8f99..00000000 --- a/test/test_models/test_config_change_request_status.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.config_change_request_status import ConfigChangeRequestStatus -from fireblocks_client import configuration - - -class TestConfigChangeRequestStatus(unittest.TestCase): - """ConfigChangeRequestStatus unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_create_address_response.py b/test/test_models/test_create_address_response.py deleted file mode 100644 index 87870ed9..00000000 --- a/test/test_models/test_create_address_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.create_address_response import CreateAddressResponse -from fireblocks_client import configuration - - -class TestCreateAddressResponse(unittest.TestCase): - """CreateAddressResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_create_connection_request.py b/test/test_models/test_create_connection_request.py deleted file mode 100644 index bf7c9eec..00000000 --- a/test/test_models/test_create_connection_request.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.create_connection_request import CreateConnectionRequest -from fireblocks_client import configuration - - -class TestCreateConnectionRequest(unittest.TestCase): - """CreateConnectionRequest unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_create_connection_response.py b/test/test_models/test_create_connection_response.py deleted file mode 100644 index 99c1a7b5..00000000 --- a/test/test_models/test_create_connection_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.create_connection_response import CreateConnectionResponse -from fireblocks_client import configuration - - -class TestCreateConnectionResponse(unittest.TestCase): - """CreateConnectionResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_create_internal_transfer_request.py b/test/test_models/test_create_internal_transfer_request.py deleted file mode 100644 index 87cbbcb6..00000000 --- a/test/test_models/test_create_internal_transfer_request.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.create_internal_transfer_request import CreateInternalTransferRequest -from fireblocks_client import configuration - - -class TestCreateInternalTransferRequest(unittest.TestCase): - """CreateInternalTransferRequest unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_create_payout_request.py b/test/test_models/test_create_payout_request.py deleted file mode 100644 index 4fea5c9c..00000000 --- a/test/test_models/test_create_payout_request.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.create_payout_request import CreatePayoutRequest -from fireblocks_client import configuration - - -class TestCreatePayoutRequest(unittest.TestCase): - """CreatePayoutRequest unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_create_transaction_response.py b/test/test_models/test_create_transaction_response.py deleted file mode 100644 index 25332e1d..00000000 --- a/test/test_models/test_create_transaction_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.create_transaction_response import CreateTransactionResponse -from fireblocks_client import configuration - - -class TestCreateTransactionResponse(unittest.TestCase): - """CreateTransactionResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_create_users_group_response.py b/test/test_models/test_create_users_group_response.py deleted file mode 100644 index 54d21860..00000000 --- a/test/test_models/test_create_users_group_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.create_users_group_response import CreateUsersGroupResponse -from fireblocks_client import configuration - - -class TestCreateUsersGroupResponse(unittest.TestCase): - """CreateUsersGroupResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_create_vault_asset_response.py b/test/test_models/test_create_vault_asset_response.py deleted file mode 100644 index 38506e9f..00000000 --- a/test/test_models/test_create_vault_asset_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.create_vault_asset_response import CreateVaultAssetResponse -from fireblocks_client import configuration - - -class TestCreateVaultAssetResponse(unittest.TestCase): - """CreateVaultAssetResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_custom_crypto_routing_dest.py b/test/test_models/test_custom_crypto_routing_dest.py deleted file mode 100644 index ec2b813e..00000000 --- a/test/test_models/test_custom_crypto_routing_dest.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.custom_crypto_routing_dest import CustomCryptoRoutingDest -from fireblocks_client import configuration - - -class TestCustomCryptoRoutingDest(unittest.TestCase): - """CustomCryptoRoutingDest unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_custom_fiat_routing_dest.py b/test/test_models/test_custom_fiat_routing_dest.py deleted file mode 100644 index deefa589..00000000 --- a/test/test_models/test_custom_fiat_routing_dest.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.custom_fiat_routing_dest import CustomFiatRoutingDest -from fireblocks_client import configuration - - -class TestCustomFiatRoutingDest(unittest.TestCase): - """CustomFiatRoutingDest unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_default_network_routing_dest.py b/test/test_models/test_default_network_routing_dest.py deleted file mode 100644 index f7fac68a..00000000 --- a/test/test_models/test_default_network_routing_dest.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.default_network_routing_dest import DefaultNetworkRoutingDest -from fireblocks_client import configuration - - -class TestDefaultNetworkRoutingDest(unittest.TestCase): - """DefaultNetworkRoutingDest unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_destination_transfer_peer_path.py b/test/test_models/test_destination_transfer_peer_path.py deleted file mode 100644 index bcc00287..00000000 --- a/test/test_models/test_destination_transfer_peer_path.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.destination_transfer_peer_path import DestinationTransferPeerPath -from fireblocks_client import configuration - - -class TestDestinationTransferPeerPath(unittest.TestCase): - """DestinationTransferPeerPath unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_destination_transfer_peer_path_response.py b/test/test_models/test_destination_transfer_peer_path_response.py deleted file mode 100644 index dd908b64..00000000 --- a/test/test_models/test_destination_transfer_peer_path_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.destination_transfer_peer_path_response import DestinationTransferPeerPathResponse -from fireblocks_client import configuration - - -class TestDestinationTransferPeerPathResponse(unittest.TestCase): - """DestinationTransferPeerPathResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_dispatch_payout_response.py b/test/test_models/test_dispatch_payout_response.py deleted file mode 100644 index 757b1ddf..00000000 --- a/test/test_models/test_dispatch_payout_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.dispatch_payout_response import DispatchPayoutResponse -from fireblocks_client import configuration - - -class TestDispatchPayoutResponse(unittest.TestCase): - """DispatchPayoutResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_draft_response.py b/test/test_models/test_draft_response.py deleted file mode 100644 index 60d87c01..00000000 --- a/test/test_models/test_draft_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.draft_response import DraftResponse -from fireblocks_client import configuration - - -class TestDraftResponse(unittest.TestCase): - """DraftResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_draft_review_and_validation_response.py b/test/test_models/test_draft_review_and_validation_response.py deleted file mode 100644 index 63cca90f..00000000 --- a/test/test_models/test_draft_review_and_validation_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.draft_review_and_validation_response import DraftReviewAndValidationResponse -from fireblocks_client import configuration - - -class TestDraftReviewAndValidationResponse(unittest.TestCase): - """DraftReviewAndValidationResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_drop_transaction_request.py b/test/test_models/test_drop_transaction_request.py deleted file mode 100644 index 2ed6c4dd..00000000 --- a/test/test_models/test_drop_transaction_request.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.drop_transaction_request import DropTransactionRequest -from fireblocks_client import configuration - - -class TestDropTransactionRequest(unittest.TestCase): - """DropTransactionRequest unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_drop_transaction_response.py b/test/test_models/test_drop_transaction_response.py deleted file mode 100644 index 90053034..00000000 --- a/test/test_models/test_drop_transaction_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.drop_transaction_response import DropTransactionResponse -from fireblocks_client import configuration - - -class TestDropTransactionResponse(unittest.TestCase): - """DropTransactionResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_error.py b/test/test_models/test_error.py deleted file mode 100644 index 603654ea..00000000 --- a/test/test_models/test_error.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.error import Error -from fireblocks_client import configuration - - -class TestError(unittest.TestCase): - """Error unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_error_response.py b/test/test_models/test_error_response.py deleted file mode 100644 index cff1b35e..00000000 --- a/test/test_models/test_error_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.error_response import ErrorResponse -from fireblocks_client import configuration - - -class TestErrorResponse(unittest.TestCase): - """ErrorResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_estimated_network_fee_response.py b/test/test_models/test_estimated_network_fee_response.py deleted file mode 100644 index 21966593..00000000 --- a/test/test_models/test_estimated_network_fee_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.estimated_network_fee_response import EstimatedNetworkFeeResponse -from fireblocks_client import configuration - - -class TestEstimatedNetworkFeeResponse(unittest.TestCase): - """EstimatedNetworkFeeResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_estimated_transaction_fee_response.py b/test/test_models/test_estimated_transaction_fee_response.py deleted file mode 100644 index 528b34ef..00000000 --- a/test/test_models/test_estimated_transaction_fee_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.estimated_transaction_fee_response import EstimatedTransactionFeeResponse -from fireblocks_client import configuration - - -class TestEstimatedTransactionFeeResponse(unittest.TestCase): - """EstimatedTransactionFeeResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_exchange_account.py b/test/test_models/test_exchange_account.py deleted file mode 100644 index d0d59288..00000000 --- a/test/test_models/test_exchange_account.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.exchange_account import ExchangeAccount -from fireblocks_client import configuration - - -class TestExchangeAccount(unittest.TestCase): - """ExchangeAccount unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_exchange_asset.py b/test/test_models/test_exchange_asset.py deleted file mode 100644 index 47a55964..00000000 --- a/test/test_models/test_exchange_asset.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.exchange_asset import ExchangeAsset -from fireblocks_client import configuration - - -class TestExchangeAsset(unittest.TestCase): - """ExchangeAsset unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_exchange_trading_account.py b/test/test_models/test_exchange_trading_account.py deleted file mode 100644 index a49f1b46..00000000 --- a/test/test_models/test_exchange_trading_account.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.exchange_trading_account import ExchangeTradingAccount -from fireblocks_client import configuration - - -class TestExchangeTradingAccount(unittest.TestCase): - """ExchangeTradingAccount unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_exchange_type.py b/test/test_models/test_exchange_type.py deleted file mode 100644 index 656280e4..00000000 --- a/test/test_models/test_exchange_type.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.exchange_type import ExchangeType -from fireblocks_client import configuration - - -class TestExchangeType(unittest.TestCase): - """ExchangeType unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_external_wallet_asset.py b/test/test_models/test_external_wallet_asset.py deleted file mode 100644 index 1316b8c2..00000000 --- a/test/test_models/test_external_wallet_asset.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.external_wallet_asset import ExternalWalletAsset -from fireblocks_client import configuration - - -class TestExternalWalletAsset(unittest.TestCase): - """ExternalWalletAsset unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_fee_info.py b/test/test_models/test_fee_info.py deleted file mode 100644 index 87448747..00000000 --- a/test/test_models/test_fee_info.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.fee_info import FeeInfo -from fireblocks_client import configuration - - -class TestFeeInfo(unittest.TestCase): - """FeeInfo unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_fiat_account.py b/test/test_models/test_fiat_account.py deleted file mode 100644 index fae5e5de..00000000 --- a/test/test_models/test_fiat_account.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.fiat_account import FiatAccount -from fireblocks_client import configuration - - -class TestFiatAccount(unittest.TestCase): - """FiatAccount unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_fiat_account_type.py b/test/test_models/test_fiat_account_type.py deleted file mode 100644 index 058275ab..00000000 --- a/test/test_models/test_fiat_account_type.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.fiat_account_type import FiatAccountType -from fireblocks_client import configuration - - -class TestFiatAccountType(unittest.TestCase): - """FiatAccountType unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_fiat_asset.py b/test/test_models/test_fiat_asset.py deleted file mode 100644 index 1b6f587f..00000000 --- a/test/test_models/test_fiat_asset.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.fiat_asset import FiatAsset -from fireblocks_client import configuration - - -class TestFiatAsset(unittest.TestCase): - """FiatAsset unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_freeze_transaction_response.py b/test/test_models/test_freeze_transaction_response.py deleted file mode 100644 index da290aa6..00000000 --- a/test/test_models/test_freeze_transaction_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.freeze_transaction_response import FreezeTransactionResponse -from fireblocks_client import configuration - - -class TestFreezeTransactionResponse(unittest.TestCase): - """FreezeTransactionResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_gas_station_configuration.py b/test/test_models/test_gas_station_configuration.py deleted file mode 100644 index 66e7e262..00000000 --- a/test/test_models/test_gas_station_configuration.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.gas_station_configuration import GasStationConfiguration -from fireblocks_client import configuration - - -class TestGasStationConfiguration(unittest.TestCase): - """GasStationConfiguration unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_gas_station_properties_response.py b/test/test_models/test_gas_station_properties_response.py deleted file mode 100644 index cbceffc2..00000000 --- a/test/test_models/test_gas_station_properties_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.gas_station_properties_response import GasStationPropertiesResponse -from fireblocks_client import configuration - - -class TestGasStationPropertiesResponse(unittest.TestCase): - """GasStationPropertiesResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_get_connections_response.py b/test/test_models/test_get_connections_response.py deleted file mode 100644 index 5e3bd364..00000000 --- a/test/test_models/test_get_connections_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.get_connections_response import GetConnectionsResponse -from fireblocks_client import configuration - - -class TestGetConnectionsResponse(unittest.TestCase): - """GetConnectionsResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_get_settlement_response.py b/test/test_models/test_get_settlement_response.py deleted file mode 100644 index 3dc0f4f5..00000000 --- a/test/test_models/test_get_settlement_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.get_settlement_response import GetSettlementResponse -from fireblocks_client import configuration - - -class TestGetSettlementResponse(unittest.TestCase): - """GetSettlementResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_get_transaction_operation.py b/test/test_models/test_get_transaction_operation.py deleted file mode 100644 index de092973..00000000 --- a/test/test_models/test_get_transaction_operation.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.get_transaction_operation import GetTransactionOperation -from fireblocks_client import configuration - - -class TestGetTransactionOperation(unittest.TestCase): - """GetTransactionOperation unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_get_users_response.py b/test/test_models/test_get_users_response.py deleted file mode 100644 index 7a483bf3..00000000 --- a/test/test_models/test_get_users_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.get_users_response import GetUsersResponse -from fireblocks_client import configuration - - -class TestGetUsersResponse(unittest.TestCase): - """GetUsersResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_instruction_amount.py b/test/test_models/test_instruction_amount.py deleted file mode 100644 index 9fb72d5e..00000000 --- a/test/test_models/test_instruction_amount.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.instruction_amount import InstructionAmount -from fireblocks_client import configuration - - -class TestInstructionAmount(unittest.TestCase): - """InstructionAmount unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_media_entity_response.py b/test/test_models/test_media_entity_response.py deleted file mode 100644 index e27a9177..00000000 --- a/test/test_models/test_media_entity_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.media_entity_response import MediaEntityResponse -from fireblocks_client import configuration - - -class TestMediaEntityResponse(unittest.TestCase): - """MediaEntityResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_ncw.py b/test/test_models/test_ncw.py deleted file mode 100644 index 2ac37801..00000000 --- a/test/test_models/test_ncw.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.ncw import Ncw -from fireblocks_client import configuration - - -class TestNcw(unittest.TestCase): - """Ncw unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_network_channel.py b/test/test_models/test_network_channel.py deleted file mode 100644 index c7fc3359..00000000 --- a/test/test_models/test_network_channel.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.network_channel import NetworkChannel -from fireblocks_client import configuration - - -class TestNetworkChannel(unittest.TestCase): - """NetworkChannel unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_network_connection.py b/test/test_models/test_network_connection.py deleted file mode 100644 index 73efb778..00000000 --- a/test/test_models/test_network_connection.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.network_connection import NetworkConnection -from fireblocks_client import configuration - - -class TestNetworkConnection(unittest.TestCase): - """NetworkConnection unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_network_connection_response.py b/test/test_models/test_network_connection_response.py deleted file mode 100644 index 51f83446..00000000 --- a/test/test_models/test_network_connection_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.network_connection_response import NetworkConnectionResponse -from fireblocks_client import configuration - - -class TestNetworkConnectionResponse(unittest.TestCase): - """NetworkConnectionResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_network_connection_routing_policy.py b/test/test_models/test_network_connection_routing_policy.py deleted file mode 100644 index e5d814d0..00000000 --- a/test/test_models/test_network_connection_routing_policy.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.network_connection_routing_policy import NetworkConnectionRoutingPolicy -from fireblocks_client import configuration - - -class TestNetworkConnectionRoutingPolicy(unittest.TestCase): - """NetworkConnectionRoutingPolicy unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_network_fee.py b/test/test_models/test_network_fee.py deleted file mode 100644 index 3bb4ed58..00000000 --- a/test/test_models/test_network_fee.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.network_fee import NetworkFee -from fireblocks_client import configuration - - -class TestNetworkFee(unittest.TestCase): - """NetworkFee unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_network_id.py b/test/test_models/test_network_id.py deleted file mode 100644 index 32e59d2b..00000000 --- a/test/test_models/test_network_id.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.network_id import NetworkId -from fireblocks_client import configuration - - -class TestNetworkId(unittest.TestCase): - """NetworkId unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_network_id_response.py b/test/test_models/test_network_id_response.py deleted file mode 100644 index 13afa703..00000000 --- a/test/test_models/test_network_id_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.network_id_response import NetworkIdResponse -from fireblocks_client import configuration - - -class TestNetworkIdResponse(unittest.TestCase): - """NetworkIdResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_network_id_routing_policy.py b/test/test_models/test_network_id_routing_policy.py deleted file mode 100644 index 1d3c881d..00000000 --- a/test/test_models/test_network_id_routing_policy.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.network_id_routing_policy import NetworkIdRoutingPolicy -from fireblocks_client import configuration - - -class TestNetworkIdRoutingPolicy(unittest.TestCase): - """NetworkIdRoutingPolicy unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_network_record.py b/test/test_models/test_network_record.py deleted file mode 100644 index cebda467..00000000 --- a/test/test_models/test_network_record.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.network_record import NetworkRecord -from fireblocks_client import configuration - - -class TestNetworkRecord(unittest.TestCase): - """NetworkRecord unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_none_network_routing_dest.py b/test/test_models/test_none_network_routing_dest.py deleted file mode 100644 index c4f15a74..00000000 --- a/test/test_models/test_none_network_routing_dest.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.none_network_routing_dest import NoneNetworkRoutingDest -from fireblocks_client import configuration - - -class TestNoneNetworkRoutingDest(unittest.TestCase): - """NoneNetworkRoutingDest unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_one_time_address.py b/test/test_models/test_one_time_address.py deleted file mode 100644 index e5408f8e..00000000 --- a/test/test_models/test_one_time_address.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.one_time_address import OneTimeAddress -from fireblocks_client import configuration - - -class TestOneTimeAddress(unittest.TestCase): - """OneTimeAddress unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_paginated_asset_wallet_response.py b/test/test_models/test_paginated_asset_wallet_response.py deleted file mode 100644 index 90d9e058..00000000 --- a/test/test_models/test_paginated_asset_wallet_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.paginated_asset_wallet_response import PaginatedAssetWalletResponse -from fireblocks_client import configuration - - -class TestPaginatedAssetWalletResponse(unittest.TestCase): - """PaginatedAssetWalletResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_paging.py b/test/test_models/test_paging.py deleted file mode 100644 index 16bc454b..00000000 --- a/test/test_models/test_paging.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.paging import Paging -from fireblocks_client import configuration - - -class TestPaging(unittest.TestCase): - """Paging unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_payee_account.py b/test/test_models/test_payee_account.py deleted file mode 100644 index a7eeee84..00000000 --- a/test/test_models/test_payee_account.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.payee_account import PayeeAccount -from fireblocks_client import configuration - - -class TestPayeeAccount(unittest.TestCase): - """PayeeAccount unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_payee_account_response.py b/test/test_models/test_payee_account_response.py deleted file mode 100644 index 7e788d0b..00000000 --- a/test/test_models/test_payee_account_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.payee_account_response import PayeeAccountResponse -from fireblocks_client import configuration - - -class TestPayeeAccountResponse(unittest.TestCase): - """PayeeAccountResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_payee_account_type.py b/test/test_models/test_payee_account_type.py deleted file mode 100644 index 03974166..00000000 --- a/test/test_models/test_payee_account_type.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.payee_account_type import PayeeAccountType -from fireblocks_client import configuration - - -class TestPayeeAccountType(unittest.TestCase): - """PayeeAccountType unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_payment_account.py b/test/test_models/test_payment_account.py deleted file mode 100644 index 43be8670..00000000 --- a/test/test_models/test_payment_account.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.payment_account import PaymentAccount -from fireblocks_client import configuration - - -class TestPaymentAccount(unittest.TestCase): - """PaymentAccount unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_payment_account_response.py b/test/test_models/test_payment_account_response.py deleted file mode 100644 index 96e9817d..00000000 --- a/test/test_models/test_payment_account_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.payment_account_response import PaymentAccountResponse -from fireblocks_client import configuration - - -class TestPaymentAccountResponse(unittest.TestCase): - """PaymentAccountResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_payment_account_type.py b/test/test_models/test_payment_account_type.py deleted file mode 100644 index 9188cd69..00000000 --- a/test/test_models/test_payment_account_type.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.payment_account_type import PaymentAccountType -from fireblocks_client import configuration - - -class TestPaymentAccountType(unittest.TestCase): - """PaymentAccountType unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_payout_init_method.py b/test/test_models/test_payout_init_method.py deleted file mode 100644 index 8fa59a85..00000000 --- a/test/test_models/test_payout_init_method.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.payout_init_method import PayoutInitMethod -from fireblocks_client import configuration - - -class TestPayoutInitMethod(unittest.TestCase): - """PayoutInitMethod unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_payout_instruction.py b/test/test_models/test_payout_instruction.py deleted file mode 100644 index 5c7b77a3..00000000 --- a/test/test_models/test_payout_instruction.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.payout_instruction import PayoutInstruction -from fireblocks_client import configuration - - -class TestPayoutInstruction(unittest.TestCase): - """PayoutInstruction unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_payout_instruction_response.py b/test/test_models/test_payout_instruction_response.py deleted file mode 100644 index 01d4527f..00000000 --- a/test/test_models/test_payout_instruction_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.payout_instruction_response import PayoutInstructionResponse -from fireblocks_client import configuration - - -class TestPayoutInstructionResponse(unittest.TestCase): - """PayoutInstructionResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_payout_instruction_state.py b/test/test_models/test_payout_instruction_state.py deleted file mode 100644 index ab26b549..00000000 --- a/test/test_models/test_payout_instruction_state.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.payout_instruction_state import PayoutInstructionState -from fireblocks_client import configuration - - -class TestPayoutInstructionState(unittest.TestCase): - """PayoutInstructionState unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_payout_response.py b/test/test_models/test_payout_response.py deleted file mode 100644 index c2314e1d..00000000 --- a/test/test_models/test_payout_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.payout_response import PayoutResponse -from fireblocks_client import configuration - - -class TestPayoutResponse(unittest.TestCase): - """PayoutResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_payout_state.py b/test/test_models/test_payout_state.py deleted file mode 100644 index 56773c11..00000000 --- a/test/test_models/test_payout_state.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.payout_state import PayoutState -from fireblocks_client import configuration - - -class TestPayoutState(unittest.TestCase): - """PayoutState unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_payout_status.py b/test/test_models/test_payout_status.py deleted file mode 100644 index 270d595a..00000000 --- a/test/test_models/test_payout_status.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.payout_status import PayoutStatus -from fireblocks_client import configuration - - -class TestPayoutStatus(unittest.TestCase): - """PayoutStatus unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_policy_and_validation_response.py b/test/test_models/test_policy_and_validation_response.py deleted file mode 100644 index d98b75f3..00000000 --- a/test/test_models/test_policy_and_validation_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.policy_and_validation_response import PolicyAndValidationResponse -from fireblocks_client import configuration - - -class TestPolicyAndValidationResponse(unittest.TestCase): - """PolicyAndValidationResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_policy_check_result.py b/test/test_models/test_policy_check_result.py deleted file mode 100644 index 018b9440..00000000 --- a/test/test_models/test_policy_check_result.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.policy_check_result import PolicyCheckResult -from fireblocks_client import configuration - - -class TestPolicyCheckResult(unittest.TestCase): - """PolicyCheckResult unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_policy_metadata.py b/test/test_models/test_policy_metadata.py deleted file mode 100644 index f2a07246..00000000 --- a/test/test_models/test_policy_metadata.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.policy_metadata import PolicyMetadata -from fireblocks_client import configuration - - -class TestPolicyMetadata(unittest.TestCase): - """PolicyMetadata unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_policy_response.py b/test/test_models/test_policy_response.py deleted file mode 100644 index e155d2ab..00000000 --- a/test/test_models/test_policy_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.policy_response import PolicyResponse -from fireblocks_client import configuration - - -class TestPolicyResponse(unittest.TestCase): - """PolicyResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_policy_rule.py b/test/test_models/test_policy_rule.py deleted file mode 100644 index 6720962e..00000000 --- a/test/test_models/test_policy_rule.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.policy_rule import PolicyRule -from fireblocks_client import configuration - - -class TestPolicyRule(unittest.TestCase): - """PolicyRule unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_policy_rule_check_result.py b/test/test_models/test_policy_rule_check_result.py deleted file mode 100644 index d88d570f..00000000 --- a/test/test_models/test_policy_rule_check_result.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.policy_rule_check_result import PolicyRuleCheckResult -from fireblocks_client import configuration - - -class TestPolicyRuleCheckResult(unittest.TestCase): - """PolicyRuleCheckResult unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_policy_rule_error.py b/test/test_models/test_policy_rule_error.py deleted file mode 100644 index bcca613c..00000000 --- a/test/test_models/test_policy_rule_error.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.policy_rule_error import PolicyRuleError -from fireblocks_client import configuration - - -class TestPolicyRuleError(unittest.TestCase): - """PolicyRuleError unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_policy_src_or_dest_id.py b/test/test_models/test_policy_src_or_dest_id.py deleted file mode 100644 index 97903154..00000000 --- a/test/test_models/test_policy_src_or_dest_id.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.policy_src_or_dest_id import PolicySrcOrDestId -from fireblocks_client import configuration - - -class TestPolicySrcOrDestId(unittest.TestCase): - """PolicySrcOrDestId unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_policy_src_or_dest_sub_type.py b/test/test_models/test_policy_src_or_dest_sub_type.py deleted file mode 100644 index fa646942..00000000 --- a/test/test_models/test_policy_src_or_dest_sub_type.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.policy_src_or_dest_sub_type import PolicySrcOrDestSubType -from fireblocks_client import configuration - - -class TestPolicySrcOrDestSubType(unittest.TestCase): - """PolicySrcOrDestSubType unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_policy_src_or_dest_type.py b/test/test_models/test_policy_src_or_dest_type.py deleted file mode 100644 index 2ef04b03..00000000 --- a/test/test_models/test_policy_src_or_dest_type.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.policy_src_or_dest_type import PolicySrcOrDestType -from fireblocks_client import configuration - - -class TestPolicySrcOrDestType(unittest.TestCase): - """PolicySrcOrDestType unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_policy_status.py b/test/test_models/test_policy_status.py deleted file mode 100644 index e4a615ab..00000000 --- a/test/test_models/test_policy_status.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.policy_status import PolicyStatus -from fireblocks_client import configuration - - -class TestPolicyStatus(unittest.TestCase): - """PolicyStatus unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_policy_validation.py b/test/test_models/test_policy_validation.py deleted file mode 100644 index 252af1f0..00000000 --- a/test/test_models/test_policy_validation.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.policy_validation import PolicyValidation -from fireblocks_client import configuration - - -class TestPolicyValidation(unittest.TestCase): - """PolicyValidation unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_public_key_information.py b/test/test_models/test_public_key_information.py deleted file mode 100644 index f2aabbbf..00000000 --- a/test/test_models/test_public_key_information.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.public_key_information import PublicKeyInformation -from fireblocks_client import configuration - - -class TestPublicKeyInformation(unittest.TestCase): - """PublicKeyInformation unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_publish_result.py b/test/test_models/test_publish_result.py deleted file mode 100644 index c6acd5b1..00000000 --- a/test/test_models/test_publish_result.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.publish_result import PublishResult -from fireblocks_client import configuration - - -class TestPublishResult(unittest.TestCase): - """PublishResult unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_remove_collateral_request_body.py b/test/test_models/test_remove_collateral_request_body.py deleted file mode 100644 index 71e432ea..00000000 --- a/test/test_models/test_remove_collateral_request_body.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.remove_collateral_request_body import RemoveCollateralRequestBody -from fireblocks_client import configuration - - -class TestRemoveCollateralRequestBody(unittest.TestCase): - """RemoveCollateralRequestBody unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_request_options.py b/test/test_models/test_request_options.py deleted file mode 100644 index 00766fae..00000000 --- a/test/test_models/test_request_options.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.request_options import RequestOptions -from fireblocks_client import configuration - - -class TestRequestOptions(unittest.TestCase): - """RequestOptions unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_resend_webhooks_response.py b/test/test_models/test_resend_webhooks_response.py deleted file mode 100644 index 4242b0c0..00000000 --- a/test/test_models/test_resend_webhooks_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.resend_webhooks_response import ResendWebhooksResponse -from fireblocks_client import configuration - - -class TestResendWebhooksResponse(unittest.TestCase): - """ResendWebhooksResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_respond_to_connection_request.py b/test/test_models/test_respond_to_connection_request.py deleted file mode 100644 index 1ae2f787..00000000 --- a/test/test_models/test_respond_to_connection_request.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.respond_to_connection_request import RespondToConnectionRequest -from fireblocks_client import configuration - - -class TestRespondToConnectionRequest(unittest.TestCase): - """RespondToConnectionRequest unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_reward_info.py b/test/test_models/test_reward_info.py deleted file mode 100644 index e243b2c4..00000000 --- a/test/test_models/test_reward_info.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.reward_info import RewardInfo -from fireblocks_client import configuration - - -class TestRewardInfo(unittest.TestCase): - """RewardInfo unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_rewards_info.py b/test/test_models/test_rewards_info.py deleted file mode 100644 index d8572651..00000000 --- a/test/test_models/test_rewards_info.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.rewards_info import RewardsInfo -from fireblocks_client import configuration - - -class TestRewardsInfo(unittest.TestCase): - """RewardsInfo unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_session_dto.py b/test/test_models/test_session_dto.py deleted file mode 100644 index a72ec4f5..00000000 --- a/test/test_models/test_session_dto.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.session_dto import SessionDTO -from fireblocks_client import configuration - - -class TestSessionDTO(unittest.TestCase): - """SessionDTO unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_session_metadata.py b/test/test_models/test_session_metadata.py deleted file mode 100644 index 28822be5..00000000 --- a/test/test_models/test_session_metadata.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.session_metadata import SessionMetadata -from fireblocks_client import configuration - - -class TestSessionMetadata(unittest.TestCase): - """SessionMetadata unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_set_confirmations_threshold_request.py b/test/test_models/test_set_confirmations_threshold_request.py deleted file mode 100644 index a53ebd0d..00000000 --- a/test/test_models/test_set_confirmations_threshold_request.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.set_confirmations_threshold_request import SetConfirmationsThresholdRequest -from fireblocks_client import configuration - - -class TestSetConfirmationsThresholdRequest(unittest.TestCase): - """SetConfirmationsThresholdRequest unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_set_confirmations_threshold_response.py b/test/test_models/test_set_confirmations_threshold_response.py deleted file mode 100644 index 734fd5ee..00000000 --- a/test/test_models/test_set_confirmations_threshold_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.set_confirmations_threshold_response import SetConfirmationsThresholdResponse -from fireblocks_client import configuration - - -class TestSetConfirmationsThresholdResponse(unittest.TestCase): - """SetConfirmationsThresholdResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_settlement_request_body.py b/test/test_models/test_settlement_request_body.py deleted file mode 100644 index aa95c734..00000000 --- a/test/test_models/test_settlement_request_body.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.settlement_request_body import SettlementRequestBody -from fireblocks_client import configuration - - -class TestSettlementRequestBody(unittest.TestCase): - """SettlementRequestBody unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_settlement_response.py b/test/test_models/test_settlement_response.py deleted file mode 100644 index 35f0b32b..00000000 --- a/test/test_models/test_settlement_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.settlement_response import SettlementResponse -from fireblocks_client import configuration - - -class TestSettlementResponse(unittest.TestCase): - """SettlementResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_signed_message.py b/test/test_models/test_signed_message.py deleted file mode 100644 index 07d5281b..00000000 --- a/test/test_models/test_signed_message.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.signed_message import SignedMessage -from fireblocks_client import configuration - - -class TestSignedMessage(unittest.TestCase): - """SignedMessage unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_source_transfer_peer_path_response.py b/test/test_models/test_source_transfer_peer_path_response.py deleted file mode 100644 index 0e8b1cdc..00000000 --- a/test/test_models/test_source_transfer_peer_path_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.source_transfer_peer_path_response import SourceTransferPeerPathResponse -from fireblocks_client import configuration - - -class TestSourceTransferPeerPathResponse(unittest.TestCase): - """SourceTransferPeerPathResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_system_message_info.py b/test/test_models/test_system_message_info.py deleted file mode 100644 index 4e7744bb..00000000 --- a/test/test_models/test_system_message_info.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.system_message_info import SystemMessageInfo -from fireblocks_client import configuration - - -class TestSystemMessageInfo(unittest.TestCase): - """SystemMessageInfo unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_term.py b/test/test_models/test_term.py deleted file mode 100644 index 4857db7e..00000000 --- a/test/test_models/test_term.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.term import Term -from fireblocks_client import configuration - - -class TestTerm(unittest.TestCase): - """Term unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_to_collateral_transaction.py b/test/test_models/test_to_collateral_transaction.py deleted file mode 100644 index 1a1803da..00000000 --- a/test/test_models/test_to_collateral_transaction.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.to_collateral_transaction import ToCollateralTransaction -from fireblocks_client import configuration - - -class TestToCollateralTransaction(unittest.TestCase): - """ToCollateralTransaction unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_to_exchange_transaction.py b/test/test_models/test_to_exchange_transaction.py deleted file mode 100644 index 1c330498..00000000 --- a/test/test_models/test_to_exchange_transaction.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.to_exchange_transaction import ToExchangeTransaction -from fireblocks_client import configuration - - -class TestToExchangeTransaction(unittest.TestCase): - """ToExchangeTransaction unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_token_collection_response.py b/test/test_models/test_token_collection_response.py deleted file mode 100644 index b47df2b4..00000000 --- a/test/test_models/test_token_collection_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.token_collection_response import TokenCollectionResponse -from fireblocks_client import configuration - - -class TestTokenCollectionResponse(unittest.TestCase): - """TokenCollectionResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_token_ownership_response.py b/test/test_models/test_token_ownership_response.py deleted file mode 100644 index 6dc69408..00000000 --- a/test/test_models/test_token_ownership_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.token_ownership_response import TokenOwnershipResponse -from fireblocks_client import configuration - - -class TestTokenOwnershipResponse(unittest.TestCase): - """TokenOwnershipResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_token_response.py b/test/test_models/test_token_response.py deleted file mode 100644 index 761ef23f..00000000 --- a/test/test_models/test_token_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.token_response import TokenResponse -from fireblocks_client import configuration - - -class TestTokenResponse(unittest.TestCase): - """TokenResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_trading_account_type.py b/test/test_models/test_trading_account_type.py deleted file mode 100644 index 22313688..00000000 --- a/test/test_models/test_trading_account_type.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.trading_account_type import TradingAccountType -from fireblocks_client import configuration - - -class TestTradingAccountType(unittest.TestCase): - """TradingAccountType unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_transaction.py b/test/test_models/test_transaction.py deleted file mode 100644 index 9c942921..00000000 --- a/test/test_models/test_transaction.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.transaction import Transaction -from fireblocks_client import configuration - - -class TestTransaction(unittest.TestCase): - """Transaction unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_transaction_fee.py b/test/test_models/test_transaction_fee.py deleted file mode 100644 index 3332b46e..00000000 --- a/test/test_models/test_transaction_fee.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.transaction_fee import TransactionFee -from fireblocks_client import configuration - - -class TestTransactionFee(unittest.TestCase): - """TransactionFee unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_transaction_operation.py b/test/test_models/test_transaction_operation.py deleted file mode 100644 index 362ddebb..00000000 --- a/test/test_models/test_transaction_operation.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.transaction_operation import TransactionOperation -from fireblocks_client import configuration - - -class TestTransactionOperation(unittest.TestCase): - """TransactionOperation unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_transaction_request.py b/test/test_models/test_transaction_request.py deleted file mode 100644 index c0ed6014..00000000 --- a/test/test_models/test_transaction_request.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.transaction_request import TransactionRequest -from fireblocks_client import configuration - - -class TestTransactionRequest(unittest.TestCase): - """TransactionRequest unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_transaction_request_destination.py b/test/test_models/test_transaction_request_destination.py deleted file mode 100644 index ea20667c..00000000 --- a/test/test_models/test_transaction_request_destination.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.transaction_request_destination import TransactionRequestDestination -from fireblocks_client import configuration - - -class TestTransactionRequestDestination(unittest.TestCase): - """TransactionRequestDestination unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_transaction_response.py b/test/test_models/test_transaction_response.py deleted file mode 100644 index 38377f29..00000000 --- a/test/test_models/test_transaction_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.transaction_response import TransactionResponse -from fireblocks_client import configuration - - -class TestTransactionResponse(unittest.TestCase): - """TransactionResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_transaction_response_destination.py b/test/test_models/test_transaction_response_destination.py deleted file mode 100644 index 3b41229c..00000000 --- a/test/test_models/test_transaction_response_destination.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.transaction_response_destination import TransactionResponseDestination -from fireblocks_client import configuration - - -class TestTransactionResponseDestination(unittest.TestCase): - """TransactionResponseDestination unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_transfer_peer_path.py b/test/test_models/test_transfer_peer_path.py deleted file mode 100644 index 2ba153bc..00000000 --- a/test/test_models/test_transfer_peer_path.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.transfer_peer_path import TransferPeerPath -from fireblocks_client import configuration - - -class TestTransferPeerPath(unittest.TestCase): - """TransferPeerPath unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_travel_rule_address.py b/test/test_models/test_travel_rule_address.py deleted file mode 100644 index cccecdee..00000000 --- a/test/test_models/test_travel_rule_address.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.travel_rule_address import TravelRuleAddress -from fireblocks_client import configuration - - -class TestTravelRuleAddress(unittest.TestCase): - """TravelRuleAddress unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_travel_rule_get_all_vasps_response.py b/test/test_models/test_travel_rule_get_all_vasps_response.py deleted file mode 100644 index 20d74481..00000000 --- a/test/test_models/test_travel_rule_get_all_vasps_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.travel_rule_get_all_vasps_response import TravelRuleGetAllVASPsResponse -from fireblocks_client import configuration - - -class TestTravelRuleGetAllVASPsResponse(unittest.TestCase): - """TravelRuleGetAllVASPsResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_travel_rule_issuer.py b/test/test_models/test_travel_rule_issuer.py deleted file mode 100644 index eaebc0d0..00000000 --- a/test/test_models/test_travel_rule_issuer.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.travel_rule_issuer import TravelRuleIssuer -from fireblocks_client import configuration - - -class TestTravelRuleIssuer(unittest.TestCase): - """TravelRuleIssuer unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_travel_rule_issuers.py b/test/test_models/test_travel_rule_issuers.py deleted file mode 100644 index f2457f50..00000000 --- a/test/test_models/test_travel_rule_issuers.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.travel_rule_issuers import TravelRuleIssuers -from fireblocks_client import configuration - - -class TestTravelRuleIssuers(unittest.TestCase): - """TravelRuleIssuers unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_travel_rule_ownership_proof.py b/test/test_models/test_travel_rule_ownership_proof.py deleted file mode 100644 index 137f8b7f..00000000 --- a/test/test_models/test_travel_rule_ownership_proof.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.travel_rule_ownership_proof import TravelRuleOwnershipProof -from fireblocks_client import configuration - - -class TestTravelRuleOwnershipProof(unittest.TestCase): - """TravelRuleOwnershipProof unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_travel_rule_pii_ivms.py b/test/test_models/test_travel_rule_pii_ivms.py deleted file mode 100644 index 10b0034a..00000000 --- a/test/test_models/test_travel_rule_pii_ivms.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.travel_rule_pii_ivms import TravelRulePiiIVMS -from fireblocks_client import configuration - - -class TestTravelRulePiiIVMS(unittest.TestCase): - """TravelRulePiiIVMS unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_travel_rule_transaction_blockchain_info.py b/test/test_models/test_travel_rule_transaction_blockchain_info.py deleted file mode 100644 index aa796981..00000000 --- a/test/test_models/test_travel_rule_transaction_blockchain_info.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.travel_rule_transaction_blockchain_info import TravelRuleTransactionBlockchainInfo -from fireblocks_client import configuration - - -class TestTravelRuleTransactionBlockchainInfo(unittest.TestCase): - """TravelRuleTransactionBlockchainInfo unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_travel_rule_update_vasp_details.py b/test/test_models/test_travel_rule_update_vasp_details.py deleted file mode 100644 index 91f8e4ae..00000000 --- a/test/test_models/test_travel_rule_update_vasp_details.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.travel_rule_update_vasp_details import TravelRuleUpdateVASPDetails -from fireblocks_client import configuration - - -class TestTravelRuleUpdateVASPDetails(unittest.TestCase): - """TravelRuleUpdateVASPDetails unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_travel_rule_validate_full_transaction_request.py b/test/test_models/test_travel_rule_validate_full_transaction_request.py deleted file mode 100644 index be6affdd..00000000 --- a/test/test_models/test_travel_rule_validate_full_transaction_request.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.travel_rule_validate_full_transaction_request import TravelRuleValidateFullTransactionRequest -from fireblocks_client import configuration - - -class TestTravelRuleValidateFullTransactionRequest(unittest.TestCase): - """TravelRuleValidateFullTransactionRequest unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_travel_rule_validate_transaction_request.py b/test/test_models/test_travel_rule_validate_transaction_request.py deleted file mode 100644 index 7e84d5b9..00000000 --- a/test/test_models/test_travel_rule_validate_transaction_request.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.travel_rule_validate_transaction_request import TravelRuleValidateTransactionRequest -from fireblocks_client import configuration - - -class TestTravelRuleValidateTransactionRequest(unittest.TestCase): - """TravelRuleValidateTransactionRequest unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_travel_rule_validate_transaction_response.py b/test/test_models/test_travel_rule_validate_transaction_response.py deleted file mode 100644 index 52a1222a..00000000 --- a/test/test_models/test_travel_rule_validate_transaction_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.travel_rule_validate_transaction_response import TravelRuleValidateTransactionResponse -from fireblocks_client import configuration - - -class TestTravelRuleValidateTransactionResponse(unittest.TestCase): - """TravelRuleValidateTransactionResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_travel_rule_vasp.py b/test/test_models/test_travel_rule_vasp.py deleted file mode 100644 index 94268a90..00000000 --- a/test/test_models/test_travel_rule_vasp.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.travel_rule_vasp import TravelRuleVASP -from fireblocks_client import configuration - - -class TestTravelRuleVASP(unittest.TestCase): - """TravelRuleVASP unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_unfreeze_transaction_response.py b/test/test_models/test_unfreeze_transaction_response.py deleted file mode 100644 index 693fc4f3..00000000 --- a/test/test_models/test_unfreeze_transaction_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.unfreeze_transaction_response import UnfreezeTransactionResponse -from fireblocks_client import configuration - - -class TestUnfreezeTransactionResponse(unittest.TestCase): - """UnfreezeTransactionResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_unmanaged_wallet.py b/test/test_models/test_unmanaged_wallet.py deleted file mode 100644 index d4b60b1f..00000000 --- a/test/test_models/test_unmanaged_wallet.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.unmanaged_wallet import UnmanagedWallet -from fireblocks_client import configuration - - -class TestUnmanagedWallet(unittest.TestCase): - """UnmanagedWallet unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_unsigned_message.py b/test/test_models/test_unsigned_message.py deleted file mode 100644 index 6def8cb9..00000000 --- a/test/test_models/test_unsigned_message.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.unsigned_message import UnsignedMessage -from fireblocks_client import configuration - - -class TestUnsignedMessage(unittest.TestCase): - """UnsignedMessage unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_unspent_input.py b/test/test_models/test_unspent_input.py deleted file mode 100644 index ec353fc9..00000000 --- a/test/test_models/test_unspent_input.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.unspent_input import UnspentInput -from fireblocks_client import configuration - - -class TestUnspentInput(unittest.TestCase): - """UnspentInput unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_unspent_inputs_response.py b/test/test_models/test_unspent_inputs_response.py deleted file mode 100644 index 499ff39b..00000000 --- a/test/test_models/test_unspent_inputs_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.unspent_inputs_response import UnspentInputsResponse -from fireblocks_client import configuration - - -class TestUnspentInputsResponse(unittest.TestCase): - """UnspentInputsResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_update_token_ownership_status_dto.py b/test/test_models/test_update_token_ownership_status_dto.py deleted file mode 100644 index e404e113..00000000 --- a/test/test_models/test_update_token_ownership_status_dto.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.update_token_ownership_status_dto import UpdateTokenOwnershipStatusDto -from fireblocks_client import configuration - - -class TestUpdateTokenOwnershipStatusDto(unittest.TestCase): - """UpdateTokenOwnershipStatusDto unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_user_group_create_request.py b/test/test_models/test_user_group_create_request.py deleted file mode 100644 index 12696e99..00000000 --- a/test/test_models/test_user_group_create_request.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.user_group_create_request import UserGroupCreateRequest -from fireblocks_client import configuration - - -class TestUserGroupCreateRequest(unittest.TestCase): - """UserGroupCreateRequest unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_user_group_create_response.py b/test/test_models/test_user_group_create_response.py deleted file mode 100644 index 3231647c..00000000 --- a/test/test_models/test_user_group_create_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.user_group_create_response import UserGroupCreateResponse -from fireblocks_client import configuration - - -class TestUserGroupCreateResponse(unittest.TestCase): - """UserGroupCreateResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_user_group_update_request.py b/test/test_models/test_user_group_update_request.py deleted file mode 100644 index 79fd5f69..00000000 --- a/test/test_models/test_user_group_update_request.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.user_group_update_request import UserGroupUpdateRequest -from fireblocks_client import configuration - - -class TestUserGroupUpdateRequest(unittest.TestCase): - """UserGroupUpdateRequest unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_user_response.py b/test/test_models/test_user_response.py deleted file mode 100644 index 61524cde..00000000 --- a/test/test_models/test_user_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.user_response import UserResponse -from fireblocks_client import configuration - - -class TestUserResponse(unittest.TestCase): - """UserResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_users_group_response.py b/test/test_models/test_users_group_response.py deleted file mode 100644 index 9a0c0a21..00000000 --- a/test/test_models/test_users_group_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.users_group_response import UsersGroupResponse -from fireblocks_client import configuration - - -class TestUsersGroupResponse(unittest.TestCase): - """UsersGroupResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_users_groups_response.py b/test/test_models/test_users_groups_response.py deleted file mode 100644 index 8e2bebdf..00000000 --- a/test/test_models/test_users_groups_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.users_groups_response import UsersGroupsResponse -from fireblocks_client import configuration - - -class TestUsersGroupsResponse(unittest.TestCase): - """UsersGroupsResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_validate_address_response.py b/test/test_models/test_validate_address_response.py deleted file mode 100644 index 004945b7..00000000 --- a/test/test_models/test_validate_address_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.validate_address_response import ValidateAddressResponse -from fireblocks_client import configuration - - -class TestValidateAddressResponse(unittest.TestCase): - """ValidateAddressResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_vault_account.py b/test/test_models/test_vault_account.py deleted file mode 100644 index f36117c9..00000000 --- a/test/test_models/test_vault_account.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.vault_account import VaultAccount -from fireblocks_client import configuration - - -class TestVaultAccount(unittest.TestCase): - """VaultAccount unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_vault_accounts_paged_response.py b/test/test_models/test_vault_accounts_paged_response.py deleted file mode 100644 index 95e36d94..00000000 --- a/test/test_models/test_vault_accounts_paged_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.vault_accounts_paged_response import VaultAccountsPagedResponse -from fireblocks_client import configuration - - -class TestVaultAccountsPagedResponse(unittest.TestCase): - """VaultAccountsPagedResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_vault_asset.py b/test/test_models/test_vault_asset.py deleted file mode 100644 index 9fb1061f..00000000 --- a/test/test_models/test_vault_asset.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.vault_asset import VaultAsset -from fireblocks_client import configuration - - -class TestVaultAsset(unittest.TestCase): - """VaultAsset unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_vault_wallet_address.py b/test/test_models/test_vault_wallet_address.py deleted file mode 100644 index 688af97d..00000000 --- a/test/test_models/test_vault_wallet_address.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.vault_wallet_address import VaultWalletAddress -from fireblocks_client import configuration - - -class TestVaultWalletAddress(unittest.TestCase): - """VaultWalletAddress unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_wallet_asset.py b/test/test_models/test_wallet_asset.py deleted file mode 100644 index 5535d456..00000000 --- a/test/test_models/test_wallet_asset.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.wallet_asset import WalletAsset -from fireblocks_client import configuration - - -class TestWalletAsset(unittest.TestCase): - """WalletAsset unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_wallet_asset_additional_info.py b/test/test_models/test_wallet_asset_additional_info.py deleted file mode 100644 index 862bccec..00000000 --- a/test/test_models/test_wallet_asset_additional_info.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.wallet_asset_additional_info import WalletAssetAdditionalInfo -from fireblocks_client import configuration - - -class TestWalletAssetAdditionalInfo(unittest.TestCase): - """WalletAssetAdditionalInfo unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_xb_settlement_asset.py b/test/test_models/test_xb_settlement_asset.py deleted file mode 100644 index 870ebe56..00000000 --- a/test/test_models/test_xb_settlement_asset.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.xb_settlement_asset import XBSettlementAsset -from fireblocks_client import configuration - - -class TestXBSettlementAsset(unittest.TestCase): - """XBSettlementAsset unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_xb_settlement_asset_id.py b/test/test_models/test_xb_settlement_asset_id.py deleted file mode 100644 index dd51547d..00000000 --- a/test/test_models/test_xb_settlement_asset_id.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.xb_settlement_asset_id import XBSettlementAssetID -from fireblocks_client import configuration - - -class TestXBSettlementAssetID(unittest.TestCase): - """XBSettlementAssetID unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_xb_settlement_config_creation_request_body.py b/test/test_models/test_xb_settlement_config_creation_request_body.py deleted file mode 100644 index d1bed0c3..00000000 --- a/test/test_models/test_xb_settlement_config_creation_request_body.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.xb_settlement_config_creation_request_body import XBSettlementConfigCreationRequestBody -from fireblocks_client import configuration - - -class TestXBSettlementConfigCreationRequestBody(unittest.TestCase): - """XBSettlementConfigCreationRequestBody unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_xb_settlement_config_creation_response.py b/test/test_models/test_xb_settlement_config_creation_response.py deleted file mode 100644 index 6df6d160..00000000 --- a/test/test_models/test_xb_settlement_config_creation_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.xb_settlement_config_creation_response import XBSettlementConfigCreationResponse -from fireblocks_client import configuration - - -class TestXBSettlementConfigCreationResponse(unittest.TestCase): - """XBSettlementConfigCreationResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_xb_settlement_config_deletion_response.py b/test/test_models/test_xb_settlement_config_deletion_response.py deleted file mode 100644 index aa2d8fa3..00000000 --- a/test/test_models/test_xb_settlement_config_deletion_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.xb_settlement_config_deletion_response import XBSettlementConfigDeletionResponse -from fireblocks_client import configuration - - -class TestXBSettlementConfigDeletionResponse(unittest.TestCase): - """XBSettlementConfigDeletionResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_xb_settlement_config_edit_request_body.py b/test/test_models/test_xb_settlement_config_edit_request_body.py deleted file mode 100644 index 2135bd6b..00000000 --- a/test/test_models/test_xb_settlement_config_edit_request_body.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.xb_settlement_config_edit_request_body import XBSettlementConfigEditRequestBody -from fireblocks_client import configuration - - -class TestXBSettlementConfigEditRequestBody(unittest.TestCase): - """XBSettlementConfigEditRequestBody unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_xb_settlement_config_edit_response.py b/test/test_models/test_xb_settlement_config_edit_response.py deleted file mode 100644 index 59ca4c0d..00000000 --- a/test/test_models/test_xb_settlement_config_edit_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.xb_settlement_config_edit_response import XBSettlementConfigEditResponse -from fireblocks_client import configuration - - -class TestXBSettlementConfigEditResponse(unittest.TestCase): - """XBSettlementConfigEditResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_xb_settlement_config_id.py b/test/test_models/test_xb_settlement_config_id.py deleted file mode 100644 index afd1f376..00000000 --- a/test/test_models/test_xb_settlement_config_id.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.xb_settlement_config_id import XBSettlementConfigId -from fireblocks_client import configuration - - -class TestXBSettlementConfigId(unittest.TestCase): - """XBSettlementConfigId unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_xb_settlement_config_model.py b/test/test_models/test_xb_settlement_config_model.py deleted file mode 100644 index ecfe5743..00000000 --- a/test/test_models/test_xb_settlement_config_model.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.xb_settlement_config_model import XBSettlementConfigModel -from fireblocks_client import configuration - - -class TestXBSettlementConfigModel(unittest.TestCase): - """XBSettlementConfigModel unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_xb_settlement_config_step.py b/test/test_models/test_xb_settlement_config_step.py deleted file mode 100644 index 4f34add9..00000000 --- a/test/test_models/test_xb_settlement_config_step.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.xb_settlement_config_step import XBSettlementConfigStep -from fireblocks_client import configuration - - -class TestXBSettlementConfigStep(unittest.TestCase): - """XBSettlementConfigStep unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_xb_settlement_config_steps_record.py b/test/test_models/test_xb_settlement_config_steps_record.py deleted file mode 100644 index 03ff8c83..00000000 --- a/test/test_models/test_xb_settlement_config_steps_record.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.xb_settlement_config_steps_record import XBSettlementConfigStepsRecord -from fireblocks_client import configuration - - -class TestXBSettlementConfigStepsRecord(unittest.TestCase): - """XBSettlementConfigStepsRecord unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_xb_settlement_conversion_slippage_basis_points.py b/test/test_models/test_xb_settlement_conversion_slippage_basis_points.py deleted file mode 100644 index 7ada1517..00000000 --- a/test/test_models/test_xb_settlement_conversion_slippage_basis_points.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.xb_settlement_conversion_slippage_basis_points import XBSettlementConversionSlippageBasisPoints -from fireblocks_client import configuration - - -class TestXBSettlementConversionSlippageBasisPoints(unittest.TestCase): - """XBSettlementConversionSlippageBasisPoints unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_xb_settlement_corridor_id.py b/test/test_models/test_xb_settlement_corridor_id.py deleted file mode 100644 index d5d3f173..00000000 --- a/test/test_models/test_xb_settlement_corridor_id.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.xb_settlement_corridor_id import XBSettlementCorridorId -from fireblocks_client import configuration - - -class TestXBSettlementCorridorId(unittest.TestCase): - """XBSettlementCorridorId unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_xb_settlement_create_flow_request_body.py b/test/test_models/test_xb_settlement_create_flow_request_body.py deleted file mode 100644 index 410e82bf..00000000 --- a/test/test_models/test_xb_settlement_create_flow_request_body.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.xb_settlement_create_flow_request_body import XBSettlementCreateFlowRequestBody -from fireblocks_client import configuration - - -class TestXBSettlementCreateFlowRequestBody(unittest.TestCase): - """XBSettlementCreateFlowRequestBody unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_xb_settlement_create_flow_response.py b/test/test_models/test_xb_settlement_create_flow_response.py deleted file mode 100644 index 4e55cd7f..00000000 --- a/test/test_models/test_xb_settlement_create_flow_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.xb_settlement_create_flow_response import XBSettlementCreateFlowResponse -from fireblocks_client import configuration - - -class TestXBSettlementCreateFlowResponse(unittest.TestCase): - """XBSettlementCreateFlowResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_xb_settlement_crypto_asset.py b/test/test_models/test_xb_settlement_crypto_asset.py deleted file mode 100644 index cdf8bd9c..00000000 --- a/test/test_models/test_xb_settlement_crypto_asset.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.xb_settlement_crypto_asset import XBSettlementCryptoAsset -from fireblocks_client import configuration - - -class TestXBSettlementCryptoAsset(unittest.TestCase): - """XBSettlementCryptoAsset unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_xb_settlement_fiat_asset.py b/test/test_models/test_xb_settlement_fiat_asset.py deleted file mode 100644 index cc8aaf09..00000000 --- a/test/test_models/test_xb_settlement_fiat_asset.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.xb_settlement_fiat_asset import XBSettlementFiatAsset -from fireblocks_client import configuration - - -class TestXBSettlementFiatAsset(unittest.TestCase): - """XBSettlementFiatAsset unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_xb_settlement_flow_execution_model.py b/test/test_models/test_xb_settlement_flow_execution_model.py deleted file mode 100644 index 0a2a80ce..00000000 --- a/test/test_models/test_xb_settlement_flow_execution_model.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.xb_settlement_flow_execution_model import XBSettlementFlowExecutionModel -from fireblocks_client import configuration - - -class TestXBSettlementFlowExecutionModel(unittest.TestCase): - """XBSettlementFlowExecutionModel unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_xb_settlement_flow_execution_request_body.py b/test/test_models/test_xb_settlement_flow_execution_request_body.py deleted file mode 100644 index 834b7f83..00000000 --- a/test/test_models/test_xb_settlement_flow_execution_request_body.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.xb_settlement_flow_execution_request_body import XBSettlementFlowExecutionRequestBody -from fireblocks_client import configuration - - -class TestXBSettlementFlowExecutionRequestBody(unittest.TestCase): - """XBSettlementFlowExecutionRequestBody unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_xb_settlement_flow_execution_response.py b/test/test_models/test_xb_settlement_flow_execution_response.py deleted file mode 100644 index e6f9b3de..00000000 --- a/test/test_models/test_xb_settlement_flow_execution_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.xb_settlement_flow_execution_response import XBSettlementFlowExecutionResponse -from fireblocks_client import configuration - - -class TestXBSettlementFlowExecutionResponse(unittest.TestCase): - """XBSettlementFlowExecutionResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_xb_settlement_flow_execution_status.py b/test/test_models/test_xb_settlement_flow_execution_status.py deleted file mode 100644 index 4b571b72..00000000 --- a/test/test_models/test_xb_settlement_flow_execution_status.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.xb_settlement_flow_execution_status import XBSettlementFlowExecutionStatus -from fireblocks_client import configuration - - -class TestXBSettlementFlowExecutionStatus(unittest.TestCase): - """XBSettlementFlowExecutionStatus unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_xb_settlement_flow_execution_step.py b/test/test_models/test_xb_settlement_flow_execution_step.py deleted file mode 100644 index 3458edd8..00000000 --- a/test/test_models/test_xb_settlement_flow_execution_step.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.xb_settlement_flow_execution_step import XBSettlementFlowExecutionStep -from fireblocks_client import configuration - - -class TestXBSettlementFlowExecutionStep(unittest.TestCase): - """XBSettlementFlowExecutionStep unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_xb_settlement_flow_execution_step_status.py b/test/test_models/test_xb_settlement_flow_execution_step_status.py deleted file mode 100644 index 2b7317f4..00000000 --- a/test/test_models/test_xb_settlement_flow_execution_step_status.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.xb_settlement_flow_execution_step_status import XBSettlementFlowExecutionStepStatus -from fireblocks_client import configuration - - -class TestXBSettlementFlowExecutionStepStatus(unittest.TestCase): - """XBSettlementFlowExecutionStepStatus unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_xb_settlement_flow_preview_model.py b/test/test_models/test_xb_settlement_flow_preview_model.py deleted file mode 100644 index 4727d4e5..00000000 --- a/test/test_models/test_xb_settlement_flow_preview_model.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.xb_settlement_flow_preview_model import XBSettlementFlowPreviewModel -from fireblocks_client import configuration - - -class TestXBSettlementFlowPreviewModel(unittest.TestCase): - """XBSettlementFlowPreviewModel unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_xb_settlement_flow_selected_conversion_slippage_reason.py b/test/test_models/test_xb_settlement_flow_selected_conversion_slippage_reason.py deleted file mode 100644 index 244be6a2..00000000 --- a/test/test_models/test_xb_settlement_flow_selected_conversion_slippage_reason.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.xb_settlement_flow_selected_conversion_slippage_reason import XBSettlementFlowSelectedConversionSlippageReason -from fireblocks_client import configuration - - -class TestXBSettlementFlowSelectedConversionSlippageReason(unittest.TestCase): - """XBSettlementFlowSelectedConversionSlippageReason unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_xb_settlement_flow_setup_step.py b/test/test_models/test_xb_settlement_flow_setup_step.py deleted file mode 100644 index a49b5b4d..00000000 --- a/test/test_models/test_xb_settlement_flow_setup_step.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.xb_settlement_flow_setup_step import XBSettlementFlowSetupStep -from fireblocks_client import configuration - - -class TestXBSettlementFlowSetupStep(unittest.TestCase): - """XBSettlementFlowSetupStep unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_xb_settlement_flow_steps_execution_record.py b/test/test_models/test_xb_settlement_flow_steps_execution_record.py deleted file mode 100644 index 6863d1eb..00000000 --- a/test/test_models/test_xb_settlement_flow_steps_execution_record.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.xb_settlement_flow_steps_execution_record import XBSettlementFlowStepsExecutionRecord -from fireblocks_client import configuration - - -class TestXBSettlementFlowStepsExecutionRecord(unittest.TestCase): - """XBSettlementFlowStepsExecutionRecord unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_xb_settlement_flow_steps_record.py b/test/test_models/test_xb_settlement_flow_steps_record.py deleted file mode 100644 index 300427bf..00000000 --- a/test/test_models/test_xb_settlement_flow_steps_record.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.xb_settlement_flow_steps_record import XBSettlementFlowStepsRecord -from fireblocks_client import configuration - - -class TestXBSettlementFlowStepsRecord(unittest.TestCase): - """XBSettlementFlowStepsRecord unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_xb_settlement_get_all_configs_response.py b/test/test_models/test_xb_settlement_get_all_configs_response.py deleted file mode 100644 index b4bc5d66..00000000 --- a/test/test_models/test_xb_settlement_get_all_configs_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.xb_settlement_get_all_configs_response import XBSettlementGetAllConfigsResponse -from fireblocks_client import configuration - - -class TestXBSettlementGetAllConfigsResponse(unittest.TestCase): - """XBSettlementGetAllConfigsResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_xb_settlement_get_config_response.py b/test/test_models/test_xb_settlement_get_config_response.py deleted file mode 100644 index 3d1095bc..00000000 --- a/test/test_models/test_xb_settlement_get_config_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.xb_settlement_get_config_response import XBSettlementGetConfigResponse -from fireblocks_client import configuration - - -class TestXBSettlementGetConfigResponse(unittest.TestCase): - """XBSettlementGetConfigResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_xb_settlement_get_flow_response.py b/test/test_models/test_xb_settlement_get_flow_response.py deleted file mode 100644 index 668d6efa..00000000 --- a/test/test_models/test_xb_settlement_get_flow_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.xb_settlement_get_flow_response import XBSettlementGetFlowResponse -from fireblocks_client import configuration - - -class TestXBSettlementGetFlowResponse(unittest.TestCase): - """XBSettlementGetFlowResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_xb_settlement_step_type.py b/test/test_models/test_xb_settlement_step_type.py deleted file mode 100644 index 622817ea..00000000 --- a/test/test_models/test_xb_settlement_step_type.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.6.2 - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest - -import fireblocks_client -from fireblocks_client.model.xb_settlement_step_type import XBSettlementStepType -from fireblocks_client import configuration - - -class TestXBSettlementStepType(unittest.TestCase): - """XBSettlementStepType unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_network_channel.py b/test/test_network_channel.py new file mode 100644 index 00000000..ca4d2d6a --- /dev/null +++ b/test/test_network_channel.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.network_channel import NetworkChannel + + +class TestNetworkChannel(unittest.TestCase): + """NetworkChannel unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> NetworkChannel: + """Test NetworkChannel + 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 `NetworkChannel` + """ + model = NetworkChannel() + if include_optional: + return NetworkChannel( + network_id = '', + name = '' + ) + else: + return NetworkChannel( + ) + """ + + def testNetworkChannel(self): + """Test NetworkChannel""" + # 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/test/test_network_connection.py b/test/test_network_connection.py new file mode 100644 index 00000000..4083e3e9 --- /dev/null +++ b/test/test_network_connection.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.network_connection import NetworkConnection + + +class TestNetworkConnection(unittest.TestCase): + """NetworkConnection unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> NetworkConnection: + """Test NetworkConnection + 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 `NetworkConnection` + """ + model = NetworkConnection() + if include_optional: + return NetworkConnection( + local_network_id = '', + remote_network_id = '', + routing_policy = { + 'key' : null + } + ) + else: + return NetworkConnection( + local_network_id = '', + remote_network_id = '', + ) + """ + + def testNetworkConnection(self): + """Test NetworkConnection""" + # 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/test/test_network_connection_response.py b/test/test_network_connection_response.py new file mode 100644 index 00000000..f79c745f --- /dev/null +++ b/test/test_network_connection_response.py @@ -0,0 +1,83 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.network_connection_response import ( + NetworkConnectionResponse, +) + + +class TestNetworkConnectionResponse(unittest.TestCase): + """NetworkConnectionResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> NetworkConnectionResponse: + """Test NetworkConnectionResponse + 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 `NetworkConnectionResponse` + """ + model = NetworkConnectionResponse() + if include_optional: + return NetworkConnectionResponse( + id = '', + local_channel = fireblocks_client.models.network_channel.NetworkChannel( + network_id = '', + name = '', ), + remote_channel = fireblocks_client.models.network_channel.NetworkChannel( + network_id = '', + name = '', ), + status = 'WAITING_FOR_APPROVAL', + local_network_id = fireblocks_client.models.network_id.NetworkId( + id = '', + name = '', ), + remote_network_id = fireblocks_client.models.network_id.NetworkId( + id = '', + name = '', ), + routing_policy = { + 'key' : null + } + ) + else: + return NetworkConnectionResponse( + id = '', + status = 'WAITING_FOR_APPROVAL', + local_network_id = fireblocks_client.models.network_id.NetworkId( + id = '', + name = '', ), + remote_network_id = fireblocks_client.models.network_id.NetworkId( + id = '', + name = '', ), + routing_policy = { + 'key' : null + }, + ) + """ + + def testNetworkConnectionResponse(self): + """Test NetworkConnectionResponse""" + # 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/test/test_network_connection_routing_policy_value.py b/test/test_network_connection_routing_policy_value.py new file mode 100644 index 00000000..1f2e386a --- /dev/null +++ b/test/test_network_connection_routing_policy_value.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.network_connection_routing_policy_value import ( + NetworkConnectionRoutingPolicyValue, +) + + +class TestNetworkConnectionRoutingPolicyValue(unittest.TestCase): + """NetworkConnectionRoutingPolicyValue unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> NetworkConnectionRoutingPolicyValue: + """Test NetworkConnectionRoutingPolicyValue + 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 `NetworkConnectionRoutingPolicyValue` + """ + model = NetworkConnectionRoutingPolicyValue() + if include_optional: + return NetworkConnectionRoutingPolicyValue( + scheme = 'NONE', + dst_type = 'FIAT_ACCOUNT', + dst_id = '' + ) + else: + return NetworkConnectionRoutingPolicyValue( + scheme = 'NONE', + dst_type = 'FIAT_ACCOUNT', + dst_id = '', + ) + """ + + def testNetworkConnectionRoutingPolicyValue(self): + """Test NetworkConnectionRoutingPolicyValue""" + # 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/test/test_network_connection_status.py b/test/test_network_connection_status.py new file mode 100644 index 00000000..b5d8042e --- /dev/null +++ b/test/test_network_connection_status.py @@ -0,0 +1,36 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.network_connection_status import NetworkConnectionStatus + + +class TestNetworkConnectionStatus(unittest.TestCase): + """NetworkConnectionStatus unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNetworkConnectionStatus(self): + """Test NetworkConnectionStatus""" + # inst = NetworkConnectionStatus() + + +if __name__ == "__main__": + unittest.main() diff --git a/test/test_network_connections_api.py b/test/test_network_connections_api.py new file mode 100644 index 00000000..8790caf7 --- /dev/null +++ b/test/test_network_connections_api.py @@ -0,0 +1,130 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.api.network_connections_api import NetworkConnectionsApi + + +class TestNetworkConnectionsApi(unittest.TestCase): + """NetworkConnectionsApi unit test stubs""" + + def setUp(self) -> None: + self.api = NetworkConnectionsApi() + + def tearDown(self) -> None: + pass + + def test_check_third_party_routing(self) -> None: + """Test case for check_third_party_routing + + Retrieve third-party network routing validation by asset type. + """ + pass + + def test_create_network_connection(self) -> None: + """Test case for create_network_connection + + Creates a new network connection + """ + pass + + def test_create_network_id(self) -> None: + """Test case for create_network_id + + Creates a new Network ID + """ + pass + + def test_delete_network_connection(self) -> None: + """Test case for delete_network_connection + + Deletes a network connection by ID + """ + pass + + def test_delete_network_id(self) -> None: + """Test case for delete_network_id + + Deletes specific network ID. + """ + pass + + def test_get_network(self) -> None: + """Test case for get_network + + Get a network connection + """ + pass + + def test_get_network_connections(self) -> None: + """Test case for get_network_connections + + List network connections + """ + pass + + def test_get_network_id(self) -> None: + """Test case for get_network_id + + Returns specific network ID. + """ + pass + + def test_get_network_ids(self) -> None: + """Test case for get_network_ids + + Returns all network IDs, both local IDs and discoverable remote IDs + """ + pass + + def test_get_routing_policy_asset_groups(self) -> None: + """Test case for get_routing_policy_asset_groups + + Returns all enabled routing policy asset groups + """ + pass + + def test_set_network_id_discoverability(self) -> None: + """Test case for set_network_id_discoverability + + Update network ID's discoverability. + """ + pass + + def test_set_network_id_name(self) -> None: + """Test case for set_network_id_name + + Update network ID's name. + """ + pass + + def test_set_network_id_routing_policy(self) -> None: + """Test case for set_network_id_routing_policy + + Update network id routing policy. + """ + pass + + def test_set_routing_policy(self) -> None: + """Test case for set_routing_policy + + Update network connection routing policy. + """ + pass + + +if __name__ == "__main__": + unittest.main() diff --git a/test/test_network_fee.py b/test/test_network_fee.py new file mode 100644 index 00000000..5149e704 --- /dev/null +++ b/test/test_network_fee.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.network_fee import NetworkFee + + +class TestNetworkFee(unittest.TestCase): + """NetworkFee unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> NetworkFee: + """Test NetworkFee + 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 `NetworkFee` + """ + model = NetworkFee() + if include_optional: + return NetworkFee( + fee_per_byte = '', + gas_price = '', + network_fee = '', + base_fee = '', + priority_fee = '' + ) + else: + return NetworkFee( + ) + """ + + def testNetworkFee(self): + """Test NetworkFee""" + # 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/test/test_network_id.py b/test/test_network_id.py new file mode 100644 index 00000000..9b67f192 --- /dev/null +++ b/test/test_network_id.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.network_id import NetworkId + + +class TestNetworkId(unittest.TestCase): + """NetworkId unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> NetworkId: + """Test NetworkId + 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 `NetworkId` + """ + model = NetworkId() + if include_optional: + return NetworkId( + id = '', + name = '' + ) + else: + return NetworkId( + id = '', + name = '', + ) + """ + + def testNetworkId(self): + """Test NetworkId""" + # 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/test/test_network_id_response.py b/test/test_network_id_response.py new file mode 100644 index 00000000..623a2a68 --- /dev/null +++ b/test/test_network_id_response.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.network_id_response import NetworkIdResponse + + +class TestNetworkIdResponse(unittest.TestCase): + """NetworkIdResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> NetworkIdResponse: + """Test NetworkIdResponse + 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 `NetworkIdResponse` + """ + model = NetworkIdResponse() + if include_optional: + return NetworkIdResponse( + id = '', + name = '', + routing_policy = { + 'key' : null + }, + is_discoverable = True + ) + else: + return NetworkIdResponse( + id = '', + name = '', + ) + """ + + def testNetworkIdResponse(self): + """Test NetworkIdResponse""" + # 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/test/test_network_id_routing_policy_value.py b/test/test_network_id_routing_policy_value.py new file mode 100644 index 00000000..b2fceb27 --- /dev/null +++ b/test/test_network_id_routing_policy_value.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.network_id_routing_policy_value import ( + NetworkIdRoutingPolicyValue, +) + + +class TestNetworkIdRoutingPolicyValue(unittest.TestCase): + """NetworkIdRoutingPolicyValue unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> NetworkIdRoutingPolicyValue: + """Test NetworkIdRoutingPolicyValue + 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 `NetworkIdRoutingPolicyValue` + """ + model = NetworkIdRoutingPolicyValue() + if include_optional: + return NetworkIdRoutingPolicyValue( + scheme = 'NONE', + dst_type = 'FIAT_ACCOUNT', + dst_id = '' + ) + else: + return NetworkIdRoutingPolicyValue( + scheme = 'NONE', + dst_type = 'FIAT_ACCOUNT', + dst_id = '', + ) + """ + + def testNetworkIdRoutingPolicyValue(self): + """Test NetworkIdRoutingPolicyValue""" + # 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/test/test_network_record.py b/test/test_network_record.py new file mode 100644 index 00000000..507ea790 --- /dev/null +++ b/test/test_network_record.py @@ -0,0 +1,78 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.network_record import NetworkRecord + + +class TestNetworkRecord(unittest.TestCase): + """NetworkRecord unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> NetworkRecord: + """Test NetworkRecord + 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 `NetworkRecord` + """ + model = NetworkRecord() + if include_optional: + return NetworkRecord( + source = fireblocks_client.models.source_transfer_peer_path_response.SourceTransferPeerPathResponse( + type = 'VAULT_ACCOUNT', + sub_type = '', + id = '', + name = '', + wallet_id = '', ), + destination = fireblocks_client.models.destination_transfer_peer_path_response.DestinationTransferPeerPathResponse( + type = 'VAULT_ACCOUNT', + sub_type = '', + id = '', + name = '', + wallet_id = '', ), + tx_hash = '', + network_fee = '', + asset_id = '', + net_amount = '', + is_dropped = True, + type = '', + destination_address = '', + source_address = '', + amount_usd = '', + index = 1.337, + reward_info = fireblocks_client.models.reward_info.RewardInfo( + src_rewards = '', + dest_rewards = '', ) + ) + else: + return NetworkRecord( + ) + """ + + def testNetworkRecord(self): + """Test NetworkRecord""" + # 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/test/test_nfts_api.py b/test/test_nfts_api.py new file mode 100644 index 00000000..2b03b52e --- /dev/null +++ b/test/test_nfts_api.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.api.nfts_api import NFTsApi + + +class TestNFTsApi(unittest.TestCase): + """NFTsApi unit test stubs""" + + def setUp(self) -> None: + self.api = NFTsApi() + + def tearDown(self) -> None: + pass + + def test_get_nft(self) -> None: + """Test case for get_nft + + List token data by ID + """ + pass + + def test_get_nfts(self) -> None: + """Test case for get_nfts + + List tokens by IDs + """ + pass + + def test_get_ownership_tokens(self) -> None: + """Test case for get_ownership_tokens + + List all owned tokens (paginated) + """ + pass + + def test_list_owned_collections(self) -> None: + """Test case for list_owned_collections + + List owned collections (paginated) + """ + pass + + def test_list_owned_tokens(self) -> None: + """Test case for list_owned_tokens + + List all distinct owned tokens (paginated) + """ + pass + + def test_refresh_nft_metadata(self) -> None: + """Test case for refresh_nft_metadata + + Refresh token metadata + """ + pass + + def test_update_ownership_tokens(self) -> None: + """Test case for update_ownership_tokens + + Refresh vault account tokens + """ + pass + + def test_update_token_ownership_status(self) -> None: + """Test case for update_token_ownership_status + + Update token ownership status + """ + pass + + def test_update_tokens_ownership_spam(self) -> None: + """Test case for update_tokens_ownership_spam + + Update tokens ownership spam property + """ + pass + + def test_update_tokens_ownership_status(self) -> None: + """Test case for update_tokens_ownership_status + + Update tokens ownership status + """ + pass + + +if __name__ == "__main__": + unittest.main() diff --git a/test/test_none_network_routing_dest.py b/test/test_none_network_routing_dest.py new file mode 100644 index 00000000..50591668 --- /dev/null +++ b/test/test_none_network_routing_dest.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.none_network_routing_dest import NoneNetworkRoutingDest + + +class TestNoneNetworkRoutingDest(unittest.TestCase): + """NoneNetworkRoutingDest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> NoneNetworkRoutingDest: + """Test NoneNetworkRoutingDest + 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 `NoneNetworkRoutingDest` + """ + model = NoneNetworkRoutingDest() + if include_optional: + return NoneNetworkRoutingDest( + scheme = 'NONE' + ) + else: + return NoneNetworkRoutingDest( + scheme = 'NONE', + ) + """ + + def testNoneNetworkRoutingDest(self): + """Test NoneNetworkRoutingDest""" + # 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/test/test_not_found_exception.py b/test/test_not_found_exception.py new file mode 100644 index 00000000..2bf922ae --- /dev/null +++ b/test/test_not_found_exception.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.not_found_exception import NotFoundException + + +class TestNotFoundException(unittest.TestCase): + """NotFoundException unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> NotFoundException: + """Test NotFoundException + 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 `NotFoundException` + """ + model = NotFoundException() + if include_optional: + return NotFoundException( + status_code = 404, + message = '', + error = 'Not Found' + ) + else: + return NotFoundException( + ) + """ + + def testNotFoundException(self): + """Test NotFoundException""" + # 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/test/test_off_exchanges_api.py b/test/test_off_exchanges_api.py new file mode 100644 index 00000000..2e48977d --- /dev/null +++ b/test/test_off_exchanges_api.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.api.off_exchanges_api import OffExchangesApi + + +class TestOffExchangesApi(unittest.TestCase): + """OffExchangesApi unit test stubs""" + + def setUp(self) -> None: + self.api = OffExchangesApi() + + def tearDown(self) -> None: + pass + + def test_add_off_exchange(self) -> None: + """Test case for add_off_exchange + + add collateral + """ + pass + + def test_get_off_exchange_collateral_accounts(self) -> None: + """Test case for get_off_exchange_collateral_accounts + + Find a specific collateral exchange account + """ + pass + + def test_get_off_exchange_settlement_transactions(self) -> None: + """Test case for get_off_exchange_settlement_transactions + + get settlements transactions from exchange + """ + pass + + def test_remove_off_exchange(self) -> None: + """Test case for remove_off_exchange + + remove collateral + """ + pass + + def test_settle_off_exchange_trades(self) -> None: + """Test case for settle_off_exchange_trades + + create settlement for a trader + """ + pass + + +if __name__ == "__main__": + unittest.main() diff --git a/test/test_one_time_address.py b/test/test_one_time_address.py new file mode 100644 index 00000000..fa318634 --- /dev/null +++ b/test/test_one_time_address.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.one_time_address import OneTimeAddress + + +class TestOneTimeAddress(unittest.TestCase): + """OneTimeAddress unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> OneTimeAddress: + """Test OneTimeAddress + 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 `OneTimeAddress` + """ + model = OneTimeAddress() + if include_optional: + return OneTimeAddress( + address = '', + tag = '' + ) + else: + return OneTimeAddress( + address = '', + ) + """ + + def testOneTimeAddress(self): + """Test OneTimeAddress""" + # 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/test/test_one_time_address_account.py b/test/test_one_time_address_account.py new file mode 100644 index 00000000..30e631e9 --- /dev/null +++ b/test/test_one_time_address_account.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.one_time_address_account import OneTimeAddressAccount + + +class TestOneTimeAddressAccount(unittest.TestCase): + """OneTimeAddressAccount unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> OneTimeAddressAccount: + """Test OneTimeAddressAccount + 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 `OneTimeAddressAccount` + """ + model = OneTimeAddressAccount() + if include_optional: + return OneTimeAddressAccount( + one_time_address = '', + tag = '' + ) + else: + return OneTimeAddressAccount( + one_time_address = '', + ) + """ + + def testOneTimeAddressAccount(self): + """Test OneTimeAddressAccount""" + # 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/test/test_operation_execution_failure.py b/test/test_operation_execution_failure.py new file mode 100644 index 00000000..33b9174b --- /dev/null +++ b/test/test_operation_execution_failure.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.operation_execution_failure import ( + OperationExecutionFailure, +) + + +class TestOperationExecutionFailure(unittest.TestCase): + """OperationExecutionFailure unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> OperationExecutionFailure: + """Test OperationExecutionFailure + 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 `OperationExecutionFailure` + """ + model = OperationExecutionFailure() + if include_optional: + return OperationExecutionFailure( + reason = '', + data = { + 'key' : null + } + ) + else: + return OperationExecutionFailure( + reason = '', + ) + """ + + def testOperationExecutionFailure(self): + """Test OperationExecutionFailure""" + # 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/test/test_ota_beta_api.py b/test/test_ota_beta_api.py new file mode 100644 index 00000000..baa42809 --- /dev/null +++ b/test/test_ota_beta_api.py @@ -0,0 +1,46 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.api.ota_beta_api import OTABetaApi + + +class TestOTABetaApi(unittest.TestCase): + """OTABetaApi unit test stubs""" + + def setUp(self) -> None: + self.api = OTABetaApi() + + def tearDown(self) -> None: + pass + + def test_get_ota_status(self) -> None: + """Test case for get_ota_status + + Returns current OTA status + """ + pass + + def test_set_ota_status(self) -> None: + """Test case for set_ota_status + + Enable or disable transactions to OTA + """ + pass + + +if __name__ == "__main__": + unittest.main() diff --git a/test/test_paginated_address_response.py b/test/test_paginated_address_response.py new file mode 100644 index 00000000..8b997e15 --- /dev/null +++ b/test/test_paginated_address_response.py @@ -0,0 +1,70 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.paginated_address_response import PaginatedAddressResponse + + +class TestPaginatedAddressResponse(unittest.TestCase): + """PaginatedAddressResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PaginatedAddressResponse: + """Test PaginatedAddressResponse + 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 `PaginatedAddressResponse` + """ + model = PaginatedAddressResponse() + if include_optional: + return PaginatedAddressResponse( + addresses = [ + fireblocks_client.models.vault_wallet_address.VaultWalletAddress( + asset_id = '', + address = '', + description = '', + tag = '', + type = '', + customer_ref_id = '', + address_format = 'SEGWIT', + legacy_address = '', + enterprise_address = '', + bip44_address_index = 56, + user_defined = True, ) + ], + paging = fireblocks_client.models.paginated_address_response_paging.PaginatedAddressResponse_paging( + before = '', + after = '', ) + ) + else: + return PaginatedAddressResponse( + ) + """ + + def testPaginatedAddressResponse(self): + """Test PaginatedAddressResponse""" + # 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/test/test_paginated_address_response_paging.py b/test/test_paginated_address_response_paging.py new file mode 100644 index 00000000..552690ec --- /dev/null +++ b/test/test_paginated_address_response_paging.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.paginated_address_response_paging import ( + PaginatedAddressResponsePaging, +) + + +class TestPaginatedAddressResponsePaging(unittest.TestCase): + """PaginatedAddressResponsePaging unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PaginatedAddressResponsePaging: + """Test PaginatedAddressResponsePaging + 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 `PaginatedAddressResponsePaging` + """ + model = PaginatedAddressResponsePaging() + if include_optional: + return PaginatedAddressResponsePaging( + before = '', + after = '' + ) + else: + return PaginatedAddressResponsePaging( + ) + """ + + def testPaginatedAddressResponsePaging(self): + """Test PaginatedAddressResponsePaging""" + # 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/test/test_paginated_asset_wallet_response.py b/test/test_paginated_asset_wallet_response.py new file mode 100644 index 00000000..452c1ba5 --- /dev/null +++ b/test/test_paginated_asset_wallet_response.py @@ -0,0 +1,72 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.paginated_asset_wallet_response import ( + PaginatedAssetWalletResponse, +) + + +class TestPaginatedAssetWalletResponse(unittest.TestCase): + """PaginatedAssetWalletResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PaginatedAssetWalletResponse: + """Test PaginatedAssetWalletResponse + 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 `PaginatedAssetWalletResponse` + """ + model = PaginatedAssetWalletResponse() + if include_optional: + return PaginatedAssetWalletResponse( + asset_wallets = [ + fireblocks_client.models.asset_wallet.AssetWallet( + vault_id = '', + asset_id = '', + available = '', + total = '', + pending = '', + staked = '', + frozen = '', + locked_amount = '', + block_height = '', + block_hash = '', + creation_timestamp = '', ) + ], + paging = fireblocks_client.models.paginated_asset_wallet_response_paging.PaginatedAssetWalletResponse_paging( + before = '', + after = '', ) + ) + else: + return PaginatedAssetWalletResponse( + ) + """ + + def testPaginatedAssetWalletResponse(self): + """Test PaginatedAssetWalletResponse""" + # 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/test/test_paginated_asset_wallet_response_paging.py b/test/test_paginated_asset_wallet_response_paging.py new file mode 100644 index 00000000..25c39431 --- /dev/null +++ b/test/test_paginated_asset_wallet_response_paging.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.paginated_asset_wallet_response_paging import ( + PaginatedAssetWalletResponsePaging, +) + + +class TestPaginatedAssetWalletResponsePaging(unittest.TestCase): + """PaginatedAssetWalletResponsePaging unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PaginatedAssetWalletResponsePaging: + """Test PaginatedAssetWalletResponsePaging + 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 `PaginatedAssetWalletResponsePaging` + """ + model = PaginatedAssetWalletResponsePaging() + if include_optional: + return PaginatedAssetWalletResponsePaging( + before = '', + after = '' + ) + else: + return PaginatedAssetWalletResponsePaging( + ) + """ + + def testPaginatedAssetWalletResponsePaging(self): + """Test PaginatedAssetWalletResponsePaging""" + # 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/test/test_paging.py b/test/test_paging.py new file mode 100644 index 00000000..1f6b7245 --- /dev/null +++ b/test/test_paging.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.paging import Paging + + +class TestPaging(unittest.TestCase): + """Paging unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> Paging: + """Test Paging + 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 `Paging` + """ + model = Paging() + if include_optional: + return Paging( + next = '' + ) + else: + return Paging( + next = '', + ) + """ + + def testPaging(self): + """Test Paging""" + # 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/test/test_parameter.py b/test/test_parameter.py new file mode 100644 index 00000000..cc858c22 --- /dev/null +++ b/test/test_parameter.py @@ -0,0 +1,73 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.parameter import Parameter + + +class TestParameter(unittest.TestCase): + """Parameter unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> Parameter: + """Test Parameter + 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 `Parameter` + """ + model = Parameter() + if include_optional: + return Parameter( + name = '_name', + description = 'The name of the token', + internal_type = 'string', + type = 'string', + components = [ + fireblocks_client.models.parameter.Parameter( + name = '_name', + description = 'The name of the token', + internal_type = 'string', + type = 'string', + components = [ + fireblocks_client.models.parameter.Parameter( + name = '_name', + description = 'The name of the token', + internal_type = 'string', + type = 'string', ) + ], ) + ] + ) + else: + return Parameter( + name = '_name', + type = 'string', + ) + """ + + def testParameter(self): + """Test Parameter""" + # 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/test/test_parameter_with_value.py b/test/test_parameter_with_value.py new file mode 100644 index 00000000..b34d755b --- /dev/null +++ b/test/test_parameter_with_value.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.parameter_with_value import ParameterWithValue + + +class TestParameterWithValue(unittest.TestCase): + """ParameterWithValue unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ParameterWithValue: + """Test ParameterWithValue + 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 `ParameterWithValue` + """ + model = ParameterWithValue() + if include_optional: + return ParameterWithValue( + name = '_name', + description = 'The name of the token', + internal_type = 'string', + type = 'string', + components = [ + fireblocks_client.models.parameter.Parameter( + name = '_name', + description = 'The name of the token', + internal_type = 'string', + type = 'string', + components = [ + fireblocks_client.models.parameter.Parameter( + name = '_name', + description = 'The name of the token', + internal_type = 'string', + type = 'string', ) + ], ) + ], + value = 'true', + function_value = fireblocks_client.models.lean_abi_function.LeanAbiFunction( + name = 'initialize', + inputs = [ + fireblocks_client.models.parameter_with_value.ParameterWithValue( + name = '_name', + description = 'The name of the token', + internal_type = 'string', + type = 'string', + components = [ + fireblocks_client.models.parameter.Parameter( + name = '_name', + description = 'The name of the token', + internal_type = 'string', + type = 'string', ) + ], + value = 'true', + function_value = null, ) + ], ) + ) + else: + return ParameterWithValue( + name = '_name', + type = 'string', + ) + """ + + def testParameterWithValue(self): + """Test ParameterWithValue""" + # 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/test/test_paths/__init__.py b/test/test_paths/__init__.py deleted file mode 100644 index 1309632d..00000000 --- a/test/test_paths/__init__.py +++ /dev/null @@ -1,68 +0,0 @@ -import json -import typing - -import urllib3 -from urllib3._collections import HTTPHeaderDict - - -class ApiTestMixin: - json_content_type = 'application/json' - user_agent = 'OpenAPI-Generator/1.0.0/python' - - @classmethod - def assert_pool_manager_request_called_with( - cls, - mock_request, - url: str, - method: str = 'POST', - body: typing.Optional[bytes] = None, - content_type: typing.Optional[str] = None, - accept_content_type: typing.Optional[str] = None, - stream: bool = False, - ): - headers = { - 'User-Agent': cls.user_agent - } - if accept_content_type: - headers['Accept'] = accept_content_type - if content_type: - headers['Content-Type'] = content_type - kwargs = dict( - headers=HTTPHeaderDict(headers), - preload_content=not stream, - timeout=None, - ) - if content_type and method != 'GET': - kwargs['body'] = body - mock_request.assert_called_with( - method, - url, - **kwargs - ) - - @staticmethod - def headers_for_content_type(content_type: str) -> typing.Dict[str, str]: - return {'content-type': content_type} - - @classmethod - def response( - cls, - body: typing.Union[str, bytes], - status: int = 200, - content_type: str = json_content_type, - headers: typing.Optional[typing.Dict[str, str]] = None, - preload_content: bool = True - ) -> urllib3.HTTPResponse: - if headers is None: - headers = {} - headers.update(cls.headers_for_content_type(content_type)) - return urllib3.HTTPResponse( - body, - headers=headers, - status=status, - preload_content=preload_content - ) - - @staticmethod - def json_bytes(in_data: typing.Any) -> bytes: - return json.dumps(in_data, separators=(",", ":"), ensure_ascii=False).encode('utf-8') diff --git a/test/test_paths/test_audits/__init__.py b/test/test_paths/test_audits/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_audits/test_get.py b/test/test_paths/test_audits/test_get.py deleted file mode 100644 index 926e9d62..00000000 --- a/test/test_paths/test_audits/test_get.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.audits import get # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestAudits(ApiTestMixin, unittest.TestCase): - """ - Audits unit test stubs - Get audit logs # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - response_body = '' - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_connections/__init__.py b/test/test_paths/test_connections/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_connections/test_get.py b/test/test_paths/test_connections/test_get.py deleted file mode 100644 index acbee739..00000000 --- a/test/test_paths/test_connections/test_get.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.connections import get # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestConnections(ApiTestMixin, unittest.TestCase): - """ - Connections unit test stubs - List all open Web3 connections. # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_connections_wc/__init__.py b/test/test_paths/test_connections_wc/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_connections_wc/test_post.py b/test/test_paths/test_connections_wc/test_post.py deleted file mode 100644 index 9b3923d0..00000000 --- a/test/test_paths/test_connections_wc/test_post.py +++ /dev/null @@ -1,47 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.connections_wc import post # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestConnectionsWc(ApiTestMixin, unittest.TestCase): - """ - ConnectionsWc unit test stubs - Create a new Web3 connection. # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 201 - - - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_connections_wc_id/__init__.py b/test/test_paths/test_connections_wc_id/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_connections_wc_id/test_delete.py b/test/test_paths/test_connections_wc_id/test_delete.py deleted file mode 100644 index f0bd6d3d..00000000 --- a/test/test_paths/test_connections_wc_id/test_delete.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.connections_wc_id import delete # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestConnectionsWcId(ApiTestMixin, unittest.TestCase): - """ - ConnectionsWcId unit test stubs - Remove an existing Web3 connection. # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = delete.ApiFordelete(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - response_body = '' - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_connections_wc_id/test_put.py b/test/test_paths/test_connections_wc_id/test_put.py deleted file mode 100644 index 2f7b5430..00000000 --- a/test/test_paths/test_connections_wc_id/test_put.py +++ /dev/null @@ -1,46 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.connections_wc_id import put # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestConnectionsWcId(ApiTestMixin, unittest.TestCase): - """ - ConnectionsWcId unit test stubs - Respond to a pending Web3 connection request. # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = put.ApiForput(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - response_body = '' - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_contracts/__init__.py b/test/test_paths/test_contracts/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_contracts/test_get.py b/test/test_paths/test_contracts/test_get.py deleted file mode 100644 index 0943fa43..00000000 --- a/test/test_paths/test_contracts/test_get.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.contracts import get # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestContracts(ApiTestMixin, unittest.TestCase): - """ - Contracts unit test stubs - List contracts # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_contracts/test_post.py b/test/test_paths/test_contracts/test_post.py deleted file mode 100644 index e19d77cd..00000000 --- a/test/test_paths/test_contracts/test_post.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.contracts import post # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestContracts(ApiTestMixin, unittest.TestCase): - """ - Contracts unit test stubs - Create a contract # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_contracts_contract_id/__init__.py b/test/test_paths/test_contracts_contract_id/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_contracts_contract_id/test_delete.py b/test/test_paths/test_contracts_contract_id/test_delete.py deleted file mode 100644 index 32b2e9fd..00000000 --- a/test/test_paths/test_contracts_contract_id/test_delete.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.contracts_contract_id import delete # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestContractsContractId(ApiTestMixin, unittest.TestCase): - """ - ContractsContractId unit test stubs - Delete a contract # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = delete.ApiFordelete(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 201 - response_body = '' - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_contracts_contract_id/test_get.py b/test/test_paths/test_contracts_contract_id/test_get.py deleted file mode 100644 index 6c236a6c..00000000 --- a/test/test_paths/test_contracts_contract_id/test_get.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.contracts_contract_id import get # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestContractsContractId(ApiTestMixin, unittest.TestCase): - """ - ContractsContractId unit test stubs - Find a specific contract # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_contracts_contract_id_asset_id/__init__.py b/test/test_paths/test_contracts_contract_id_asset_id/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_contracts_contract_id_asset_id/test_delete.py b/test/test_paths/test_contracts_contract_id_asset_id/test_delete.py deleted file mode 100644 index ab91790c..00000000 --- a/test/test_paths/test_contracts_contract_id_asset_id/test_delete.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.contracts_contract_id_asset_id import delete # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestContractsContractIdAssetId(ApiTestMixin, unittest.TestCase): - """ - ContractsContractIdAssetId unit test stubs - Delete a contract asset # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = delete.ApiFordelete(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 201 - response_body = '' - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_contracts_contract_id_asset_id/test_get.py b/test/test_paths/test_contracts_contract_id_asset_id/test_get.py deleted file mode 100644 index bffeee07..00000000 --- a/test/test_paths/test_contracts_contract_id_asset_id/test_get.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.contracts_contract_id_asset_id import get # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestContractsContractIdAssetId(ApiTestMixin, unittest.TestCase): - """ - ContractsContractIdAssetId unit test stubs - Find a contract asset # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_contracts_contract_id_asset_id/test_post.py b/test/test_paths/test_contracts_contract_id_asset_id/test_post.py deleted file mode 100644 index a0a5d01c..00000000 --- a/test/test_paths/test_contracts_contract_id_asset_id/test_post.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.contracts_contract_id_asset_id import post # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestContractsContractIdAssetId(ApiTestMixin, unittest.TestCase): - """ - ContractsContractIdAssetId unit test stubs - Add an asset to a contract # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_estimate_network_fee/__init__.py b/test/test_paths/test_estimate_network_fee/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_estimate_network_fee/test_get.py b/test/test_paths/test_estimate_network_fee/test_get.py deleted file mode 100644 index 997503ed..00000000 --- a/test/test_paths/test_estimate_network_fee/test_get.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.estimate_network_fee import get # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestEstimateNetworkFee(ApiTestMixin, unittest.TestCase): - """ - EstimateNetworkFee unit test stubs - Estimate the required fee for an asset # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_exchange_accounts/__init__.py b/test/test_paths/test_exchange_accounts/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_exchange_accounts/test_get.py b/test/test_paths/test_exchange_accounts/test_get.py deleted file mode 100644 index 9882bca6..00000000 --- a/test/test_paths/test_exchange_accounts/test_get.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.exchange_accounts import get # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestExchangeAccounts(ApiTestMixin, unittest.TestCase): - """ - ExchangeAccounts unit test stubs - List exchange accounts # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_exchange_accounts_exchange_account_id/__init__.py b/test/test_paths/test_exchange_accounts_exchange_account_id/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_exchange_accounts_exchange_account_id/test_get.py b/test/test_paths/test_exchange_accounts_exchange_account_id/test_get.py deleted file mode 100644 index 2ed76083..00000000 --- a/test/test_paths/test_exchange_accounts_exchange_account_id/test_get.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.exchange_accounts_exchange_account_id import get # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestExchangeAccountsExchangeAccountId(ApiTestMixin, unittest.TestCase): - """ - ExchangeAccountsExchangeAccountId unit test stubs - Find a specific exchange account # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_exchange_accounts_exchange_account_id_asset_id/__init__.py b/test/test_paths/test_exchange_accounts_exchange_account_id_asset_id/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_exchange_accounts_exchange_account_id_asset_id/test_get.py b/test/test_paths/test_exchange_accounts_exchange_account_id_asset_id/test_get.py deleted file mode 100644 index 3745a4ba..00000000 --- a/test/test_paths/test_exchange_accounts_exchange_account_id_asset_id/test_get.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.exchange_accounts_exchange_account_id_asset_id import get # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestExchangeAccountsExchangeAccountIdAssetId(ApiTestMixin, unittest.TestCase): - """ - ExchangeAccountsExchangeAccountIdAssetId unit test stubs - Find an asset for an exchange account # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_exchange_accounts_exchange_account_id_convert/__init__.py b/test/test_paths/test_exchange_accounts_exchange_account_id_convert/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_exchange_accounts_exchange_account_id_convert/test_post.py b/test/test_paths/test_exchange_accounts_exchange_account_id_convert/test_post.py deleted file mode 100644 index a8139c88..00000000 --- a/test/test_paths/test_exchange_accounts_exchange_account_id_convert/test_post.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.exchange_accounts_exchange_account_id_convert import post # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestExchangeAccountsExchangeAccountIdConvert(ApiTestMixin, unittest.TestCase): - """ - ExchangeAccountsExchangeAccountIdConvert unit test stubs - Convert exchange account funds from the source asset to the destination asset. Coinbase (USD to USDC, USDC to USD) and Bitso (MXN to USD) are supported conversions. # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - response_body = '' - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_exchange_accounts_exchange_account_id_internal_transfer/__init__.py b/test/test_paths/test_exchange_accounts_exchange_account_id_internal_transfer/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_exchange_accounts_exchange_account_id_internal_transfer/test_post.py b/test/test_paths/test_exchange_accounts_exchange_account_id_internal_transfer/test_post.py deleted file mode 100644 index da18e035..00000000 --- a/test/test_paths/test_exchange_accounts_exchange_account_id_internal_transfer/test_post.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.exchange_accounts_exchange_account_id_internal_transfer import post # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestExchangeAccountsExchangeAccountIdInternalTransfer(ApiTestMixin, unittest.TestCase): - """ - ExchangeAccountsExchangeAccountIdInternalTransfer unit test stubs - Internal tranfer for exchange accounts # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 201 - response_body = '' - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_external_wallets/__init__.py b/test/test_paths/test_external_wallets/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_external_wallets/test_get.py b/test/test_paths/test_external_wallets/test_get.py deleted file mode 100644 index 32461a6f..00000000 --- a/test/test_paths/test_external_wallets/test_get.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.external_wallets import get # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestExternalWallets(ApiTestMixin, unittest.TestCase): - """ - ExternalWallets unit test stubs - List external wallets # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_external_wallets/test_post.py b/test/test_paths/test_external_wallets/test_post.py deleted file mode 100644 index d4d9bd2b..00000000 --- a/test/test_paths/test_external_wallets/test_post.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.external_wallets import post # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestExternalWallets(ApiTestMixin, unittest.TestCase): - """ - ExternalWallets unit test stubs - Create an external wallet # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_external_wallets_wallet_id/__init__.py b/test/test_paths/test_external_wallets_wallet_id/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_external_wallets_wallet_id/test_delete.py b/test/test_paths/test_external_wallets_wallet_id/test_delete.py deleted file mode 100644 index 91fbea1e..00000000 --- a/test/test_paths/test_external_wallets_wallet_id/test_delete.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.external_wallets_wallet_id import delete # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestExternalWalletsWalletId(ApiTestMixin, unittest.TestCase): - """ - ExternalWalletsWalletId unit test stubs - Delete an external wallet # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = delete.ApiFordelete(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 201 - response_body = '' - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_external_wallets_wallet_id/test_get.py b/test/test_paths/test_external_wallets_wallet_id/test_get.py deleted file mode 100644 index c4a30687..00000000 --- a/test/test_paths/test_external_wallets_wallet_id/test_get.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.external_wallets_wallet_id import get # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestExternalWalletsWalletId(ApiTestMixin, unittest.TestCase): - """ - ExternalWalletsWalletId unit test stubs - Find an external wallet # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_external_wallets_wallet_id_asset_id/__init__.py b/test/test_paths/test_external_wallets_wallet_id_asset_id/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_external_wallets_wallet_id_asset_id/test_delete.py b/test/test_paths/test_external_wallets_wallet_id_asset_id/test_delete.py deleted file mode 100644 index d3eef34d..00000000 --- a/test/test_paths/test_external_wallets_wallet_id_asset_id/test_delete.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.external_wallets_wallet_id_asset_id import delete # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestExternalWalletsWalletIdAssetId(ApiTestMixin, unittest.TestCase): - """ - ExternalWalletsWalletIdAssetId unit test stubs - Delete an asset from an external wallet # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = delete.ApiFordelete(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 201 - response_body = '' - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_external_wallets_wallet_id_asset_id/test_get.py b/test/test_paths/test_external_wallets_wallet_id_asset_id/test_get.py deleted file mode 100644 index 56d23902..00000000 --- a/test/test_paths/test_external_wallets_wallet_id_asset_id/test_get.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.external_wallets_wallet_id_asset_id import get # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestExternalWalletsWalletIdAssetId(ApiTestMixin, unittest.TestCase): - """ - ExternalWalletsWalletIdAssetId unit test stubs - Get an asset from an external wallet # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_external_wallets_wallet_id_asset_id/test_post.py b/test/test_paths/test_external_wallets_wallet_id_asset_id/test_post.py deleted file mode 100644 index 54db2ead..00000000 --- a/test/test_paths/test_external_wallets_wallet_id_asset_id/test_post.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.external_wallets_wallet_id_asset_id import post # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestExternalWalletsWalletIdAssetId(ApiTestMixin, unittest.TestCase): - """ - ExternalWalletsWalletIdAssetId unit test stubs - Add an asset to an external wallet. # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_external_wallets_wallet_id_set_customer_ref_id/__init__.py b/test/test_paths/test_external_wallets_wallet_id_set_customer_ref_id/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_external_wallets_wallet_id_set_customer_ref_id/test_post.py b/test/test_paths/test_external_wallets_wallet_id_set_customer_ref_id/test_post.py deleted file mode 100644 index 25e868b1..00000000 --- a/test/test_paths/test_external_wallets_wallet_id_set_customer_ref_id/test_post.py +++ /dev/null @@ -1,46 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.external_wallets_wallet_id_set_customer_ref_id import post # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestExternalWalletsWalletIdSetCustomerRefId(ApiTestMixin, unittest.TestCase): - """ - ExternalWalletsWalletIdSetCustomerRefId unit test stubs - Set an AML customer reference ID for an external wallet # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 201 - response_body = '' - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_fiat_accounts/__init__.py b/test/test_paths/test_fiat_accounts/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_fiat_accounts/test_get.py b/test/test_paths/test_fiat_accounts/test_get.py deleted file mode 100644 index 71efaeb0..00000000 --- a/test/test_paths/test_fiat_accounts/test_get.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.fiat_accounts import get # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestFiatAccounts(ApiTestMixin, unittest.TestCase): - """ - FiatAccounts unit test stubs - List fiat accounts # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_fiat_accounts_account_id/__init__.py b/test/test_paths/test_fiat_accounts_account_id/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_fiat_accounts_account_id/test_get.py b/test/test_paths/test_fiat_accounts_account_id/test_get.py deleted file mode 100644 index 5fec86df..00000000 --- a/test/test_paths/test_fiat_accounts_account_id/test_get.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.fiat_accounts_account_id import get # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestFiatAccountsAccountId(ApiTestMixin, unittest.TestCase): - """ - FiatAccountsAccountId unit test stubs - Find a specific fiat account # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_fiat_accounts_account_id_deposit_from_linked_dda/__init__.py b/test/test_paths/test_fiat_accounts_account_id_deposit_from_linked_dda/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_fiat_accounts_account_id_deposit_from_linked_dda/test_post.py b/test/test_paths/test_fiat_accounts_account_id_deposit_from_linked_dda/test_post.py deleted file mode 100644 index e9b7d1f0..00000000 --- a/test/test_paths/test_fiat_accounts_account_id_deposit_from_linked_dda/test_post.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.fiat_accounts_account_id_deposit_from_linked_dda import post # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestFiatAccountsAccountIdDepositFromLinkedDda(ApiTestMixin, unittest.TestCase): - """ - FiatAccountsAccountIdDepositFromLinkedDda unit test stubs - Deposit funds from DDA # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 201 - response_body = '' - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_fiat_accounts_account_id_redeem_to_linked_dda/__init__.py b/test/test_paths/test_fiat_accounts_account_id_redeem_to_linked_dda/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_fiat_accounts_account_id_redeem_to_linked_dda/test_post.py b/test/test_paths/test_fiat_accounts_account_id_redeem_to_linked_dda/test_post.py deleted file mode 100644 index 2abbd51b..00000000 --- a/test/test_paths/test_fiat_accounts_account_id_redeem_to_linked_dda/test_post.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.fiat_accounts_account_id_redeem_to_linked_dda import post # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestFiatAccountsAccountIdRedeemToLinkedDda(ApiTestMixin, unittest.TestCase): - """ - FiatAccountsAccountIdRedeemToLinkedDda unit test stubs - Redeem funds to DDA # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 201 - response_body = '' - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_gas_station/__init__.py b/test/test_paths/test_gas_station/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_gas_station/test_get.py b/test/test_paths/test_gas_station/test_get.py deleted file mode 100644 index 8367f524..00000000 --- a/test/test_paths/test_gas_station/test_get.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.gas_station import get # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestGasStation(ApiTestMixin, unittest.TestCase): - """ - GasStation unit test stubs - Get gas station settings # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_gas_station_asset_id/__init__.py b/test/test_paths/test_gas_station_asset_id/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_gas_station_asset_id/test_get.py b/test/test_paths/test_gas_station_asset_id/test_get.py deleted file mode 100644 index 713d5c5a..00000000 --- a/test/test_paths/test_gas_station_asset_id/test_get.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.gas_station_asset_id import get # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestGasStationAssetId(ApiTestMixin, unittest.TestCase): - """ - GasStationAssetId unit test stubs - Get gas station settings by asset # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_gas_station_configuration/__init__.py b/test/test_paths/test_gas_station_configuration/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_gas_station_configuration/test_put.py b/test/test_paths/test_gas_station_configuration/test_put.py deleted file mode 100644 index d97e6b0a..00000000 --- a/test/test_paths/test_gas_station_configuration/test_put.py +++ /dev/null @@ -1,46 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.gas_station_configuration import put # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestGasStationConfiguration(ApiTestMixin, unittest.TestCase): - """ - GasStationConfiguration unit test stubs - Edit gas station settings # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = put.ApiForput(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 201 - response_body = '' - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_gas_station_configuration_asset_id/__init__.py b/test/test_paths/test_gas_station_configuration_asset_id/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_gas_station_configuration_asset_id/test_put.py b/test/test_paths/test_gas_station_configuration_asset_id/test_put.py deleted file mode 100644 index 0aa77582..00000000 --- a/test/test_paths/test_gas_station_configuration_asset_id/test_put.py +++ /dev/null @@ -1,46 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.gas_station_configuration_asset_id import put # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestGasStationConfigurationAssetId(ApiTestMixin, unittest.TestCase): - """ - GasStationConfigurationAssetId unit test stubs - Edit gas station settings for an asset # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = put.ApiForput(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 201 - response_body = '' - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_internal_wallets/__init__.py b/test/test_paths/test_internal_wallets/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_internal_wallets/test_get.py b/test/test_paths/test_internal_wallets/test_get.py deleted file mode 100644 index 95cb1de0..00000000 --- a/test/test_paths/test_internal_wallets/test_get.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.internal_wallets import get # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestInternalWallets(ApiTestMixin, unittest.TestCase): - """ - InternalWallets unit test stubs - List internal wallets # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_internal_wallets/test_post.py b/test/test_paths/test_internal_wallets/test_post.py deleted file mode 100644 index 99ecce89..00000000 --- a/test/test_paths/test_internal_wallets/test_post.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.internal_wallets import post # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestInternalWallets(ApiTestMixin, unittest.TestCase): - """ - InternalWallets unit test stubs - Create an internal wallet # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_internal_wallets_wallet_id/__init__.py b/test/test_paths/test_internal_wallets_wallet_id/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_internal_wallets_wallet_id/test_delete.py b/test/test_paths/test_internal_wallets_wallet_id/test_delete.py deleted file mode 100644 index 9f56ae23..00000000 --- a/test/test_paths/test_internal_wallets_wallet_id/test_delete.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.internal_wallets_wallet_id import delete # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestInternalWalletsWalletId(ApiTestMixin, unittest.TestCase): - """ - InternalWalletsWalletId unit test stubs - Delete an internal wallet # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = delete.ApiFordelete(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 201 - response_body = '' - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_internal_wallets_wallet_id/test_get.py b/test/test_paths/test_internal_wallets_wallet_id/test_get.py deleted file mode 100644 index 0553e6d0..00000000 --- a/test/test_paths/test_internal_wallets_wallet_id/test_get.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.internal_wallets_wallet_id import get # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestInternalWalletsWalletId(ApiTestMixin, unittest.TestCase): - """ - InternalWalletsWalletId unit test stubs - Get assets for internal wallet # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_internal_wallets_wallet_id_asset_id/__init__.py b/test/test_paths/test_internal_wallets_wallet_id_asset_id/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_internal_wallets_wallet_id_asset_id/test_delete.py b/test/test_paths/test_internal_wallets_wallet_id_asset_id/test_delete.py deleted file mode 100644 index 04e9d006..00000000 --- a/test/test_paths/test_internal_wallets_wallet_id_asset_id/test_delete.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.internal_wallets_wallet_id_asset_id import delete # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestInternalWalletsWalletIdAssetId(ApiTestMixin, unittest.TestCase): - """ - InternalWalletsWalletIdAssetId unit test stubs - Delete a whitelisted address from an internal wallet # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = delete.ApiFordelete(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 201 - response_body = '' - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_internal_wallets_wallet_id_asset_id/test_get.py b/test/test_paths/test_internal_wallets_wallet_id_asset_id/test_get.py deleted file mode 100644 index d2e9351d..00000000 --- a/test/test_paths/test_internal_wallets_wallet_id_asset_id/test_get.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.internal_wallets_wallet_id_asset_id import get # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestInternalWalletsWalletIdAssetId(ApiTestMixin, unittest.TestCase): - """ - InternalWalletsWalletIdAssetId unit test stubs - Get an asset from an internal wallet # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_internal_wallets_wallet_id_asset_id/test_post.py b/test/test_paths/test_internal_wallets_wallet_id_asset_id/test_post.py deleted file mode 100644 index cd496278..00000000 --- a/test/test_paths/test_internal_wallets_wallet_id_asset_id/test_post.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.internal_wallets_wallet_id_asset_id import post # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestInternalWalletsWalletIdAssetId(ApiTestMixin, unittest.TestCase): - """ - InternalWalletsWalletIdAssetId unit test stubs - Add an asset to an internal wallet # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_internal_wallets_wallet_id_set_customer_ref_id/__init__.py b/test/test_paths/test_internal_wallets_wallet_id_set_customer_ref_id/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_internal_wallets_wallet_id_set_customer_ref_id/test_post.py b/test/test_paths/test_internal_wallets_wallet_id_set_customer_ref_id/test_post.py deleted file mode 100644 index ab3eddf3..00000000 --- a/test/test_paths/test_internal_wallets_wallet_id_set_customer_ref_id/test_post.py +++ /dev/null @@ -1,46 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.internal_wallets_wallet_id_set_customer_ref_id import post # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestInternalWalletsWalletIdSetCustomerRefId(ApiTestMixin, unittest.TestCase): - """ - InternalWalletsWalletIdSetCustomerRefId unit test stubs - Set an AML/KYT customer reference ID for an internal wallet # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 201 - response_body = '' - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_management_ota/__init__.py b/test/test_paths/test_management_ota/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_management_ota/test_get.py b/test/test_paths/test_management_ota/test_get.py deleted file mode 100644 index 00023fb9..00000000 --- a/test/test_paths/test_management_ota/test_get.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.management_ota import get # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestManagementOta(ApiTestMixin, unittest.TestCase): - """ - ManagementOta unit test stubs - Returns current OTA status # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_management_ota/test_post.py b/test/test_paths/test_management_ota/test_post.py deleted file mode 100644 index 0c1ea998..00000000 --- a/test/test_paths/test_management_ota/test_post.py +++ /dev/null @@ -1,46 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.management_ota import post # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestManagementOta(ApiTestMixin, unittest.TestCase): - """ - ManagementOta unit test stubs - Enable or disable transactions to OTA # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 202 - response_body = '' - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_network_connections/__init__.py b/test/test_paths/test_network_connections/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_network_connections/test_get.py b/test/test_paths/test_network_connections/test_get.py deleted file mode 100644 index a569110d..00000000 --- a/test/test_paths/test_network_connections/test_get.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.network_connections import get # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestNetworkConnections(ApiTestMixin, unittest.TestCase): - """ - NetworkConnections unit test stubs - List network connections # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_network_connections/test_post.py b/test/test_paths/test_network_connections/test_post.py deleted file mode 100644 index dad82121..00000000 --- a/test/test_paths/test_network_connections/test_post.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.network_connections import post # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestNetworkConnections(ApiTestMixin, unittest.TestCase): - """ - NetworkConnections unit test stubs - Creates a new network connection # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 201 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_network_connections_connection_id/__init__.py b/test/test_paths/test_network_connections_connection_id/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_network_connections_connection_id/test_delete.py b/test/test_paths/test_network_connections_connection_id/test_delete.py deleted file mode 100644 index 0588cc0f..00000000 --- a/test/test_paths/test_network_connections_connection_id/test_delete.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.network_connections_connection_id import delete # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestNetworkConnectionsConnectionId(ApiTestMixin, unittest.TestCase): - """ - NetworkConnectionsConnectionId unit test stubs - Deletes a network connection by ID # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = delete.ApiFordelete(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_network_connections_connection_id/test_get.py b/test/test_paths/test_network_connections_connection_id/test_get.py deleted file mode 100644 index 51b83cb5..00000000 --- a/test/test_paths/test_network_connections_connection_id/test_get.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.network_connections_connection_id import get # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestNetworkConnectionsConnectionId(ApiTestMixin, unittest.TestCase): - """ - NetworkConnectionsConnectionId unit test stubs - Get a network connection # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_network_connections_connection_id_is_third_party_routing_asset_type/__init__.py b/test/test_paths/test_network_connections_connection_id_is_third_party_routing_asset_type/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_network_connections_connection_id_is_third_party_routing_asset_type/test_get.py b/test/test_paths/test_network_connections_connection_id_is_third_party_routing_asset_type/test_get.py deleted file mode 100644 index 5eeb4690..00000000 --- a/test/test_paths/test_network_connections_connection_id_is_third_party_routing_asset_type/test_get.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.network_connections_connection_id_is_third_party_routing_asset_type import get # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestNetworkConnectionsConnectionIdIsThirdPartyRoutingAssetType(ApiTestMixin, unittest.TestCase): - """ - NetworkConnectionsConnectionIdIsThirdPartyRoutingAssetType unit test stubs - Retrieve third-party network routing validation by asset type. # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_network_connections_connection_id_set_routing_policy/__init__.py b/test/test_paths/test_network_connections_connection_id_set_routing_policy/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_network_connections_connection_id_set_routing_policy/test_patch.py b/test/test_paths/test_network_connections_connection_id_set_routing_policy/test_patch.py deleted file mode 100644 index 6f60a8dd..00000000 --- a/test/test_paths/test_network_connections_connection_id_set_routing_policy/test_patch.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.network_connections_connection_id_set_routing_policy import patch # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestNetworkConnectionsConnectionIdSetRoutingPolicy(ApiTestMixin, unittest.TestCase): - """ - NetworkConnectionsConnectionIdSetRoutingPolicy unit test stubs - Update network connection routing policy. # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = patch.ApiForpatch(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_network_ids/__init__.py b/test/test_paths/test_network_ids/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_network_ids/test_get.py b/test/test_paths/test_network_ids/test_get.py deleted file mode 100644 index 800bd3a2..00000000 --- a/test/test_paths/test_network_ids/test_get.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.network_ids import get # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestNetworkIds(ApiTestMixin, unittest.TestCase): - """ - NetworkIds unit test stubs - Returns all network IDs, both local IDs and discoverable remote IDs # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_network_ids/test_post.py b/test/test_paths/test_network_ids/test_post.py deleted file mode 100644 index c5d170c2..00000000 --- a/test/test_paths/test_network_ids/test_post.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.network_ids import post # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestNetworkIds(ApiTestMixin, unittest.TestCase): - """ - NetworkIds unit test stubs - Creates a new Network ID # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 201 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_network_ids_network_id/__init__.py b/test/test_paths/test_network_ids_network_id/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_network_ids_network_id/test_delete.py b/test/test_paths/test_network_ids_network_id/test_delete.py deleted file mode 100644 index 32f7f845..00000000 --- a/test/test_paths/test_network_ids_network_id/test_delete.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.network_ids_network_id import delete # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestNetworkIdsNetworkId(ApiTestMixin, unittest.TestCase): - """ - NetworkIdsNetworkId unit test stubs - Deletes specific network ID. # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = delete.ApiFordelete(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_network_ids_network_id/test_get.py b/test/test_paths/test_network_ids_network_id/test_get.py deleted file mode 100644 index 004d2119..00000000 --- a/test/test_paths/test_network_ids_network_id/test_get.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.network_ids_network_id import get # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestNetworkIdsNetworkId(ApiTestMixin, unittest.TestCase): - """ - NetworkIdsNetworkId unit test stubs - Returns specific network ID. # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_network_ids_network_id_set_discoverability/__init__.py b/test/test_paths/test_network_ids_network_id_set_discoverability/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_network_ids_network_id_set_discoverability/test_patch.py b/test/test_paths/test_network_ids_network_id_set_discoverability/test_patch.py deleted file mode 100644 index 24469c14..00000000 --- a/test/test_paths/test_network_ids_network_id_set_discoverability/test_patch.py +++ /dev/null @@ -1,47 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.network_ids_network_id_set_discoverability import patch # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestNetworkIdsNetworkIdSetDiscoverability(ApiTestMixin, unittest.TestCase): - """ - NetworkIdsNetworkIdSetDiscoverability unit test stubs - Update network ID's discoverability. # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = patch.ApiForpatch(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_network_ids_network_id_set_name/__init__.py b/test/test_paths/test_network_ids_network_id_set_name/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_network_ids_network_id_set_name/test_patch.py b/test/test_paths/test_network_ids_network_id_set_name/test_patch.py deleted file mode 100644 index 7af613f7..00000000 --- a/test/test_paths/test_network_ids_network_id_set_name/test_patch.py +++ /dev/null @@ -1,47 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.network_ids_network_id_set_name import patch # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestNetworkIdsNetworkIdSetName(ApiTestMixin, unittest.TestCase): - """ - NetworkIdsNetworkIdSetName unit test stubs - Update network ID's name. # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = patch.ApiForpatch(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_network_ids_network_id_set_routing_policy/__init__.py b/test/test_paths/test_network_ids_network_id_set_routing_policy/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_network_ids_network_id_set_routing_policy/test_patch.py b/test/test_paths/test_network_ids_network_id_set_routing_policy/test_patch.py deleted file mode 100644 index eee5c1aa..00000000 --- a/test/test_paths/test_network_ids_network_id_set_routing_policy/test_patch.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.network_ids_network_id_set_routing_policy import patch # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestNetworkIdsNetworkIdSetRoutingPolicy(ApiTestMixin, unittest.TestCase): - """ - NetworkIdsNetworkIdSetRoutingPolicy unit test stubs - Update network id routing policy. # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = patch.ApiForpatch(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_nfts_ownership_collections/__init__.py b/test/test_paths/test_nfts_ownership_collections/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_nfts_ownership_collections/test_get.py b/test/test_paths/test_nfts_ownership_collections/test_get.py deleted file mode 100644 index 6bdef25b..00000000 --- a/test/test_paths/test_nfts_ownership_collections/test_get.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.nfts_ownership_collections import get # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestNftsOwnershipCollections(ApiTestMixin, unittest.TestCase): - """ - NftsOwnershipCollections unit test stubs - List owned collections (paginated) # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_nfts_ownership_tokens/__init__.py b/test/test_paths/test_nfts_ownership_tokens/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_nfts_ownership_tokens/test_get.py b/test/test_paths/test_nfts_ownership_tokens/test_get.py deleted file mode 100644 index 69d034a9..00000000 --- a/test/test_paths/test_nfts_ownership_tokens/test_get.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.nfts_ownership_tokens import get # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestNftsOwnershipTokens(ApiTestMixin, unittest.TestCase): - """ - NftsOwnershipTokens unit test stubs - List all owned tokens (paginated) # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_nfts_ownership_tokens/test_put.py b/test/test_paths/test_nfts_ownership_tokens/test_put.py deleted file mode 100644 index 0edd3415..00000000 --- a/test/test_paths/test_nfts_ownership_tokens/test_put.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.nfts_ownership_tokens import put # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestNftsOwnershipTokens(ApiTestMixin, unittest.TestCase): - """ - NftsOwnershipTokens unit test stubs - Refresh vault account tokens # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = put.ApiForput(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 202 - response_body = '' - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_nfts_ownership_tokens_id_status/__init__.py b/test/test_paths/test_nfts_ownership_tokens_id_status/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_nfts_ownership_tokens_id_status/test_put.py b/test/test_paths/test_nfts_ownership_tokens_id_status/test_put.py deleted file mode 100644 index fe13bbe1..00000000 --- a/test/test_paths/test_nfts_ownership_tokens_id_status/test_put.py +++ /dev/null @@ -1,46 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.nfts_ownership_tokens_id_status import put # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestNftsOwnershipTokensIdStatus(ApiTestMixin, unittest.TestCase): - """ - NftsOwnershipTokensIdStatus unit test stubs - Update token ownership status # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = put.ApiForput(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - response_body = '' - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_nfts_tokens/__init__.py b/test/test_paths/test_nfts_tokens/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_nfts_tokens/test_get.py b/test/test_paths/test_nfts_tokens/test_get.py deleted file mode 100644 index 8b269201..00000000 --- a/test/test_paths/test_nfts_tokens/test_get.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.nfts_tokens import get # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestNftsTokens(ApiTestMixin, unittest.TestCase): - """ - NftsTokens unit test stubs - List tokens by IDs # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_nfts_tokens_id/__init__.py b/test/test_paths/test_nfts_tokens_id/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_nfts_tokens_id/test_get.py b/test/test_paths/test_nfts_tokens_id/test_get.py deleted file mode 100644 index 7366a088..00000000 --- a/test/test_paths/test_nfts_tokens_id/test_get.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.nfts_tokens_id import get # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestNftsTokensId(ApiTestMixin, unittest.TestCase): - """ - NftsTokensId unit test stubs - List token data by ID # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_nfts_tokens_id/test_put.py b/test/test_paths/test_nfts_tokens_id/test_put.py deleted file mode 100644 index acb65aa5..00000000 --- a/test/test_paths/test_nfts_tokens_id/test_put.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.nfts_tokens_id import put # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestNftsTokensId(ApiTestMixin, unittest.TestCase): - """ - NftsTokensId unit test stubs - Refresh token metadata # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = put.ApiForput(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 202 - response_body = '' - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_off_exchange_add/__init__.py b/test/test_paths/test_off_exchange_add/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_off_exchange_add/test_post.py b/test/test_paths/test_off_exchange_add/test_post.py deleted file mode 100644 index 4e0c7afa..00000000 --- a/test/test_paths/test_off_exchange_add/test_post.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.off_exchange_add import post # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestOffExchangeAdd(ApiTestMixin, unittest.TestCase): - """ - OffExchangeAdd unit test stubs - add collateral # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_off_exchange_collateral_accounts_main_exchange_account_id/__init__.py b/test/test_paths/test_off_exchange_collateral_accounts_main_exchange_account_id/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_off_exchange_collateral_accounts_main_exchange_account_id/test_get.py b/test/test_paths/test_off_exchange_collateral_accounts_main_exchange_account_id/test_get.py deleted file mode 100644 index e22c3d7a..00000000 --- a/test/test_paths/test_off_exchange_collateral_accounts_main_exchange_account_id/test_get.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.off_exchange_collateral_accounts_main_exchange_account_id import get # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestOffExchangeCollateralAccountsMainExchangeAccountId(ApiTestMixin, unittest.TestCase): - """ - OffExchangeCollateralAccountsMainExchangeAccountId unit test stubs - Find a specific collateral exchange account # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_off_exchange_remove/__init__.py b/test/test_paths/test_off_exchange_remove/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_off_exchange_remove/test_post.py b/test/test_paths/test_off_exchange_remove/test_post.py deleted file mode 100644 index a6dbdee3..00000000 --- a/test/test_paths/test_off_exchange_remove/test_post.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.off_exchange_remove import post # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestOffExchangeRemove(ApiTestMixin, unittest.TestCase): - """ - OffExchangeRemove unit test stubs - remove collateral # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_off_exchange_settlements_trader/__init__.py b/test/test_paths/test_off_exchange_settlements_trader/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_off_exchange_settlements_trader/test_post.py b/test/test_paths/test_off_exchange_settlements_trader/test_post.py deleted file mode 100644 index 2e8dc819..00000000 --- a/test/test_paths/test_off_exchange_settlements_trader/test_post.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.off_exchange_settlements_trader import post # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestOffExchangeSettlementsTrader(ApiTestMixin, unittest.TestCase): - """ - OffExchangeSettlementsTrader unit test stubs - create settlement for a trader # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 201 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_off_exchange_settlements_transactions/__init__.py b/test/test_paths/test_off_exchange_settlements_transactions/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_off_exchange_settlements_transactions/test_get.py b/test/test_paths/test_off_exchange_settlements_transactions/test_get.py deleted file mode 100644 index 3a37560a..00000000 --- a/test/test_paths/test_off_exchange_settlements_transactions/test_get.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.off_exchange_settlements_transactions import get # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestOffExchangeSettlementsTransactions(ApiTestMixin, unittest.TestCase): - """ - OffExchangeSettlementsTransactions unit test stubs - get settlements transactions from exchange # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_payments_payout/__init__.py b/test/test_paths/test_payments_payout/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_payments_payout/test_post.py b/test/test_paths/test_payments_payout/test_post.py deleted file mode 100644 index 0d224ee6..00000000 --- a/test/test_paths/test_payments_payout/test_post.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.payments_payout import post # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestPaymentsPayout(ApiTestMixin, unittest.TestCase): - """ - PaymentsPayout unit test stubs - Create a payout instruction set # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_payments_payout_payout_id/__init__.py b/test/test_paths/test_payments_payout_payout_id/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_payments_payout_payout_id/test_get.py b/test/test_paths/test_payments_payout_payout_id/test_get.py deleted file mode 100644 index d0d5cd1d..00000000 --- a/test/test_paths/test_payments_payout_payout_id/test_get.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.payments_payout_payout_id import get # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestPaymentsPayoutPayoutId(ApiTestMixin, unittest.TestCase): - """ - PaymentsPayoutPayoutId unit test stubs - Get the status of a payout instruction set # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_payments_payout_payout_id_actions_execute/__init__.py b/test/test_paths/test_payments_payout_payout_id_actions_execute/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_payments_payout_payout_id_actions_execute/test_post.py b/test/test_paths/test_payments_payout_payout_id_actions_execute/test_post.py deleted file mode 100644 index 421d7041..00000000 --- a/test/test_paths/test_payments_payout_payout_id_actions_execute/test_post.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.payments_payout_payout_id_actions_execute import post # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestPaymentsPayoutPayoutIdActionsExecute(ApiTestMixin, unittest.TestCase): - """ - PaymentsPayoutPayoutIdActionsExecute unit test stubs - Execute a payout instruction set # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_payments_xb_settlements_configs/__init__.py b/test/test_paths/test_payments_xb_settlements_configs/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_payments_xb_settlements_configs/test_get.py b/test/test_paths/test_payments_xb_settlements_configs/test_get.py deleted file mode 100644 index eb5a3f63..00000000 --- a/test/test_paths/test_payments_xb_settlements_configs/test_get.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.payments_xb_settlements_configs import get # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestPaymentsXbSettlementsConfigs(ApiTestMixin, unittest.TestCase): - """ - PaymentsXbSettlementsConfigs unit test stubs - Get all the cross-border settlement configurations # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_payments_xb_settlements_configs/test_post.py b/test/test_paths/test_payments_xb_settlements_configs/test_post.py deleted file mode 100644 index b0992ef0..00000000 --- a/test/test_paths/test_payments_xb_settlements_configs/test_post.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.payments_xb_settlements_configs import post # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestPaymentsXbSettlementsConfigs(ApiTestMixin, unittest.TestCase): - """ - PaymentsXbSettlementsConfigs unit test stubs - Create a new cross-border settlement configuration # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_payments_xb_settlements_configs_config_id/__init__.py b/test/test_paths/test_payments_xb_settlements_configs_config_id/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_payments_xb_settlements_configs_config_id/test_delete.py b/test/test_paths/test_payments_xb_settlements_configs_config_id/test_delete.py deleted file mode 100644 index a98b07f9..00000000 --- a/test/test_paths/test_payments_xb_settlements_configs_config_id/test_delete.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.payments_xb_settlements_configs_config_id import delete # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestPaymentsXbSettlementsConfigsConfigId(ApiTestMixin, unittest.TestCase): - """ - PaymentsXbSettlementsConfigsConfigId unit test stubs - Delete a cross-border settlement configuration # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = delete.ApiFordelete(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_payments_xb_settlements_configs_config_id/test_get.py b/test/test_paths/test_payments_xb_settlements_configs_config_id/test_get.py deleted file mode 100644 index e4fb0714..00000000 --- a/test/test_paths/test_payments_xb_settlements_configs_config_id/test_get.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.payments_xb_settlements_configs_config_id import get # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestPaymentsXbSettlementsConfigsConfigId(ApiTestMixin, unittest.TestCase): - """ - PaymentsXbSettlementsConfigsConfigId unit test stubs - Get a specific cross-border settlement configuration # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_payments_xb_settlements_configs_config_id/test_put.py b/test/test_paths/test_payments_xb_settlements_configs_config_id/test_put.py deleted file mode 100644 index e41f3980..00000000 --- a/test/test_paths/test_payments_xb_settlements_configs_config_id/test_put.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.payments_xb_settlements_configs_config_id import put # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestPaymentsXbSettlementsConfigsConfigId(ApiTestMixin, unittest.TestCase): - """ - PaymentsXbSettlementsConfigsConfigId unit test stubs - Edit a cross-border settlement configuration # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = put.ApiForput(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_payments_xb_settlements_flows/__init__.py b/test/test_paths/test_payments_xb_settlements_flows/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_payments_xb_settlements_flows/test_post.py b/test/test_paths/test_payments_xb_settlements_flows/test_post.py deleted file mode 100644 index 75bde78f..00000000 --- a/test/test_paths/test_payments_xb_settlements_flows/test_post.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.payments_xb_settlements_flows import post # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestPaymentsXbSettlementsFlows(ApiTestMixin, unittest.TestCase): - """ - PaymentsXbSettlementsFlows unit test stubs - Create a new cross-border settlement flow # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_payments_xb_settlements_flows_flow_id/__init__.py b/test/test_paths/test_payments_xb_settlements_flows_flow_id/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_payments_xb_settlements_flows_flow_id/test_get.py b/test/test_paths/test_payments_xb_settlements_flows_flow_id/test_get.py deleted file mode 100644 index 5ccded9e..00000000 --- a/test/test_paths/test_payments_xb_settlements_flows_flow_id/test_get.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.payments_xb_settlements_flows_flow_id import get # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestPaymentsXbSettlementsFlowsFlowId(ApiTestMixin, unittest.TestCase): - """ - PaymentsXbSettlementsFlowsFlowId unit test stubs - Get specific cross-border settlement flow details # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_payments_xb_settlements_flows_flow_id_actions_execute/__init__.py b/test/test_paths/test_payments_xb_settlements_flows_flow_id_actions_execute/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_payments_xb_settlements_flows_flow_id_actions_execute/test_post.py b/test/test_paths/test_payments_xb_settlements_flows_flow_id_actions_execute/test_post.py deleted file mode 100644 index 2bd76ecb..00000000 --- a/test/test_paths/test_payments_xb_settlements_flows_flow_id_actions_execute/test_post.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.payments_xb_settlements_flows_flow_id_actions_execute import post # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestPaymentsXbSettlementsFlowsFlowIdActionsExecute(ApiTestMixin, unittest.TestCase): - """ - PaymentsXbSettlementsFlowsFlowIdActionsExecute unit test stubs - Execute cross-border settlement flow # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_screeening_travel_rule_vasp_update/__init__.py b/test/test_paths/test_screeening_travel_rule_vasp_update/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_screeening_travel_rule_vasp_update/test_put.py b/test/test_paths/test_screeening_travel_rule_vasp_update/test_put.py deleted file mode 100644 index 85f95f5e..00000000 --- a/test/test_paths/test_screeening_travel_rule_vasp_update/test_put.py +++ /dev/null @@ -1,47 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.screeening_travel_rule_vasp_update import put # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestScreeeningTravelRuleVaspUpdate(ApiTestMixin, unittest.TestCase): - """ - ScreeeningTravelRuleVaspUpdate unit test stubs - Add jsonDidKey to VASP details # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = put.ApiForput(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_screening_travel_rule_transaction_validate/__init__.py b/test/test_paths/test_screening_travel_rule_transaction_validate/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_screening_travel_rule_transaction_validate/test_post.py b/test/test_paths/test_screening_travel_rule_transaction_validate/test_post.py deleted file mode 100644 index 16b9fbd9..00000000 --- a/test/test_paths/test_screening_travel_rule_transaction_validate/test_post.py +++ /dev/null @@ -1,47 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.screening_travel_rule_transaction_validate import post # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestScreeningTravelRuleTransactionValidate(ApiTestMixin, unittest.TestCase): - """ - ScreeningTravelRuleTransactionValidate unit test stubs - Validate Travel Rule Transaction # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_screening_travel_rule_transaction_validate_full/__init__.py b/test/test_paths/test_screening_travel_rule_transaction_validate_full/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_screening_travel_rule_transaction_validate_full/test_post.py b/test/test_paths/test_screening_travel_rule_transaction_validate_full/test_post.py deleted file mode 100644 index 11bced74..00000000 --- a/test/test_paths/test_screening_travel_rule_transaction_validate_full/test_post.py +++ /dev/null @@ -1,47 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.screening_travel_rule_transaction_validate_full import post # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestScreeningTravelRuleTransactionValidateFull(ApiTestMixin, unittest.TestCase): - """ - ScreeningTravelRuleTransactionValidateFull unit test stubs - Validate Full Travel Rule Transaction # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_screening_travel_rule_vasp/__init__.py b/test/test_paths/test_screening_travel_rule_vasp/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_screening_travel_rule_vasp/test_get.py b/test/test_paths/test_screening_travel_rule_vasp/test_get.py deleted file mode 100644 index 74dc35bd..00000000 --- a/test/test_paths/test_screening_travel_rule_vasp/test_get.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.screening_travel_rule_vasp import get # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestScreeningTravelRuleVasp(ApiTestMixin, unittest.TestCase): - """ - ScreeningTravelRuleVasp unit test stubs - Get All VASPs # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_screening_travel_rule_vasp_did/__init__.py b/test/test_paths/test_screening_travel_rule_vasp_did/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_screening_travel_rule_vasp_did/test_get.py b/test/test_paths/test_screening_travel_rule_vasp_did/test_get.py deleted file mode 100644 index 834f1b50..00000000 --- a/test/test_paths/test_screening_travel_rule_vasp_did/test_get.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.screening_travel_rule_vasp_did import get # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestScreeningTravelRuleVaspDid(ApiTestMixin, unittest.TestCase): - """ - ScreeningTravelRuleVaspDid unit test stubs - Get VASP details # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_supported_assets/__init__.py b/test/test_paths/test_supported_assets/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_supported_assets/test_get.py b/test/test_paths/test_supported_assets/test_get.py deleted file mode 100644 index b659d725..00000000 --- a/test/test_paths/test_supported_assets/test_get.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.supported_assets import get # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestSupportedAssets(ApiTestMixin, unittest.TestCase): - """ - SupportedAssets unit test stubs - List all asset types supported by Fireblocks # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_tap_active_policy/__init__.py b/test/test_paths/test_tap_active_policy/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_tap_active_policy/test_get.py b/test/test_paths/test_tap_active_policy/test_get.py deleted file mode 100644 index 1ae6dfe5..00000000 --- a/test/test_paths/test_tap_active_policy/test_get.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.tap_active_policy import get # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestTapActivePolicy(ApiTestMixin, unittest.TestCase): - """ - TapActivePolicy unit test stubs - Get the active policy and its validation # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_tap_draft/__init__.py b/test/test_paths/test_tap_draft/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_tap_draft/test_get.py b/test/test_paths/test_tap_draft/test_get.py deleted file mode 100644 index cc032b4f..00000000 --- a/test/test_paths/test_tap_draft/test_get.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.tap_draft import get # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestTapDraft(ApiTestMixin, unittest.TestCase): - """ - TapDraft unit test stubs - Get the active draft # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_tap_draft/test_post.py b/test/test_paths/test_tap_draft/test_post.py deleted file mode 100644 index a71bc7f3..00000000 --- a/test/test_paths/test_tap_draft/test_post.py +++ /dev/null @@ -1,47 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.tap_draft import post # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestTapDraft(ApiTestMixin, unittest.TestCase): - """ - TapDraft unit test stubs - Send publish request for a certain draft id # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 201 - - - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_tap_draft/test_put.py b/test/test_paths/test_tap_draft/test_put.py deleted file mode 100644 index 56ca602f..00000000 --- a/test/test_paths/test_tap_draft/test_put.py +++ /dev/null @@ -1,47 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.tap_draft import put # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestTapDraft(ApiTestMixin, unittest.TestCase): - """ - TapDraft unit test stubs - Update the draft with a new set of rules # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = put.ApiForput(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_tap_publish/__init__.py b/test/test_paths/test_tap_publish/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_tap_publish/test_post.py b/test/test_paths/test_tap_publish/test_post.py deleted file mode 100644 index 0fad391f..00000000 --- a/test/test_paths/test_tap_publish/test_post.py +++ /dev/null @@ -1,47 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.tap_publish import post # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestTapPublish(ApiTestMixin, unittest.TestCase): - """ - TapPublish unit test stubs - Send publish request for a set of policy rules # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 201 - - - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_transactions/__init__.py b/test/test_paths/test_transactions/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_transactions/test_get.py b/test/test_paths/test_transactions/test_get.py deleted file mode 100644 index e0f48cc5..00000000 --- a/test/test_paths/test_transactions/test_get.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.transactions import get # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestTransactions(ApiTestMixin, unittest.TestCase): - """ - Transactions unit test stubs - List transaction history # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_transactions/test_post.py b/test/test_paths/test_transactions/test_post.py deleted file mode 100644 index 73edd33d..00000000 --- a/test/test_paths/test_transactions/test_post.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.transactions import post # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestTransactions(ApiTestMixin, unittest.TestCase): - """ - Transactions unit test stubs - Create a new transaction # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_transactions_estimate_fee/__init__.py b/test/test_paths/test_transactions_estimate_fee/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_transactions_estimate_fee/test_post.py b/test/test_paths/test_transactions_estimate_fee/test_post.py deleted file mode 100644 index 7dec3b4c..00000000 --- a/test/test_paths/test_transactions_estimate_fee/test_post.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.transactions_estimate_fee import post # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestTransactionsEstimateFee(ApiTestMixin, unittest.TestCase): - """ - TransactionsEstimateFee unit test stubs - Estimate transaction fee # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_transactions_external_tx_id_external_tx_id_/__init__.py b/test/test_paths/test_transactions_external_tx_id_external_tx_id_/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_transactions_external_tx_id_external_tx_id_/test_get.py b/test/test_paths/test_transactions_external_tx_id_external_tx_id_/test_get.py deleted file mode 100644 index 59071613..00000000 --- a/test/test_paths/test_transactions_external_tx_id_external_tx_id_/test_get.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.transactions_external_tx_id_external_tx_id_ import get # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestTransactionsExternalTxIdExternalTxId(ApiTestMixin, unittest.TestCase): - """ - TransactionsExternalTxIdExternalTxId unit test stubs - Find a specific transaction by external transaction ID # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_transactions_tx_id/__init__.py b/test/test_paths/test_transactions_tx_id/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_transactions_tx_id/test_get.py b/test/test_paths/test_transactions_tx_id/test_get.py deleted file mode 100644 index ff1ba3b6..00000000 --- a/test/test_paths/test_transactions_tx_id/test_get.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.transactions_tx_id import get # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestTransactionsTxId(ApiTestMixin, unittest.TestCase): - """ - TransactionsTxId unit test stubs - Find a specific transaction by Fireblocks transaction ID # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_transactions_tx_id_cancel/__init__.py b/test/test_paths/test_transactions_tx_id_cancel/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_transactions_tx_id_cancel/test_post.py b/test/test_paths/test_transactions_tx_id_cancel/test_post.py deleted file mode 100644 index 3717f598..00000000 --- a/test/test_paths/test_transactions_tx_id_cancel/test_post.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.transactions_tx_id_cancel import post # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestTransactionsTxIdCancel(ApiTestMixin, unittest.TestCase): - """ - TransactionsTxIdCancel unit test stubs - Cancel a transaction # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_transactions_tx_id_drop/__init__.py b/test/test_paths/test_transactions_tx_id_drop/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_transactions_tx_id_drop/test_post.py b/test/test_paths/test_transactions_tx_id_drop/test_post.py deleted file mode 100644 index 7958924d..00000000 --- a/test/test_paths/test_transactions_tx_id_drop/test_post.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.transactions_tx_id_drop import post # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestTransactionsTxIdDrop(ApiTestMixin, unittest.TestCase): - """ - TransactionsTxIdDrop unit test stubs - Drop ETH transaction by ID # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_transactions_tx_id_freeze/__init__.py b/test/test_paths/test_transactions_tx_id_freeze/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_transactions_tx_id_freeze/test_post.py b/test/test_paths/test_transactions_tx_id_freeze/test_post.py deleted file mode 100644 index fa093853..00000000 --- a/test/test_paths/test_transactions_tx_id_freeze/test_post.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.transactions_tx_id_freeze import post # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestTransactionsTxIdFreeze(ApiTestMixin, unittest.TestCase): - """ - TransactionsTxIdFreeze unit test stubs - Freeze a transaction # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_transactions_tx_id_set_confirmation_threshold/__init__.py b/test/test_paths/test_transactions_tx_id_set_confirmation_threshold/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_transactions_tx_id_set_confirmation_threshold/test_post.py b/test/test_paths/test_transactions_tx_id_set_confirmation_threshold/test_post.py deleted file mode 100644 index 727305f4..00000000 --- a/test/test_paths/test_transactions_tx_id_set_confirmation_threshold/test_post.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.transactions_tx_id_set_confirmation_threshold import post # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestTransactionsTxIdSetConfirmationThreshold(ApiTestMixin, unittest.TestCase): - """ - TransactionsTxIdSetConfirmationThreshold unit test stubs - Set confirmation threshold by transaction ID # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_transactions_tx_id_unfreeze/__init__.py b/test/test_paths/test_transactions_tx_id_unfreeze/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_transactions_tx_id_unfreeze/test_post.py b/test/test_paths/test_transactions_tx_id_unfreeze/test_post.py deleted file mode 100644 index 121ec2b5..00000000 --- a/test/test_paths/test_transactions_tx_id_unfreeze/test_post.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.transactions_tx_id_unfreeze import post # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestTransactionsTxIdUnfreeze(ApiTestMixin, unittest.TestCase): - """ - TransactionsTxIdUnfreeze unit test stubs - Unfreeze a transaction # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_transactions_validate_address_asset_id_address/__init__.py b/test/test_paths/test_transactions_validate_address_asset_id_address/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_transactions_validate_address_asset_id_address/test_get.py b/test/test_paths/test_transactions_validate_address_asset_id_address/test_get.py deleted file mode 100644 index 6b208f57..00000000 --- a/test/test_paths/test_transactions_validate_address_asset_id_address/test_get.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.transactions_validate_address_asset_id_address import get # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestTransactionsValidateAddressAssetIdAddress(ApiTestMixin, unittest.TestCase): - """ - TransactionsValidateAddressAssetIdAddress unit test stubs - Validate destination address # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_tx_hash_tx_hash_set_confirmation_threshold/__init__.py b/test/test_paths/test_tx_hash_tx_hash_set_confirmation_threshold/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_tx_hash_tx_hash_set_confirmation_threshold/test_post.py b/test/test_paths/test_tx_hash_tx_hash_set_confirmation_threshold/test_post.py deleted file mode 100644 index 2dcd1644..00000000 --- a/test/test_paths/test_tx_hash_tx_hash_set_confirmation_threshold/test_post.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.tx_hash_tx_hash_set_confirmation_threshold import post # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestTxHashTxHashSetConfirmationThreshold(ApiTestMixin, unittest.TestCase): - """ - TxHashTxHashSetConfirmationThreshold unit test stubs - Set confirmation threshold by transaction hash # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_users/__init__.py b/test/test_paths/test_users/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_users/test_get.py b/test/test_paths/test_users/test_get.py deleted file mode 100644 index eb47b5c6..00000000 --- a/test/test_paths/test_users/test_get.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.users import get # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestUsers(ApiTestMixin, unittest.TestCase): - """ - Users unit test stubs - List users # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_users_groups/__init__.py b/test/test_paths/test_users_groups/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_users_groups/test_get.py b/test/test_paths/test_users_groups/test_get.py deleted file mode 100644 index 00555f31..00000000 --- a/test/test_paths/test_users_groups/test_get.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.users_groups import get # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestUsersGroups(ApiTestMixin, unittest.TestCase): - """ - UsersGroups unit test stubs - List users groups # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_users_groups/test_post.py b/test/test_paths/test_users_groups/test_post.py deleted file mode 100644 index 7e1c7a33..00000000 --- a/test/test_paths/test_users_groups/test_post.py +++ /dev/null @@ -1,47 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.users_groups import post # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestUsersGroups(ApiTestMixin, unittest.TestCase): - """ - UsersGroups unit test stubs - Create users group # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 201 - - - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_users_groups_group_id/__init__.py b/test/test_paths/test_users_groups_group_id/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_users_groups_group_id/test_delete.py b/test/test_paths/test_users_groups_group_id/test_delete.py deleted file mode 100644 index 5d21b849..00000000 --- a/test/test_paths/test_users_groups_group_id/test_delete.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.users_groups_group_id import delete # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestUsersGroupsGroupId(ApiTestMixin, unittest.TestCase): - """ - UsersGroupsGroupId unit test stubs - Delete users group # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = delete.ApiFordelete(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 204 - response_body = '' - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_users_groups_group_id/test_get.py b/test/test_paths/test_users_groups_group_id/test_get.py deleted file mode 100644 index 936bf3c2..00000000 --- a/test/test_paths/test_users_groups_group_id/test_get.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.users_groups_group_id import get # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestUsersGroupsGroupId(ApiTestMixin, unittest.TestCase): - """ - UsersGroupsGroupId unit test stubs - Get users group # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_users_groups_group_id/test_put.py b/test/test_paths/test_users_groups_group_id/test_put.py deleted file mode 100644 index 0bcce24b..00000000 --- a/test/test_paths/test_users_groups_group_id/test_put.py +++ /dev/null @@ -1,47 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.users_groups_group_id import put # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestUsersGroupsGroupId(ApiTestMixin, unittest.TestCase): - """ - UsersGroupsGroupId unit test stubs - Update users group # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = put.ApiForput(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_vault_accounts/__init__.py b/test/test_paths/test_vault_accounts/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_vault_accounts/test_get.py b/test/test_paths/test_vault_accounts/test_get.py deleted file mode 100644 index b19fdb91..00000000 --- a/test/test_paths/test_vault_accounts/test_get.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.vault_accounts import get # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestVaultAccounts(ApiTestMixin, unittest.TestCase): - """ - VaultAccounts unit test stubs - List vault accounts # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_vault_accounts/test_post.py b/test/test_paths/test_vault_accounts/test_post.py deleted file mode 100644 index 5de06e3b..00000000 --- a/test/test_paths/test_vault_accounts/test_post.py +++ /dev/null @@ -1,47 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.vault_accounts import post # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestVaultAccounts(ApiTestMixin, unittest.TestCase): - """ - VaultAccounts unit test stubs - Create a new vault account # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_vault_accounts_paged/__init__.py b/test/test_paths/test_vault_accounts_paged/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_vault_accounts_paged/test_get.py b/test/test_paths/test_vault_accounts_paged/test_get.py deleted file mode 100644 index 16bbd5cf..00000000 --- a/test/test_paths/test_vault_accounts_paged/test_get.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.vault_accounts_paged import get # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestVaultAccountsPaged(ApiTestMixin, unittest.TestCase): - """ - VaultAccountsPaged unit test stubs - List vault acounts (Paginated) # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_vault_accounts_vault_account_id/__init__.py b/test/test_paths/test_vault_accounts_vault_account_id/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_vault_accounts_vault_account_id/test_get.py b/test/test_paths/test_vault_accounts_vault_account_id/test_get.py deleted file mode 100644 index ee5bfefb..00000000 --- a/test/test_paths/test_vault_accounts_vault_account_id/test_get.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.vault_accounts_vault_account_id import get # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestVaultAccountsVaultAccountId(ApiTestMixin, unittest.TestCase): - """ - VaultAccountsVaultAccountId unit test stubs - Find a vault account by ID # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_vault_accounts_vault_account_id/test_put.py b/test/test_paths/test_vault_accounts_vault_account_id/test_put.py deleted file mode 100644 index eb7ed6af..00000000 --- a/test/test_paths/test_vault_accounts_vault_account_id/test_put.py +++ /dev/null @@ -1,46 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.vault_accounts_vault_account_id import put # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestVaultAccountsVaultAccountId(ApiTestMixin, unittest.TestCase): - """ - VaultAccountsVaultAccountId unit test stubs - Rename a vault account # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = put.ApiForput(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 201 - response_body = '' - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_vault_accounts_vault_account_id_asset_id/__init__.py b/test/test_paths/test_vault_accounts_vault_account_id_asset_id/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_vault_accounts_vault_account_id_asset_id/test_get.py b/test/test_paths/test_vault_accounts_vault_account_id_asset_id/test_get.py deleted file mode 100644 index 9ebe3c60..00000000 --- a/test/test_paths/test_vault_accounts_vault_account_id_asset_id/test_get.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.vault_accounts_vault_account_id_asset_id import get # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestVaultAccountsVaultAccountIdAssetId(ApiTestMixin, unittest.TestCase): - """ - VaultAccountsVaultAccountIdAssetId unit test stubs - Get the asset balance for a vault account # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_vault_accounts_vault_account_id_asset_id/test_post.py b/test/test_paths/test_vault_accounts_vault_account_id_asset_id/test_post.py deleted file mode 100644 index 94f41eea..00000000 --- a/test/test_paths/test_vault_accounts_vault_account_id_asset_id/test_post.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.vault_accounts_vault_account_id_asset_id import post # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestVaultAccountsVaultAccountIdAssetId(ApiTestMixin, unittest.TestCase): - """ - VaultAccountsVaultAccountIdAssetId unit test stubs - Create a new wallet # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_vault_accounts_vault_account_id_asset_id_activate/__init__.py b/test/test_paths/test_vault_accounts_vault_account_id_asset_id_activate/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_vault_accounts_vault_account_id_asset_id_activate/test_post.py b/test/test_paths/test_vault_accounts_vault_account_id_asset_id_activate/test_post.py deleted file mode 100644 index e3dbe522..00000000 --- a/test/test_paths/test_vault_accounts_vault_account_id_asset_id_activate/test_post.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.vault_accounts_vault_account_id_asset_id_activate import post # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestVaultAccountsVaultAccountIdAssetIdActivate(ApiTestMixin, unittest.TestCase): - """ - VaultAccountsVaultAccountIdAssetIdActivate unit test stubs - Activate a wallet in a vault account # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_vault_accounts_vault_account_id_asset_id_addresses/__init__.py b/test/test_paths/test_vault_accounts_vault_account_id_asset_id_addresses/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_vault_accounts_vault_account_id_asset_id_addresses/test_get.py b/test/test_paths/test_vault_accounts_vault_account_id_asset_id_addresses/test_get.py deleted file mode 100644 index 7d7f0a17..00000000 --- a/test/test_paths/test_vault_accounts_vault_account_id_asset_id_addresses/test_get.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.vault_accounts_vault_account_id_asset_id_addresses import get # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestVaultAccountsVaultAccountIdAssetIdAddresses(ApiTestMixin, unittest.TestCase): - """ - VaultAccountsVaultAccountIdAssetIdAddresses unit test stubs - Get asset addresses # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_vault_accounts_vault_account_id_asset_id_addresses/test_post.py b/test/test_paths/test_vault_accounts_vault_account_id_asset_id_addresses/test_post.py deleted file mode 100644 index eb246a80..00000000 --- a/test/test_paths/test_vault_accounts_vault_account_id_asset_id_addresses/test_post.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.vault_accounts_vault_account_id_asset_id_addresses import post # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestVaultAccountsVaultAccountIdAssetIdAddresses(ApiTestMixin, unittest.TestCase): - """ - VaultAccountsVaultAccountIdAssetIdAddresses unit test stubs - Create new asset deposit address # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_vault_accounts_vault_account_id_asset_id_addresses_address_id/__init__.py b/test/test_paths/test_vault_accounts_vault_account_id_asset_id_addresses_address_id/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_vault_accounts_vault_account_id_asset_id_addresses_address_id/test_put.py b/test/test_paths/test_vault_accounts_vault_account_id_asset_id_addresses_address_id/test_put.py deleted file mode 100644 index 91e9b35a..00000000 --- a/test/test_paths/test_vault_accounts_vault_account_id_asset_id_addresses_address_id/test_put.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.vault_accounts_vault_account_id_asset_id_addresses_address_id import put # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestVaultAccountsVaultAccountIdAssetIdAddressesAddressId(ApiTestMixin, unittest.TestCase): - """ - VaultAccountsVaultAccountIdAssetIdAddressesAddressId unit test stubs - Update address description # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = put.ApiForput(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 201 - response_body = '' - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_vault_accounts_vault_account_id_asset_id_addresses_address_id_create_legacy/__init__.py b/test/test_paths/test_vault_accounts_vault_account_id_asset_id_addresses_address_id_create_legacy/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_vault_accounts_vault_account_id_asset_id_addresses_address_id_create_legacy/test_post.py b/test/test_paths/test_vault_accounts_vault_account_id_asset_id_addresses_address_id_create_legacy/test_post.py deleted file mode 100644 index 2d074b56..00000000 --- a/test/test_paths/test_vault_accounts_vault_account_id_asset_id_addresses_address_id_create_legacy/test_post.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.vault_accounts_vault_account_id_asset_id_addresses_address_id_create_legacy import post # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestVaultAccountsVaultAccountIdAssetIdAddressesAddressIdCreateLegacy(ApiTestMixin, unittest.TestCase): - """ - VaultAccountsVaultAccountIdAssetIdAddressesAddressIdCreateLegacy unit test stubs - Convert a segwit address to legacy format # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_vault_accounts_vault_account_id_asset_id_addresses_address_id_set_customer_ref_id/__init__.py b/test/test_paths/test_vault_accounts_vault_account_id_asset_id_addresses_address_id_set_customer_ref_id/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_vault_accounts_vault_account_id_asset_id_addresses_address_id_set_customer_ref_id/test_post.py b/test/test_paths/test_vault_accounts_vault_account_id_asset_id_addresses_address_id_set_customer_ref_id/test_post.py deleted file mode 100644 index a69dfa53..00000000 --- a/test/test_paths/test_vault_accounts_vault_account_id_asset_id_addresses_address_id_set_customer_ref_id/test_post.py +++ /dev/null @@ -1,46 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.vault_accounts_vault_account_id_asset_id_addresses_address_id_set_customer_ref_id import post # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestVaultAccountsVaultAccountIdAssetIdAddressesAddressIdSetCustomerRefId(ApiTestMixin, unittest.TestCase): - """ - VaultAccountsVaultAccountIdAssetIdAddressesAddressIdSetCustomerRefId unit test stubs - Assign AML customer reference ID # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 201 - response_body = '' - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_vault_accounts_vault_account_id_asset_id_balance/__init__.py b/test/test_paths/test_vault_accounts_vault_account_id_asset_id_balance/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_vault_accounts_vault_account_id_asset_id_balance/test_post.py b/test/test_paths/test_vault_accounts_vault_account_id_asset_id_balance/test_post.py deleted file mode 100644 index 6106ec9b..00000000 --- a/test/test_paths/test_vault_accounts_vault_account_id_asset_id_balance/test_post.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.vault_accounts_vault_account_id_asset_id_balance import post # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestVaultAccountsVaultAccountIdAssetIdBalance(ApiTestMixin, unittest.TestCase): - """ - VaultAccountsVaultAccountIdAssetIdBalance unit test stubs - Refresh asset balance data # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_vault_accounts_vault_account_id_asset_id_change_address_index_public_key_info/__init__.py b/test/test_paths/test_vault_accounts_vault_account_id_asset_id_change_address_index_public_key_info/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_vault_accounts_vault_account_id_asset_id_change_address_index_public_key_info/test_get.py b/test/test_paths/test_vault_accounts_vault_account_id_asset_id_change_address_index_public_key_info/test_get.py deleted file mode 100644 index 9c907b89..00000000 --- a/test/test_paths/test_vault_accounts_vault_account_id_asset_id_change_address_index_public_key_info/test_get.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.vault_accounts_vault_account_id_asset_id_change_address_index_public_key_info import get # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestVaultAccountsVaultAccountIdAssetIdChangeAddressIndexPublicKeyInfo(ApiTestMixin, unittest.TestCase): - """ - VaultAccountsVaultAccountIdAssetIdChangeAddressIndexPublicKeyInfo unit test stubs - Get the public key for a vault account # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_vault_accounts_vault_account_id_asset_id_max_spendable_amount/__init__.py b/test/test_paths/test_vault_accounts_vault_account_id_asset_id_max_spendable_amount/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_vault_accounts_vault_account_id_asset_id_max_spendable_amount/test_get.py b/test/test_paths/test_vault_accounts_vault_account_id_asset_id_max_spendable_amount/test_get.py deleted file mode 100644 index 6df9f0b9..00000000 --- a/test/test_paths/test_vault_accounts_vault_account_id_asset_id_max_spendable_amount/test_get.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.vault_accounts_vault_account_id_asset_id_max_spendable_amount import get # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestVaultAccountsVaultAccountIdAssetIdMaxSpendableAmount(ApiTestMixin, unittest.TestCase): - """ - VaultAccountsVaultAccountIdAssetIdMaxSpendableAmount unit test stubs - Get the maximum spendable amount in a single transaction. # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - response_body = '' - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_vault_accounts_vault_account_id_asset_id_unspent_inputs/__init__.py b/test/test_paths/test_vault_accounts_vault_account_id_asset_id_unspent_inputs/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_vault_accounts_vault_account_id_asset_id_unspent_inputs/test_get.py b/test/test_paths/test_vault_accounts_vault_account_id_asset_id_unspent_inputs/test_get.py deleted file mode 100644 index 3c350c38..00000000 --- a/test/test_paths/test_vault_accounts_vault_account_id_asset_id_unspent_inputs/test_get.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.vault_accounts_vault_account_id_asset_id_unspent_inputs import get # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestVaultAccountsVaultAccountIdAssetIdUnspentInputs(ApiTestMixin, unittest.TestCase): - """ - VaultAccountsVaultAccountIdAssetIdUnspentInputs unit test stubs - Get UTXO unspent inputs information # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_vault_accounts_vault_account_id_hide/__init__.py b/test/test_paths/test_vault_accounts_vault_account_id_hide/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_vault_accounts_vault_account_id_hide/test_post.py b/test/test_paths/test_vault_accounts_vault_account_id_hide/test_post.py deleted file mode 100644 index 4d21cc71..00000000 --- a/test/test_paths/test_vault_accounts_vault_account_id_hide/test_post.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.vault_accounts_vault_account_id_hide import post # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestVaultAccountsVaultAccountIdHide(ApiTestMixin, unittest.TestCase): - """ - VaultAccountsVaultAccountIdHide unit test stubs - Hide a vault account in the console # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 201 - response_body = '' - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_vault_accounts_vault_account_id_set_auto_fuel/__init__.py b/test/test_paths/test_vault_accounts_vault_account_id_set_auto_fuel/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_vault_accounts_vault_account_id_set_auto_fuel/test_post.py b/test/test_paths/test_vault_accounts_vault_account_id_set_auto_fuel/test_post.py deleted file mode 100644 index 5a1eee6c..00000000 --- a/test/test_paths/test_vault_accounts_vault_account_id_set_auto_fuel/test_post.py +++ /dev/null @@ -1,46 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.vault_accounts_vault_account_id_set_auto_fuel import post # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestVaultAccountsVaultAccountIdSetAutoFuel(ApiTestMixin, unittest.TestCase): - """ - VaultAccountsVaultAccountIdSetAutoFuel unit test stubs - Turn autofueling on or off # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 201 - response_body = '' - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_vault_accounts_vault_account_id_set_customer_ref_id/__init__.py b/test/test_paths/test_vault_accounts_vault_account_id_set_customer_ref_id/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_vault_accounts_vault_account_id_set_customer_ref_id/test_post.py b/test/test_paths/test_vault_accounts_vault_account_id_set_customer_ref_id/test_post.py deleted file mode 100644 index a2e2c6b9..00000000 --- a/test/test_paths/test_vault_accounts_vault_account_id_set_customer_ref_id/test_post.py +++ /dev/null @@ -1,46 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.vault_accounts_vault_account_id_set_customer_ref_id import post # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestVaultAccountsVaultAccountIdSetCustomerRefId(ApiTestMixin, unittest.TestCase): - """ - VaultAccountsVaultAccountIdSetCustomerRefId unit test stubs - Set an AML/KYT customer reference ID for a vault account # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 201 - response_body = '' - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_vault_accounts_vault_account_id_unhide/__init__.py b/test/test_paths/test_vault_accounts_vault_account_id_unhide/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_vault_accounts_vault_account_id_unhide/test_post.py b/test/test_paths/test_vault_accounts_vault_account_id_unhide/test_post.py deleted file mode 100644 index fba3c9a2..00000000 --- a/test/test_paths/test_vault_accounts_vault_account_id_unhide/test_post.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.vault_accounts_vault_account_id_unhide import post # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestVaultAccountsVaultAccountIdUnhide(ApiTestMixin, unittest.TestCase): - """ - VaultAccountsVaultAccountIdUnhide unit test stubs - Unhide a vault account in the console # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 201 - response_body = '' - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_vault_asset_wallets/__init__.py b/test/test_paths/test_vault_asset_wallets/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_vault_asset_wallets/test_get.py b/test/test_paths/test_vault_asset_wallets/test_get.py deleted file mode 100644 index 99040a86..00000000 --- a/test/test_paths/test_vault_asset_wallets/test_get.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.vault_asset_wallets import get # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestVaultAssetWallets(ApiTestMixin, unittest.TestCase): - """ - VaultAssetWallets unit test stubs - List asset wallets (Paginated) # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_vault_assets/__init__.py b/test/test_paths/test_vault_assets/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_vault_assets/test_get.py b/test/test_paths/test_vault_assets/test_get.py deleted file mode 100644 index f607b67c..00000000 --- a/test/test_paths/test_vault_assets/test_get.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.vault_assets import get # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestVaultAssets(ApiTestMixin, unittest.TestCase): - """ - VaultAssets unit test stubs - Get asset balance for chosen assets # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_vault_assets_asset_id/__init__.py b/test/test_paths/test_vault_assets_asset_id/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_vault_assets_asset_id/test_get.py b/test/test_paths/test_vault_assets_asset_id/test_get.py deleted file mode 100644 index 051e2826..00000000 --- a/test/test_paths/test_vault_assets_asset_id/test_get.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.vault_assets_asset_id import get # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestVaultAssetsAssetId(ApiTestMixin, unittest.TestCase): - """ - VaultAssetsAssetId unit test stubs - Get vault balance by asset # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_vault_public_key_info_/__init__.py b/test/test_paths/test_vault_public_key_info_/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_vault_public_key_info_/test_get.py b/test/test_paths/test_vault_public_key_info_/test_get.py deleted file mode 100644 index 9b5e35fe..00000000 --- a/test/test_paths/test_vault_public_key_info_/test_get.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.vault_public_key_info_ import get # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestVaultPublicKeyInfo(ApiTestMixin, unittest.TestCase): - """ - VaultPublicKeyInfo unit test stubs - Get the public key information # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_webhooks_resend/__init__.py b/test/test_paths/test_webhooks_resend/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_webhooks_resend/test_post.py b/test/test_paths/test_webhooks_resend/test_post.py deleted file mode 100644 index f343647d..00000000 --- a/test/test_paths/test_webhooks_resend/test_post.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.webhooks_resend import post # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestWebhooksResend(ApiTestMixin, unittest.TestCase): - """ - WebhooksResend unit test stubs - Resend failed webhooks # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_webhooks_resend_tx_id/__init__.py b/test/test_paths/test_webhooks_resend_tx_id/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_paths/test_webhooks_resend_tx_id/test_post.py b/test/test_paths/test_webhooks_resend_tx_id/test_post.py deleted file mode 100644 index bf30a3f0..00000000 --- a/test/test_paths/test_webhooks_resend_tx_id/test_post.py +++ /dev/null @@ -1,46 +0,0 @@ -# coding: utf-8 - -""" - Fireblocks API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: - Contact: support@fireblocks.com - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import fireblocks_client -from fireblocks_client.paths.webhooks_resend_tx_id import post # noqa: E501 -from fireblocks_client import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestWebhooksResendTxId(ApiTestMixin, unittest.TestCase): - """ - WebhooksResendTxId unit test stubs - Resend failed webhooks for a transaction by ID # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - response_body = '' - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_payee_account.py b/test/test_payee_account.py new file mode 100644 index 00000000..c0754481 --- /dev/null +++ b/test/test_payee_account.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.payee_account import PayeeAccount + + +class TestPayeeAccount(unittest.TestCase): + """PayeeAccount unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PayeeAccount: + """Test PayeeAccount + 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 `PayeeAccount` + """ + model = PayeeAccount() + if include_optional: + return PayeeAccount( + id = '', + type = 'VAULT_ACCOUNT' + ) + else: + return PayeeAccount( + id = '', + type = 'VAULT_ACCOUNT', + ) + """ + + def testPayeeAccount(self): + """Test PayeeAccount""" + # 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/test/test_payee_account_response.py b/test/test_payee_account_response.py new file mode 100644 index 00000000..8e18999e --- /dev/null +++ b/test/test_payee_account_response.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.payee_account_response import PayeeAccountResponse + + +class TestPayeeAccountResponse(unittest.TestCase): + """PayeeAccountResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PayeeAccountResponse: + """Test PayeeAccountResponse + 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 `PayeeAccountResponse` + """ + model = PayeeAccountResponse() + if include_optional: + return PayeeAccountResponse( + id = '', + type = 'VAULT_ACCOUNT' + ) + else: + return PayeeAccountResponse( + ) + """ + + def testPayeeAccountResponse(self): + """Test PayeeAccountResponse""" + # 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/test/test_payee_account_type.py b/test/test_payee_account_type.py new file mode 100644 index 00000000..cbd68dff --- /dev/null +++ b/test/test_payee_account_type.py @@ -0,0 +1,36 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.payee_account_type import PayeeAccountType + + +class TestPayeeAccountType(unittest.TestCase): + """PayeeAccountType unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPayeeAccountType(self): + """Test PayeeAccountType""" + # inst = PayeeAccountType() + + +if __name__ == "__main__": + unittest.main() diff --git a/test/test_payment_account.py b/test/test_payment_account.py new file mode 100644 index 00000000..6b3df196 --- /dev/null +++ b/test/test_payment_account.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.payment_account import PaymentAccount + + +class TestPaymentAccount(unittest.TestCase): + """PaymentAccount unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PaymentAccount: + """Test PaymentAccount + 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 `PaymentAccount` + """ + model = PaymentAccount() + if include_optional: + return PaymentAccount( + id = '', + type = 'VAULT_ACCOUNT' + ) + else: + return PaymentAccount( + id = '', + type = 'VAULT_ACCOUNT', + ) + """ + + def testPaymentAccount(self): + """Test PaymentAccount""" + # 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/test/test_payment_account_response.py b/test/test_payment_account_response.py new file mode 100644 index 00000000..6d506963 --- /dev/null +++ b/test/test_payment_account_response.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.payment_account_response import PaymentAccountResponse + + +class TestPaymentAccountResponse(unittest.TestCase): + """PaymentAccountResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PaymentAccountResponse: + """Test PaymentAccountResponse + 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 `PaymentAccountResponse` + """ + model = PaymentAccountResponse() + if include_optional: + return PaymentAccountResponse( + id = '', + type = 'VAULT_ACCOUNT' + ) + else: + return PaymentAccountResponse( + ) + """ + + def testPaymentAccountResponse(self): + """Test PaymentAccountResponse""" + # 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/test/test_payment_account_type.py b/test/test_payment_account_type.py new file mode 100644 index 00000000..ab2d1091 --- /dev/null +++ b/test/test_payment_account_type.py @@ -0,0 +1,36 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.payment_account_type import PaymentAccountType + + +class TestPaymentAccountType(unittest.TestCase): + """PaymentAccountType unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPaymentAccountType(self): + """Test PaymentAccountType""" + # inst = PaymentAccountType() + + +if __name__ == "__main__": + unittest.main() diff --git a/test/test_payments_payout_api.py b/test/test_payments_payout_api.py new file mode 100644 index 00000000..66f5067c --- /dev/null +++ b/test/test_payments_payout_api.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.api.payments_payout_api import PaymentsPayoutApi + + +class TestPaymentsPayoutApi(unittest.TestCase): + """PaymentsPayoutApi unit test stubs""" + + def setUp(self) -> None: + self.api = PaymentsPayoutApi() + + def tearDown(self) -> None: + pass + + def test_create_payout(self) -> None: + """Test case for create_payout + + Create a payout instruction set + """ + pass + + def test_execute_payout_action(self) -> None: + """Test case for execute_payout_action + + Execute a payout instruction set + """ + pass + + def test_get_payout(self) -> None: + """Test case for get_payout + + Get the status of a payout instruction set + """ + pass + + +if __name__ == "__main__": + unittest.main() diff --git a/test/test_payout_init_method.py b/test/test_payout_init_method.py new file mode 100644 index 00000000..2b484bd7 --- /dev/null +++ b/test/test_payout_init_method.py @@ -0,0 +1,36 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.payout_init_method import PayoutInitMethod + + +class TestPayoutInitMethod(unittest.TestCase): + """PayoutInitMethod unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPayoutInitMethod(self): + """Test PayoutInitMethod""" + # inst = PayoutInitMethod() + + +if __name__ == "__main__": + unittest.main() diff --git a/test/test_payout_instruction.py b/test/test_payout_instruction.py new file mode 100644 index 00000000..12a81cf5 --- /dev/null +++ b/test/test_payout_instruction.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.payout_instruction import PayoutInstruction + + +class TestPayoutInstruction(unittest.TestCase): + """PayoutInstruction unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PayoutInstruction: + """Test PayoutInstruction + 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 `PayoutInstruction` + """ + model = PayoutInstruction() + if include_optional: + return PayoutInstruction( + id = '', + payee_account = fireblocks_client.models.payee_account.PayeeAccount( + id = '', + type = 'VAULT_ACCOUNT', ), + amount = fireblocks_client.models.instruction_amount.InstructionAmount( + amount = '', + asset_id = '', ) + ) + else: + return PayoutInstruction( + payee_account = fireblocks_client.models.payee_account.PayeeAccount( + id = '', + type = 'VAULT_ACCOUNT', ), + amount = fireblocks_client.models.instruction_amount.InstructionAmount( + amount = '', + asset_id = '', ), + ) + """ + + def testPayoutInstruction(self): + """Test PayoutInstruction""" + # 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/test/test_payout_instruction_response.py b/test/test_payout_instruction_response.py new file mode 100644 index 00000000..c4806002 --- /dev/null +++ b/test/test_payout_instruction_response.py @@ -0,0 +1,84 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.payout_instruction_response import ( + PayoutInstructionResponse, +) + + +class TestPayoutInstructionResponse(unittest.TestCase): + """PayoutInstructionResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PayoutInstructionResponse: + """Test PayoutInstructionResponse + 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 `PayoutInstructionResponse` + """ + model = PayoutInstructionResponse() + if include_optional: + return PayoutInstructionResponse( + id = '', + payee_account = fireblocks_client.models.payee_account_response.PayeeAccountResponse( + id = '', + type = 'VAULT_ACCOUNT', ), + amount = fireblocks_client.models.instruction_amount.InstructionAmount( + amount = '', + asset_id = '', ), + state = 'NOT_STARTED', + transactions = [ + fireblocks_client.models.transaction.Transaction( + id = '', + state = 'SUBMITTED', + timestamp = 1.337, + instruction_id = '', ) + ] + ) + else: + return PayoutInstructionResponse( + payee_account = fireblocks_client.models.payee_account_response.PayeeAccountResponse( + id = '', + type = 'VAULT_ACCOUNT', ), + amount = fireblocks_client.models.instruction_amount.InstructionAmount( + amount = '', + asset_id = '', ), + state = 'NOT_STARTED', + transactions = [ + fireblocks_client.models.transaction.Transaction( + id = '', + state = 'SUBMITTED', + timestamp = 1.337, + instruction_id = '', ) + ], + ) + """ + + def testPayoutInstructionResponse(self): + """Test PayoutInstructionResponse""" + # 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/test/test_payout_instruction_state.py b/test/test_payout_instruction_state.py new file mode 100644 index 00000000..37018174 --- /dev/null +++ b/test/test_payout_instruction_state.py @@ -0,0 +1,36 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.payout_instruction_state import PayoutInstructionState + + +class TestPayoutInstructionState(unittest.TestCase): + """PayoutInstructionState unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPayoutInstructionState(self): + """Test PayoutInstructionState""" + # inst = PayoutInstructionState() + + +if __name__ == "__main__": + unittest.main() diff --git a/test/test_payout_response.py b/test/test_payout_response.py new file mode 100644 index 00000000..cf85e095 --- /dev/null +++ b/test/test_payout_response.py @@ -0,0 +1,106 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.payout_response import PayoutResponse + + +class TestPayoutResponse(unittest.TestCase): + """PayoutResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PayoutResponse: + """Test PayoutResponse + 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 `PayoutResponse` + """ + model = PayoutResponse() + if include_optional: + return PayoutResponse( + payout_id = '', + payment_account = fireblocks_client.models.payment_account_response.PaymentAccountResponse( + id = '', + type = 'VAULT_ACCOUNT', ), + created_at = 1.337, + state = 'CREATED', + status = 'REGISTERED', + reason_of_failure = '', + init_method = 'FILE', + instruction_set = [ + fireblocks_client.models.payout_instruction_response.PayoutInstructionResponse( + id = '', + payee_account = fireblocks_client.models.payee_account_response.PayeeAccountResponse( + id = '', + type = 'VAULT_ACCOUNT', ), + amount = fireblocks_client.models.instruction_amount.InstructionAmount( + amount = '', + asset_id = '', ), + state = 'NOT_STARTED', + transactions = [ + fireblocks_client.models.transaction.Transaction( + id = '', + state = 'SUBMITTED', + timestamp = 1.337, + instruction_id = '', ) + ], ) + ], + report_url = '' + ) + else: + return PayoutResponse( + payout_id = '', + payment_account = fireblocks_client.models.payment_account_response.PaymentAccountResponse( + id = '', + type = 'VAULT_ACCOUNT', ), + created_at = 1.337, + state = 'CREATED', + status = 'REGISTERED', + instruction_set = [ + fireblocks_client.models.payout_instruction_response.PayoutInstructionResponse( + id = '', + payee_account = fireblocks_client.models.payee_account_response.PayeeAccountResponse( + id = '', + type = 'VAULT_ACCOUNT', ), + amount = fireblocks_client.models.instruction_amount.InstructionAmount( + amount = '', + asset_id = '', ), + state = 'NOT_STARTED', + transactions = [ + fireblocks_client.models.transaction.Transaction( + id = '', + state = 'SUBMITTED', + timestamp = 1.337, + instruction_id = '', ) + ], ) + ], + ) + """ + + def testPayoutResponse(self): + """Test PayoutResponse""" + # 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/test/test_payout_state.py b/test/test_payout_state.py new file mode 100644 index 00000000..b3601959 --- /dev/null +++ b/test/test_payout_state.py @@ -0,0 +1,36 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.payout_state import PayoutState + + +class TestPayoutState(unittest.TestCase): + """PayoutState unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPayoutState(self): + """Test PayoutState""" + # inst = PayoutState() + + +if __name__ == "__main__": + unittest.main() diff --git a/test/test_payout_status.py b/test/test_payout_status.py new file mode 100644 index 00000000..58b78568 --- /dev/null +++ b/test/test_payout_status.py @@ -0,0 +1,36 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.payout_status import PayoutStatus + + +class TestPayoutStatus(unittest.TestCase): + """PayoutStatus unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPayoutStatus(self): + """Test PayoutStatus""" + # inst = PayoutStatus() + + +if __name__ == "__main__": + unittest.main() diff --git a/test/test_policy_and_validation_response.py b/test/test_policy_and_validation_response.py new file mode 100644 index 00000000..22bfe58c --- /dev/null +++ b/test/test_policy_and_validation_response.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.policy_and_validation_response import ( + PolicyAndValidationResponse, +) + + +class TestPolicyAndValidationResponse(unittest.TestCase): + """PolicyAndValidationResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PolicyAndValidationResponse: + """Test PolicyAndValidationResponse + 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 `PolicyAndValidationResponse` + """ + model = PolicyAndValidationResponse() + if include_optional: + return PolicyAndValidationResponse( + policy = fireblocks_client.models.policy_response.PolicyResponse( + rules = [ + fireblocks_client.models.policy_rule.PolicyRule( + operator = '', + operators = fireblocks_client.models.policy_rule_operators.PolicyRule_operators( + wildcard = '*', + users = [ + '' + ], + users_groups = [ + '' + ], + services = [ + '' + ], ), + transaction_type = 'TRANSFER', + designated_signer = '', + designated_signers = fireblocks_client.models.policy_rule_designated_signers.PolicyRule_designatedSigners(), + type = 'TRANSFER', + action = 'ALLOW', + asset = '', + src_type = null, + src_sub_type = null, + src_id = null, + src = fireblocks_client.models.policy_rule_src.PolicyRule_src( + ids = [ + [ + null + ] + ], ), + dst_type = null, + dst_sub_type = null, + dst_id = null, + dst = fireblocks_client.models.policy_rule_dst.PolicyRule_dst(), + dst_address_type = 'WHITELISTED', + amount_currency = 'USD', + amount_scope = 'SINGLE_TX', + amount = null, + period_sec = 1.337, + authorizers = [ + '' + ], + authorizers_count = 1.337, + authorization_groups = fireblocks_client.models.policy_rule_authorization_groups.PolicyRule_authorizationGroups( + logic = 'AND', + allow_operator_as_authorizer = True, + groups = [ + fireblocks_client.models.policy_rule_authorization_groups_groups_inner.PolicyRule_authorizationGroups_groups_inner( + th = 1.337, ) + ], ), + amount_aggregation = fireblocks_client.models.policy_rule_amount_aggregation.PolicyRule_amountAggregation( + src_transfer_peers = 'PER_SINGLE_MATCH', + dst_transfer_peers = 'PER_SINGLE_MATCH', ), + raw_message_signing = fireblocks_client.models.policy_rule_raw_message_signing.PolicyRule_rawMessageSigning( + algorithm = '', + derivation_path = fireblocks_client.models.policy_rule_raw_message_signing_derivation_path.PolicyRule_rawMessageSigning_derivationPath( + path = [ + 1.337 + ], ), ), + apply_for_approve = True, + apply_for_typed_message = True, + external_descriptor = '', ) + ], + metadata = fireblocks_client.models.policy_metadata.PolicyMetadata( + edited_by = '', + edited_at = '', + published_by = '', + published_at = '', ), ), + validation = fireblocks_client.models.policy_validation.PolicyValidation( + status = '', + check_result = fireblocks_client.models.policy_check_result.PolicyCheckResult( + errors = 1.337, + result = [ + fireblocks_client.models.policy_rule_check_result.PolicyRuleCheckResult( + index = 1.337, + status = 'ok', + errors = [ + fireblocks_client.models.policy_rule_error.PolicyRuleError( + error_message = '', + error_code = 1.337, + error_code_name = '', + error_field = 'operator', ) + ], ) + ], ), ) + ) + else: + return PolicyAndValidationResponse( + policy = fireblocks_client.models.policy_response.PolicyResponse( + rules = [ + fireblocks_client.models.policy_rule.PolicyRule( + operator = '', + operators = fireblocks_client.models.policy_rule_operators.PolicyRule_operators( + wildcard = '*', + users = [ + '' + ], + users_groups = [ + '' + ], + services = [ + '' + ], ), + transaction_type = 'TRANSFER', + designated_signer = '', + designated_signers = fireblocks_client.models.policy_rule_designated_signers.PolicyRule_designatedSigners(), + type = 'TRANSFER', + action = 'ALLOW', + asset = '', + src_type = null, + src_sub_type = null, + src_id = null, + src = fireblocks_client.models.policy_rule_src.PolicyRule_src( + ids = [ + [ + null + ] + ], ), + dst_type = null, + dst_sub_type = null, + dst_id = null, + dst = fireblocks_client.models.policy_rule_dst.PolicyRule_dst(), + dst_address_type = 'WHITELISTED', + amount_currency = 'USD', + amount_scope = 'SINGLE_TX', + amount = null, + period_sec = 1.337, + authorizers = [ + '' + ], + authorizers_count = 1.337, + authorization_groups = fireblocks_client.models.policy_rule_authorization_groups.PolicyRule_authorizationGroups( + logic = 'AND', + allow_operator_as_authorizer = True, + groups = [ + fireblocks_client.models.policy_rule_authorization_groups_groups_inner.PolicyRule_authorizationGroups_groups_inner( + th = 1.337, ) + ], ), + amount_aggregation = fireblocks_client.models.policy_rule_amount_aggregation.PolicyRule_amountAggregation( + src_transfer_peers = 'PER_SINGLE_MATCH', + dst_transfer_peers = 'PER_SINGLE_MATCH', ), + raw_message_signing = fireblocks_client.models.policy_rule_raw_message_signing.PolicyRule_rawMessageSigning( + algorithm = '', + derivation_path = fireblocks_client.models.policy_rule_raw_message_signing_derivation_path.PolicyRule_rawMessageSigning_derivationPath( + path = [ + 1.337 + ], ), ), + apply_for_approve = True, + apply_for_typed_message = True, + external_descriptor = '', ) + ], + metadata = fireblocks_client.models.policy_metadata.PolicyMetadata( + edited_by = '', + edited_at = '', + published_by = '', + published_at = '', ), ), + validation = fireblocks_client.models.policy_validation.PolicyValidation( + status = '', + check_result = fireblocks_client.models.policy_check_result.PolicyCheckResult( + errors = 1.337, + result = [ + fireblocks_client.models.policy_rule_check_result.PolicyRuleCheckResult( + index = 1.337, + status = 'ok', + errors = [ + fireblocks_client.models.policy_rule_error.PolicyRuleError( + error_message = '', + error_code = 1.337, + error_code_name = '', + error_field = 'operator', ) + ], ) + ], ), ), + ) + """ + + def testPolicyAndValidationResponse(self): + """Test PolicyAndValidationResponse""" + # 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/test/test_policy_check_result.py b/test/test_policy_check_result.py new file mode 100644 index 00000000..eeb56a76 --- /dev/null +++ b/test/test_policy_check_result.py @@ -0,0 +1,79 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.policy_check_result import PolicyCheckResult + + +class TestPolicyCheckResult(unittest.TestCase): + """PolicyCheckResult unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PolicyCheckResult: + """Test PolicyCheckResult + 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 `PolicyCheckResult` + """ + model = PolicyCheckResult() + if include_optional: + return PolicyCheckResult( + errors = 1.337, + result = [ + fireblocks_client.models.policy_rule_check_result.PolicyRuleCheckResult( + index = 1.337, + status = 'ok', + errors = [ + fireblocks_client.models.policy_rule_error.PolicyRuleError( + error_message = '', + error_code = 1.337, + error_code_name = '', + error_field = 'operator', ) + ], ) + ] + ) + else: + return PolicyCheckResult( + errors = 1.337, + result = [ + fireblocks_client.models.policy_rule_check_result.PolicyRuleCheckResult( + index = 1.337, + status = 'ok', + errors = [ + fireblocks_client.models.policy_rule_error.PolicyRuleError( + error_message = '', + error_code = 1.337, + error_code_name = '', + error_field = 'operator', ) + ], ) + ], + ) + """ + + def testPolicyCheckResult(self): + """Test PolicyCheckResult""" + # 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/test/test_policy_editor_beta_api.py b/test/test_policy_editor_beta_api.py new file mode 100644 index 00000000..68dd93ec --- /dev/null +++ b/test/test_policy_editor_beta_api.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.api.policy_editor_beta_api import PolicyEditorBetaApi + + +class TestPolicyEditorBetaApi(unittest.TestCase): + """PolicyEditorBetaApi unit test stubs""" + + def setUp(self) -> None: + self.api = PolicyEditorBetaApi() + + def tearDown(self) -> None: + pass + + def test_get_active_policy(self) -> None: + """Test case for get_active_policy + + Get the active policy and its validation + """ + pass + + def test_get_draft(self) -> None: + """Test case for get_draft + + Get the active draft + """ + pass + + def test_publish_draft(self) -> None: + """Test case for publish_draft + + Send publish request for a certain draft id + """ + pass + + def test_publish_policy_rules(self) -> None: + """Test case for publish_policy_rules + + Send publish request for a set of policy rules + """ + pass + + def test_update_draft(self) -> None: + """Test case for update_draft + + Update the draft with a new set of rules + """ + pass + + +if __name__ == "__main__": + unittest.main() diff --git a/test/test_policy_metadata.py b/test/test_policy_metadata.py new file mode 100644 index 00000000..9e9bf14a --- /dev/null +++ b/test/test_policy_metadata.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.policy_metadata import PolicyMetadata + + +class TestPolicyMetadata(unittest.TestCase): + """PolicyMetadata unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PolicyMetadata: + """Test PolicyMetadata + 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 `PolicyMetadata` + """ + model = PolicyMetadata() + if include_optional: + return PolicyMetadata( + edited_by = '', + edited_at = '', + published_by = '', + published_at = '' + ) + else: + return PolicyMetadata( + ) + """ + + def testPolicyMetadata(self): + """Test PolicyMetadata""" + # 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/test/test_policy_response.py b/test/test_policy_response.py new file mode 100644 index 00000000..f7a6de76 --- /dev/null +++ b/test/test_policy_response.py @@ -0,0 +1,187 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.policy_response import PolicyResponse + + +class TestPolicyResponse(unittest.TestCase): + """PolicyResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PolicyResponse: + """Test PolicyResponse + 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 `PolicyResponse` + """ + model = PolicyResponse() + if include_optional: + return PolicyResponse( + rules = [ + fireblocks_client.models.policy_rule.PolicyRule( + operator = '', + operators = fireblocks_client.models.policy_rule_operators.PolicyRule_operators( + wildcard = '*', + users = [ + '' + ], + users_groups = [ + '' + ], + services = [ + '' + ], ), + transaction_type = 'TRANSFER', + designated_signer = '', + designated_signers = fireblocks_client.models.policy_rule_designated_signers.PolicyRule_designatedSigners(), + type = 'TRANSFER', + action = 'ALLOW', + asset = '', + src_type = null, + src_sub_type = null, + src_id = null, + src = fireblocks_client.models.policy_rule_src.PolicyRule_src( + ids = [ + [ + null + ] + ], ), + dst_type = null, + dst_sub_type = null, + dst_id = null, + dst = fireblocks_client.models.policy_rule_dst.PolicyRule_dst(), + dst_address_type = 'WHITELISTED', + amount_currency = 'USD', + amount_scope = 'SINGLE_TX', + amount = null, + period_sec = 1.337, + authorizers = [ + '' + ], + authorizers_count = 1.337, + authorization_groups = fireblocks_client.models.policy_rule_authorization_groups.PolicyRule_authorizationGroups( + logic = 'AND', + allow_operator_as_authorizer = True, + groups = [ + fireblocks_client.models.policy_rule_authorization_groups_groups_inner.PolicyRule_authorizationGroups_groups_inner( + th = 1.337, ) + ], ), + amount_aggregation = fireblocks_client.models.policy_rule_amount_aggregation.PolicyRule_amountAggregation( + src_transfer_peers = 'PER_SINGLE_MATCH', + dst_transfer_peers = 'PER_SINGLE_MATCH', ), + raw_message_signing = fireblocks_client.models.policy_rule_raw_message_signing.PolicyRule_rawMessageSigning( + algorithm = '', + derivation_path = fireblocks_client.models.policy_rule_raw_message_signing_derivation_path.PolicyRule_rawMessageSigning_derivationPath( + path = [ + 1.337 + ], ), ), + apply_for_approve = True, + apply_for_typed_message = True, + external_descriptor = '', ) + ], + metadata = fireblocks_client.models.policy_metadata.PolicyMetadata( + edited_by = '', + edited_at = '', + published_by = '', + published_at = '', ) + ) + else: + return PolicyResponse( + rules = [ + fireblocks_client.models.policy_rule.PolicyRule( + operator = '', + operators = fireblocks_client.models.policy_rule_operators.PolicyRule_operators( + wildcard = '*', + users = [ + '' + ], + users_groups = [ + '' + ], + services = [ + '' + ], ), + transaction_type = 'TRANSFER', + designated_signer = '', + designated_signers = fireblocks_client.models.policy_rule_designated_signers.PolicyRule_designatedSigners(), + type = 'TRANSFER', + action = 'ALLOW', + asset = '', + src_type = null, + src_sub_type = null, + src_id = null, + src = fireblocks_client.models.policy_rule_src.PolicyRule_src( + ids = [ + [ + null + ] + ], ), + dst_type = null, + dst_sub_type = null, + dst_id = null, + dst = fireblocks_client.models.policy_rule_dst.PolicyRule_dst(), + dst_address_type = 'WHITELISTED', + amount_currency = 'USD', + amount_scope = 'SINGLE_TX', + amount = null, + period_sec = 1.337, + authorizers = [ + '' + ], + authorizers_count = 1.337, + authorization_groups = fireblocks_client.models.policy_rule_authorization_groups.PolicyRule_authorizationGroups( + logic = 'AND', + allow_operator_as_authorizer = True, + groups = [ + fireblocks_client.models.policy_rule_authorization_groups_groups_inner.PolicyRule_authorizationGroups_groups_inner( + th = 1.337, ) + ], ), + amount_aggregation = fireblocks_client.models.policy_rule_amount_aggregation.PolicyRule_amountAggregation( + src_transfer_peers = 'PER_SINGLE_MATCH', + dst_transfer_peers = 'PER_SINGLE_MATCH', ), + raw_message_signing = fireblocks_client.models.policy_rule_raw_message_signing.PolicyRule_rawMessageSigning( + algorithm = '', + derivation_path = fireblocks_client.models.policy_rule_raw_message_signing_derivation_path.PolicyRule_rawMessageSigning_derivationPath( + path = [ + 1.337 + ], ), ), + apply_for_approve = True, + apply_for_typed_message = True, + external_descriptor = '', ) + ], + metadata = fireblocks_client.models.policy_metadata.PolicyMetadata( + edited_by = '', + edited_at = '', + published_by = '', + published_at = '', ), + ) + """ + + def testPolicyResponse(self): + """Test PolicyResponse""" + # 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/test/test_policy_rule.py b/test/test_policy_rule.py new file mode 100644 index 00000000..182e962e --- /dev/null +++ b/test/test_policy_rule.py @@ -0,0 +1,137 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.policy_rule import PolicyRule + + +class TestPolicyRule(unittest.TestCase): + """PolicyRule unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PolicyRule: + """Test PolicyRule + 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 `PolicyRule` + """ + model = PolicyRule() + if include_optional: + return PolicyRule( + operator = '', + operators = fireblocks_client.models.policy_rule_operators.PolicyRule_operators( + wildcard = '*', + users = [ + '' + ], + users_groups = [ + '' + ], + services = [ + '' + ], ), + transaction_type = 'TRANSFER', + designated_signer = '', + designated_signers = fireblocks_client.models.policy_rule_designated_signers.PolicyRule_designatedSigners( + users = [ + '' + ], + users_groups = [ + '' + ], ), + type = 'TRANSFER', + action = 'ALLOW', + asset = '', + src_type = 'EXCHANGE', + src_sub_type = 'EXTERNAL', + src_id = '', + src = fireblocks_client.models.policy_rule_src.PolicyRule_src( + ids = [ + [ + null + ] + ], ), + dst_type = 'EXCHANGE', + dst_sub_type = 'EXTERNAL', + dst_id = '', + dst = fireblocks_client.models.policy_rule_dst.PolicyRule_dst( + ids = [ + [ + null + ] + ], ), + dst_address_type = 'WHITELISTED', + amount_currency = 'USD', + amount_scope = 'SINGLE_TX', + amount = None, + period_sec = 1.337, + authorizers = [ + '' + ], + authorizers_count = 1.337, + authorization_groups = fireblocks_client.models.policy_rule_authorization_groups.PolicyRule_authorizationGroups( + logic = 'AND', + allow_operator_as_authorizer = True, + groups = [ + fireblocks_client.models.policy_rule_authorization_groups_groups_inner.PolicyRule_authorizationGroups_groups_inner( + users = [ + '' + ], + users_groups = [ + '' + ], + th = 1.337, ) + ], ), + amount_aggregation = fireblocks_client.models.policy_rule_amount_aggregation.PolicyRule_amountAggregation( + operators = 'PER_SINGLE_MATCH', + src_transfer_peers = 'PER_SINGLE_MATCH', + dst_transfer_peers = 'PER_SINGLE_MATCH', ), + raw_message_signing = fireblocks_client.models.policy_rule_raw_message_signing.PolicyRule_rawMessageSigning( + algorithm = '', + derivation_path = fireblocks_client.models.policy_rule_raw_message_signing_derivation_path.PolicyRule_rawMessageSigning_derivationPath( + path = [ + 1.337 + ], ), ), + apply_for_approve = True, + apply_for_typed_message = True, + external_descriptor = '' + ) + else: + return PolicyRule( + type = 'TRANSFER', + action = 'ALLOW', + asset = '', + amount_currency = 'USD', + amount_scope = 'SINGLE_TX', + amount = None, + period_sec = 1.337, + ) + """ + + def testPolicyRule(self): + """Test PolicyRule""" + # 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/test/test_policy_rule_amount.py b/test/test_policy_rule_amount.py new file mode 100644 index 00000000..ead3eb41 --- /dev/null +++ b/test/test_policy_rule_amount.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.policy_rule_amount import PolicyRuleAmount + + +class TestPolicyRuleAmount(unittest.TestCase): + """PolicyRuleAmount unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PolicyRuleAmount: + """Test PolicyRuleAmount + 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 `PolicyRuleAmount` + """ + model = PolicyRuleAmount() + if include_optional: + return PolicyRuleAmount( + ) + else: + return PolicyRuleAmount( + ) + """ + + def testPolicyRuleAmount(self): + """Test PolicyRuleAmount""" + # 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/test/test_policy_rule_amount_aggregation.py b/test/test_policy_rule_amount_aggregation.py new file mode 100644 index 00000000..bd8bdfa2 --- /dev/null +++ b/test/test_policy_rule_amount_aggregation.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.policy_rule_amount_aggregation import ( + PolicyRuleAmountAggregation, +) + + +class TestPolicyRuleAmountAggregation(unittest.TestCase): + """PolicyRuleAmountAggregation unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PolicyRuleAmountAggregation: + """Test PolicyRuleAmountAggregation + 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 `PolicyRuleAmountAggregation` + """ + model = PolicyRuleAmountAggregation() + if include_optional: + return PolicyRuleAmountAggregation( + operators = 'PER_SINGLE_MATCH', + src_transfer_peers = 'PER_SINGLE_MATCH', + dst_transfer_peers = 'PER_SINGLE_MATCH' + ) + else: + return PolicyRuleAmountAggregation( + ) + """ + + def testPolicyRuleAmountAggregation(self): + """Test PolicyRuleAmountAggregation""" + # 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/test/test_policy_rule_authorization_groups.py b/test/test_policy_rule_authorization_groups.py new file mode 100644 index 00000000..7542e649 --- /dev/null +++ b/test/test_policy_rule_authorization_groups.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.policy_rule_authorization_groups import ( + PolicyRuleAuthorizationGroups, +) + + +class TestPolicyRuleAuthorizationGroups(unittest.TestCase): + """PolicyRuleAuthorizationGroups unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PolicyRuleAuthorizationGroups: + """Test PolicyRuleAuthorizationGroups + 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 `PolicyRuleAuthorizationGroups` + """ + model = PolicyRuleAuthorizationGroups() + if include_optional: + return PolicyRuleAuthorizationGroups( + logic = 'AND', + allow_operator_as_authorizer = True, + groups = [ + fireblocks_client.models.policy_rule_authorization_groups_groups_inner.PolicyRule_authorizationGroups_groups_inner( + users = [ + '' + ], + users_groups = [ + '' + ], + th = 1.337, ) + ] + ) + else: + return PolicyRuleAuthorizationGroups( + ) + """ + + def testPolicyRuleAuthorizationGroups(self): + """Test PolicyRuleAuthorizationGroups""" + # 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/test/test_policy_rule_authorization_groups_groups_inner.py b/test/test_policy_rule_authorization_groups_groups_inner.py new file mode 100644 index 00000000..a7aa8476 --- /dev/null +++ b/test/test_policy_rule_authorization_groups_groups_inner.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.policy_rule_authorization_groups_groups_inner import ( + PolicyRuleAuthorizationGroupsGroupsInner, +) + + +class TestPolicyRuleAuthorizationGroupsGroupsInner(unittest.TestCase): + """PolicyRuleAuthorizationGroupsGroupsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance( + self, include_optional + ) -> PolicyRuleAuthorizationGroupsGroupsInner: + """Test PolicyRuleAuthorizationGroupsGroupsInner + 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 `PolicyRuleAuthorizationGroupsGroupsInner` + """ + model = PolicyRuleAuthorizationGroupsGroupsInner() + if include_optional: + return PolicyRuleAuthorizationGroupsGroupsInner( + users = [ + '' + ], + users_groups = [ + '' + ], + th = 1.337 + ) + else: + return PolicyRuleAuthorizationGroupsGroupsInner( + ) + """ + + def testPolicyRuleAuthorizationGroupsGroupsInner(self): + """Test PolicyRuleAuthorizationGroupsGroupsInner""" + # 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/test/test_policy_rule_check_result.py b/test/test_policy_rule_check_result.py new file mode 100644 index 00000000..df97af6f --- /dev/null +++ b/test/test_policy_rule_check_result.py @@ -0,0 +1,71 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.policy_rule_check_result import PolicyRuleCheckResult + + +class TestPolicyRuleCheckResult(unittest.TestCase): + """PolicyRuleCheckResult unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PolicyRuleCheckResult: + """Test PolicyRuleCheckResult + 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 `PolicyRuleCheckResult` + """ + model = PolicyRuleCheckResult() + if include_optional: + return PolicyRuleCheckResult( + index = 1.337, + status = 'ok', + errors = [ + fireblocks_client.models.policy_rule_error.PolicyRuleError( + error_message = '', + error_code = 1.337, + error_code_name = '', + error_field = 'operator', ) + ] + ) + else: + return PolicyRuleCheckResult( + index = 1.337, + status = 'ok', + errors = [ + fireblocks_client.models.policy_rule_error.PolicyRuleError( + error_message = '', + error_code = 1.337, + error_code_name = '', + error_field = 'operator', ) + ], + ) + """ + + def testPolicyRuleCheckResult(self): + """Test PolicyRuleCheckResult""" + # 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/test/test_policy_rule_designated_signers.py b/test/test_policy_rule_designated_signers.py new file mode 100644 index 00000000..92bc2b94 --- /dev/null +++ b/test/test_policy_rule_designated_signers.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.policy_rule_designated_signers import ( + PolicyRuleDesignatedSigners, +) + + +class TestPolicyRuleDesignatedSigners(unittest.TestCase): + """PolicyRuleDesignatedSigners unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PolicyRuleDesignatedSigners: + """Test PolicyRuleDesignatedSigners + 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 `PolicyRuleDesignatedSigners` + """ + model = PolicyRuleDesignatedSigners() + if include_optional: + return PolicyRuleDesignatedSigners( + users = [ + '' + ], + users_groups = [ + '' + ] + ) + else: + return PolicyRuleDesignatedSigners( + ) + """ + + def testPolicyRuleDesignatedSigners(self): + """Test PolicyRuleDesignatedSigners""" + # 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/test/test_policy_rule_dst.py b/test/test_policy_rule_dst.py new file mode 100644 index 00000000..e02b048d --- /dev/null +++ b/test/test_policy_rule_dst.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.policy_rule_dst import PolicyRuleDst + + +class TestPolicyRuleDst(unittest.TestCase): + """PolicyRuleDst unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PolicyRuleDst: + """Test PolicyRuleDst + 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 `PolicyRuleDst` + """ + model = PolicyRuleDst() + if include_optional: + return PolicyRuleDst( + ids = [ + [ + null + ] + ] + ) + else: + return PolicyRuleDst( + ) + """ + + def testPolicyRuleDst(self): + """Test PolicyRuleDst""" + # 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/test/test_policy_rule_error.py b/test/test_policy_rule_error.py new file mode 100644 index 00000000..330bf9fe --- /dev/null +++ b/test/test_policy_rule_error.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.policy_rule_error import PolicyRuleError + + +class TestPolicyRuleError(unittest.TestCase): + """PolicyRuleError unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PolicyRuleError: + """Test PolicyRuleError + 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 `PolicyRuleError` + """ + model = PolicyRuleError() + if include_optional: + return PolicyRuleError( + error_message = '', + error_code = 1.337, + error_code_name = '', + error_field = 'operator' + ) + else: + return PolicyRuleError( + error_message = '', + error_code = 1.337, + error_code_name = '', + error_field = 'operator', + ) + """ + + def testPolicyRuleError(self): + """Test PolicyRuleError""" + # 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/test/test_policy_rule_operators.py b/test/test_policy_rule_operators.py new file mode 100644 index 00000000..b747c918 --- /dev/null +++ b/test/test_policy_rule_operators.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.policy_rule_operators import PolicyRuleOperators + + +class TestPolicyRuleOperators(unittest.TestCase): + """PolicyRuleOperators unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PolicyRuleOperators: + """Test PolicyRuleOperators + 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 `PolicyRuleOperators` + """ + model = PolicyRuleOperators() + if include_optional: + return PolicyRuleOperators( + wildcard = '*', + users = [ + '' + ], + users_groups = [ + '' + ], + services = [ + '' + ] + ) + else: + return PolicyRuleOperators( + ) + """ + + def testPolicyRuleOperators(self): + """Test PolicyRuleOperators""" + # 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/test/test_policy_rule_raw_message_signing.py b/test/test_policy_rule_raw_message_signing.py new file mode 100644 index 00000000..740f29f1 --- /dev/null +++ b/test/test_policy_rule_raw_message_signing.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.policy_rule_raw_message_signing import ( + PolicyRuleRawMessageSigning, +) + + +class TestPolicyRuleRawMessageSigning(unittest.TestCase): + """PolicyRuleRawMessageSigning unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PolicyRuleRawMessageSigning: + """Test PolicyRuleRawMessageSigning + 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 `PolicyRuleRawMessageSigning` + """ + model = PolicyRuleRawMessageSigning() + if include_optional: + return PolicyRuleRawMessageSigning( + algorithm = '', + derivation_path = fireblocks_client.models.policy_rule_raw_message_signing_derivation_path.PolicyRule_rawMessageSigning_derivationPath( + path = [ + 1.337 + ], ) + ) + else: + return PolicyRuleRawMessageSigning( + ) + """ + + def testPolicyRuleRawMessageSigning(self): + """Test PolicyRuleRawMessageSigning""" + # 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/test/test_policy_rule_raw_message_signing_derivation_path.py b/test/test_policy_rule_raw_message_signing_derivation_path.py new file mode 100644 index 00000000..8211e412 --- /dev/null +++ b/test/test_policy_rule_raw_message_signing_derivation_path.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.policy_rule_raw_message_signing_derivation_path import ( + PolicyRuleRawMessageSigningDerivationPath, +) + + +class TestPolicyRuleRawMessageSigningDerivationPath(unittest.TestCase): + """PolicyRuleRawMessageSigningDerivationPath unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance( + self, include_optional + ) -> PolicyRuleRawMessageSigningDerivationPath: + """Test PolicyRuleRawMessageSigningDerivationPath + 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 `PolicyRuleRawMessageSigningDerivationPath` + """ + model = PolicyRuleRawMessageSigningDerivationPath() + if include_optional: + return PolicyRuleRawMessageSigningDerivationPath( + path = [ + 1.337 + ] + ) + else: + return PolicyRuleRawMessageSigningDerivationPath( + ) + """ + + def testPolicyRuleRawMessageSigningDerivationPath(self): + """Test PolicyRuleRawMessageSigningDerivationPath""" + # 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/test/test_policy_rule_src.py b/test/test_policy_rule_src.py new file mode 100644 index 00000000..5cc94c00 --- /dev/null +++ b/test/test_policy_rule_src.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.policy_rule_src import PolicyRuleSrc + + +class TestPolicyRuleSrc(unittest.TestCase): + """PolicyRuleSrc unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PolicyRuleSrc: + """Test PolicyRuleSrc + 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 `PolicyRuleSrc` + """ + model = PolicyRuleSrc() + if include_optional: + return PolicyRuleSrc( + ids = [ + [ + null + ] + ] + ) + else: + return PolicyRuleSrc( + ) + """ + + def testPolicyRuleSrc(self): + """Test PolicyRuleSrc""" + # 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/test/test_policy_rules.py b/test/test_policy_rules.py new file mode 100644 index 00000000..95e2af1f --- /dev/null +++ b/test/test_policy_rules.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.policy_rules import PolicyRules + + +class TestPolicyRules(unittest.TestCase): + """PolicyRules unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PolicyRules: + """Test PolicyRules + 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 `PolicyRules` + """ + model = PolicyRules() + if include_optional: + return PolicyRules( + rules = [ + fireblocks_client.models.policy_rule.PolicyRule( + operator = '', + operators = fireblocks_client.models.policy_rule_operators.PolicyRule_operators( + wildcard = '*', + users = [ + '' + ], + users_groups = [ + '' + ], + services = [ + '' + ], ), + transaction_type = 'TRANSFER', + designated_signer = '', + designated_signers = fireblocks_client.models.policy_rule_designated_signers.PolicyRule_designatedSigners(), + type = 'TRANSFER', + action = 'ALLOW', + asset = '', + src_type = null, + src_sub_type = null, + src_id = null, + src = fireblocks_client.models.policy_rule_src.PolicyRule_src( + ids = [ + [ + null + ] + ], ), + dst_type = null, + dst_sub_type = null, + dst_id = null, + dst = fireblocks_client.models.policy_rule_dst.PolicyRule_dst(), + dst_address_type = 'WHITELISTED', + amount_currency = 'USD', + amount_scope = 'SINGLE_TX', + amount = null, + period_sec = 1.337, + authorizers = [ + '' + ], + authorizers_count = 1.337, + authorization_groups = fireblocks_client.models.policy_rule_authorization_groups.PolicyRule_authorizationGroups( + logic = 'AND', + allow_operator_as_authorizer = True, + groups = [ + fireblocks_client.models.policy_rule_authorization_groups_groups_inner.PolicyRule_authorizationGroups_groups_inner( + th = 1.337, ) + ], ), + amount_aggregation = fireblocks_client.models.policy_rule_amount_aggregation.PolicyRule_amountAggregation( + src_transfer_peers = 'PER_SINGLE_MATCH', + dst_transfer_peers = 'PER_SINGLE_MATCH', ), + raw_message_signing = fireblocks_client.models.policy_rule_raw_message_signing.PolicyRule_rawMessageSigning( + algorithm = '', + derivation_path = fireblocks_client.models.policy_rule_raw_message_signing_derivation_path.PolicyRule_rawMessageSigning_derivationPath( + path = [ + 1.337 + ], ), ), + apply_for_approve = True, + apply_for_typed_message = True, + external_descriptor = '', ) + ] + ) + else: + return PolicyRules( + ) + """ + + def testPolicyRules(self): + """Test PolicyRules""" + # 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/test/test_policy_src_or_dest_sub_type.py b/test/test_policy_src_or_dest_sub_type.py new file mode 100644 index 00000000..65392379 --- /dev/null +++ b/test/test_policy_src_or_dest_sub_type.py @@ -0,0 +1,36 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.policy_src_or_dest_sub_type import PolicySrcOrDestSubType + + +class TestPolicySrcOrDestSubType(unittest.TestCase): + """PolicySrcOrDestSubType unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPolicySrcOrDestSubType(self): + """Test PolicySrcOrDestSubType""" + # inst = PolicySrcOrDestSubType() + + +if __name__ == "__main__": + unittest.main() diff --git a/test/test_policy_src_or_dest_type.py b/test/test_policy_src_or_dest_type.py new file mode 100644 index 00000000..aa5111b6 --- /dev/null +++ b/test/test_policy_src_or_dest_type.py @@ -0,0 +1,36 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.policy_src_or_dest_type import PolicySrcOrDestType + + +class TestPolicySrcOrDestType(unittest.TestCase): + """PolicySrcOrDestType unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPolicySrcOrDestType(self): + """Test PolicySrcOrDestType""" + # inst = PolicySrcOrDestType() + + +if __name__ == "__main__": + unittest.main() diff --git a/test/test_policy_status.py b/test/test_policy_status.py new file mode 100644 index 00000000..6eb15f50 --- /dev/null +++ b/test/test_policy_status.py @@ -0,0 +1,36 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.policy_status import PolicyStatus + + +class TestPolicyStatus(unittest.TestCase): + """PolicyStatus unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPolicyStatus(self): + """Test PolicyStatus""" + # inst = PolicyStatus() + + +if __name__ == "__main__": + unittest.main() diff --git a/test/test_policy_validation.py b/test/test_policy_validation.py new file mode 100644 index 00000000..dae88232 --- /dev/null +++ b/test/test_policy_validation.py @@ -0,0 +1,83 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.policy_validation import PolicyValidation + + +class TestPolicyValidation(unittest.TestCase): + """PolicyValidation unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PolicyValidation: + """Test PolicyValidation + 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 `PolicyValidation` + """ + model = PolicyValidation() + if include_optional: + return PolicyValidation( + status = '', + check_result = fireblocks_client.models.policy_check_result.PolicyCheckResult( + errors = 1.337, + result = [ + fireblocks_client.models.policy_rule_check_result.PolicyRuleCheckResult( + index = 1.337, + status = 'ok', + errors = [ + fireblocks_client.models.policy_rule_error.PolicyRuleError( + error_message = '', + error_code = 1.337, + error_code_name = '', + error_field = 'operator', ) + ], ) + ], ) + ) + else: + return PolicyValidation( + status = '', + check_result = fireblocks_client.models.policy_check_result.PolicyCheckResult( + errors = 1.337, + result = [ + fireblocks_client.models.policy_rule_check_result.PolicyRuleCheckResult( + index = 1.337, + status = 'ok', + errors = [ + fireblocks_client.models.policy_rule_error.PolicyRuleError( + error_message = '', + error_code = 1.337, + error_code_name = '', + error_field = 'operator', ) + ], ) + ], ), + ) + """ + + def testPolicyValidation(self): + """Test PolicyValidation""" + # 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/test/test_pre_screening.py b/test/test_pre_screening.py new file mode 100644 index 00000000..9f87d69f --- /dev/null +++ b/test/test_pre_screening.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.pre_screening import PreScreening + + +class TestPreScreening(unittest.TestCase): + """PreScreening unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PreScreening: + """Test PreScreening + 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 `PreScreening` + """ + model = PreScreening() + if include_optional: + return PreScreening( + enabled = True + ) + else: + return PreScreening( + enabled = True, + ) + """ + + def testPreScreening(self): + """Test PreScreening""" + # 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/test/test_provider_dto.py b/test/test_provider_dto.py new file mode 100644 index 00000000..d28db130 --- /dev/null +++ b/test/test_provider_dto.py @@ -0,0 +1,65 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.provider_dto import ProviderDto + + +class TestProviderDto(unittest.TestCase): + """ProviderDto unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ProviderDto: + """Test ProviderDto + 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 `ProviderDto` + """ + model = ProviderDto() + if include_optional: + return ProviderDto( + id = 'kiln', + provider_name = 'Kiln', + validators = [{"chainDescriptor":"SOL","feePercent":5},{"chainDescriptor":"ETH","feePercent":7}], + icon_url = 'https://static.fireblocks.io/staking/validators/kiln_console.png', + terms_of_service_url = 'https://www.kiln.fi/terms-and-conditions-for-fireblocks-customers', + is_terms_of_service_approved = True + ) + else: + return ProviderDto( + id = 'kiln', + provider_name = 'Kiln', + validators = [{"chainDescriptor":"SOL","feePercent":5},{"chainDescriptor":"ETH","feePercent":7}], + icon_url = 'https://static.fireblocks.io/staking/validators/kiln_console.png', + terms_of_service_url = 'https://www.kiln.fi/terms-and-conditions-for-fireblocks-customers', + is_terms_of_service_approved = True, + ) + """ + + def testProviderDto(self): + """Test ProviderDto""" + # 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/test/test_public_key_information.py b/test/test_public_key_information.py new file mode 100644 index 00000000..c94f7302 --- /dev/null +++ b/test/test_public_key_information.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.public_key_information import PublicKeyInformation + + +class TestPublicKeyInformation(unittest.TestCase): + """PublicKeyInformation unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PublicKeyInformation: + """Test PublicKeyInformation + 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 `PublicKeyInformation` + """ + model = PublicKeyInformation() + if include_optional: + return PublicKeyInformation( + algorithm = '', + derivation_path = [ + 1.337 + ], + public_key = '' + ) + else: + return PublicKeyInformation( + ) + """ + + def testPublicKeyInformation(self): + """Test PublicKeyInformation""" + # 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/test/test_publish_draft_request.py b/test/test_publish_draft_request.py new file mode 100644 index 00000000..3987bf19 --- /dev/null +++ b/test/test_publish_draft_request.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.publish_draft_request import PublishDraftRequest + + +class TestPublishDraftRequest(unittest.TestCase): + """PublishDraftRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PublishDraftRequest: + """Test PublishDraftRequest + 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 `PublishDraftRequest` + """ + model = PublishDraftRequest() + if include_optional: + return PublishDraftRequest( + draft_id = '' + ) + else: + return PublishDraftRequest( + ) + """ + + def testPublishDraftRequest(self): + """Test PublishDraftRequest""" + # 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/test/test_publish_result.py b/test/test_publish_result.py new file mode 100644 index 00000000..81975cf6 --- /dev/null +++ b/test/test_publish_result.py @@ -0,0 +1,217 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.publish_result import PublishResult + + +class TestPublishResult(unittest.TestCase): + """PublishResult unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PublishResult: + """Test PublishResult + 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 `PublishResult` + """ + model = PublishResult() + if include_optional: + return PublishResult( + status = 'SUCCESS', + rules = [ + fireblocks_client.models.policy_rule.PolicyRule( + operator = '', + operators = fireblocks_client.models.policy_rule_operators.PolicyRule_operators( + wildcard = '*', + users = [ + '' + ], + users_groups = [ + '' + ], + services = [ + '' + ], ), + transaction_type = 'TRANSFER', + designated_signer = '', + designated_signers = fireblocks_client.models.policy_rule_designated_signers.PolicyRule_designatedSigners(), + type = 'TRANSFER', + action = 'ALLOW', + asset = '', + src_type = null, + src_sub_type = null, + src_id = null, + src = fireblocks_client.models.policy_rule_src.PolicyRule_src( + ids = [ + [ + null + ] + ], ), + dst_type = null, + dst_sub_type = null, + dst_id = null, + dst = fireblocks_client.models.policy_rule_dst.PolicyRule_dst(), + dst_address_type = 'WHITELISTED', + amount_currency = 'USD', + amount_scope = 'SINGLE_TX', + amount = null, + period_sec = 1.337, + authorizers = [ + '' + ], + authorizers_count = 1.337, + authorization_groups = fireblocks_client.models.policy_rule_authorization_groups.PolicyRule_authorizationGroups( + logic = 'AND', + allow_operator_as_authorizer = True, + groups = [ + fireblocks_client.models.policy_rule_authorization_groups_groups_inner.PolicyRule_authorizationGroups_groups_inner( + th = 1.337, ) + ], ), + amount_aggregation = fireblocks_client.models.policy_rule_amount_aggregation.PolicyRule_amountAggregation( + src_transfer_peers = 'PER_SINGLE_MATCH', + dst_transfer_peers = 'PER_SINGLE_MATCH', ), + raw_message_signing = fireblocks_client.models.policy_rule_raw_message_signing.PolicyRule_rawMessageSigning( + algorithm = '', + derivation_path = fireblocks_client.models.policy_rule_raw_message_signing_derivation_path.PolicyRule_rawMessageSigning_derivationPath( + path = [ + 1.337 + ], ), ), + apply_for_approve = True, + apply_for_typed_message = True, + external_descriptor = '', ) + ], + check_result = fireblocks_client.models.policy_check_result.PolicyCheckResult( + errors = 1.337, + result = [ + fireblocks_client.models.policy_rule_check_result.PolicyRuleCheckResult( + index = 1.337, + status = 'ok', + errors = [ + fireblocks_client.models.policy_rule_error.PolicyRuleError( + error_message = '', + error_code = 1.337, + error_code_name = '', + error_field = 'operator', ) + ], ) + ], ), + metadata = fireblocks_client.models.policy_metadata.PolicyMetadata( + edited_by = '', + edited_at = '', + published_by = '', + published_at = '', ) + ) + else: + return PublishResult( + status = 'SUCCESS', + rules = [ + fireblocks_client.models.policy_rule.PolicyRule( + operator = '', + operators = fireblocks_client.models.policy_rule_operators.PolicyRule_operators( + wildcard = '*', + users = [ + '' + ], + users_groups = [ + '' + ], + services = [ + '' + ], ), + transaction_type = 'TRANSFER', + designated_signer = '', + designated_signers = fireblocks_client.models.policy_rule_designated_signers.PolicyRule_designatedSigners(), + type = 'TRANSFER', + action = 'ALLOW', + asset = '', + src_type = null, + src_sub_type = null, + src_id = null, + src = fireblocks_client.models.policy_rule_src.PolicyRule_src( + ids = [ + [ + null + ] + ], ), + dst_type = null, + dst_sub_type = null, + dst_id = null, + dst = fireblocks_client.models.policy_rule_dst.PolicyRule_dst(), + dst_address_type = 'WHITELISTED', + amount_currency = 'USD', + amount_scope = 'SINGLE_TX', + amount = null, + period_sec = 1.337, + authorizers = [ + '' + ], + authorizers_count = 1.337, + authorization_groups = fireblocks_client.models.policy_rule_authorization_groups.PolicyRule_authorizationGroups( + logic = 'AND', + allow_operator_as_authorizer = True, + groups = [ + fireblocks_client.models.policy_rule_authorization_groups_groups_inner.PolicyRule_authorizationGroups_groups_inner( + th = 1.337, ) + ], ), + amount_aggregation = fireblocks_client.models.policy_rule_amount_aggregation.PolicyRule_amountAggregation( + src_transfer_peers = 'PER_SINGLE_MATCH', + dst_transfer_peers = 'PER_SINGLE_MATCH', ), + raw_message_signing = fireblocks_client.models.policy_rule_raw_message_signing.PolicyRule_rawMessageSigning( + algorithm = '', + derivation_path = fireblocks_client.models.policy_rule_raw_message_signing_derivation_path.PolicyRule_rawMessageSigning_derivationPath( + path = [ + 1.337 + ], ), ), + apply_for_approve = True, + apply_for_typed_message = True, + external_descriptor = '', ) + ], + check_result = fireblocks_client.models.policy_check_result.PolicyCheckResult( + errors = 1.337, + result = [ + fireblocks_client.models.policy_rule_check_result.PolicyRuleCheckResult( + index = 1.337, + status = 'ok', + errors = [ + fireblocks_client.models.policy_rule_error.PolicyRuleError( + error_message = '', + error_code = 1.337, + error_code_name = '', + error_field = 'operator', ) + ], ) + ], ), + metadata = fireblocks_client.models.policy_metadata.PolicyMetadata( + edited_by = '', + edited_at = '', + published_by = '', + published_at = '', ), + ) + """ + + def testPublishResult(self): + """Test PublishResult""" + # 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/test/test_read_abi_function.py b/test/test_read_abi_function.py new file mode 100644 index 00000000..3a02e72c --- /dev/null +++ b/test/test_read_abi_function.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.read_abi_function import ReadAbiFunction + + +class TestReadAbiFunction(unittest.TestCase): + """ReadAbiFunction unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ReadAbiFunction: + """Test ReadAbiFunction + 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 `ReadAbiFunction` + """ + model = ReadAbiFunction() + if include_optional: + return ReadAbiFunction( + state_mutability = 'pure', + outputs = [ + fireblocks_client.models.parameter.Parameter( + name = '_name', + description = 'The name of the token', + internal_type = 'string', + type = 'string', + components = [ + fireblocks_client.models.parameter.Parameter( + name = '_name', + description = 'The name of the token', + internal_type = 'string', + type = 'string', ) + ], ) + ], + name = '', + type = '', + inputs = [ + fireblocks_client.models.parameter_with_value.ParameterWithValue( + name = '_name', + description = 'The name of the token', + internal_type = 'string', + type = 'string', + components = [ + fireblocks_client.models.parameter.Parameter( + name = '_name', + description = 'The name of the token', + internal_type = 'string', + type = 'string', ) + ], + value = 'true', + function_value = null, ) + ], + description = '' + ) + else: + return ReadAbiFunction( + state_mutability = 'pure', + type = '', + inputs = [ + fireblocks_client.models.parameter_with_value.ParameterWithValue( + name = '_name', + description = 'The name of the token', + internal_type = 'string', + type = 'string', + components = [ + fireblocks_client.models.parameter.Parameter( + name = '_name', + description = 'The name of the token', + internal_type = 'string', + type = 'string', ) + ], + value = 'true', + function_value = null, ) + ], + ) + """ + + def testReadAbiFunction(self): + """Test ReadAbiFunction""" + # 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/test/test_read_call_function_dto.py b/test/test_read_call_function_dto.py new file mode 100644 index 00000000..d9ce8a23 --- /dev/null +++ b/test/test_read_call_function_dto.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.read_call_function_dto import ReadCallFunctionDto + + +class TestReadCallFunctionDto(unittest.TestCase): + """ReadCallFunctionDto unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ReadCallFunctionDto: + """Test ReadCallFunctionDto + 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 `ReadCallFunctionDto` + """ + model = ReadCallFunctionDto() + if include_optional: + return ReadCallFunctionDto( + abi_function = [{"inputs":[],"stateMutability":"view","type":"function","name":"decimals","outputs":[{"name":"","type":"uint8","internalType":"uint8"}]}] + ) + else: + return ReadCallFunctionDto( + abi_function = [{"inputs":[],"stateMutability":"view","type":"function","name":"decimals","outputs":[{"name":"","type":"uint8","internalType":"uint8"}]}], + ) + """ + + def testReadCallFunctionDto(self): + """Test ReadCallFunctionDto""" + # 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/test/test_redeem_funds_to_linked_dda_response.py b/test/test_redeem_funds_to_linked_dda_response.py new file mode 100644 index 00000000..61e54f59 --- /dev/null +++ b/test/test_redeem_funds_to_linked_dda_response.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.redeem_funds_to_linked_dda_response import ( + RedeemFundsToLinkedDDAResponse, +) + + +class TestRedeemFundsToLinkedDDAResponse(unittest.TestCase): + """RedeemFundsToLinkedDDAResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> RedeemFundsToLinkedDDAResponse: + """Test RedeemFundsToLinkedDDAResponse + 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 `RedeemFundsToLinkedDDAResponse` + """ + model = RedeemFundsToLinkedDDAResponse() + if include_optional: + return RedeemFundsToLinkedDDAResponse( + success = True + ) + else: + return RedeemFundsToLinkedDDAResponse( + success = True, + ) + """ + + def testRedeemFundsToLinkedDDAResponse(self): + """Test RedeemFundsToLinkedDDAResponse""" + # 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/test/test_register_new_asset_request.py b/test/test_register_new_asset_request.py new file mode 100644 index 00000000..5e7e308d --- /dev/null +++ b/test/test_register_new_asset_request.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.register_new_asset_request import RegisterNewAssetRequest + + +class TestRegisterNewAssetRequest(unittest.TestCase): + """RegisterNewAssetRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> RegisterNewAssetRequest: + """Test RegisterNewAssetRequest + 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 `RegisterNewAssetRequest` + """ + model = RegisterNewAssetRequest() + if include_optional: + return RegisterNewAssetRequest( + blockchain_id = '(ETH, ETH_TEST5, MATIC_POLYGON)', + address = '0xe7A9as1oa38bc4da0248s179E30aa94CcF453991', + symbol = 'TST3' + ) + else: + return RegisterNewAssetRequest( + blockchain_id = '(ETH, ETH_TEST5, MATIC_POLYGON)', + address = '0xe7A9as1oa38bc4da0248s179E30aa94CcF453991', + ) + """ + + def testRegisterNewAssetRequest(self): + """Test RegisterNewAssetRequest""" + # 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/test/test_related_transaction_dto.py b/test/test_related_transaction_dto.py new file mode 100644 index 00000000..15634edf --- /dev/null +++ b/test/test_related_transaction_dto.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.related_transaction_dto import RelatedTransactionDto + + +class TestRelatedTransactionDto(unittest.TestCase): + """RelatedTransactionDto unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> RelatedTransactionDto: + """Test RelatedTransactionDto + 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 `RelatedTransactionDto` + """ + model = RelatedTransactionDto() + if include_optional: + return RelatedTransactionDto( + tx_id = 'b70601f4-d7b1-4795-a8ee-b09cdb4r850d', + completed = True + ) + else: + return RelatedTransactionDto( + tx_id = 'b70601f4-d7b1-4795-a8ee-b09cdb4r850d', + completed = True, + ) + """ + + def testRelatedTransactionDto(self): + """Test RelatedTransactionDto""" + # 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/test/test_remove_collateral_request_body.py b/test/test_remove_collateral_request_body.py new file mode 100644 index 00000000..d9514bdd --- /dev/null +++ b/test/test_remove_collateral_request_body.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.remove_collateral_request_body import ( + RemoveCollateralRequestBody, +) + + +class TestRemoveCollateralRequestBody(unittest.TestCase): + """RemoveCollateralRequestBody unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> RemoveCollateralRequestBody: + """Test RemoveCollateralRequestBody + 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 `RemoveCollateralRequestBody` + """ + model = RemoveCollateralRequestBody() + if include_optional: + return RemoveCollateralRequestBody( + transaction_request = fireblocks_client.models.transaction_request.TransactionRequest( + operation = 'TRANSFER', + note = 'Ticket 123', + external_tx_id = '00000000-0000-0000-0000-000000000000', + asset_id = 'ETH', + source = fireblocks_client.models.source_transfer_peer_path.SourceTransferPeerPath( + type = 'VAULT_ACCOUNT', + sub_type = 'BINANCE', + id = '', + name = '', + wallet_id = '', ), + destination = fireblocks_client.models.destination_transfer_peer_path.DestinationTransferPeerPath( + type = 'VAULT_ACCOUNT', + id = '', + name = '', + wallet_id = '', + one_time_address = fireblocks_client.models.one_time_address.OneTimeAddress( + address = '', + tag = '', ), ), + destinations = [ + fireblocks_client.models.transaction_request_destination.TransactionRequestDestination( + amount = '', ) + ], + amount = null, + treat_as_gross_amount = False, + force_sweep = False, + fee_level = 'MEDIUM', + fee = null, + priority_fee = null, + fail_on_low_fee = True, + max_fee = '120', + gas_limit = null, + gas_price = null, + network_fee = null, + replace_tx_by_hash = '00000000-0000-0000-0000-000000000000', + extra_parameters = fireblocks_client.models.extra_parameters.extraParameters(), + customer_ref_id = 'abcdef', + travel_rule_message = fireblocks_client.models.travel_rule_create_transaction_request.TravelRuleCreateTransactionRequest( + originator_vas_pdid = '', + beneficiary_vas_pdid = '', + beneficiary_vas_pname = '', + transaction_blockchain_info = null, + originator = null, + beneficiary = null, + encrypted = '', + protocol = '', + skip_beneficiary_data_validation = True, + travel_rule_behavior = True, + originator_proof = null, + beneficiary_proof = null, + pii = null, ), + auto_staking = True, + network_staking = null, + cpu_staking = null, ), + is_dst_collateral = True + ) + else: + return RemoveCollateralRequestBody( + ) + """ + + def testRemoveCollateralRequestBody(self): + """Test RemoveCollateralRequestBody""" + # 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/test/test_rename_cosigner.py b/test/test_rename_cosigner.py new file mode 100644 index 00000000..f0f13aea --- /dev/null +++ b/test/test_rename_cosigner.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.rename_cosigner import RenameCosigner + + +class TestRenameCosigner(unittest.TestCase): + """RenameCosigner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> RenameCosigner: + """Test RenameCosigner + 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 `RenameCosigner` + """ + model = RenameCosigner() + if include_optional: + return RenameCosigner( + name = 'My Cosigner 1' + ) + else: + return RenameCosigner( + ) + """ + + def testRenameCosigner(self): + """Test RenameCosigner""" + # 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/test/test_rename_vault_account_response.py b/test/test_rename_vault_account_response.py new file mode 100644 index 00000000..2acf5104 --- /dev/null +++ b/test/test_rename_vault_account_response.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.rename_vault_account_response import ( + RenameVaultAccountResponse, +) + + +class TestRenameVaultAccountResponse(unittest.TestCase): + """RenameVaultAccountResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> RenameVaultAccountResponse: + """Test RenameVaultAccountResponse + 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 `RenameVaultAccountResponse` + """ + model = RenameVaultAccountResponse() + if include_optional: + return RenameVaultAccountResponse( + name = '', + id = '' + ) + else: + return RenameVaultAccountResponse( + ) + """ + + def testRenameVaultAccountResponse(self): + """Test RenameVaultAccountResponse""" + # 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/test/test_resend_transaction_webhooks_request.py b/test/test_resend_transaction_webhooks_request.py new file mode 100644 index 00000000..b96ae13e --- /dev/null +++ b/test/test_resend_transaction_webhooks_request.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.resend_transaction_webhooks_request import ( + ResendTransactionWebhooksRequest, +) + + +class TestResendTransactionWebhooksRequest(unittest.TestCase): + """ResendTransactionWebhooksRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ResendTransactionWebhooksRequest: + """Test ResendTransactionWebhooksRequest + 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 `ResendTransactionWebhooksRequest` + """ + model = ResendTransactionWebhooksRequest() + if include_optional: + return ResendTransactionWebhooksRequest( + resend_created = True, + resend_status_updated = True + ) + else: + return ResendTransactionWebhooksRequest( + ) + """ + + def testResendTransactionWebhooksRequest(self): + """Test ResendTransactionWebhooksRequest""" + # 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/test/test_resend_webhooks_by_transaction_id_response.py b/test/test_resend_webhooks_by_transaction_id_response.py new file mode 100644 index 00000000..a047ee7c --- /dev/null +++ b/test/test_resend_webhooks_by_transaction_id_response.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.resend_webhooks_by_transaction_id_response import ( + ResendWebhooksByTransactionIdResponse, +) + + +class TestResendWebhooksByTransactionIdResponse(unittest.TestCase): + """ResendWebhooksByTransactionIdResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ResendWebhooksByTransactionIdResponse: + """Test ResendWebhooksByTransactionIdResponse + 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 `ResendWebhooksByTransactionIdResponse` + """ + model = ResendWebhooksByTransactionIdResponse() + if include_optional: + return ResendWebhooksByTransactionIdResponse( + success = True + ) + else: + return ResendWebhooksByTransactionIdResponse( + success = True, + ) + """ + + def testResendWebhooksByTransactionIdResponse(self): + """Test ResendWebhooksByTransactionIdResponse""" + # 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/test/test_resend_webhooks_response.py b/test/test_resend_webhooks_response.py new file mode 100644 index 00000000..dece79f0 --- /dev/null +++ b/test/test_resend_webhooks_response.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.resend_webhooks_response import ResendWebhooksResponse + + +class TestResendWebhooksResponse(unittest.TestCase): + """ResendWebhooksResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ResendWebhooksResponse: + """Test ResendWebhooksResponse + 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 `ResendWebhooksResponse` + """ + model = ResendWebhooksResponse() + if include_optional: + return ResendWebhooksResponse( + messages_count = 1.337 + ) + else: + return ResendWebhooksResponse( + ) + """ + + def testResendWebhooksResponse(self): + """Test ResendWebhooksResponse""" + # 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/test/test_reset_device_api.py b/test/test_reset_device_api.py new file mode 100644 index 00000000..6fe8210f --- /dev/null +++ b/test/test_reset_device_api.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.api.reset_device_api import ResetDeviceApi + + +class TestResetDeviceApi(unittest.TestCase): + """ResetDeviceApi unit test stubs""" + + def setUp(self) -> None: + self.api = ResetDeviceApi() + + def tearDown(self) -> None: + pass + + def test_reset_device(self) -> None: + """Test case for reset_device + + Resets device + """ + pass + + +if __name__ == "__main__": + unittest.main() diff --git a/test/test_respond_to_connection_request.py b/test/test_respond_to_connection_request.py new file mode 100644 index 00000000..7d4e1cd3 --- /dev/null +++ b/test/test_respond_to_connection_request.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.respond_to_connection_request import ( + RespondToConnectionRequest, +) + + +class TestRespondToConnectionRequest(unittest.TestCase): + """RespondToConnectionRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> RespondToConnectionRequest: + """Test RespondToConnectionRequest + 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 `RespondToConnectionRequest` + """ + model = RespondToConnectionRequest() + if include_optional: + return RespondToConnectionRequest( + approve = True + ) + else: + return RespondToConnectionRequest( + approve = True, + ) + """ + + def testRespondToConnectionRequest(self): + """Test RespondToConnectionRequest""" + # 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/test/test_reward_info.py b/test/test_reward_info.py new file mode 100644 index 00000000..2ffc4e13 --- /dev/null +++ b/test/test_reward_info.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.reward_info import RewardInfo + + +class TestRewardInfo(unittest.TestCase): + """RewardInfo unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> RewardInfo: + """Test RewardInfo + 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 `RewardInfo` + """ + model = RewardInfo() + if include_optional: + return RewardInfo( + src_rewards = '', + dest_rewards = '' + ) + else: + return RewardInfo( + ) + """ + + def testRewardInfo(self): + """Test RewardInfo""" + # 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/test/test_rewards_info.py b/test/test_rewards_info.py new file mode 100644 index 00000000..4d3ea40b --- /dev/null +++ b/test/test_rewards_info.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.rewards_info import RewardsInfo + + +class TestRewardsInfo(unittest.TestCase): + """RewardsInfo unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> RewardsInfo: + """Test RewardsInfo + 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 `RewardsInfo` + """ + model = RewardsInfo() + if include_optional: + return RewardsInfo( + pending_rewards = '' + ) + else: + return RewardsInfo( + ) + """ + + def testRewardsInfo(self): + """Test RewardsInfo""" + # 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/test/test_screening_configurations_request.py b/test/test_screening_configurations_request.py new file mode 100644 index 00000000..2dea4022 --- /dev/null +++ b/test/test_screening_configurations_request.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.screening_configurations_request import ( + ScreeningConfigurationsRequest, +) + + +class TestScreeningConfigurationsRequest(unittest.TestCase): + """ScreeningConfigurationsRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ScreeningConfigurationsRequest: + """Test ScreeningConfigurationsRequest + 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 `ScreeningConfigurationsRequest` + """ + model = ScreeningConfigurationsRequest() + if include_optional: + return ScreeningConfigurationsRequest( + bypass_screening_during_service_outages = True, + inbound_transaction_delay = 1.337, + outbound_transaction_delay = 1.337 + ) + else: + return ScreeningConfigurationsRequest( + ) + """ + + def testScreeningConfigurationsRequest(self): + """Test ScreeningConfigurationsRequest""" + # 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/test/test_screening_operation_execution.py b/test/test_screening_operation_execution.py new file mode 100644 index 00000000..10ffc2ee --- /dev/null +++ b/test/test_screening_operation_execution.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.screening_operation_execution import ( + ScreeningOperationExecution, +) + + +class TestScreeningOperationExecution(unittest.TestCase): + """ScreeningOperationExecution unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ScreeningOperationExecution: + """Test ScreeningOperationExecution + 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 `ScreeningOperationExecution` + """ + model = ScreeningOperationExecution() + if include_optional: + return ScreeningOperationExecution( + output = fireblocks_client.models.screening_operation_execution_output.ScreeningOperationExecutionOutput( + verdicts = [ + fireblocks_client.models.screening_verdict.ScreeningVerdict( + verdict = 'PASSED', + execution_operation_id = '', + account = null, + asset_id = '', + amount = '', + matched_rule = fireblocks_client.models.screening_verdict_matched_rule.ScreeningVerdict_matchedRule( + action = '', + category = [ + '' + ], ), ) + ], ), + started_at = 1.337, + finished_at = 1.337, + failure = fireblocks_client.models.screening_operation_failure.ScreeningOperationFailure( + reason = 'AML_PROCESS_FAILED', + data = fireblocks_client.models.screening_operation_execution_output.ScreeningOperationExecutionOutput( + verdicts = [ + fireblocks_client.models.screening_verdict.ScreeningVerdict( + verdict = 'PASSED', + execution_operation_id = '', + account = null, + asset_id = '', + amount = '', + matched_rule = fireblocks_client.models.screening_verdict_matched_rule.ScreeningVerdict_matchedRule( + action = '', + category = [ + '' + ], ), ) + ], ), ) + ) + else: + return ScreeningOperationExecution( + started_at = 1.337, + ) + """ + + def testScreeningOperationExecution(self): + """Test ScreeningOperationExecution""" + # 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/test/test_screening_operation_execution_output.py b/test/test_screening_operation_execution_output.py new file mode 100644 index 00000000..999fb35f --- /dev/null +++ b/test/test_screening_operation_execution_output.py @@ -0,0 +1,81 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.screening_operation_execution_output import ( + ScreeningOperationExecutionOutput, +) + + +class TestScreeningOperationExecutionOutput(unittest.TestCase): + """ScreeningOperationExecutionOutput unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ScreeningOperationExecutionOutput: + """Test ScreeningOperationExecutionOutput + 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 `ScreeningOperationExecutionOutput` + """ + model = ScreeningOperationExecutionOutput() + if include_optional: + return ScreeningOperationExecutionOutput( + verdicts = [ + fireblocks_client.models.screening_verdict.ScreeningVerdict( + verdict = 'PASSED', + execution_operation_id = '', + account = null, + asset_id = '', + amount = '', + matched_rule = fireblocks_client.models.screening_verdict_matched_rule.ScreeningVerdict_matchedRule( + action = '', + category = [ + '' + ], ), ) + ] + ) + else: + return ScreeningOperationExecutionOutput( + verdicts = [ + fireblocks_client.models.screening_verdict.ScreeningVerdict( + verdict = 'PASSED', + execution_operation_id = '', + account = null, + asset_id = '', + amount = '', + matched_rule = fireblocks_client.models.screening_verdict_matched_rule.ScreeningVerdict_matchedRule( + action = '', + category = [ + '' + ], ), ) + ], + ) + """ + + def testScreeningOperationExecutionOutput(self): + """Test ScreeningOperationExecutionOutput""" + # 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/test/test_screening_operation_failure.py b/test/test_screening_operation_failure.py new file mode 100644 index 00000000..5754162d --- /dev/null +++ b/test/test_screening_operation_failure.py @@ -0,0 +1,71 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.screening_operation_failure import ( + ScreeningOperationFailure, +) + + +class TestScreeningOperationFailure(unittest.TestCase): + """ScreeningOperationFailure unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ScreeningOperationFailure: + """Test ScreeningOperationFailure + 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 `ScreeningOperationFailure` + """ + model = ScreeningOperationFailure() + if include_optional: + return ScreeningOperationFailure( + reason = 'AML_PROCESS_FAILED', + data = fireblocks_client.models.screening_operation_execution_output.ScreeningOperationExecutionOutput( + verdicts = [ + fireblocks_client.models.screening_verdict.ScreeningVerdict( + verdict = 'PASSED', + execution_operation_id = '', + account = null, + asset_id = '', + amount = '', + matched_rule = fireblocks_client.models.screening_verdict_matched_rule.ScreeningVerdict_matchedRule( + action = '', + category = [ + '' + ], ), ) + ], ) + ) + else: + return ScreeningOperationFailure( + reason = 'AML_PROCESS_FAILED', + ) + """ + + def testScreeningOperationFailure(self): + """Test ScreeningOperationFailure""" + # 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/test/test_screening_operation_type.py b/test/test_screening_operation_type.py new file mode 100644 index 00000000..d627ce14 --- /dev/null +++ b/test/test_screening_operation_type.py @@ -0,0 +1,36 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.screening_operation_type import ScreeningOperationType + + +class TestScreeningOperationType(unittest.TestCase): + """ScreeningOperationType unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testScreeningOperationType(self): + """Test ScreeningOperationType""" + # inst = ScreeningOperationType() + + +if __name__ == "__main__": + unittest.main() diff --git a/test/test_screening_policy_response.py b/test/test_screening_policy_response.py new file mode 100644 index 00000000..51443801 --- /dev/null +++ b/test/test_screening_policy_response.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.screening_policy_response import ScreeningPolicyResponse + + +class TestScreeningPolicyResponse(unittest.TestCase): + """ScreeningPolicyResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ScreeningPolicyResponse: + """Test ScreeningPolicyResponse + 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 `ScreeningPolicyResponse` + """ + model = ScreeningPolicyResponse() + if include_optional: + return ScreeningPolicyResponse( + policy = fireblocks_client.models.travel_rule_policy_rule_response.TravelRulePolicyRuleResponse( + source_type = '', + source_sub_type = '', + dest_type = '', + dest_sub_type = '', + dest_address = '', + source_id = '', + dest_id = '', + asset = '', + base_asset = '', + amount = 1.337, + amount_usd = 1.337, + network_protocol = '', + operation = '', + action = 'SCREEN', ), + policy_status = '', + is_default = True, + create_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + last_update = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') + ) + else: + return ScreeningPolicyResponse( + policy = fireblocks_client.models.travel_rule_policy_rule_response.TravelRulePolicyRuleResponse( + source_type = '', + source_sub_type = '', + dest_type = '', + dest_sub_type = '', + dest_address = '', + source_id = '', + dest_id = '', + asset = '', + base_asset = '', + amount = 1.337, + amount_usd = 1.337, + network_protocol = '', + operation = '', + action = 'SCREEN', ), + is_default = True, + last_update = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + ) + """ + + def testScreeningPolicyResponse(self): + """Test ScreeningPolicyResponse""" + # 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/test/test_screening_provider_rules_configuration_response.py b/test/test_screening_provider_rules_configuration_response.py new file mode 100644 index 00000000..a380282d --- /dev/null +++ b/test/test_screening_provider_rules_configuration_response.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.screening_provider_rules_configuration_response import ( + ScreeningProviderRulesConfigurationResponse, +) + + +class TestScreeningProviderRulesConfigurationResponse(unittest.TestCase): + """ScreeningProviderRulesConfigurationResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance( + self, include_optional + ) -> ScreeningProviderRulesConfigurationResponse: + """Test ScreeningProviderRulesConfigurationResponse + 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 `ScreeningProviderRulesConfigurationResponse` + """ + model = ScreeningProviderRulesConfigurationResponse() + if include_optional: + return ScreeningProviderRulesConfigurationResponse( + direction = 'INBOUND', + status = 'COMPLETED', + amount_usd = 1.337, + amount = 1.337, + asset = '', + action = 'ACCEPT' + ) + else: + return ScreeningProviderRulesConfigurationResponse( + action = 'ACCEPT', + ) + """ + + def testScreeningProviderRulesConfigurationResponse(self): + """Test ScreeningProviderRulesConfigurationResponse""" + # 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/test/test_screening_update_configurations_request.py b/test/test_screening_update_configurations_request.py new file mode 100644 index 00000000..72396f7f --- /dev/null +++ b/test/test_screening_update_configurations_request.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.screening_update_configurations_request import ( + ScreeningUpdateConfigurationsRequest, +) + + +class TestScreeningUpdateConfigurationsRequest(unittest.TestCase): + """ScreeningUpdateConfigurationsRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ScreeningUpdateConfigurationsRequest: + """Test ScreeningUpdateConfigurationsRequest + 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 `ScreeningUpdateConfigurationsRequest` + """ + model = ScreeningUpdateConfigurationsRequest() + if include_optional: + return ScreeningUpdateConfigurationsRequest( + disable_bypass = True, + disable_unfreeze = True + ) + else: + return ScreeningUpdateConfigurationsRequest( + ) + """ + + def testScreeningUpdateConfigurationsRequest(self): + """Test ScreeningUpdateConfigurationsRequest""" + # 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/test/test_screening_validation_failure.py b/test/test_screening_validation_failure.py new file mode 100644 index 00000000..4e1567e8 --- /dev/null +++ b/test/test_screening_validation_failure.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.screening_validation_failure import ( + ScreeningValidationFailure, +) + + +class TestScreeningValidationFailure(unittest.TestCase): + """ScreeningValidationFailure unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ScreeningValidationFailure: + """Test ScreeningValidationFailure + 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 `ScreeningValidationFailure` + """ + model = ScreeningValidationFailure() + if include_optional: + return ScreeningValidationFailure( + reason = 'SCREENING_DISABLED_IN_TENANT', + data = { + 'key' : null + } + ) + else: + return ScreeningValidationFailure( + reason = 'SCREENING_DISABLED_IN_TENANT', + ) + """ + + def testScreeningValidationFailure(self): + """Test ScreeningValidationFailure""" + # 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/test/test_screening_verdict.py b/test/test_screening_verdict.py new file mode 100644 index 00000000..391bace5 --- /dev/null +++ b/test/test_screening_verdict.py @@ -0,0 +1,68 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.screening_verdict import ScreeningVerdict + + +class TestScreeningVerdict(unittest.TestCase): + """ScreeningVerdict unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ScreeningVerdict: + """Test ScreeningVerdict + 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 `ScreeningVerdict` + """ + model = ScreeningVerdict() + if include_optional: + return ScreeningVerdict( + verdict = 'PASSED', + execution_operation_id = '', + account = None, + asset_id = '', + amount = '', + matched_rule = fireblocks_client.models.screening_verdict_matched_rule.ScreeningVerdict_matchedRule( + action = '', + category = [ + '' + ], ) + ) + else: + return ScreeningVerdict( + verdict = 'PASSED', + execution_operation_id = '', + account = None, + asset_id = '', + amount = '', + ) + """ + + def testScreeningVerdict(self): + """Test ScreeningVerdict""" + # 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/test/test_screening_verdict_matched_rule.py b/test/test_screening_verdict_matched_rule.py new file mode 100644 index 00000000..04f1b803 --- /dev/null +++ b/test/test_screening_verdict_matched_rule.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.screening_verdict_matched_rule import ( + ScreeningVerdictMatchedRule, +) + + +class TestScreeningVerdictMatchedRule(unittest.TestCase): + """ScreeningVerdictMatchedRule unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ScreeningVerdictMatchedRule: + """Test ScreeningVerdictMatchedRule + 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 `ScreeningVerdictMatchedRule` + """ + model = ScreeningVerdictMatchedRule() + if include_optional: + return ScreeningVerdictMatchedRule( + action = '', + category = [ + '' + ] + ) + else: + return ScreeningVerdictMatchedRule( + ) + """ + + def testScreeningVerdictMatchedRule(self): + """Test ScreeningVerdictMatchedRule""" + # 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/test/test_session_dto.py b/test/test_session_dto.py new file mode 100644 index 00000000..4d878754 --- /dev/null +++ b/test/test_session_dto.py @@ -0,0 +1,79 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.session_dto import SessionDTO + + +class TestSessionDTO(unittest.TestCase): + """SessionDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SessionDTO: + """Test SessionDTO + 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 `SessionDTO` + """ + model = SessionDTO() + if include_optional: + return SessionDTO( + id = '4e9e7051-f3b2-48e9-8ee6-b12492552657', + user_id = '', + session_metadata = fireblocks_client.models.session_metadata.SessionMetadata( + app_url = '', + app_name = '', + app_description = '', + app_icon = '', ), + vault_account_id = 1, + fee_level = 'MEDIUM', + chain_ids = ["ETH","ETH_TEST","SOL"], + connection_type = 'WalletConnect', + connection_method = 'API', + creation_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') + ) + else: + return SessionDTO( + id = '4e9e7051-f3b2-48e9-8ee6-b12492552657', + user_id = '', + session_metadata = fireblocks_client.models.session_metadata.SessionMetadata( + app_url = '', + app_name = '', + app_description = '', + app_icon = '', ), + vault_account_id = 1, + fee_level = 'MEDIUM', + chain_ids = ["ETH","ETH_TEST","SOL"], + connection_type = 'WalletConnect', + connection_method = 'API', + creation_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + ) + """ + + def testSessionDTO(self): + """Test SessionDTO""" + # 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/test/test_session_metadata.py b/test/test_session_metadata.py new file mode 100644 index 00000000..ef9d1d13 --- /dev/null +++ b/test/test_session_metadata.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.session_metadata import SessionMetadata + + +class TestSessionMetadata(unittest.TestCase): + """SessionMetadata unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SessionMetadata: + """Test SessionMetadata + 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 `SessionMetadata` + """ + model = SessionMetadata() + if include_optional: + return SessionMetadata( + app_url = '', + app_name = '', + app_description = '', + app_icon = '' + ) + else: + return SessionMetadata( + app_url = '', + ) + """ + + def testSessionMetadata(self): + """Test SessionMetadata""" + # 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/test/test_set_admin_quorum_threshold_request.py b/test/test_set_admin_quorum_threshold_request.py new file mode 100644 index 00000000..6cc7422e --- /dev/null +++ b/test/test_set_admin_quorum_threshold_request.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.set_admin_quorum_threshold_request import ( + SetAdminQuorumThresholdRequest, +) + + +class TestSetAdminQuorumThresholdRequest(unittest.TestCase): + """SetAdminQuorumThresholdRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SetAdminQuorumThresholdRequest: + """Test SetAdminQuorumThresholdRequest + 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 `SetAdminQuorumThresholdRequest` + """ + model = SetAdminQuorumThresholdRequest() + if include_optional: + return SetAdminQuorumThresholdRequest( + admin_quorum_threshold = 1.337 + ) + else: + return SetAdminQuorumThresholdRequest( + ) + """ + + def testSetAdminQuorumThresholdRequest(self): + """Test SetAdminQuorumThresholdRequest""" + # 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/test/test_set_admin_quorum_threshold_response.py b/test/test_set_admin_quorum_threshold_response.py new file mode 100644 index 00000000..680d50fb --- /dev/null +++ b/test/test_set_admin_quorum_threshold_response.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.set_admin_quorum_threshold_response import ( + SetAdminQuorumThresholdResponse, +) + + +class TestSetAdminQuorumThresholdResponse(unittest.TestCase): + """SetAdminQuorumThresholdResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SetAdminQuorumThresholdResponse: + """Test SetAdminQuorumThresholdResponse + 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 `SetAdminQuorumThresholdResponse` + """ + model = SetAdminQuorumThresholdResponse() + if include_optional: + return SetAdminQuorumThresholdResponse( + message = 'Admin quorum threshold request sent successfully.' + ) + else: + return SetAdminQuorumThresholdResponse( + message = 'Admin quorum threshold request sent successfully.', + ) + """ + + def testSetAdminQuorumThresholdResponse(self): + """Test SetAdminQuorumThresholdResponse""" + # 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/test/test_set_auto_fuel_request.py b/test/test_set_auto_fuel_request.py new file mode 100644 index 00000000..a17461fc --- /dev/null +++ b/test/test_set_auto_fuel_request.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.set_auto_fuel_request import SetAutoFuelRequest + + +class TestSetAutoFuelRequest(unittest.TestCase): + """SetAutoFuelRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SetAutoFuelRequest: + """Test SetAutoFuelRequest + 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 `SetAutoFuelRequest` + """ + model = SetAutoFuelRequest() + if include_optional: + return SetAutoFuelRequest( + auto_fuel = True + ) + else: + return SetAutoFuelRequest( + ) + """ + + def testSetAutoFuelRequest(self): + """Test SetAutoFuelRequest""" + # 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/test/test_set_confirmations_threshold_request.py b/test/test_set_confirmations_threshold_request.py new file mode 100644 index 00000000..1f663c64 --- /dev/null +++ b/test/test_set_confirmations_threshold_request.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.set_confirmations_threshold_request import ( + SetConfirmationsThresholdRequest, +) + + +class TestSetConfirmationsThresholdRequest(unittest.TestCase): + """SetConfirmationsThresholdRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SetConfirmationsThresholdRequest: + """Test SetConfirmationsThresholdRequest + 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 `SetConfirmationsThresholdRequest` + """ + model = SetConfirmationsThresholdRequest() + if include_optional: + return SetConfirmationsThresholdRequest( + num_of_confirmations = 1.337 + ) + else: + return SetConfirmationsThresholdRequest( + ) + """ + + def testSetConfirmationsThresholdRequest(self): + """Test SetConfirmationsThresholdRequest""" + # 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/test/test_set_confirmations_threshold_response.py b/test/test_set_confirmations_threshold_response.py new file mode 100644 index 00000000..9169d75a --- /dev/null +++ b/test/test_set_confirmations_threshold_response.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.set_confirmations_threshold_response import ( + SetConfirmationsThresholdResponse, +) + + +class TestSetConfirmationsThresholdResponse(unittest.TestCase): + """SetConfirmationsThresholdResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SetConfirmationsThresholdResponse: + """Test SetConfirmationsThresholdResponse + 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 `SetConfirmationsThresholdResponse` + """ + model = SetConfirmationsThresholdResponse() + if include_optional: + return SetConfirmationsThresholdResponse( + success = True, + transactions = [ + '' + ] + ) + else: + return SetConfirmationsThresholdResponse( + ) + """ + + def testSetConfirmationsThresholdResponse(self): + """Test SetConfirmationsThresholdResponse""" + # 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/test/test_set_customer_ref_id_for_address_request.py b/test/test_set_customer_ref_id_for_address_request.py new file mode 100644 index 00000000..9ed28136 --- /dev/null +++ b/test/test_set_customer_ref_id_for_address_request.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.set_customer_ref_id_for_address_request import ( + SetCustomerRefIdForAddressRequest, +) + + +class TestSetCustomerRefIdForAddressRequest(unittest.TestCase): + """SetCustomerRefIdForAddressRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SetCustomerRefIdForAddressRequest: + """Test SetCustomerRefIdForAddressRequest + 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 `SetCustomerRefIdForAddressRequest` + """ + model = SetCustomerRefIdForAddressRequest() + if include_optional: + return SetCustomerRefIdForAddressRequest( + customer_ref_id = '' + ) + else: + return SetCustomerRefIdForAddressRequest( + ) + """ + + def testSetCustomerRefIdForAddressRequest(self): + """Test SetCustomerRefIdForAddressRequest""" + # 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/test/test_set_customer_ref_id_request.py b/test/test_set_customer_ref_id_request.py new file mode 100644 index 00000000..9ae0b488 --- /dev/null +++ b/test/test_set_customer_ref_id_request.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.set_customer_ref_id_request import SetCustomerRefIdRequest + + +class TestSetCustomerRefIdRequest(unittest.TestCase): + """SetCustomerRefIdRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SetCustomerRefIdRequest: + """Test SetCustomerRefIdRequest + 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 `SetCustomerRefIdRequest` + """ + model = SetCustomerRefIdRequest() + if include_optional: + return SetCustomerRefIdRequest( + customer_ref_id = '' + ) + else: + return SetCustomerRefIdRequest( + ) + """ + + def testSetCustomerRefIdRequest(self): + """Test SetCustomerRefIdRequest""" + # 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/test/test_set_network_id_discoverability_request.py b/test/test_set_network_id_discoverability_request.py new file mode 100644 index 00000000..2016b30a --- /dev/null +++ b/test/test_set_network_id_discoverability_request.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.set_network_id_discoverability_request import ( + SetNetworkIdDiscoverabilityRequest, +) + + +class TestSetNetworkIdDiscoverabilityRequest(unittest.TestCase): + """SetNetworkIdDiscoverabilityRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SetNetworkIdDiscoverabilityRequest: + """Test SetNetworkIdDiscoverabilityRequest + 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 `SetNetworkIdDiscoverabilityRequest` + """ + model = SetNetworkIdDiscoverabilityRequest() + if include_optional: + return SetNetworkIdDiscoverabilityRequest( + is_discoverable = True + ) + else: + return SetNetworkIdDiscoverabilityRequest( + is_discoverable = True, + ) + """ + + def testSetNetworkIdDiscoverabilityRequest(self): + """Test SetNetworkIdDiscoverabilityRequest""" + # 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/test/test_set_network_id_name_request.py b/test/test_set_network_id_name_request.py new file mode 100644 index 00000000..62b4a52f --- /dev/null +++ b/test/test_set_network_id_name_request.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.set_network_id_name_request import SetNetworkIdNameRequest + + +class TestSetNetworkIdNameRequest(unittest.TestCase): + """SetNetworkIdNameRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SetNetworkIdNameRequest: + """Test SetNetworkIdNameRequest + 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 `SetNetworkIdNameRequest` + """ + model = SetNetworkIdNameRequest() + if include_optional: + return SetNetworkIdNameRequest( + name = '' + ) + else: + return SetNetworkIdNameRequest( + name = '', + ) + """ + + def testSetNetworkIdNameRequest(self): + """Test SetNetworkIdNameRequest""" + # 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/test/test_set_network_id_response.py b/test/test_set_network_id_response.py new file mode 100644 index 00000000..803b2749 --- /dev/null +++ b/test/test_set_network_id_response.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.set_network_id_response import SetNetworkIdResponse + + +class TestSetNetworkIdResponse(unittest.TestCase): + """SetNetworkIdResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SetNetworkIdResponse: + """Test SetNetworkIdResponse + 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 `SetNetworkIdResponse` + """ + model = SetNetworkIdResponse() + if include_optional: + return SetNetworkIdResponse( + success = True + ) + else: + return SetNetworkIdResponse( + success = True, + ) + """ + + def testSetNetworkIdResponse(self): + """Test SetNetworkIdResponse""" + # 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/test/test_set_network_id_routing_policy_request.py b/test/test_set_network_id_routing_policy_request.py new file mode 100644 index 00000000..2c3c1e41 --- /dev/null +++ b/test/test_set_network_id_routing_policy_request.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.set_network_id_routing_policy_request import ( + SetNetworkIdRoutingPolicyRequest, +) + + +class TestSetNetworkIdRoutingPolicyRequest(unittest.TestCase): + """SetNetworkIdRoutingPolicyRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SetNetworkIdRoutingPolicyRequest: + """Test SetNetworkIdRoutingPolicyRequest + 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 `SetNetworkIdRoutingPolicyRequest` + """ + model = SetNetworkIdRoutingPolicyRequest() + if include_optional: + return SetNetworkIdRoutingPolicyRequest( + routing_policy = { + 'key' : null + } + ) + else: + return SetNetworkIdRoutingPolicyRequest( + routing_policy = { + 'key' : null + }, + ) + """ + + def testSetNetworkIdRoutingPolicyRequest(self): + """Test SetNetworkIdRoutingPolicyRequest""" + # 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/test/test_set_ota_status_request.py b/test/test_set_ota_status_request.py new file mode 100644 index 00000000..d2720ec4 --- /dev/null +++ b/test/test_set_ota_status_request.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.set_ota_status_request import SetOtaStatusRequest + + +class TestSetOtaStatusRequest(unittest.TestCase): + """SetOtaStatusRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SetOtaStatusRequest: + """Test SetOtaStatusRequest + 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 `SetOtaStatusRequest` + """ + model = SetOtaStatusRequest() + if include_optional: + return SetOtaStatusRequest( + enabled = True + ) + else: + return SetOtaStatusRequest( + ) + """ + + def testSetOtaStatusRequest(self): + """Test SetOtaStatusRequest""" + # 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/test/test_set_ota_status_response.py b/test/test_set_ota_status_response.py new file mode 100644 index 00000000..bffbc713 --- /dev/null +++ b/test/test_set_ota_status_response.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.set_ota_status_response import SetOtaStatusResponse + + +class TestSetOtaStatusResponse(unittest.TestCase): + """SetOtaStatusResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SetOtaStatusResponse: + """Test SetOtaStatusResponse + 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 `SetOtaStatusResponse` + """ + model = SetOtaStatusResponse() + if include_optional: + return SetOtaStatusResponse( + message = 'No change needed. The current status is false' + ) + else: + return SetOtaStatusResponse( + ) + """ + + def testSetOtaStatusResponse(self): + """Test SetOtaStatusResponse""" + # 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/test/test_set_ota_status_response_one_of.py b/test/test_set_ota_status_response_one_of.py new file mode 100644 index 00000000..447630fe --- /dev/null +++ b/test/test_set_ota_status_response_one_of.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.set_ota_status_response_one_of import ( + SetOtaStatusResponseOneOf, +) + + +class TestSetOtaStatusResponseOneOf(unittest.TestCase): + """SetOtaStatusResponseOneOf unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SetOtaStatusResponseOneOf: + """Test SetOtaStatusResponseOneOf + 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 `SetOtaStatusResponseOneOf` + """ + model = SetOtaStatusResponseOneOf() + if include_optional: + return SetOtaStatusResponseOneOf( + message = 'No change needed. The current status is false' + ) + else: + return SetOtaStatusResponseOneOf( + ) + """ + + def testSetOtaStatusResponseOneOf(self): + """Test SetOtaStatusResponseOneOf""" + # 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/test/test_set_routing_policy_request.py b/test/test_set_routing_policy_request.py new file mode 100644 index 00000000..0b710918 --- /dev/null +++ b/test/test_set_routing_policy_request.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.set_routing_policy_request import SetRoutingPolicyRequest + + +class TestSetRoutingPolicyRequest(unittest.TestCase): + """SetRoutingPolicyRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SetRoutingPolicyRequest: + """Test SetRoutingPolicyRequest + 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 `SetRoutingPolicyRequest` + """ + model = SetRoutingPolicyRequest() + if include_optional: + return SetRoutingPolicyRequest( + routing_policy = { + 'key' : null + } + ) + else: + return SetRoutingPolicyRequest( + routing_policy = { + 'key' : null + }, + ) + """ + + def testSetRoutingPolicyRequest(self): + """Test SetRoutingPolicyRequest""" + # 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/test/test_set_routing_policy_response.py b/test/test_set_routing_policy_response.py new file mode 100644 index 00000000..6e6e0f23 --- /dev/null +++ b/test/test_set_routing_policy_response.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.set_routing_policy_response import ( + SetRoutingPolicyResponse, +) + + +class TestSetRoutingPolicyResponse(unittest.TestCase): + """SetRoutingPolicyResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SetRoutingPolicyResponse: + """Test SetRoutingPolicyResponse + 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 `SetRoutingPolicyResponse` + """ + model = SetRoutingPolicyResponse() + if include_optional: + return SetRoutingPolicyResponse( + success = True + ) + else: + return SetRoutingPolicyResponse( + success = True, + ) + """ + + def testSetRoutingPolicyResponse(self): + """Test SetRoutingPolicyResponse""" + # 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/test/test_settlement_request_body.py b/test/test_settlement_request_body.py new file mode 100644 index 00000000..b4153e14 --- /dev/null +++ b/test/test_settlement_request_body.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.settlement_request_body import SettlementRequestBody + + +class TestSettlementRequestBody(unittest.TestCase): + """SettlementRequestBody unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SettlementRequestBody: + """Test SettlementRequestBody + 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 `SettlementRequestBody` + """ + model = SettlementRequestBody() + if include_optional: + return SettlementRequestBody( + main_exchange_account_id = '' + ) + else: + return SettlementRequestBody( + ) + """ + + def testSettlementRequestBody(self): + """Test SettlementRequestBody""" + # 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/test/test_settlement_response.py b/test/test_settlement_response.py new file mode 100644 index 00000000..a37266c6 --- /dev/null +++ b/test/test_settlement_response.py @@ -0,0 +1,73 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.settlement_response import SettlementResponse + + +class TestSettlementResponse(unittest.TestCase): + """SettlementResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SettlementResponse: + """Test SettlementResponse + 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 `SettlementResponse` + """ + model = SettlementResponse() + if include_optional: + return SettlementResponse( + id = '', + initiator = '', + exchange_reply = '', + fireblocks_initiated_transactions = None, + exchange_requested_transactions = fireblocks_client.models.exchange_settlement_transactions_response.ExchangeSettlementTransactionsResponse( + to_exchange = [ + fireblocks_client.models.to_exchange_transaction.ToExchangeTransaction( + asset_id = '', + amount = '', + dst_address = '', + dst_tag = '', ) + ], + to_collateral = [ + fireblocks_client.models.to_collateral_transaction.ToCollateralTransaction( + asset = '', + amount = '', + src_address = '', + src_tag = '', + fee = '', ) + ], ) + ) + else: + return SettlementResponse( + ) + """ + + def testSettlementResponse(self): + """Test SettlementResponse""" + # 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/test/test_signed_message.py b/test/test_signed_message.py new file mode 100644 index 00000000..f7eb0a78 --- /dev/null +++ b/test/test_signed_message.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.signed_message import SignedMessage + + +class TestSignedMessage(unittest.TestCase): + """SignedMessage unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SignedMessage: + """Test SignedMessage + 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 `SignedMessage` + """ + model = SignedMessage() + if include_optional: + return SignedMessage( + content = '', + algorithm = 'MPC_ECDSA_SECP256K1', + derivation_path = [ + 1.337 + ], + signature = fireblocks_client.models.signed_message_signature.SignedMessage_signature( + full_sig = '', + r = '', + s = '', + v = 1.337, ), + public_key = '' + ) + else: + return SignedMessage( + ) + """ + + def testSignedMessage(self): + """Test SignedMessage""" + # 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/test/test_signed_message_signature.py b/test/test_signed_message_signature.py new file mode 100644 index 00000000..4873d54d --- /dev/null +++ b/test/test_signed_message_signature.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.signed_message_signature import SignedMessageSignature + + +class TestSignedMessageSignature(unittest.TestCase): + """SignedMessageSignature unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SignedMessageSignature: + """Test SignedMessageSignature + 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 `SignedMessageSignature` + """ + model = SignedMessageSignature() + if include_optional: + return SignedMessageSignature( + full_sig = '', + r = '', + s = '', + v = 1.337 + ) + else: + return SignedMessageSignature( + ) + """ + + def testSignedMessageSignature(self): + """Test SignedMessageSignature""" + # 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/test/test_smart_transfer_api.py b/test/test_smart_transfer_api.py new file mode 100644 index 00000000..2040b827 --- /dev/null +++ b/test/test_smart_transfer_api.py @@ -0,0 +1,144 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.api.smart_transfer_api import SmartTransferApi + + +class TestSmartTransferApi(unittest.TestCase): + """SmartTransferApi unit test stubs""" + + def setUp(self) -> None: + self.api = SmartTransferApi() + + def tearDown(self) -> None: + pass + + def test_cancel_ticket(self) -> None: + """Test case for cancel_ticket + + Cancel Ticket + """ + pass + + def test_create_ticket(self) -> None: + """Test case for create_ticket + + Create Ticket + """ + pass + + def test_create_ticket_term(self) -> None: + """Test case for create_ticket_term + + Create leg (term) + """ + pass + + def test_find_ticket_by_id(self) -> None: + """Test case for find_ticket_by_id + + Search Tickets by ID + """ + pass + + def test_find_ticket_term_by_id(self) -> None: + """Test case for find_ticket_term_by_id + + Search ticket by leg (term) ID + """ + pass + + def test_fulfill_ticket(self) -> None: + """Test case for fulfill_ticket + + Fund ticket manually + """ + pass + + def test_fund_ticket_term(self) -> None: + """Test case for fund_ticket_term + + Define funding source + """ + pass + + def test_get_smart_transfer_user_groups(self) -> None: + """Test case for get_smart_transfer_user_groups + + Get user group + """ + pass + + def test_manually_fund_ticket_term(self) -> None: + """Test case for manually_fund_ticket_term + + Manually add term transaction + """ + pass + + def test_remove_ticket_term(self) -> None: + """Test case for remove_ticket_term + + Delete ticket leg (term) + """ + pass + + def test_search_tickets(self) -> None: + """Test case for search_tickets + + Find Ticket + """ + pass + + def test_set_external_ref_id(self) -> None: + """Test case for set_external_ref_id + + Add external ref. ID + """ + pass + + def test_set_ticket_expiration(self) -> None: + """Test case for set_ticket_expiration + + Set expiration + """ + pass + + def test_set_user_groups(self) -> None: + """Test case for set_user_groups + + Set user group + """ + pass + + def test_submit_ticket(self) -> None: + """Test case for submit_ticket + + Submit ticket + """ + pass + + def test_update_ticket_term(self) -> None: + """Test case for update_ticket_term + + Update ticket leg (term) + """ + pass + + +if __name__ == "__main__": + unittest.main() diff --git a/test/test_smart_transfer_bad_request_response.py b/test/test_smart_transfer_bad_request_response.py new file mode 100644 index 00000000..b63b3daa --- /dev/null +++ b/test/test_smart_transfer_bad_request_response.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.smart_transfer_bad_request_response import ( + SmartTransferBadRequestResponse, +) + + +class TestSmartTransferBadRequestResponse(unittest.TestCase): + """SmartTransferBadRequestResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SmartTransferBadRequestResponse: + """Test SmartTransferBadRequestResponse + 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 `SmartTransferBadRequestResponse` + """ + model = SmartTransferBadRequestResponse() + if include_optional: + return SmartTransferBadRequestResponse( + message = 'Your request contains invalid data', + code = '2e7a7a5d-c85c-4ea5-9adf-668cba8b4eb4' + ) + else: + return SmartTransferBadRequestResponse( + message = 'Your request contains invalid data', + code = '2e7a7a5d-c85c-4ea5-9adf-668cba8b4eb4', + ) + """ + + def testSmartTransferBadRequestResponse(self): + """Test SmartTransferBadRequestResponse""" + # 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/test/test_smart_transfer_create_ticket.py b/test/test_smart_transfer_create_ticket.py new file mode 100644 index 00000000..554f584b --- /dev/null +++ b/test/test_smart_transfer_create_ticket.py @@ -0,0 +1,70 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.smart_transfer_create_ticket import ( + SmartTransferCreateTicket, +) + + +class TestSmartTransferCreateTicket(unittest.TestCase): + """SmartTransferCreateTicket unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SmartTransferCreateTicket: + """Test SmartTransferCreateTicket + 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 `SmartTransferCreateTicket` + """ + model = SmartTransferCreateTicket() + if include_optional: + return SmartTransferCreateTicket( + created_by_network_id = '', + type = 'ASYNC', + expires_in = 1, + terms = [ + fireblocks_client.models.smart_transfer_create_ticket_term.SmartTransferCreateTicketTerm( + asset = 'BTC', + amount = 133.789161216184, + from_network_id = '947c6115-1f5f-4fb4-9fd6-a1f9dee14670', + to_network_id = '5d009697-c29b-48e0-aff8-1f4305d19dc2', ) + ], + external_ref_id = '', + note = '', + submit = True + ) + else: + return SmartTransferCreateTicket( + created_by_network_id = '', + type = 'ASYNC', + ) + """ + + def testSmartTransferCreateTicket(self): + """Test SmartTransferCreateTicket""" + # 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/test/test_smart_transfer_create_ticket_term.py b/test/test_smart_transfer_create_ticket_term.py new file mode 100644 index 00000000..4501c8e4 --- /dev/null +++ b/test/test_smart_transfer_create_ticket_term.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.smart_transfer_create_ticket_term import ( + SmartTransferCreateTicketTerm, +) + + +class TestSmartTransferCreateTicketTerm(unittest.TestCase): + """SmartTransferCreateTicketTerm unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SmartTransferCreateTicketTerm: + """Test SmartTransferCreateTicketTerm + 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 `SmartTransferCreateTicketTerm` + """ + model = SmartTransferCreateTicketTerm() + if include_optional: + return SmartTransferCreateTicketTerm( + asset = 'BTC', + amount = 133.789161216184, + from_network_id = '947c6115-1f5f-4fb4-9fd6-a1f9dee14670', + to_network_id = '5d009697-c29b-48e0-aff8-1f4305d19dc2' + ) + else: + return SmartTransferCreateTicketTerm( + asset = 'BTC', + amount = 133.789161216184, + from_network_id = '947c6115-1f5f-4fb4-9fd6-a1f9dee14670', + to_network_id = '5d009697-c29b-48e0-aff8-1f4305d19dc2', + ) + """ + + def testSmartTransferCreateTicketTerm(self): + """Test SmartTransferCreateTicketTerm""" + # 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/test/test_smart_transfer_forbidden_response.py b/test/test_smart_transfer_forbidden_response.py new file mode 100644 index 00000000..5df9701e --- /dev/null +++ b/test/test_smart_transfer_forbidden_response.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.smart_transfer_forbidden_response import ( + SmartTransferForbiddenResponse, +) + + +class TestSmartTransferForbiddenResponse(unittest.TestCase): + """SmartTransferForbiddenResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SmartTransferForbiddenResponse: + """Test SmartTransferForbiddenResponse + 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 `SmartTransferForbiddenResponse` + """ + model = SmartTransferForbiddenResponse() + if include_optional: + return SmartTransferForbiddenResponse( + message = 'You do not have permission to execute this action', + code = '3002' + ) + else: + return SmartTransferForbiddenResponse( + message = 'You do not have permission to execute this action', + code = '3002', + ) + """ + + def testSmartTransferForbiddenResponse(self): + """Test SmartTransferForbiddenResponse""" + # 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/test/test_smart_transfer_fund_term.py b/test/test_smart_transfer_fund_term.py new file mode 100644 index 00000000..0b5dd90d --- /dev/null +++ b/test/test_smart_transfer_fund_term.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.smart_transfer_fund_term import SmartTransferFundTerm + + +class TestSmartTransferFundTerm(unittest.TestCase): + """SmartTransferFundTerm unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SmartTransferFundTerm: + """Test SmartTransferFundTerm + 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 `SmartTransferFundTerm` + """ + model = SmartTransferFundTerm() + if include_optional: + return SmartTransferFundTerm( + asset = 'BTC', + amount = '133.789161216184', + network_connection_id = '0805153d-e77d-4f9b-8818-e507eeb2d122', + src_id = '2', + src_type = 'VAULT_ACCOUNT', + fee = '0.001', + fee_level = 'MEDIUM', + note = 'Transaction note' + ) + else: + return SmartTransferFundTerm( + asset = 'BTC', + amount = '133.789161216184', + network_connection_id = '0805153d-e77d-4f9b-8818-e507eeb2d122', + src_id = '2', + src_type = 'VAULT_ACCOUNT', + ) + """ + + def testSmartTransferFundTerm(self): + """Test SmartTransferFundTerm""" + # 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/test/test_smart_transfer_manually_fund_term.py b/test/test_smart_transfer_manually_fund_term.py new file mode 100644 index 00000000..b7601348 --- /dev/null +++ b/test/test_smart_transfer_manually_fund_term.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.smart_transfer_manually_fund_term import ( + SmartTransferManuallyFundTerm, +) + + +class TestSmartTransferManuallyFundTerm(unittest.TestCase): + """SmartTransferManuallyFundTerm unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SmartTransferManuallyFundTerm: + """Test SmartTransferManuallyFundTerm + 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 `SmartTransferManuallyFundTerm` + """ + model = SmartTransferManuallyFundTerm() + if include_optional: + return SmartTransferManuallyFundTerm( + tx_hash = '' + ) + else: + return SmartTransferManuallyFundTerm( + tx_hash = '', + ) + """ + + def testSmartTransferManuallyFundTerm(self): + """Test SmartTransferManuallyFundTerm""" + # 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/test/test_smart_transfer_not_found_response.py b/test/test_smart_transfer_not_found_response.py new file mode 100644 index 00000000..e794e34b --- /dev/null +++ b/test/test_smart_transfer_not_found_response.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.smart_transfer_not_found_response import ( + SmartTransferNotFoundResponse, +) + + +class TestSmartTransferNotFoundResponse(unittest.TestCase): + """SmartTransferNotFoundResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SmartTransferNotFoundResponse: + """Test SmartTransferNotFoundResponse + 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 `SmartTransferNotFoundResponse` + """ + model = SmartTransferNotFoundResponse() + if include_optional: + return SmartTransferNotFoundResponse( + message = 'Requested entity not found', + code = 'c943bdb8-ada0-4ba6-8645-74fcf188a10f' + ) + else: + return SmartTransferNotFoundResponse( + message = 'Requested entity not found', + code = 'c943bdb8-ada0-4ba6-8645-74fcf188a10f', + ) + """ + + def testSmartTransferNotFoundResponse(self): + """Test SmartTransferNotFoundResponse""" + # 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/test/test_smart_transfer_set_ticket_expiration.py b/test/test_smart_transfer_set_ticket_expiration.py new file mode 100644 index 00000000..de510b96 --- /dev/null +++ b/test/test_smart_transfer_set_ticket_expiration.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.smart_transfer_set_ticket_expiration import ( + SmartTransferSetTicketExpiration, +) + + +class TestSmartTransferSetTicketExpiration(unittest.TestCase): + """SmartTransferSetTicketExpiration unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SmartTransferSetTicketExpiration: + """Test SmartTransferSetTicketExpiration + 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 `SmartTransferSetTicketExpiration` + """ + model = SmartTransferSetTicketExpiration() + if include_optional: + return SmartTransferSetTicketExpiration( + expires_in = 1 + ) + else: + return SmartTransferSetTicketExpiration( + expires_in = 1, + ) + """ + + def testSmartTransferSetTicketExpiration(self): + """Test SmartTransferSetTicketExpiration""" + # 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/test/test_smart_transfer_set_ticket_external_id.py b/test/test_smart_transfer_set_ticket_external_id.py new file mode 100644 index 00000000..0ef95766 --- /dev/null +++ b/test/test_smart_transfer_set_ticket_external_id.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.smart_transfer_set_ticket_external_id import ( + SmartTransferSetTicketExternalId, +) + + +class TestSmartTransferSetTicketExternalId(unittest.TestCase): + """SmartTransferSetTicketExternalId unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SmartTransferSetTicketExternalId: + """Test SmartTransferSetTicketExternalId + 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 `SmartTransferSetTicketExternalId` + """ + model = SmartTransferSetTicketExternalId() + if include_optional: + return SmartTransferSetTicketExternalId( + external_ref_id = '01234' + ) + else: + return SmartTransferSetTicketExternalId( + external_ref_id = '01234', + ) + """ + + def testSmartTransferSetTicketExternalId(self): + """Test SmartTransferSetTicketExternalId""" + # 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/test/test_smart_transfer_set_user_groups.py b/test/test_smart_transfer_set_user_groups.py new file mode 100644 index 00000000..170bc2e6 --- /dev/null +++ b/test/test_smart_transfer_set_user_groups.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.smart_transfer_set_user_groups import ( + SmartTransferSetUserGroups, +) + + +class TestSmartTransferSetUserGroups(unittest.TestCase): + """SmartTransferSetUserGroups unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SmartTransferSetUserGroups: + """Test SmartTransferSetUserGroups + 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 `SmartTransferSetUserGroups` + """ + model = SmartTransferSetUserGroups() + if include_optional: + return SmartTransferSetUserGroups( + user_group_ids = [ + '' + ] + ) + else: + return SmartTransferSetUserGroups( + user_group_ids = [ + '' + ], + ) + """ + + def testSmartTransferSetUserGroups(self): + """Test SmartTransferSetUserGroups""" + # 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/test/test_smart_transfer_submit_ticket.py b/test/test_smart_transfer_submit_ticket.py new file mode 100644 index 00000000..2700b5eb --- /dev/null +++ b/test/test_smart_transfer_submit_ticket.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.smart_transfer_submit_ticket import ( + SmartTransferSubmitTicket, +) + + +class TestSmartTransferSubmitTicket(unittest.TestCase): + """SmartTransferSubmitTicket unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SmartTransferSubmitTicket: + """Test SmartTransferSubmitTicket + 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 `SmartTransferSubmitTicket` + """ + model = SmartTransferSubmitTicket() + if include_optional: + return SmartTransferSubmitTicket( + expires_in = 1 + ) + else: + return SmartTransferSubmitTicket( + ) + """ + + def testSmartTransferSubmitTicket(self): + """Test SmartTransferSubmitTicket""" + # 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/test/test_smart_transfer_ticket.py b/test/test_smart_transfer_ticket.py new file mode 100644 index 00000000..b40287ab --- /dev/null +++ b/test/test_smart_transfer_ticket.py @@ -0,0 +1,80 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.smart_transfer_ticket import SmartTransferTicket + + +class TestSmartTransferTicket(unittest.TestCase): + """SmartTransferTicket unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SmartTransferTicket: + """Test SmartTransferTicket + 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 `SmartTransferTicket` + """ + model = SmartTransferTicket() + if include_optional: + return SmartTransferTicket( + id = '118320d2-761f-46c7-96cf-65e71a370b36', + type = 'ASYNC', + direction = 'EXCHANGE', + status = 'DRAFT', + terms = [{"id":"84601ee2-b10f-4aa8-be9c-dba259a3533a","ticketId":"118320d2-761f-46c7-96cf-65e71a370b36","amount":"10.00","asset":"ETH","fromNetworkId":"947c6115-1f5f-4fb4-9fd6-a1f9dee14670","toNetworkId":"5d009697-c29b-48e0-aff8-1f4305d19dc2","status":"CREATED"},{"id":"84601ee2-b10f-4aa8-be9c-dba259a3533a","ticketId":"118320d2-761f-46c7-96cf-65e71a370b36","amount":"10.00","asset":"ETH","fromNetworkId":"947c6115-1f5f-4fb4-9fd6-a1f9dee14670","fromNetworkIdName":"Source network profile 1","toNetworkId":"5d009697-c29b-48e0-aff8-1f4305d19dc2","toNetworkIdName":"Destination network profile 1","status":"FUNDING","connectionId":"14817440-d5c8-4dbd-a754-ad415683610c","fbTxId":"79075e8c-1fd9-4c97-9575-3bd9229e5c0d","createdAt":"2023-03-01T11:23:00.000Z","updatedAt":"2023-03-01T11:23:00.000Z"},{"id":"84601ee2-b10f-4aa8-be9c-dba259a3533a","ticketId":"118320d2-761f-46c7-96cf-65e71a370b36","amount":"10.00","asset":"ETH","fromNetworkId":"947c6115-1f5f-4fb4-9fd6-a1f9dee14670","fromNetworkIdName":"Source network profile 2","toNetworkId":"5d009697-c29b-48e0-aff8-1f4305d19dc2","toNetworkIdName":"Destination network profile 2","status":"FUNDED","connectionId":"14817440-d5c8-4dbd-a754-ad415683610c","fbTxId":"79075e8c-1fd9-4c97-9575-3bd9229e5c0d","txHash":"0xb5c8bd9430b6cc87a0e2fe110ece6bf527fa4f170a4bc8cd032f768fc5219838","createdAt":"2023-03-01T11:23:00.000Z","updatedAt":"2023-03-01T11:23:00.000Z"}], + expires_in = 13, + expires_at = '2023-03-01T11:23Z', + submitted_at = '2023-03-01T11:23Z', + expired_at = '2023-03-01T11:23Z', + canceled_at = '2023-03-01T11:23Z', + fulfilled_at = '2023-03-01T11:23Z', + external_ref_id = '2631ffb9d8fe47c6b0825b5be28297da', + note = 'Random note', + created_by_network_id = '3eaa94c5-128b-4835-bb08-3111bb6564c7', + created_by_network_id_name = 'Network id name', + canceled_by_network_id_name = 'Network id name', + created_at = '2023-03-01T11:23Z', + updated_at = '2023-03-01T11:23Z', + canceled_by_me = True, + created_by_me = True + ) + else: + return SmartTransferTicket( + id = '118320d2-761f-46c7-96cf-65e71a370b36', + type = 'ASYNC', + status = 'DRAFT', + created_by_network_id = '3eaa94c5-128b-4835-bb08-3111bb6564c7', + created_by_network_id_name = 'Network id name', + created_at = '2023-03-01T11:23Z', + updated_at = '2023-03-01T11:23Z', + ) + """ + + def testSmartTransferTicket(self): + """Test SmartTransferTicket""" + # 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/test/test_smart_transfer_ticket_filtered_response.py b/test/test_smart_transfer_ticket_filtered_response.py new file mode 100644 index 00000000..39e68edc --- /dev/null +++ b/test/test_smart_transfer_ticket_filtered_response.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.smart_transfer_ticket_filtered_response import ( + SmartTransferTicketFilteredResponse, +) + + +class TestSmartTransferTicketFilteredResponse(unittest.TestCase): + """SmartTransferTicketFilteredResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SmartTransferTicketFilteredResponse: + """Test SmartTransferTicketFilteredResponse + 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 `SmartTransferTicketFilteredResponse` + """ + model = SmartTransferTicketFilteredResponse() + if include_optional: + return SmartTransferTicketFilteredResponse( + message = 'Success', + after = '118320d2-761f-46c7-96cf-65e71a370b36', + data = [ + fireblocks_client.models.smart_transfer_ticket.SmartTransferTicket( + id = '118320d2-761f-46c7-96cf-65e71a370b36', + type = 'ASYNC', + direction = 'EXCHANGE', + status = 'DRAFT', + terms = [{"id":"84601ee2-b10f-4aa8-be9c-dba259a3533a","ticketId":"118320d2-761f-46c7-96cf-65e71a370b36","amount":"10.00","asset":"ETH","fromNetworkId":"947c6115-1f5f-4fb4-9fd6-a1f9dee14670","toNetworkId":"5d009697-c29b-48e0-aff8-1f4305d19dc2","status":"CREATED"},{"id":"84601ee2-b10f-4aa8-be9c-dba259a3533a","ticketId":"118320d2-761f-46c7-96cf-65e71a370b36","amount":"10.00","asset":"ETH","fromNetworkId":"947c6115-1f5f-4fb4-9fd6-a1f9dee14670","fromNetworkIdName":"Source network profile 1","toNetworkId":"5d009697-c29b-48e0-aff8-1f4305d19dc2","toNetworkIdName":"Destination network profile 1","status":"FUNDING","connectionId":"14817440-d5c8-4dbd-a754-ad415683610c","fbTxId":"79075e8c-1fd9-4c97-9575-3bd9229e5c0d","createdAt":"2023-03-01T11:23:00.000Z","updatedAt":"2023-03-01T11:23:00.000Z"},{"id":"84601ee2-b10f-4aa8-be9c-dba259a3533a","ticketId":"118320d2-761f-46c7-96cf-65e71a370b36","amount":"10.00","asset":"ETH","fromNetworkId":"947c6115-1f5f-4fb4-9fd6-a1f9dee14670","fromNetworkIdName":"Source network profile 2","toNetworkId":"5d009697-c29b-48e0-aff8-1f4305d19dc2","toNetworkIdName":"Destination network profile 2","status":"FUNDED","connectionId":"14817440-d5c8-4dbd-a754-ad415683610c","fbTxId":"79075e8c-1fd9-4c97-9575-3bd9229e5c0d","txHash":"0xb5c8bd9430b6cc87a0e2fe110ece6bf527fa4f170a4bc8cd032f768fc5219838","createdAt":"2023-03-01T11:23:00.000Z","updatedAt":"2023-03-01T11:23:00.000Z"}], + expires_in = 13, + expires_at = '2023-03-01T11:23Z', + submitted_at = '2023-03-01T11:23Z', + expired_at = '2023-03-01T11:23Z', + canceled_at = '2023-03-01T11:23Z', + fulfilled_at = '2023-03-01T11:23Z', + external_ref_id = '2631ffb9d8fe47c6b0825b5be28297da', + note = 'Random note', + created_by_network_id = '3eaa94c5-128b-4835-bb08-3111bb6564c7', + created_by_network_id_name = 'Network id name', + canceled_by_network_id_name = 'Network id name', + created_at = '2023-03-01T11:23Z', + updated_at = '2023-03-01T11:23Z', + canceled_by_me = True, + created_by_me = True, ) + ] + ) + else: + return SmartTransferTicketFilteredResponse( + message = 'Success', + after = '118320d2-761f-46c7-96cf-65e71a370b36', + data = [ + fireblocks_client.models.smart_transfer_ticket.SmartTransferTicket( + id = '118320d2-761f-46c7-96cf-65e71a370b36', + type = 'ASYNC', + direction = 'EXCHANGE', + status = 'DRAFT', + terms = [{"id":"84601ee2-b10f-4aa8-be9c-dba259a3533a","ticketId":"118320d2-761f-46c7-96cf-65e71a370b36","amount":"10.00","asset":"ETH","fromNetworkId":"947c6115-1f5f-4fb4-9fd6-a1f9dee14670","toNetworkId":"5d009697-c29b-48e0-aff8-1f4305d19dc2","status":"CREATED"},{"id":"84601ee2-b10f-4aa8-be9c-dba259a3533a","ticketId":"118320d2-761f-46c7-96cf-65e71a370b36","amount":"10.00","asset":"ETH","fromNetworkId":"947c6115-1f5f-4fb4-9fd6-a1f9dee14670","fromNetworkIdName":"Source network profile 1","toNetworkId":"5d009697-c29b-48e0-aff8-1f4305d19dc2","toNetworkIdName":"Destination network profile 1","status":"FUNDING","connectionId":"14817440-d5c8-4dbd-a754-ad415683610c","fbTxId":"79075e8c-1fd9-4c97-9575-3bd9229e5c0d","createdAt":"2023-03-01T11:23:00.000Z","updatedAt":"2023-03-01T11:23:00.000Z"},{"id":"84601ee2-b10f-4aa8-be9c-dba259a3533a","ticketId":"118320d2-761f-46c7-96cf-65e71a370b36","amount":"10.00","asset":"ETH","fromNetworkId":"947c6115-1f5f-4fb4-9fd6-a1f9dee14670","fromNetworkIdName":"Source network profile 2","toNetworkId":"5d009697-c29b-48e0-aff8-1f4305d19dc2","toNetworkIdName":"Destination network profile 2","status":"FUNDED","connectionId":"14817440-d5c8-4dbd-a754-ad415683610c","fbTxId":"79075e8c-1fd9-4c97-9575-3bd9229e5c0d","txHash":"0xb5c8bd9430b6cc87a0e2fe110ece6bf527fa4f170a4bc8cd032f768fc5219838","createdAt":"2023-03-01T11:23:00.000Z","updatedAt":"2023-03-01T11:23:00.000Z"}], + expires_in = 13, + expires_at = '2023-03-01T11:23Z', + submitted_at = '2023-03-01T11:23Z', + expired_at = '2023-03-01T11:23Z', + canceled_at = '2023-03-01T11:23Z', + fulfilled_at = '2023-03-01T11:23Z', + external_ref_id = '2631ffb9d8fe47c6b0825b5be28297da', + note = 'Random note', + created_by_network_id = '3eaa94c5-128b-4835-bb08-3111bb6564c7', + created_by_network_id_name = 'Network id name', + canceled_by_network_id_name = 'Network id name', + created_at = '2023-03-01T11:23Z', + updated_at = '2023-03-01T11:23Z', + canceled_by_me = True, + created_by_me = True, ) + ], + ) + """ + + def testSmartTransferTicketFilteredResponse(self): + """Test SmartTransferTicketFilteredResponse""" + # 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/test/test_smart_transfer_ticket_response.py b/test/test_smart_transfer_ticket_response.py new file mode 100644 index 00000000..036ae76b --- /dev/null +++ b/test/test_smart_transfer_ticket_response.py @@ -0,0 +1,78 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.smart_transfer_ticket_response import ( + SmartTransferTicketResponse, +) + + +class TestSmartTransferTicketResponse(unittest.TestCase): + """SmartTransferTicketResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SmartTransferTicketResponse: + """Test SmartTransferTicketResponse + 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 `SmartTransferTicketResponse` + """ + model = SmartTransferTicketResponse() + if include_optional: + return SmartTransferTicketResponse( + message = 'Success', + data = fireblocks_client.models.smart_transfer_ticket.SmartTransferTicket( + id = '118320d2-761f-46c7-96cf-65e71a370b36', + type = 'ASYNC', + direction = 'EXCHANGE', + status = 'DRAFT', + terms = [{"id":"84601ee2-b10f-4aa8-be9c-dba259a3533a","ticketId":"118320d2-761f-46c7-96cf-65e71a370b36","amount":"10.00","asset":"ETH","fromNetworkId":"947c6115-1f5f-4fb4-9fd6-a1f9dee14670","toNetworkId":"5d009697-c29b-48e0-aff8-1f4305d19dc2","status":"CREATED"},{"id":"84601ee2-b10f-4aa8-be9c-dba259a3533a","ticketId":"118320d2-761f-46c7-96cf-65e71a370b36","amount":"10.00","asset":"ETH","fromNetworkId":"947c6115-1f5f-4fb4-9fd6-a1f9dee14670","fromNetworkIdName":"Source network profile 1","toNetworkId":"5d009697-c29b-48e0-aff8-1f4305d19dc2","toNetworkIdName":"Destination network profile 1","status":"FUNDING","connectionId":"14817440-d5c8-4dbd-a754-ad415683610c","fbTxId":"79075e8c-1fd9-4c97-9575-3bd9229e5c0d","createdAt":"2023-03-01T11:23:00.000Z","updatedAt":"2023-03-01T11:23:00.000Z"},{"id":"84601ee2-b10f-4aa8-be9c-dba259a3533a","ticketId":"118320d2-761f-46c7-96cf-65e71a370b36","amount":"10.00","asset":"ETH","fromNetworkId":"947c6115-1f5f-4fb4-9fd6-a1f9dee14670","fromNetworkIdName":"Source network profile 2","toNetworkId":"5d009697-c29b-48e0-aff8-1f4305d19dc2","toNetworkIdName":"Destination network profile 2","status":"FUNDED","connectionId":"14817440-d5c8-4dbd-a754-ad415683610c","fbTxId":"79075e8c-1fd9-4c97-9575-3bd9229e5c0d","txHash":"0xb5c8bd9430b6cc87a0e2fe110ece6bf527fa4f170a4bc8cd032f768fc5219838","createdAt":"2023-03-01T11:23:00.000Z","updatedAt":"2023-03-01T11:23:00.000Z"}], + expires_in = 13, + expires_at = '2023-03-01T11:23Z', + submitted_at = '2023-03-01T11:23Z', + expired_at = '2023-03-01T11:23Z', + canceled_at = '2023-03-01T11:23Z', + fulfilled_at = '2023-03-01T11:23Z', + external_ref_id = '2631ffb9d8fe47c6b0825b5be28297da', + note = 'Random note', + created_by_network_id = '3eaa94c5-128b-4835-bb08-3111bb6564c7', + created_by_network_id_name = 'Network id name', + canceled_by_network_id_name = 'Network id name', + created_at = '2023-03-01T11:23Z', + updated_at = '2023-03-01T11:23Z', + canceled_by_me = True, + created_by_me = True, ) + ) + else: + return SmartTransferTicketResponse( + message = 'Success', + ) + """ + + def testSmartTransferTicketResponse(self): + """Test SmartTransferTicketResponse""" + # 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/test/test_smart_transfer_ticket_term.py b/test/test_smart_transfer_ticket_term.py new file mode 100644 index 00000000..90b821fb --- /dev/null +++ b/test/test_smart_transfer_ticket_term.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.smart_transfer_ticket_term import SmartTransferTicketTerm + + +class TestSmartTransferTicketTerm(unittest.TestCase): + """SmartTransferTicketTerm unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SmartTransferTicketTerm: + """Test SmartTransferTicketTerm + 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 `SmartTransferTicketTerm` + """ + model = SmartTransferTicketTerm() + if include_optional: + return SmartTransferTicketTerm( + id = '84601ee2-b10f-4aa8-be9c-dba259a3533a', + ticket_id = '900f04c3-83bc-428d-b681-aef682059637', + asset = 'BTC', + amount = '133.789161216184', + amount_usd = '1333.789161216184', + from_network_id = '947c6115-1f5f-4fb4-9fd6-a1f9dee14670', + from_network_id_name = 'Source network profile name', + to_network_id = '5d009697-c29b-48e0-aff8-1f4305d19dc2', + to_network_id_name = 'Destination network profile name', + tx_hash = '0x2446f1fd773fbb9f080e674b60c6a033c7ed7427b8b9413cf28a2a4a6da9b56c', + fb_tx_id = '79075e8c-1fd9-4c97-9575-3bd9229e5c0d', + tx_status = 'COMPLETED', + status = 'CREATED', + created_at = '2023-03-01T11:23Z', + updated_at = '2023-03-01T11:23Z' + ) + else: + return SmartTransferTicketTerm( + id = '84601ee2-b10f-4aa8-be9c-dba259a3533a', + ticket_id = '900f04c3-83bc-428d-b681-aef682059637', + asset = 'BTC', + amount = '133.789161216184', + from_network_id = '947c6115-1f5f-4fb4-9fd6-a1f9dee14670', + from_network_id_name = 'Source network profile name', + to_network_id = '5d009697-c29b-48e0-aff8-1f4305d19dc2', + to_network_id_name = 'Destination network profile name', + tx_hash = '0x2446f1fd773fbb9f080e674b60c6a033c7ed7427b8b9413cf28a2a4a6da9b56c', + fb_tx_id = '79075e8c-1fd9-4c97-9575-3bd9229e5c0d', + tx_status = 'COMPLETED', + status = 'CREATED', + created_at = '2023-03-01T11:23Z', + updated_at = '2023-03-01T11:23Z', + ) + """ + + def testSmartTransferTicketTerm(self): + """Test SmartTransferTicketTerm""" + # 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/test/test_smart_transfer_ticket_term_response.py b/test/test_smart_transfer_ticket_term_response.py new file mode 100644 index 00000000..9e810523 --- /dev/null +++ b/test/test_smart_transfer_ticket_term_response.py @@ -0,0 +1,73 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.smart_transfer_ticket_term_response import ( + SmartTransferTicketTermResponse, +) + + +class TestSmartTransferTicketTermResponse(unittest.TestCase): + """SmartTransferTicketTermResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SmartTransferTicketTermResponse: + """Test SmartTransferTicketTermResponse + 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 `SmartTransferTicketTermResponse` + """ + model = SmartTransferTicketTermResponse() + if include_optional: + return SmartTransferTicketTermResponse( + message = 'Success', + data = fireblocks_client.models.smart_transfer_ticket_term.SmartTransferTicketTerm( + id = '84601ee2-b10f-4aa8-be9c-dba259a3533a', + ticket_id = '900f04c3-83bc-428d-b681-aef682059637', + asset = 'BTC', + amount = '133.789161216184', + amount_usd = '1333.789161216184', + from_network_id = '947c6115-1f5f-4fb4-9fd6-a1f9dee14670', + from_network_id_name = 'Source network profile name', + to_network_id = '5d009697-c29b-48e0-aff8-1f4305d19dc2', + to_network_id_name = 'Destination network profile name', + tx_hash = '0x2446f1fd773fbb9f080e674b60c6a033c7ed7427b8b9413cf28a2a4a6da9b56c', + fb_tx_id = '79075e8c-1fd9-4c97-9575-3bd9229e5c0d', + tx_status = 'COMPLETED', + status = 'CREATED', + created_at = '2023-03-01T11:23Z', + updated_at = '2023-03-01T11:23Z', ) + ) + else: + return SmartTransferTicketTermResponse( + message = 'Success', + ) + """ + + def testSmartTransferTicketTermResponse(self): + """Test SmartTransferTicketTermResponse""" + # 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/test/test_smart_transfer_update_ticket_term.py b/test/test_smart_transfer_update_ticket_term.py new file mode 100644 index 00000000..d935e791 --- /dev/null +++ b/test/test_smart_transfer_update_ticket_term.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.smart_transfer_update_ticket_term import ( + SmartTransferUpdateTicketTerm, +) + + +class TestSmartTransferUpdateTicketTerm(unittest.TestCase): + """SmartTransferUpdateTicketTerm unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SmartTransferUpdateTicketTerm: + """Test SmartTransferUpdateTicketTerm + 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 `SmartTransferUpdateTicketTerm` + """ + model = SmartTransferUpdateTicketTerm() + if include_optional: + return SmartTransferUpdateTicketTerm( + asset = 'BTC', + amount = 133.789161216184, + from_network_id = '947c6115-1f5f-4fb4-9fd6-a1f9dee14670', + to_network_id = '5d009697-c29b-48e0-aff8-1f4305d19dc2' + ) + else: + return SmartTransferUpdateTicketTerm( + asset = 'BTC', + amount = 133.789161216184, + from_network_id = '947c6115-1f5f-4fb4-9fd6-a1f9dee14670', + to_network_id = '5d009697-c29b-48e0-aff8-1f4305d19dc2', + ) + """ + + def testSmartTransferUpdateTicketTerm(self): + """Test SmartTransferUpdateTicketTerm""" + # 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/test/test_smart_transfer_user_groups.py b/test/test_smart_transfer_user_groups.py new file mode 100644 index 00000000..1ff3b1af --- /dev/null +++ b/test/test_smart_transfer_user_groups.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.smart_transfer_user_groups import SmartTransferUserGroups + + +class TestSmartTransferUserGroups(unittest.TestCase): + """SmartTransferUserGroups unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SmartTransferUserGroups: + """Test SmartTransferUserGroups + 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 `SmartTransferUserGroups` + """ + model = SmartTransferUserGroups() + if include_optional: + return SmartTransferUserGroups( + user_group_ids = [ + '' + ] + ) + else: + return SmartTransferUserGroups( + user_group_ids = [ + '' + ], + ) + """ + + def testSmartTransferUserGroups(self): + """Test SmartTransferUserGroups""" + # 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/test/test_smart_transfer_user_groups_response.py b/test/test_smart_transfer_user_groups_response.py new file mode 100644 index 00000000..9badb0db --- /dev/null +++ b/test/test_smart_transfer_user_groups_response.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.smart_transfer_user_groups_response import ( + SmartTransferUserGroupsResponse, +) + + +class TestSmartTransferUserGroupsResponse(unittest.TestCase): + """SmartTransferUserGroupsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SmartTransferUserGroupsResponse: + """Test SmartTransferUserGroupsResponse + 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 `SmartTransferUserGroupsResponse` + """ + model = SmartTransferUserGroupsResponse() + if include_optional: + return SmartTransferUserGroupsResponse( + message = 'Success', + data = fireblocks_client.models.smart_transfer_user_groups.SmartTransferUserGroups( + user_group_ids = [ + '' + ], ) + ) + else: + return SmartTransferUserGroupsResponse( + message = 'Success', + ) + """ + + def testSmartTransferUserGroupsResponse(self): + """Test SmartTransferUserGroupsResponse""" + # 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/test/test_solana_blockchain_data_dto.py b/test/test_solana_blockchain_data_dto.py new file mode 100644 index 00000000..28575a70 --- /dev/null +++ b/test/test_solana_blockchain_data_dto.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.solana_blockchain_data_dto import SolanaBlockchainDataDto + + +class TestSolanaBlockchainDataDto(unittest.TestCase): + """SolanaBlockchainDataDto unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SolanaBlockchainDataDto: + """Test SolanaBlockchainDataDto + 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 `SolanaBlockchainDataDto` + """ + model = SolanaBlockchainDataDto() + if include_optional: + return SolanaBlockchainDataDto( + stake_account_address = '3Ru67FyzMTcdENmmRL4Eve4dtPd6AdpuypR21q5EQCdq' + ) + else: + return SolanaBlockchainDataDto( + stake_account_address = '3Ru67FyzMTcdENmmRL4Eve4dtPd6AdpuypR21q5EQCdq', + ) + """ + + def testSolanaBlockchainDataDto(self): + """Test SolanaBlockchainDataDto""" + # 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/test/test_source_transfer_peer_path.py b/test/test_source_transfer_peer_path.py new file mode 100644 index 00000000..dda64a70 --- /dev/null +++ b/test/test_source_transfer_peer_path.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.source_transfer_peer_path import SourceTransferPeerPath + + +class TestSourceTransferPeerPath(unittest.TestCase): + """SourceTransferPeerPath unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SourceTransferPeerPath: + """Test SourceTransferPeerPath + 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 `SourceTransferPeerPath` + """ + model = SourceTransferPeerPath() + if include_optional: + return SourceTransferPeerPath( + type = 'VAULT_ACCOUNT', + sub_type = 'BINANCE', + id = '', + name = '', + wallet_id = '' + ) + else: + return SourceTransferPeerPath( + type = 'VAULT_ACCOUNT', + ) + """ + + def testSourceTransferPeerPath(self): + """Test SourceTransferPeerPath""" + # 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/test/test_source_transfer_peer_path_response.py b/test/test_source_transfer_peer_path_response.py new file mode 100644 index 00000000..b79d417b --- /dev/null +++ b/test/test_source_transfer_peer_path_response.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.source_transfer_peer_path_response import ( + SourceTransferPeerPathResponse, +) + + +class TestSourceTransferPeerPathResponse(unittest.TestCase): + """SourceTransferPeerPathResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SourceTransferPeerPathResponse: + """Test SourceTransferPeerPathResponse + 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 `SourceTransferPeerPathResponse` + """ + model = SourceTransferPeerPathResponse() + if include_optional: + return SourceTransferPeerPathResponse( + type = 'VAULT_ACCOUNT', + sub_type = '', + id = '', + name = '', + wallet_id = '' + ) + else: + return SourceTransferPeerPathResponse( + type = 'VAULT_ACCOUNT', + ) + """ + + def testSourceTransferPeerPathResponse(self): + """Test SourceTransferPeerPathResponse""" + # 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/test/test_spam_ownership_response.py b/test/test_spam_ownership_response.py new file mode 100644 index 00000000..118eb8ad --- /dev/null +++ b/test/test_spam_ownership_response.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.spam_ownership_response import SpamOwnershipResponse + + +class TestSpamOwnershipResponse(unittest.TestCase): + """SpamOwnershipResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SpamOwnershipResponse: + """Test SpamOwnershipResponse + 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 `SpamOwnershipResponse` + """ + model = SpamOwnershipResponse() + if include_optional: + return SpamOwnershipResponse( + result = True, + source = 'OWNER' + ) + else: + return SpamOwnershipResponse( + result = True, + source = 'OWNER', + ) + """ + + def testSpamOwnershipResponse(self): + """Test SpamOwnershipResponse""" + # 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/test/test_spam_token_response.py b/test/test_spam_token_response.py new file mode 100644 index 00000000..09f93a54 --- /dev/null +++ b/test/test_spam_token_response.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.spam_token_response import SpamTokenResponse + + +class TestSpamTokenResponse(unittest.TestCase): + """SpamTokenResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SpamTokenResponse: + """Test SpamTokenResponse + 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 `SpamTokenResponse` + """ + model = SpamTokenResponse() + if include_optional: + return SpamTokenResponse( + result = True + ) + else: + return SpamTokenResponse( + result = True, + ) + """ + + def testSpamTokenResponse(self): + """Test SpamTokenResponse""" + # 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/test/test_src_or_dest_attributes_inner.py b/test/test_src_or_dest_attributes_inner.py new file mode 100644 index 00000000..0823bbcc --- /dev/null +++ b/test/test_src_or_dest_attributes_inner.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.src_or_dest_attributes_inner import ( + SrcOrDestAttributesInner, +) + + +class TestSrcOrDestAttributesInner(unittest.TestCase): + """SrcOrDestAttributesInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SrcOrDestAttributesInner: + """Test SrcOrDestAttributesInner + 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 `SrcOrDestAttributesInner` + """ + model = SrcOrDestAttributesInner() + if include_optional: + return SrcOrDestAttributesInner( + ) + else: + return SrcOrDestAttributesInner( + ) + """ + + def testSrcOrDestAttributesInner(self): + """Test SrcOrDestAttributesInner""" + # 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/test/test_stake_request_dto.py b/test/test_stake_request_dto.py new file mode 100644 index 00000000..e6f64bd3 --- /dev/null +++ b/test/test_stake_request_dto.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.stake_request_dto import StakeRequestDto + + +class TestStakeRequestDto(unittest.TestCase): + """StakeRequestDto unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> StakeRequestDto: + """Test StakeRequestDto + 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 `StakeRequestDto` + """ + model = StakeRequestDto() + if include_optional: + return StakeRequestDto( + vault_account_id = '22', + provider_id = 'kiln', + stake_amount = '32', + tx_note = 'stake request id CcaHc2L43ZWjwCHART3oZoJvHLAe9hzT2DJNUpBzoTN1 of 32ETH created on 02.04.23', + fee = '7', + fee_level = 'MEDIUM' + ) + else: + return StakeRequestDto( + vault_account_id = '22', + provider_id = 'kiln', + stake_amount = '32', + ) + """ + + def testStakeRequestDto(self): + """Test StakeRequestDto""" + # 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/test/test_stake_response_dto.py b/test/test_stake_response_dto.py new file mode 100644 index 00000000..902c585a --- /dev/null +++ b/test/test_stake_response_dto.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.stake_response_dto import StakeResponseDto + + +class TestStakeResponseDto(unittest.TestCase): + """StakeResponseDto unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> StakeResponseDto: + """Test StakeResponseDto + 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 `StakeResponseDto` + """ + model = StakeResponseDto() + if include_optional: + return StakeResponseDto( + id = 'b70701f4-d7b1-4795-a8ee-b09cdb5b850d' + ) + else: + return StakeResponseDto( + id = 'b70701f4-d7b1-4795-a8ee-b09cdb5b850d', + ) + """ + + def testStakeResponseDto(self): + """Test StakeResponseDto""" + # 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/test/test_staking_beta_api.py b/test/test_staking_beta_api.py new file mode 100644 index 00000000..415da0d3 --- /dev/null +++ b/test/test_staking_beta_api.py @@ -0,0 +1,68 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.api.staking_beta_api import StakingBetaApi + + +class TestStakingBetaApi(unittest.TestCase): + """StakingBetaApi unit test stubs""" + + def setUp(self) -> None: + self.api = StakingBetaApi() + + def tearDown(self) -> None: + pass + + def test_approve_terms_of_service_by_provider_id(self) -> None: + """Test case for approve_terms_of_service_by_provider_id""" + pass + + def test_execute_action(self) -> None: + """Test case for execute_action""" + pass + + def test_get_all_delegations(self) -> None: + """Test case for get_all_delegations""" + pass + + def test_get_chain_info(self) -> None: + """Test case for get_chain_info""" + pass + + def test_get_chains(self) -> None: + """Test case for get_chains""" + pass + + def test_get_delegation_by_id(self) -> None: + """Test case for get_delegation_by_id""" + pass + + def test_get_providers(self) -> None: + """Test case for get_providers""" + pass + + def test_get_summary(self) -> None: + """Test case for get_summary""" + pass + + def test_get_summary_by_vault(self) -> None: + """Test case for get_summary_by_vault""" + pass + + +if __name__ == "__main__": + unittest.main() diff --git a/test/test_stellar_ripple_create_params_dto.py b/test/test_stellar_ripple_create_params_dto.py new file mode 100644 index 00000000..97b2f524 --- /dev/null +++ b/test/test_stellar_ripple_create_params_dto.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.stellar_ripple_create_params_dto import ( + StellarRippleCreateParamsDto, +) + + +class TestStellarRippleCreateParamsDto(unittest.TestCase): + """StellarRippleCreateParamsDto unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> StellarRippleCreateParamsDto: + """Test StellarRippleCreateParamsDto + 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 `StellarRippleCreateParamsDto` + """ + model = StellarRippleCreateParamsDto() + if include_optional: + return StellarRippleCreateParamsDto( + symbol = 'MyUSDT', + name = 'My USD Tether', + issuer_address = 'rnDV4JiwgRNhudPY2sm65AzECpRXaasL4r' + ) + else: + return StellarRippleCreateParamsDto( + symbol = 'MyUSDT', + name = 'My USD Tether', + issuer_address = 'rnDV4JiwgRNhudPY2sm65AzECpRXaasL4r', + ) + """ + + def testStellarRippleCreateParamsDto(self): + """Test StellarRippleCreateParamsDto""" + # 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/test/test_system_message_info.py b/test/test_system_message_info.py new file mode 100644 index 00000000..26529d9b --- /dev/null +++ b/test/test_system_message_info.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.system_message_info import SystemMessageInfo + + +class TestSystemMessageInfo(unittest.TestCase): + """SystemMessageInfo unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SystemMessageInfo: + """Test SystemMessageInfo + 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 `SystemMessageInfo` + """ + model = SystemMessageInfo() + if include_optional: + return SystemMessageInfo( + type = 'WARN', + message = 'Slow transaction processing. Outgoing transactions might be stuck.' + ) + else: + return SystemMessageInfo( + ) + """ + + def testSystemMessageInfo(self): + """Test SystemMessageInfo""" + # 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/test/test_task.py b/test/test_task.py new file mode 100644 index 00000000..6657ddc6 --- /dev/null +++ b/test/test_task.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.task import Task + + +class TestTask(unittest.TestCase): + """Task unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> Task: + """Test Task + 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 `Task` + """ + model = Task() + if include_optional: + return Task( + id = '', + job_id = '', + type = '', + tenant_id = '', + created = 1.337, + updated = 1.337, + state = '' + ) + else: + return Task( + ) + """ + + def testTask(self): + """Test Task""" + # 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/test/test_templates_paginated_response.py b/test/test_templates_paginated_response.py new file mode 100644 index 00000000..781110fc --- /dev/null +++ b/test/test_templates_paginated_response.py @@ -0,0 +1,80 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.templates_paginated_response import ( + TemplatesPaginatedResponse, +) + + +class TestTemplatesPaginatedResponse(unittest.TestCase): + """TemplatesPaginatedResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> TemplatesPaginatedResponse: + """Test TemplatesPaginatedResponse + 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 `TemplatesPaginatedResponse` + """ + model = TemplatesPaginatedResponse() + if include_optional: + return TemplatesPaginatedResponse( + data = [ + fireblocks_client.models.lean_contract_dto.LeanContractDto( + id = 'b70701f4-d7b1-4795-a8ee-b09cdb5b850d', + name = 'My Contract', + description = 'an ERC20 implementation', + attributes = {"useCases":["Stablecoin","CBDC"],"standards":["ERC-20","ERC-1400"],"auditor":{"name":"MyAuditor","imageURL":"https://my-images.com/my-image.jpg","link":"https://my-auditor.com/my-audit-report"}}, + is_public = True, + can_deploy = True, + owner = 'b70701f4-d7b1-4795-a8ee-b09cdb5b850d', + vendor = null, + type = 'FUNGIBLE_TOKEN', ) + ], + next = 'eJ0eXAiOiJKV1QiLCJhbGcOiJIUzI1NiJ9' + ) + else: + return TemplatesPaginatedResponse( + data = [ + fireblocks_client.models.lean_contract_dto.LeanContractDto( + id = 'b70701f4-d7b1-4795-a8ee-b09cdb5b850d', + name = 'My Contract', + description = 'an ERC20 implementation', + attributes = {"useCases":["Stablecoin","CBDC"],"standards":["ERC-20","ERC-1400"],"auditor":{"name":"MyAuditor","imageURL":"https://my-images.com/my-image.jpg","link":"https://my-auditor.com/my-audit-report"}}, + is_public = True, + can_deploy = True, + owner = 'b70701f4-d7b1-4795-a8ee-b09cdb5b850d', + vendor = null, + type = 'FUNGIBLE_TOKEN', ) + ], + ) + """ + + def testTemplatesPaginatedResponse(self): + """Test TemplatesPaginatedResponse""" + # 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/test/test_third_party_routing.py b/test/test_third_party_routing.py new file mode 100644 index 00000000..4b0c8c8c --- /dev/null +++ b/test/test_third_party_routing.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.third_party_routing import ThirdPartyRouting + + +class TestThirdPartyRouting(unittest.TestCase): + """ThirdPartyRouting unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ThirdPartyRouting: + """Test ThirdPartyRouting + 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 `ThirdPartyRouting` + """ + model = ThirdPartyRouting() + if include_optional: + return ThirdPartyRouting( + is_third_party_routing = True, + description = '' + ) + else: + return ThirdPartyRouting( + ) + """ + + def testThirdPartyRouting(self): + """Test ThirdPartyRouting""" + # 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/test/test_to_collateral_transaction.py b/test/test_to_collateral_transaction.py new file mode 100644 index 00000000..fe60fc58 --- /dev/null +++ b/test/test_to_collateral_transaction.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.to_collateral_transaction import ToCollateralTransaction + + +class TestToCollateralTransaction(unittest.TestCase): + """ToCollateralTransaction unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ToCollateralTransaction: + """Test ToCollateralTransaction + 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 `ToCollateralTransaction` + """ + model = ToCollateralTransaction() + if include_optional: + return ToCollateralTransaction( + asset = '', + amount = '', + src_address = '', + src_tag = '', + fee = '' + ) + else: + return ToCollateralTransaction( + ) + """ + + def testToCollateralTransaction(self): + """Test ToCollateralTransaction""" + # 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/test/test_to_exchange_transaction.py b/test/test_to_exchange_transaction.py new file mode 100644 index 00000000..669536bf --- /dev/null +++ b/test/test_to_exchange_transaction.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.to_exchange_transaction import ToExchangeTransaction + + +class TestToExchangeTransaction(unittest.TestCase): + """ToExchangeTransaction unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ToExchangeTransaction: + """Test ToExchangeTransaction + 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 `ToExchangeTransaction` + """ + model = ToExchangeTransaction() + if include_optional: + return ToExchangeTransaction( + asset_id = '', + amount = '', + dst_address = '', + dst_tag = '' + ) + else: + return ToExchangeTransaction( + ) + """ + + def testToExchangeTransaction(self): + """Test ToExchangeTransaction""" + # 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/test/test_token_collection_response.py b/test/test_token_collection_response.py new file mode 100644 index 00000000..99354dc0 --- /dev/null +++ b/test/test_token_collection_response.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.token_collection_response import TokenCollectionResponse + + +class TestTokenCollectionResponse(unittest.TestCase): + """TokenCollectionResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> TokenCollectionResponse: + """Test TokenCollectionResponse + 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 `TokenCollectionResponse` + """ + model = TokenCollectionResponse() + if include_optional: + return TokenCollectionResponse( + id = '', + name = '', + symbol = '' + ) + else: + return TokenCollectionResponse( + id = '', + ) + """ + + def testTokenCollectionResponse(self): + """Test TokenCollectionResponse""" + # 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/test/test_token_link_dto.py b/test/test_token_link_dto.py new file mode 100644 index 00000000..424462bf --- /dev/null +++ b/test/test_token_link_dto.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.token_link_dto import TokenLinkDto + + +class TestTokenLinkDto(unittest.TestCase): + """TokenLinkDto unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> TokenLinkDto: + """Test TokenLinkDto + 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 `TokenLinkDto` + """ + model = TokenLinkDto() + if include_optional: + return TokenLinkDto( + id = 'fbfbfbfb-fbfb-fbfb-fbfb-fbfbfbfbfbfb', + status = 'COMPLETED', + type = 'FUNGIBLE_TOKEN', + ref_id = 'BQ5R_MY_TOKEN', + display_name = 'My Simple ERC20 Token', + token_metadata = None + ) + else: + return TokenLinkDto( + id = 'fbfbfbfb-fbfb-fbfb-fbfb-fbfbfbfbfbfb', + status = 'COMPLETED', + ) + """ + + def testTokenLinkDto(self): + """Test TokenLinkDto""" + # 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/test/test_token_link_dto_token_metadata.py b/test/test_token_link_dto_token_metadata.py new file mode 100644 index 00000000..a8364bd3 --- /dev/null +++ b/test/test_token_link_dto_token_metadata.py @@ -0,0 +1,81 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.token_link_dto_token_metadata import ( + TokenLinkDtoTokenMetadata, +) + + +class TestTokenLinkDtoTokenMetadata(unittest.TestCase): + """TokenLinkDtoTokenMetadata unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> TokenLinkDtoTokenMetadata: + """Test TokenLinkDtoTokenMetadata + 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 `TokenLinkDtoTokenMetadata` + """ + model = TokenLinkDtoTokenMetadata() + if include_optional: + return TokenLinkDtoTokenMetadata( + asset_id = 'BQ5R_MY_TOKEN', + name = 'Rarible', + symbol = 'RARI', + network_protocol = 'ETH', + total_supply = '1000000000000000', + holders_count = 6, + type = 'ERC20', + contract_address = '0x1234567890abcdef1234567890abcdef12345678', + issuer_address = 'rGyXjc5d7s17vvt3NtKKascvJrnSxV21kQ', + testnet = True, + blockchain = 'ETH_TEST5', + decimals = 18, + vault_account_id = '0', + fb_collection_id = '911fe739f0d4d123c98fd366c3bed35c6e30c00e', + standard = 'ERC721', + blockchain_descriptor = 'ETH_TEST5', + id = 'fbfbfbfb-fbfb-fbfb-fbfb-fbfbfbfbfbfb', + blockchain_id = 'B7QG017M', + contract_template_id = 'b70701f4-d7b1-4795-a8ee-b09cdb5b850d' + ) + else: + return TokenLinkDtoTokenMetadata( + asset_id = 'BQ5R_MY_TOKEN', + contract_address = '0x1234567890abcdef1234567890abcdef12345678', + fb_collection_id = '911fe739f0d4d123c98fd366c3bed35c6e30c00e', + blockchain_descriptor = 'ETH_TEST5', + id = 'fbfbfbfb-fbfb-fbfb-fbfb-fbfbfbfbfbfb', + blockchain_id = 'B7QG017M', + contract_template_id = 'b70701f4-d7b1-4795-a8ee-b09cdb5b850d', + ) + """ + + def testTokenLinkDtoTokenMetadata(self): + """Test TokenLinkDtoTokenMetadata""" + # 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/test/test_token_link_exists_http_error.py b/test/test_token_link_exists_http_error.py new file mode 100644 index 00000000..cbf4322e --- /dev/null +++ b/test/test_token_link_exists_http_error.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.token_link_exists_http_error import ( + TokenLinkExistsHttpError, +) + + +class TestTokenLinkExistsHttpError(unittest.TestCase): + """TokenLinkExistsHttpError unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> TokenLinkExistsHttpError: + """Test TokenLinkExistsHttpError + 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 `TokenLinkExistsHttpError` + """ + model = TokenLinkExistsHttpError() + if include_optional: + return TokenLinkExistsHttpError( + status_code = 409, + message = '', + error = 'Conflict' + ) + else: + return TokenLinkExistsHttpError( + ) + """ + + def testTokenLinkExistsHttpError(self): + """Test TokenLinkExistsHttpError""" + # 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/test/test_token_link_request_dto.py b/test/test_token_link_request_dto.py new file mode 100644 index 00000000..7bd6065e --- /dev/null +++ b/test/test_token_link_request_dto.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.token_link_request_dto import TokenLinkRequestDto + + +class TestTokenLinkRequestDto(unittest.TestCase): + """TokenLinkRequestDto unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> TokenLinkRequestDto: + """Test TokenLinkRequestDto + 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 `TokenLinkRequestDto` + """ + model = TokenLinkRequestDto() + if include_optional: + return TokenLinkRequestDto( + type = 'FUNGIBLE_TOKEN', + ref_id = 'USDC_ETH_TEST5_1XF5', + display_name = 'My Simple ERC20 Token' + ) + else: + return TokenLinkRequestDto( + type = 'FUNGIBLE_TOKEN', + ref_id = 'USDC_ETH_TEST5_1XF5', + ) + """ + + def testTokenLinkRequestDto(self): + """Test TokenLinkRequestDto""" + # 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/test/test_token_ownership_response.py b/test/test_token_ownership_response.py new file mode 100644 index 00000000..1e6132a2 --- /dev/null +++ b/test/test_token_ownership_response.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.token_ownership_response import TokenOwnershipResponse + + +class TestTokenOwnershipResponse(unittest.TestCase): + """TokenOwnershipResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> TokenOwnershipResponse: + """Test TokenOwnershipResponse + 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 `TokenOwnershipResponse` + """ + model = TokenOwnershipResponse() + if include_optional: + return TokenOwnershipResponse( + id = '', + token_id = '', + standard = '', + metadata_uri = '', + cached_metadata_uri = '', + media = [ + fireblocks_client.models.media_entity_response.MediaEntityResponse( + url = '', + content_type = 'IMAGE', ) + ], + spam = fireblocks_client.models.spam_ownership_response.SpamOwnershipResponse( + result = True, + source = 'OWNER', ), + collection = fireblocks_client.models.token_collection_response.TokenCollectionResponse( + id = '', + name = '', + symbol = '', ), + balance = '', + vault_account_id = '', + ownership_start_time = 1.337, + ownership_last_update_time = 1.337, + blockchain_descriptor = 'ETH', + description = '', + name = '', + ncw_id = '', + ncw_account_id = '', + status = 'LISTED' + ) + else: + return TokenOwnershipResponse( + id = '', + token_id = '', + standard = '', + balance = '', + ownership_start_time = 1.337, + ownership_last_update_time = 1.337, + blockchain_descriptor = 'ETH', + status = 'LISTED', + ) + """ + + def testTokenOwnershipResponse(self): + """Test TokenOwnershipResponse""" + # 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/test/test_token_ownership_spam_update_payload.py b/test/test_token_ownership_spam_update_payload.py new file mode 100644 index 00000000..42b25207 --- /dev/null +++ b/test/test_token_ownership_spam_update_payload.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.token_ownership_spam_update_payload import ( + TokenOwnershipSpamUpdatePayload, +) + + +class TestTokenOwnershipSpamUpdatePayload(unittest.TestCase): + """TokenOwnershipSpamUpdatePayload unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> TokenOwnershipSpamUpdatePayload: + """Test TokenOwnershipSpamUpdatePayload + 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 `TokenOwnershipSpamUpdatePayload` + """ + model = TokenOwnershipSpamUpdatePayload() + if include_optional: + return TokenOwnershipSpamUpdatePayload( + asset_id = 'NFT-abcdefabcdefabcdefabcdefabcdefabcdefabcd', + spam = True + ) + else: + return TokenOwnershipSpamUpdatePayload( + asset_id = 'NFT-abcdefabcdefabcdefabcdefabcdefabcdefabcd', + spam = True, + ) + """ + + def testTokenOwnershipSpamUpdatePayload(self): + """Test TokenOwnershipSpamUpdatePayload""" + # 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/test/test_token_ownership_status_update_payload.py b/test/test_token_ownership_status_update_payload.py new file mode 100644 index 00000000..5c2b6842 --- /dev/null +++ b/test/test_token_ownership_status_update_payload.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.token_ownership_status_update_payload import ( + TokenOwnershipStatusUpdatePayload, +) + + +class TestTokenOwnershipStatusUpdatePayload(unittest.TestCase): + """TokenOwnershipStatusUpdatePayload unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> TokenOwnershipStatusUpdatePayload: + """Test TokenOwnershipStatusUpdatePayload + 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 `TokenOwnershipStatusUpdatePayload` + """ + model = TokenOwnershipStatusUpdatePayload() + if include_optional: + return TokenOwnershipStatusUpdatePayload( + asset_id = 'NFT-abcdefabcdefabcdefabcdefabcdefabcdefabcd', + status = 'ARCHIVED' + ) + else: + return TokenOwnershipStatusUpdatePayload( + asset_id = 'NFT-abcdefabcdefabcdefabcdefabcdefabcdefabcd', + status = 'ARCHIVED', + ) + """ + + def testTokenOwnershipStatusUpdatePayload(self): + """Test TokenOwnershipStatusUpdatePayload""" + # 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/test/test_token_response.py b/test/test_token_response.py new file mode 100644 index 00000000..ccccd7b0 --- /dev/null +++ b/test/test_token_response.py @@ -0,0 +1,76 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.token_response import TokenResponse + + +class TestTokenResponse(unittest.TestCase): + """TokenResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> TokenResponse: + """Test TokenResponse + 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 `TokenResponse` + """ + model = TokenResponse() + if include_optional: + return TokenResponse( + id = '', + token_id = '', + standard = '', + metadata_uri = '', + cached_metadata_uri = '', + media = [ + fireblocks_client.models.media_entity_response.MediaEntityResponse( + url = '', + content_type = 'IMAGE', ) + ], + spam = fireblocks_client.models.spam_token_response.SpamTokenResponse( + result = True, ), + collection = fireblocks_client.models.token_collection_response.TokenCollectionResponse( + id = '', + name = '', + symbol = '', ), + blockchain_descriptor = 'ETH', + description = '', + name = '' + ) + else: + return TokenResponse( + id = '', + token_id = '', + standard = '', + blockchain_descriptor = 'ETH', + ) + """ + + def testTokenResponse(self): + """Test TokenResponse""" + # 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/test/test_tokenization_api.py b/test/test_tokenization_api.py new file mode 100644 index 00000000..788cabe2 --- /dev/null +++ b/test/test_tokenization_api.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.api.tokenization_api import TokenizationApi + + +class TestTokenizationApi(unittest.TestCase): + """TokenizationApi unit test stubs""" + + def setUp(self) -> None: + self.api = TokenizationApi() + + def tearDown(self) -> None: + pass + + def test_get_linked_token(self) -> None: + """Test case for get_linked_token + + Return a linked token + """ + pass + + def test_get_linked_tokens(self) -> None: + """Test case for get_linked_tokens + + List all linked tokens + """ + pass + + def test_issue_new_token(self) -> None: + """Test case for issue_new_token + + Issue a new token + """ + pass + + def test_link(self) -> None: + """Test case for link + + Link a token + """ + pass + + def test_unlink(self) -> None: + """Test case for unlink + + Unlink a token + """ + pass + + +if __name__ == "__main__": + unittest.main() diff --git a/test/test_tokens_paginated_response.py b/test/test_tokens_paginated_response.py new file mode 100644 index 00000000..4ac0ebf9 --- /dev/null +++ b/test/test_tokens_paginated_response.py @@ -0,0 +1,72 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.tokens_paginated_response import TokensPaginatedResponse + + +class TestTokensPaginatedResponse(unittest.TestCase): + """TokensPaginatedResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> TokensPaginatedResponse: + """Test TokensPaginatedResponse + 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 `TokensPaginatedResponse` + """ + model = TokensPaginatedResponse() + if include_optional: + return TokensPaginatedResponse( + data = [ + fireblocks_client.models.token_link_dto.TokenLinkDto( + id = 'fbfbfbfb-fbfb-fbfb-fbfb-fbfbfbfbfbfb', + status = 'COMPLETED', + type = 'FUNGIBLE_TOKEN', + ref_id = 'BQ5R_MY_TOKEN', + display_name = 'My Simple ERC20 Token', + token_metadata = null, ) + ], + next = 'eJ0eXAiOiJKV1QiLCJhbGcOiJIUzI1NiJ9' + ) + else: + return TokensPaginatedResponse( + data = [ + fireblocks_client.models.token_link_dto.TokenLinkDto( + id = 'fbfbfbfb-fbfb-fbfb-fbfb-fbfbfbfbfbfb', + status = 'COMPLETED', + type = 'FUNGIBLE_TOKEN', + ref_id = 'BQ5R_MY_TOKEN', + display_name = 'My Simple ERC20 Token', + token_metadata = null, ) + ], + ) + """ + + def testTokensPaginatedResponse(self): + """Test TokensPaginatedResponse""" + # 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/test/test_trading_account_type.py b/test/test_trading_account_type.py new file mode 100644 index 00000000..0c6edd72 --- /dev/null +++ b/test/test_trading_account_type.py @@ -0,0 +1,36 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.trading_account_type import TradingAccountType + + +class TestTradingAccountType(unittest.TestCase): + """TradingAccountType unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTradingAccountType(self): + """Test TradingAccountType""" + # inst = TradingAccountType() + + +if __name__ == "__main__": + unittest.main() diff --git a/test/test_transaction.py b/test/test_transaction.py new file mode 100644 index 00000000..ca7aa089 --- /dev/null +++ b/test/test_transaction.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.transaction import Transaction + + +class TestTransaction(unittest.TestCase): + """Transaction unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> Transaction: + """Test Transaction + 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 `Transaction` + """ + model = Transaction() + if include_optional: + return Transaction( + id = '', + state = 'SUBMITTED', + timestamp = 1.337, + instruction_id = '' + ) + else: + return Transaction( + id = '', + state = 'SUBMITTED', + ) + """ + + def testTransaction(self): + """Test Transaction""" + # 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/test/test_transaction_fee.py b/test/test_transaction_fee.py new file mode 100644 index 00000000..6e39005b --- /dev/null +++ b/test/test_transaction_fee.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.transaction_fee import TransactionFee + + +class TestTransactionFee(unittest.TestCase): + """TransactionFee unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> TransactionFee: + """Test TransactionFee + 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 `TransactionFee` + """ + model = TransactionFee() + if include_optional: + return TransactionFee( + fee_per_byte = '', + gas_price = 1.337, + gas_limit = '', + network_fee = '', + base_fee = 1.337, + priority_fee = 1.337, + max_fee_per_gas_delta = '', + l1_fee = '' + ) + else: + return TransactionFee( + ) + """ + + def testTransactionFee(self): + """Test TransactionFee""" + # 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/test/test_transaction_operation.py b/test/test_transaction_operation.py new file mode 100644 index 00000000..9dd52ded --- /dev/null +++ b/test/test_transaction_operation.py @@ -0,0 +1,36 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.transaction_operation import TransactionOperation + + +class TestTransactionOperation(unittest.TestCase): + """TransactionOperation unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTransactionOperation(self): + """Test TransactionOperation""" + # inst = TransactionOperation() + + +if __name__ == "__main__": + unittest.main() diff --git a/test/test_transaction_request.py b/test/test_transaction_request.py new file mode 100644 index 00000000..bc0c254f --- /dev/null +++ b/test/test_transaction_request.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.transaction_request import TransactionRequest + + +class TestTransactionRequest(unittest.TestCase): + """TransactionRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> TransactionRequest: + """Test TransactionRequest + 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 `TransactionRequest` + """ + model = TransactionRequest() + if include_optional: + return TransactionRequest( + operation = 'TRANSFER', + note = 'Ticket 123', + external_tx_id = '00000000-0000-0000-0000-000000000000', + asset_id = 'ETH', + source = fireblocks_client.models.source_transfer_peer_path.SourceTransferPeerPath( + type = 'VAULT_ACCOUNT', + sub_type = 'BINANCE', + id = '', + name = '', + wallet_id = '', ), + destination = fireblocks_client.models.destination_transfer_peer_path.DestinationTransferPeerPath( + type = 'VAULT_ACCOUNT', + sub_type = 'BINANCE', + id = '', + name = '', + wallet_id = '', + one_time_address = fireblocks_client.models.one_time_address.OneTimeAddress( + address = '', + tag = '', ), ), + destinations = [ + fireblocks_client.models.transaction_request_destination.TransactionRequestDestination( + amount = '', + destination = fireblocks_client.models.destination_transfer_peer_path.DestinationTransferPeerPath( + type = 'VAULT_ACCOUNT', + sub_type = 'BINANCE', + id = '', + name = '', + wallet_id = '', + one_time_address = fireblocks_client.models.one_time_address.OneTimeAddress( + address = '', + tag = '', ), ), ) + ], + amount = None, + treat_as_gross_amount = False, + force_sweep = False, + fee_level = 'MEDIUM', + fee = None, + priority_fee = None, + fail_on_low_fee = True, + max_fee = '120', + gas_limit = None, + gas_price = None, + network_fee = None, + replace_tx_by_hash = '00000000-0000-0000-0000-000000000000', + extra_parameters = None, + customer_ref_id = 'abcdef', + travel_rule_message = fireblocks_client.models.travel_rule_create_transaction_request.TravelRuleCreateTransactionRequest( + originator_vas_pdid = '', + beneficiary_vas_pdid = '', + beneficiary_vas_pname = '', + transaction_blockchain_info = null, + originator = null, + beneficiary = null, + encrypted = '', + protocol = '', + skip_beneficiary_data_validation = True, + travel_rule_behavior = True, + originator_proof = null, + beneficiary_proof = null, + pii = null, ), + auto_staking = True, + network_staking = None, + cpu_staking = None + ) + else: + return TransactionRequest( + ) + """ + + def testTransactionRequest(self): + """Test TransactionRequest""" + # 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/test/test_transaction_request_amount.py b/test/test_transaction_request_amount.py new file mode 100644 index 00000000..6681510c --- /dev/null +++ b/test/test_transaction_request_amount.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.transaction_request_amount import TransactionRequestAmount + + +class TestTransactionRequestAmount(unittest.TestCase): + """TransactionRequestAmount unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> TransactionRequestAmount: + """Test TransactionRequestAmount + 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 `TransactionRequestAmount` + """ + model = TransactionRequestAmount() + if include_optional: + return TransactionRequestAmount( + ) + else: + return TransactionRequestAmount( + ) + """ + + def testTransactionRequestAmount(self): + """Test TransactionRequestAmount""" + # 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/test/test_transaction_request_destination.py b/test/test_transaction_request_destination.py new file mode 100644 index 00000000..5f9dcfbb --- /dev/null +++ b/test/test_transaction_request_destination.py @@ -0,0 +1,65 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.transaction_request_destination import ( + TransactionRequestDestination, +) + + +class TestTransactionRequestDestination(unittest.TestCase): + """TransactionRequestDestination unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> TransactionRequestDestination: + """Test TransactionRequestDestination + 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 `TransactionRequestDestination` + """ + model = TransactionRequestDestination() + if include_optional: + return TransactionRequestDestination( + amount = '', + destination = fireblocks_client.models.destination_transfer_peer_path.DestinationTransferPeerPath( + type = 'VAULT_ACCOUNT', + sub_type = 'BINANCE', + id = '', + name = '', + wallet_id = '', + one_time_address = fireblocks_client.models.one_time_address.OneTimeAddress( + address = '', + tag = '', ), ) + ) + else: + return TransactionRequestDestination( + ) + """ + + def testTransactionRequestDestination(self): + """Test TransactionRequestDestination""" + # 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/test/test_transaction_request_fee.py b/test/test_transaction_request_fee.py new file mode 100644 index 00000000..336a7a6f --- /dev/null +++ b/test/test_transaction_request_fee.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.transaction_request_fee import TransactionRequestFee + + +class TestTransactionRequestFee(unittest.TestCase): + """TransactionRequestFee unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> TransactionRequestFee: + """Test TransactionRequestFee + 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 `TransactionRequestFee` + """ + model = TransactionRequestFee() + if include_optional: + return TransactionRequestFee( + ) + else: + return TransactionRequestFee( + ) + """ + + def testTransactionRequestFee(self): + """Test TransactionRequestFee""" + # 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/test/test_transaction_request_gas_limit.py b/test/test_transaction_request_gas_limit.py new file mode 100644 index 00000000..6a780cdd --- /dev/null +++ b/test/test_transaction_request_gas_limit.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.transaction_request_gas_limit import ( + TransactionRequestGasLimit, +) + + +class TestTransactionRequestGasLimit(unittest.TestCase): + """TransactionRequestGasLimit unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> TransactionRequestGasLimit: + """Test TransactionRequestGasLimit + 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 `TransactionRequestGasLimit` + """ + model = TransactionRequestGasLimit() + if include_optional: + return TransactionRequestGasLimit( + ) + else: + return TransactionRequestGasLimit( + ) + """ + + def testTransactionRequestGasLimit(self): + """Test TransactionRequestGasLimit""" + # 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/test/test_transaction_request_gas_price.py b/test/test_transaction_request_gas_price.py new file mode 100644 index 00000000..319435cd --- /dev/null +++ b/test/test_transaction_request_gas_price.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.transaction_request_gas_price import ( + TransactionRequestGasPrice, +) + + +class TestTransactionRequestGasPrice(unittest.TestCase): + """TransactionRequestGasPrice unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> TransactionRequestGasPrice: + """Test TransactionRequestGasPrice + 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 `TransactionRequestGasPrice` + """ + model = TransactionRequestGasPrice() + if include_optional: + return TransactionRequestGasPrice( + ) + else: + return TransactionRequestGasPrice( + ) + """ + + def testTransactionRequestGasPrice(self): + """Test TransactionRequestGasPrice""" + # 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/test/test_transaction_request_network_fee.py b/test/test_transaction_request_network_fee.py new file mode 100644 index 00000000..3318e8ec --- /dev/null +++ b/test/test_transaction_request_network_fee.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.transaction_request_network_fee import ( + TransactionRequestNetworkFee, +) + + +class TestTransactionRequestNetworkFee(unittest.TestCase): + """TransactionRequestNetworkFee unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> TransactionRequestNetworkFee: + """Test TransactionRequestNetworkFee + 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 `TransactionRequestNetworkFee` + """ + model = TransactionRequestNetworkFee() + if include_optional: + return TransactionRequestNetworkFee( + ) + else: + return TransactionRequestNetworkFee( + ) + """ + + def testTransactionRequestNetworkFee(self): + """Test TransactionRequestNetworkFee""" + # 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/test/test_transaction_request_network_staking.py b/test/test_transaction_request_network_staking.py new file mode 100644 index 00000000..085fcb88 --- /dev/null +++ b/test/test_transaction_request_network_staking.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.transaction_request_network_staking import ( + TransactionRequestNetworkStaking, +) + + +class TestTransactionRequestNetworkStaking(unittest.TestCase): + """TransactionRequestNetworkStaking unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> TransactionRequestNetworkStaking: + """Test TransactionRequestNetworkStaking + 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 `TransactionRequestNetworkStaking` + """ + model = TransactionRequestNetworkStaking() + if include_optional: + return TransactionRequestNetworkStaking( + ) + else: + return TransactionRequestNetworkStaking( + ) + """ + + def testTransactionRequestNetworkStaking(self): + """Test TransactionRequestNetworkStaking""" + # 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/test/test_transaction_request_priority_fee.py b/test/test_transaction_request_priority_fee.py new file mode 100644 index 00000000..a611790f --- /dev/null +++ b/test/test_transaction_request_priority_fee.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.transaction_request_priority_fee import ( + TransactionRequestPriorityFee, +) + + +class TestTransactionRequestPriorityFee(unittest.TestCase): + """TransactionRequestPriorityFee unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> TransactionRequestPriorityFee: + """Test TransactionRequestPriorityFee + 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 `TransactionRequestPriorityFee` + """ + model = TransactionRequestPriorityFee() + if include_optional: + return TransactionRequestPriorityFee( + ) + else: + return TransactionRequestPriorityFee( + ) + """ + + def testTransactionRequestPriorityFee(self): + """Test TransactionRequestPriorityFee""" + # 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/test/test_transaction_response.py b/test/test_transaction_response.py new file mode 100644 index 00000000..b0f34a3b --- /dev/null +++ b/test/test_transaction_response.py @@ -0,0 +1,232 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.transaction_response import TransactionResponse + + +class TestTransactionResponse(unittest.TestCase): + """TransactionResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> TransactionResponse: + """Test TransactionResponse + 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 `TransactionResponse` + """ + model = TransactionResponse() + if include_optional: + return TransactionResponse( + id = '', + external_tx_id = '', + status = '', + sub_status = '', + tx_hash = '', + operation = 'TRANSFER', + note = '', + asset_id = '', + source = fireblocks_client.models.source_transfer_peer_path_response.SourceTransferPeerPathResponse( + type = 'VAULT_ACCOUNT', + sub_type = '', + id = '', + name = '', + wallet_id = '', ), + source_address = '', + tag = '', + destination = fireblocks_client.models.destination_transfer_peer_path_response.DestinationTransferPeerPathResponse( + type = 'VAULT_ACCOUNT', + sub_type = '', + id = '', + name = '', + wallet_id = '', ), + destinations = [ + fireblocks_client.models.transaction_response_destination.TransactionResponseDestination( + destination_address = null, + destination_address_description = null, + amount = '', + amount_usd = '', + aml_screening_result = fireblocks_client.models.aml_screening_result.AmlScreeningResult( + provider = '', + payload = fireblocks_client.models.payload.payload(), ), + destination = fireblocks_client.models.destination_transfer_peer_path_response.DestinationTransferPeerPathResponse( + type = 'VAULT_ACCOUNT', + sub_type = '', + id = '', + name = '', + wallet_id = '', ), + authorization_info = fireblocks_client.models.authorization_info.AuthorizationInfo( + allow_operator_as_authorizer = True, + logic = 'AND', + groups = [ + fireblocks_client.models.authorization_groups.AuthorizationGroups( + th = 1.337, + users = { + 'PENDING_AUTHORIZATION' : 'PENDING_AUTHORIZATION' + }, ) + ], ), ) + ], + destination_address = '', + destination_address_description = '', + destination_tag = '', + contract_call_decoded_data = fireblocks_client.models.transaction_response_contract_call_decoded_data.TransactionResponse_contractCallDecodedData( + contract_name = '', + function_calls = [ + None + ], ), + amount_info = fireblocks_client.models.amount_info.AmountInfo( + amount = '', + requested_amount = '', + net_amount = '', + amount_usd = '', ), + treat_as_gross_amount = True, + fee_info = fireblocks_client.models.fee_info.FeeInfo( + network_fee = '', + service_fee = '', + gas_price = '', ), + fee_currency = '', + network_records = [ + fireblocks_client.models.network_record.NetworkRecord( + source = fireblocks_client.models.source_transfer_peer_path_response.SourceTransferPeerPathResponse( + type = 'VAULT_ACCOUNT', + sub_type = '', + id = '', + name = '', + wallet_id = '', ), + destination = fireblocks_client.models.destination_transfer_peer_path_response.DestinationTransferPeerPathResponse( + type = 'VAULT_ACCOUNT', + sub_type = '', + id = '', + name = '', + wallet_id = '', ), + tx_hash = '', + network_fee = '', + asset_id = '', + net_amount = '', + is_dropped = True, + type = '', + destination_address = '', + source_address = '', + amount_usd = '', + index = 1.337, + reward_info = fireblocks_client.models.reward_info.RewardInfo( + src_rewards = '', + dest_rewards = '', ), ) + ], + created_at = 1.337, + last_updated = 1.337, + created_by = '', + signed_by = [ + '' + ], + rejected_by = '', + authorization_info = fireblocks_client.models.authorization_info.AuthorizationInfo( + allow_operator_as_authorizer = True, + logic = 'AND', + groups = [ + fireblocks_client.models.authorization_groups.AuthorizationGroups( + th = 1.337, + users = { + 'PENDING_AUTHORIZATION' : 'PENDING_AUTHORIZATION' + }, ) + ], ), + exchange_tx_id = '', + customer_ref_id = '', + aml_screening_result = fireblocks_client.models.aml_screening_result.AmlScreeningResult( + provider = '', + payload = fireblocks_client.models.payload.payload(), ), + compliance_result = fireblocks_client.models.compliance_result.ComplianceResult( + aml = [ + fireblocks_client.models.compliance_screening_result.ComplianceScreeningResult( + provider = '', + payload = fireblocks_client.models.payload.payload(), + bypass_reason = '', + screening_status = 'COMPLETED', + timestamp = 1.337, ) + ], + tr = [ + fireblocks_client.models.compliance_screening_result.ComplianceScreeningResult( + provider = '', + payload = fireblocks_client.models.payload.payload(), + bypass_reason = '', + screening_status = 'COMPLETED', + timestamp = 1.337, ) + ], + aml_list = [ + + ], + status = 'Started', + aml_registration = [ + fireblocks_client.models.aml_registration_result.AmlRegistrationResult( + provider = '', + success = True, + timestamp = 1.337, ) + ], ), + extra_parameters = None, + signed_messages = [ + fireblocks_client.models.signed_message.SignedMessage( + content = '', + algorithm = 'MPC_ECDSA_SECP256K1', + derivation_path = [ + 1.337 + ], + signature = fireblocks_client.models.signed_message_signature.SignedMessage_signature( + full_sig = '', + r = '', + s = '', + v = 1.337, ), + public_key = '', ) + ], + num_of_confirmations = 1.337, + block_info = fireblocks_client.models.block_info.BlockInfo( + block_height = '', + block_hash = '', ), + index = 1.337, + reward_info = fireblocks_client.models.reward_info.RewardInfo( + src_rewards = '', + dest_rewards = '', ), + system_messages = fireblocks_client.models.system_message_info.SystemMessageInfo( + type = 'WARN', + message = 'Slow transaction processing. Outgoing transactions might be stuck.', ), + address_type = '', + requested_amount = 1.337, + amount = 1.337, + net_amount = 1.337, + amount_usd = 1.337, + service_fee = 1.337, + fee = 1.337, + network_fee = 1.337, + error_description = '' + ) + else: + return TransactionResponse( + ) + """ + + def testTransactionResponse(self): + """Test TransactionResponse""" + # 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/test/test_transaction_response_contract_call_decoded_data.py b/test/test_transaction_response_contract_call_decoded_data.py new file mode 100644 index 00000000..adb93ed5 --- /dev/null +++ b/test/test_transaction_response_contract_call_decoded_data.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.transaction_response_contract_call_decoded_data import ( + TransactionResponseContractCallDecodedData, +) + + +class TestTransactionResponseContractCallDecodedData(unittest.TestCase): + """TransactionResponseContractCallDecodedData unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance( + self, include_optional + ) -> TransactionResponseContractCallDecodedData: + """Test TransactionResponseContractCallDecodedData + 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 `TransactionResponseContractCallDecodedData` + """ + model = TransactionResponseContractCallDecodedData() + if include_optional: + return TransactionResponseContractCallDecodedData( + contract_name = '', + function_calls = [ + None + ] + ) + else: + return TransactionResponseContractCallDecodedData( + ) + """ + + def testTransactionResponseContractCallDecodedData(self): + """Test TransactionResponseContractCallDecodedData""" + # 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/test/test_transaction_response_destination.py b/test/test_transaction_response_destination.py new file mode 100644 index 00000000..ac498f60 --- /dev/null +++ b/test/test_transaction_response_destination.py @@ -0,0 +1,78 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.transaction_response_destination import ( + TransactionResponseDestination, +) + + +class TestTransactionResponseDestination(unittest.TestCase): + """TransactionResponseDestination unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> TransactionResponseDestination: + """Test TransactionResponseDestination + 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 `TransactionResponseDestination` + """ + model = TransactionResponseDestination() + if include_optional: + return TransactionResponseDestination( + destination_address = None, + destination_address_description = None, + amount = '', + amount_usd = '', + aml_screening_result = fireblocks_client.models.aml_screening_result.AmlScreeningResult( + provider = '', + payload = fireblocks_client.models.payload.payload(), ), + destination = fireblocks_client.models.destination_transfer_peer_path_response.DestinationTransferPeerPathResponse( + type = 'VAULT_ACCOUNT', + sub_type = '', + id = '', + name = '', + wallet_id = '', ), + authorization_info = fireblocks_client.models.authorization_info.AuthorizationInfo( + allow_operator_as_authorizer = True, + logic = 'AND', + groups = [ + fireblocks_client.models.authorization_groups.AuthorizationGroups( + th = 1.337, + users = { + 'PENDING_AUTHORIZATION' : 'PENDING_AUTHORIZATION' + }, ) + ], ) + ) + else: + return TransactionResponseDestination( + ) + """ + + def testTransactionResponseDestination(self): + """Test TransactionResponseDestination""" + # 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/test/test_transactions_api.py b/test/test_transactions_api.py new file mode 100644 index 00000000..5737f5b8 --- /dev/null +++ b/test/test_transactions_api.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.api.transactions_api import TransactionsApi + + +class TestTransactionsApi(unittest.TestCase): + """TransactionsApi unit test stubs""" + + def setUp(self) -> None: + self.api = TransactionsApi() + + def tearDown(self) -> None: + pass + + def test_cancel_transaction(self) -> None: + """Test case for cancel_transaction + + Cancel a transaction + """ + pass + + def test_create_transaction(self) -> None: + """Test case for create_transaction + + Create a new transaction + """ + pass + + def test_drop_transaction(self) -> None: + """Test case for drop_transaction + + Drop ETH transaction by ID + """ + pass + + def test_estimate_network_fee(self) -> None: + """Test case for estimate_network_fee + + Estimate the required fee for an asset + """ + pass + + def test_estimate_transaction_fee(self) -> None: + """Test case for estimate_transaction_fee + + Estimate transaction fee + """ + pass + + def test_freeze_transaction(self) -> None: + """Test case for freeze_transaction + + Freeze a transaction + """ + pass + + def test_get_transaction(self) -> None: + """Test case for get_transaction + + Find a specific transaction by Fireblocks transaction ID + """ + pass + + def test_get_transaction_by_external_id(self) -> None: + """Test case for get_transaction_by_external_id + + Find a specific transaction by external transaction ID + """ + pass + + def test_get_transactions(self) -> None: + """Test case for get_transactions + + List transaction history + """ + pass + + def test_set_confirmation_threshold_by_transaction_hash(self) -> None: + """Test case for set_confirmation_threshold_by_transaction_hash + + Set confirmation threshold by transaction hash + """ + pass + + def test_set_transaction_confirmation_threshold(self) -> None: + """Test case for set_transaction_confirmation_threshold + + Set confirmation threshold by transaction ID + """ + pass + + def test_unfreeze_transaction(self) -> None: + """Test case for unfreeze_transaction + + Unfreeze a transaction + """ + pass + + def test_validate_address(self) -> None: + """Test case for validate_address + + Validate destination address + """ + pass + + +if __name__ == "__main__": + unittest.main() diff --git a/test/test_transfer_config_operation.py b/test/test_transfer_config_operation.py new file mode 100644 index 00000000..0fc19451 --- /dev/null +++ b/test/test_transfer_config_operation.py @@ -0,0 +1,76 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.transfer_config_operation import TransferConfigOperation + + +class TestTransferConfigOperation(unittest.TestCase): + """TransferConfigOperation unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> TransferConfigOperation: + """Test TransferConfigOperation + 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 `TransferConfigOperation` + """ + model = TransferConfigOperation() + if include_optional: + return TransferConfigOperation( + operation_id = '', + type = 'TRANSFER', + params = fireblocks_client.models.transfer_operation_config_params.TransferOperationConfigParams( + amount = '', + asset_id = '', + source = fireblocks_client.models.account.Account( + account_id = '', + account_type = 'EXCHANGE_ACCOUNT', ), + destination = null, ), + status = 'PENDING', + validation_failure = fireblocks_client.models.transfer_validation_failure.TransferValidationFailure( + reason = 'ACCOUNT_NOT_FOUND', + data = { }, ) + ) + else: + return TransferConfigOperation( + operation_id = '', + type = 'TRANSFER', + params = fireblocks_client.models.transfer_operation_config_params.TransferOperationConfigParams( + amount = '', + asset_id = '', + source = fireblocks_client.models.account.Account( + account_id = '', + account_type = 'EXCHANGE_ACCOUNT', ), + destination = null, ), + status = 'PENDING', + ) + """ + + def testTransferConfigOperation(self): + """Test TransferConfigOperation""" + # 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/test/test_transfer_operation_config_params.py b/test/test_transfer_operation_config_params.py new file mode 100644 index 00000000..3c681448 --- /dev/null +++ b/test/test_transfer_operation_config_params.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.transfer_operation_config_params import ( + TransferOperationConfigParams, +) + + +class TestTransferOperationConfigParams(unittest.TestCase): + """TransferOperationConfigParams unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> TransferOperationConfigParams: + """Test TransferOperationConfigParams + 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 `TransferOperationConfigParams` + """ + model = TransferOperationConfigParams() + if include_optional: + return TransferOperationConfigParams( + amount = '', + asset_id = '', + source = fireblocks_client.models.account.Account( + account_id = '', + account_type = 'EXCHANGE_ACCOUNT', ), + destination = None + ) + else: + return TransferOperationConfigParams( + destination = None, + ) + """ + + def testTransferOperationConfigParams(self): + """Test TransferOperationConfigParams""" + # 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/test/test_transfer_operation_execution.py b/test/test_transfer_operation_execution.py new file mode 100644 index 00000000..96fe740f --- /dev/null +++ b/test/test_transfer_operation_execution.py @@ -0,0 +1,86 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.transfer_operation_execution import ( + TransferOperationExecution, +) + + +class TestTransferOperationExecution(unittest.TestCase): + """TransferOperationExecution unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> TransferOperationExecution: + """Test TransferOperationExecution + 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 `TransferOperationExecution` + """ + model = TransferOperationExecution() + if include_optional: + return TransferOperationExecution( + input = fireblocks_client.models.transfer_operation_config_params.TransferOperationConfigParams( + amount = '', + asset_id = '', + source = fireblocks_client.models.account.Account( + account_id = '', + account_type = 'EXCHANGE_ACCOUNT', ), + destination = null, ), + output = fireblocks_client.models.transfer_operation_execution_output.TransferOperationExecutionOutput( + amount = fireblocks_client.models.asset_amount.AssetAmount( + amount = '', + asset_id = '', ), + fee = fireblocks_client.models.asset_amount.AssetAmount( + amount = '', + asset_id = '', ), ), + tx_id = '', + started_at = 1.337, + finished_at = 1.337, + failure = fireblocks_client.models.transfer_operation_failure.TransferOperationFailure( + reason = 'INVALID_AMOUNT', + data = fireblocks_client.models.transfer_operation_failure_data.TransferOperationFailure_data( + tx_id = '', + tx_status = '', + tx_sub_status = '', ), ) + ) + else: + return TransferOperationExecution( + input = fireblocks_client.models.transfer_operation_config_params.TransferOperationConfigParams( + amount = '', + asset_id = '', + source = fireblocks_client.models.account.Account( + account_id = '', + account_type = 'EXCHANGE_ACCOUNT', ), + destination = null, ), + started_at = 1.337, + ) + """ + + def testTransferOperationExecution(self): + """Test TransferOperationExecution""" + # 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/test/test_transfer_operation_execution_output.py b/test/test_transfer_operation_execution_output.py new file mode 100644 index 00000000..73341204 --- /dev/null +++ b/test/test_transfer_operation_execution_output.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.transfer_operation_execution_output import ( + TransferOperationExecutionOutput, +) + + +class TestTransferOperationExecutionOutput(unittest.TestCase): + """TransferOperationExecutionOutput unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> TransferOperationExecutionOutput: + """Test TransferOperationExecutionOutput + 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 `TransferOperationExecutionOutput` + """ + model = TransferOperationExecutionOutput() + if include_optional: + return TransferOperationExecutionOutput( + amount = fireblocks_client.models.asset_amount.AssetAmount( + amount = '', + asset_id = '', ), + fee = fireblocks_client.models.asset_amount.AssetAmount( + amount = '', + asset_id = '', ) + ) + else: + return TransferOperationExecutionOutput( + amount = fireblocks_client.models.asset_amount.AssetAmount( + amount = '', + asset_id = '', ), + fee = fireblocks_client.models.asset_amount.AssetAmount( + amount = '', + asset_id = '', ), + ) + """ + + def testTransferOperationExecutionOutput(self): + """Test TransferOperationExecutionOutput""" + # 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/test/test_transfer_operation_execution_params.py b/test/test_transfer_operation_execution_params.py new file mode 100644 index 00000000..17048f62 --- /dev/null +++ b/test/test_transfer_operation_execution_params.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.transfer_operation_execution_params import ( + TransferOperationExecutionParams, +) + + +class TestTransferOperationExecutionParams(unittest.TestCase): + """TransferOperationExecutionParams unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> TransferOperationExecutionParams: + """Test TransferOperationExecutionParams + 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 `TransferOperationExecutionParams` + """ + model = TransferOperationExecutionParams() + if include_optional: + return TransferOperationExecutionParams( + config_operation_id = '', + execution_params = fireblocks_client.models.transfer_operation_execution_params_execution_params.TransferOperationExecutionParams_executionParams( + amount = '', + asset_id = '', + source = fireblocks_client.models.account.Account( + account_id = '', + account_type = 'EXCHANGE_ACCOUNT', ), + destination = null, ) + ) + else: + return TransferOperationExecutionParams( + config_operation_id = '', + ) + """ + + def testTransferOperationExecutionParams(self): + """Test TransferOperationExecutionParams""" + # 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/test/test_transfer_operation_execution_params_execution_params.py b/test/test_transfer_operation_execution_params_execution_params.py new file mode 100644 index 00000000..cbe37ccd --- /dev/null +++ b/test/test_transfer_operation_execution_params_execution_params.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.transfer_operation_execution_params_execution_params import ( + TransferOperationExecutionParamsExecutionParams, +) + + +class TestTransferOperationExecutionParamsExecutionParams(unittest.TestCase): + """TransferOperationExecutionParamsExecutionParams unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance( + self, include_optional + ) -> TransferOperationExecutionParamsExecutionParams: + """Test TransferOperationExecutionParamsExecutionParams + 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 `TransferOperationExecutionParamsExecutionParams` + """ + model = TransferOperationExecutionParamsExecutionParams() + if include_optional: + return TransferOperationExecutionParamsExecutionParams( + amount = '', + asset_id = '', + source = fireblocks_client.models.account.Account( + account_id = '', + account_type = 'EXCHANGE_ACCOUNT', ), + destination = None + ) + else: + return TransferOperationExecutionParamsExecutionParams( + ) + """ + + def testTransferOperationExecutionParamsExecutionParams(self): + """Test TransferOperationExecutionParamsExecutionParams""" + # 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/test/test_transfer_operation_failure.py b/test/test_transfer_operation_failure.py new file mode 100644 index 00000000..f4065ae8 --- /dev/null +++ b/test/test_transfer_operation_failure.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.transfer_operation_failure import TransferOperationFailure + + +class TestTransferOperationFailure(unittest.TestCase): + """TransferOperationFailure unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> TransferOperationFailure: + """Test TransferOperationFailure + 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 `TransferOperationFailure` + """ + model = TransferOperationFailure() + if include_optional: + return TransferOperationFailure( + reason = 'INVALID_AMOUNT', + data = fireblocks_client.models.transfer_operation_failure_data.TransferOperationFailure_data( + tx_id = '', + tx_status = '', + tx_sub_status = '', ) + ) + else: + return TransferOperationFailure( + reason = 'INVALID_AMOUNT', + ) + """ + + def testTransferOperationFailure(self): + """Test TransferOperationFailure""" + # 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/test/test_transfer_operation_failure_data.py b/test/test_transfer_operation_failure_data.py new file mode 100644 index 00000000..f43dc5c4 --- /dev/null +++ b/test/test_transfer_operation_failure_data.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.transfer_operation_failure_data import ( + TransferOperationFailureData, +) + + +class TestTransferOperationFailureData(unittest.TestCase): + """TransferOperationFailureData unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> TransferOperationFailureData: + """Test TransferOperationFailureData + 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 `TransferOperationFailureData` + """ + model = TransferOperationFailureData() + if include_optional: + return TransferOperationFailureData( + tx_id = '', + tx_status = '', + tx_sub_status = '' + ) + else: + return TransferOperationFailureData( + tx_id = '', + tx_status = '', + ) + """ + + def testTransferOperationFailureData(self): + """Test TransferOperationFailureData""" + # 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/test/test_transfer_operation_preview.py b/test/test_transfer_operation_preview.py new file mode 100644 index 00000000..629c1833 --- /dev/null +++ b/test/test_transfer_operation_preview.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.transfer_operation_preview import TransferOperationPreview + + +class TestTransferOperationPreview(unittest.TestCase): + """TransferOperationPreview unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> TransferOperationPreview: + """Test TransferOperationPreview + 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 `TransferOperationPreview` + """ + model = TransferOperationPreview() + if include_optional: + return TransferOperationPreview( + input = fireblocks_client.models.transfer_operation_config_params.TransferOperationConfigParams( + amount = '', + asset_id = '', + source = fireblocks_client.models.account.Account( + account_id = '', + account_type = 'EXCHANGE_ACCOUNT', ), + destination = null, ), + output = fireblocks_client.models.transfer_operation_preview_output.TransferOperationPreviewOutput( + amount = fireblocks_client.models.asset_amount.AssetAmount( + amount = '', + asset_id = '', ), + fee = fireblocks_client.models.asset_amount.AssetAmount( + amount = '', + asset_id = '', ), + is_sign_required = True, + time_seconds = 1.337, ), + failure = fireblocks_client.models.transfer_operation_failure.TransferOperationFailure( + reason = 'INVALID_AMOUNT', + data = fireblocks_client.models.transfer_operation_failure_data.TransferOperationFailure_data( + tx_id = '', + tx_status = '', + tx_sub_status = '', ), ) + ) + else: + return TransferOperationPreview( + input = fireblocks_client.models.transfer_operation_config_params.TransferOperationConfigParams( + amount = '', + asset_id = '', + source = fireblocks_client.models.account.Account( + account_id = '', + account_type = 'EXCHANGE_ACCOUNT', ), + destination = null, ), + ) + """ + + def testTransferOperationPreview(self): + """Test TransferOperationPreview""" + # 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/test/test_transfer_operation_preview_output.py b/test/test_transfer_operation_preview_output.py new file mode 100644 index 00000000..923519b7 --- /dev/null +++ b/test/test_transfer_operation_preview_output.py @@ -0,0 +1,71 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.transfer_operation_preview_output import ( + TransferOperationPreviewOutput, +) + + +class TestTransferOperationPreviewOutput(unittest.TestCase): + """TransferOperationPreviewOutput unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> TransferOperationPreviewOutput: + """Test TransferOperationPreviewOutput + 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 `TransferOperationPreviewOutput` + """ + model = TransferOperationPreviewOutput() + if include_optional: + return TransferOperationPreviewOutput( + amount = fireblocks_client.models.asset_amount.AssetAmount( + amount = '', + asset_id = '', ), + fee = fireblocks_client.models.asset_amount.AssetAmount( + amount = '', + asset_id = '', ), + is_sign_required = True, + time_seconds = 1.337 + ) + else: + return TransferOperationPreviewOutput( + amount = fireblocks_client.models.asset_amount.AssetAmount( + amount = '', + asset_id = '', ), + fee = fireblocks_client.models.asset_amount.AssetAmount( + amount = '', + asset_id = '', ), + is_sign_required = True, + time_seconds = 1.337, + ) + """ + + def testTransferOperationPreviewOutput(self): + """Test TransferOperationPreviewOutput""" + # 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/test/test_transfer_operation_type.py b/test/test_transfer_operation_type.py new file mode 100644 index 00000000..66d67798 --- /dev/null +++ b/test/test_transfer_operation_type.py @@ -0,0 +1,36 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.transfer_operation_type import TransferOperationType + + +class TestTransferOperationType(unittest.TestCase): + """TransferOperationType unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTransferOperationType(self): + """Test TransferOperationType""" + # inst = TransferOperationType() + + +if __name__ == "__main__": + unittest.main() diff --git a/test/test_transfer_peer_path_sub_type.py b/test/test_transfer_peer_path_sub_type.py new file mode 100644 index 00000000..ae179c0b --- /dev/null +++ b/test/test_transfer_peer_path_sub_type.py @@ -0,0 +1,36 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.transfer_peer_path_sub_type import TransferPeerPathSubType + + +class TestTransferPeerPathSubType(unittest.TestCase): + """TransferPeerPathSubType unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTransferPeerPathSubType(self): + """Test TransferPeerPathSubType""" + # inst = TransferPeerPathSubType() + + +if __name__ == "__main__": + unittest.main() diff --git a/test/test_transfer_peer_path_type.py b/test/test_transfer_peer_path_type.py new file mode 100644 index 00000000..f1d73fb2 --- /dev/null +++ b/test/test_transfer_peer_path_type.py @@ -0,0 +1,36 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.transfer_peer_path_type import TransferPeerPathType + + +class TestTransferPeerPathType(unittest.TestCase): + """TransferPeerPathType unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTransferPeerPathType(self): + """Test TransferPeerPathType""" + # inst = TransferPeerPathType() + + +if __name__ == "__main__": + unittest.main() diff --git a/test/test_transfer_validation_failure.py b/test/test_transfer_validation_failure.py new file mode 100644 index 00000000..fb26a25f --- /dev/null +++ b/test/test_transfer_validation_failure.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.transfer_validation_failure import ( + TransferValidationFailure, +) + + +class TestTransferValidationFailure(unittest.TestCase): + """TransferValidationFailure unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> TransferValidationFailure: + """Test TransferValidationFailure + 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 `TransferValidationFailure` + """ + model = TransferValidationFailure() + if include_optional: + return TransferValidationFailure( + reason = 'ACCOUNT_NOT_FOUND', + data = { } + ) + else: + return TransferValidationFailure( + reason = 'ACCOUNT_NOT_FOUND', + ) + """ + + def testTransferValidationFailure(self): + """Test TransferValidationFailure""" + # 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/test/test_travel_rule_address.py b/test/test_travel_rule_address.py new file mode 100644 index 00000000..19e5c461 --- /dev/null +++ b/test/test_travel_rule_address.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.travel_rule_address import TravelRuleAddress + + +class TestTravelRuleAddress(unittest.TestCase): + """TravelRuleAddress unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> TravelRuleAddress: + """Test TravelRuleAddress + 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 `TravelRuleAddress` + """ + model = TravelRuleAddress() + if include_optional: + return TravelRuleAddress( + street = '1234 Example St', + city = 'New York', + state = 'NY', + postal_code = '10001' + ) + else: + return TravelRuleAddress( + street = '1234 Example St', + city = 'New York', + state = 'NY', + postal_code = '10001', + ) + """ + + def testTravelRuleAddress(self): + """Test TravelRuleAddress""" + # 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/test/test_travel_rule_beta_api.py b/test/test_travel_rule_beta_api.py new file mode 100644 index 00000000..35a2908e --- /dev/null +++ b/test/test_travel_rule_beta_api.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.api.travel_rule_beta_api import TravelRuleBetaApi + + +class TestTravelRuleBetaApi(unittest.TestCase): + """TravelRuleBetaApi unit test stubs""" + + def setUp(self) -> None: + self.api = TravelRuleBetaApi() + + def tearDown(self) -> None: + pass + + def test_get_vaspby_did(self) -> None: + """Test case for get_vaspby_did + + Get VASP details + """ + pass + + def test_get_vasps(self) -> None: + """Test case for get_vasps + + Get All VASPs + """ + pass + + def test_update_vasp(self) -> None: + """Test case for update_vasp + + Add jsonDidKey to VASP details + """ + pass + + def test_validate_full_travel_rule_transaction(self) -> None: + """Test case for validate_full_travel_rule_transaction + + Validate Full Travel Rule Transaction + """ + pass + + def test_validate_travel_rule_transaction(self) -> None: + """Test case for validate_travel_rule_transaction + + Validate Travel Rule Transaction + """ + pass + + +if __name__ == "__main__": + unittest.main() diff --git a/test/test_travel_rule_create_transaction_request.py b/test/test_travel_rule_create_transaction_request.py new file mode 100644 index 00000000..b2d217e5 --- /dev/null +++ b/test/test_travel_rule_create_transaction_request.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.travel_rule_create_transaction_request import ( + TravelRuleCreateTransactionRequest, +) + + +class TestTravelRuleCreateTransactionRequest(unittest.TestCase): + """TravelRuleCreateTransactionRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> TravelRuleCreateTransactionRequest: + """Test TravelRuleCreateTransactionRequest + 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 `TravelRuleCreateTransactionRequest` + """ + model = TravelRuleCreateTransactionRequest() + if include_optional: + return TravelRuleCreateTransactionRequest( + originator_vas_pdid = '', + beneficiary_vas_pdid = '', + beneficiary_vas_pname = '', + transaction_blockchain_info = fireblocks_client.models.travel_rule_transaction_blockchain_info.TravelRuleTransactionBlockchainInfo( + tx_hash = '', + origin = '', + destination = '', ), + originator = fireblocks_client.models.travel_rule_pii_ivms.TravelRulePiiIVMS( + full_name = '', + date_of_birth = '', + place_of_birth = '', + address = '', + identification_number = '', + nationality = '', + country_of_residence = '', + tax_identification_number = '', + customer_number = '', ), + beneficiary = fireblocks_client.models.travel_rule_pii_ivms.TravelRulePiiIVMS( + full_name = '', + date_of_birth = '', + place_of_birth = '', + address = '', + identification_number = '', + nationality = '', + country_of_residence = '', + tax_identification_number = '', + customer_number = '', ), + encrypted = '', + protocol = '', + skip_beneficiary_data_validation = True, + travel_rule_behavior = True, + originator_proof = fireblocks_client.models.travel_rule_ownership_proof.TravelRuleOwnershipProof( + type = 'passport', + proof = '123456789', ), + beneficiary_proof = fireblocks_client.models.travel_rule_ownership_proof.TravelRuleOwnershipProof( + type = 'passport', + proof = '123456789', ), + pii = fireblocks_client.models.travel_rule_pii_ivms.TravelRulePiiIVMS( + full_name = '', + date_of_birth = '', + place_of_birth = '', + address = '', + identification_number = '', + nationality = '', + country_of_residence = '', + tax_identification_number = '', + customer_number = '', ) + ) + else: + return TravelRuleCreateTransactionRequest( + originator = fireblocks_client.models.travel_rule_pii_ivms.TravelRulePiiIVMS( + full_name = '', + date_of_birth = '', + place_of_birth = '', + address = '', + identification_number = '', + nationality = '', + country_of_residence = '', + tax_identification_number = '', + customer_number = '', ), + beneficiary = fireblocks_client.models.travel_rule_pii_ivms.TravelRulePiiIVMS( + full_name = '', + date_of_birth = '', + place_of_birth = '', + address = '', + identification_number = '', + nationality = '', + country_of_residence = '', + tax_identification_number = '', + customer_number = '', ), + ) + """ + + def testTravelRuleCreateTransactionRequest(self): + """Test TravelRuleCreateTransactionRequest""" + # 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/test/test_travel_rule_get_all_vasps_response.py b/test/test_travel_rule_get_all_vasps_response.py new file mode 100644 index 00000000..a9aa57a6 --- /dev/null +++ b/test/test_travel_rule_get_all_vasps_response.py @@ -0,0 +1,185 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.travel_rule_get_all_vasps_response import ( + TravelRuleGetAllVASPsResponse, +) + + +class TestTravelRuleGetAllVASPsResponse(unittest.TestCase): + """TravelRuleGetAllVASPsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> TravelRuleGetAllVASPsResponse: + """Test TravelRuleGetAllVASPsResponse + 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 `TravelRuleGetAllVASPsResponse` + """ + model = TravelRuleGetAllVASPsResponse() + if include_optional: + return TravelRuleGetAllVASPsResponse( + vasps = [ + fireblocks_client.models.travel_rule_vasp.TravelRuleVASP( + did = '', + name = '', + verification_status = '', + address_line1 = '', + address_line2 = '', + city = '', + country = '', + email_domains = '', + website = '', + logo = '', + legal_structure = '', + legal_name = '', + year_founded = '', + incorporation_country = '', + is_regulated = '', + other_names = '', + identification_type = '', + identification_country = '', + business_number = '', + regulatory_authorities = '', + jurisdictions = '', + street = '', + number = '', + unit = '', + post_code = '', + state = '', + certificates = '', + description = '', + travel_rule_openvasp = '', + travel_rule_sygna = '', + travel_rule_trisa = '', + travel_rule_trlight = '', + travel_rule_email = '', + travel_rule_trp = '', + travel_rule_shyft = '', + travel_rule_ustravelrulewg = '', + created_at = '', + created_by = '', + updated_at = '', + updated_by = '', + last_sent_date = '', + last_received_date = '', + documents = '', + has_admin = True, + is_notifiable = True, + issuers = fireblocks_client.models.travel_rule_issuers.TravelRuleIssuers( + year_founded = fireblocks_client.models.travel_rule_issuer.TravelRuleIssuer( + issuer_did = '', ), + is_regulated = fireblocks_client.models.travel_rule_issuer.TravelRuleIssuer( + issuer_did = '', ), + regulatory_authorities = , + name = , + logo = , + website = , + legal_name = , + legal_structure = , + incorporation_country = , + business_number = , + address_line1 = , + city = , + country = , + description = , ), ) + ] + ) + else: + return TravelRuleGetAllVASPsResponse( + vasps = [ + fireblocks_client.models.travel_rule_vasp.TravelRuleVASP( + did = '', + name = '', + verification_status = '', + address_line1 = '', + address_line2 = '', + city = '', + country = '', + email_domains = '', + website = '', + logo = '', + legal_structure = '', + legal_name = '', + year_founded = '', + incorporation_country = '', + is_regulated = '', + other_names = '', + identification_type = '', + identification_country = '', + business_number = '', + regulatory_authorities = '', + jurisdictions = '', + street = '', + number = '', + unit = '', + post_code = '', + state = '', + certificates = '', + description = '', + travel_rule_openvasp = '', + travel_rule_sygna = '', + travel_rule_trisa = '', + travel_rule_trlight = '', + travel_rule_email = '', + travel_rule_trp = '', + travel_rule_shyft = '', + travel_rule_ustravelrulewg = '', + created_at = '', + created_by = '', + updated_at = '', + updated_by = '', + last_sent_date = '', + last_received_date = '', + documents = '', + has_admin = True, + is_notifiable = True, + issuers = fireblocks_client.models.travel_rule_issuers.TravelRuleIssuers( + year_founded = fireblocks_client.models.travel_rule_issuer.TravelRuleIssuer( + issuer_did = '', ), + is_regulated = fireblocks_client.models.travel_rule_issuer.TravelRuleIssuer( + issuer_did = '', ), + regulatory_authorities = , + name = , + logo = , + website = , + legal_name = , + legal_structure = , + incorporation_country = , + business_number = , + address_line1 = , + city = , + country = , + description = , ), ) + ], + ) + """ + + def testTravelRuleGetAllVASPsResponse(self): + """Test TravelRuleGetAllVASPsResponse""" + # 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/test/test_travel_rule_issuer.py b/test/test_travel_rule_issuer.py new file mode 100644 index 00000000..bc8c3d53 --- /dev/null +++ b/test/test_travel_rule_issuer.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.travel_rule_issuer import TravelRuleIssuer + + +class TestTravelRuleIssuer(unittest.TestCase): + """TravelRuleIssuer unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> TravelRuleIssuer: + """Test TravelRuleIssuer + 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 `TravelRuleIssuer` + """ + model = TravelRuleIssuer() + if include_optional: + return TravelRuleIssuer( + issuer_did = '' + ) + else: + return TravelRuleIssuer( + issuer_did = '', + ) + """ + + def testTravelRuleIssuer(self): + """Test TravelRuleIssuer""" + # 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/test/test_travel_rule_issuers.py b/test/test_travel_rule_issuers.py new file mode 100644 index 00000000..47940b99 --- /dev/null +++ b/test/test_travel_rule_issuers.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.travel_rule_issuers import TravelRuleIssuers + + +class TestTravelRuleIssuers(unittest.TestCase): + """TravelRuleIssuers unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> TravelRuleIssuers: + """Test TravelRuleIssuers + 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 `TravelRuleIssuers` + """ + model = TravelRuleIssuers() + if include_optional: + return TravelRuleIssuers( + year_founded = fireblocks_client.models.travel_rule_issuer.TravelRuleIssuer( + issuer_did = '', ), + is_regulated = fireblocks_client.models.travel_rule_issuer.TravelRuleIssuer( + issuer_did = '', ), + regulatory_authorities = fireblocks_client.models.travel_rule_issuer.TravelRuleIssuer( + issuer_did = '', ), + name = fireblocks_client.models.travel_rule_issuer.TravelRuleIssuer( + issuer_did = '', ), + logo = fireblocks_client.models.travel_rule_issuer.TravelRuleIssuer( + issuer_did = '', ), + website = fireblocks_client.models.travel_rule_issuer.TravelRuleIssuer( + issuer_did = '', ), + legal_name = fireblocks_client.models.travel_rule_issuer.TravelRuleIssuer( + issuer_did = '', ), + legal_structure = fireblocks_client.models.travel_rule_issuer.TravelRuleIssuer( + issuer_did = '', ), + incorporation_country = fireblocks_client.models.travel_rule_issuer.TravelRuleIssuer( + issuer_did = '', ), + business_number = fireblocks_client.models.travel_rule_issuer.TravelRuleIssuer( + issuer_did = '', ), + address_line1 = fireblocks_client.models.travel_rule_issuer.TravelRuleIssuer( + issuer_did = '', ), + city = fireblocks_client.models.travel_rule_issuer.TravelRuleIssuer( + issuer_did = '', ), + country = fireblocks_client.models.travel_rule_issuer.TravelRuleIssuer( + issuer_did = '', ), + description = fireblocks_client.models.travel_rule_issuer.TravelRuleIssuer( + issuer_did = '', ) + ) + else: + return TravelRuleIssuers( + year_founded = fireblocks_client.models.travel_rule_issuer.TravelRuleIssuer( + issuer_did = '', ), + is_regulated = fireblocks_client.models.travel_rule_issuer.TravelRuleIssuer( + issuer_did = '', ), + regulatory_authorities = fireblocks_client.models.travel_rule_issuer.TravelRuleIssuer( + issuer_did = '', ), + name = fireblocks_client.models.travel_rule_issuer.TravelRuleIssuer( + issuer_did = '', ), + logo = fireblocks_client.models.travel_rule_issuer.TravelRuleIssuer( + issuer_did = '', ), + website = fireblocks_client.models.travel_rule_issuer.TravelRuleIssuer( + issuer_did = '', ), + legal_name = fireblocks_client.models.travel_rule_issuer.TravelRuleIssuer( + issuer_did = '', ), + legal_structure = fireblocks_client.models.travel_rule_issuer.TravelRuleIssuer( + issuer_did = '', ), + incorporation_country = fireblocks_client.models.travel_rule_issuer.TravelRuleIssuer( + issuer_did = '', ), + business_number = fireblocks_client.models.travel_rule_issuer.TravelRuleIssuer( + issuer_did = '', ), + address_line1 = fireblocks_client.models.travel_rule_issuer.TravelRuleIssuer( + issuer_did = '', ), + city = fireblocks_client.models.travel_rule_issuer.TravelRuleIssuer( + issuer_did = '', ), + country = fireblocks_client.models.travel_rule_issuer.TravelRuleIssuer( + issuer_did = '', ), + description = fireblocks_client.models.travel_rule_issuer.TravelRuleIssuer( + issuer_did = '', ), + ) + """ + + def testTravelRuleIssuers(self): + """Test TravelRuleIssuers""" + # 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/test/test_travel_rule_ownership_proof.py b/test/test_travel_rule_ownership_proof.py new file mode 100644 index 00000000..118016b9 --- /dev/null +++ b/test/test_travel_rule_ownership_proof.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.travel_rule_ownership_proof import ( + TravelRuleOwnershipProof, +) + + +class TestTravelRuleOwnershipProof(unittest.TestCase): + """TravelRuleOwnershipProof unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> TravelRuleOwnershipProof: + """Test TravelRuleOwnershipProof + 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 `TravelRuleOwnershipProof` + """ + model = TravelRuleOwnershipProof() + if include_optional: + return TravelRuleOwnershipProof( + type = 'passport', + proof = '123456789' + ) + else: + return TravelRuleOwnershipProof( + ) + """ + + def testTravelRuleOwnershipProof(self): + """Test TravelRuleOwnershipProof""" + # 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/test/test_travel_rule_pii_ivms.py b/test/test_travel_rule_pii_ivms.py new file mode 100644 index 00000000..397c593c --- /dev/null +++ b/test/test_travel_rule_pii_ivms.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.travel_rule_pii_ivms import TravelRulePiiIVMS + + +class TestTravelRulePiiIVMS(unittest.TestCase): + """TravelRulePiiIVMS unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> TravelRulePiiIVMS: + """Test TravelRulePiiIVMS + 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 `TravelRulePiiIVMS` + """ + model = TravelRulePiiIVMS() + if include_optional: + return TravelRulePiiIVMS( + full_name = '', + date_of_birth = '', + place_of_birth = '', + address = '', + identification_number = '', + nationality = '', + country_of_residence = '', + tax_identification_number = '', + customer_number = '' + ) + else: + return TravelRulePiiIVMS( + ) + """ + + def testTravelRulePiiIVMS(self): + """Test TravelRulePiiIVMS""" + # 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/test/test_travel_rule_policy_rule_response.py b/test/test_travel_rule_policy_rule_response.py new file mode 100644 index 00000000..ec16b4d2 --- /dev/null +++ b/test/test_travel_rule_policy_rule_response.py @@ -0,0 +1,70 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.travel_rule_policy_rule_response import ( + TravelRulePolicyRuleResponse, +) + + +class TestTravelRulePolicyRuleResponse(unittest.TestCase): + """TravelRulePolicyRuleResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> TravelRulePolicyRuleResponse: + """Test TravelRulePolicyRuleResponse + 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 `TravelRulePolicyRuleResponse` + """ + model = TravelRulePolicyRuleResponse() + if include_optional: + return TravelRulePolicyRuleResponse( + source_type = '', + source_sub_type = '', + dest_type = '', + dest_sub_type = '', + dest_address = '', + source_id = '', + dest_id = '', + asset = '', + base_asset = '', + amount = 1.337, + amount_usd = 1.337, + network_protocol = '', + operation = '', + action = 'SCREEN' + ) + else: + return TravelRulePolicyRuleResponse( + action = 'SCREEN', + ) + """ + + def testTravelRulePolicyRuleResponse(self): + """Test TravelRulePolicyRuleResponse""" + # 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/test/test_travel_rule_transaction_blockchain_info.py b/test/test_travel_rule_transaction_blockchain_info.py new file mode 100644 index 00000000..b788e6f1 --- /dev/null +++ b/test/test_travel_rule_transaction_blockchain_info.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.travel_rule_transaction_blockchain_info import ( + TravelRuleTransactionBlockchainInfo, +) + + +class TestTravelRuleTransactionBlockchainInfo(unittest.TestCase): + """TravelRuleTransactionBlockchainInfo unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> TravelRuleTransactionBlockchainInfo: + """Test TravelRuleTransactionBlockchainInfo + 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 `TravelRuleTransactionBlockchainInfo` + """ + model = TravelRuleTransactionBlockchainInfo() + if include_optional: + return TravelRuleTransactionBlockchainInfo( + tx_hash = '', + origin = '', + destination = '' + ) + else: + return TravelRuleTransactionBlockchainInfo( + ) + """ + + def testTravelRuleTransactionBlockchainInfo(self): + """Test TravelRuleTransactionBlockchainInfo""" + # 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/test/test_travel_rule_update_vasp_details.py b/test/test_travel_rule_update_vasp_details.py new file mode 100644 index 00000000..967a7c55 --- /dev/null +++ b/test/test_travel_rule_update_vasp_details.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.travel_rule_update_vasp_details import ( + TravelRuleUpdateVASPDetails, +) + + +class TestTravelRuleUpdateVASPDetails(unittest.TestCase): + """TravelRuleUpdateVASPDetails unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> TravelRuleUpdateVASPDetails: + """Test TravelRuleUpdateVASPDetails + 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 `TravelRuleUpdateVASPDetails` + """ + model = TravelRuleUpdateVASPDetails() + if include_optional: + return TravelRuleUpdateVASPDetails( + did = 'did:ethr:0x44957e75d6ce4a5bf37aae117da86422c848f7c2', + pii_didkey = 'did:key:z6Mks5CZRaiooKYhq5TwtXQC1gWhwiZnmiKfFrMnYY62MhYf' + ) + else: + return TravelRuleUpdateVASPDetails( + did = 'did:ethr:0x44957e75d6ce4a5bf37aae117da86422c848f7c2', + pii_didkey = 'did:key:z6Mks5CZRaiooKYhq5TwtXQC1gWhwiZnmiKfFrMnYY62MhYf', + ) + """ + + def testTravelRuleUpdateVASPDetails(self): + """Test TravelRuleUpdateVASPDetails""" + # 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/test/test_travel_rule_validate_full_transaction_request.py b/test/test_travel_rule_validate_full_transaction_request.py new file mode 100644 index 00000000..6d390286 --- /dev/null +++ b/test/test_travel_rule_validate_full_transaction_request.py @@ -0,0 +1,129 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.travel_rule_validate_full_transaction_request import ( + TravelRuleValidateFullTransactionRequest, +) + + +class TestTravelRuleValidateFullTransactionRequest(unittest.TestCase): + """TravelRuleValidateFullTransactionRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance( + self, include_optional + ) -> TravelRuleValidateFullTransactionRequest: + """Test TravelRuleValidateFullTransactionRequest + 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 `TravelRuleValidateFullTransactionRequest` + """ + model = TravelRuleValidateFullTransactionRequest() + if include_optional: + return TravelRuleValidateFullTransactionRequest( + transaction_asset = '', + transaction_amount = '', + originator_did = '', + beneficiary_did = '', + originator_vas_pdid = '', + beneficiary_vas_pdid = '', + beneficiary_vas_pname = '', + transaction_blockchain_info = fireblocks_client.models.travel_rule_transaction_blockchain_info.TravelRuleTransactionBlockchainInfo( + tx_hash = '', + origin = '', + destination = '', ), + originator = fireblocks_client.models.travel_rule_pii_ivms.TravelRulePiiIVMS( + full_name = '', + date_of_birth = '', + place_of_birth = '', + address = '', + identification_number = '', + nationality = '', + country_of_residence = '', + tax_identification_number = '', + customer_number = '', ), + beneficiary = fireblocks_client.models.travel_rule_pii_ivms.TravelRulePiiIVMS( + full_name = '', + date_of_birth = '', + place_of_birth = '', + address = '', + identification_number = '', + nationality = '', + country_of_residence = '', + tax_identification_number = '', + customer_number = '', ), + encrypted = '', + protocol = '', + notification_email = '', + skip_beneficiary_data_validation = True, + travel_rule_behavior = True, + originator_proof = fireblocks_client.models.travel_rule_ownership_proof.TravelRuleOwnershipProof( + type = 'passport', + proof = '123456789', ), + beneficiary_proof = fireblocks_client.models.travel_rule_ownership_proof.TravelRuleOwnershipProof( + type = 'passport', + proof = '123456789', ), + pii = fireblocks_client.models.travel_rule_pii_ivms.TravelRulePiiIVMS( + full_name = '', + date_of_birth = '', + place_of_birth = '', + address = '', + identification_number = '', + nationality = '', + country_of_residence = '', + tax_identification_number = '', + customer_number = '', ) + ) + else: + return TravelRuleValidateFullTransactionRequest( + originator = fireblocks_client.models.travel_rule_pii_ivms.TravelRulePiiIVMS( + full_name = '', + date_of_birth = '', + place_of_birth = '', + address = '', + identification_number = '', + nationality = '', + country_of_residence = '', + tax_identification_number = '', + customer_number = '', ), + beneficiary = fireblocks_client.models.travel_rule_pii_ivms.TravelRulePiiIVMS( + full_name = '', + date_of_birth = '', + place_of_birth = '', + address = '', + identification_number = '', + nationality = '', + country_of_residence = '', + tax_identification_number = '', + customer_number = '', ), + ) + """ + + def testTravelRuleValidateFullTransactionRequest(self): + """Test TravelRuleValidateFullTransactionRequest""" + # 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/test/test_travel_rule_validate_transaction_request.py b/test/test_travel_rule_validate_transaction_request.py new file mode 100644 index 00000000..345fdd66 --- /dev/null +++ b/test/test_travel_rule_validate_transaction_request.py @@ -0,0 +1,75 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.travel_rule_validate_transaction_request import ( + TravelRuleValidateTransactionRequest, +) + + +class TestTravelRuleValidateTransactionRequest(unittest.TestCase): + """TravelRuleValidateTransactionRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> TravelRuleValidateTransactionRequest: + """Test TravelRuleValidateTransactionRequest + 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 `TravelRuleValidateTransactionRequest` + """ + model = TravelRuleValidateTransactionRequest() + if include_optional: + return TravelRuleValidateTransactionRequest( + transaction_asset = 'BTC', + destination = 'bc1qxy2kgdygjrsqtzq2n0yrf1234p83kkfjhx0wlh', + transaction_amount = '10', + originator_vas_pdid = 'did:ethr:0x44957e75d6ce4a5bf37aae117da86422c848f7c2', + originator_equals_beneficiary = False, + travel_rule_behavior = True, + beneficiary_vas_pdid = 'did:ethr:0x46a7ed5813ce735387df2bfb245bd7722e0de992', + beneficiary_vas_pname = 'HelloCrypto', + beneficiary_name = 'John Doe', + beneficiary_account_number = '1234-1234-1234-12234', + beneficiary_address = fireblocks_client.models.travel_rule_address.TravelRuleAddress( + street = '1234 Example St', + city = 'New York', + state = 'NY', + postal_code = '10001', ) + ) + else: + return TravelRuleValidateTransactionRequest( + transaction_asset = 'BTC', + destination = 'bc1qxy2kgdygjrsqtzq2n0yrf1234p83kkfjhx0wlh', + transaction_amount = '10', + originator_vas_pdid = 'did:ethr:0x44957e75d6ce4a5bf37aae117da86422c848f7c2', + originator_equals_beneficiary = False, + ) + """ + + def testTravelRuleValidateTransactionRequest(self): + """Test TravelRuleValidateTransactionRequest""" + # 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/test/test_travel_rule_validate_transaction_response.py b/test/test_travel_rule_validate_transaction_response.py new file mode 100644 index 00000000..404e2519 --- /dev/null +++ b/test/test_travel_rule_validate_transaction_response.py @@ -0,0 +1,69 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.travel_rule_validate_transaction_response import ( + TravelRuleValidateTransactionResponse, +) + + +class TestTravelRuleValidateTransactionResponse(unittest.TestCase): + """TravelRuleValidateTransactionResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> TravelRuleValidateTransactionResponse: + """Test TravelRuleValidateTransactionResponse + 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 `TravelRuleValidateTransactionResponse` + """ + model = TravelRuleValidateTransactionResponse() + if include_optional: + return TravelRuleValidateTransactionResponse( + is_valid = True, + type = 'TRAVELRULE', + beneficiary_address_type = 'UNKNOWN', + address_source = 'UNKNOWN', + beneficiary_vas_pdid = 'did:ethr:0x46a7ed5813ce735387df2bfb245bd7722e0de992', + beneficiary_vas_pname = 'Fireblocks', + warnings = ["optional-beneficiaryAccountNumber"] + ) + else: + return TravelRuleValidateTransactionResponse( + is_valid = True, + type = 'TRAVELRULE', + beneficiary_address_type = 'UNKNOWN', + address_source = 'UNKNOWN', + beneficiary_vas_pdid = 'did:ethr:0x46a7ed5813ce735387df2bfb245bd7722e0de992', + beneficiary_vas_pname = 'Fireblocks', + warnings = ["optional-beneficiaryAccountNumber"], + ) + """ + + def testTravelRuleValidateTransactionResponse(self): + """Test TravelRuleValidateTransactionResponse""" + # 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/test/test_travel_rule_vasp.py b/test/test_travel_rule_vasp.py new file mode 100644 index 00000000..9332ea31 --- /dev/null +++ b/test/test_travel_rule_vasp.py @@ -0,0 +1,177 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.travel_rule_vasp import TravelRuleVASP + + +class TestTravelRuleVASP(unittest.TestCase): + """TravelRuleVASP unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> TravelRuleVASP: + """Test TravelRuleVASP + 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 `TravelRuleVASP` + """ + model = TravelRuleVASP() + if include_optional: + return TravelRuleVASP( + did = '', + name = '', + verification_status = '', + address_line1 = '', + address_line2 = '', + city = '', + country = '', + email_domains = '', + website = '', + logo = '', + legal_structure = '', + legal_name = '', + year_founded = '', + incorporation_country = '', + is_regulated = '', + other_names = '', + identification_type = '', + identification_country = '', + business_number = '', + regulatory_authorities = '', + jurisdictions = '', + street = '', + number = '', + unit = '', + post_code = '', + state = '', + certificates = '', + description = '', + travel_rule_openvasp = '', + travel_rule_sygna = '', + travel_rule_trisa = '', + travel_rule_trlight = '', + travel_rule_email = '', + travel_rule_trp = '', + travel_rule_shyft = '', + travel_rule_ustravelrulewg = '', + created_at = '', + created_by = '', + updated_at = '', + updated_by = '', + last_sent_date = '', + last_received_date = '', + documents = '', + has_admin = True, + is_notifiable = True, + issuers = fireblocks_client.models.travel_rule_issuers.TravelRuleIssuers( + year_founded = fireblocks_client.models.travel_rule_issuer.TravelRuleIssuer( + issuer_did = '', ), + is_regulated = fireblocks_client.models.travel_rule_issuer.TravelRuleIssuer( + issuer_did = '', ), + regulatory_authorities = , + name = , + logo = , + website = , + legal_name = , + legal_structure = , + incorporation_country = , + business_number = , + address_line1 = , + city = , + country = , + description = , ) + ) + else: + return TravelRuleVASP( + did = '', + name = '', + verification_status = '', + address_line1 = '', + address_line2 = '', + city = '', + country = '', + email_domains = '', + website = '', + logo = '', + legal_structure = '', + legal_name = '', + year_founded = '', + incorporation_country = '', + is_regulated = '', + other_names = '', + identification_type = '', + identification_country = '', + business_number = '', + regulatory_authorities = '', + jurisdictions = '', + street = '', + number = '', + unit = '', + post_code = '', + state = '', + certificates = '', + description = '', + travel_rule_openvasp = '', + travel_rule_sygna = '', + travel_rule_trisa = '', + travel_rule_trlight = '', + travel_rule_email = '', + travel_rule_trp = '', + travel_rule_shyft = '', + travel_rule_ustravelrulewg = '', + created_at = '', + created_by = '', + updated_at = '', + updated_by = '', + last_sent_date = '', + last_received_date = '', + documents = '', + has_admin = True, + is_notifiable = True, + issuers = fireblocks_client.models.travel_rule_issuers.TravelRuleIssuers( + year_founded = fireblocks_client.models.travel_rule_issuer.TravelRuleIssuer( + issuer_did = '', ), + is_regulated = fireblocks_client.models.travel_rule_issuer.TravelRuleIssuer( + issuer_did = '', ), + regulatory_authorities = , + name = , + logo = , + website = , + legal_name = , + legal_structure = , + incorporation_country = , + business_number = , + address_line1 = , + city = , + country = , + description = , ), + ) + """ + + def testTravelRuleVASP(self): + """Test TravelRuleVASP""" + # 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/test/test_unfreeze_transaction_response.py b/test/test_unfreeze_transaction_response.py new file mode 100644 index 00000000..d080835b --- /dev/null +++ b/test/test_unfreeze_transaction_response.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.unfreeze_transaction_response import ( + UnfreezeTransactionResponse, +) + + +class TestUnfreezeTransactionResponse(unittest.TestCase): + """UnfreezeTransactionResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> UnfreezeTransactionResponse: + """Test UnfreezeTransactionResponse + 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 `UnfreezeTransactionResponse` + """ + model = UnfreezeTransactionResponse() + if include_optional: + return UnfreezeTransactionResponse( + success = True + ) + else: + return UnfreezeTransactionResponse( + ) + """ + + def testUnfreezeTransactionResponse(self): + """Test UnfreezeTransactionResponse""" + # 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/test/test_unmanaged_wallet.py b/test/test_unmanaged_wallet.py new file mode 100644 index 00000000..af00b4c9 --- /dev/null +++ b/test/test_unmanaged_wallet.py @@ -0,0 +1,78 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.unmanaged_wallet import UnmanagedWallet + + +class TestUnmanagedWallet(unittest.TestCase): + """UnmanagedWallet unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> UnmanagedWallet: + """Test UnmanagedWallet + 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 `UnmanagedWallet` + """ + model = UnmanagedWallet() + if include_optional: + return UnmanagedWallet( + id = '', + name = '', + customer_ref_id = '', + assets = [ + fireblocks_client.models.wallet_asset.WalletAsset( + id = '', + balance = '', + locked_amount = '', + status = 'WAITING_FOR_APPROVAL', + address = '', + tag = '', + activation_time = '', ) + ] + ) + else: + return UnmanagedWallet( + id = '', + name = '', + assets = [ + fireblocks_client.models.wallet_asset.WalletAsset( + id = '', + balance = '', + locked_amount = '', + status = 'WAITING_FOR_APPROVAL', + address = '', + tag = '', + activation_time = '', ) + ], + ) + """ + + def testUnmanagedWallet(self): + """Test UnmanagedWallet""" + # 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/test/test_unspent_input.py b/test/test_unspent_input.py new file mode 100644 index 00000000..7d57b47e --- /dev/null +++ b/test/test_unspent_input.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.unspent_input import UnspentInput + + +class TestUnspentInput(unittest.TestCase): + """UnspentInput unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> UnspentInput: + """Test UnspentInput + 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 `UnspentInput` + """ + model = UnspentInput() + if include_optional: + return UnspentInput( + tx_hash = '', + index = 1.337 + ) + else: + return UnspentInput( + ) + """ + + def testUnspentInput(self): + """Test UnspentInput""" + # 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/test/test_unspent_inputs_response.py b/test/test_unspent_inputs_response.py new file mode 100644 index 00000000..898ba0d1 --- /dev/null +++ b/test/test_unspent_inputs_response.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.unspent_inputs_response import UnspentInputsResponse + + +class TestUnspentInputsResponse(unittest.TestCase): + """UnspentInputsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> UnspentInputsResponse: + """Test UnspentInputsResponse + 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 `UnspentInputsResponse` + """ + model = UnspentInputsResponse() + if include_optional: + return UnspentInputsResponse( + input = fireblocks_client.models.unspent_input.UnspentInput( + tx_hash = '', + index = 1.337, ), + address = '', + amount = '', + confirmations = 1.337, + status = '' + ) + else: + return UnspentInputsResponse( + ) + """ + + def testUnspentInputsResponse(self): + """Test UnspentInputsResponse""" + # 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/test/test_unstake_request_dto.py b/test/test_unstake_request_dto.py new file mode 100644 index 00000000..4933cdf5 --- /dev/null +++ b/test/test_unstake_request_dto.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.unstake_request_dto import UnstakeRequestDto + + +class TestUnstakeRequestDto(unittest.TestCase): + """UnstakeRequestDto unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> UnstakeRequestDto: + """Test UnstakeRequestDto + 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 `UnstakeRequestDto` + """ + model = UnstakeRequestDto() + if include_optional: + return UnstakeRequestDto( + id = 'b70701f4-d7b1-4795-a8ee-b09cdb5b850e', + fee = '7', + fee_level = 'MEDIUM', + tx_note = 'unstake request id b70701f4-d7b1-4795-a8ee-b09cdb5b850d #ETH' + ) + else: + return UnstakeRequestDto( + id = 'b70701f4-d7b1-4795-a8ee-b09cdb5b850e', + ) + """ + + def testUnstakeRequestDto(self): + """Test UnstakeRequestDto""" + # 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/test/test_update_token_ownership_status_dto.py b/test/test_update_token_ownership_status_dto.py new file mode 100644 index 00000000..2116690d --- /dev/null +++ b/test/test_update_token_ownership_status_dto.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.update_token_ownership_status_dto import ( + UpdateTokenOwnershipStatusDto, +) + + +class TestUpdateTokenOwnershipStatusDto(unittest.TestCase): + """UpdateTokenOwnershipStatusDto unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> UpdateTokenOwnershipStatusDto: + """Test UpdateTokenOwnershipStatusDto + 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 `UpdateTokenOwnershipStatusDto` + """ + model = UpdateTokenOwnershipStatusDto() + if include_optional: + return UpdateTokenOwnershipStatusDto( + status = 'LISTED' + ) + else: + return UpdateTokenOwnershipStatusDto( + status = 'LISTED', + ) + """ + + def testUpdateTokenOwnershipStatusDto(self): + """Test UpdateTokenOwnershipStatusDto""" + # 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/test/test_update_vault_account_asset_address_request.py b/test/test_update_vault_account_asset_address_request.py new file mode 100644 index 00000000..37721d7d --- /dev/null +++ b/test/test_update_vault_account_asset_address_request.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.update_vault_account_asset_address_request import ( + UpdateVaultAccountAssetAddressRequest, +) + + +class TestUpdateVaultAccountAssetAddressRequest(unittest.TestCase): + """UpdateVaultAccountAssetAddressRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> UpdateVaultAccountAssetAddressRequest: + """Test UpdateVaultAccountAssetAddressRequest + 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 `UpdateVaultAccountAssetAddressRequest` + """ + model = UpdateVaultAccountAssetAddressRequest() + if include_optional: + return UpdateVaultAccountAssetAddressRequest( + description = '' + ) + else: + return UpdateVaultAccountAssetAddressRequest( + ) + """ + + def testUpdateVaultAccountAssetAddressRequest(self): + """Test UpdateVaultAccountAssetAddressRequest""" + # 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/test/test_update_vault_account_request.py b/test/test_update_vault_account_request.py new file mode 100644 index 00000000..46e99181 --- /dev/null +++ b/test/test_update_vault_account_request.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.update_vault_account_request import ( + UpdateVaultAccountRequest, +) + + +class TestUpdateVaultAccountRequest(unittest.TestCase): + """UpdateVaultAccountRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> UpdateVaultAccountRequest: + """Test UpdateVaultAccountRequest + 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 `UpdateVaultAccountRequest` + """ + model = UpdateVaultAccountRequest() + if include_optional: + return UpdateVaultAccountRequest( + name = '' + ) + else: + return UpdateVaultAccountRequest( + ) + """ + + def testUpdateVaultAccountRequest(self): + """Test UpdateVaultAccountRequest""" + # 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/test/test_user_group_create_request.py b/test/test_user_group_create_request.py new file mode 100644 index 00000000..d46bf6d9 --- /dev/null +++ b/test/test_user_group_create_request.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.user_group_create_request import UserGroupCreateRequest + + +class TestUserGroupCreateRequest(unittest.TestCase): + """UserGroupCreateRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> UserGroupCreateRequest: + """Test UserGroupCreateRequest + 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 `UserGroupCreateRequest` + """ + model = UserGroupCreateRequest() + if include_optional: + return UserGroupCreateRequest( + group_name = '', + member_ids = [ + '' + ] + ) + else: + return UserGroupCreateRequest( + ) + """ + + def testUserGroupCreateRequest(self): + """Test UserGroupCreateRequest""" + # 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/test/test_user_group_create_response.py b/test/test_user_group_create_response.py new file mode 100644 index 00000000..3929ee93 --- /dev/null +++ b/test/test_user_group_create_response.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.user_group_create_response import UserGroupCreateResponse + + +class TestUserGroupCreateResponse(unittest.TestCase): + """UserGroupCreateResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> UserGroupCreateResponse: + """Test UserGroupCreateResponse + 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 `UserGroupCreateResponse` + """ + model = UserGroupCreateResponse() + if include_optional: + return UserGroupCreateResponse( + name = '', + id = '', + member_ids = [ + '' + ], + status = '' + ) + else: + return UserGroupCreateResponse( + ) + """ + + def testUserGroupCreateResponse(self): + """Test UserGroupCreateResponse""" + # 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/test/test_user_group_response.py b/test/test_user_group_response.py new file mode 100644 index 00000000..73f47c76 --- /dev/null +++ b/test/test_user_group_response.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.user_group_response import UserGroupResponse + + +class TestUserGroupResponse(unittest.TestCase): + """UserGroupResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> UserGroupResponse: + """Test UserGroupResponse + 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 `UserGroupResponse` + """ + model = UserGroupResponse() + if include_optional: + return UserGroupResponse( + id = '', + name = '', + status = '', + member_ids = [ + '' + ] + ) + else: + return UserGroupResponse( + ) + """ + + def testUserGroupResponse(self): + """Test UserGroupResponse""" + # 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/test/test_user_group_update_request.py b/test/test_user_group_update_request.py new file mode 100644 index 00000000..7012b72d --- /dev/null +++ b/test/test_user_group_update_request.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.user_group_update_request import UserGroupUpdateRequest + + +class TestUserGroupUpdateRequest(unittest.TestCase): + """UserGroupUpdateRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> UserGroupUpdateRequest: + """Test UserGroupUpdateRequest + 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 `UserGroupUpdateRequest` + """ + model = UserGroupUpdateRequest() + if include_optional: + return UserGroupUpdateRequest( + group_name = '', + member_ids = [ + '' + ] + ) + else: + return UserGroupUpdateRequest( + ) + """ + + def testUserGroupUpdateRequest(self): + """Test UserGroupUpdateRequest""" + # 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/test/test_user_groups_beta_api.py b/test/test_user_groups_beta_api.py new file mode 100644 index 00000000..a384398d --- /dev/null +++ b/test/test_user_groups_beta_api.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.api.user_groups_beta_api import UserGroupsBetaApi + + +class TestUserGroupsBetaApi(unittest.TestCase): + """UserGroupsBetaApi unit test stubs""" + + def setUp(self) -> None: + self.api = UserGroupsBetaApi() + + def tearDown(self) -> None: + pass + + def test_create_user_group(self) -> None: + """Test case for create_user_group + + Create user group + """ + pass + + def test_delete_user_group(self) -> None: + """Test case for delete_user_group + + Delete user group + """ + pass + + def test_get_user_group(self) -> None: + """Test case for get_user_group + + Get user group + """ + pass + + def test_get_user_groups(self) -> None: + """Test case for get_user_groups + + List user groups + """ + pass + + def test_update_user_group(self) -> None: + """Test case for update_user_group + + Update user group + """ + pass + + +if __name__ == "__main__": + unittest.main() diff --git a/test/test_user_response.py b/test/test_user_response.py new file mode 100644 index 00000000..1c663bdc --- /dev/null +++ b/test/test_user_response.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.user_response import UserResponse + + +class TestUserResponse(unittest.TestCase): + """UserResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> UserResponse: + """Test UserResponse + 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 `UserResponse` + """ + model = UserResponse() + if include_optional: + return UserResponse( + id = '', + first_name = '', + last_name = '', + role = '', + email = '', + enabled = True + ) + else: + return UserResponse( + ) + """ + + def testUserResponse(self): + """Test UserResponse""" + # 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/test/test_user_role.py b/test/test_user_role.py new file mode 100644 index 00000000..325587de --- /dev/null +++ b/test/test_user_role.py @@ -0,0 +1,36 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.user_role import UserRole + + +class TestUserRole(unittest.TestCase): + """UserRole unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUserRole(self): + """Test UserRole""" + # inst = UserRole() + + +if __name__ == "__main__": + unittest.main() diff --git a/test/test_user_status.py b/test/test_user_status.py new file mode 100644 index 00000000..0cedbd65 --- /dev/null +++ b/test/test_user_status.py @@ -0,0 +1,36 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.user_status import UserStatus + + +class TestUserStatus(unittest.TestCase): + """UserStatus unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUserStatus(self): + """Test UserStatus""" + # inst = UserStatus() + + +if __name__ == "__main__": + unittest.main() diff --git a/test/test_user_type.py b/test/test_user_type.py new file mode 100644 index 00000000..c057bace --- /dev/null +++ b/test/test_user_type.py @@ -0,0 +1,36 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.user_type import UserType + + +class TestUserType(unittest.TestCase): + """UserType unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUserType(self): + """Test UserType""" + # inst = UserType() + + +if __name__ == "__main__": + unittest.main() diff --git a/test/test_users_api.py b/test/test_users_api.py new file mode 100644 index 00000000..6d7573f7 --- /dev/null +++ b/test/test_users_api.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.api.users_api import UsersApi + + +class TestUsersApi(unittest.TestCase): + """UsersApi unit test stubs""" + + def setUp(self) -> None: + self.api = UsersApi() + + def tearDown(self) -> None: + pass + + def test_get_users(self) -> None: + """Test case for get_users + + List users + """ + pass + + +if __name__ == "__main__": + unittest.main() diff --git a/test/test_validate_address_response.py b/test/test_validate_address_response.py new file mode 100644 index 00000000..176a7474 --- /dev/null +++ b/test/test_validate_address_response.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.validate_address_response import ValidateAddressResponse + + +class TestValidateAddressResponse(unittest.TestCase): + """ValidateAddressResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ValidateAddressResponse: + """Test ValidateAddressResponse + 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 `ValidateAddressResponse` + """ + model = ValidateAddressResponse() + if include_optional: + return ValidateAddressResponse( + is_valid = True, + is_active = True, + requires_tag = True + ) + else: + return ValidateAddressResponse( + ) + """ + + def testValidateAddressResponse(self): + """Test ValidateAddressResponse""" + # 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/test/test_validator_dto.py b/test/test_validator_dto.py new file mode 100644 index 00000000..fd1dcf51 --- /dev/null +++ b/test/test_validator_dto.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.validator_dto import ValidatorDto + + +class TestValidatorDto(unittest.TestCase): + """ValidatorDto unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ValidatorDto: + """Test ValidatorDto + 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 `ValidatorDto` + """ + model = ValidatorDto() + if include_optional: + return ValidatorDto( + chain_descriptor = 'SOL', + fee_percent = 5 + ) + else: + return ValidatorDto( + chain_descriptor = 'SOL', + fee_percent = 5, + ) + """ + + def testValidatorDto(self): + """Test ValidatorDto""" + # 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/test/test_vault_account.py b/test/test_vault_account.py new file mode 100644 index 00000000..e2542247 --- /dev/null +++ b/test/test_vault_account.py @@ -0,0 +1,79 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.vault_account import VaultAccount + + +class TestVaultAccount(unittest.TestCase): + """VaultAccount unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> VaultAccount: + """Test VaultAccount + 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 `VaultAccount` + """ + model = VaultAccount() + if include_optional: + return VaultAccount( + id = '', + name = '', + assets = [ + fireblocks_client.models.vault_asset.VaultAsset( + id = '', + total = '', + balance = '', + available = '', + pending = '', + frozen = '', + locked_amount = '', + staked = '', + total_staked_cpu = 1.337, + total_staked_network = '', + self_staked_cpu = '', + self_staked_network = '', + pending_refund_cpu = '', + pending_refund_network = '', + block_height = '', + block_hash = '', + rewards_info = fireblocks_client.models.rewards_info.RewardsInfo( + pending_rewards = '', ), ) + ], + hidden_on_ui = True, + customer_ref_id = '', + auto_fuel = True + ) + else: + return VaultAccount( + ) + """ + + def testVaultAccount(self): + """Test VaultAccount""" + # 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/test/test_vault_accounts_paged_response.py b/test/test_vault_accounts_paged_response.py new file mode 100644 index 00000000..4cda1dca --- /dev/null +++ b/test/test_vault_accounts_paged_response.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.vault_accounts_paged_response import ( + VaultAccountsPagedResponse, +) + + +class TestVaultAccountsPagedResponse(unittest.TestCase): + """VaultAccountsPagedResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> VaultAccountsPagedResponse: + """Test VaultAccountsPagedResponse + 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 `VaultAccountsPagedResponse` + """ + model = VaultAccountsPagedResponse() + if include_optional: + return VaultAccountsPagedResponse( + accounts = [ + fireblocks_client.models.vault_account.VaultAccount( + id = '', + name = '', + assets = [ + fireblocks_client.models.vault_asset.VaultAsset( + id = '', + total = '', + balance = '', + available = '', + pending = '', + frozen = '', + locked_amount = '', + staked = '', + total_staked_cpu = 1.337, + total_staked_network = '', + self_staked_cpu = '', + self_staked_network = '', + pending_refund_cpu = '', + pending_refund_network = '', + block_height = '', + block_hash = '', + rewards_info = fireblocks_client.models.rewards_info.RewardsInfo( + pending_rewards = '', ), ) + ], + hidden_on_ui = True, + customer_ref_id = '', + auto_fuel = True, ) + ], + paging = fireblocks_client.models.vault_accounts_paged_response_paging.VaultAccountsPagedResponse_paging( + before = '', + after = '', ), + previous_url = '', + next_url = '' + ) + else: + return VaultAccountsPagedResponse( + ) + """ + + def testVaultAccountsPagedResponse(self): + """Test VaultAccountsPagedResponse""" + # 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/test/test_vault_accounts_paged_response_paging.py b/test/test_vault_accounts_paged_response_paging.py new file mode 100644 index 00000000..9e9b13e2 --- /dev/null +++ b/test/test_vault_accounts_paged_response_paging.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.vault_accounts_paged_response_paging import ( + VaultAccountsPagedResponsePaging, +) + + +class TestVaultAccountsPagedResponsePaging(unittest.TestCase): + """VaultAccountsPagedResponsePaging unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> VaultAccountsPagedResponsePaging: + """Test VaultAccountsPagedResponsePaging + 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 `VaultAccountsPagedResponsePaging` + """ + model = VaultAccountsPagedResponsePaging() + if include_optional: + return VaultAccountsPagedResponsePaging( + before = '', + after = '' + ) + else: + return VaultAccountsPagedResponsePaging( + ) + """ + + def testVaultAccountsPagedResponsePaging(self): + """Test VaultAccountsPagedResponsePaging""" + # 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/test/test_vault_action_status.py b/test/test_vault_action_status.py new file mode 100644 index 00000000..f214856c --- /dev/null +++ b/test/test_vault_action_status.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.vault_action_status import VaultActionStatus + + +class TestVaultActionStatus(unittest.TestCase): + """VaultActionStatus unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> VaultActionStatus: + """Test VaultActionStatus + 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 `VaultActionStatus` + """ + model = VaultActionStatus() + if include_optional: + return VaultActionStatus( + success = True + ) + else: + return VaultActionStatus( + ) + """ + + def testVaultActionStatus(self): + """Test VaultActionStatus""" + # 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/test/test_vault_asset.py b/test/test_vault_asset.py new file mode 100644 index 00000000..0c581bb4 --- /dev/null +++ b/test/test_vault_asset.py @@ -0,0 +1,71 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.vault_asset import VaultAsset + + +class TestVaultAsset(unittest.TestCase): + """VaultAsset unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> VaultAsset: + """Test VaultAsset + 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 `VaultAsset` + """ + model = VaultAsset() + if include_optional: + return VaultAsset( + id = '', + total = '', + balance = '', + available = '', + pending = '', + frozen = '', + locked_amount = '', + staked = '', + total_staked_cpu = 1.337, + total_staked_network = '', + self_staked_cpu = '', + self_staked_network = '', + pending_refund_cpu = '', + pending_refund_network = '', + block_height = '', + block_hash = '', + rewards_info = fireblocks_client.models.rewards_info.RewardsInfo( + pending_rewards = '', ) + ) + else: + return VaultAsset( + ) + """ + + def testVaultAsset(self): + """Test VaultAsset""" + # 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/test/test_vault_wallet_address.py b/test/test_vault_wallet_address.py new file mode 100644 index 00000000..c13af074 --- /dev/null +++ b/test/test_vault_wallet_address.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.vault_wallet_address import VaultWalletAddress + + +class TestVaultWalletAddress(unittest.TestCase): + """VaultWalletAddress unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> VaultWalletAddress: + """Test VaultWalletAddress + 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 `VaultWalletAddress` + """ + model = VaultWalletAddress() + if include_optional: + return VaultWalletAddress( + asset_id = '', + address = '', + description = '', + tag = '', + type = '', + customer_ref_id = '', + address_format = 'SEGWIT', + legacy_address = '', + enterprise_address = '', + bip44_address_index = 56, + user_defined = True + ) + else: + return VaultWalletAddress( + ) + """ + + def testVaultWalletAddress(self): + """Test VaultWalletAddress""" + # 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/test/test_vaults_api.py b/test/test_vaults_api.py new file mode 100644 index 00000000..c4ae147b --- /dev/null +++ b/test/test_vaults_api.py @@ -0,0 +1,207 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.api.vaults_api import VaultsApi + + +class TestVaultsApi(unittest.TestCase): + """VaultsApi unit test stubs""" + + def setUp(self) -> None: + self.api = VaultsApi() + + def tearDown(self) -> None: + pass + + def test_activate_asset_for_vault_account(self) -> None: + """Test case for activate_asset_for_vault_account + + Activate a wallet in a vault account + """ + pass + + def test_create_legacy_address(self) -> None: + """Test case for create_legacy_address + + Convert a segwit address to legacy format + """ + pass + + def test_create_multiple_accounts(self) -> None: + """Test case for create_multiple_accounts + + Bulk creation of new vault accounts + """ + pass + + def test_create_vault_account(self) -> None: + """Test case for create_vault_account + + Create a new vault account + """ + pass + + def test_create_vault_account_asset(self) -> None: + """Test case for create_vault_account_asset + + Create a new wallet + """ + pass + + def test_create_vault_account_asset_address(self) -> None: + """Test case for create_vault_account_asset_address + + Create new asset deposit address + """ + pass + + def test_get_asset_wallets(self) -> None: + """Test case for get_asset_wallets + + List asset wallets (Paginated) + """ + pass + + def test_get_max_spendable_amount(self) -> None: + """Test case for get_max_spendable_amount + + Get the maximum spendable amount in a single transaction. + """ + pass + + def test_get_paged_vault_accounts(self) -> None: + """Test case for get_paged_vault_accounts + + List vault accounts (Paginated) + """ + pass + + def test_get_public_key_info(self) -> None: + """Test case for get_public_key_info + + Get the public key information + """ + pass + + def test_get_public_key_info_for_address(self) -> None: + """Test case for get_public_key_info_for_address + + Get the public key for a vault account + """ + pass + + def test_get_unspent_inputs(self) -> None: + """Test case for get_unspent_inputs + + Get UTXO unspent inputs information + """ + pass + + def test_get_vault_account(self) -> None: + """Test case for get_vault_account + + Find a vault account by ID + """ + pass + + def test_get_vault_account_asset(self) -> None: + """Test case for get_vault_account_asset + + Get the asset balance for a vault account + """ + pass + + def test_get_vault_account_asset_addresses_paginated(self) -> None: + """Test case for get_vault_account_asset_addresses_paginated + + List addresses (Paginated) + """ + pass + + def test_get_vault_assets(self) -> None: + """Test case for get_vault_assets + + Get asset balance for chosen assets + """ + pass + + def test_get_vault_balance_by_asset(self) -> None: + """Test case for get_vault_balance_by_asset + + Get vault balance by asset + """ + pass + + def test_hide_vault_account(self) -> None: + """Test case for hide_vault_account + + Hide a vault account in the console + """ + pass + + def test_set_customer_ref_id_for_address(self) -> None: + """Test case for set_customer_ref_id_for_address + + Assign AML customer reference ID + """ + pass + + def test_set_vault_account_auto_fuel(self) -> None: + """Test case for set_vault_account_auto_fuel + + Turn autofueling on or off + """ + pass + + def test_set_vault_account_customer_ref_id(self) -> None: + """Test case for set_vault_account_customer_ref_id + + Set an AML/KYT customer reference ID for a vault account + """ + pass + + def test_unhide_vault_account(self) -> None: + """Test case for unhide_vault_account + + Unhide a vault account in the console + """ + pass + + def test_update_vault_account(self) -> None: + """Test case for update_vault_account + + Rename a vault account + """ + pass + + def test_update_vault_account_asset_address(self) -> None: + """Test case for update_vault_account_asset_address + + Update address description + """ + pass + + def test_update_vault_account_asset_balance(self) -> None: + """Test case for update_vault_account_asset_balance + + Refresh asset balance data + """ + pass + + +if __name__ == "__main__": + unittest.main() diff --git a/test/test_vendor_dto.py b/test/test_vendor_dto.py new file mode 100644 index 00000000..15d4287a --- /dev/null +++ b/test/test_vendor_dto.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.vendor_dto import VendorDto + + +class TestVendorDto(unittest.TestCase): + """VendorDto unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> VendorDto: + """Test VendorDto + 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 `VendorDto` + """ + model = VendorDto() + if include_optional: + return VendorDto( + id = 'b70701f4-d7b1-4795-a8ee-b09cdb5b4453', + name = 'Fireblocks' + ) + else: + return VendorDto( + id = 'b70701f4-d7b1-4795-a8ee-b09cdb5b4453', + name = 'Fireblocks', + ) + """ + + def testVendorDto(self): + """Test VendorDto""" + # 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/test/test_wallet_asset.py b/test/test_wallet_asset.py new file mode 100644 index 00000000..e30a8da9 --- /dev/null +++ b/test/test_wallet_asset.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.wallet_asset import WalletAsset + + +class TestWalletAsset(unittest.TestCase): + """WalletAsset unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> WalletAsset: + """Test WalletAsset + 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 `WalletAsset` + """ + model = WalletAsset() + if include_optional: + return WalletAsset( + id = '', + balance = '', + locked_amount = '', + status = 'WAITING_FOR_APPROVAL', + address = '', + tag = '', + activation_time = '' + ) + else: + return WalletAsset( + ) + """ + + def testWalletAsset(self): + """Test WalletAsset""" + # 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/test/test_wallet_asset_additional_info.py b/test/test_wallet_asset_additional_info.py new file mode 100644 index 00000000..bbab400f --- /dev/null +++ b/test/test_wallet_asset_additional_info.py @@ -0,0 +1,71 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.wallet_asset_additional_info import ( + WalletAssetAdditionalInfo, +) + + +class TestWalletAssetAdditionalInfo(unittest.TestCase): + """WalletAssetAdditionalInfo unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> WalletAssetAdditionalInfo: + """Test WalletAssetAdditionalInfo + 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 `WalletAssetAdditionalInfo` + """ + model = WalletAssetAdditionalInfo() + if include_optional: + return WalletAssetAdditionalInfo( + account_holder_given_name = '', + account_holder_surname = '', + account_holder_city = '', + account_holder_country = '', + account_holder_address1 = '', + account_holder_address2 = '', + account_holder_district = '', + account_holder_postal_code = '', + aba_routing_number = '', + aba_account_number = '', + aba_country = '', + iban = '', + iban_city = '', + iban_country = '', + spei_clabe = '', + spei_name = '' + ) + else: + return WalletAssetAdditionalInfo( + ) + """ + + def testWalletAssetAdditionalInfo(self): + """Test WalletAssetAdditionalInfo""" + # 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/test/test_web3_connections_api.py b/test/test_web3_connections_api.py new file mode 100644 index 00000000..5fe88ad9 --- /dev/null +++ b/test/test_web3_connections_api.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.api.web3_connections_api import Web3ConnectionsApi + + +class TestWeb3ConnectionsApi(unittest.TestCase): + """Web3ConnectionsApi unit test stubs""" + + def setUp(self) -> None: + self.api = Web3ConnectionsApi() + + def tearDown(self) -> None: + pass + + def test_create(self) -> None: + """Test case for create + + Create a new Web3 connection. + """ + pass + + def test_get(self) -> None: + """Test case for get + + List all open Web3 connections. + """ + pass + + def test_remove(self) -> None: + """Test case for remove + + Remove an existing Web3 connection. + """ + pass + + def test_submit(self) -> None: + """Test case for submit + + Respond to a pending Web3 connection request. + """ + pass + + +if __name__ == "__main__": + unittest.main() diff --git a/test/test_webhooks_api.py b/test/test_webhooks_api.py new file mode 100644 index 00000000..97bff964 --- /dev/null +++ b/test/test_webhooks_api.py @@ -0,0 +1,46 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.api.webhooks_api import WebhooksApi + + +class TestWebhooksApi(unittest.TestCase): + """WebhooksApi unit test stubs""" + + def setUp(self) -> None: + self.api = WebhooksApi() + + def tearDown(self) -> None: + pass + + def test_resend_transaction_webhooks(self) -> None: + """Test case for resend_transaction_webhooks + + Resend failed webhooks for a transaction by ID + """ + pass + + def test_resend_webhooks(self) -> None: + """Test case for resend_webhooks + + Resend failed webhooks + """ + pass + + +if __name__ == "__main__": + unittest.main() diff --git a/test/test_whitelist_ip_addresses_api.py b/test/test_whitelist_ip_addresses_api.py new file mode 100644 index 00000000..0cf5545a --- /dev/null +++ b/test/test_whitelist_ip_addresses_api.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.api.whitelist_ip_addresses_api import WhitelistIpAddressesApi + + +class TestWhitelistIpAddressesApi(unittest.TestCase): + """WhitelistIpAddressesApi unit test stubs""" + + def setUp(self) -> None: + self.api = WhitelistIpAddressesApi() + + def tearDown(self) -> None: + pass + + def test_get_whitelist_ip_addresses(self) -> None: + """Test case for get_whitelist_ip_addresses + + Gets whitelisted ip addresses + """ + pass + + +if __name__ == "__main__": + unittest.main() diff --git a/test/test_withdraw_request_dto.py b/test/test_withdraw_request_dto.py new file mode 100644 index 00000000..4d4e7835 --- /dev/null +++ b/test/test_withdraw_request_dto.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.withdraw_request_dto import WithdrawRequestDto + + +class TestWithdrawRequestDto(unittest.TestCase): + """WithdrawRequestDto unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> WithdrawRequestDto: + """Test WithdrawRequestDto + 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 `WithdrawRequestDto` + """ + model = WithdrawRequestDto() + if include_optional: + return WithdrawRequestDto( + id = 'b70701f4-d7b1-4795-a8ee-b09cdb5b850f', + fee = '7', + fee_level = 'MEDIUM', + tx_note = 'withdraw request id b70701f4-d7b1-4795-a8ee-b09cdb5b850d #ETH' + ) + else: + return WithdrawRequestDto( + id = 'b70701f4-d7b1-4795-a8ee-b09cdb5b850f', + ) + """ + + def testWithdrawRequestDto(self): + """Test WithdrawRequestDto""" + # 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/test/test_workflow_config_status.py b/test/test_workflow_config_status.py new file mode 100644 index 00000000..3bc03607 --- /dev/null +++ b/test/test_workflow_config_status.py @@ -0,0 +1,36 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.workflow_config_status import WorkflowConfigStatus + + +class TestWorkflowConfigStatus(unittest.TestCase): + """WorkflowConfigStatus unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testWorkflowConfigStatus(self): + """Test WorkflowConfigStatus""" + # inst = WorkflowConfigStatus() + + +if __name__ == "__main__": + unittest.main() diff --git a/test/test_workflow_configuration_id.py b/test/test_workflow_configuration_id.py new file mode 100644 index 00000000..a1059ad9 --- /dev/null +++ b/test/test_workflow_configuration_id.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.workflow_configuration_id import WorkflowConfigurationId + + +class TestWorkflowConfigurationId(unittest.TestCase): + """WorkflowConfigurationId unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> WorkflowConfigurationId: + """Test WorkflowConfigurationId + 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 `WorkflowConfigurationId` + """ + model = WorkflowConfigurationId() + if include_optional: + return WorkflowConfigurationId( + config_id = '' + ) + else: + return WorkflowConfigurationId( + config_id = '', + ) + """ + + def testWorkflowConfigurationId(self): + """Test WorkflowConfigurationId""" + # 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/test/test_workflow_execution_operation.py b/test/test_workflow_execution_operation.py new file mode 100644 index 00000000..60371343 --- /dev/null +++ b/test/test_workflow_execution_operation.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.workflow_execution_operation import ( + WorkflowExecutionOperation, +) + + +class TestWorkflowExecutionOperation(unittest.TestCase): + """WorkflowExecutionOperation unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> WorkflowExecutionOperation: + """Test WorkflowExecutionOperation + 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 `WorkflowExecutionOperation` + """ + model = WorkflowExecutionOperation() + if include_optional: + return WorkflowExecutionOperation( + operation_id = '', + status = 'PENDING', + operation_type = 'DISBURSEMENT', + validation_failure = fireblocks_client.models.disbursement_validation_failure.DisbursementValidationFailure( + reason = 'ACCOUNT_NOT_FOUND', + data = { + 'key' : null + }, ), + execution = fireblocks_client.models.disbursement_operation_execution.DisbursementOperationExecution( + input = fireblocks_client.models.disbursement_operation_input.DisbursementOperationInput( + amount = '', + payment_account = fireblocks_client.models.account.Account( + account_id = '', + account_type = 'EXCHANGE_ACCOUNT', ), + instruction_set = [ + null + ], ), + output = fireblocks_client.models.disbursement_operation_execution_output.DisbursementOperationExecutionOutput( + instruction_set = [ + fireblocks_client.models.disbursement_instruction_output.DisbursementInstructionOutput( + amount = fireblocks_client.models.asset_amount.AssetAmount( + amount = '', + asset_id = '', ), + fee = fireblocks_client.models.asset_amount.AssetAmount( + amount = '', + asset_id = '', ), + payee_account = null, ) + ], ), + payout_id = '', + started_at = 1.337, + finished_at = 1.337, + failure = fireblocks_client.models.operation_execution_failure.OperationExecutionFailure( + reason = '', + data = { + 'key' : null + }, ), ), + preview = fireblocks_client.models.disbursement_operation_preview.DisbursementOperationPreview( + input = fireblocks_client.models.disbursement_operation_input.DisbursementOperationInput( + amount = '', + payment_account = fireblocks_client.models.account.Account( + account_id = '', + account_type = 'EXCHANGE_ACCOUNT', ), + instruction_set = [ + null + ], ), + output = fireblocks_client.models.disbursement_operation_preview_output.DisbursementOperationPreviewOutput( + instruction_set = [ + null + ], ), + failure = fireblocks_client.models.operation_execution_failure.OperationExecutionFailure( + reason = '', + data = { + 'key' : null + }, ), ) + ) + else: + return WorkflowExecutionOperation( + operation_id = '', + status = 'PENDING', + operation_type = 'DISBURSEMENT', + ) + """ + + def testWorkflowExecutionOperation(self): + """Test WorkflowExecutionOperation""" + # 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/test/test_workspace_status_beta_api.py b/test/test_workspace_status_beta_api.py new file mode 100644 index 00000000..85365eaa --- /dev/null +++ b/test/test_workspace_status_beta_api.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.api.workspace_status_beta_api import WorkspaceStatusBetaApi + + +class TestWorkspaceStatusBetaApi(unittest.TestCase): + """WorkspaceStatusBetaApi unit test stubs""" + + def setUp(self) -> None: + self.api = WorkspaceStatusBetaApi() + + def tearDown(self) -> None: + pass + + def test_get_workspace_status(self) -> None: + """Test case for get_workspace_status + + Returns current workspace status + """ + pass + + +if __name__ == "__main__": + unittest.main() diff --git a/test/test_write_abi_function.py b/test/test_write_abi_function.py new file mode 100644 index 00000000..fca4ff8b --- /dev/null +++ b/test/test_write_abi_function.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.write_abi_function import WriteAbiFunction + + +class TestWriteAbiFunction(unittest.TestCase): + """WriteAbiFunction unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> WriteAbiFunction: + """Test WriteAbiFunction + 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 `WriteAbiFunction` + """ + model = WriteAbiFunction() + if include_optional: + return WriteAbiFunction( + state_mutability = 'nonpayable', + outputs = [ + fireblocks_client.models.parameter.Parameter( + name = '_name', + description = 'The name of the token', + internal_type = 'string', + type = 'string', + components = [ + fireblocks_client.models.parameter.Parameter( + name = '_name', + description = 'The name of the token', + internal_type = 'string', + type = 'string', ) + ], ) + ], + type = 'function', + name = '', + inputs = [ + fireblocks_client.models.parameter_with_value.ParameterWithValue( + name = '_name', + description = 'The name of the token', + internal_type = 'string', + type = 'string', + components = [ + fireblocks_client.models.parameter.Parameter( + name = '_name', + description = 'The name of the token', + internal_type = 'string', + type = 'string', ) + ], + value = 'true', + function_value = null, ) + ], + description = '' + ) + else: + return WriteAbiFunction( + state_mutability = 'nonpayable', + type = 'function', + inputs = [ + fireblocks_client.models.parameter_with_value.ParameterWithValue( + name = '_name', + description = 'The name of the token', + internal_type = 'string', + type = 'string', + components = [ + fireblocks_client.models.parameter.Parameter( + name = '_name', + description = 'The name of the token', + internal_type = 'string', + type = 'string', ) + ], + value = 'true', + function_value = null, ) + ], + ) + """ + + def testWriteAbiFunction(self): + """Test WriteAbiFunction""" + # 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/test/test_write_call_function_dto.py b/test/test_write_call_function_dto.py new file mode 100644 index 00000000..8f5db005 --- /dev/null +++ b/test/test_write_call_function_dto.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.write_call_function_dto import WriteCallFunctionDto + + +class TestWriteCallFunctionDto(unittest.TestCase): + """WriteCallFunctionDto unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> WriteCallFunctionDto: + """Test WriteCallFunctionDto + 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 `WriteCallFunctionDto` + """ + model = WriteCallFunctionDto() + if include_optional: + return WriteCallFunctionDto( + vault_account_id = '0', + abi_function = [{"inputs":[{"name":"to","type":"address","internalType":"address","value":"0xC2c4e1Db41F0bB97996D0eD0542D2170d146FB66"},{"name":"amount","type":"uint256","internalType":"uint256","value":1000000}],"stateMutability":"nonpayable","type":"function","name":"mint"}], + amount = '12.345', + fee_level = 'MEDIUM', + fee = '2000', + note = '' + ) + else: + return WriteCallFunctionDto( + vault_account_id = '0', + abi_function = [{"inputs":[{"name":"to","type":"address","internalType":"address","value":"0xC2c4e1Db41F0bB97996D0eD0542D2170d146FB66"},{"name":"amount","type":"uint256","internalType":"uint256","value":1000000}],"stateMutability":"nonpayable","type":"function","name":"mint"}], + ) + """ + + def testWriteCallFunctionDto(self): + """Test WriteCallFunctionDto""" + # 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/test/test_write_call_function_response_dto.py b/test/test_write_call_function_response_dto.py new file mode 100644 index 00000000..abfc6d6c --- /dev/null +++ b/test/test_write_call_function_response_dto.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Fireblocks API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.6.2 + Contact: support@fireblocks.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from fireblocks_client.models.write_call_function_response_dto import ( + WriteCallFunctionResponseDto, +) + + +class TestWriteCallFunctionResponseDto(unittest.TestCase): + """WriteCallFunctionResponseDto unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> WriteCallFunctionResponseDto: + """Test WriteCallFunctionResponseDto + 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 `WriteCallFunctionResponseDto` + """ + model = WriteCallFunctionResponseDto() + if include_optional: + return WriteCallFunctionResponseDto( + tx_id = '' + ) + else: + return WriteCallFunctionResponseDto( + tx_id = '', + ) + """ + + def testWriteCallFunctionResponseDto(self): + """Test WriteCallFunctionResponseDto""" + # 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/tox.ini b/tox.ini index b7f7564a..1868bbc2 100644 --- a/tox.ini +++ b/tox.ini @@ -1,8 +1,7 @@ [tox] -envlist = py37 +envlist = py3 [testenv] -passenv = PYTHON_VERSION deps=-r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt